feat(payment_methods_v2): Payment method Create API (#5812)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sarthak Soni
2024-09-18 12:22:09 +05:30
committed by GitHub
parent 0442004024
commit be902ffa53
35 changed files with 2168 additions and 798 deletions

View File

@ -77,7 +77,7 @@ pub struct PaymentMethod {
pub payment_method_billing_address: OptionalEncryptableValue,
pub updated_by: Option<String>,
pub locker_fingerprint_id: Option<String>,
pub id: String,
pub id: common_utils::id_type::GlobalPaymentMethodId,
pub version: common_enums::ApiVersion,
pub network_token_requestor_reference_id: Option<String>,
pub network_token_locker_id: Option<String>,
@ -94,7 +94,7 @@ impl PaymentMethod {
}
#[cfg(all(feature = "v2", feature = "payment_methods_v2"))]
pub fn get_id(&self) -> &String {
pub fn get_id(&self) -> &common_utils::id_type::GlobalPaymentMethodId {
&self.id
}
}