Skip to content

Commit

Permalink
Added reference to GET /payins/payment_id/refunds
Browse files Browse the repository at this point in the history
  • Loading branch information
Silviana Ghita committed Oct 17, 2023
1 parent fa54d13 commit 57967b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mangopay/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ class PayPalWebPayIn(PayIn):
culture = CharField(api_name='Culture')
shipping_preference = CharField(api_name='ShippingPreference', choices=constants.SHIPPING_PREFERENCE_CHOICES,
default=None)
reference = CharField(api_name="Reference", required=False)
reference = CharField(api_name='Reference')

class Meta:
verbose_name = 'payin'
Expand Down Expand Up @@ -1310,6 +1310,7 @@ class Refund(BaseModel):
initial_transaction_id = CharField(api_name='InitialTransactionId')
initial_transaction_type = CharField(api_name='InitialTransactionType', choices=constants.TRANSACTION_TYPE_CHOICES,
default=None)
reference = CharField(api_name='Reference')

class Meta:
verbose_name = 'refund'
Expand Down Expand Up @@ -1345,7 +1346,7 @@ class PayInRefund(Refund):
debited_funds = MoneyField(api_name='DebitedFunds')
fees = MoneyField(api_name='Fees')
payin = ForeignKeyField(PayIn)
reference = CharField(api_name="Reference", required=False)
reference = CharField(api_name='Reference')

class Meta:
verbose_name = 'refund'
Expand Down

0 comments on commit 57967b8

Please sign in to comment.