feat(router): new get route for derivation of verified applepay domain (#2121)

This commit is contained in:
Prajjwal Kumar
2023-09-12 13:05:01 +05:30
committed by GitHub
parent fea5c4d8c1
commit 177d8e5237
4 changed files with 74 additions and 7 deletions

View File

@ -21,5 +21,19 @@ pub struct ApplepayMerchantVerificationRequest {
#[serde(rename_all = "camelCase")]
pub struct ApplepayMerchantResponse {
pub status_message: String,
pub status_code: String,
pub status_code: u16,
}
/// QueryParams to be send by the merchant for fetching the verified domains
#[derive(Debug, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ApplepayGetVerifiedDomainsParam {
pub business_profile_id: String,
}
/// Response to be sent for derivation of the already verified domains
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ApplepayVerifiedDomainsResponse {
pub status_code: u16,
pub verified_domains: Vec<String>,
}