mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
32 lines
894 B
Rust
32 lines
894 B
Rust
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, serde::Serialize)]
|
|
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>,
|
|
}
|