Skip to content

Commit 27af682

Browse files
cookieg13Debarati Ghatak
authored and
Debarati Ghatak
committed
feat(core): add three_ds_requestor_app_url in business_profile
1 parent c745674 commit 27af682

File tree

7 files changed

+28
-0
lines changed

7 files changed

+28
-0
lines changed

Diff for: api-reference-v2/openapi_spec.json

+10
Original file line numberDiff line numberDiff line change
@@ -4440,6 +4440,11 @@
44404440
"three_ds_requestor_url": {
44414441
"type": "string",
44424442
"description": "URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process."
4443+
},
4444+
"three_ds_requestor_app_url": {
4445+
"type": "string",
4446+
"description": "Merchant app declaring their URL within the CReq message so that the Authentication app can call the Merchant app after OOB authentication has occurred.",
4447+
"nullable": true
44434448
}
44444449
}
44454450
},
@@ -16411,6 +16416,11 @@
1641116416
"three_ds_requestor_url": {
1641216417
"type": "string",
1641316418
"description": "Three DS Requestor URL"
16419+
},
16420+
"three_ds_requestor_app_url": {
16421+
"type": "string",
16422+
"description": "Merchant app declaring their URL within the CReq message so that the Authentication app can call the Merchant app after OOB authentication has occurred.",
16423+
"nullable": true
1641416424
}
1641516425
}
1641616426
},

Diff for: api-reference/openapi_spec.json

+10
Original file line numberDiff line numberDiff line change
@@ -6595,6 +6595,11 @@
65956595
"three_ds_requestor_url": {
65966596
"type": "string",
65976597
"description": "URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process."
6598+
},
6599+
"three_ds_requestor_app_url": {
6600+
"type": "string",
6601+
"description": "Merchant app declaring their URL within the CReq message so that the Authentication app can call the Merchant app after OOB authentication has occurred.",
6602+
"nullable": true
65986603
}
65996604
}
66006605
},
@@ -19763,6 +19768,11 @@
1976319768
"three_ds_requestor_url": {
1976419769
"type": "string",
1976519770
"description": "Three DS Requestor URL"
19771+
},
19772+
"three_ds_requestor_app_url": {
19773+
"type": "string",
19774+
"description": "Merchant app declaring their URL within the CReq message so that the Authentication app can call the Merchant app after OOB authentication has occurred.",
19775+
"nullable": true
1976619776
}
1976719777
}
1976819778
},

Diff for: crates/api_models/src/admin.rs

+2
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ pub struct AuthenticationConnectorDetails {
278278
pub authentication_connectors: Vec<common_enums::AuthenticationConnectors>,
279279
/// URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process.
280280
pub three_ds_requestor_url: String,
281+
/// Merchant app declaring their URL within the CReq message so that the Authentication app can call the Merchant app after OOB authentication has occurred.
282+
pub three_ds_requestor_app_url: Option<String>,
281283
}
282284

283285
#[derive(Clone, Debug, Deserialize, Serialize, ToSchema)]

Diff for: crates/api_models/src/payments.rs

+2
Original file line numberDiff line numberDiff line change
@@ -7470,6 +7470,8 @@ pub struct PaymentsExternalAuthenticationResponse {
74707470
pub acs_signed_content: Option<String>,
74717471
/// Three DS Requestor URL
74727472
pub three_ds_requestor_url: String,
7473+
/// Merchant app declaring their URL within the CReq message so that the Authentication app can call the Merchant app after OOB authentication has occurred
7474+
pub three_ds_requestor_app_url: Option<String>,
74737475
}
74747476

74757477
#[derive(Default, Debug, serde::Deserialize, serde::Serialize, Clone, ToSchema)]

Diff for: crates/diesel_models/src/business_profile.rs

+1
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ impl ProfileUpdateInternal {
590590
pub struct AuthenticationConnectorDetails {
591591
pub authentication_connectors: Vec<AuthenticationConnectors>,
592592
pub three_ds_requestor_url: String,
593+
pub three_ds_requestor_app_url: Option<String>,
593594
}
594595

595596
common_utils::impl_to_sql_from_sql_json!(AuthenticationConnectorDetails);

Diff for: crates/router/src/core/payments.rs

+1
Original file line numberDiff line numberDiff line change
@@ -7704,6 +7704,7 @@ pub async fn payment_external_authentication<F: Clone + Sync>(
77047704
three_dsserver_trans_id: authentication_response.three_dsserver_trans_id,
77057705
acs_signed_content: authentication_response.acs_signed_content,
77067706
three_ds_requestor_url: authentication_details.three_ds_requestor_url,
7707+
three_ds_requestor_app_url: authentication_details.three_ds_requestor_app_url,
77077708
},
77087709
))
77097710
}

Diff for: crates/router/src/types/transformers.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2016,6 +2016,7 @@ impl ForeignFrom<api_models::admin::AuthenticationConnectorDetails>
20162016
Self {
20172017
authentication_connectors: item.authentication_connectors,
20182018
three_ds_requestor_url: item.three_ds_requestor_url,
2019+
three_ds_requestor_app_url: item.three_ds_requestor_app_url,
20192020
}
20202021
}
20212022
}
@@ -2027,6 +2028,7 @@ impl ForeignFrom<diesel_models::business_profile::AuthenticationConnectorDetails
20272028
Self {
20282029
authentication_connectors: item.authentication_connectors,
20292030
three_ds_requestor_url: item.three_ds_requestor_url,
2031+
three_ds_requestor_app_url: item.three_ds_requestor_app_url,
20302032
}
20312033
}
20322034
}

0 commit comments

Comments
 (0)