fix: payment method bug fix (#194)

This commit is contained in:
Manoj Ghorela
2022-12-23 00:58:13 +05:30
committed by GitHub
parent de30489ce3
commit 5477cc98ff
4 changed files with 37 additions and 20 deletions

View File

@ -6,7 +6,6 @@ use crate::enums as api_enums;
#[derive(Debug, serde::Deserialize, serde::Serialize, Clone)]
#[serde(deny_unknown_fields)]
pub struct CreatePaymentMethod {
pub merchant_id: Option<String>,
pub payment_method: api_enums::PaymentMethodType,
pub payment_method_type: Option<api_enums::PaymentMethodSubType>,
pub payment_method_issuer: Option<String>,
@ -35,6 +34,8 @@ pub struct CardDetail {
#[derive(Debug, serde::Deserialize, serde::Serialize)]
pub struct PaymentMethodResponse {
pub merchant_id: String,
pub customer_id: Option<String>,
pub payment_method_id: String,
pub payment_method: api_enums::PaymentMethodType,
pub payment_method_type: Option<api_enums::PaymentMethodSubType>,