Skip to content

Commit

Permalink
Merge pull request #376 from Mangopay/improvement/add-reference-to-pa…
Browse files Browse the repository at this point in the history
…ypal

improvement/Added reference to the new PayPal implementation
  • Loading branch information
iulian03 authored Nov 2, 2023
2 parents 40cbafc + b56132d commit 4e6113d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/models/Refund.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ var Refund = Transaction.extend({
InitialTransactionType: null,
DebitedWalletId: null,
CreditedWalletId: null,
RefundReason: null
RefundReason: null,
Reference: null
}),

getSubObjects: function() {
return {
'RefundReason': RefundReasonDetails
}
};
}
});

Expand Down
1 change: 1 addition & 0 deletions test/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ module.exports = {
}
],
ShippingPreference: "NO_SHIPPING",
Reference: "Reference",
Tag: "tag",
StatementDescriptor: "test"
};
Expand Down
1 change: 1 addition & 0 deletions typings/mangopay2-nodejs-sdk-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@ api.PayIns.createPayPal({
ReturnURL: "http://test.com",
Tag: "test tag",
StatementDescriptor: "test",
Reference: "Reference",
Culture: "FR"
}).then(data => {
const d = data; // $ExpectType PayPalWebPayInData
Expand Down
4 changes: 4 additions & 0 deletions typings/models/payIn.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,8 @@ export namespace payIn {
Culture: CountryISO;

ShippingPreference: ShippingPreference;

Reference: string;
}

interface MultibancoWebPayInData extends BasePayInData {
Expand Down Expand Up @@ -581,6 +583,8 @@ export namespace payIn {
Culture?: CountryISO;

ShippingPreference?: ShippingPreference;

Reference?: string;
}

interface CreateMultibancoWebPayIn {
Expand Down

0 comments on commit 4e6113d

Please sign in to comment.