BA-52: Fix merchstat marshalling (#152)

This commit is contained in:
Andrew Mayorov 2018-01-25 20:04:00 +03:00 committed by GitHub
parent f653e420a0
commit 1673261ca1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2773,6 +2773,14 @@ merchstat_to_domain({payment_terminal, #merchstat_PaymentTerminal{
terminal_type = Type}}
) ->
{payment_terminal, #domain_PaymentTerminal{terminal_type = Type}};
merchstat_to_domain({digital_wallet, #merchstat_DigitalWallet{
provider = Provider,
id = ID
}}) ->
{digital_wallet, #domain_DigitalWallet{
provider = Provider,
id = ID
}};
merchstat_to_domain({bank_card, #merchstat_PayoutCard{card = BankCard}}) ->
merchstat_to_domain({bank_card, BankCard});
merchstat_to_domain({bank_account, #merchstat_PayoutAccount{account = #merchstat_BankAccount{