@gofynd/fdk-client-javascript 3.7.0 → 3.9.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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +7 -7
- package/sdk/application/Cart/CartApplicationClient.js +8 -8
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +50 -0
- package/sdk/application/Payment/PaymentApplicationClient.js +210 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +3 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +96 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +37 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +24 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +155 -29
- package/sdk/platform/Cart/CartPlatformModel.js +83 -14
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +124 -6
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1074 -175
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1072 -45
- package/sdk/platform/Catalog/CatalogPlatformModel.js +714 -5
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +193 -19
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +167 -14
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +9 -4
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +4 -4
- package/sdk/platform/Order/OrderPlatformClient.d.ts +1 -1
- package/sdk/platform/Order/OrderPlatformClient.js +1 -1
- package/sdk/platform/Order/OrderPlatformModel.d.ts +55 -3
- package/sdk/platform/Order/OrderPlatformModel.js +31 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +0 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +0 -4
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -2
- package/sdk/public/Content/ContentPublicClient.js +4 -3
- package/sdk/public/Content/ContentPublicModel.d.ts +5 -0
- package/sdk/public/Content/ContentPublicModel.js +2 -0
- package/sdk/public/Content/ContentPublicValidator.d.ts +11 -3
- package/sdk/public/Content/ContentPublicValidator.js +7 -2
|
@@ -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,40 @@ 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 Tax Rule
|
|
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.TaxComponentName>} - Success response
|
|
188
|
+
* @name createTaxComponentName
|
|
189
|
+
* @summary: Create tax component name
|
|
190
|
+
* @description: Tax components represent different types of taxes that may be applied to products or transactions,
|
|
191
|
+
* such as sales tax, value-added tax (VAT), goods and services tax, consumption tax,
|
|
192
|
+
* or other region-specific taxation systems. This endpoint allows companies to define and
|
|
193
|
+
* customize the names of tax components according to their local tax regulations and business requirements.
|
|
194
|
+
* - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/createTaxComponentName/).
|
|
195
|
+
*/
|
|
196
|
+
createTaxComponentName({ body, requestHeaders }?: CatalogPlatformValidator.CreateTaxComponentNameParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.TaxComponentName>;
|
|
197
|
+
/**
|
|
198
|
+
* @param {CatalogPlatformValidator.CreateTaxVersionParam} arg - Arg object
|
|
199
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
200
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
201
|
+
* @returns {Promise<CatalogPlatformModel.TaxVersion>} - Success response
|
|
202
|
+
* @name createTaxVersion
|
|
203
|
+
* @summary: Create a tax version
|
|
204
|
+
* @description: Creates a tax rule using the provided rule_id. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/createTaxVersion/).
|
|
205
|
+
*/
|
|
206
|
+
createTaxVersion({ ruleId, body, requestHeaders }?: CatalogPlatformValidator.CreateTaxVersionParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.TaxVersion>;
|
|
163
207
|
/**
|
|
164
208
|
* @param {CatalogPlatformValidator.DeleteBulkInventoryJobParam} arg - Arg object
|
|
165
209
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -213,6 +257,27 @@ declare class Catalog {
|
|
|
213
257
|
* @description: Allows to delete size associated with product. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/deleteSize/).
|
|
214
258
|
*/
|
|
215
259
|
deleteSize({ itemId, size, requestHeaders }?: CatalogPlatformValidator.DeleteSizeParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.ProductSizeDeleteResponseSchema>;
|
|
260
|
+
/**
|
|
261
|
+
* @param {CatalogPlatformValidator.DeleteTaxRuleParam} arg - Arg object
|
|
262
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
263
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
264
|
+
* @returns {Promise<Object>} - Success response
|
|
265
|
+
* @name deleteTaxRule
|
|
266
|
+
* @summary: Delete a tax rule
|
|
267
|
+
* @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.
|
|
268
|
+
* - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/deleteTaxRule/).
|
|
269
|
+
*/
|
|
270
|
+
deleteTaxRule({ ruleId, requestHeaders }?: CatalogPlatformValidator.DeleteTaxRuleParam, { responseHeaders }?: object): Promise<any>;
|
|
271
|
+
/**
|
|
272
|
+
* @param {CatalogPlatformValidator.DeleteTaxVersionParam} arg - Arg object
|
|
273
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
274
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
275
|
+
* @returns {Promise<Object>} - Success response
|
|
276
|
+
* @name deleteTaxVersion
|
|
277
|
+
* @summary: Delete a tax version
|
|
278
|
+
* @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/).
|
|
279
|
+
*/
|
|
280
|
+
deleteTaxVersion({ ruleId, versionId, requestHeaders }?: CatalogPlatformValidator.DeleteTaxVersionParam, { responseHeaders }?: object): Promise<any>;
|
|
216
281
|
/**
|
|
217
282
|
* @param {CatalogPlatformValidator.DownloadInventoryTemplateViewParam} arg
|
|
218
283
|
* - Arg object
|
|
@@ -269,6 +334,16 @@ declare class Catalog {
|
|
|
269
334
|
* @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
335
|
*/
|
|
271
336
|
getAllProductHsnCodes({ pageNo, pageSize, q, type, requestHeaders }?: CatalogPlatformValidator.GetAllProductHsnCodesParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.HsnCodesListingResponseSchemaV2>;
|
|
337
|
+
/**
|
|
338
|
+
* @param {CatalogPlatformValidator.GetAllTaxRulesParam} arg - Arg object
|
|
339
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
340
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
341
|
+
* @returns {Promise<CatalogPlatformModel.TaxRules>} - Success response
|
|
342
|
+
* @name getAllTaxRules
|
|
343
|
+
* @summary: Get all tax rules of a company
|
|
344
|
+
* @description: Returns array of all tax rules of a company - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/getAllTaxRules/).
|
|
345
|
+
*/
|
|
346
|
+
getAllTaxRules({ q, statuses, page, limit, versionStatus, requestHeaders }?: CatalogPlatformValidator.GetAllTaxRulesParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.TaxRules>;
|
|
272
347
|
/**
|
|
273
348
|
* @param {CatalogPlatformValidator.GetAttributeParam} arg - Arg object
|
|
274
349
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -332,6 +407,19 @@ declare class Catalog {
|
|
|
332
407
|
* @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
408
|
*/
|
|
334
409
|
getDepartmentData({ uid, requestHeaders }?: CatalogPlatformValidator.GetDepartmentDataParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.DepartmentsResponseSchema>;
|
|
410
|
+
/**
|
|
411
|
+
* @param {CatalogPlatformValidator.GetHsCodesParam} arg - Arg object
|
|
412
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
413
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
414
|
+
* @returns {Promise<CatalogPlatformModel.HSCodes>} - Success response
|
|
415
|
+
* @name getHsCodes
|
|
416
|
+
* @summary: Get HS/SAC codes
|
|
417
|
+
* @description: Retrieve a list of HS (Harmonized System) or SAC (Service Accounting Code) codes for a company.
|
|
418
|
+
* HS codes are used for classifying goods in international trade, while SAC codes are used for classifying services for taxation purposes.
|
|
419
|
+
* Supports optional filtering and pagination.
|
|
420
|
+
* - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/getHsCodes/).
|
|
421
|
+
*/
|
|
422
|
+
getHsCodes({ page, limit, type, q, requestHeaders }?: CatalogPlatformValidator.GetHsCodesParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.HSCodes>;
|
|
335
423
|
/**
|
|
336
424
|
* @param {CatalogPlatformValidator.GetHsnCodeParam} arg - Arg object
|
|
337
425
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -786,6 +874,26 @@ declare class Catalog {
|
|
|
786
874
|
q?: string;
|
|
787
875
|
pageSize?: number;
|
|
788
876
|
}): Paginator<CatalogPlatformModel.OptinStoreDetails>;
|
|
877
|
+
/**
|
|
878
|
+
* @param {CatalogPlatformValidator.GetTaxComponentNamesParam} arg - Arg object
|
|
879
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
880
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
881
|
+
* @returns {Promise<CatalogPlatformModel.GetTaxComponents>} - Success response
|
|
882
|
+
* @name getTaxComponentNames
|
|
883
|
+
* @summary: Get component names
|
|
884
|
+
* @description: Get component names for a company. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/getTaxComponentNames/).
|
|
885
|
+
*/
|
|
886
|
+
getTaxComponentNames({ requestHeaders }?: any, { responseHeaders }?: object): Promise<CatalogPlatformModel.GetTaxComponents>;
|
|
887
|
+
/**
|
|
888
|
+
* @param {CatalogPlatformValidator.GetTaxVersionDetailsParam} arg - Arg object
|
|
889
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
890
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
891
|
+
* @returns {Promise<CatalogPlatformModel.TaxRuleVersion>} - Success response
|
|
892
|
+
* @name getTaxVersionDetails
|
|
893
|
+
* @summary: Get tax versions for a tax rule
|
|
894
|
+
* @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/).
|
|
895
|
+
*/
|
|
896
|
+
getTaxVersionDetails({ ruleId, versionStatus, limit, page, requestHeaders }?: CatalogPlatformValidator.GetTaxVersionDetailsParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.TaxRuleVersion>;
|
|
789
897
|
/**
|
|
790
898
|
* @param {CatalogPlatformValidator.GetVariantsOfProductsParam} arg - Arg object
|
|
791
899
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
@@ -1040,15 +1148,25 @@ declare class Catalog {
|
|
|
1040
1148
|
*/
|
|
1041
1149
|
updateSizeGuide({ id, body, requestHeaders }?: CatalogPlatformValidator.UpdateSizeGuideParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.SuccessResponseSchema>;
|
|
1042
1150
|
/**
|
|
1043
|
-
* @param {CatalogPlatformValidator.
|
|
1151
|
+
* @param {CatalogPlatformValidator.UpdateTaxRuleParam} arg - Arg object
|
|
1044
1152
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1045
1153
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1046
|
-
* @returns {Promise<CatalogPlatformModel.
|
|
1047
|
-
* @name
|
|
1048
|
-
* @summary:
|
|
1049
|
-
* @description:
|
|
1154
|
+
* @returns {Promise<CatalogPlatformModel.TaxRule>} - Success response
|
|
1155
|
+
* @name updateTaxRule
|
|
1156
|
+
* @summary: Update Tax Rule
|
|
1157
|
+
* @description: Update an existing tax rule under a specific company. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/catalog/updateTaxRule/).
|
|
1158
|
+
*/
|
|
1159
|
+
updateTaxRule({ ruleId, body, requestHeaders }?: CatalogPlatformValidator.UpdateTaxRuleParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.TaxRule>;
|
|
1160
|
+
/**
|
|
1161
|
+
* @param {CatalogPlatformValidator.UpdateTaxVersionParam} arg - Arg object
|
|
1162
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1163
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1164
|
+
* @returns {Promise<CatalogPlatformModel.TaxVersion>} - Success response
|
|
1165
|
+
* @name updateTaxVersion
|
|
1166
|
+
* @summary: Update a tax version
|
|
1167
|
+
* @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/).
|
|
1050
1168
|
*/
|
|
1051
|
-
|
|
1169
|
+
updateTaxVersion({ ruleId, versionId, body, requestHeaders }?: CatalogPlatformValidator.UpdateTaxVersionParam, { responseHeaders }?: object): Promise<CatalogPlatformModel.TaxVersion>;
|
|
1052
1170
|
/**
|
|
1053
1171
|
* @param {CatalogPlatformValidator.ValidateProductGlobalTemplateParam} arg
|
|
1054
1172
|
* - Arg object
|