Skip to content

Commit fbaac5f

Browse files
authored
Merge pull request #1231 from duffelhq/dylan/stay-5487-update-typescript-sdk-to-include-new-deposit-amount-field
feat(stays): add `deposit_amount` and `deposit_currency` to booking
2 parents 321ef21 + f197e3b commit fbaac5f

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

‎src/Stays/StaysTypes.ts‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,21 @@ export interface StaysBooking {
660660
*/
661661
check_out_date: string
662662

663+
/**
664+
* The portion of total_amount that is payable before check in as deposit for the stay.
665+
* If there is no deposit, deposit_amount is "0.00".
666+
*
667+
* Example: "159.80"
668+
*/
669+
deposit_amount: string
670+
671+
/**
672+
* The currency of the deposit_amount, as an ISO 4217 currency code.
673+
*
674+
* Example: "GBP"
675+
*/
676+
deposit_currency: string
677+
663678
/**
664679
* A booking reference for the property you’ll be staying in. This is the reference you should use when contacting the accommodation.
665680
*/

‎src/Stays/mocks.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ export const MOCK_BOOKING: StaysBooking = {
237237
confirmed_at: '2022-12-20T15:45:03.000000Z',
238238
check_out_date: '2023-05-24',
239239
check_in_date: '2023-05-20',
240+
deposit_amount: '159.80',
241+
deposit_currency: 'GBP',
240242
cancelled_at: null,
241243
guests: [
242244
{

0 commit comments

Comments
 (0)