Skip to content

Commit fb70076

Browse files
committed
[Auto Generated] 3.9.0
1 parent c030b3c commit fb70076

25 files changed

+1096
-90
lines changed

CHANGELOG.md

Lines changed: 617 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.8.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.9.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.

package-lock.json

Lines changed: 8 additions & 8 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.8.0",
3+
"version": "3.9.0",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

sdk/application/Cart/CartApplicationClient.d.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ declare class Cart {
66
addAddress: string;
77
addItems: string;
88
applyCoupon: string;
9-
applyRewardPoints: string;
9+
applyLoyaltyPoints: string;
1010
checkoutCart: string;
1111
checkoutCartV2: string;
1212
deleteCart: string;
@@ -67,11 +67,11 @@ declare class Cart {
6767
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
6868
* @param {import("../ApplicationAPIClient").Options} - Options
6969
* @returns {Promise<CartDetailResult>} - Success response
70-
* @name applyRewardPoints
71-
* @summary: Use reward points
72-
* @description: Users can redeem their accumulated reward points and apply them to the items in their cart, thereby availing discounts on their current purchases. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/applyRewardPoints/).
70+
* @name applyLoyaltyPoints
71+
* @summary: Use loyalty points
72+
* @description: Users can redeem their accumulated loyalty points and apply them to the items in their cart, thereby availing discounts on their current purchases. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/applyLoyaltyPoints/).
7373
*/
74-
applyRewardPoints({ body, xOrderingSource, id, i, b, buyNow, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResult>;
74+
applyLoyaltyPoints({ body, xOrderingSource, id, i, b, buyNow, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartDetailResult>;
7575
/**
7676
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
7777
* @param {import("../ApplicationAPIClient").Options} - Options
@@ -87,7 +87,7 @@ declare class Cart {
8787
* @returns {Promise<CartCheckoutResult>} - Success response
8888
* @name checkoutCartV2
8989
* @summary: Checkout cart
90-
* @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/).
90+
* @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/).
9191
*/
9292
checkoutCartV2({ body, xOrderingSource, buyNow, cartType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<CartCheckoutResult>;
9393
/**
@@ -276,7 +276,7 @@ declare class Cart {
276276
* @returns {Promise<UpdateCartDetailResult>} - Success response
277277
* @name updateCartBreakup
278278
* @summary: Update store credits into cart and their items
279-
* @description: Update cart. Customers can adjust the cart breakup by applying or removing store credits as needed. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/updateCartBreakup/).
279+
* @description: Update cart. Customers can adjust the cart breakup by applying or removing store credits as needed. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/updateCartBreakup/).
280280
*/
281281
updateCartBreakup({ body, xOrderingSource, id, i, b, buyNow, cartType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<UpdateCartDetailResult>;
282282
/**

sdk/application/Cart/CartApplicationClient.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Cart {
1515
addAddress: "/service/application/cart/v1.0/address",
1616
addItems: "/service/application/cart/v1.0/detail",
1717
applyCoupon: "/service/application/cart/v1.0/coupon",
18-
applyRewardPoints: "/service/application/cart/v1.0/redeem/points/",
18+
applyLoyaltyPoints: "/service/application/cart/v1.0/redeem",
1919
checkoutCart: "/service/application/cart/v1.0/checkout",
2020
checkoutCartV2: "/service/application/cart/v2.0/checkout",
2121
deleteCart: "/service/application/cart/v1.0/cart_archive",
@@ -203,11 +203,11 @@ class Cart {
203203
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
204204
* @param {import("../ApplicationAPIClient").Options} - Options
205205
* @returns {Promise<CartDetailResult>} - Success response
206-
* @name applyRewardPoints
207-
* @summary: Use reward points
208-
* @description: Users can redeem their accumulated reward points and apply them to the items in their cart, thereby availing discounts on their current purchases. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/applyRewardPoints/).
206+
* @name applyLoyaltyPoints
207+
* @summary: Use loyalty points
208+
* @description: Users can redeem their accumulated loyalty points and apply them to the items in their cart, thereby availing discounts on their current purchases. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/applyLoyaltyPoints/).
209209
*/
210-
async applyRewardPoints(
210+
async applyLoyaltyPoints(
211211
{ body, xOrderingSource, id, i, b, buyNow, requestHeaders } = {
212212
requestHeaders: {},
213213
},
@@ -226,7 +226,7 @@ class Cart {
226226
this._conf,
227227
"post",
228228
constructUrl({
229-
url: this._urls["applyRewardPoints"],
229+
url: this._urls["applyLoyaltyPoints"],
230230
params: {},
231231
}),
232232
query_params,
@@ -291,7 +291,7 @@ class Cart {
291291
* @returns {Promise<CartCheckoutResult>} - Success response
292292
* @name checkoutCartV2
293293
* @summary: Checkout cart
294-
* @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/).
294+
* @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/).
295295
*/
296296
async checkoutCartV2(
297297
{ body, xOrderingSource, buyNow, cartType, requestHeaders } = {
@@ -1240,7 +1240,7 @@ class Cart {
12401240
* @returns {Promise<UpdateCartDetailResult>} - Success response
12411241
* @name updateCartBreakup
12421242
* @summary: Update store credits into cart and their items
1243-
* @description: Update cart. Customers can adjust the cart breakup by applying or removing store credits as needed. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/updateCartBreakup/).
1243+
* @description: Update cart. Customers can adjust the cart breakup by applying or removing store credits as needed. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/updateCartBreakup/).
12441244
*/
12451245
async updateCartBreakup(
12461246
{ body, xOrderingSource, id, i, b, buyNow, cartType, requestHeaders } = {

sdk/application/Theme/ThemeApplicationClient.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ declare class Theme {
3434
* @returns {Promise<AvailablePageSchema>} - Success response
3535
* @name getPage
3636
* @summary: Get theme page
37-
* @description: Get page level configurations, applied sections and seo data of a page by `page_value` received from list pages api. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/theme/getPage/).
37+
* @description: Get page level configurations, applied sections and seo data of a page by `page_value` received from list pages api. Supports dynamic URL parameter for custom sections. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/theme/getPage/).
3838
*/
39-
getPage({ themeId, pageValue, filters, sectionPreviewHash, company, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<AvailablePageSchema>;
39+
getPage({ themeId, pageValue, filters, sectionPreviewHash, company, urlParams, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options, ...args: any[]): Promise<AvailablePageSchema>;
4040
/**
4141
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4242
* @param {import("../ApplicationAPIClient").Options} - Options

sdk/application/Theme/ThemeApplicationClient.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class Theme {
123123
* @returns {Promise<AvailablePageSchema>} - Success response
124124
* @name getPage
125125
* @summary: Get theme page
126-
* @description: Get page level configurations, applied sections and seo data of a page by `page_value` received from list pages api. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/theme/getPage/).
126+
* @description: Get page level configurations, applied sections and seo data of a page by `page_value` received from list pages api. Supports dynamic URL parameter for custom sections. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/theme/getPage/).
127127
*/
128128
async getPage(
129129
{
@@ -132,6 +132,7 @@ class Theme {
132132
filters,
133133
sectionPreviewHash,
134134
company,
135+
urlParams,
135136
requestHeaders,
136137
} = { requestHeaders: {} },
137138
{ responseHeaders } = { responseHeaders: false }
@@ -152,6 +153,7 @@ class Theme {
152153
query_params["filters"] = filters;
153154
query_params["section_preview_hash"] = sectionPreviewHash;
154155
query_params["company"] = company;
156+
query_params["url_params"] = urlParams;
155157

156158
const xHeaders = {};
157159

sdk/platform/Cart/CartPlatformApplicationClient.d.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@ declare class Cart {
4343
* @description: Apply a coupon code to the customer's cart to trigger discounts on eligible items - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/applyCoupon/).
4444
*/
4545
applyCoupon({ body, xOrderingSource, i, b, p, id, buyNow, requestHeaders }?: CartPlatformApplicationValidator.ApplyCouponParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
46+
/**
47+
* @param {CartPlatformApplicationValidator.ApplyLoyaltyPointsParam} arg - Arg object
48+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
49+
* @param {import("../PlatformAPIClient").Options} - Options
50+
* @returns {Promise<CartPlatformModel.CartDetailResult>} - Success response
51+
* @name applyLoyaltyPoints
52+
* @summary: Redeem loyalty points.
53+
* @description: Users can redeem their accumulated loyalty points and apply them to the items in their cart, thereby availing discounts on their current purchases. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/cart/applyLoyaltyPoints/).
54+
*/
55+
applyLoyaltyPoints({ body, xOrderingSource, id, i, b, buyNow, requestHeaders }?: CartPlatformApplicationValidator.ApplyLoyaltyPointsParam, { responseHeaders }?: object): Promise<CartPlatformModel.CartDetailResult>;
4656
/**
4757
* @param {CartPlatformApplicationValidator.CheckCartServiceabilityParam} arg
4858
* - Arg object
@@ -448,7 +458,7 @@ declare class Cart {
448458
* @returns {Promise<CartPlatformModel.CartCheckoutDetails>} - Success response
449459
* @name platformCheckoutCartV2
450460
* @summary: Checkout cart
451-
* @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/platform/cart/platformCheckoutCartV2/).
461+
* @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/platform/cart/platformCheckoutCartV2/).
452462
*/
453463
platformCheckoutCartV2({ body, xOrderingSource, id, requestHeaders }?: CartPlatformApplicationValidator.PlatformCheckoutCartV2Param, { responseHeaders }?: object): Promise<CartPlatformModel.CartCheckoutDetails>;
454464
/**

0 commit comments

Comments
 (0)