@@ -19,6 +19,7 @@ abstract class Owner implements _i1.SerializableModel {
1919 Owner ._({
2020 _i1.UuidValue ? id,
2121 required this .externalBillingId,
22+ this .externalPaymentId,
2223 required this .billingPortalUrl,
2324 required this .billingEmails,
2425 this .user,
@@ -29,6 +30,7 @@ abstract class Owner implements _i1.SerializableModel {
2930 factory Owner ({
3031 _i1.UuidValue ? id,
3132 required String externalBillingId,
33+ String ? externalPaymentId,
3234 required Uri billingPortalUrl,
3335 required List <String > billingEmails,
3436 _i2.User ? user,
@@ -40,6 +42,7 @@ abstract class Owner implements _i1.SerializableModel {
4042 return Owner (
4143 id: _i1.UuidValueJsonExtension .fromJson (jsonSerialization['id' ]),
4244 externalBillingId: jsonSerialization['externalBillingId' ] as String ,
45+ externalPaymentId: jsonSerialization['externalPaymentId' ] as String ? ,
4346 billingPortalUrl:
4447 _i1.UriJsonExtension .fromJson (jsonSerialization['billingPortalUrl' ]),
4548 billingEmails: (jsonSerialization['billingEmails' ] as List )
@@ -66,6 +69,8 @@ abstract class Owner implements _i1.SerializableModel {
6669
6770 String externalBillingId;
6871
72+ String ? externalPaymentId;
73+
6974 Uri billingPortalUrl;
7075
7176 List <String > billingEmails;
@@ -82,6 +87,7 @@ abstract class Owner implements _i1.SerializableModel {
8287 Owner copyWith ({
8388 _i1.UuidValue ? id,
8489 String ? externalBillingId,
90+ String ? externalPaymentId,
8591 Uri ? billingPortalUrl,
8692 List <String >? billingEmails,
8793 _i2.User ? user,
@@ -93,6 +99,7 @@ abstract class Owner implements _i1.SerializableModel {
9399 return {
94100 'id' : id.toJson (),
95101 'externalBillingId' : externalBillingId,
102+ if (externalPaymentId != null ) 'externalPaymentId' : externalPaymentId,
96103 'billingPortalUrl' : billingPortalUrl.toJson (),
97104 'billingEmails' : billingEmails.toJson (),
98105 if (user != null ) 'user' : user? .toJson (),
@@ -114,6 +121,7 @@ class _OwnerImpl extends Owner {
114121 _OwnerImpl ({
115122 _i1.UuidValue ? id,
116123 required String externalBillingId,
124+ String ? externalPaymentId,
117125 required Uri billingPortalUrl,
118126 required List <String > billingEmails,
119127 _i2.User ? user,
@@ -122,6 +130,7 @@ class _OwnerImpl extends Owner {
122130 }) : super ._(
123131 id: id,
124132 externalBillingId: externalBillingId,
133+ externalPaymentId: externalPaymentId,
125134 billingPortalUrl: billingPortalUrl,
126135 billingEmails: billingEmails,
127136 user: user,
@@ -136,6 +145,7 @@ class _OwnerImpl extends Owner {
136145 Owner copyWith ({
137146 _i1.UuidValue ? id,
138147 String ? externalBillingId,
148+ Object ? externalPaymentId = _Undefined ,
139149 Uri ? billingPortalUrl,
140150 List <String >? billingEmails,
141151 Object ? user = _Undefined ,
@@ -145,6 +155,9 @@ class _OwnerImpl extends Owner {
145155 return Owner (
146156 id: id ?? this .id,
147157 externalBillingId: externalBillingId ?? this .externalBillingId,
158+ externalPaymentId: externalPaymentId is String ?
159+ ? externalPaymentId
160+ : this .externalPaymentId,
148161 billingPortalUrl: billingPortalUrl ?? this .billingPortalUrl,
149162 billingEmails:
150163 billingEmails ?? this .billingEmails.map ((e0) => e0).toList (),
0 commit comments