Skip to content

Commit

Permalink
Merge pull request #342 from Mangopay/feature/add-reference-to-paypal
Browse files Browse the repository at this point in the history
feature/ Add reference to the new Paypal implementation
  • Loading branch information
iulian03 authored Nov 2, 2023
2 parents ae53751 + 57967b8 commit 776dd19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mangopay/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,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')

class Meta:
verbose_name = 'payin'
Expand Down Expand Up @@ -1349,6 +1350,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 @@ -1384,6 +1386,7 @@ class PayInRefund(Refund):
debited_funds = MoneyField(api_name='DebitedFunds')
fees = MoneyField(api_name='Fees')
payin = ForeignKeyField(PayIn)
reference = CharField(api_name='Reference')

class Meta:
verbose_name = 'refund'
Expand Down

0 comments on commit 776dd19

Please sign in to comment.