diff --git a/mangopay/resources.py b/mangopay/resources.py index 40204f5..71a611b 100644 --- a/mangopay/resources.py +++ b/mangopay/resources.py @@ -1488,6 +1488,7 @@ class Refund(BaseModel): initial_transaction_type = CharField(api_name='InitialTransactionType', choices=constants.TRANSACTION_TYPE_CHOICES, default=None) reference = CharField(api_name='Reference') + statement_descriptor = CharField(api_name='StatementDescriptor') class Meta: verbose_name = 'refund' @@ -1524,6 +1525,7 @@ class PayInRefund(Refund): fees = MoneyField(api_name='Fees') payin = ForeignKeyField(PayIn) reference = CharField(api_name='Reference') + statement_descriptor = CharField(api_name='StatementDescriptor') class Meta: verbose_name = 'refund' diff --git a/tests/test_refunds.py b/tests/test_refunds.py index 0ebe066..f7951d7 100644 --- a/tests/test_refunds.py +++ b/tests/test_refunds.py @@ -403,7 +403,8 @@ def test_create_payin_refund(self): params = { "author": self.card.user, - "payin": direct_payin + "payin": direct_payin, + "statement_descriptor": "My descriptor" } payin_refund = PayInRefund(**params)