@gofynd/fdk-client-javascript 1.0.3 → 1.1.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 (185) hide show
  1. package/README.md +51 -2
  2. package/index.d.ts +7 -4
  3. package/index.js +22 -7
  4. package/package.json +23 -14
  5. package/partner.d.ts +4 -0
  6. package/partner.js +7 -0
  7. package/sdk/application/ApplicationAPIClient.js +2 -4
  8. package/sdk/application/Cart/CartApplicationClient.js +29 -28
  9. package/sdk/application/Cart/CartApplicationModel.js +3 -1
  10. package/sdk/application/Catalog/CatalogApplicationClient.js +43 -42
  11. package/sdk/application/Catalog/CatalogApplicationModel.js +5 -3
  12. package/sdk/application/Common/CommonApplicationClient.js +5 -4
  13. package/sdk/application/Communication/CommunicationApplicationClient.js +6 -5
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +21 -20
  15. package/sdk/application/Content/ContentApplicationClient.js +26 -25
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.js +6 -5
  17. package/sdk/application/Lead/LeadApplicationClient.js +10 -9
  18. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +1 -3
  19. package/sdk/application/Logistic/LogisticApplicationClient.js +11 -12
  20. package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -1
  21. package/sdk/application/Order/OrderApplicationClient.js +15 -14
  22. package/sdk/application/Order/OrderApplicationModel.js +9 -0
  23. package/sdk/application/Payment/PaymentApplicationClient.js +42 -41
  24. package/sdk/application/PosCart/PosCartApplicationClient.js +30 -29
  25. package/sdk/application/PosCart/PosCartApplicationModel.js +3 -1
  26. package/sdk/application/Rewards/RewardsApplicationClient.js +11 -10
  27. package/sdk/application/Share/ShareApplicationClient.js +10 -9
  28. package/sdk/application/Theme/ThemeApplicationClient.js +7 -6
  29. package/sdk/application/User/UserApplicationClient.js +38 -37
  30. package/sdk/common/AxiosHelper.js +17 -6
  31. package/sdk/common/BaseOAuthClient.d.ts +17 -0
  32. package/sdk/common/BaseOAuthClient.js +67 -0
  33. package/sdk/common/RequestSigner.js +0 -5
  34. package/sdk/partner/OAuthClient.d.ts +14 -0
  35. package/sdk/partner/OAuthClient.js +112 -0
  36. package/sdk/partner/PartnerAPIClient.d.ts +12 -0
  37. package/sdk/partner/PartnerAPIClient.js +42 -0
  38. package/sdk/partner/PartnerClient.d.ts +6 -0
  39. package/sdk/partner/PartnerClient.js +17 -0
  40. package/sdk/partner/PartnerConfig.d.ts +30 -0
  41. package/sdk/partner/PartnerConfig.js +39 -0
  42. package/sdk/partner/index.d.ts +3 -0
  43. package/sdk/partner/index.js +5 -0
  44. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +3 -1
  45. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  46. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +5 -4
  47. package/sdk/platform/Analytics/AnalyticsPlatformValidator.js +1 -0
  48. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -2
  49. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +1 -0
  50. package/sdk/platform/Billing/BillingPlatformClient.d.ts +24 -0
  51. package/sdk/platform/Billing/BillingPlatformClient.js +137 -2
  52. package/sdk/platform/Billing/BillingPlatformModel.d.ts +4 -0
  53. package/sdk/platform/Billing/BillingPlatformModel.js +44 -0
  54. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +2 -0
  55. package/sdk/platform/Billing/BillingPlatformValidator.js +15 -0
  56. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +27 -0
  57. package/sdk/platform/Cart/CartPlatformApplicationClient.js +177 -1
  58. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +3 -0
  59. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +17 -1
  60. package/sdk/platform/Cart/CartPlatformModel.js +7 -3
  61. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +3 -1
  62. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +1 -1
  63. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
  64. package/sdk/platform/Catalog/CatalogPlatformClient.js +6 -9
  65. package/sdk/platform/Catalog/CatalogPlatformModel.js +9 -9
  66. package/sdk/platform/Catalog/CatalogPlatformValidator.js +2 -1
  67. package/sdk/platform/Common/CommonPlatformClient.js +7 -18
  68. package/sdk/platform/Common/CommonPlatformValidator.js +1 -0
  69. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3 -1
  70. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -1
  71. package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -3
  72. package/sdk/platform/Communication/CommunicationPlatformValidator.js +1 -0
  73. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +5 -4
  74. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +1 -0
  75. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +3 -1
  76. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +1 -1
  77. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +9 -8
  78. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +1 -0
  79. package/sdk/platform/Content/ContentPlatformApplicationClient.js +3 -1
  80. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +1 -1
  81. package/sdk/platform/Discount/DiscountPlatformClient.js +3 -2
  82. package/sdk/platform/Discount/DiscountPlatformValidator.js +1 -0
  83. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +3 -3
  84. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +27 -5
  85. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +1 -1
  86. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +3 -3
  87. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +28 -6
  88. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +1 -0
  89. package/sdk/platform/Inventory/InventoryPlatformClient.js +3 -2
  90. package/sdk/platform/Inventory/InventoryPlatformValidator.js +1 -0
  91. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +3 -1
  92. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +1 -1
  93. package/sdk/platform/Lead/LeadPlatformClient.js +4 -3
  94. package/sdk/platform/Lead/LeadPlatformValidator.js +1 -0
  95. package/sdk/platform/OAuthClient.js +3 -9
  96. package/sdk/platform/Order/OrderPlatformApplicationClient.js +3 -1
  97. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +1 -1
  98. package/sdk/platform/Order/OrderPlatformClient.d.ts +1 -1
  99. package/sdk/platform/Order/OrderPlatformClient.js +16 -3
  100. package/sdk/platform/Order/OrderPlatformModel.js +1 -0
  101. package/sdk/platform/Order/OrderPlatformValidator.js +1 -0
  102. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +3 -1
  103. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +1 -1
  104. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +1 -1
  105. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +14 -14
  106. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +1 -1
  107. package/sdk/platform/Payment/PaymentPlatformClient.js +3 -2
  108. package/sdk/platform/Payment/PaymentPlatformValidator.js +1 -0
  109. package/sdk/platform/PlatformApplicationClient.d.ts +5 -1
  110. package/sdk/platform/PlatformApplicationClient.js +4 -0
  111. package/sdk/platform/PlatformClient.d.ts +51 -12
  112. package/sdk/platform/PlatformClient.js +54 -11
  113. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +17 -19
  114. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +88 -83
  115. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +1 -1
  116. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +8 -9
  117. package/sdk/platform/Share/SharePlatformApplicationClient.js +3 -1
  118. package/sdk/platform/Share/SharePlatformApplicationValidator.js +1 -1
  119. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +3 -1
  120. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +1 -1
  121. package/sdk/platform/User/UserPlatformApplicationClient.js +3 -1
  122. package/sdk/platform/User/UserPlatformApplicationValidator.js +1 -1
  123. package/sdk/platform/Webhook/WebhookPlatformClient.js +3 -2
  124. package/sdk/platform/Webhook/WebhookPlatformValidator.js +1 -0
  125. package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -0
  126. package/sdk/public/Inventory/InventoryPublicClient.js +2 -0
  127. package/sdk/public/Webhook/WebhookPublicClient.js +2 -0
  128. package/.github/workflows/on_create_release.yml +0 -23
  129. package/.github/workflows/on_merge_main.yml +0 -38
  130. package/.github/workflows/on_pull_request.yml +0 -35
  131. package/.prettierrc +0 -5
  132. package/documentation/application/CART.md +0 -8771
  133. package/documentation/application/CATALOG.md +0 -8690
  134. package/documentation/application/COMMON.md +0 -325
  135. package/documentation/application/COMMUNICATION.md +0 -387
  136. package/documentation/application/CONFIGURATION.md +0 -2212
  137. package/documentation/application/CONTENT.md +0 -2629
  138. package/documentation/application/FILESTORAGE.md +0 -442
  139. package/documentation/application/LEAD.md +0 -1549
  140. package/documentation/application/LOGISTIC.md +0 -689
  141. package/documentation/application/ORDER.md +0 -2937
  142. package/documentation/application/PAYMENT.md +0 -4475
  143. package/documentation/application/POSCART.md +0 -9375
  144. package/documentation/application/README.md +0 -21
  145. package/documentation/application/REWARDS.md +0 -554
  146. package/documentation/application/SHARE.md +0 -635
  147. package/documentation/application/THEME.md +0 -5517
  148. package/documentation/application/USER.md +0 -3798
  149. package/documentation/platform/ANALYTICS.md +0 -1012
  150. package/documentation/platform/AUDITTRAIL.md +0 -493
  151. package/documentation/platform/BILLING.md +0 -1889
  152. package/documentation/platform/CART.md +0 -4711
  153. package/documentation/platform/CATALOG.md +0 -20522
  154. package/documentation/platform/COMMON.md +0 -325
  155. package/documentation/platform/COMMUNICATION.md +0 -4970
  156. package/documentation/platform/COMPANYPROFILE.md +0 -1646
  157. package/documentation/platform/CONFIGURATION.md +0 -6316
  158. package/documentation/platform/CONTENT.md +0 -8364
  159. package/documentation/platform/DISCOUNT.md +0 -767
  160. package/documentation/platform/FILESTORAGE.md +0 -945
  161. package/documentation/platform/INVENTORY.md +0 -1136
  162. package/documentation/platform/LEAD.md +0 -4394
  163. package/documentation/platform/ORDER.md +0 -6525
  164. package/documentation/platform/PARTNER.md +0 -193
  165. package/documentation/platform/PAYMENT.md +0 -3138
  166. package/documentation/platform/README.md +0 -27
  167. package/documentation/platform/REWARDS.md +0 -919
  168. package/documentation/platform/SHARE.md +0 -513
  169. package/documentation/platform/THEME.md +0 -35446
  170. package/documentation/platform/USER.md +0 -2174
  171. package/documentation/platform/WEBHOOK.md +0 -485
  172. package/documentation/public/CONFIGURATION.md +0 -325
  173. package/documentation/public/INVENTORY.md +0 -508
  174. package/documentation/public/WEBHOOK.md +0 -246
  175. package/jest.config.d.ts +0 -4
  176. package/jest.config.js +0 -6
  177. package/tests/application/catalog.spec.js +0 -54
  178. package/tests/common/action-url.spec.js +0 -35
  179. package/tests/common/schema/action-url.json +0 -178
  180. package/tests/common/schema/url-action.json +0 -683
  181. package/tests/common/url-action.spec.js +0 -48
  182. package/tests/helpers/cookie.helper.js +0 -31
  183. package/tests/helpers/oauth.helper.js +0 -43
  184. package/tests/platform/catalog.spec.js +0 -49
  185. package/tests/public/location.spec.js +0 -39
