@gofynd/fdk-client-javascript 3.0.0-beta.1 → 3.1.0-beta.1

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 (83) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +14 -14
  4. package/sdk/application/Cart/CartApplicationClient.js +14 -14
  5. package/sdk/application/Content/ContentApplicationClient.d.ts +10 -0
  6. package/sdk/application/Content/ContentApplicationClient.js +53 -0
  7. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
  8. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  9. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -0
  10. package/sdk/application/Logistic/LogisticApplicationClient.js +136 -0
  11. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -12
  12. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -12
  13. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +46 -33
  14. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +41 -25
  15. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -4
  16. package/sdk/platform/Billing/BillingPlatformClient.d.ts +6 -397
  17. package/sdk/platform/Billing/BillingPlatformClient.js +77 -3215
  18. package/sdk/platform/Billing/BillingPlatformModel.d.ts +417 -3811
  19. package/sdk/platform/Billing/BillingPlatformModel.js +292 -2544
  20. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +12 -451
  21. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -483
  22. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +34 -34
  23. package/sdk/platform/Cart/CartPlatformApplicationClient.js +34 -34
  24. package/sdk/platform/Cart/CartPlatformModel.d.ts +363 -29
  25. package/sdk/platform/Cart/CartPlatformModel.js +203 -31
  26. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +57 -57
  27. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +220 -200
  28. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +121 -91
  29. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +58 -46
  30. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +10 -51
  31. package/sdk/platform/Catalog/CatalogPlatformClient.js +79 -400
  32. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +22 -228
  33. package/sdk/platform/Catalog/CatalogPlatformModel.js +12 -163
  34. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +15 -61
  35. package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -65
  36. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +4 -8
  37. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +10 -14
  38. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +94 -30
  39. package/sdk/platform/Communication/CommunicationPlatformModel.js +110 -32
  40. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +33 -1
  41. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +62 -0
  42. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +11 -0
  43. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +5 -0
  44. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +12 -2
  45. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -1
  46. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +6 -4
  47. package/sdk/platform/Content/ContentPlatformApplicationClient.js +12 -10
  48. package/sdk/platform/Content/ContentPlatformModel.d.ts +42 -12
  49. package/sdk/platform/Content/ContentPlatformModel.js +43 -13
  50. package/sdk/platform/Finance/FinancePlatformClient.d.ts +28 -28
  51. package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
  52. package/sdk/platform/Order/OrderPlatformClient.d.ts +21 -21
  53. package/sdk/platform/Order/OrderPlatformClient.js +21 -21
  54. package/sdk/platform/Order/OrderPlatformModel.d.ts +1010 -80
  55. package/sdk/platform/Order/OrderPlatformModel.js +665 -70
  56. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +31 -4
  57. package/sdk/platform/Payment/PaymentPlatformModel.js +11 -4
  58. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +1 -1
  59. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +8 -0
  60. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +14 -0
  61. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +6 -0
  62. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +24 -0
  63. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +119 -0
  64. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +194 -23
  65. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +116 -22
  66. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +23 -1
  67. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +16 -0
  68. package/sdk/platform/Share/SharePlatformModel.d.ts +5 -0
  69. package/sdk/platform/Share/SharePlatformModel.js +2 -0
  70. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +10 -12
  71. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +45 -49
  72. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +10 -10
  73. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +12 -12
  74. package/sdk/public/PublicClient.d.ts +0 -2
  75. package/sdk/public/PublicClient.js +0 -4
  76. package/sdk/public/index.d.ts +0 -1
  77. package/sdk/public/index.js +0 -2
  78. package/sdk/public/Billing/BillingPublicClient.d.ts +0 -56
  79. package/sdk/public/Billing/BillingPublicClient.js +0 -397
  80. package/sdk/public/Billing/BillingPublicModel.d.ts +0 -919
  81. package/sdk/public/Billing/BillingPublicModel.js +0 -560
  82. package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -43
  83. package/sdk/public/Billing/BillingPublicValidator.js +0 -50
@@ -16,25 +16,21 @@ class Theme {
16
16
  }
17
17
 
