Skip to content

Commit

Permalink
Merge pull request #766 from duffelhq/UXP-3088
Browse files Browse the repository at this point in the history
fix: add new payment_method to stays rate
  • Loading branch information
andrejak committed Jul 26, 2023
2 parents 35d0362 + 565ce20 commit 42a521c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Stays/StaysTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ export interface StaysRate {
* The currency of the total_amount, as an ISO 4217 currency code
*/
total_currency: string

/**
* The method available for payment of this rate. A rate with the `balance` payment type will be paid for using your Duffel Balance, and a rate with the `card` payment type will be paid for with card details provided at time of booking.
*/
payment_method: 'balance' | 'card'
}

export interface StaysPhoto {
Expand Down
2 changes: 2 additions & 0 deletions src/Stays/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export const MOCK_ACCOMMODATION: StaysAccommodation = {
fee_amount: '40.00',
cancellation_timeline: [],
board_type: 'room_only',
payment_method: 'balance',
},
{
total_currency: 'GBP',
Expand Down Expand Up @@ -73,6 +74,7 @@ export const MOCK_ACCOMMODATION: StaysAccommodation = {
fee_amount: '40.00',
cancellation_timeline: [],
board_type: 'room_only',
payment_method: 'card',
},
],
photos: [
Expand Down

0 comments on commit 42a521c

Please sign in to comment.