Skip to content

Commit 04b2b07

Browse files
committed
feat(stays): add instant_payment to search params
Made-with: Cursor
1 parent 1f17a45 commit 04b2b07

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)