@@ -51,6 +51,7 @@ pub struct MerchantAccount {
51
51
pub payment_link_config : Option < serde_json:: Value > ,
52
52
pub pm_collect_link_config : Option < serde_json:: Value > ,
53
53
pub version : common_enums:: ApiVersion ,
54
+ pub is_platform_account : bool ,
54
55
}
55
56
56
57
#[ cfg( feature = "v1" ) ]
@@ -83,6 +84,7 @@ pub struct MerchantAccountSetter {
83
84
pub payment_link_config : Option < serde_json:: Value > ,
84
85
pub pm_collect_link_config : Option < serde_json:: Value > ,
85
86
pub version : common_enums:: ApiVersion ,
87
+ pub is_platform_account : bool ,
86
88
}
87
89
88
90
#[ cfg( feature = "v1" ) ]
@@ -117,6 +119,7 @@ impl From<MerchantAccountSetter> for MerchantAccount {
117
119
payment_link_config : item. payment_link_config ,
118
120
pm_collect_link_config : item. pm_collect_link_config ,
119
121
version : item. version ,
122
+ is_platform_account : item. is_platform_account ,
120
123
}
121
124
}
122
125
}
@@ -148,6 +151,7 @@ pub struct MerchantAccount {
148
151
pub recon_status : storage_enums:: ReconStatus ,
149
152
pub version : common_enums:: ApiVersion ,
150
153
pub id : common_utils:: id_type:: MerchantId ,
154
+ pub is_platform_account : bool ,
151
155
}
152
156
153
157
#[ cfg( feature = "v2" ) ]
@@ -165,6 +169,7 @@ impl From<MerchantAccountSetter> for MerchantAccount {
165
169
organization_id : item. organization_id ,
166
170
recon_status : item. recon_status ,
167
171
version : item. version ,
172
+ is_platform_account : item. is_platform_account ,
168
173
}
169
174
}
170
175
}
@@ -182,6 +187,7 @@ pub struct MerchantAccountSetter {
182
187
pub organization_id : common_utils:: id_type:: OrganizationId ,
183
188
pub recon_status : storage_enums:: ReconStatus ,
184
189
pub version : common_enums:: ApiVersion ,
190
+ pub is_platform_account : bool ,
185
191
}
186
192
187
193
impl MerchantAccount {
@@ -228,6 +234,7 @@ pub struct MerchantAccountNew {
228
234
pub payment_link_config : Option < serde_json:: Value > ,
229
235
pub pm_collect_link_config : Option < serde_json:: Value > ,
230
236
pub version : common_enums:: ApiVersion ,
237
+ pub is_platform_account : bool ,
231
238
}
232
239
233
240
#[ cfg( feature = "v2" ) ]
@@ -244,6 +251,7 @@ pub struct MerchantAccountNew {
244
251
pub recon_status : storage_enums:: ReconStatus ,
245
252
pub id : common_utils:: id_type:: MerchantId ,
246
253
pub version : common_enums:: ApiVersion ,
254
+ pub is_platform_account : bool ,
247
255
}
248
256
249
257
#[ cfg( feature = "v2" ) ]
@@ -258,6 +266,7 @@ pub struct MerchantAccountUpdateInternal {
258
266
pub modified_at : time:: PrimitiveDateTime ,
259
267
pub organization_id : Option < common_utils:: id_type:: OrganizationId > ,
260
268
pub recon_status : Option < storage_enums:: ReconStatus > ,
269
+ pub is_platform_account : Option < bool > ,
261
270
}
262
271
263
272
#[ cfg( feature = "v2" ) ]
@@ -272,6 +281,7 @@ impl MerchantAccountUpdateInternal {
272
281
modified_at,
273
282
organization_id,
274
283
recon_status,
284
+ is_platform_account,
275
285
} = self ;
276
286
277
287
MerchantAccount {
@@ -286,6 +296,7 @@ impl MerchantAccountUpdateInternal {
286
296
recon_status : recon_status. unwrap_or ( source. recon_status ) ,
287
297
version : source. version ,
288
298
id : source. id ,
299
+ is_platform_account : is_platform_account. unwrap_or ( source. is_platform_account ) ,
289
300
}
290
301
}
291
302
}
@@ -319,6 +330,7 @@ pub struct MerchantAccountUpdateInternal {
319
330
pub recon_status : Option < storage_enums:: ReconStatus > ,
320
331
pub payment_link_config : Option < serde_json:: Value > ,
321
332
pub pm_collect_link_config : Option < serde_json:: Value > ,
333
+ pub is_platform_account : Option < bool > ,
322
334
}
323
335
324
336
#[ cfg( feature = "v1" ) ]
@@ -350,6 +362,7 @@ impl MerchantAccountUpdateInternal {
350
362
recon_status,
351
363
payment_link_config,
352
364
pm_collect_link_config,
365
+ is_platform_account,
353
366
} = self ;
354
367
355
368
MerchantAccount {
@@ -385,6 +398,7 @@ impl MerchantAccountUpdateInternal {
385
398
payment_link_config : payment_link_config. or ( source. payment_link_config ) ,
386
399
pm_collect_link_config : pm_collect_link_config. or ( source. pm_collect_link_config ) ,
387
400
version : source. version ,
401
+ is_platform_account : is_platform_account. unwrap_or ( source. is_platform_account ) ,
388
402
}
389
403
}
390
404
}
0 commit comments