Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions proto/domain.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -2781,8 +2781,44 @@ struct ExternalPaymentRoute {
1: required ShopConfigRef shop
}

/**
* `wallet` — откуда слать
* `resource_type` — во что маппить вход (account_number и т.п.).
*/
struct ExternalWithdrawalRoute {
1: required WalletConfigRef wallet
2: required DestinationResourceType resource_type
}

/**
* Дискриминатор пайплайна method → WAPI Destination.resource.
*/
union DestinationResourceType {
/** account_number = PAN */
1: BankCardDestinationResourceType bank_card

/**
* payment_service.id = swagger `type` (= ResourceGeneric.provider),
* (для mobile account_number → phoneNumber).
*/
2: GenericDestinationResourceType generic

/**
* DigitalWalletDestinationResource{id, provider}.
* provider.id = Qiwi / …
* account_number → id.
*/
3: DigitalWalletDestinationResourceType digital_wallet
}

struct BankCardDestinationResourceType {}

struct GenericDestinationResourceType {
1: required PaymentServiceRef payment_service
}

struct DigitalWalletDestinationResourceType {
1: required PaymentServiceRef provider
}

typedef string PartyRouteID
Expand Down
Loading