mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat: cards info api (#749)
Co-authored-by: Jagan <jaganelavarasan@gmail.com> Co-authored-by: Kartikeya Hegde <karthikey.hegde@juspay.in> Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
@ -1 +0,0 @@
|
||||
|
||||
31
crates/api_models/src/cards_info.rs
Normal file
31
crates/api_models/src/cards_info.rs
Normal file
@ -0,0 +1,31 @@
|
||||
use std::fmt::Debug;
|
||||
|
||||
use utoipa::ToSchema;
|
||||
|
||||
#[derive(serde::Deserialize, ToSchema)]
|
||||
pub struct CardsInfoRequestParams {
|
||||
#[schema(example = "pay_OSERgeV9qAy7tlK7aKpc_secret_TuDUoh11Msxh12sXn3Yp")]
|
||||
pub client_secret: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(serde::Deserialize, Debug)]
|
||||
pub struct CardsInfoRequest {
|
||||
pub client_secret: Option<String>,
|
||||
pub card_iin: String,
|
||||
}
|
||||
|
||||
#[derive(serde::Serialize, Debug, ToSchema)]
|
||||
pub struct CardInfoResponse {
|
||||
#[schema(example = "374431")]
|
||||
pub card_iin: String,
|
||||
#[schema(example = "AMEX")]
|
||||
pub card_issuer: Option<String>,
|
||||
#[schema(example = "AMEX")]
|
||||
pub card_network: Option<String>,
|
||||
#[schema(example = "CREDIT")]
|
||||
pub card_type: Option<String>,
|
||||
#[schema(example = "CLASSIC")]
|
||||
pub card_sub_type: Option<String>,
|
||||
#[schema(example = "INDIA")]
|
||||
pub card_issuing_country: Option<String>,
|
||||
}
|
||||
@ -2,7 +2,7 @@
|
||||
pub mod admin;
|
||||
pub mod api_keys;
|
||||
pub mod bank_accounts;
|
||||
pub mod cards;
|
||||
pub mod cards_info;
|
||||
pub mod customers;
|
||||
pub mod disputes;
|
||||
pub mod enums;
|
||||
|
||||
Reference in New Issue
Block a user