@gofynd/fdk-client-javascript 3.5.0 → 3.6.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.
Files changed (31) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationAPIClient.d.ts +1 -1
  4. package/sdk/application/ApplicationClient.d.ts +1 -1
  5. package/sdk/application/Payment/PaymentApplicationClient.d.ts +50 -0
  6. package/sdk/application/Payment/PaymentApplicationClient.js +210 -0
  7. package/sdk/partner/OAuthClient.d.ts +3 -3
  8. package/sdk/partner/PartnerAPIClient.d.ts +1 -1
  9. package/sdk/partner/PartnerClient.d.ts +2 -2
  10. package/sdk/platform/Cart/CartPlatformModel.d.ts +11 -0
  11. package/sdk/platform/Cart/CartPlatformModel.js +5 -0
  12. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
  13. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1 -4
  14. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -5
  15. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -2
  16. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +125 -1
  17. package/sdk/platform/Catalog/CatalogPlatformClient.js +1075 -95
  18. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1017 -46
  19. package/sdk/platform/Catalog/CatalogPlatformModel.js +681 -5
  20. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +200 -5
  21. package/sdk/platform/Catalog/CatalogPlatformValidator.js +174 -4
  22. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +9 -4
  23. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +4 -4
  24. package/sdk/platform/OAuthClient.d.ts +3 -3
  25. package/sdk/platform/Order/OrderPlatformModel.d.ts +49 -1
  26. package/sdk/platform/Order/OrderPlatformModel.js +28 -0
  27. package/sdk/platform/PlatformAPIClient.d.ts +1 -1
  28. package/sdk/platform/PlatformClient.d.ts +2 -2
  29. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +0 -10
  30. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +0 -4
  31. package/sdk/public/PublicAPIClient.d.ts +1 -1
@@ -62,6 +62,16 @@ declare class Catalog {
62
62
  * @description: This API helps to create a bulk products upload job. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/createBulkProductUploadJob/).
63
63
  */
