Data models for card issuer CRUD operations.
// Source: https://github.com/juspay/hyperswitch | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
use common_utils::{events::ApiEventMetric, id_type::CardIssuerId, new_type::CardIssuerName};
use utoipa::ToSchema;
#[derive(Debug, serde::Deserialize, serde::Serialize, ToSchema)]
pub struct CardIssuerRequest {
/// The name of the card issuer to add
#[schema(example = "STATE BANK OF INDIA", value_type = String)]
pub issuer_name: CardIssuerName,
}
#[derive(Debug, serde::Serialize, ToSchema)]
pub struct CardIssuerResponse {
#[schema(value_type = String)]
pub id: CardIssuerId,
#[schema(value_type = String)]
pub issuer_name: CardIssuerName,
}
#[derive(Debug,
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key