@@ -95,6 +95,8 @@ pub struct MerchantAccountCreate {
95
95
96
96
/// The id of the organization to which the merchant belongs to
97
97
pub organization_id : Option < String > ,
98
+
99
+ pub payment_link_config : Option < PaymentLinkConfig > ,
98
100
}
99
101
100
102
#[ derive( Clone , Debug , Deserialize , Serialize , ToSchema ) ]
@@ -184,6 +186,8 @@ pub struct MerchantAccountUpdate {
184
186
/// To unset this field, pass an empty string
185
187
#[ schema( max_length = 64 ) ]
186
188
pub default_profile : Option < String > ,
189
+
190
+ pub payment_link_config : Option < serde_json:: Value > ,
187
191
}
188
192
189
193
#[ derive( Clone , Debug , ToSchema , Serialize ) ]
@@ -277,6 +281,8 @@ pub struct MerchantAccountResponse {
277
281
/// A enum value to indicate the status of recon service. By default it is not_requested.
278
282
#[ schema( value_type = ReconStatus , example = "not_requested" ) ]
279
283
pub recon_status : enums:: ReconStatus ,
284
+
285
+ pub payment_link_config : Option < serde_json:: Value > ,
280
286
}
281
287
282
288
#[ derive( Clone , Debug , Deserialize , ToSchema , Serialize ) ]
@@ -497,6 +503,22 @@ pub struct PrimaryBusinessDetails {
497
503
pub business : String ,
498
504
}
499
505
506
+ #[ derive( Clone , Debug , Deserialize , ToSchema , Serialize , PartialEq ) ]
507
+ #[ serde( deny_unknown_fields) ]
508
+ pub struct PaymentLinkConfig {
509
+ pub merchant_logo : Option < String > ,
510
+ pub color_scheme : Option < PaymentLinkColorSchema > ,
511
+ }
512
+
513
+ #[ derive( Clone , Debug , Deserialize , ToSchema , Serialize , PartialEq ) ]
514
+ #[ serde( deny_unknown_fields) ]
515
+
516
+ pub struct PaymentLinkColorSchema {
517
+ pub primary_color : Option < String > ,
518
+ pub primary_accent_color : Option < String > ,
519
+ pub secondary_color : Option < String > ,
520
+ }
521
+
500
522
#[ derive( Clone , Debug , Deserialize , ToSchema , Serialize ) ]
501
523
#[ serde( deny_unknown_fields) ]
502
524
pub struct WebhookDetails {
0 commit comments