@gofynd/fdk-client-javascript 1.4.16-beta.2 → 1.4.16-beta.3
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/README.md
CHANGED
|
@@ -237,7 +237,7 @@ console.log("Active Theme: ", response.information.name);
|
|
|
237
237
|
The above code will log the curl command in the console
|
|
238
238
|
|
|
239
239
|
```bash
|
|
240
|
-
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.16-beta.
|
|
240
|
+
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 1.4.16-beta.3' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
|
|
241
241
|
Active Theme: Emerge
|
|
242
242
|
```
|
|
243
243
|
|
package/package.json
CHANGED
|
@@ -215,7 +215,7 @@ declare class Cart {
|
|
|
215
215
|
* @summary: List all available promotions of the sales channel
|
|
216
216
|
* @description: List all promotional offers available for the sales channel, including details such as offer text, unique promotion ID, and validity period. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPromotions/).
|
|
217
217
|
*/
|
|
218
|
-
getPromotions({ pageSize, pageNo, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<Promotions>;
|
|
218
|
+
getPromotions({ pageSize, pageNo, promotionType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<Promotions>;
|
|
219
219
|
/**
|
|
220
220
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
221
221
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
@@ -897,12 +897,15 @@ class Cart {
|
|
|
897
897
|
* @description: List all promotional offers available for the sales channel, including details such as offer text, unique promotion ID, and validity period. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPromotions/).
|
|
898
898
|
*/
|
|
899
899
|
async getPromotions(
|
|
900
|
-
{ pageSize, pageNo, requestHeaders } = {
|
|
900
|
+
{ pageSize, pageNo, promotionType, requestHeaders } = {
|
|
901
|
+
requestHeaders: {},
|
|
902
|
+
},
|
|
901
903
|
{ responseHeaders } = { responseHeaders: false }
|
|
902
904
|
) {
|
|
903
905
|
const query_params = {};
|
|
904
906
|
query_params["page_size"] = pageSize;
|
|
905
907
|
query_params["page_no"] = pageNo;
|
|
908
|
+
query_params["promotion_type"] = promotionType;
|
|
906
909
|
|
|
907
910
|
const xHeaders = {};
|
|
908
911
|
|