Skip to content

Commit 4ea3de0

Browse files
authored
Merge pull request #1147 from duffelhq/jekri/stay-4571-instant_payment-filter-update-js-sdk-types-and-search
feat(stays): add instant_payment to search params
2 parents 1f17a45 + 04b2b07 commit 4ea3de0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Stays/Stays.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ describe('Stays', () => {
2525
rooms: 1,
2626
mobile: false,
2727
free_cancellation_only: false,
28+
instant_payment: null,
2829
}
2930

3031
nock(/(.*)/)

src/Stays/StaysTypes.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,11 @@ interface CommonStaysSearchParams {
713713
guests: Array<Guest>
714714
mobile?: boolean
715715
free_cancellation_only?: boolean
716+
/**
717+
* Preview: when `true`, only pay-now (Duffel/source) rates; when `false`, only pay-at-property;
718+
* when `null` or omitted, all rates. See Duffel Stays search API schema.
719+
*/
720+
instant_payment?: boolean | null
716721
}
717722

718723
export type LocationParams = {

0 commit comments

Comments
 (0)