64
64
  createBulkProductUploadJob({ body, requestHeaders }?: CatalogPlatformValidator.CreateBulkProductUploadJobParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.BulkResponseSchema>;
65
+ /**
66
+ * @param {CatalogPlatformValidator.CreateHsCodeParam} arg - Arg object
67
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
68
+ * @param {import("../PlatformAPIClient").Options} - Options
69
+ * @returns {Promise<CatalogPlatformModel.HSCodeItem>} - Success response
70
+ * @name createHsCode
71
+ * @summary: Create HS/SAC code
72
+ * @description: Create HS/SAC code. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/createHsCode/).
73
+ */
74
+ createHsCode({ body, requestHeaders }?: CatalogPlatformValidator.CreateHsCodeParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.HSCodeItem>;
65
75
  /**
66
76
  * @param {CatalogPlatformValidator.CreateInventoryExportParam} arg - Arg object
67
77
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -160,6 +170,36 @@ declare class Catalog {
160
170
  * @description: Allows to create a size guide associated to a seller - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/createSizeGuide/).
161
171
  */
162
172
  createSizeGuide({ body, requestHeaders }?: CatalogPlatformValidator.CreateSizeGuideParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.SuccessResponseSchema>;
173
+ /**
174
+ * @param {CatalogPlatformValidator.CreateTaxParam} arg - Arg object
175
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
176
+ * @param {import("../PlatformAPIClient").Options} - Options
177
+ * @returns {Promise<CatalogPlatformModel.CreateTax>} - Success response
178
+ * @name createTax
179
+ * @summary: Create a new Tax Rule and immediately generate its corresponding live version.
180
+ * @description: Create a tax rule and its version for under a specific company. This also creates a live version of the rule - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/createTax/).
181
+ */
182
+ createTax({ body, requestHeaders }?: CatalogPlatformValidator.CreateTaxParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.CreateTax>;
183
+ /**
184
+ * @param {CatalogPlatformValidator.CreateTaxComponentNameParam} arg - Arg object
185
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
186
+ * @param {import("../PlatformAPIClient").Options} - Options
187
+ * @returns {Promise<CatalogPlatformModel.TaxComponentRes>} - Success response
188
+ * @name createTaxComponentName
189
+ * @summary: Create component names
190
+ * @description: Create component names for a product. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/createTaxComponentName/).
191
+ */
192
+ createTaxComponentName({ body, requestHeaders }?: CatalogPlatformValidator.CreateTaxComponentNameParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.TaxComponentRes>;
193
+ /**
194
+ * @param {CatalogPlatformValidator.CreateTaxVersionParam} arg - Arg object
195
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
196
+ * @param {import("../PlatformAPIClient").Options} - Options
197
+ * @returns {Promise<CatalogPlatformModel.TaxVersion>} - Success response
198
+ * @name createTaxVersion
199
+ * @summary: Create a tax version
200
+ * @description: Creates a tax rule using the provided rule_id. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/createTaxVersion/).
201
+ */
202
+ createTaxVersion({ ruleId, body, requestHeaders }?: CatalogPlatformValidator.CreateTaxVersionParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.TaxVersion>;
163
203
  /**
164
204
  * @param {CatalogPlatformValidator.DeleteBulkInventoryJobParam} arg - Arg object
165
205
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -213,6 +253,27 @@ declare class Catalog {
213
253
  * @description: Allows to delete size associated with product. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/deleteSize/).
214
254
  */
215
255
  deleteSize({ itemId, size, requestHeaders }?: CatalogPlatformValidator.DeleteSizeParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.ProductSizeDeleteResponseSchema>;
256
+ /**
257
+ * @param {CatalogPlatformValidator.DeleteTaxRuleParam} arg - Arg object
258
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
259
+ * @param {import("../PlatformAPIClient").Options} - Options
260
+ * @returns {Promise<Object>} - Success response
261
+ * @name deleteTaxRule
262
+ * @summary: Delete a tax rule
263
+ * @description: Deletes a tax rule along with all its versions using the provided rule_id. You can not delete a rule if 1. it is the default tax rule 2. it is applied to any product. You will need to set any other tax rule as default or will need to attach a different tax rule to the products, then only you can delete the rule.
264
+ * - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/deleteTaxRule/).
265
+ */
266
+ deleteTaxRule({ ruleId, requestHeaders }?: CatalogPlatformValidator.DeleteTaxRuleParam, { responseHeaders }?: object): Promise<any>;
267
+ /**
268
+ * @param {CatalogPlatformValidator.DeleteTaxVersionParam} arg - Arg object
269
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
270
+ * @param {import("../PlatformAPIClient").Options} - Options
271
+ * @returns {Promise<Object>} - Success response
272
+ * @name deleteTaxVersion
273
+ * @summary: Delete a tax version
274
+ * @description: Deletes a tax rule using the provided rule_id. On future/scheduled version can be deleted. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/deleteTaxVersion/).
275
+ */
276
+ deleteTaxVersion({ ruleId, versionId, requestHeaders }?: CatalogPlatformValidator.DeleteTaxVersionParam, { responseHeaders }?: object): Promise<any>;
216
277
  /**
217
278
  * @param {CatalogPlatformValidator.DownloadInventoryTemplateViewParam} arg
218
279
  * - Arg object
@@ -269,6 +330,16 @@ declare class Catalog {
269
330
  * @description: Retrieve all HSN codes associated with company products and provide search capabilities based on HSN code, reporting HSN, etc - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/getAllProductHsnCodes/).
270
331
  */
271
332
  getAllProductHsnCodes({ pageNo, pageSize, q, type, requestHeaders }?: CatalogPlatformValidator.GetAllProductHsnCodesParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.HsnCodesListingResponseSchemaV2>;
333
+ /**
334
+ * @param {CatalogPlatformValidator.GetAllTaxRulesParam} arg - Arg object
335
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
336
+ * @param {import("../PlatformAPIClient").Options} - Options
337
+ * @returns {Promise<CatalogPlatformModel.TaxRules>} - Success response
338
+ * @name getAllTaxRules
339
+ * @summary: Get all tax rules of a company
340
+ * @description: Returns array of all tax rules of a company - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/getAllTaxRules/).
341
+ */
342
+ getAllTaxRules({ q, statuses, page, limit, versionStatus, requestHeaders }?: CatalogPlatformValidator.GetAllTaxRulesParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.TaxRules>;
272
343
  /**
273
344
  * @param {CatalogPlatformValidator.GetAttributeParam} arg - Arg object
274
345
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -332,6 +403,19 @@ declare class Catalog {
332
403
  * @description: Retrieve detailed information about a specific department for a specific company by uid. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/getDepartmentData/).
333
404
  */
334
405
  getDepartmentData({ uid, requestHeaders }?: CatalogPlatformValidator.GetDepartmentDataParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.DepartmentsResponseSchema>;
406
+ /**
407
+ * @param {CatalogPlatformValidator.GetHsCodesParam} arg - Arg object
408
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
409
+ * @param {import("../PlatformAPIClient").Options} - Options
410
+ * @returns {Promise<CatalogPlatformModel.HSCodes>} - Success response
411
+ * @name getHsCodes
412
+ * @summary: Get HS/SAC codes
413
+ * @description: Retrieve a list of HS (Harmonized System) or SAC (Service Accounting Code) codes for a company.
414
+ * HS codes are used for classifying goods in international trade, while SAC codes are used for classifying services for taxation purposes.
415
+ * Supports optional filtering and pagination.
416
+ * - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/getHsCodes/).
417
+ */
418
+ getHsCodes({ page, limit, type, q, requestHeaders }?: CatalogPlatformValidator.GetHsCodesParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.HSCodes>;
335
419
  /**
336
420
  * @param {CatalogPlatformValidator.GetHsnCodeParam} arg - Arg object
337
421
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -786,6 +870,26 @@ declare class Catalog {
786
870
  q?: string;
787
871
  pageSize?: number;
788
872
  }): Paginator<CatalogPlatformModel.OptinStoreDetails>;
873
+ /**
874
+ * @param {CatalogPlatformValidator.GetTaxComponentNamesParam} arg - Arg object
875
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
876
+ * @param {import("../PlatformAPIClient").Options} - Options
877
+ * @returns {Promise<CatalogPlatformModel.GetTaxComponents>} - Success response
878
+ * @name getTaxComponentNames
879
+ * @summary: Get component names
880
+ * @description: Get component names for a company. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/getTaxComponentNames/).
881
+ */
882
+ getTaxComponentNames({ requestHeaders }?: any, { responseHeaders }?: object): Promise<CatalogPlatformModel.GetTaxComponents>;
883
+ /**
884
+ * @param {CatalogPlatformValidator.GetTaxVersionDetailsParam} arg - Arg object
885
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
886
+ * @param {import("../PlatformAPIClient").Options} - Options
887
+ * @returns {Promise<CatalogPlatformModel.TaxRuleVersion>} - Success response
888
+ * @name getTaxVersionDetails
889
+ * @summary: Get tax versions for a tax rule
890
+ * @description: Retrieve versions of a tax rule with support for filtering by query parameters (e.g., live, past, all). - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/getTaxVersionDetails/).
891
+ */
892
+ getTaxVersionDetails({ ruleId, versionStatus, limit, page, requestHeaders }?: CatalogPlatformValidator.GetTaxVersionDetailsParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.TaxRuleVersion>;
789
893
  /**
790
894
  * @param {CatalogPlatformValidator.GetVariantsOfProductsParam} arg - Arg object
791
895
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -1039,6 +1143,26 @@ declare class Catalog {
1039
1143
  * @description: Allows to edit a specific size guide. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/updateSizeGuide/).
1040
1144
  */
1041
1145
  updateSizeGuide({ id, body, requestHeaders }?: CatalogPlatformValidator.UpdateSizeGuideParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.SuccessResponseSchema>;
1146
+ /**
1147
+ * @param {CatalogPlatformValidator.UpdateTaxRuleParam} arg - Arg object
1148
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1149
+ * @param {import("../PlatformAPIClient").Options} - Options
1150
+ * @returns {Promise<CatalogPlatformModel.TaxRule>} - Success response
1151
+ * @name updateTaxRule
1152
+ * @summary: Update a Tax Rule for a Product
1153
+ * @description: Update an existing tax rule under a specific company. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/updateTaxRule/).
1154
+ */
1155
+ updateTaxRule({ ruleId, body, requestHeaders }?: CatalogPlatformValidator.UpdateTaxRuleParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.TaxRule>;
1156
+ /**
1157
+ * @param {CatalogPlatformValidator.UpdateTaxVersionParam} arg - Arg object
1158
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1159
+ * @param {import("../PlatformAPIClient").Options} - Options
1160
+ * @returns {Promise<CatalogPlatformModel.TaxVersion>} - Success response
1161
+ * @name updateTaxVersion
1162
+ * @summary: Update a tax version
1163
+ * @description: Updates a tax rule using the provided rule_id. You can update any part of a scheduled version but only tax name of live version can be updated. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/updateTaxVersion/).
1164
+ */
1165
+ updateTaxVersion({ ruleId, versionId, body, requestHeaders }?: CatalogPlatformValidator.UpdateTaxVersionParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.TaxVersion>;
1042
1166
  /**
1043
1167
  * @param {CatalogPlatformValidator.UploadBulkProductsParam} arg - Arg object
1044
1168
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
@@ -1046,7 +1170,7 @@ declare class Catalog {
1046
1170
  * @returns {Promise<CatalogPlatformModel.BulkResponseSchema>} - Success response
1047
1171
  * @name uploadBulkProducts
1048
1172
  * @summary: Upload bulk products
1049
- * @description: Users can create multiple products by providing the required information needed for product creation in a CSV or Excel file format. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/uploadBulkProducts/).
1173
+ * @description: Users can create multiple products by providing the required information needed for product creation in a CSV or Excel file format. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/uploadBulkProducts/).
1050
1174
  */
1051
1175
  uploadBulkProducts({ department, productType, body, requestHeaders }?: CatalogPlatformValidator.UploadBulkProductsParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.BulkResponseSchema>;
1052
1176
  /**