@@ -17,7 +17,6 @@ option (scalapb.options) = {
1717 import : "app.softnetwork.protobuf.ScalaPBTypeMappers._"
1818 import : "app.softnetwork.serialization._"
1919 import : "app.softnetwork.payment.model._"
20- import : "app.softnetwork.payment.serialization._"
2120 preserve_unknown_fields : false
2221};
2322
@@ -57,14 +56,14 @@ message BankAccount {
5756 optional MandateScheme mandateScheme = 14 [default = MANDATE_SEPA ];
5857}
5958
60- message PaymentUser {
61- enum PaymentUserType {
59+ message NaturalUser {
60+ enum NaturalUserType {
6261 PAYER = 0 ;
6362 COLLECTOR = 1 ;
6463 }
6564 option (scalapb.message ).extends = "ProtobufDomainObject" ;
66- option (scalapb.message ).extends = "PaymentUserDecorator " ;
67- option (scalapb.message ).companion_extends = "PaymentUserCompanion " ;
65+ option (scalapb.message ).extends = "NaturalUserDecorator " ;
66+ option (scalapb.message ).companion_extends = "NaturalUserCompanion " ;
6867 required string firstName = 1 ;
6968 required string lastName = 2 ;
7069 required string email = 3 ;
@@ -75,7 +74,7 @@ message PaymentUser {
7574 optional string walletId = 8 ;
7675 required string externalUuid = 9 ;
7776 optional string profile = 10 ;
78- optional PaymentUserType paymentUserType = 11 ;
77+ optional NaturalUserType naturalUserType = 11 ;
7978// optional string secondaryWalletId = 12;
8079}
8180
@@ -90,7 +89,7 @@ message LegalUser {
9089 required LegalUserType legalUserType = 1 ;
9190 required string legalName = 2 ;
9291 required string siret = 3 ;
93- required PaymentUser legalRepresentative = 4 ;
92+ required NaturalUser legalRepresentative = 4 ;
9493 required Address legalRepresentativeAddress = 5 ;
9594 required Address headQuartersAddress = 6 ;
9695 optional UboDeclaration uboDeclaration = 7 ;
@@ -114,7 +113,7 @@ message PaymentAccount {
114113 required google.protobuf.Timestamp createdDate = 2 [(scalapb.field ).type = "java.time.Instant" ];
115114 required google.protobuf.Timestamp lastUpdated = 3 [(scalapb.field ).type = "java.time.Instant" ];
116115 oneof user {
117- PaymentUser naturalUser = 4 ;
116+ NaturalUser naturalUser = 4 ;
118117 LegalUser legalUser = 5 ;
119118 }
120119 repeated Card cards = 6 ;
@@ -123,6 +122,7 @@ message PaymentAccount {
123122 required PaymentAccountStatus paymentAccountStatus = 9 [default = DOCUMENTS_KO ];
124123 repeated Transaction transactions = 10 ;
125124 repeated RecurringPayment recurryingPayments = 11 ;
125+ optional string clientId = 12 ;
126126}
127127
128128message MandateResult {
@@ -191,4 +191,6 @@ message RecurringPayment {
191191 optional int32 cumulatedFeesAmount = 20 ;
192192 optional bool migration = 21 ;
193193 optional string cardId = 22 ;
194+ optional string statementDescriptor = 23 ;
195+ optional string externalReference = 24 ;
194196}
0 commit comments