api contract change for applepay (#693)

This commit is contained in:
Sangamesh Kulkarni
2023-03-01 00:44:16 +05:30
committed by GitHub
parent cf71d7aa3b
commit 4f4b9d7f5f
9 changed files with 12 additions and 78 deletions

View File

@ -560,35 +560,13 @@ pub struct GpayTokenizationData {
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]
pub struct ApplePayWalletData {
/// The payment data of Apple pay
pub payment_data: ApplepayPaymentData,
pub payment_data: String,
/// The payment method of Apple pay
pub payment_method: ApplepayPaymentMethod,
/// The unique identifier for the transaction
pub transaction_identifier: String,
}
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]
pub struct ApplepayPaymentData {
/// The data of Apple pay payment
pub data: String,
/// A string which represents the properties of a payment
pub signature: String,
/// The Apple pay header
pub header: ApplepayHeader,
/// The Apple Pay version used
pub version: String,
}
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]
pub struct ApplepayHeader {
/// The public key hash used
pub public_key_hash: String,
/// The ephemeral public key used
pub ephemeral_public_key: String,
/// The unique identifier for the transaction
pub transaction_id: String,
}
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]
pub struct ApplepayPaymentMethod {
/// The name to be displayed on Apple Pay button