Skip to content

Commit

Permalink
Merge pull request #845 from duffelhq/jo-prepare-new-payment-types
Browse files Browse the repository at this point in the history
fix: expand and change payment types
  • Loading branch information
jekku authored Nov 21, 2023
2 parents c2115dc + ad0096d commit f57c6a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Stays/StaysTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ export interface StaysRate {
id: string

/**
* The accepted payment method for this rate. Prepaid rates require payment at time of reservation. Accepted types: prepaid
* The accepted payment method for this rate. Prepaid rates require payment at time of reservation. Accepted types: pay_now, guarantee
*/
payment_type: 'prepaid'
payment_type: 'pay_now' | 'guarantee'

/**
* The supplier from which Duffel got this rate
Expand Down
4 changes: 2 additions & 2 deletions src/Stays/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const MOCK_ACCOMMODATION: StaysAccommodation = {
tax_currency: 'GBP',
tax_amount: '133.17',
supplier: 'priceline',
payment_type: 'prepaid',
payment_type: 'pay_now',
id: 'rat_0000ASuebQfixzpI2v20qe',
due_at_accommodation_currency: 'USD',
due_at_accommodation_amount: '39.95',
Expand All @@ -57,7 +57,7 @@ export const MOCK_ACCOMMODATION: StaysAccommodation = {
tax_currency: 'GBP',
tax_amount: '133.17',
supplier: 'priceline',
payment_type: 'prepaid',
payment_type: 'pay_now',
id: 'rat_0000ASuebQfixzpI2v20bx',
due_at_accommodation_currency: 'GBP',
due_at_accommodation_amount: '39.95',
Expand Down

0 comments on commit f57c6a0

Please sign in to comment.