Skip to content

Commit d2fefc1

Browse files
committed
address pr comments
1 parent 1a20ce6 commit d2fefc1

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

api-reference/v1/openapi_spec_v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7767,7 +7767,7 @@
77677767
],
77687768
"properties": {
77697769
"payment_data": {
7770-
"$ref": "#/components/schemas/Connector"
7770+
"$ref": "#/components/schemas/ApplePayPaymentData"
77717771
},
77727772
"payment_method": {
77737773
"$ref": "#/components/schemas/ApplepayPaymentMethod"

api-reference/v2/openapi_spec_v2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4775,7 +4775,7 @@
47754775
],
47764776
"properties": {
47774777
"payment_data": {
4778-
"$ref": "#/components/schemas/Connector"
4778+
"$ref": "#/components/schemas/ApplePayPaymentData"
47794779
},
47804780
"payment_method": {
47814781
"$ref": "#/components/schemas/ApplepayPaymentMethod"

crates/api_models/src/payments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3986,7 +3986,7 @@ pub struct GpayTokenizationData {
39863986
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]
39873987
pub struct ApplePayWalletData {
39883988
/// The payment data of Apple pay
3989-
#[schema(value_type = Connector)]
3989+
#[schema(value_type = ApplePayPaymentData)]
39903990
pub payment_data: common_types::payments::ApplePayPaymentData,
39913991
/// The payment method of Apple pay
39923992
pub payment_method: ApplepayPaymentMethod,

crates/hyperswitch_domain_models/src/router_data.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::{collections::HashMap, marker::PhantomData};
22

3-
use common_types::primitive_wrappers;
3+
use common_types::{primitive_wrappers, payments as common_payment_types};
44
use common_utils::{
55
errors::IntegrityCheckError,
66
ext_traits::{OptionExt, ValueExt},
@@ -244,7 +244,7 @@ pub struct AccessToken {
244244
#[derive(Debug, Clone, serde::Deserialize)]
245245
pub enum PaymentMethodToken {
246246
Token(Secret<String>),
247-
ApplePayDecrypt(Box<common_types::payments::ApplePayPredecryptData>),
247+
ApplePayDecrypt(Box<common_payment_types::ApplePayPredecryptData>),
248248
GooglePayDecrypt(Box<GooglePayDecryptedData>),
249249
PazeDecrypt(Box<PazeDecryptedData>),
250250
}
@@ -268,7 +268,7 @@ pub struct ApplePayCryptogramDataInternal {
268268
pub eci_indicator: Option<String>,
269269
}
270270

271-
impl TryFrom<ApplePayPredecryptDataInternal> for common_types::payments::ApplePayPredecryptData {
271+
impl TryFrom<ApplePayPredecryptDataInternal> for common_payment_types::ApplePayPredecryptData {
272272
type Error = common_utils::errors::ValidationError;
273273
fn try_from(data: ApplePayPredecryptDataInternal) -> Result<Self, Self::Error> {
274274
let application_expiration_month = data.clone().get_expiry_month()?;
@@ -283,7 +283,7 @@ impl TryFrom<ApplePayPredecryptDataInternal> for common_types::payments::ApplePa
283283
}
284284
}
285285

286-
impl From<ApplePayCryptogramDataInternal> for common_types::payments::ApplePayCryptogramData {
286+
impl From<ApplePayCryptogramDataInternal> for common_payment_types::ApplePayCryptogramData {
287287
fn from(payment_data: ApplePayCryptogramDataInternal) -> Self {
288288
Self {
289289
online_payment_cryptogram: payment_data.online_payment_cryptogram,

0 commit comments

Comments
 (0)