@duffel/api 4.22.1 → 4.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/typings.d.ts CHANGED
@@ -962,6 +962,11 @@ declare module '@duffel/api/Stays/StaysTypes' {
962
962
  guests: Array<Guest>;
963
963
  mobile?: boolean;
964
964
  free_cancellation_only?: boolean;
965
+ /**
966
+ * Preview: when `true`, only pay-now (Duffel/source) rates; when `false`, only pay-at-property;
967
+ * when `null` or omitted, all rates. See Duffel Stays search API schema.
968
+ */
969
+ instant_payment?: boolean | null;
965
970
  }
966
971
  export type LocationParams = {
967
972
  radius: number;
@@ -1726,6 +1731,11 @@ declare module '@duffel/api/booking/Offers/Offers' {
1726
1731
  * @param {Object.<GetOfferPricedParams>} params - The intended payment methods and services of the offer
1727
1732
  */
1728
1733
  getPriced: (offerId: string, params: GetOfferPricedParams) => Promise<DuffelResponse<OfferPriced>>;
1734
+ /**
1735
+ * Retrieve all fare brands given a basic fare offer. Applicable only for some airlines. All of the returned offers have the same itinerary.
1736
+ * @param {string} offerId - Duffel's unique identifier for the offer
1737
+ */
1738
+ upsellFares: (offerId: string) => Promise<DuffelResponse<Offer[]>>;
1729
1739
  }
1730
1740
  export {};
1731
1741
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duffel/api",
3
- "version": "4.22.1",
3
+ "version": "4.24.0",
4
4
  "description": "Javascript client library for the Duffel API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -65,7 +65,7 @@
65
65
  },
66
66
  "devDependencies": {
67
67
  "@babel/core": "7.29.0",
68
- "@babel/preset-env": "7.29.0",
68
+ "@babel/preset-env": "7.29.2",
69
69
  "@babel/preset-typescript": "7.28.5",
70
70
  "@commitlint/cli": "17.8.1",
71
71
  "@commitlint/config-angular": "17.8.1",
@@ -95,7 +95,7 @@
95
95
  "semantic-release": "22.0.12",
96
96
  "ts-jest": "29.4.6",
97
97
  "ts-node": "10.9.2",
98
- "typescript": "5.7.3"
98
+ "typescript": "5.9.3"
99
99
  },
100
100
  "engines": {
101
101
  "node": ">=18.*"