feat(router): verify service for applepay merchant registration (#2009)

This commit is contained in:
Prajjwal Kumar
2023-08-31 13:20:06 +05:30
committed by GitHub
parent 098dc89d0c
commit 636b871b11
11 changed files with 214 additions and 0 deletions

View File

@ -16,4 +16,5 @@ pub mod payments;
#[cfg(feature = "payouts")]
pub mod payouts;
pub mod refunds;
pub mod verifications;
pub mod webhooks;

View File

@ -0,0 +1,24 @@
/// The request body for verification of merchant (everything except domain_names are prefilled)
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ApplepayMerchantVerificationConfigs {
pub domain_names: Vec<String>,
pub encrypt_to: String,
pub partner_internal_merchant_identifier: String,
pub partner_merchant_name: String,
}
/// The derivation point for domain names from request body
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ApplepayMerchantVerificationRequest {
pub domain_names: Vec<String>,
}
/// Response to be sent for the verify/applepay api
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ApplepayMerchantResponse {
pub status_message: String,
pub status_code: String,
}