juspay/hyperswitch

[FEAT] create macros to implement intermediate traits for connectors

Ouverte

#1 562 ouverte le 28 juin 2023

 (4 commentaires) (0 réaction) (1 personne assignée)Rust (4 676 forks)batch import
C-featureE-mediumgood first issuehelp wanted

Métriques du dépôt

Stars
 (42 690 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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

Guide contributeur