@gofynd/fdk-client-javascript 1.4.15-beta.3 → 1.4.15

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.
Files changed (47) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +11 -11
  4. package/sdk/application/Cart/CartApplicationClient.js +48 -50
  5. package/sdk/application/Content/ContentApplicationClient.d.ts +0 -20
  6. package/sdk/application/Content/ContentApplicationClient.js +0 -78
  7. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +1 -1
  8. package/sdk/application/Logistic/LogisticApplicationClient.js +2 -0
  9. package/sdk/application/Payment/PaymentApplicationClient.d.ts +10 -0
  10. package/sdk/application/Payment/PaymentApplicationClient.js +39 -0
  11. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -12
  12. package/sdk/partner/Logistics/LogisticsPartnerClient.js +209 -38
  13. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +399 -19
  14. package/sdk/partner/Logistics/LogisticsPartnerModel.js +212 -11
  15. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +3 -1
  16. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +22 -7
  17. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +1 -1
  18. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +1 -1
  19. package/sdk/platform/Cart/CartPlatformApplicationClient.js +3 -12
  20. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +0 -7
  21. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +0 -3
  22. package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -14
  23. package/sdk/platform/Cart/CartPlatformModel.js +12 -6
  24. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +24 -0
  25. package/sdk/platform/Catalog/CatalogPlatformClient.js +176 -0
  26. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +80 -29
  27. package/sdk/platform/Catalog/CatalogPlatformModel.js +72 -32
  28. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +45 -1
  29. package/sdk/platform/Catalog/CatalogPlatformValidator.js +35 -0
  30. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -52
  31. package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -411
  32. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -85
  33. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -73
  34. package/sdk/platform/Content/ContentPlatformModel.d.ts +1 -90
  35. package/sdk/platform/Content/ContentPlatformModel.js +0 -104
  36. package/sdk/platform/Order/OrderPlatformClient.d.ts +2 -2
  37. package/sdk/platform/Order/OrderPlatformClient.js +8 -0
  38. package/sdk/platform/Order/OrderPlatformModel.d.ts +75 -3
  39. package/sdk/platform/Order/OrderPlatformModel.js +43 -2
  40. package/sdk/platform/Order/OrderPlatformValidator.d.ts +22 -0
  41. package/sdk/platform/Order/OrderPlatformValidator.js +10 -0
  42. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +94 -0
  43. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +699 -76
  44. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +598 -23
  45. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +382 -20
  46. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +134 -1
  47. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +108 -0
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.15-beta.3' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
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.15' --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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gofynd/fdk-client-javascript",
3
- "version": "1.4.15-beta.3",
3
+ "version": "1.4.15",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,7 +22,6 @@ declare class Cart {
22
22
  getLadderOffers: string;
23
23
  getPromotionOffers: string;
24
24
  getPromotionPaymentOffers: string;
25
- getPromotions: string;
26
25
  getShipments: string;
27
26
  removeAddress: string;
28
27
  removeCoupon: string;
@@ -30,6 +29,7 @@ declare class Cart {
30
29
  selectPaymentMode: string;
31
30
  updateAddress: string;
32
31
  updateCart: string;
32
+ updateCartBreakup: string;
33
33
  updateCartMeta: string;
34
34
  updateCartWithSharedItems: string;
35
35
  validateCouponForPayment: string;
@@ -197,7 +197,7 @@ declare class Cart {
197
197
  * @summary: List available promotion offers
198
198
  * @description: List all promotional offers available for the items in the cart, 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/getPromotionOffers/).
199
199
  */
200
- getPromotionOffers({ slug, pageSize, promotionGroup, storeId, cartType, sortBy, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PromotionOffersResult>;
200
+ getPromotionOffers({ slug, pageSize, promotionGroup, storeId, cartType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PromotionOffersResult>;
201
201
  /**
202
202
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
203
203
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -207,15 +207,6 @@ declare class Cart {
207
207
  * @description: Use this API to get top 5 payment offers available for current product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPromotionPaymentOffers/).
208
208
  */
209
209
  getPromotionPaymentOffers({ id, uid, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<PromotionPaymentOffersResult>;
210
- /**
211
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
212
- * @param {import("../ApplicationAPIClient").Options} - Options
213
- * @returns {Promise<Promotions>} - Success response
214
- * @name getPromotions
215
- * @summary: List all available promotions of the sales channel
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
- */
218
- getPromotions({ pageSize, pageNo, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<Promotions>;
219
210
  /**
220
211
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
221
212
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -279,6 +270,15 @@ declare class Cart {
279
270
  * @description: Update cart. Customers can modify added product attributes such as quantity and size, as well as remove items from the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCart/).
280
271
  */
281
272
  updateCart({ body, id, i, b, areaCode, buyNow, cartType, orderType, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<UpdateCartDetailResult>;
273
+ /**
274
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
275
+ * @param {import("../ApplicationAPIClient").Options} - Options
276
+ * @returns {Promise<UpdateCartDetailResult>} - Success response
277
+ * @name updateCartBreakup
278
+ * @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://partners.fynd.com/help/docs/sdk/application/cart/updateCartBreakup/).
280
+ */
281
+ updateCartBreakup({ body, id, i, b, buyNow, cartType, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<UpdateCartDetailResult>;
282
282
  /**
283
283
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
284
284
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -26,7 +26,6 @@ class Cart {
26
26
  getPromotionOffers: "/service/application/cart/v1.0/available-promotions",
27
27
  getPromotionPaymentOffers:
28
28
  "/service/application/cart/v1.0/available-payment-offers",
29
- getPromotions: "/service/application/cart/v1.0/promotion",
30
29
  getShipments: "/service/application/cart/v1.0/shipment",
31
30
  removeAddress: "/service/application/cart/v1.0/address/{id}",
32
31
  removeCoupon: "/service/application/cart/v1.0/coupon",
@@ -34,6 +33,7 @@ class Cart {
34
33
  selectPaymentMode: "/service/application/cart/v1.0/payment",
35
34
  updateAddress: "/service/application/cart/v1.0/address/{id}",
36
35
  updateCart: "/service/application/cart/v1.0/detail",
36
+ updateCartBreakup: "/service/application/cart/v1.0/detail",
37
37
  updateCartMeta: "/service/application/cart/v1.0/meta",
38
38
  updateCartWithSharedItems:
39
39
  "/service/application/cart/v1.0/share-cart/{token}/{action}",
@@ -783,15 +783,9 @@ class Cart {
783
783
  * @description: List all promotional offers available for the items in the cart, 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/getPromotionOffers/).
784
784
  */
785
785
  async getPromotionOffers(
786
- {
787
- slug,
788
- pageSize,
789
- promotionGroup,
790
- storeId,
791
- cartType,
792
- sortBy,
793
- requestHeaders,
794
- } = { requestHeaders: {} },
786
+ { slug, pageSize, promotionGroup, storeId, cartType, requestHeaders } = {
787
+ requestHeaders: {},
788
+ },
795
789
  { responseHeaders } = { responseHeaders: false }
796
790
  ) {
797
791
  const query_params = {};
@@ -800,7 +794,6 @@ class Cart {
800
794
  query_params["promotion_group"] = promotionGroup;
801
795
  query_params["store_id"] = storeId;
802
796
  query_params["cart_type"] = cartType;
803
- query_params["sort_by"] = sortBy;
804
797
 
805
798
  const xHeaders = {};
806
799
 
@@ -864,45 +857,6 @@ class Cart {
864
857
  return response;
865
858
  }
866
859
 
867
- /**
868
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
869
- * @param {import("../ApplicationAPIClient").Options} - Options
870
- * @returns {Promise<Promotions>} - Success response
871
- * @name getPromotions
872
- * @summary: List all available promotions of the sales channel
873
- * @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/).
874
- */
875
- async getPromotions(
876
- { pageSize, pageNo, requestHeaders } = { requestHeaders: {} },
877
- { responseHeaders } = { responseHeaders: false }
878
- ) {
879
- const query_params = {};
880
- query_params["page_size"] = pageSize;
881
- query_params["page_no"] = pageNo;
882
-
883
- const xHeaders = {};
884
-
885
- const response = await ApplicationAPIClient.execute(
886
- this._conf,
887
- "get",
888
- constructUrl({
889
- url: this._urls["getPromotions"],
890
- params: {},
891
- }),
892
- query_params,
893
- undefined,
894
- { ...xHeaders, ...requestHeaders },
895
- { responseHeaders }
896
- );
897
-
898
- let responseData = response;
899
- if (responseHeaders) {
900
- responseData = response[0];
901
- }
902
-
903
- return response;
904
- }
905
-
906
860
  /**
907
861
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
908
862
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -1195,6 +1149,50 @@ class Cart {
1195
1149
  return response;
1196
1150
  }
1197
1151
 
1152
+ /**
1153
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1154
+ * @param {import("../ApplicationAPIClient").Options} - Options
1155
+ * @returns {Promise<UpdateCartDetailResult>} - Success response
1156
+ * @name updateCartBreakup
1157
+ * @summary: Update store credits into cart and their items
1158
+ * @description: Update cart. Customers can adjust the cart breakup by applying or removing store credits as needed. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartBreakup/).
1159
+ */
1160
+ async updateCartBreakup(
1161
+ { body, id, i, b, buyNow, cartType, requestHeaders } = {
1162
+ requestHeaders: {},
1163
+ },
1164
+ { responseHeaders } = { responseHeaders: false }
1165
+ ) {
1166
+ const query_params = {};
1167
+ query_params["id"] = id;
1168
+ query_params["i"] = i;
1169
+ query_params["b"] = b;
1170
+ query_params["buy_now"] = buyNow;
1171
+ query_params["cart_type"] = cartType;
1172
+
1173
+ const xHeaders = {};
1174
+
1175
+ const response = await ApplicationAPIClient.execute(
1176
+ this._conf,
1177
+ "patch",
1178
+ constructUrl({
1179
+ url: this._urls["updateCartBreakup"],
1180
+ params: {},
1181
+ }),
1182
+ query_params,
1183
+ body,
1184
+ { ...xHeaders, ...requestHeaders },
1185
+ { responseHeaders }
1186
+ );
1187
+
1188
+ let responseData = response;
1189
+ if (responseHeaders) {
1190
+ responseData = response[0];
1191
+ }
1192
+
1193
+ return response;
1194
+ }
1195
+
1198
1196
  /**
1199
1197
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1200
1198
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -21,8 +21,6 @@ declare class Content {
21
21
  getPages: string;
22
22
  getSEOConfiguration: string;
23
23
  getSEOMarkupSchemas: string;
24
- getSlideshow: string;
25
- getSlideshows: string;
26
24
  getSupportInformation: string;
27
25
  getTags: string;
28
26
  };
@@ -190,24 +188,6 @@ declare class Content {
190
188
  * @description: Get all SEO Markup schema Templates setup for an application. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSEOMarkupSchemas/).
191
189
  */
192
190
  getSEOMarkupSchemas({ pageType, active, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SeoSchemaComponent>;
193
- /**
194
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
195
- * @param {import("../ApplicationAPIClient").Options} - Options
196
- * @returns {Promise<SlideshowSchema>} - Success response
197
- * @name getSlideshow
198
- * @summary: Get a Slideshow
199
- * @description: Get a slideshow using its `slug`. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSlideshow/).
200
- */
201
- getSlideshow({ slug, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SlideshowSchema>;
202
- /**
203
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
204
- * @param {import("../ApplicationAPIClient").Options} - Options
205
- * @returns {Promise<SlideshowGetDetails>} - Success response
206
- * @name getSlideshows
207
- * @summary: List Slideshows
208
- * @description: List slideshows along with their details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSlideshows/).
209
- */
210
- getSlideshows({ pageNo, pageSize, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SlideshowGetDetails>;
211
191
  /**
212
192
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
213
193
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -28,8 +28,6 @@ class Content {
28
28
  getPages: "/service/application/content/v2.0/pages",
29
29
  getSEOConfiguration: "/service/application/content/v1.0/seo",
30
30
  getSEOMarkupSchemas: "/service/application/content/v1.0/seo/schema",
31
- getSlideshow: "/service/application/content/v1.0/slideshow/{slug}",
32
- getSlideshows: "/service/application/content/v1.0/slideshow",
33
31
  getSupportInformation: "/service/application/content/v1.0/support",
34
32
  getTags: "/service/application/content/v1.0/tags",
35
33
  };
@@ -728,82 +726,6 @@ class Content {
728
726
  return response;
729
727
  }
730
728
 
731
- /**
732
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
733
- * @param {import("../ApplicationAPIClient").Options} - Options
734
- * @returns {Promise<SlideshowSchema>} - Success response
735
- * @name getSlideshow
736
- * @summary: Get a Slideshow
737
- * @description: Get a slideshow using its `slug`. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSlideshow/).
738
- */
739
- async getSlideshow(
740
- { slug, requestHeaders } = { requestHeaders: {} },
741
- { responseHeaders } = { responseHeaders: false }
742
- ) {
743
- const query_params = {};
744
-
745
- const xHeaders = {};
746
-
747
- const response = await ApplicationAPIClient.execute(
748
- this._conf,
749
- "get",
750
- constructUrl({
751
- url: this._urls["getSlideshow"],
752
- params: { slug },
753
- }),
754
- query_params,
755
- undefined,
756
- { ...xHeaders, ...requestHeaders },
757
- { responseHeaders }
758
- );
759
-
760
- let responseData = response;
761
- if (responseHeaders) {
762
- responseData = response[0];
763
- }
764
-
765
- return response;
766
- }
767
-
768
- /**
769
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
770
- * @param {import("../ApplicationAPIClient").Options} - Options
771
- * @returns {Promise<SlideshowGetDetails>} - Success response
772
- * @name getSlideshows
773
- * @summary: List Slideshows
774
- * @description: List slideshows along with their details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/content/getSlideshows/).
775
- */
776
- async getSlideshows(
777
- { pageNo, pageSize, requestHeaders } = { requestHeaders: {} },
778
- { responseHeaders } = { responseHeaders: false }
779
- ) {
780
- const query_params = {};
781
- query_params["page_no"] = pageNo;
782
- query_params["page_size"] = pageSize;
783
-
784
- const xHeaders = {};
785
-
786
- const response = await ApplicationAPIClient.execute(
787
- this._conf,
788
- "get",
789
- constructUrl({
790
- url: this._urls["getSlideshows"],
791
- params: {},
792
- }),
793
- query_params,
794
- undefined,
795
- { ...xHeaders, ...requestHeaders },
796
- { responseHeaders }
797
- );
798
-
799
- let responseData = response;
800
- if (responseHeaders) {
801
- responseData = response[0];
802
- }
803
-
804
- return response;
805
- }
806
-
807
729
  /**
808
730
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
809
731
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -72,7 +72,7 @@ declare class Logistic {
72
72
  * @summary: Get localities
73
73
  * @description: Get geographical data for a specific type of locality based on the provided filters. For instance, obtain a list of cities for a given country and state. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/logistic/getLocalities/).
74
74
  */
75
- getLocalities({ localityType, country, state, city, pageNo, pageSize, q, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetLocalities>;
75
+ getLocalities({ localityType, country, state, city, pageNo, pageSize, q, sector, requestHeaders, }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<GetLocalities>;
76
76
  /**
77
77
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
78
78
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -254,6 +254,7 @@ class Logistic {
254
254
  pageNo,
255
255
  pageSize,
256
256
  q,
257
+ sector,
257
258
  requestHeaders,
258
259
  } = { requestHeaders: {} },
259
260
  { responseHeaders } = { responseHeaders: false }
@@ -265,6 +266,7 @@ class Logistic {
265
266
  query_params["page_no"] = pageNo;
266
267
  query_params["page_size"] = pageSize;
267
268
  query_params["q"] = q;
269
+ query_params["sector"] = sector;
268
270
 
269
271
  const xHeaders = {};
270
272
 
@@ -42,6 +42,7 @@ declare class Payment {
42
42
  resendOrCancelPayment: string;
43
43
  resendPaymentLink: string;
44
44
  updateDefaultBeneficiary: string;
45
+ validateCustomerAndCreditSummary: string;
45
46
  validateVPA: string;
46
47
  verifyAndChargePayment: string;
47
48
  verifyCustomerForPayment: string;
@@ -403,6 +404,15 @@ declare class Payment {
403
404
  * @description: Update default beneficiary for the order refund of the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/updateDefaultBeneficiary/).
404
405
  */
405
406
  updateDefaultBeneficiary({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<SetDefaultBeneficiaryDetails>;
407
+ /**
408
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
409
+ * @param {import("../ApplicationAPIClient").Options} - Options
410
+ * @returns {Promise<ValidateCustomerCreditSchema>} - Success response
411
+ * @name validateCustomerAndCreditSummary
412
+ * @summary: Verify payment customer and show credit summary
413
+ * @description: Verify if the user is eligible for payment and also show credit summary if activated. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/validateCustomerAndCreditSummary/).
414
+ */
415
+ validateCustomerAndCreditSummary({ body, requestHeaders }?: object, { responseHeaders }?: import("../ApplicationAPIClient").Options): Promise<ValidateCustomerCreditSchema>;
406
416
  /**
407
417
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
408
418
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -71,6 +71,8 @@ class Payment {
71
71
  "/service/application/payment/v1.0/resend-payment-link/",
72
72
  updateDefaultBeneficiary:
73
73
  "/service/application/payment/v1.0/refund/beneficiary/default",
74
+ validateCustomerAndCreditSummary:
75
+ "/service/application/payment/v1.0/payment/validate/customer-credits-v2",
74
76
  validateVPA: "/service/application/payment/v1.0/validate-vpa",
75
77
  verifyAndChargePayment:
76
78
  "/service/application/payment/v1.0/payment/confirm/charge",
@@ -1599,6 +1601,43 @@ class Payment {
1599
1601
  return response;
1600
1602
  }
1601
1603
 
1604
+ /**
1605
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1606
+ * @param {import("../ApplicationAPIClient").Options} - Options
1607
+ * @returns {Promise<ValidateCustomerCreditSchema>} - Success response
1608
+ * @name validateCustomerAndCreditSummary
1609
+ * @summary: Verify payment customer and show credit summary
1610
+ * @description: Verify if the user is eligible for payment and also show credit summary if activated. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/validateCustomerAndCreditSummary/).
1611
+ */
1612
+ async validateCustomerAndCreditSummary(
1613
+ { body, requestHeaders } = { requestHeaders: {} },
1614
+ { responseHeaders } = { responseHeaders: false }
1615
+ ) {
1616
+ const query_params = {};
1617
+
1618
+ const xHeaders = {};
1619
+
1620
+ const response = await ApplicationAPIClient.execute(
1621
+ this._conf,
1622
+ "post",
1623
+ constructUrl({
1624
+ url: this._urls["validateCustomerAndCreditSummary"],
1625
+ params: {},
1626
+ }),
1627
+ query_params,
1628
+ body,
1629
+ { ...xHeaders, ...requestHeaders },
1630
+ { responseHeaders }
1631
+ );
1632
+
1633
+ let responseData = response;
1634
+ if (responseHeaders) {
1635
+ responseData = response[0];
1636
+ }
1637
+
1638
+ return response;
1639
+ }
1640
+
1602
1641
  /**
1603
1642
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1604
1643
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -222,40 +222,61 @@ declare class Logistics {
222
222
  * @description: This API returns response DpAccount of a company from mongo database. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/getCourierPartnerAccount/).
223
223
  */
224
224
  getCourierPartnerAccount({ companyId, accountId, requestHeaders }?: LogisticsPartnerValidator.GetCourierPartnerAccountParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.CourierAccountResult>;
225
+ /**
226
+ * @param {LogisticsPartnerValidator.GetCountriesParam} arg - Arg object.
227
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
228
+ * @param {import("../PartnerAPIClient").Options} - Options
229
+ * @returns {Promise<LogisticsPartnerModel.GetCountries>} - Success response
230
+ * @name getCountries
231
+ * @summary: Get all countries and associated data
232
+ * @description: Retrieve of all countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/getCountries/).
233
+ */
234
+ getCountries({ onboarding, pageNo, pageSize, q, requestHeaders }?: LogisticsPartnerValidator.GetCountriesParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.GetCountries>;
225
235
  /**
226
236
  * @param {LogisticsPartnerValidator.CreateCourierPartnerSchemeParam} arg -
227
237
  * Arg object.
228
238
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
229
239
  * @param {import("../PartnerAPIClient").Options} - Options
230
- * @returns {Promise<LogisticsPartnerModel.CourierPartnerSchemeModel>} -
240
+ * @returns {Promise<LogisticsPartnerModel.CourierPartnerV2SchemeModel>} -
231
241
  * Success response
232
242
  * @name createCourierPartnerScheme
233
243
  * @summary: Create Scheme for courier partner extension
234
244
  * @description: Create Scheme for courier partner extension - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/createCourierPartnerScheme/).
235
245
  */
236
- createCourierPartnerScheme({ body, requestHeaders }?: LogisticsPartnerValidator.CreateCourierPartnerSchemeParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.CourierPartnerSchemeModel>;
246
+ createCourierPartnerScheme({ body, requestHeaders }?: LogisticsPartnerValidator.CreateCourierPartnerSchemeParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.CourierPartnerV2SchemeModel>;
247
+ /**
248
+ * @param {LogisticsPartnerValidator.GetCourierPartnerSchemesParam} arg - Arg object.
249
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
250
+ * @param {import("../PartnerAPIClient").Options} - Options
251
+ * @returns {Promise<LogisticsPartnerModel.courierPartnerSchemeV2List>} -
252
+ * Success response
253
+ * @name getCourierPartnerSchemes
254
+ * @summary: Get created Schemes for courier partner
255
+ * @description: Get created Schemes for courier partner - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/getCourierPartnerSchemes/).
256
+ */
257
+ getCourierPartnerSchemes({ schemeType, paymentMode, capabilities, schemeIds, requestHeaders }?: LogisticsPartnerValidator.GetCourierPartnerSchemesParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.courierPartnerSchemeV2List>;
237
258
  /**
238
259
  * @param {LogisticsPartnerValidator.UpdateCourierPartnerSchemeParam} arg -
239
260
  * Arg object.
240
261
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
241
262
  * @param {import("../PartnerAPIClient").Options} - Options
242
- * @returns {Promise<LogisticsPartnerModel.CourierPartnerSchemeUpdateDetails>}
243
- * - Success response
244
- *
263
+ * @returns {Promise<LogisticsPartnerModel.CourierPartnerV2SchemeModel>} -
264
+ * Success response
245
265
  * @name updateCourierPartnerScheme
246
266
  * @summary: Update Scheme for courier partner extension
247
267
  * @description: Update Scheme for courier partner extension - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/updateCourierPartnerScheme/).
248
268
  */
249
- updateCourierPartnerScheme({ schemeId, body, requestHeaders }?: LogisticsPartnerValidator.UpdateCourierPartnerSchemeParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.CourierPartnerSchemeUpdateDetails>;
269
+ updateCourierPartnerScheme({ schemeId, body, requestHeaders }?: LogisticsPartnerValidator.UpdateCourierPartnerSchemeParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.CourierPartnerV2SchemeModel>;
250
270
  /**
251
- * @param {LogisticsPartnerValidator.GetCountriesParam} arg - Arg object.
271
+ * @param {LogisticsPartnerValidator.GetCourierPartnerSchemeParam} arg - Arg object.
252
272
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
253
273
  * @param {import("../PartnerAPIClient").Options} - Options
254
- * @returns {Promise<LogisticsPartnerModel.GetCountries>} - Success response
255
- * @name getCountries
256
- * @summary: Get all countries and associated data
257
- * @description: Retrieve of all countries. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/getCountries/).
274
+ * @returns {Promise<LogisticsPartnerModel.CourierPartnerV2SchemeModel>} -
275
+ * Success response
276
+ * @name getCourierPartnerScheme
277
+ * @summary: Get Scheme for courier partner extension by Id
278
+ * @description: Update Scheme for courier partner extension by Id - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/partner/logistics/getCourierPartnerScheme/).
258
279
  */
259
- getCountries({ onboarding, pageNo, pageSize, q, requestHeaders }?: LogisticsPartnerValidator.GetCountriesParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.GetCountries>;
280
+ getCourierPartnerScheme({ schemeId, requestHeaders }?: LogisticsPartnerValidator.GetCourierPartnerSchemeParam, { responseHeaders }?: object): Promise<LogisticsPartnerModel.CourierPartnerV2SchemeModel>;
260
281
  }
261
282
  import LogisticsPartnerModel = require("./LogisticsPartnerModel");