18
18
  /**
19
- * @param {ThemePlatformApplicationValidator.AddThemeToApplicationParam} arg
20
- * - Arg object
21
- *
19
+ * @param {ThemePlatformApplicationValidator.ApplyThemeParam} arg - Arg object
22
20
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
23
21
  * @param {import("../PlatformAPIClient").Options} - Options
24
22
  * @returns {Promise<ThemePlatformModel.ThemesSchema>} - Success response
25
- * @name addThemeToApplication
26
- * @summary: Create theme in sales channel
27
- * @description: Include a theme in an application drafts from theme collection. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/addThemeToApplication/).
23
+ * @name applyTheme
24
+ * @summary: Apply a theme
25
+ * @description: Change current applied theme with new draft theme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/applyTheme/).
28
26
  */
29
- async addThemeToApplication(
30
- { body, requestHeaders } = { requestHeaders: {} },
27
+ async applyTheme(
28
+ { themeId, requestHeaders } = { requestHeaders: {} },
31
29
  { responseHeaders } = { responseHeaders: false }
32
30
  ) {
33
- const {
34
- error,
35
- } = ThemePlatformApplicationValidator.addThemeToApplication().validate(
31
+ const { error } = ThemePlatformApplicationValidator.applyTheme().validate(
36
32
  {
37
- body,
33
+ themeId,
38
34
  },
39
35
  { abortEarly: false, allowUnknown: true }
40
36
  );
@@ -45,16 +41,16 @@ class Theme {
45
41
  // Showing warrnings if extra unknown parameters are found
46
42
  const {
47
43
  error: warrning,
48
- } = ThemePlatformApplicationValidator.addThemeToApplication().validate(
44
+ } = ThemePlatformApplicationValidator.applyTheme().validate(
49
45
  {
50
- body,
46
+ themeId,
51
47
  },
52
48
  { abortEarly: false, allowUnknown: false }
53
49
  );
54
50
  if (warrning) {
55
51
  Logger({
56
52
  level: "WARN",
57
- message: `Parameter Validation warrnings for platform > Theme > addThemeToApplication \n ${warrning}`,
53
+ message: `Parameter Validation warrnings for platform > Theme > applyTheme \n ${warrning}`,
58
54
  });
59
55
  }
60
56
 
@@ -62,10 +58,10 @@ class Theme {
62
58
 
63
59
  const response = await PlatformAPIClient.execute(
64
60
  this.config,
65
- "post",
66
- `/service/platform/theme/v2.0/company/${this.config.companyId}/application/${this.applicationId}`,
61
+ "patch",
62
+ `/service/platform/theme/v2.0/company/${this.config.companyId}/application/${this.applicationId}/${themeId}/apply`,
67
63
  query_params,
68
- body,
64
+ undefined,
69
65
  requestHeaders,
70
66
  { responseHeaders }
71
67
  );
@@ -88,7 +84,7 @@ class Theme {
88
84
  } else {
89
85
  Logger({
90
86
  level: "WARN",
91
- message: `Response Validation Warnings for platform > Theme > addThemeToApplication \n ${res_error}`,
87
+ message: `Response Validation Warnings for platform > Theme > applyTheme \n ${res_error}`,
92
88
  });
93
89
  }
94
90
  }
@@ -97,21 +93,22 @@ class Theme {
97
93
  }
98
94
 
99
95
  /**
100
- * @param {ThemePlatformApplicationValidator.ApplyThemeParam} arg - Arg object
96
+ * @param {ThemePlatformApplicationValidator.CreatePageParam} arg - Arg object
101
97
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
102
98
  * @param {import("../PlatformAPIClient").Options} - Options
103
- * @returns {Promise<ThemePlatformModel.ThemesSchema>} - Success response
104
- * @name applyTheme
105
- * @summary: Apply a theme
106
- * @description: Change current applied theme with new draft theme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/applyTheme/).
99
+ * @returns {Promise<ThemePlatformModel.AvailablePageSchema>} - Success response
100
+ * @name createPage
101
+ * @summary: Create theme page
102
+ * @description: Generate and add a new page to the selected theme of the Platform. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/createPage/).
107
103
  */
108
- async applyTheme(
109
- { themeId, requestHeaders } = { requestHeaders: {} },
104
+ async createPage(
105
+ { themeId, body, requestHeaders } = { requestHeaders: {} },
110
106
  { responseHeaders } = { responseHeaders: false }
111
107
  ) {
112
- const { error } = ThemePlatformApplicationValidator.applyTheme().validate(
108
+ const { error } = ThemePlatformApplicationValidator.createPage().validate(
113
109
  {
114
110
  themeId,
111
+ body,
115
112
  },
116
113
  { abortEarly: false, allowUnknown: true }
117
114
  );
@@ -122,16 +119,17 @@ class Theme {
122
119
  // Showing warrnings if extra unknown parameters are found
123
120
  const {
124
121
  error: warrning,
125
- } = ThemePlatformApplicationValidator.applyTheme().validate(
122
+ } = ThemePlatformApplicationValidator.createPage().validate(
126
123
  {
127
124
  themeId,
125
+ body,
128
126
  },
129
127
  { abortEarly: false, allowUnknown: false }
130
128
  );
131
129
  if (warrning) {
132
130
  Logger({
133
131
  level: "WARN",
134
- message: `Parameter Validation warrnings for platform > Theme > applyTheme \n ${warrning}`,
132
+ message: `Parameter Validation warrnings for platform > Theme > createPage \n ${warrning}`,
135
133
  });
136
134
  }
137
135
 
@@ -139,10 +137,10 @@ class Theme {
139
137
 
140
138
  const response = await PlatformAPIClient.execute(
141
139
  this.config,
142
- "patch",
143
- `/service/platform/theme/v2.0/company/${this.config.companyId}/application/${this.applicationId}/${themeId}/apply`,
140
+ "post",
141
+ `/service/platform/theme/v1.0/company/${this.config.companyId}/application/${this.applicationId}/${themeId}/page`,
144
142
  query_params,
145
- undefined,
143
+ body,
146
144
  requestHeaders,
147
145
  { responseHeaders }
148
146
  );
@@ -154,7 +152,7 @@ class Theme {
154
152
 
155
153
  const {
156
154
  error: res_error,
157
- } = ThemePlatformModel.ThemesSchema().validate(responseData, {
155
+ } = ThemePlatformModel.AvailablePageSchema().validate(responseData, {
158
156
  abortEarly: false,
159
157
  allowUnknown: true,
160
158
  });
@@ -165,7 +163,7 @@ class Theme {
165
163
  } else {
166
164
  Logger({
167
165
  level: "WARN",
168
- message: `Response Validation Warnings for platform > Theme > applyTheme \n ${res_error}`,
166
+ message: `Response Validation Warnings for platform > Theme > createPage \n ${res_error}`,
169
167
  });
170
168
  }
171
169
  }
@@ -174,21 +172,20 @@ class Theme {
174
172
  }
175
173
 
176
174
  /**
177
- * @param {ThemePlatformApplicationValidator.CreatePageParam} arg - Arg object
175
+ * @param {ThemePlatformApplicationValidator.CreateThemeParam} arg - Arg object
178
176
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
179
177
  * @param {import("../PlatformAPIClient").Options} - Options
180
- * @returns {Promise<ThemePlatformModel.AvailablePageSchema>} - Success response
181
- * @name createPage
182
- * @summary: Create theme page
183
- * @description: Generate and add a new page to the selected theme of the Platform. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/createPage/).
178
+ * @returns {Promise<ThemePlatformModel.ThemesSchema>} - Success response
179
+ * @name createTheme
180
+ * @summary: Get Create theme
181
+ * @description: Creating a new theme. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/theme/createTheme/).
184
182
  */
185
- async createPage(
186
- { themeId, body, requestHeaders } = { requestHeaders: {} },
183
+ async createTheme(
184
+ { body, requestHeaders } = { requestHeaders: {} },
187
185
  { responseHeaders } = { responseHeaders: false }
188
186
  ) {
189
- const { error } = ThemePlatformApplicationValidator.createPage().validate(
187
+ const { error } = ThemePlatformApplicationValidator.createTheme().validate(
190
188
  {
191
- themeId,
192
189
  body,
193
190
  },
194
191
  { abortEarly: false, allowUnknown: true }
@@ -200,9 +197,8 @@ class Theme {
200
197
  // Showing warrnings if extra unknown parameters are found
201
198
  const {
202
199
  error: warrning,
203
- } = ThemePlatformApplicationValidator.createPage().validate(
200
+ } = ThemePlatformApplicationValidator.createTheme().validate(
204
201
  {
205
- themeId,
206
202
  body,
207
203
  },
208
204
  { abortEarly: false, allowUnknown: false }
@@ -210,7 +206,7 @@ class Theme {
210
206
  if (warrning) {
211
207
  Logger({
212
208
  level: "WARN",
213
- message: `Parameter Validation warrnings for platform > Theme > createPage \n ${warrning}`,
209
+ message: `Parameter Validation warrnings for platform > Theme > createTheme \n ${warrning}`,
214
210
  });
215
211
  }
216
212
 
@@ -219,7 +215,7 @@ class Theme {
219
215
  const response = await PlatformAPIClient.execute(
220
216
  this.config,
221
217
  "post",
222
- `/service/platform/theme/v1.0/company/${this.config.companyId}/application/${this.applicationId}/${themeId}/page`,
218
+ `/service/platform/theme/v2.0/company/${this.config.companyId}/application/${this.applicationId}`,
223
219
  query_params,
224
220
  body,
225
221
  requestHeaders,
@@ -233,7 +229,7 @@ class Theme {
233
229
 
234
230
  const {
235
231
  error: res_error,
236
- } = ThemePlatformModel.AvailablePageSchema().validate(responseData, {
232
+ } = ThemePlatformModel.ThemesSchema().validate(responseData, {
237
233
  abortEarly: false,
238
234
  allowUnknown: true,
239
235
  });
@@ -244,7 +240,7 @@ class Theme {
244
240
  } else {
245
241
  Logger({
246
242
  level: "WARN",
247
- message: `Response Validation Warnings for platform > Theme > createPage \n ${res_error}`,
243
+ message: `Response Validation Warnings for platform > Theme > createTheme \n ${res_error}`,
248
244
  });
249
245
  }
250
246
  }
@@ -1,8 +1,4 @@
1
1
  export = ThemePlatformApplicationValidator;
2
- /**
3
- * @typedef AddThemeToApplicationParam
4
- * @property {ThemePlatformModel.ThemesSchema} body
5
- */
6
2
  /**
7
3
  * @typedef ApplyThemeParam
8
4
  * @property {string} themeId - The ID of the apply
@@ -12,6 +8,10 @@ export = ThemePlatformApplicationValidator;
12
8
  * @property {string} themeId - ID of the theme
13
9
  * @property {ThemePlatformModel.AvailablePageSchema} body
14
10
  */
11
+ /**
12
+ * @typedef CreateThemeParam
13
+ * @property {ThemePlatformModel.CompanyThemeReqSchema} body
14
+ */
15
15
  /**
16
16
  * @typedef DeletePageParam
17
17
  * @property {string} themeId - ID of the theme
@@ -90,12 +90,12 @@ export = ThemePlatformApplicationValidator;
90
90
  * @property {string} themeId - The ID of the upgrade
91
91
  */
92
92
  declare class ThemePlatformApplicationValidator {
93
- /** @returns {AddThemeToApplicationParam} */
94
- static addThemeToApplication(): AddThemeToApplicationParam;
95
93
  /** @returns {ApplyThemeParam} */
96
94
  static applyTheme(): ApplyThemeParam;
97
95
  /** @returns {CreatePageParam} */
98
96
  static createPage(): CreatePageParam;
97
+ /** @returns {CreateThemeParam} */
98
+ static createTheme(): CreateThemeParam;
99
99
  /** @returns {DeletePageParam} */
100
100
  static deletePage(): DeletePageParam;
101
101
  /** @returns {DeleteThemeParam} */
@@ -140,11 +140,8 @@ declare class ThemePlatformApplicationValidator {
140
140
  static upgradeTheme(): UpgradeThemeParam;
141
141
  }
142
142
  declare namespace ThemePlatformApplicationValidator {
143
- export { AddThemeToApplicationParam, ApplyThemeParam, CreatePageParam, DeletePageParam, DeleteThemeParam, DuplicateThemeParam, GetAllPagesParam, GetApplicationThemesParam, GetApplicationThemesCountParam, GetAppliedThemeParam, GetExtensionSectionsParam, GetFontsParam, GetFontsV2Param, GetLatestVersionOfThemeBySlugParam, GetPageParam, GetThemeByIdParam, GetThemeForPreviewParam, GetThemeLastModifiedParam, IsUpgradableParam, UpdateMultiplePagesParam, UpdatePageParam, UpdateThemeParam, UpdateThemeNameParam, UpgradeThemeParam };
143
+ export { ApplyThemeParam, CreatePageParam, CreateThemeParam, DeletePageParam, DeleteThemeParam, DuplicateThemeParam, GetAllPagesParam, GetApplicationThemesParam, GetApplicationThemesCountParam, GetAppliedThemeParam, GetExtensionSectionsParam, GetFontsParam, GetFontsV2Param, GetLatestVersionOfThemeBySlugParam, GetPageParam, GetThemeByIdParam, GetThemeForPreviewParam, GetThemeLastModifiedParam, IsUpgradableParam, UpdateMultiplePagesParam, UpdatePageParam, UpdateThemeParam, UpdateThemeNameParam, UpgradeThemeParam };
144
144
  }
145
- type AddThemeToApplicationParam = {
146
- body: ThemePlatformModel.ThemesSchema;
147
- };
148
145
  type ApplyThemeParam = {
149
146
  /**
150
147
  * - The ID of the apply
@@ -158,6 +155,9 @@ type CreatePageParam = {
158
155
  themeId: string;
159
156
  body: ThemePlatformModel.AvailablePageSchema;
160
157
  };
158
+ type CreateThemeParam = {
159
+ body: ThemePlatformModel.CompanyThemeReqSchema;
160
+ };
161
161
  type DeletePageParam = {
162
162
  /**
163
163
  * - ID of the theme
@@ -2,11 +2,6 @@ const Joi = require("joi");
2
2
 
3
3
  const ThemePlatformModel = require("./ThemePlatformModel");
4
4
 
5
- /**
6
- * @typedef AddThemeToApplicationParam
7
- * @property {ThemePlatformModel.ThemesSchema} body
8
- */
9
-
10
5
  /**
11
6
  * @typedef ApplyThemeParam
12
7
  * @property {string} themeId - The ID of the apply
@@ -18,6 +13,11 @@ const ThemePlatformModel = require("./ThemePlatformModel");
18
13
  * @property {ThemePlatformModel.AvailablePageSchema} body
19
14
  */
20
15
 
16
+ /**
17
+ * @typedef CreateThemeParam
18
+ * @property {ThemePlatformModel.CompanyThemeReqSchema} body
19
+ */
20
+
21
21
  /**
22
22
  * @typedef DeletePageParam
23
23
  * @property {string} themeId - ID of the theme
@@ -117,13 +117,6 @@ const ThemePlatformModel = require("./ThemePlatformModel");
117
117
  */
118
118
 
119
119
  class ThemePlatformApplicationValidator {
120
- /** @returns {AddThemeToApplicationParam} */
121
- static addThemeToApplication() {
122
- return Joi.object({
123
- body: ThemePlatformModel.ThemesSchema().required(),
124
- }).required();
125
- }
126
-
127
120
  /** @returns {ApplyThemeParam} */
128
121
  static applyTheme() {
129
122
  return Joi.object({
@@ -139,6 +132,13 @@ class ThemePlatformApplicationValidator {
139
132
  }).required();
140
133
  }
141
134
 
135
+ /** @returns {CreateThemeParam} */
136
+ static createTheme() {
137
+ return Joi.object({
138
+ body: ThemePlatformModel.CompanyThemeReqSchema().required(),
139
+ }).required();
140
+ }
141
+
142
142
  /** @returns {DeletePageParam} */
143
143
  static deletePage() {
144
144
  return Joi.object({
@@ -12,7 +12,6 @@ declare class PublicClient {
12
12
  */
13
13
  constructor(config: import("./PublicConfig"));
14
14
  config: import("./PublicConfig");
15
- billing: Billing;
16
15
  configuration: Configuration;
17
16
  content: Content;
18
17
  partner: Partner;
@@ -25,7 +24,6 @@ declare class PublicClient {
25
24
  */
26
25
  setExtraHeaders(header: object): void;
27
26
  }
28
- import Billing = require("./Billing/BillingPublicClient");
29
27
  import Configuration = require("./Configuration/ConfigurationPublicClient");
30
28
  import Content = require("./Content/ContentPublicClient");
31
29
  import Partner = require("./Partner/PartnerPublicClient");
@@ -1,5 +1,3 @@
1
- const Billing = require("./Billing/BillingPublicClient");
2
-
3
1
  const Configuration = require("./Configuration/ConfigurationPublicClient");
4
2
 
5
3
  const Content = require("./Content/ContentPublicClient");
@@ -24,8 +22,6 @@ class PublicClient {
24
22
  constructor(config) {
25
23
  this.config = config;
26
24
 
27
- this.billing = new Billing(config);
28
-
29
25
  this.configuration = new Configuration(config);
30
26
 
31
27
  this.content = new Content(config);
@@ -1,7 +1,6 @@
1
1
  export const PublicConfig: typeof import("./PublicConfig");
2
2
  export const PublicClient: typeof import("./PublicClient");
3
3
  export namespace PublicModel {
4
- const BillingPublicModel: typeof import("./Billing/BillingPublicModel");
5
4
  const ConfigurationPublicModel: typeof import("./Configuration/ConfigurationPublicModel");
6
5
  const ContentPublicModel: typeof import("./Content/ContentPublicModel");
7
6
  const PartnerPublicModel: typeof import("./Partner/PartnerPublicModel");
@@ -2,8 +2,6 @@ module.exports = {
2
2
  PublicConfig: require("./PublicConfig"),
3
3
  PublicClient: require("./PublicClient"),
4
4
  PublicModel: {
5
- BillingPublicModel: require("./Billing/BillingPublicModel"),
6
-
7
5
  ConfigurationPublicModel: require("./Configuration/ConfigurationPublicModel"),
8
6
 
9
7
  ContentPublicModel: require("./Content/ContentPublicModel"),
@@ -1,56 +0,0 @@
1
- export = Billing;
2
- declare class Billing {
3
- constructor(_conf: any);
4
- _conf: any;
5
- _relativeUrls: {
6
- getPlanDetails: string;
7
- getStandardPlans: string;
8
- getTenureConfig: string;
9
- planList: string;
10
- };
11
- _urls: {};
12
- updateUrls(urls: any): void;
13
- /**
14
- * @param {BillingPublicValidator.GetPlanDetailsParam} arg - Arg object.
15
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
16
- * @param {import("../PublicAPIClient").Options} - Options
17
- * @returns {Promise<BillingPublicModel.PlanDetails>} - Success response
18
- * @name getPlanDetails
19
- * @summary: Get plan details
20
- * @description: Get plan details.
21
- * - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/billing/getPlanDetails/).
22
- */
23
- getPlanDetails({ planId, requestHeaders }?: BillingPublicValidator.GetPlanDetailsParam, { responseHeaders }?: object): Promise<BillingPublicModel.PlanDetails>;
24
- /**
25
- * @param {BillingPublicValidator.GetStandardPlansParam} arg - Arg object.
26
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
27
- * @param {import("../PublicAPIClient").Options} - Options
28
- * @returns {Promise<BillingPublicModel.DetailList>} - Success response
29
- * @name getStandardPlans
30
- * @summary: Get Standard/Public Plans
31
- * @description: Get Standard/Public Plans. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/billing/getStandardPlans/).
32
- */
33
- getStandardPlans({ platform, requestHeaders }?: BillingPublicValidator.GetStandardPlansParam, { responseHeaders }?: object): Promise<BillingPublicModel.DetailList>;
34
- /**
35
- * @param {BillingPublicValidator.GetTenureConfigParam} arg - Arg object.
36
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
37
- * @param {import("../PublicAPIClient").Options} - Options
38
- * @returns {Promise<BillingPublicModel.TenureConfigResponse>} - Success response
39
- * @name getTenureConfig
40
- * @summary: Get Tenure Configuration
41
- * @description: Retrieve the tenure configuration for a specific country. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/billing/getTenureConfig/).
42
- */
43
- getTenureConfig({ countryCode, requestHeaders }?: BillingPublicValidator.GetTenureConfigParam, { responseHeaders }?: object): Promise<BillingPublicModel.TenureConfigResponse>;
44
- /**
45
- * @param {BillingPublicValidator.PlanListParam} arg - Arg object.
46
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
47
- * @param {import("../PublicAPIClient").Options} - Options
48
- * @returns {Promise<BillingPublicModel.PlanList[]>} - Success response
49
- * @name planList
50
- * @summary: Get List of all plans
51
- * @description: Get List of all plans - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/public/billing/planList/).
52
- */
53
- planList({ requestHeaders }?: any, { responseHeaders }?: object): Promise<BillingPublicModel.PlanList[]>;
54
- }
55
- import BillingPublicValidator = require("./BillingPublicValidator");
56
- import BillingPublicModel = require("./BillingPublicModel");