Skip to content

Commit f57c6a0

Browse files
authored
Merge pull request #845 from duffelhq/jo-prepare-new-payment-types
fix: expand and change payment types
2 parents c2115dc + ad0096d commit f57c6a0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Stays/StaysTypes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ export interface StaysRate {
113113
id: string
114114

115115
/**
116-
* The accepted payment method for this rate. Prepaid rates require payment at time of reservation. Accepted types: prepaid
116+
* The accepted payment method for this rate. Prepaid rates require payment at time of reservation. Accepted types: pay_now, guarantee
117117
*/
118-
payment_type: 'prepaid'
118+
payment_type: 'pay_now' | 'guarantee'
119119

120120
/**
121121
* The supplier from which Duffel got this rate

src/Stays/mocks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const MOCK_ACCOMMODATION: StaysAccommodation = {
3131
tax_currency: 'GBP',
3232
tax_amount: '133.17',
3333
supplier: 'priceline',
34-
payment_type: 'prepaid',
34+
payment_type: 'pay_now',
3535
id: 'rat_0000ASuebQfixzpI2v20qe',
3636
due_at_accommodation_currency: 'USD',
3737
due_at_accommodation_amount: '39.95',
@@ -57,7 +57,7 @@ export const MOCK_ACCOMMODATION: StaysAccommodation = {
5757
tax_currency: 'GBP',
5858
tax_amount: '133.17',
5959
supplier: 'priceline',
60-
payment_type: 'prepaid',
60+
payment_type: 'pay_now',
6161
id: 'rat_0000ASuebQfixzpI2v20bx',
6262
due_at_accommodation_currency: 'GBP',
6363
due_at_accommodation_amount: '39.95',

0 commit comments

Comments
 (0)