@@ -488,7 +488,7 @@ impl From<StraightThroughAlgorithm> for StraightThroughAlgorithmSerde {
488
488
}
489
489
}
490
490
491
- #[ derive( Clone , Debug , Deserialize , ToSchema , Serialize ) ]
491
+ #[ derive( Clone , Debug , Deserialize , ToSchema , Serialize , PartialEq ) ]
492
492
#[ serde( deny_unknown_fields) ]
493
493
pub struct PrimaryBusinessDetails {
494
494
#[ schema( value_type = CountryAlpha2 ) ]
@@ -615,10 +615,10 @@ pub struct MerchantConnectorCreate {
615
615
#[ schema( example = json!( common_utils:: consts:: FRM_CONFIGS_EG ) ) ]
616
616
pub frm_configs : Option < Vec < FrmConfigs > > ,
617
617
618
- #[ schema( value_type = CountryAlpha2 , example = "US" ) ]
619
- pub business_country : api_enums:: CountryAlpha2 ,
618
+ #[ schema( value_type = Option < CountryAlpha2 > , example = "US" ) ]
619
+ pub business_country : Option < api_enums:: CountryAlpha2 > ,
620
620
621
- pub business_label : String ,
621
+ pub business_label : Option < String > ,
622
622
623
623
/// Business Sub label of the merchant
624
624
#[ schema( example = "chase" ) ]
@@ -658,7 +658,7 @@ pub struct MerchantConnectorResponse {
658
658
// /// Connector label for specific country and Business
659
659
#[ serde( skip_deserializing) ]
660
660
#[ schema( example = "stripe_US_travel" ) ]
661
- pub connector_label : String ,
661
+ pub connector_label : Option < String > ,
662
662
663
663
/// Unique ID of the connector
664
664
#[ schema( example = "mca_5apGeP94tMts6rg3U3kR" ) ]
@@ -708,12 +708,12 @@ pub struct MerchantConnectorResponse {
708
708
pub metadata : Option < pii:: SecretSerdeValue > ,
709
709
710
710
/// Business Country of the connector
711
- #[ schema( value_type = CountryAlpha2 , example = "US" ) ]
712
- pub business_country : api_enums:: CountryAlpha2 ,
711
+ #[ schema( value_type = Option < CountryAlpha2 > , example = "US" ) ]
712
+ pub business_country : Option < api_enums:: CountryAlpha2 > ,
713
713
714
714
///Business Type of the merchant
715
715
#[ schema( example = "travel" ) ]
716
- pub business_label : String ,
716
+ pub business_label : Option < String > ,
717
717
718
718
/// Business Sub label of the merchant
719
719
#[ schema( example = "chase" ) ]
0 commit comments