@@ -253,12 +253,13 @@ pub struct NetceteraErrorDetails {
253
253
254
254
#[ derive( Debug , Serialize , Deserialize ) ]
255
255
pub struct NetceteraMetaData {
256
- pub mcc : String ,
257
- pub merchant_country_code : String ,
258
- pub merchant_name : String ,
256
+ pub mcc : Option < String > ,
257
+ pub merchant_country_code : Option < String > ,
258
+ pub merchant_name : Option < String > ,
259
259
pub endpoint_prefix : String ,
260
- pub three_ds_requestor_name : String ,
261
- pub three_ds_requestor_id : String ,
260
+ pub three_ds_requestor_name : Option < String > ,
261
+ pub three_ds_requestor_id : Option < String > ,
262
+ pub merchant_configuration_id : Option < String > ,
262
263
}
263
264
264
265
impl TryFrom < & Option < common_utils:: pii:: SecretSerdeValue > > for NetceteraMetaData {
@@ -515,13 +516,13 @@ impl TryFrom<&NetceteraRouterData<&types::authentication::ConnectorAuthenticatio
515
516
. parse_value ( "NetceteraMetaData" )
516
517
. change_context ( errors:: ConnectorError :: RequestEncodingFailed ) ?;
517
518
let merchant_data = netcetera_types:: MerchantData {
518
- merchant_configuration_id : None ,
519
- mcc : Some ( connector_meta_data. mcc ) ,
520
- merchant_country_code : Some ( connector_meta_data. merchant_country_code ) ,
521
- merchant_name : Some ( connector_meta_data. merchant_name ) ,
519
+ merchant_configuration_id : connector_meta_data . merchant_configuration_id ,
520
+ mcc : connector_meta_data. mcc ,
521
+ merchant_country_code : connector_meta_data. merchant_country_code ,
522
+ merchant_name : connector_meta_data. merchant_name ,
522
523
notification_url : request. return_url . clone ( ) ,
523
- three_ds_requestor_id : Some ( connector_meta_data. three_ds_requestor_id ) ,
524
- three_ds_requestor_name : Some ( connector_meta_data. three_ds_requestor_name ) ,
524
+ three_ds_requestor_id : connector_meta_data. three_ds_requestor_id ,
525
+ three_ds_requestor_name : connector_meta_data. three_ds_requestor_name ,
525
526
white_list_status : None ,
526
527
trust_list_status : None ,
527
528
seller_info : None ,
0 commit comments