From ad0096ddf4631595d4d53f6260e468d7a280db86 Mon Sep 17 00:00:00 2001 From: Jekri Preclaro Orlina Date: Fri, 17 Nov 2023 14:08:41 +0000 Subject: [PATCH] fix: expand and change payment types --- src/Stays/StaysTypes.ts | 4 ++-- src/Stays/mocks.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Stays/StaysTypes.ts b/src/Stays/StaysTypes.ts index 063f18c8..da01e83d 100644 --- a/src/Stays/StaysTypes.ts +++ b/src/Stays/StaysTypes.ts @@ -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 diff --git a/src/Stays/mocks.ts b/src/Stays/mocks.ts index 21e4894f..be430a4d 100644 --- a/src/Stays/mocks.ts +++ b/src/Stays/mocks.ts @@ -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', @@ -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',