mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
feat(router): verify service for applepay merchant registration (#2009)
This commit is contained in:
@ -16,4 +16,5 @@ pub mod payments;
|
||||
#[cfg(feature = "payouts")]
|
||||
pub mod payouts;
|
||||
pub mod refunds;
|
||||
pub mod verifications;
|
||||
pub mod webhooks;
|
||||
|
||||
24
crates/api_models/src/verifications.rs
Normal file
24
crates/api_models/src/verifications.rs
Normal 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,
|
||||
}
|
||||
Reference in New Issue
Block a user