create distinct partner details for incorporated vs. natural person
This commit is contained in:
parent
e4e509a23a
commit
b845671617
@ -93,6 +93,8 @@ class HsOfficeScenarioTests extends ScenarioTest {
|
|||||||
""")
|
""")
|
||||||
.given("officePhoneNumber", "+49 40 654321-0")
|
.given("officePhoneNumber", "+49 40 654321-0")
|
||||||
.given("emailAddress", "hamburg@test-ag.example.org")
|
.given("emailAddress", "hamburg@test-ag.example.org")
|
||||||
|
.given("registrationOffice", "Registergericht Hamburg")
|
||||||
|
.given("registrationNumber", "1234567")
|
||||||
.doRun()
|
.doRun()
|
||||||
.keep();
|
.keep();
|
||||||
}
|
}
|
||||||
@ -118,6 +120,9 @@ class HsOfficeScenarioTests extends ScenarioTest {
|
|||||||
""")
|
""")
|
||||||
.given("officePhoneNumber", "+49 40 123456")
|
.given("officePhoneNumber", "+49 40 123456")
|
||||||
.given("emailAddress", "michelle.matthieu@example.org")
|
.given("emailAddress", "michelle.matthieu@example.org")
|
||||||
|
.given("birthday", "1951-03-25")
|
||||||
|
.given("birthPlace", "Neustadt a.d.R.")
|
||||||
|
.given("birthName", "Eichbaum")
|
||||||
.doRun()
|
.doRun()
|
||||||
.keep();
|
.keep();
|
||||||
}
|
}
|
||||||
@ -601,13 +606,13 @@ class HsOfficeScenarioTests extends ScenarioTest {
|
|||||||
.given("partnerNumber", "P-31011")
|
.given("partnerNumber", "P-31011")
|
||||||
.given("nameOfDeceasedPerson", "Michelle Matthieu") // FIXME: redundant
|
.given("nameOfDeceasedPerson", "Michelle Matthieu") // FIXME: redundant
|
||||||
.given(
|
.given(
|
||||||
|
// "name": "Erbengemeinschaft Michelle Matthieu", // FIXME: automatic?
|
||||||
"communityOfHeirsPostalAddress", """
|
"communityOfHeirsPostalAddress", """
|
||||||
"name": "Erbengemeinschaft Michelle Matthieu", // FIXME: automatic?
|
"co": "Lena Stadland",
|
||||||
"co": "Lena Stadland",
|
"street": "Im Wischer 14",
|
||||||
"street": "Im Wischer",
|
"zipcode": "22987",
|
||||||
"zipcode": "22987",
|
"city": "Hamburg",
|
||||||
"city": "Hamburg",
|
"country": "Germany"
|
||||||
"country": "Germany"
|
|
||||||
""")
|
""")
|
||||||
.given("communityOfHeirsOfficePhoneNumber", "+49 40 666666")
|
.given("communityOfHeirsOfficePhoneNumber", "+49 40 666666")
|
||||||
.given("communityOfHeirsEmailAddress", "lena.stadland@example.org")
|
.given("communityOfHeirsEmailAddress", "lena.stadland@example.org")
|
||||||
|
@ -69,8 +69,11 @@ public class CreatePartner extends UseCase<CreatePartner> {
|
|||||||
"contact.uuid": ${Contact: %{contactCaption}}
|
"contact.uuid": ${Contact: %{contactCaption}}
|
||||||
},
|
},
|
||||||
"details": {
|
"details": {
|
||||||
"registrationOffice": "Registergericht Hamburg",
|
"birthday": ${birthday???},
|
||||||
"registrationNumber": "1234567"
|
"birthPlace": ${birthPlace???},
|
||||||
|
"birthName": ${birthName???},
|
||||||
|
"registrationOffice": ${registrationOffice???},
|
||||||
|
"registrationNumber": ${registrationNumber???}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"""))
|
"""))
|
||||||
|
Loading…
Reference in New Issue
Block a user