Skip to content

Commit

Permalink
added PayoutModeRequested
Browse files Browse the repository at this point in the history
  • Loading branch information
SoloJr committed Feb 5, 2021
1 parent 0902fbd commit 663a02b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions mangopay/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,6 +809,7 @@ class BankWirePayOut(BaseModel):
payment_type = CharField(api_name='PaymentType', choices=constants.PAYOUT_PAYMENT_TYPE, default=None)
execution_type = CharField(api_name='ExecutionType', choices=constants.EXECUTION_TYPE_CHOICES, default=None)
bank_wire_ref = CharField(api_name='BankWireRef')
payout_mode_requested = CharField(api_name='PayoutModeRequested')
credited_user = ForeignKeyField(User, api_name='CreditedUserId')
creation_date = DateTimeField(api_name='CreationDate')

Expand Down
4 changes: 3 additions & 1 deletion tests/test_payouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def test_create_bank_wire_payout(self):
"Id": 30047,
"CreditedFunds": None,
"BankWireRef": "John Doe's trousers",
"PayoutModeRequested": "INSTANT_PAYMENT",
"DebitedFunds": {"Currency": "EUR", "Amount": 1000},
"BankAccountId": 6784645,
"AuthorId": 6784642,
Expand Down Expand Up @@ -82,7 +83,8 @@ def test_create_bank_wire_payout(self):
"Nature": "NORMAL",
"DebitedWalletId": "30025",
"BankAccountId": "30027",
"BankWireRef": "John Doe's trousers"
"BankWireRef": "John Doe's trousers",
"PayoutModeRequested": "INSTANT_PAYMENT"
},
'status': 200
}])
Expand Down

0 comments on commit 663a02b

Please sign in to comment.