juspay/hyperswitch

[FEAT] create macros to implement intermediate traits for connectors

Aperta

#1562 aperta il 28 giu 2023

 (4 commenti) (0 reazioni) (1 assegnatario)Rust (4676 fork)batch import
C-featureE-mediumgood first issuehelp wanted

Metriche repository

Star
 (42.690 stelle)
Metriche merge PR
 (Merge medio 6g 22h) (213 PR mergiate in 30 g)

Descrizione

while adding connectors we need to implement intermediate traits while allow us to implement ConnectorIntegration. Example of such implementations are:

impl api::Payment for Stripe {}

impl api::PaymentAuthorize for Stripe {}
impl api::PaymentSync for Stripe {}
impl api::PaymentVoid for Stripe {}
impl api::PaymentCapture for Stripe {}
impl api::PaymentSession for Stripe {}
impl api::ConnectorAccessToken for Stripe {}

create a declarative macro to automate this, and other such implementations

Guida contributor