@@ -1,1646 +0,0 @@
1
-
2
-
3
-
4
-
5
-
6
- ##### [Back to Platform docs](./README.md)
7
-
8
- ## CompanyProfile Methods
9
-
10
-
11
- * [cbsOnboardGet](#cbsonboardget)
12
- * [createBrand](#createbrand)
13
- * [createCompanyBrandMapping](#createcompanybrandmapping)
14
- * [createLocation](#createlocation)
15
- * [createLocationBulk](#createlocationbulk)
16
- * [editBrand](#editbrand)
17
- * [getBrand](#getbrand)
18
- * [getBrands](#getbrands)
19
- * [getCompanyMetrics](#getcompanymetrics)
20
- * [getLocationDetail](#getlocationdetail)
21
- * [getLocations](#getlocations)
22
- * [updateCompany](#updatecompany)
23
- * [updateLocation](#updatelocation)
24
-
25
-
26
-
27
- ## Methods with example and description
28
-
29
-
30
-
31
-
32
- ### cbsOnboardGet
33
- Get company profile
34
-
35
-
36
-
37
- ```javascript
38
- // Promise
39
- const promise = client.companyProfile.cbsOnboardGet();
40
-
41
- // Async/Await
42
- const data = await client.companyProfile.cbsOnboardGet();
43
- ```
44
-
45
-
46
-
47
-
48
-
49
-
50
- This API allows to view the company profile of the seller account.
51
-
52
- *Returned Response:*
53
-
54
-
55
-
56
-
57
- [GetCompanyProfileSerializerResponse](#GetCompanyProfileSerializerResponse)
58
-
59
- Company profile object. See example below or refer `GetCompanyProfileSerializerResponse` for details
60
-
61
-
62
-
63
-
64
- <details>
65
- <summary><i>&nbsp; Example:</i></summary>
66
-
67
- ```json
68
- {
69
- "documents": [
70
- {
71
- "verified": true,
72
- "legal_name": "SHOPSENSE RETAIL TECHNOLOGIES PRIVATE LIMITED",
73
- "value": "AALCA0442L",
74
- "type": "pan"
75
- }
76
- ],
77
- "created_by": {
78
- "user_id": "123",
79
- "username": "917827311650_22960"
80
- },
81
- "business_info": "I sell",
82
- "franchise_enabled": true,
83
- "company_type": "mbo",
84
- "warnings": {},
85
- "business_details": {
86
- "website": {
87
- "url": "https://www.google.com"
88
- }
89
- },
90
- "addresses": [
91
- {
92
- "country": "India",
93
- "longitude": 72.8231511,
94
- "state": "Maharashtra",
95
- "address1": "A/204, Sai Vandan, Tulinj Road. Nallasopara East, ",
96
- "country_code": "IN",
97
- "latitude": 19.4232024,
98
- "pincode": 401209,
99
- "address_type": "office",
100
- "city": "Mumbai"
101
- },
102
- {
103
- "country": "India",
104
- "longitude": 72.8231511,
105
- "state": "Maharashtra",
106
- "address1": "A/204, Sai Vandan, Tulinj Road. Nallasopara East, ",
107
- "country_code": "IN",
108
- "latitude": 19.4232024,
109
- "pincode": 401209,
110
- "address_type": "registered",
111
- "city": "Mumbai"
112
- }
113
- ],
114
- "modified_by": {
115
- "user_id": "123",
116
- "username": "917827311650_22960"
117
- },
118
- "notification_emails": [
119
- "gaurangpatel@gofynd.com"
120
- ],
121
- "business_type": "huf",
122
- "name": "Cache Company",
123
- "stage": "verified",
124
- "uid": 1,
125
- "business_country_info": {
126
- "country": "India",
127
- "country_code": "IN"
128
- }
129
- }
130
- ```
131
- </details>
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
- ---
142
-
143
-
144
- ### createBrand
145
- Create a Brand.
146
-
147
-
148
-
149
- ```javascript
150
- // Promise
151
- const promise = client.companyProfile.createBrand({ body : value });
152
-
153
- // Async/Await
154
- const data = await client.companyProfile.createBrand({ body : value });
155
- ```
156
-
157
-
158
-
159
-
160
-
161
- | Argument | Type | Required | Description |
162
- | --------- | ----- | -------- | ----------- |
163
- | body | [CreateUpdateBrandRequestSerializer](#CreateUpdateBrandRequestSerializer) | yes | Request body |
164
-
165
-
166
- This API allows to create a brand associated to a company.
167
-
168
- *Returned Response:*
169
-
170
-
171
-
172
-
173
- [ProfileSuccessResponse](#ProfileSuccessResponse)
174
-
175
- Returns a success response
176
-
177
-
178
-
179
-
180
- <details>
181
- <summary><i>&nbsp; Example:</i></summary>
182
-
183
- ```json
184
- {
185
- "uid": 1,
186
- "success": true
187
- }
188
- ```
189
- </details>
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
- ---
200
-
201
-
202
- ### createCompanyBrandMapping
203
- Create a company brand mapping.
204
-
205
-
206
-
207
- ```javascript
208
- // Promise
209
- const promise = client.companyProfile.createCompanyBrandMapping({ body : value });
210
-
211
- // Async/Await
212
- const data = await client.companyProfile.createCompanyBrandMapping({ body : value });
213
- ```
214
-
215
-
216
-
217
-
218
-
219
- | Argument | Type | Required | Description |
220
- | --------- | ----- | -------- | ----------- |
221
- | body | [CompanyBrandPostRequestSerializer](#CompanyBrandPostRequestSerializer) | yes | Request body |
222
-
223
-
224
- This API allows to create a company brand mapping, for a already existing brand in the system.
225
-
226
- *Returned Response:*
227
-
228
-
229
-
230
-
231
- [ProfileSuccessResponse](#ProfileSuccessResponse)
232
-
233
- Returns a success response
234
-
235
-
236
-
237
-
238
- <details>
239
- <summary><i>&nbsp; Example:</i></summary>
240
-
241
- ```json
242
- {
243
- "success": true
244
- }
245
- ```
246
- </details>
247
-
248
-
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
- ---
257
-
258
-
259
- ### createLocation
260
- Create a location associated to a company.
261
-
262
-
263
-
264
- ```javascript
265
- // Promise
266
- const promise = client.companyProfile.createLocation({ body : value });
267
-
268
- // Async/Await
269
- const data = await client.companyProfile.createLocation({ body : value });
270
- ```
271
-
272
-
273
-
274
-
275
-
276
- | Argument | Type | Required | Description |
277
- | --------- | ----- | -------- | ----------- |
278
- | body | [LocationSerializer](#LocationSerializer) | yes | Request body |
279
-
280
-
281
- This API allows to edit a location associated to a company.
282
-
283
- *Returned Response:*
284
-
285
-
286
-
287
-
288
- [ProfileSuccessResponse](#ProfileSuccessResponse)
289
-
290
- Returns a success response
291
-
292
-
293
-
294
-
295
- <details>
296
- <summary><i>&nbsp; Example:</i></summary>
297
-
298
- ```json
299
- {
300
- "uid": 1,
301
- "success": true
302
- }
303
- ```
304
- </details>
305
-
306
-
307
-
308
-
309
-
310
-
311
-
312
-
313
-
314
- ---
315
-
316
-
317
- ### createLocationBulk
318
- Create a location asscoiated to a company in bulk.
319
-
320
-
321
-
322
- ```javascript
323
- // Promise
324
- const promise = client.companyProfile.createLocationBulk({ body : value });
325
-
326
- // Async/Await
327
- const data = await client.companyProfile.createLocationBulk({ body : value });
328
- ```
329
-
330
-
331
-
332
-
333
-
334
- | Argument | Type | Required | Description |
335
- | --------- | ----- | -------- | ----------- |
336
- | body | [BulkLocationSerializer](#BulkLocationSerializer) | yes | Request body |
337
-
338
-
339
- This API allows to create a location associated to a company.
340
-
341
- *Returned Response:*
342
-
343
-
344
-
345
-
346
- [ProfileSuccessResponse](#ProfileSuccessResponse)
347
-
348
- Returns a success response
349
-
350
-
351
-
352
-
353
- <details>
354
- <summary><i>&nbsp; Example:</i></summary>
355
-
356
- ```json
357
- {
358
- "message": "10 stores inserted",
359
- "success": true
360
- }
361
- ```
362
- </details>
363
-
364
-
365
-
366
-
367
-
368
-
369
-
370
-
371
-
372
- ---
373
-
374
-
375
- ### editBrand
376
- Edit a brand.
377
-
378
-
379
-
380
- ```javascript
381
- // Promise
382
- const promise = client.companyProfile.editBrand({ brandId : value,
383
- body : value });
384
-
385
- // Async/Await
386
- const data = await client.companyProfile.editBrand({ brandId : value,
387
- body : value });
388
- ```
389
-
390
-
391
-
392
-
393
-
394
- | Argument | Type | Required | Description |
395
- | --------- | ----- | -------- | ----------- |
396
- | brandId | string | yes | Id of the brand to be viewed. |
397
- | body | [CreateUpdateBrandRequestSerializer](#CreateUpdateBrandRequestSerializer) | yes | Request body |
398
-
399
-
400
- This API allows to edit meta of a brand.
401
-
402
- *Returned Response:*
403
-
404
-
405
-
406
-
407
- [ProfileSuccessResponse](#ProfileSuccessResponse)
408
-
409
- Returns a success response
410
-
411
-
412
-
413
-
414
- <details>
415
- <summary><i>&nbsp; Example:</i></summary>
416
-
417
- ```json
418
- {
419
- "uid": 1,
420
- "success": true
421
- }
422
- ```
423
- </details>
424
-
425
-
426
-
427
-
428
-
429
-
430
-
431
-
432
-
433
- ---
434
-
435
-
436
- ### getBrand
437
- Get a single brand.
438
-
439
-
440
-
441
- ```javascript
442
- // Promise
443
- const promise = client.companyProfile.getBrand({ brandId : value });
444
-
445
- // Async/Await
446
- const data = await client.companyProfile.getBrand({ brandId : value });
447
- ```
448
-
449
-
450
-
451
-
452
-
453
- | Argument | Type | Required | Description |
454
- | --------- | ----- | -------- | ----------- |
455
- | brandId | string | yes | Id of the brand to be viewed. |
456
-
457
-
458
-
459
- This API helps to get data associated to a particular brand.
460
-
461
- *Returned Response:*
462
-
463
-
464
-
465
-
466
- [GetBrandResponseSerializer](#GetBrandResponseSerializer)
467
-
468
- Brand object. See example below or refer `GetBrandResponseSerializer` for details
469
-
470
-
471
-
472
-
473
- <details>
474
- <summary><i>&nbsp; Example:</i></summary>
475
-
476
- ```json
477
- {
478
- "stage": "verified",
479
- "_custom_json": {},
480
- "uid": 1,
481
- "logo": "http://cdn4.gofynd.com/media/logo/brand/original/4597_40d1ce44d61940d4829a3c54951bd9ee.jpg",
482
- "warnings": {},
483
- "_locale_language": {},
484
- "name": "edited brand",
485
- "slug_key": "brand-2",
486
- "banner": {
487
- "portrait": "http://cdn4.gofynd.com/media/banner_portrait/brand/original/7021_16fc50205c40477daf419b64ec64c64c.jpg",
488
- "landscape": "http://cdn4.gofynd.com/media/banner/brand/original/7020_f9e91f7d501c4f2985c09bd196ed304d.jpg"
489
- },
490
- "created_by": {
491
- "username": "silverbolt",
492
- "user_id": "0"
493
- },
494
- "modified_by": {
495
- "username": "917827311650_22960",
496
- "user_id": "123"
497
- },
498
- "verified_by": {
499
- "username": "917827311650_22960",
500
- "user_id": "123"
501
- },
502
- "synonyms": [
503
- "xyz"
504
- ]
505
- }
506
- ```
507
- </details>
508
-
509
-
510
-
511
-
512
-
513
-
514
-
515
-
516
-
517
- ---
518
-
519
-
520
- ### getBrands
521
- Get brands associated to a company
522
-
523
-
524
-
525
- ```javascript
526
- // Promise
527
- const promise = client.companyProfile.getBrands({ pageNo : value,
528
- pageSize : value,
529
- q : value });
530
-
531
- // Async/Await
532
- const data = await client.companyProfile.getBrands({ pageNo : value,
533
- pageSize : value,
534
- q : value });
535
- ```
536
-
537
-
538
-
539
-
540
-
541
- | Argument | Type | Required | Description |
542
- | --------- | ----- | -------- | ----------- |
543
- | pageNo | number | no | The page number to navigate through the given set of results |
544
- | pageSize | number | no | Number of items to retrieve in each page. Default is 10. |
545
- | q | string | no | Search term for name. |
546
-
547
-
548
-
549
- This API helps to get view brands associated to a particular company.
550
-
551
- *Returned Response:*
552
-
553
-
554
-
555
-
556
- [CompanyBrandListSerializer](#CompanyBrandListSerializer)
557
-
558
- Brand object. See example below or refer `CompanyBrandListSerializer` for details
559
-
560
-
561
-
562
-
563
- <details>
564
- <summary><i>&nbsp; Example:</i></summary>
565
-
566
- ```json
567
- {
568
- "items": [
569
- {
570
- "brand": {
571
- "stage": "complete",
572
- "uid": 2,
573
- "banner": {
574
- "portrait": "http://cdn4.gofynd.com/media/banner_portrait/brand/original/7021_16fc50205c40477daf419b64ec64c64c.jpg",
575
- "landscape": "http://cdn4.gofynd.com/media/banner/brand/original/7020_f9e91f7d501c4f2985c09bd196ed304d.jpg"
576
- },
577
- "modified_by": {
578
- "user_id": "123",
579
- "username": "917827311650_22960"
580
- },
581
- "slug_key": "test-post",
582
- "synonyms": [
583
- "xyz"
584
- ],
585
- "created_on": "2021-02-25T15:21:57.666000+00:00",
586
- "created_by": {
587
- "user_id": "123",
588
- "username": "917827311650_22960"
589
- },
590
- "modified_on": "2021-02-25T15:21:57.666000+00:00",
591
- "name": "test_post",
592
- "logo": "http://cdn4.gofynd.com/media/logo/brand/original/4597_40d1ce44d61940d4829a3c54951bd9ee.jpg"
593
- },
594
- "stage": "complete",
595
- "uid": 2,
596
- "modified_by": {
597
- "user_id": "123",
598
- "username": "917827311650_22960"
599
- },
600
- "company": {
601
- "business_type": "huf",
602
- "stage": "complete",
603
- "uid": 1,
604
- "addresses": [
605
- {
606
- "city": "Mumbai Suburban",
607
- "latitude": 19.058461,
608
- "longitude": 72.871395,
609
- "address1": "Chunabhatti Phatak, Maharashtra Nagar, Maharashtra Nagar, ",
610
- "country_code": "IN",
611
- "state": "Maharashtra",
612
- "country": "India",
613
- "pincode": 400070,
614
- "address_type": "office"
615
- },
616
- {
617
- "city": "Mumbai Suburban",
618
- "latitude": 19.058461,
619
- "longitude": 72.871395,
620
- "address1": "Chunabhatti Phatak, Maharashtra Nagar, Maharashtra Nagar, ",
621
- "country_code": "IN",
622
- "state": "Maharashtra",
623
- "country": "India",
624
- "pincode": 400070,
625
- "address_type": "registered"
626
- }
627
- ],
628
- "modified_by": {
629
- "user_id": "-1",
630
- "username": "silverbolt"
631
- },
632
- "company_type": "mbo",
633
- "created_on": "2021-02-25T15:21:51.526000+00:00",
634
- "created_by": {
635
- "user_id": "123",
636
- "username": "917827311650_22960"
637
- },
638
- "modified_on": "2021-02-25T17:44:55.722000+00:00",
639
- "name": "Cache Company"
640
- },
641
- "created_by": {
642
- "user_id": "123",
643
- "username": "917827311650_22960"
644
- }
645
- }
646
- ],
647
- "page": {
648
- "current": 1,
649
- "size": 1,
650
- "has_previous": false,
651
- "has_next": false,
652
- "item_count": 1
653
- }
654
- }
655
- ```
656
- </details>
657
-
658
-
659
-
660
-
661
-
662
-
663
-
664
-
665
-
666
- ---
667
-
668
-
669
- ### getCompanyMetrics
670
- Get company metrics
671
-
672
-
673
-
674
- ```javascript
675
- // Promise
676
- const promise = client.companyProfile.getCompanyMetrics();
677
-
678
- // Async/Await
679
- const data = await client.companyProfile.getCompanyMetrics();
680
- ```
681
-
682
-
683
-
684
-
685
-
686
-
687
- This API allows to view the company metrics, i.e. the status of its brand and stores. Also its allows to view the number of products, company documents & store documents which are verified and unverified.
688
-
689
- *Returned Response:*
690
-
691
-
692
-
693
-
694
- [MetricsSerializer](#MetricsSerializer)
695
-
696
- Metrics response object. See example below or refer `MetricsSerializer` for details
697
-
698
-
699
-
700
-
701
- <details>
702
- <summary><i>&nbsp; Example:</i></summary>
703
-
704
- ```json
705
- {
706
- "uid": 1,
707
- "stage": "complete",
708
- "store": {
709
- "verified": 1,
710
- "pending": 1
711
- },
712
- "brand": {
713
- "verified": 1,
714
- "pending": 1
715
- },
716
- "product": {
717
- "verified": 0,
718
- "pending": 0
719
- },
720
- "company_documents": {
721
- "verified": 1,
722
- "pending": 0
723
- },
724
- "store_documents": {
725
- "verified": 0,
726
- "pending": 2
727
- }
728
- }
729
- ```
730
- </details>
731
-
732
-
733
-
734
-
735
-
736
-
737
-
738
-
739
-
740
- ---
741
-
742
-
743
- ### getLocationDetail
744
- Get details of a specific location.
745
-
746
-
747
-
748
- ```javascript
749
- // Promise
750
- const promise = client.companyProfile.getLocationDetail({ locationId : value });
751
-
752
- // Async/Await
753
- const data = await client.companyProfile.getLocationDetail({ locationId : value });
754
- ```
755
-
756
-
757
-
758
-
759
-
760
- | Argument | Type | Required | Description |
761
- | --------- | ----- | -------- | ----------- |
762
- | locationId | string | yes | Id of the location which you want to view. |
763
-
764
-
765
-
766
- This API helps to get data associated to a specific location.
767
-
768
- *Returned Response:*
769
-
770
-
771
-
772
-
773
- [GetLocationSerializer](#GetLocationSerializer)
774
-
775
- Brand object. See example below or refer `GetLocationSerializer` for details
776
-
777
-
778
-
779
-
780
- <details>
781
- <summary><i>&nbsp; Example:</i></summary>
782
-
783
- ```json
784
- {
785
- "verified_on": "2021-02-25T15:22:07.140000+00:00",
786
- "company": {
787
- "business_type": "huf",
788
- "stage": "complete",
789
- "uid": 1,
790
- "addresses": [
791
- {
792
- "city": "Mumbai Suburban",
793
- "latitude": 19.058461,
794
- "longitude": 72.871395,
795
- "address1": "Chunabhatti Phatak, Maharashtra Nagar, Maharashtra Nagar, ",
796
- "country_code": "IN",
797
- "state": "Maharashtra",
798
- "country": "India",
799
- "pincode": 400070,
800
- "address_type": "office"
801
- },
802
- {
803
- "city": "Mumbai Suburban",
804
- "latitude": 19.058461,
805
- "longitude": 72.871395,
806
- "address1": "Chunabhatti Phatak, Maharashtra Nagar, Maharashtra Nagar, ",
807
- "country_code": "IN",
808
- "state": "Maharashtra",
809
- "country": "India",
810
- "pincode": 400070,
811
- "address_type": "registered"
812
- }
813
- ],
814
- "modified_by": {
815
- "user_id": "-1",
816
- "username": "silverbolt"
817
- },
818
- "company_type": "mbo",
819
- "created_by": {
820
- "user_id": "123",
821
- "username": "917827311650_22960"
822
- },
823
- "name": "Cache Company"
824
- },
825
- "address": {
826
- "city": "MUMBAI",
827
- "landmark": "",
828
- "latitude": 19.4232024,
829
- "longitude": 72.8231511,
830
- "address2": "",
831
- "address1": "A/204, SAI VANDAN, NARAYAN NAGAR, TULINJ ROAD",
832
- "state": "MAHARASHTRA",
833
- "country": "INDIA",
834
- "pincode": 401209
835
- },
836
- "timing": [
837
- {
838
- "closing": {
839
- "minute": 0,
840
- "hour": 22
841
- },
842
- "opening": {
843
- "minute": 0,
844
- "hour": 11
845
- },
846
- "open": true,
847
- "weekday": "monday"
848
- },
849
- {
850
- "closing": {
851
- "minute": 0,
852
- "hour": 22
853
- },
854
- "opening": {
855
- "minute": 0,
856
- "hour": 11
857
- },
858
- "open": true,
859
- "weekday": "tuesday"
860
- },
861
- {
862
- "closing": {
863
- "minute": 0,
864
- "hour": 22
865
- },
866
- "opening": {
867
- "minute": 0,
868
- "hour": 11
869
- },
870
- "open": true,
871
- "weekday": "wednesday"
872
- },
873
- {
874
- "closing": {
875
- "minute": 0,
876
- "hour": 22
877
- },
878
- "opening": {
879
- "minute": 0,
880
- "hour": 11
881
- },
882
- "open": true,
883
- "weekday": "thursday"
884
- },
885
- {
886
- "closing": {
887
- "minute": 0,
888
- "hour": 22
889
- },
890
- "opening": {
891
- "minute": 0,
892
- "hour": 11
893
- },
894
- "open": true,
895
- "weekday": "friday"
896
- },
897
- {
898
- "closing": {
899
- "minute": 0,
900
- "hour": 22
901
- },
902
- "opening": {
903
- "minute": 0,
904
- "hour": 11
905
- },
906
- "open": true,
907
- "weekday": "saturday"
908
- },
909
- {
910
- "closing": {
911
- "minute": 0,
912
- "hour": 22
913
- },
914
- "opening": {
915
- "minute": 0,
916
- "hour": 11
917
- },
918
- "open": true,
919
- "weekday": "sunday"
920
- }
921
- ],
922
- "documents": [],
923
- "warnings": {},
924
- "display_name": "new store",
925
- "manager": {
926
- "name": "Yrf",
927
- "mobile_no": {
928
- "country_code": 91,
929
- "number": "83456774567"
930
- },
931
- "email": "gbp@jkl.com"
932
- },
933
- "code": "store1",
934
- "product_return_config": {
935
- "on_same_store": true
936
- },
937
- "modified_by": {
938
- "user_id": "-1",
939
- "username": "silverbolt"
940
- },
941
- "created_by": {
942
- "user_id": "123",
943
- "username": "917827311650_22960"
944
- },
945
- "name": "edited_store",
946
- "gst_credentials": {
947
- "e_invoice": {
948
- "enabled": false
949
- }
950
- },
951
- "verified_by": {
952
- "user_id": "-1",
953
- "username": "silverbolt"
954
- },
955
- "store_type": "high_street",
956
- "contact_numbers": [
957
- {
958
- "country_code": 91,
959
- "number": "7208229698"
960
- }
961
- ],
962
- "stage": "verified",
963
- "uid": 1,
964
- "notification_emails": []
965
- }
966
- ```
967
- </details>
968
-
969
-
970
-
971
-
972
-
973
-
974
-
975
-
976
-
977
- ---
978
-
979
-
980
- ### getLocations
981
- Get list of locations
982
-
983
-
984
-
985
- ```javascript
986
- // Promise
987
- const promise = client.companyProfile.getLocations({ storeType : value,
988
- q : value,
989
- stage : value,
990
- pageNo : value,
991
- pageSize : value,
992
- locationIds : value });
993
-
994
- // Async/Await
995
- const data = await client.companyProfile.getLocations({ storeType : value,
996
- q : value,
997
- stage : value,
998
- pageNo : value,
999
- pageSize : value,
1000
- locationIds : value });
1001
- ```
1002
-
1003
-
1004
-
1005
-
1006
-
1007
- | Argument | Type | Required | Description |
1008
- | --------- | ----- | -------- | ----------- |
1009
- | storeType | string | no | Helps to sort the location list on the basis of location type. |
1010
- | q | string | no | Query that is to be searched. |
1011
- | stage | string | no | to filter companies on basis of verified or unverified companies. |
1012
- | pageNo | number | no | The page number to navigate through the given set of results |
1013
- | pageSize | number | no | Number of items to retrieve in each page. Default is 10. |
1014
- | locationIds | Array<number> | no | Helps to filter stores on the basis of uids. |
1015
-
1016
-
1017
-
1018
- This API allows to view all the locations associated to a company.
1019
-
1020
- *Returned Response:*
1021
-
1022
-
1023
-
1024
-
1025
- [LocationListSerializer](#LocationListSerializer)
1026
-
1027
- Company profile object. See example below or refer `LocationListSerializer` for details
1028
-
1029
-
1030
-
1031
-
1032
- <details>
1033
- <summary><i>&nbsp; Example:</i></summary>
1034
-
1035
- ```json
1036
- {
1037
- "items": [
1038
- {
1039
- "company": {
1040
- "business_type": "huf",
1041
- "stage": "complete",
1042
- "uid": 1,
1043
- "addresses": [
1044
- {
1045
- "city": "Mumbai Suburban",
1046
- "latitude": 19.058461,
1047
- "longitude": 72.871395,
1048
- "address1": "Chunabhatti Phatak, Maharashtra Nagar, Maharashtra Nagar, ",
1049
- "country_code": "IN",
1050
- "state": "Maharashtra",
1051
- "country": "India",
1052
- "pincode": 400070,
1053
- "address_type": "office"
1054
- },
1055
- {
1056
- "city": "Mumbai Suburban",
1057
- "latitude": 19.058461,
1058
- "longitude": 72.871395,
1059
- "address1": "Chunabhatti Phatak, Maharashtra Nagar, Maharashtra Nagar, ",
1060
- "country_code": "IN",
1061
- "state": "Maharashtra",
1062
- "country": "India",
1063
- "pincode": 400070,
1064
- "address_type": "registered"
1065
- }
1066
- ],
1067
- "modified_by": {
1068
- "user_id": "-1",
1069
- "username": "silverbolt"
1070
- },
1071
- "company_type": "mbo",
1072
- "created_on": "2021-02-25T15:21:51.526000+00:00",
1073
- "created_by": {
1074
- "user_id": "123",
1075
- "username": "917827311650_22960"
1076
- },
1077
- "modified_on": "2021-02-25T17:44:55.722000+00:00",
1078
- "name": "Cache Company"
1079
- },
1080
- "address": {
1081
- "city": "MUMBAI",
1082
- "latitude": 19.4232024,
1083
- "longitude": 72.8231511,
1084
- "address1": "A/204, SAI VANDAN, NARAYAN NAGAR, TULINJ ROAD",
1085
- "state": "MAHARASHTRA",
1086
- "country": "INDIA",
1087
- "pincode": 401209
1088
- },
1089
- "timing": [
1090
- {
1091
- "closing": {
1092
- "minute": 0,
1093
- "hour": 22
1094
- },
1095
- "opening": {
1096
- "minute": 0,
1097
- "hour": 11
1098
- },
1099
- "open": true,
1100
- "weekday": "monday"
1101
- },
1102
- {
1103
- "closing": {
1104
- "minute": 0,
1105
- "hour": 22
1106
- },
1107
- "opening": {
1108
- "minute": 0,
1109
- "hour": 11
1110
- },
1111
- "open": true,
1112
- "weekday": "tuesday"
1113
- },
1114
- {
1115
- "closing": {
1116
- "minute": 0,
1117
- "hour": 22
1118
- },
1119
- "opening": {
1120
- "minute": 0,
1121
- "hour": 11
1122
- },
1123
- "open": true,
1124
- "weekday": "wednesday"
1125
- },
1126
- {
1127
- "closing": {
1128
- "minute": 0,
1129
- "hour": 22
1130
- },
1131
- "opening": {
1132
- "minute": 0,
1133
- "hour": 11
1134
- },
1135
- "open": true,
1136
- "weekday": "thursday"
1137
- },
1138
- {
1139
- "closing": {
1140
- "minute": 0,
1141
- "hour": 22
1142
- },
1143
- "opening": {
1144
- "minute": 0,
1145
- "hour": 11
1146
- },
1147
- "open": true,
1148
- "weekday": "friday"
1149
- },
1150
- {
1151
- "closing": {
1152
- "minute": 0,
1153
- "hour": 22
1154
- },
1155
- "opening": {
1156
- "minute": 0,
1157
- "hour": 11
1158
- },
1159
- "open": true,
1160
- "weekday": "saturday"
1161
- },
1162
- {
1163
- "closing": {
1164
- "minute": 0,
1165
- "hour": 22
1166
- },
1167
- "opening": {
1168
- "minute": 0,
1169
- "hour": 11
1170
- },
1171
- "open": true,
1172
- "weekday": "sunday"
1173
- }
1174
- ],
1175
- "documents": [],
1176
- "display_name": "new store",
1177
- "manager": {
1178
- "name": "Yrf",
1179
- "mobile_no": {
1180
- "country_code": 91,
1181
- "number": "83456774567"
1182
- },
1183
- "email": "gbp@jkl.com"
1184
- },
1185
- "code": "code2",
1186
- "product_return_config": {
1187
- "on_same_store": true
1188
- },
1189
- "created_on": "2021-02-25T15:22:04.913000+00:00",
1190
- "created_by": {
1191
- "user_id": "123",
1192
- "username": "917827311650_22960"
1193
- },
1194
- "name": "location2",
1195
- "gst_credentials": {
1196
- "e_invoice": {
1197
- "enabled": false
1198
- }
1199
- },
1200
- "store_type": "high_street",
1201
- "contact_numbers": [
1202
- {
1203
- "country_code": 91,
1204
- "number": "7208229698"
1205
- }
1206
- ],
1207
- "stage": "complete",
1208
- "uid": 2,
1209
- "notification_emails": []
1210
- }
1211
- ],
1212
- "page": {
1213
- "current": 1,
1214
- "size": 1,
1215
- "has_previous": false,
1216
- "has_next": false,
1217
- "item_count": 1
1218
- }
1219
- }
1220
- ```
1221
- </details>
1222
-
1223
-
1224
-
1225
-
1226
-
1227
-
1228
-
1229
-
1230
-
1231
- ---
1232
-
1233
-
1234
- ### updateCompany
1235
- Edit company profile
1236
-
1237
-
1238
-
1239
- ```javascript
1240
- // Promise
1241
- const promise = client.companyProfile.updateCompany({ body : value });
1242
-
1243
- // Async/Await
1244
- const data = await client.companyProfile.updateCompany({ body : value });
1245
- ```
1246
-
1247
-
1248
-
1249
-
1250
-
1251
- | Argument | Type | Required | Description |
1252
- | --------- | ----- | -------- | ----------- |
1253
- | body | [UpdateCompany](#UpdateCompany) | yes | Request body |
1254
-
1255
-
1256
- This API allows to edit the company profile of the seller account.
1257
-
1258
- *Returned Response:*
1259
-
1260
-
1261
-
1262
-
1263
- [ProfileSuccessResponse](#ProfileSuccessResponse)
1264
-
1265
- Returns a success message
1266
-
1267
-
1268
-
1269
-
1270
- <details>
1271
- <summary><i>&nbsp; Example:</i></summary>
1272
-
1273
- ```json
1274
- {
1275
- "uid": 1,
1276
- "success": true
1277
- }
1278
- ```
1279
- </details>
1280
-
1281
-
1282
-
1283
-
1284
-
1285
-
1286
-
1287
-
1288
-
1289
- ---
1290
-
1291
-
1292
- ### updateLocation
1293
- Edit a location asscoiated to a company.
1294
-
1295
-
1296
-
1297
- ```javascript
1298
- // Promise
1299
- const promise = client.companyProfile.updateLocation({ locationId : value,
1300
- body : value });
1301
-
1302
- // Async/Await
1303
- const data = await client.companyProfile.updateLocation({ locationId : value,
1304
- body : value });
1305
- ```
1306
-
1307
-
1308
-
1309
-
1310
-
1311
- | Argument | Type | Required | Description |
1312
- | --------- | ----- | -------- | ----------- |
1313
- | locationId | string | yes | Id of the location which you want to edit. |
1314
- | body | [LocationSerializer](#LocationSerializer) | yes | Request body |
1315
-
1316
-
1317
- This API allows to edit a location associated to a company.
1318
-
1319
- *Returned Response:*
1320
-
1321
-
1322
-
1323
-
1324
- [ProfileSuccessResponse](#ProfileSuccessResponse)
1325
-
1326
- Returns a success response
1327
-
1328
-
1329
-
1330
-
1331
- <details>
1332
- <summary><i>&nbsp; Example:</i></summary>
1333
-
1334
- ```json
1335
- {
1336
- "uid": 1,
1337
- "success": true
1338
- }
1339
- ```
1340
- </details>
1341
-
1342
-
1343
-
1344
-
1345
-
1346
-
1347
-
1348
-
1349
-
1350
- ---
1351
-
1352
-
1353
-
1354
- ### Schemas
1355
-
1356
-
1357
- #### [AddressSerializer](#AddressSerializer)
1358
-
1359
- | Properties | Type | Nullable | Description |
1360
- | ---------- | ---- | -------- | ----------- || address1 | string | no | || address2 | string | no | || address_type | string | no | || city | string | no | || country | string | no | || country_code | string | no | || landmark | string | no | || latitude | number | yes | || longitude | number | yes | || pincode | number | no | || state | string | no | |
1361
-
1362
- ---
1363
-
1364
- #### [BrandBannerSerializer](#BrandBannerSerializer)
1365
-
1366
- | Properties | Type | Nullable | Description |
1367
- | ---------- | ---- | -------- | ----------- || landscape | string | no | || portrait | string | no | |
1368
-
1369
- ---
1370
-
1371
- #### [BulkLocationSerializer](#BulkLocationSerializer)
1372
-
1373
- | Properties | Type | Nullable | Description |
1374
- | ---------- | ---- | -------- | ----------- || data | [[LocationSerializer](#LocationSerializer)] | no | |
1375
-
1376
- ---
1377
-
1378
- #### [BusinessCountryInfo](#BusinessCountryInfo)
1379
-
1380
- | Properties | Type | Nullable | Description |
1381
- | ---------- | ---- | -------- | ----------- || country | string | no | || country_code | string | no | |
1382
-
1383
- ---
1384
-
1385
- #### [BusinessDetails](#BusinessDetails)
1386
-
1387
- | Properties | Type | Nullable | Description |
1388
- | ---------- | ---- | -------- | ----------- || website | [Website](#Website) | no | |
1389
-
1390
- ---
1391
-
1392
- #### [CompanyBrandListSerializer](#CompanyBrandListSerializer)
1393
-
1394
- | Properties | Type | Nullable | Description |
1395
- | ---------- | ---- | -------- | ----------- || items | [[CompanyBrandSerializer](#CompanyBrandSerializer)] | no | || page | [Page](#Page) | no | |
1396
-
1397
- ---
1398
-
1399
- #### [CompanyBrandPostRequestSerializer](#CompanyBrandPostRequestSerializer)
1400
-
1401
- | Properties | Type | Nullable | Description |
1402
- | ---------- | ---- | -------- | ----------- || brands | [number] | yes | || company | number | yes | || uid | number | no | |
1403
-
1404
- ---
1405
-
1406
- #### [CompanyBrandSerializer](#CompanyBrandSerializer)
1407
-
1408
- | Properties | Type | Nullable | Description |
1409
- | ---------- | ---- | -------- | ----------- || brand | [GetBrandResponseSerializer](#GetBrandResponseSerializer) | no | || company | [CompanySerializer](#CompanySerializer) | no | || created_by | [UserSerializer](#UserSerializer) | no | || created_on | string | no | || modified_by | [UserSerializer](#UserSerializer) | no | || modified_on | string | no | || reject_reason | string | no | || stage | string | no | || uid | number | no | || verified_by | [UserSerializer](#UserSerializer) | no | || verified_on | string | no | || warnings | string | no | |
1410
-
1411
- ---
1412
-
1413
- #### [CompanyDetails](#CompanyDetails)
1414
-
1415
- | Properties | Type | Nullable | Description |
1416
- | ---------- | ---- | -------- | ----------- || socials | [[CompanySocialAccounts](#CompanySocialAccounts)] | no | || website_url | string | no | |
1417
-
1418
- ---
1419
-
1420
- #### [CompanySerializer](#CompanySerializer)
1421
-
1422
- | Properties | Type | Nullable | Description |
1423
- | ---------- | ---- | -------- | ----------- || _custom_json | string | no | || addresses | [[GetAddressSerializer](#GetAddressSerializer)] | no | || business_country_info | [BusinessCountryInfo](#BusinessCountryInfo) | no | || business_type | string | yes | || company_type | string | yes | || created_by | [UserSerializer](#UserSerializer) | no | || created_on | string | no | || details | [CompanyDetails](#CompanyDetails) | no | || market_channels | [string] | no | || modified_by | [UserSerializer](#UserSerializer) | no | || modified_on | string | no | || name | string | no | || notification_emails | [string] | no | || reject_reason | string | no | || stage | string | no | || uid | number | no | || verified_by | [UserSerializer](#UserSerializer) | no | || verified_on | string | no | |
1424
-
1425
- ---
1426
-
1427
- #### [CompanySocialAccounts](#CompanySocialAccounts)
1428
-
1429
- | Properties | Type | Nullable | Description |
1430
- | ---------- | ---- | -------- | ----------- || name | string | yes | || url | string | yes | |
1431
-
1432
- ---
1433
-
1434
- #### [CompanyTaxesSerializer](#CompanyTaxesSerializer)
1435
-
1436
- | Properties | Type | Nullable | Description |
1437
- | ---------- | ---- | -------- | ----------- || effective_date | string | no | || enable | boolean | no | || rate | number | no | |
1438
-
1439
- ---
1440
-
1441
- #### [CompanyTaxesSerializer1](#CompanyTaxesSerializer1)
1442
-
1443
- | Properties | Type | Nullable | Description |
1444
- | ---------- | ---- | -------- | ----------- || effective_date | string | no | || enable | boolean | no | || rate | number | no | |
1445
-
1446
- ---
1447
-
1448
- #### [ContactDetails](#ContactDetails)
1449
-
1450
- | Properties | Type | Nullable | Description |
1451
- | ---------- | ---- | -------- | ----------- || emails | [string] | no | || phone | [[SellerPhoneNumber](#SellerPhoneNumber)] | no | |
1452
-
1453
- ---
1454
-
1455
- #### [CreateUpdateAddressSerializer](#CreateUpdateAddressSerializer)
1456
-
1457
- | Properties | Type | Nullable | Description |
1458
- | ---------- | ---- | -------- | ----------- || address1 | string | yes | || address2 | string | no | || address_type | string | yes | || city | string | yes | || country | string | yes | || country_code | string | no | || landmark | string | no | || latitude | number | yes | || longitude | number | yes | || pincode | number | yes | || state | string | yes | |
1459
-
1460
- ---
1461
-
1462
- #### [CreateUpdateBrandRequestSerializer](#CreateUpdateBrandRequestSerializer)
1463
-
1464
- | Properties | Type | Nullable | Description |
1465
- | ---------- | ---- | -------- | ----------- || _custom_json | string | no | || _locale_language | string | no | || banner | [BrandBannerSerializer](#BrandBannerSerializer) | no | || brand_tier | string | no | || company_id | number | no | || description | string | no | || logo | string | yes | || name | string | yes | || synonyms | [string] | no | || uid | number | no | |
1466
-
1467
- ---
1468
-
1469
- #### [Document](#Document)
1470
-
1471
- | Properties | Type | Nullable | Description |
1472
- | ---------- | ---- | -------- | ----------- || legal_name | string | no | || type | string | yes | || url | string | no | || value | string | yes | || verified | boolean | no | |
1473
-
1474
- ---
1475
-
1476
- #### [DocumentsObj](#DocumentsObj)
1477
-
1478
- | Properties | Type | Nullable | Description |
1479
- | ---------- | ---- | -------- | ----------- || pending | number | no | || verified | number | no | |
1480
-
1481
- ---
1482
-
1483
- #### [ErrorResponse](#ErrorResponse)
1484
-
1485
- | Properties | Type | Nullable | Description |
1486
- | ---------- | ---- | -------- | ----------- || code | string | no | || message | string | no | || meta | string | no | || status | number | no | |
1487
-
1488
- ---
1489
-
1490
- #### [GetAddressSerializer](#GetAddressSerializer)
1491
-
1492
- | Properties | Type | Nullable | Description |
1493
- | ---------- | ---- | -------- | ----------- || address1 | string | no | || address2 | string | no | || address_type | string | no | || city | string | no | || country | string | no | || country_code | string | no | || landmark | string | no | || latitude | number | yes | || longitude | number | yes | || pincode | number | no | || state | string | no | |
1494
-
1495
- ---
1496
-
1497
- #### [GetBrandResponseSerializer](#GetBrandResponseSerializer)
1498
-
1499
- | Properties | Type | Nullable | Description |
1500
- | ---------- | ---- | -------- | ----------- || _custom_json | string | no | || _locale_language | string | no | || banner | [BrandBannerSerializer](#BrandBannerSerializer) | no | || created_by | [UserSerializer](#UserSerializer) | no | || created_on | string | no | || description | string | no | || logo | string | no | || mode | string | no | || modified_by | [UserSerializer](#UserSerializer) | no | || modified_on | string | no | || name | string | yes | || reject_reason | string | no | || slug_key | string | no | || stage | string | no | || synonyms | [string] | no | || uid | number | no | || verified_by | [UserSerializer](#UserSerializer) | no | || verified_on | string | no | || warnings | string | no | |
1501
-
1502
- ---
1503
-
1504
- #### [GetCompanyProfileSerializerResponse](#GetCompanyProfileSerializerResponse)
1505
-
1506
- | Properties | Type | Nullable | Description |
1507
- | ---------- | ---- | -------- | ----------- || _custom_json | string | no | || addresses | [[GetAddressSerializer](#GetAddressSerializer)] | no | || business_country_info | [BusinessCountryInfo](#BusinessCountryInfo) | no | || business_details | [BusinessDetails](#BusinessDetails) | no | || business_info | string | no | || business_type | string | yes | || company_type | string | yes | || contact_details | [ContactDetails](#ContactDetails) | no | || created_by | [UserSerializer](#UserSerializer) | no | || created_on | string | no | || documents | [[Document](#Document)] | no | || franchise_enabled | boolean | no | || mode | string | no | || modified_by | [UserSerializer](#UserSerializer) | no | || modified_on | string | no | || name | string | no | || notification_emails | [string] | no | || stage | string | no | || taxes | [[CompanyTaxesSerializer](#CompanyTaxesSerializer)] | no | || uid | number | yes | || verified_by | [UserSerializer](#UserSerializer) | no | || verified_on | string | no | || warnings | string | no | |
1508
-
1509
- ---
1510
-
1511
- #### [GetCompanySerializer](#GetCompanySerializer)
1512
-
1513
- | Properties | Type | Nullable | Description |
1514
- | ---------- | ---- | -------- | ----------- || addresses | [[GetAddressSerializer](#GetAddressSerializer)] | no | || business_type | string | no | || company_type | string | no | || created_by | [UserSerializer](#UserSerializer) | no | || created_on | string | no | || modified_by | [UserSerializer](#UserSerializer) | no | || modified_on | string | no | || name | string | no | || reject_reason | string | no | || stage | string | no | || uid | number | no | || verified_by | [UserSerializer](#UserSerializer) | no | || verified_on | string | no | |
1515
-
1516
- ---
1517
-
1518
- #### [GetLocationSerializer](#GetLocationSerializer)
1519
-
1520
- | Properties | Type | Nullable | Description |
1521
- | ---------- | ---- | -------- | ----------- || _custom_json | string | no | || address | [GetAddressSerializer](#GetAddressSerializer) | yes | || code | string | yes | || company | [GetCompanySerializer](#GetCompanySerializer) | no | || contact_numbers | [[SellerPhoneNumber](#SellerPhoneNumber)] | no | || created_by | [UserSerializer](#UserSerializer) | no | || created_on | string | no | || display_name | string | yes | || documents | [[Document](#Document)] | no | || gst_credentials | [InvoiceDetailsSerializer](#InvoiceDetailsSerializer) | no | || holiday | [[HolidaySchemaSerializer](#HolidaySchemaSerializer)] | no | || manager | [LocationManagerSerializer](#LocationManagerSerializer) | no | || modified_by | [UserSerializer](#UserSerializer) | no | || modified_on | string | no | || name | string | yes | || notification_emails | [string] | no | || phone_number | string | no | || product_return_config | [ProductReturnConfigSerializer](#ProductReturnConfigSerializer) | no | || stage | string | no | || store_type | string | no | || timing | [[LocationDayWiseSerializer](#LocationDayWiseSerializer)] | no | || uid | number | no | || verified_by | [UserSerializer](#UserSerializer) | no | || verified_on | string | no | || warnings | string | no | |
1522
-
1523
- ---
1524
-
1525
- #### [HolidayDateSerializer](#HolidayDateSerializer)
1526
-
1527
- | Properties | Type | Nullable | Description |
1528
- | ---------- | ---- | -------- | ----------- || end_date | string | yes | || start_date | string | yes | |
1529
-
1530
- ---
1531
-
1532
- #### [HolidaySchemaSerializer](#HolidaySchemaSerializer)
1533
-
1534
- | Properties | Type | Nullable | Description |
1535
- | ---------- | ---- | -------- | ----------- || date | [HolidayDateSerializer](#HolidayDateSerializer) | yes | || holiday_type | string | yes | || title | string | yes | |
1536
-
1537
- ---
1538
-
1539
- #### [InvoiceCredSerializer](#InvoiceCredSerializer)
1540
-
1541
- | Properties | Type | Nullable | Description |
1542
- | ---------- | ---- | -------- | ----------- || enabled | boolean | no | || password | string | no | || username | string | no | |
1543
-
1544
- ---
1545
-
1546
- #### [InvoiceDetailsSerializer](#InvoiceDetailsSerializer)
1547
-
1548
- | Properties | Type | Nullable | Description |
1549
- | ---------- | ---- | -------- | ----------- || e_invoice | [InvoiceCredSerializer](#InvoiceCredSerializer) | no | || e_waybill | [InvoiceCredSerializer](#InvoiceCredSerializer) | no | |
1550
-
1551
- ---
1552
-
1553
- #### [LocationDayWiseSerializer](#LocationDayWiseSerializer)
1554
-
1555
- | Properties | Type | Nullable | Description |
1556
- | ---------- | ---- | -------- | ----------- || closing | [LocationTimingSerializer](#LocationTimingSerializer) | no | || open | boolean | yes | || opening | [LocationTimingSerializer](#LocationTimingSerializer) | no | || weekday | string | yes | |
1557
-
1558
- ---
1559
-
1560
- #### [LocationListSerializer](#LocationListSerializer)
1561
-
1562
- | Properties | Type | Nullable | Description |
1563
- | ---------- | ---- | -------- | ----------- || items | [[GetLocationSerializer](#GetLocationSerializer)] | no | || page | [Page](#Page) | no | |
1564
-
1565
- ---
1566
-
1567
- #### [LocationManagerSerializer](#LocationManagerSerializer)
1568
-
1569
- | Properties | Type | Nullable | Description |
1570
- | ---------- | ---- | -------- | ----------- || email | string | no | || mobile_no | [SellerPhoneNumber](#SellerPhoneNumber) | yes | || name | string | no | |
1571
-
1572
- ---
1573
-
1574
- #### [LocationSerializer](#LocationSerializer)
1575
-
1576
- | Properties | Type | Nullable | Description |
1577
- | ---------- | ---- | -------- | ----------- || _custom_json | string | no | || address | [AddressSerializer](#AddressSerializer) | yes | || code | string | yes | || company | number | yes | || contact_numbers | [[SellerPhoneNumber](#SellerPhoneNumber)] | no | || display_name | string | yes | || documents | [[Document](#Document)] | no | || gst_credentials | [InvoiceDetailsSerializer](#InvoiceDetailsSerializer) | no | || holiday | [[HolidaySchemaSerializer](#HolidaySchemaSerializer)] | no | || manager | [LocationManagerSerializer](#LocationManagerSerializer) | no | || name | string | yes | || notification_emails | [string] | no | || product_return_config | [ProductReturnConfigSerializer](#ProductReturnConfigSerializer) | no | || stage | string | no | || store_type | string | no | || timing | [[LocationDayWiseSerializer](#LocationDayWiseSerializer)] | no | || uid | number | no | || warnings | string | no | |
1578
-
1579
- ---
1580
-
1581
- #### [LocationTimingSerializer](#LocationTimingSerializer)
1582
-
1583
- | Properties | Type | Nullable | Description |
1584
- | ---------- | ---- | -------- | ----------- || hour | number | yes | || minute | number | yes | |
1585
-
1586
- ---
1587
-
1588
- #### [MetricsSerializer](#MetricsSerializer)
1589
-
1590
- | Properties | Type | Nullable | Description |
1591
- | ---------- | ---- | -------- | ----------- || brand | [DocumentsObj](#DocumentsObj) | no | || company_documents | [DocumentsObj](#DocumentsObj) | no | || product | [DocumentsObj](#DocumentsObj) | no | || stage | string | no | || store | [DocumentsObj](#DocumentsObj) | no | || store_documents | [DocumentsObj](#DocumentsObj) | no | || uid | number | no | |
1592
-
1593
- ---
1594
-
1595
- #### [Page](#Page)
1596
-
1597
- | Properties | Type | Nullable | Description |
1598
- | ---------- | ---- | -------- | ----------- || current | number | no | || has_next | boolean | no | || has_previous | boolean | no | || item_total | number | no | || next_id | string | no | || size | number | no | || type | string | yes | |
1599
-
1600
- ---
1601
-
1602
- #### [ProductReturnConfigSerializer](#ProductReturnConfigSerializer)
1603
-
1604
- | Properties | Type | Nullable | Description |
1605
- | ---------- | ---- | -------- | ----------- || on_same_store | boolean | no | || store_uid | number | no | |
1606
-
1607
- ---
1608
-
1609
- #### [ProfileSuccessResponse](#ProfileSuccessResponse)
1610
-
1611
- | Properties | Type | Nullable | Description |
1612
- | ---------- | ---- | -------- | ----------- || success | boolean | no | || uid | number | no | |
1613
-
1614
- ---
1615
-
1616
- #### [SellerPhoneNumber](#SellerPhoneNumber)
1617
-
1618
- | Properties | Type | Nullable | Description |
1619
- | ---------- | ---- | -------- | ----------- || country_code | number | yes | || number | string | yes | |
1620
-
1621
- ---
1622
-
1623
- #### [UpdateCompany](#UpdateCompany)
1624
-
1625
- | Properties | Type | Nullable | Description |
1626
- | ---------- | ---- | -------- | ----------- || _custom_json | string | no | || addresses | [[CreateUpdateAddressSerializer](#CreateUpdateAddressSerializer)] | no | || business_details | [BusinessDetails](#BusinessDetails) | no | || business_info | string | no | || business_type | string | no | || company_type | string | no | || contact_details | [ContactDetails](#ContactDetails) | no | || documents | [[Document](#Document)] | no | || franchise_enabled | boolean | no | || name | string | no | || notification_emails | [string] | no | || reject_reason | string | no | || taxes | [[CompanyTaxesSerializer1](#CompanyTaxesSerializer1)] | no | || warnings | string | no | |
1627
-
1628
- ---
1629
-
1630
- #### [UserSerializer](#UserSerializer)
1631
-
1632
- | Properties | Type | Nullable | Description |
1633
- | ---------- | ---- | -------- | ----------- || contact | string | no | || user_id | string | no | || username | string | no | |
1634
-
1635
- ---
1636
-
1637
- #### [Website](#Website)
1638
-
1639
- | Properties | Type | Nullable | Description |
1640
- | ---------- | ---- | -------- | ----------- || url | string | no | |
1641
-
1642
- ---
1643
-
1644
-
1645
-
1646
-