Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
use common_utils::id_type;
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use time::PrimitiveDateTime;
use crate::schema::card_issuers;
#[derive(
Clone, Debug, Queryable, Identifiable, Selectable, serde::Serialize, serde::Deserialize,
)]
#[diesel(table_name = card_issuers, check_for_backend(diesel::pg::Pg))]
pub struct CardIssuer {
pub id: id_type::CardIssuerId,
pub issuer_name: String,
pub created_at: PrimitiveDateTime,
pub last_modified_at: PrimitiveDateTime,
}
#[derive(Clone, Debug, Queryable, serde::Serialize, serde::Deserialize)]
pub struct CardIssuerListItem {
pub id: id_type::CardIssuerId,
pub issuer_name: String,
}
#[derive(Clone, Debug, AsChangeset, serde::Serialize, serde::Deserialize)]
#[diesel(table_name = card_issuers)]
pub struct UpdateCardIssuer {
pub issuer_name: String,
pub last_modified_at: PrimitiveDateTime,
}
#[derive(Clone, Debug, Insertable, serde::Serialize, serde::Deserialize)]
#[diesel(table_name = card_issuers)]
pub struct NewCardIssuer {
pub id: id_type::CardIssuerId,
pub issuer_name: String,
pub created_at: PrimitiveDateTime,
pub last_modified_at: PrimitiveDateTime,
}