juspay/hyperswitch

[FEAT] create macros to implement intermediate traits for connectors

オープン

#1,562 opened on 2023/06/28

 (4 件のコメント) (0 件のリアクション) (1 人の担当者)Rust (4,676 件のフォーク)batch import
C-featureE-mediumgood first issuehelp wanted

Repository metrics

Stars
 (42,690 個のスター)
PR merge metrics
 (平均マージ 6d 22h) (30d で 213 merged PRs)

説明

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

コントリビューターガイド