Skip to content

Commit 80af794

Browse files
committed
[Auto Generated] 3.20.0
1 parent 42b51f8 commit 80af794

39 files changed

+1487
-567
lines changed

CHANGELOG.md

Lines changed: 396 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ console.log("Active Theme: ", response.information.name);
234234
The above code will log the curl command in the console
235235

236236
```bash
237-
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.19.0' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
237+
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.20.0' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
238238
Active Theme: Emerge
239239
```
240240

dist/application.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/application.js.LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
* @license MIT
66
*/
77

8-
/*! Axios v1.13.5 Copyright (c) 2026 Matt Zabriskie and contributors */
8+
/*! Axios v1.13.6 Copyright (c) 2026 Matt Zabriskie and contributors */
99

1010
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

package-lock.json

Lines changed: 43 additions & 62 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gofynd/fdk-client-javascript",
3-
"version": "3.19.0",
3+
"version": "3.20.0",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

sdk/application/Cart/CartApplicationClient.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ declare class Cart {
102102
* @summary: Checkout cart
103103
* @description: The checkout cart initiates the order creation process based on the items in the user's cart, their selected address, and chosen payment methods. It also supports multiple payment method options and revalidates the cart details to ensure a secure and seamless order placement. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/checkoutCartV2/).
104104
*/
105-
checkoutCartV2({ body, xOrderingSource, buyNow, cartType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartCheckoutResult>;
105+
checkoutCartV2({ body, xOrderingSource, xLocationDetail, xCurrencyCode, buyNow, cartType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartCheckoutResult>;
106106
/**
107107
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
108108
* @param {import("../ApplicationAPIClient").Options} - Options
@@ -298,7 +298,7 @@ declare class Cart {
298298
* @returns {Promise<UpdateAddressResult>} - Success response
299299
* @name updateAddress
300300
* @summary: Updates an existing customer address
301-
* @description: Customer can modify the details of a previously saved addresses. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/updateAddress/).
301+
* @description: Customer can modify the details of a previously saved address. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/updateAddress/).
302302
*/
303303
updateAddress({ id, body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<UpdateAddressResult>;
304304
/**

sdk/application/Cart/CartApplicationClient.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,15 @@ class Cart {
338338
* @description: The checkout cart initiates the order creation process based on the items in the user's cart, their selected address, and chosen payment methods. It also supports multiple payment method options and revalidates the cart details to ensure a secure and seamless order placement. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/checkoutCartV2/).
339339
*/
340340
async checkoutCartV2(
341-
{ body, xOrderingSource, buyNow, cartType, requestHeaders } = {
342-
requestHeaders: {},
343-
},
341+
{
342+
body,
343+
xOrderingSource,
344+
xLocationDetail,
345+
xCurrencyCode,
346+
buyNow,
347+
cartType,
348+
requestHeaders,
349+
} = { requestHeaders: {} },
344350
{ responseHeaders } = { responseHeaders: false }
345351
) {
346352
const query_params = {};
@@ -349,6 +355,8 @@ class Cart {
349355

350356
const xHeaders = {};
351357
xHeaders["x-ordering-source"] = xOrderingSource;
358+
xHeaders["x-location-detail"] = xLocationDetail;
359+
xHeaders["x-currency-code"] = xCurrencyCode;
352360

353361
const response = await ApplicationAPIClient.execute(
354362
this._conf,
@@ -1314,7 +1322,7 @@ class Cart {
13141322
* @returns {Promise<UpdateAddressResult>} - Success response
13151323
* @name updateAddress
13161324
* @summary: Updates an existing customer address
1317-
* @description: Customer can modify the details of a previously saved addresses. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/updateAddress/).
1325+
* @description: Customer can modify the details of a previously saved address. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/updateAddress/).
13181326
*/
13191327
async updateAddress(
13201328
{ id, body, requestHeaders } = { requestHeaders: {} },

sdk/partner/Logistics/LogisticsPartnerClient.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ declare class Logistics {
257257
* @summary: Get created Schemes for courier partner
258258
* @description: Get created Schemes for courier partner - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/logistics/getCourierPartnerSchemes/).
259259
*/
260-
getCourierPartnerSchemes({ schemeType, paymentMode, capabilities, schemeIds, requestHeaders }?: LogisticsPartnerValidator.GetCourierPartnerSchemesParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.CourierPartnerSchemeList>;
260+
getCourierPartnerSchemes({ extensionId, schemeType, paymentMode, capabilities, schemeIds, requestHeaders, }?: LogisticsPartnerValidator.GetCourierPartnerSchemesParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.CourierPartnerSchemeList>;
261261
/**
262262
* @param {LogisticsPartnerValidator.UpdateCourierPartnerSchemeParam} arg -
263263
* Arg object.

sdk/partner/Logistics/LogisticsPartnerClient.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2091,15 +2091,21 @@ class Logistics {
20912091
* @description: Get created Schemes for courier partner - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/partner/logistics/getCourierPartnerSchemes/).
20922092
*/
20932093
async getCourierPartnerSchemes(
2094-
{ schemeType, paymentMode, capabilities, schemeIds, requestHeaders } = {
2095-
requestHeaders: {},
2096-
},
2094+
{
2095+
extensionId,
2096+
schemeType,
2097+
paymentMode,
2098+
capabilities,
2099+
schemeIds,
2100+
requestHeaders,
2101+
} = { requestHeaders: {} },
20972102
{ responseHeaders } = { responseHeaders: false }
20982103
) {
20992104
const {
21002105
error,
21012106
} = LogisticsPartnerValidator.getCourierPartnerSchemes().validate(
21022107
{
2108+
extensionId,
21032109
schemeType,
21042110
paymentMode,
21052111
capabilities,
@@ -2116,6 +2122,7 @@ class Logistics {
21162122
error: warrning,
21172123
} = LogisticsPartnerValidator.getCourierPartnerSchemes().validate(
21182124
{
2125+
extensionId,
21192126
schemeType,
21202127
paymentMode,
21212128
capabilities,
@@ -2131,6 +2138,7 @@ class Logistics {
21312138
}
21322139

21332140
const query_params = {};
2141+
query_params["extension_id"] = extensionId;
21342142
query_params["scheme_type"] = schemeType;
21352143
query_params["payment_mode"] = paymentMode;
21362144
query_params["capabilities"] = capabilities;

0 commit comments

Comments
 (0)