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::{errors, id_type};
use diesel_models::card_issuer;
#[router_derive::track_async_interface]
#[async_trait::async_trait]
pub trait CardIssuersInterface {
type Error;
async fn insert_card_issuer(
&self,
new: card_issuer::NewCardIssuer,
) -> errors::CustomResult<card_issuer::CardIssuer, Self::Error>;
async fn update_card_issuer(
&self,
id: id_type::CardIssuerId,
update: card_issuer::UpdateCardIssuer,
) -> errors::CustomResult<card_issuer::CardIssuer, Self::Error>;
async fn delete_card_issuer(
&self,
id: id_type::CardIssuerId,
) -> errors::CustomResult<bool, Self::Error>;
async fn list_card_issuers(
&self,
limit: i64,
) -> errors::CustomResult<Vec<card_issuer::CardIssuerListItem>, Self::Error>;
async fn get_card_issuers_by_ids(
&self,
ids: Vec<id_type::CardIssuerId>,
) -> errors::CustomResult<Vec<card_issuer::CardIssuer>, Self::Error>;
}