@gofynd/fdk-client-javascript 1.4.2-beta.2 → 1.4.2-beta.4

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 (126) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationModel.d.ts +1742 -1726
  4. package/sdk/application/Cart/CartApplicationModel.js +1497 -1481
  5. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
  6. package/sdk/application/Catalog/CatalogApplicationModel.js +1611 -1611
  7. package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
  8. package/sdk/application/Common/CommonApplicationModel.js +172 -172
  9. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
  10. package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
  11. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1614 -1614
  12. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1151 -1151
  13. package/sdk/application/Content/ContentApplicationModel.d.ts +797 -797
  14. package/sdk/application/Content/ContentApplicationModel.js +757 -757
  15. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
  16. package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
  17. package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
  18. package/sdk/application/Lead/LeadApplicationModel.js +301 -301
  19. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +666 -666
  20. package/sdk/application/Logistic/LogisticApplicationModel.js +601 -601
  21. package/sdk/application/Order/OrderApplicationModel.d.ts +852 -846
  22. package/sdk/application/Order/OrderApplicationModel.js +828 -822
  23. package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
  24. package/sdk/application/Payment/PaymentApplicationClient.js +10 -10
  25. package/sdk/application/Payment/PaymentApplicationModel.d.ts +2176 -2145
  26. package/sdk/application/Payment/PaymentApplicationModel.js +1474 -1453
  27. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
  28. package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
  29. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1462 -1462
  30. package/sdk/application/PosCart/PosCartApplicationModel.js +1260 -1260
  31. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
  32. package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
  33. package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
  34. package/sdk/application/Share/ShareApplicationModel.js +121 -121
  35. package/sdk/application/Theme/ThemeApplicationModel.d.ts +895 -895
  36. package/sdk/application/Theme/ThemeApplicationModel.js +684 -684
  37. package/sdk/application/User/UserApplicationClient.d.ts +2 -2
  38. package/sdk/application/User/UserApplicationClient.js +4 -7
  39. package/sdk/application/User/UserApplicationModel.d.ts +769 -764
  40. package/sdk/application/User/UserApplicationModel.js +731 -741
  41. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +63 -63
  42. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +65 -65
  43. package/sdk/partner/Lead/LeadPartnerModel.d.ts +661 -661
  44. package/sdk/partner/Lead/LeadPartnerModel.js +491 -491
  45. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +223 -223
  46. package/sdk/partner/Logistics/LogisticsPartnerModel.js +235 -235
  47. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1087 -1087
  48. package/sdk/partner/Theme/ThemePartnerModel.js +819 -819
  49. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +386 -386
  50. package/sdk/partner/Webhook/WebhookPartnerModel.js +342 -342
  51. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
  52. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
  53. package/sdk/platform/Billing/BillingPlatformModel.d.ts +801 -801
  54. package/sdk/platform/Billing/BillingPlatformModel.js +783 -783
  55. package/sdk/platform/Cart/CartPlatformModel.d.ts +3333 -3317
  56. package/sdk/platform/Cart/CartPlatformModel.js +2936 -2920
  57. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +26 -0
  58. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +182 -0
  59. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +70 -1
  60. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +44 -0
  61. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1013 -980
  62. package/sdk/platform/Catalog/CatalogPlatformModel.js +977 -933
  63. package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
  64. package/sdk/platform/Common/CommonPlatformModel.js +187 -187
  65. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1238 -1238
  66. package/sdk/platform/Communication/CommunicationPlatformModel.js +1273 -1273
  67. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +661 -661
  68. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +692 -692
  69. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +3198 -3198
  70. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2247 -2247
  71. package/sdk/platform/Content/ContentPlatformModel.d.ts +1842 -1825
  72. package/sdk/platform/Content/ContentPlatformModel.js +1868 -1848
  73. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +245 -245
  74. package/sdk/platform/Discount/DiscountPlatformModel.js +248 -248
  75. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +1 -1
  76. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1
  77. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +2 -0
  78. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -0
  79. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +2 -2
  80. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +7 -4
  81. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +882 -869
  82. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +894 -878
  83. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1044 -1044
  84. package/sdk/platform/Finance/FinancePlatformModel.js +974 -974
  85. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
  86. package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
  87. package/sdk/platform/Lead/LeadPlatformModel.d.ts +608 -608
  88. package/sdk/platform/Lead/LeadPlatformModel.js +465 -465
  89. package/sdk/platform/Order/OrderPlatformModel.d.ts +5192 -5176
  90. package/sdk/platform/Order/OrderPlatformModel.js +4752 -4736
  91. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
  92. package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
  93. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2693 -2657
  94. package/sdk/platform/Payment/PaymentPlatformModel.js +1842 -1819
  95. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
  96. package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
  97. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +7 -6
  98. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +11 -10
  99. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1674 -1539
  100. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1663 -1534
  101. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
  102. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
  103. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +1 -1
  104. package/sdk/platform/Share/SharePlatformApplicationClient.js +19 -6
  105. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +13 -3
  106. package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -2
  107. package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
  108. package/sdk/platform/Share/SharePlatformModel.js +139 -139
  109. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1046 -1046
  110. package/sdk/platform/Theme/ThemePlatformModel.js +789 -789
  111. package/sdk/platform/User/UserPlatformModel.d.ts +823 -753
  112. package/sdk/platform/User/UserPlatformModel.js +731 -661
  113. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +439 -439
  114. package/sdk/platform/Webhook/WebhookPlatformModel.js +364 -364
  115. package/sdk/public/Billing/BillingPublicModel.d.ts +55 -55
  116. package/sdk/public/Billing/BillingPublicModel.js +51 -51
  117. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
  118. package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
  119. package/sdk/public/Content/ContentPublicModel.d.ts +26 -26
  120. package/sdk/public/Content/ContentPublicModel.js +28 -28
  121. package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
  122. package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
  123. package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
  124. package/sdk/public/Partner/PartnerPublicModel.js +113 -113
  125. package/sdk/public/Webhook/WebhookPublicModel.d.ts +87 -87
  126. package/sdk/public/Webhook/WebhookPublicModel.js +93 -93
@@ -1,178 +1,162 @@
1
1
  const Joi = require("joi");
2
2
 
3
3
  /**
4
- * @typedef AddressSerializer
5
- * @property {string} [address_type]
6
- * @property {string} [address1]
7
- * @property {string} [address2]
8
- * @property {string} [city]
9
- * @property {string} [country]
10
- * @property {string} country_code
11
- * @property {string} [landmark]
12
- * @property {number} latitude
13
- * @property {number} longitude
14
- * @property {number} [pincode]
15
- * @property {string} [sector]
16
- * @property {string} [state]
17
- * @property {string} [state_code]
4
+ * @typedef CompanyTaxesSerializer
5
+ * @property {string} [effective_date]
6
+ * @property {number} [rate]
7
+ * @property {boolean} [enable]
18
8
  */
19
9
 
20
10
  /**
21
- * @typedef AverageOrderProcessingTime
22
- * @property {number} [duration]
23
- * @property {string} [duration_type]
11
+ * @typedef UserSerializer
12
+ * @property {string} [user_id]
13
+ * @property {string} [contact]
14
+ * @property {string} [username]
24
15
  */
25
16
 
26
17
  /**
27
- * @typedef BrandBannerSerializer
28
- * @property {string} landscape
29
- * @property {string} portrait
18
+ * @typedef Website
19
+ * @property {string} [url]
30
20
  */
31
21
 
32
22
  /**
33
- * @typedef BulkLocationSerializer
34
- * @property {LocationSerializer[]} [data]
23
+ * @typedef BusinessDetails
24
+ * @property {Website} [website]
35
25
  */
36
26
 
37
27
  /**
38
- * @typedef BusinessCountryInfo
39
- * @property {string} country
40
- * @property {string} country_code
41
- * @property {CountryCurrencyInfo} currency
42
- * @property {string} timezone
28
+ * @typedef SellerPhoneNumber
29
+ * @property {number} country_code
30
+ * @property {string} number
43
31
  */
44
32
 
45
33
  /**
46
- * @typedef BusinessDetails
47
- * @property {Website} [website]
34
+ * @typedef ContactDetails
35
+ * @property {string[]} [emails]
36
+ * @property {SellerPhoneNumber[]} [phone]
48
37
  */
49
38
 
50
39
  /**
51
- * @typedef CompanyBrandListSerializer
52
- * @property {CompanyBrandSerializer[]} [items]
53
- * @property {Page} [page]
40
+ * @typedef CountryCurrencyInfo
41
+ * @property {string} code
42
+ * @property {string} symbol
43
+ * @property {string} name
54
44
  */
55
45
 
56
46
  /**
57
- * @typedef CompanyBrandPostRequestSerializer
58
- * @property {number[]} brands
59
- * @property {number} company
60
- * @property {number} [uid]
47
+ * @typedef BusinessCountryInfo
48
+ * @property {string} country_code
49
+ * @property {string} country
50
+ * @property {CountryCurrencyInfo} currency
51
+ * @property {string} timezone
61
52
  */
62
53
 
63
54
  /**
64
- * @typedef CompanyBrandSerializer
65
- * @property {GetBrandResponseSerializer} [brand]
66
- * @property {CompanySerializer} [company]
67
- * @property {UserSerializer} [created_by]
68
- * @property {string} [created_on]
69
- * @property {UserSerializer} [modified_by]
70
- * @property {string} [modified_on]
71
- * @property {string} [reject_reason]
72
- * @property {string} [stage]
73
- * @property {number} [uid]
74
- * @property {UserSerializer} [verified_by]
75
- * @property {string} [verified_on]
76
- * @property {Object} [warnings]
55
+ * @typedef Document
56
+ * @property {string} value
57
+ * @property {string} [legal_name]
58
+ * @property {boolean} [verified]
59
+ * @property {string} type
60
+ * @property {string} [url]
77
61
  */
78
62
 
79
63
  /**
80
- * @typedef CompanyDetails
81
- * @property {CompanySocialAccounts[]} [socials]
82
- * @property {string} [website_url]
64
+ * @typedef GetAddressSerializer
65
+ * @property {string} [landmark]
66
+ * @property {string} [country_code]
67
+ * @property {number} [pincode]
68
+ * @property {string} [address_type]
69
+ * @property {number} longitude
70
+ * @property {string} [country]
71
+ * @property {string} [address2]
72
+ * @property {string} [state]
73
+ * @property {string} [state_code]
74
+ * @property {string} [sector]
75
+ * @property {string} [address1]
76
+ * @property {string} [city]
77
+ * @property {number} latitude
83
78
  */
84
79
 
85
80
  /**
86
- * @typedef CompanySerializer
81
+ * @typedef GetCompanyProfileSerializerResponse
82
+ * @property {string} [business_info]
83
+ * @property {CompanyTaxesSerializer[]} [taxes]
84
+ * @property {string} [business_type]
85
+ * @property {string} [name]
87
86
  * @property {Object} [_custom_json]
88
- * @property {GetAddressSerializer[]} [addresses]
89
- * @property {BusinessCountryInfo} [business_country_info]
90
- * @property {string} business_type
91
- * @property {string} company_type
87
+ * @property {string} [verified_on]
92
88
  * @property {UserSerializer} [created_by]
93
89
  * @property {string} [created_on]
94
- * @property {CompanyDetails} [details]
95
- * @property {string[]} [market_channels]
96
- * @property {UserSerializer} [modified_by]
90
+ * @property {Object} [warnings]
91
+ * @property {BusinessDetails} [business_details]
92
+ * @property {string} [mode]
93
+ * @property {ContactDetails} [contact_details]
94
+ * @property {BusinessCountryInfo} [business_country_info]
97
95
  * @property {string} [modified_on]
98
- * @property {string} [name]
99
- * @property {string[]} [notification_emails]
100
- * @property {string} [reject_reason]
96
+ * @property {number} uid
97
+ * @property {boolean} [franchise_enabled]
101
98
  * @property {string} [stage]
102
- * @property {number} [uid]
99
+ * @property {string} company_type
100
+ * @property {Document[]} [documents]
101
+ * @property {GetAddressSerializer[]} [addresses]
103
102
  * @property {UserSerializer} [verified_by]
104
- * @property {string} [verified_on]
105
- */
106
-
107
- /**
108
- * @typedef CompanySocialAccounts
109
- * @property {string} name
110
- * @property {string} url
103
+ * @property {string[]} [notification_emails]
104
+ * @property {UserSerializer} [modified_by]
111
105
  */
112
106
 
113
107
  /**
114
- * @typedef CompanyTaxesSerializer
115
- * @property {string} [effective_date]
116
- * @property {boolean} [enable]
117
- * @property {number} [rate]
108
+ * @typedef ErrorResponse
109
+ * @property {string} [message]
110
+ * @property {string} [code]
111
+ * @property {number} [status]
112
+ * @property {Object} [meta]
118
113
  */
119
114
 
120
115
  /**
121
116
  * @typedef CompanyTaxesSerializer1
122
117
  * @property {string} [effective_date]
123
- * @property {boolean} [enable]
124
118
  * @property {number} [rate]
125
- */
126
-
127
- /**
128
- * @typedef ContactDetails
129
- * @property {string[]} [emails]
130
- * @property {SellerPhoneNumber[]} [phone]
131
- */
132
-
133
- /**
134
- * @typedef CountryCurrencyInfo
135
- * @property {string} code
136
- * @property {string} name
137
- * @property {string} symbol
119
+ * @property {boolean} [enable]
138
120
  */
139
121
 
140
122
  /**
141
123
  * @typedef CreateUpdateAddressSerializer
124
+ * @property {string} [landmark]
125
+ * @property {string} [country_code]
126
+ * @property {number} pincode
142
127
  * @property {string} address_type
143
- * @property {string} address1
128
+ * @property {number} longitude
129
+ * @property {string} country
144
130
  * @property {string} [address2]
131
+ * @property {string} state
132
+ * @property {string} address1
145
133
  * @property {string} city
146
- * @property {string} country
147
- * @property {string} [country_code]
148
- * @property {string} [landmark]
149
134
  * @property {number} latitude
150
- * @property {number} longitude
151
- * @property {number} pincode
152
- * @property {string} state
153
135
  */
154
136
 
155
137
  /**
156
- * @typedef CreateUpdateBrandRequestSerializer
138
+ * @typedef UpdateCompany
139
+ * @property {boolean} [franchise_enabled]
140
+ * @property {string} [business_info]
141
+ * @property {Object} [warnings]
142
+ * @property {string} [company_type]
157
143
  * @property {Object} [_custom_json]
158
- * @property {Object} [_locale_language]
159
- * @property {BrandBannerSerializer} banner
160
- * @property {string} [brand_tier]
161
- * @property {number} [company_id]
162
- * @property {string} [description]
163
- * @property {string} logo
164
- * @property {string} name
165
- * @property {string[]} [synonyms]
166
- * @property {number} [uid]
144
+ * @property {CompanyTaxesSerializer1[]} [taxes]
145
+ * @property {BusinessDetails} [business_details]
146
+ * @property {Document[]} [documents]
147
+ * @property {string} [business_type]
148
+ * @property {CreateUpdateAddressSerializer[]} [addresses]
149
+ * @property {string[]} [notification_emails]
150
+ * @property {ContactDetails} [contact_details]
151
+ * @property {string} [reject_reason]
152
+ * @property {string} [name]
167
153
  */
168
154
 
169
155
  /**
170
- * @typedef Document
171
- * @property {string} [legal_name]
172
- * @property {string} type
173
- * @property {string} [url]
174
- * @property {string} value
175
- * @property {boolean} [verified]
156
+ * @typedef ProfileSuccessResponse
157
+ * @property {number} [uid]
158
+ * @property {string} [message]
159
+ * @property {boolean} [success]
176
160
  */
177
161
 
178
162
  /**
@@ -182,152 +166,138 @@ const Joi = require("joi");
182
166
  */
183
167
 
184
168
  /**
185
- * @typedef ErrorResponse
186
- * @property {string} [code]
187
- * @property {string} [message]
188
- * @property {Object} [meta]
189
- * @property {number} [status]
169
+ * @typedef MetricsSerializer
170
+ * @property {string} [stage]
171
+ * @property {DocumentsObj} [store]
172
+ * @property {DocumentsObj} [company_documents]
173
+ * @property {DocumentsObj} [store_documents]
174
+ * @property {DocumentsObj} [product]
175
+ * @property {number} [uid]
176
+ * @property {DocumentsObj} [brand]
190
177
  */
191
178
 
192
179
  /**
193
- * @typedef GetAddressSerializer
194
- * @property {string} [address_type]
195
- * @property {string} [address1]
196
- * @property {string} [address2]
197
- * @property {string} [city]
198
- * @property {string} [country]
199
- * @property {string} [country_code]
200
- * @property {string} [landmark]
201
- * @property {number} latitude
202
- * @property {number} longitude
203
- * @property {number} [pincode]
204
- * @property {string} [sector]
205
- * @property {string} [state]
206
- * @property {string} [state_code]
180
+ * @typedef BrandBannerSerializer
181
+ * @property {string} portrait
182
+ * @property {string} landscape
207
183
  */
208
184
 
209
185
  /**
210
186
  * @typedef GetBrandResponseSerializer
211
- * @property {Object} [_custom_json]
212
- * @property {Object} [_locale_language]
187
+ * @property {UserSerializer} [modified_by]
213
188
  * @property {BrandBannerSerializer} [banner]
189
+ * @property {string} name
190
+ * @property {Object} [_custom_json]
191
+ * @property {string} [verified_on]
214
192
  * @property {UserSerializer} [created_by]
215
193
  * @property {string} [created_on]
216
- * @property {string} [description]
217
- * @property {string} [logo]
194
+ * @property {Object} [warnings]
195
+ * @property {Object} [_locale_language]
218
196
  * @property {string} [mode]
219
- * @property {UserSerializer} [modified_by]
197
+ * @property {string[]} [synonyms]
220
198
  * @property {string} [modified_on]
221
- * @property {string} name
199
+ * @property {number} [uid]
222
200
  * @property {string} [reject_reason]
223
- * @property {string} [slug_key]
224
201
  * @property {string} [stage]
225
- * @property {string[]} [synonyms]
226
- * @property {number} [uid]
227
202
  * @property {UserSerializer} [verified_by]
228
- * @property {string} [verified_on]
229
- * @property {Object} [warnings]
203
+ * @property {string} [slug_key]
204
+ * @property {string} [logo]
205
+ * @property {string} [description]
230
206
  */
231
207
 
232
208
  /**
233
- * @typedef GetCompanyProfileSerializerResponse
209
+ * @typedef CreateUpdateBrandRequestSerializer
234
210
  * @property {Object} [_custom_json]
235
- * @property {GetAddressSerializer[]} [addresses]
236
- * @property {BusinessCountryInfo} [business_country_info]
237
- * @property {BusinessDetails} [business_details]
238
- * @property {string} [business_info]
239
- * @property {string} [business_type]
240
- * @property {string} company_type
241
- * @property {ContactDetails} [contact_details]
242
- * @property {UserSerializer} [created_by]
243
- * @property {string} [created_on]
244
- * @property {Document[]} [documents]
245
- * @property {boolean} [franchise_enabled]
246
- * @property {string} [mode]
247
- * @property {UserSerializer} [modified_by]
248
- * @property {string} [modified_on]
249
- * @property {string} [name]
250
- * @property {string[]} [notification_emails]
251
- * @property {string} [stage]
252
- * @property {CompanyTaxesSerializer[]} [taxes]
253
- * @property {number} uid
254
- * @property {UserSerializer} [verified_by]
255
- * @property {string} [verified_on]
256
- * @property {Object} [warnings]
211
+ * @property {Object} [_locale_language]
212
+ * @property {string[]} [synonyms]
213
+ * @property {number} [company_id]
214
+ * @property {string} [description]
215
+ * @property {string} logo
216
+ * @property {string} [brand_tier]
217
+ * @property {number} [uid]
218
+ * @property {BrandBannerSerializer} banner
219
+ * @property {string} name
257
220
  */
258
221
 
259
222
  /**
260
- * @typedef GetCompanySerializer
261
- * @property {GetAddressSerializer[]} [addresses]
262
- * @property {string} [business_type]
263
- * @property {string} [company_type]
264
- * @property {UserSerializer} [created_by]
265
- * @property {string} [created_on]
266
- * @property {UserSerializer} [modified_by]
267
- * @property {string} [modified_on]
268
- * @property {string} [name]
269
- * @property {string} [reject_reason]
270
- * @property {string} [stage]
271
- * @property {number} [uid]
272
- * @property {UserSerializer} [verified_by]
273
- * @property {string} [verified_on]
223
+ * @typedef CompanySocialAccounts
224
+ * @property {string} name
225
+ * @property {string} url
274
226
  */
275
227
 
276
228
  /**
277
- * @typedef GetLocationSerializer
229
+ * @typedef CompanyDetails
230
+ * @property {CompanySocialAccounts[]} [socials]
231
+ * @property {string} [website_url]
232
+ */
233
+
234
+ /**
235
+ * @typedef CompanySerializer
236
+ * @property {string} [stage]
278
237
  * @property {Object} [_custom_json]
279
- * @property {GetAddressSerializer} address
280
- * @property {boolean} [auto_assign_courier_partner]
281
- * @property {boolean} [auto_invoice]
282
- * @property {AverageOrderProcessingTime} [avg_order_processing_time]
283
- * @property {boolean} [bulk_shipment]
284
- * @property {string} code
285
- * @property {GetCompanySerializer} [company]
286
- * @property {SellerPhoneNumber[]} [contact_numbers]
287
- * @property {UserSerializer} [created_by]
238
+ * @property {string} [verified_on]
239
+ * @property {UserSerializer} [verified_by]
288
240
  * @property {string} [created_on]
289
- * @property {boolean} [credit_note]
290
- * @property {boolean} [default_order_acceptance_timing]
291
- * @property {string} display_name
292
- * @property {Document[]} [documents]
293
- * @property {InvoiceDetailsSerializer} [gst_credentials]
294
- * @property {HolidaySchemaSerializer[]} [holiday]
295
- * @property {LocationManagerSerializer} [manager]
296
- * @property {UserSerializer} [modified_by]
241
+ * @property {UserSerializer} [created_by]
242
+ * @property {string} company_type
297
243
  * @property {string} [modified_on]
298
- * @property {string} name
244
+ * @property {string[]} [market_channels]
245
+ * @property {string} business_type
246
+ * @property {GetAddressSerializer[]} [addresses]
299
247
  * @property {string[]} [notification_emails]
300
- * @property {LocationDayWiseSerializer[]} [order_acceptance_timing]
301
- * @property {string} [phone_number]
302
- * @property {ProductReturnConfigSerializer} [product_return_config]
303
- * @property {string} [stage]
304
- * @property {string} [store_type]
305
- * @property {string[]} [tags]
306
- * @property {LocationDayWiseSerializer[]} [timing]
248
+ * @property {CompanyDetails} [details]
249
+ * @property {BusinessCountryInfo} [business_country_info]
307
250
  * @property {number} [uid]
308
- * @property {UserSerializer} [verified_by]
251
+ * @property {string} [reject_reason]
252
+ * @property {string} [name]
253
+ * @property {UserSerializer} [modified_by]
254
+ */
255
+
256
+ /**
257
+ * @typedef CompanyBrandSerializer
258
+ * @property {string} [stage]
309
259
  * @property {string} [verified_on]
260
+ * @property {UserSerializer} [verified_by]
261
+ * @property {string} [created_on]
262
+ * @property {UserSerializer} [created_by]
263
+ * @property {CompanySerializer} [company]
310
264
  * @property {Object} [warnings]
265
+ * @property {string} [modified_on]
266
+ * @property {number} [uid]
267
+ * @property {string} [reject_reason]
268
+ * @property {GetBrandResponseSerializer} [brand]
269
+ * @property {UserSerializer} [modified_by]
311
270
  */
312
271
 
313
272
  /**
314
- * @typedef HolidayDateSerializer
315
- * @property {string} end_date
316
- * @property {string} start_date
273
+ * @typedef Page
274
+ * @property {number} [item_total]
275
+ * @property {string} [next_id]
276
+ * @property {boolean} [has_previous]
277
+ * @property {boolean} [has_next]
278
+ * @property {number} [current]
279
+ * @property {string} type
280
+ * @property {number} [size]
317
281
  */
318
282
 
319
283
  /**
320
- * @typedef HolidaySchemaSerializer
321
- * @property {HolidayDateSerializer} date
322
- * @property {string} holiday_type
323
- * @property {string} title
284
+ * @typedef CompanyBrandListSerializer
285
+ * @property {CompanyBrandSerializer[]} [items]
286
+ * @property {Page} [page]
287
+ */
288
+
289
+ /**
290
+ * @typedef CompanyBrandPostRequestSerializer
291
+ * @property {number} [uid]
292
+ * @property {number[]} brands
293
+ * @property {number} company
324
294
  */
325
295
 
326
296
  /**
327
297
  * @typedef InvoiceCredSerializer
298
+ * @property {string} [username]
328
299
  * @property {boolean} [enabled]
329
300
  * @property {string} [password]
330
- * @property {string} [username]
331
301
  */
332
302
 
333
303
  /**
@@ -337,17 +307,20 @@ const Joi = require("joi");
337
307
  */
338
308
 
339
309
  /**
340
- * @typedef LocationDayWiseSerializer
341
- * @property {LocationTimingSerializer} [closing]
342
- * @property {boolean} open
343
- * @property {LocationTimingSerializer} [opening]
344
- * @property {string} weekday
345
- */
346
-
347
- /**
348
- * @typedef LocationListSerializer
349
- * @property {GetLocationSerializer[]} [items]
350
- * @property {Page} [page]
310
+ * @typedef GetCompanySerializer
311
+ * @property {string} [stage]
312
+ * @property {string} [verified_on]
313
+ * @property {UserSerializer} [verified_by]
314
+ * @property {string} [created_on]
315
+ * @property {UserSerializer} [created_by]
316
+ * @property {string} [company_type]
317
+ * @property {string} [modified_on]
318
+ * @property {string} [business_type]
319
+ * @property {GetAddressSerializer[]} [addresses]
320
+ * @property {number} [uid]
321
+ * @property {string} [reject_reason]
322
+ * @property {string} [name]
323
+ * @property {UserSerializer} [modified_by]
351
324
  */
352
325
 
353
326
  /**
@@ -357,38 +330,6 @@ const Joi = require("joi");
357
330
  * @property {string} [name]
358
331
  */
359
332
 
360
- /**
361
- * @typedef LocationSerializer
362
- * @property {Object} [_custom_json]
363
- * @property {AddressSerializer} address
364
- * @property {boolean} [auto_assign_courier_partner]
365
- * @property {boolean} [auto_invoice]
366
- * @property {AverageOrderProcessingTime} [avg_order_processing_time]
367
- * @property {boolean} [bulk_shipment]
368
- * @property {string} code
369
- * @property {number} company
370
- * @property {SellerPhoneNumber[]} [contact_numbers]
371
- * @property {boolean} [credit_note]
372
- * @property {boolean} [default_order_acceptance_timing] - Flag to set
373
- * order_acceptance_timing as default timing
374
- * @property {string} display_name
375
- * @property {Document[]} documents
376
- * @property {InvoiceDetailsSerializer} [gst_credentials]
377
- * @property {HolidaySchemaSerializer[]} [holiday]
378
- * @property {LocationManagerSerializer} [manager]
379
- * @property {string} name
380
- * @property {string[]} [notification_emails]
381
- * @property {LocationDayWiseSerializer[]} [order_acceptance_timing] - Order
382
- * acceptance timing of the store
383
- * @property {ProductReturnConfigSerializer} [product_return_config]
384
- * @property {string} [stage]
385
- * @property {string} [store_type]
386
- * @property {string[]} [tags]
387
- * @property {LocationDayWiseSerializer[]} [timing]
388
- * @property {number} [uid]
389
- * @property {Object} [warnings]
390
- */
391
-
392
333
  /**
393
334
  * @typedef LocationTimingSerializer
394
335
  * @property {number} hour
@@ -396,229 +337,279 @@ const Joi = require("joi");
396
337
  */
397
338
 
398
339
  /**
399
- * @typedef MetricsSerializer
400
- * @property {DocumentsObj} [brand]
401
- * @property {DocumentsObj} [company_documents]
402
- * @property {DocumentsObj} [product]
403
- * @property {string} [stage]
404
- * @property {DocumentsObj} [store]
405
- * @property {DocumentsObj} [store_documents]
406
- * @property {number} [uid]
407
- */
408
-
409
- /**
410
- * @typedef Page
411
- * @property {number} [current]
412
- * @property {boolean} [has_next]
413
- * @property {boolean} [has_previous]
414
- * @property {number} [item_total]
415
- * @property {string} [next_id]
416
- * @property {number} [size]
417
- * @property {string} type
418
- */
419
-
420
- /**
421
- * @typedef ProductReturnConfigSerializer
422
- * @property {boolean} [on_same_store]
423
- * @property {number} [store_uid]
340
+ * @typedef LocationDayWiseSerializer
341
+ * @property {boolean} open
342
+ * @property {string} weekday
343
+ * @property {LocationTimingSerializer} [opening]
344
+ * @property {LocationTimingSerializer} [closing]
424
345
  */
425
346
 
426
347
  /**
427
- * @typedef ProfileSuccessResponse
428
- * @property {string} [message]
429
- * @property {boolean} [success]
430
- * @property {number} [uid]
348
+ * @typedef HolidayDateSerializer
349
+ * @property {string} end_date
350
+ * @property {string} start_date
431
351
  */
432
352
 
433
353
  /**
434
- * @typedef SellerPhoneNumber
435
- * @property {number} country_code
436
- * @property {string} number
354
+ * @typedef HolidaySchemaSerializer
355
+ * @property {HolidayDateSerializer} date
356
+ * @property {string} title
357
+ * @property {string} holiday_type
437
358
  */
438
359
 
439
360
  /**
440
- * @typedef StoreTagsResponseSchema
441
- * @property {boolean} [success]
442
- * @property {string[]} [tags]
361
+ * @typedef ProductReturnConfigSerializer
362
+ * @property {boolean} [on_same_store]
363
+ * @property {number} [store_uid]
443
364
  */
444
365
 
445
366
  /**
446
- * @typedef UpdateCompany
367
+ * @typedef GetLocationSerializer
368
+ * @property {string} code
369
+ * @property {string} [phone_number]
370
+ * @property {SellerPhoneNumber[]} [contact_numbers]
371
+ * @property {InvoiceDetailsSerializer} [gst_credentials]
372
+ * @property {string} name
447
373
  * @property {Object} [_custom_json]
448
- * @property {CreateUpdateAddressSerializer[]} [addresses]
449
- * @property {BusinessDetails} [business_details]
450
- * @property {string} [business_info]
451
- * @property {string} [business_type]
452
- * @property {string} [company_type]
453
- * @property {ContactDetails} [contact_details]
374
+ * @property {string} [verified_on]
375
+ * @property {UserSerializer} [created_by]
376
+ * @property {string} [created_on]
377
+ * @property {GetCompanySerializer} [company]
378
+ * @property {GetAddressSerializer} address
379
+ * @property {Object} [warnings]
380
+ * @property {string} [store_type]
381
+ * @property {LocationManagerSerializer} [manager]
382
+ * @property {boolean} [auto_invoice]
383
+ * @property {string} [modified_on]
384
+ * @property {number} [uid]
385
+ * @property {LocationDayWiseSerializer[]} [timing]
386
+ * @property {string} [stage]
454
387
  * @property {Document[]} [documents]
455
- * @property {boolean} [franchise_enabled]
456
- * @property {string} [name]
388
+ * @property {boolean} [credit_note]
389
+ * @property {HolidaySchemaSerializer[]} [holiday]
390
+ * @property {string} display_name
391
+ * @property {ProductReturnConfigSerializer} [product_return_config]
392
+ * @property {UserSerializer} [verified_by]
457
393
  * @property {string[]} [notification_emails]
458
- * @property {string} [reject_reason]
459
- * @property {CompanyTaxesSerializer1[]} [taxes]
394
+ * @property {UserSerializer} [modified_by]
395
+ * @property {string[]} [tags]
396
+ * @property {boolean} [default_order_acceptance_timing]
397
+ * @property {LocationDayWiseSerializer[]} [order_acceptance_timing]
398
+ * @property {AverageOrderProcessingTime} [avg_order_processing_time]
399
+ * @property {boolean} [bulk_shipment]
400
+ * @property {boolean} [auto_assign_courier_partner]
401
+ */
402
+
403
+ /**
404
+ * @typedef LocationListSerializer
405
+ * @property {GetLocationSerializer[]} [items]
406
+ * @property {Page} [page]
407
+ */
408
+
409
+ /**
410
+ * @typedef AddressSerializer
411
+ * @property {string} [landmark]
412
+ * @property {string} country_code
413
+ * @property {number} [pincode]
414
+ * @property {string} [address_type]
415
+ * @property {number} longitude
416
+ * @property {string} [country]
417
+ * @property {string} [address2]
418
+ * @property {string} [state]
419
+ * @property {string} [sector]
420
+ * @property {string} [state_code]
421
+ * @property {string} [address1]
422
+ * @property {string} [city]
423
+ * @property {number} latitude
424
+ */
425
+
426
+ /**
427
+ * @typedef LocationSerializer
428
+ * @property {string} code
429
+ * @property {InvoiceDetailsSerializer} [gst_credentials]
430
+ * @property {SellerPhoneNumber[]} [contact_numbers]
431
+ * @property {string} name
432
+ * @property {Object} [_custom_json]
460
433
  * @property {Object} [warnings]
434
+ * @property {AddressSerializer} address
435
+ * @property {number} company
436
+ * @property {string} [store_type]
437
+ * @property {LocationManagerSerializer} [manager]
438
+ * @property {boolean} [auto_invoice]
439
+ * @property {number} [uid]
440
+ * @property {LocationDayWiseSerializer[]} [timing]
441
+ * @property {string} [stage]
442
+ * @property {Document[]} documents
443
+ * @property {boolean} [credit_note]
444
+ * @property {HolidaySchemaSerializer[]} [holiday]
445
+ * @property {ProductReturnConfigSerializer} [product_return_config]
446
+ * @property {string} display_name
447
+ * @property {string[]} [notification_emails]
448
+ * @property {string[]} [tags]
449
+ * @property {boolean} [default_order_acceptance_timing] - Flag to set
450
+ * order_acceptance_timing as default timing
451
+ * @property {LocationDayWiseSerializer[]} [order_acceptance_timing] - Order
452
+ * acceptance timing of the store
453
+ * @property {AverageOrderProcessingTime} [avg_order_processing_time]
454
+ * @property {boolean} [bulk_shipment]
455
+ * @property {boolean} [auto_assign_courier_partner]
461
456
  */
462
457
 
463
458
  /**
464
- * @typedef UserSerializer
465
- * @property {string} [contact]
466
- * @property {string} [user_id]
467
- * @property {string} [username]
459
+ * @typedef BulkLocationSerializer
460
+ * @property {LocationSerializer[]} [data]
468
461
  */
469
462
 
470
463
  /**
471
- * @typedef Website
472
- * @property {string} [url]
464
+ * @typedef AverageOrderProcessingTime
465
+ * @property {number} [duration]
466
+ * @property {string} [duration_type]
467
+ */
468
+
469
+ /**
470
+ * @typedef StoreTagsResponseSchema
471
+ * @property {string[]} [tags]
472
+ * @property {boolean} [success]
473
473
  */
474
474
 
475
475
  class CompanyProfilePlatformModel {
476
- /** @returns {AddressSerializer} */
477
- static AddressSerializer() {
476
+ /** @returns {CompanyTaxesSerializer} */
477
+ static CompanyTaxesSerializer() {
478
478
  return Joi.object({
479
- address_type: Joi.string().allow(""),
480
- address1: Joi.string().allow(""),
481
- address2: Joi.string().allow(""),
482
- city: Joi.string().allow(""),
483
- country: Joi.string().allow(""),
484
- country_code: Joi.string().allow("").required(),
485
- landmark: Joi.string().allow(""),
486
- latitude: Joi.number().required(),
487
- longitude: Joi.number().required(),
488
- pincode: Joi.number(),
489
- sector: Joi.string().allow(""),
490
- state: Joi.string().allow(""),
491
- state_code: Joi.string().allow(""),
479
+ effective_date: Joi.string().allow(""),
480
+ rate: Joi.number(),
481
+ enable: Joi.boolean(),
492
482
  });
493
483
  }
494
484
 
495
- /** @returns {AverageOrderProcessingTime} */
496
- static AverageOrderProcessingTime() {
485
+ /** @returns {UserSerializer} */
486
+ static UserSerializer() {
497
487
  return Joi.object({
498
- duration: Joi.number(),
499
- duration_type: Joi.string().allow(""),
488
+ user_id: Joi.string().allow(""),
489
+ contact: Joi.string().allow(""),
490
+ username: Joi.string().allow(""),
500
491
  });
501
492
  }
502
493
 
503
- /** @returns {BrandBannerSerializer} */
504
- static BrandBannerSerializer() {
494
+ /** @returns {Website} */
495
+ static Website() {
505
496
  return Joi.object({
506
- landscape: Joi.string().allow("").required(),
507
- portrait: Joi.string().allow("").required(),
497
+ url: Joi.string().allow(""),
508
498
  });
509
499
  }
510
500
 
511
- /** @returns {BulkLocationSerializer} */
512
- static BulkLocationSerializer() {
501
+ /** @returns {BusinessDetails} */
502
+ static BusinessDetails() {
513
503
  return Joi.object({
514
- data: Joi.array().items(CompanyProfilePlatformModel.LocationSerializer()),
504
+ website: CompanyProfilePlatformModel.Website(),
515
505
  });
516
506
  }
517
507
 
518
- /** @returns {BusinessCountryInfo} */
519
- static BusinessCountryInfo() {
508
+ /** @returns {SellerPhoneNumber} */
509
+ static SellerPhoneNumber() {
520
510
  return Joi.object({
521
- country: Joi.string().allow("").required(),
522
- country_code: Joi.string().allow("").required(),
523
- currency: CompanyProfilePlatformModel.CountryCurrencyInfo().required(),
524
- timezone: Joi.string().allow("").required(),
511
+ country_code: Joi.number().required(),
512
+ number: Joi.string().allow("").required(),
525
513
  });
526
514
  }
527
515
 
528
- /** @returns {BusinessDetails} */
529
- static BusinessDetails() {
516
+ /** @returns {ContactDetails} */
517
+ static ContactDetails() {
530
518
  return Joi.object({
531
- website: CompanyProfilePlatformModel.Website(),
519
+ emails: Joi.array().items(Joi.string().allow("")),
520
+ phone: Joi.array().items(CompanyProfilePlatformModel.SellerPhoneNumber()),
532
521
  });
533
522
  }
534
523
 
535
- /** @returns {CompanyBrandListSerializer} */
536
- static CompanyBrandListSerializer() {
524
+ /** @returns {CountryCurrencyInfo} */
525
+ static CountryCurrencyInfo() {
537
526
  return Joi.object({
538
- items: Joi.array().items(
539
- CompanyProfilePlatformModel.CompanyBrandSerializer()
540
- ),
541
- page: CompanyProfilePlatformModel.Page(),
527
+ code: Joi.string().allow("").required(),
528
+ symbol: Joi.string().allow("").required(),
529
+ name: Joi.string().allow("").required(),
542
530
  });
543
531
  }
544
532
 
545
- /** @returns {CompanyBrandPostRequestSerializer} */
546
- static CompanyBrandPostRequestSerializer() {
533
+ /** @returns {BusinessCountryInfo} */
534
+ static BusinessCountryInfo() {
547
535
  return Joi.object({
548
- brands: Joi.array().items(Joi.number()).required(),
549
- company: Joi.number().required(),
550
- uid: Joi.number(),
536
+ country_code: Joi.string().allow("").required(),
537
+ country: Joi.string().allow("").required(),
538
+ currency: CompanyProfilePlatformModel.CountryCurrencyInfo().required(),
539
+ timezone: Joi.string().allow("").required(),
551
540
  });
552
541
  }
553
542
 
554
- /** @returns {CompanyBrandSerializer} */
555
- static CompanyBrandSerializer() {
543
+ /** @returns {Document} */
544
+ static Document() {
556
545
  return Joi.object({
557
- brand: CompanyProfilePlatformModel.GetBrandResponseSerializer(),
558
- company: CompanyProfilePlatformModel.CompanySerializer(),
559
- created_by: CompanyProfilePlatformModel.UserSerializer(),
560
- created_on: Joi.string().allow(""),
561
- modified_by: CompanyProfilePlatformModel.UserSerializer(),
562
- modified_on: Joi.string().allow(""),
563
- reject_reason: Joi.string().allow(""),
564
- stage: Joi.string().allow(""),
565
- uid: Joi.number(),
566
- verified_by: CompanyProfilePlatformModel.UserSerializer(),
567
- verified_on: Joi.string().allow(""),
568
- warnings: Joi.any(),
546
+ value: Joi.string().allow("").required(),
547
+ legal_name: Joi.string().allow(""),
548
+ verified: Joi.boolean(),
549
+ type: Joi.string().allow("").required(),
550
+ url: Joi.string().allow(""),
569
551
  });
570
552
  }
571
553
 
572
- /** @returns {CompanyDetails} */
573
- static CompanyDetails() {
554
+ /** @returns {GetAddressSerializer} */
555
+ static GetAddressSerializer() {
574
556
  return Joi.object({
575
- socials: Joi.array().items(
576
- CompanyProfilePlatformModel.CompanySocialAccounts()
577
- ),
578
- website_url: Joi.string().allow(""),
557
+ landmark: Joi.string().allow(""),
558
+ country_code: Joi.string().allow(""),
559
+ pincode: Joi.number(),
560
+ address_type: Joi.string().allow(""),
561
+ longitude: Joi.number().required(),
562
+ country: Joi.string().allow(""),
563
+ address2: Joi.string().allow(""),
564
+ state: Joi.string().allow(""),
565
+ state_code: Joi.string().allow(""),
566
+ sector: Joi.string().allow(""),
567
+ address1: Joi.string().allow(""),
568
+ city: Joi.string().allow(""),
569
+ latitude: Joi.number().required(),
579
570
  });
580
571
  }
581
572
 
582
- /** @returns {CompanySerializer} */
583
- static CompanySerializer() {
573
+ /** @returns {GetCompanyProfileSerializerResponse} */
574
+ static GetCompanyProfileSerializerResponse() {
584
575
  return Joi.object({
585
- _custom_json: Joi.any(),
586
- addresses: Joi.array().items(
587
- CompanyProfilePlatformModel.GetAddressSerializer()
576
+ business_info: Joi.string().allow(""),
577
+ taxes: Joi.array().items(
578
+ CompanyProfilePlatformModel.CompanyTaxesSerializer()
588
579
  ),
589
- business_country_info: CompanyProfilePlatformModel.BusinessCountryInfo(),
590
- business_type: Joi.string().allow("").required(),
591
- company_type: Joi.string().allow("").required(),
580
+ business_type: Joi.string().allow(""),
581
+ name: Joi.string().allow(""),
582
+ _custom_json: Joi.any(),
583
+ verified_on: Joi.string().allow(""),
592
584
  created_by: CompanyProfilePlatformModel.UserSerializer(),
593
585
  created_on: Joi.string().allow(""),
594
- details: CompanyProfilePlatformModel.CompanyDetails(),
595
- market_channels: Joi.array().items(Joi.string().allow("")),
596
- modified_by: CompanyProfilePlatformModel.UserSerializer(),
586
+ warnings: Joi.any(),
587
+ business_details: CompanyProfilePlatformModel.BusinessDetails(),
588
+ mode: Joi.string().allow(""),
589
+ contact_details: CompanyProfilePlatformModel.ContactDetails(),
590
+ business_country_info: CompanyProfilePlatformModel.BusinessCountryInfo(),
597
591
  modified_on: Joi.string().allow(""),
598
- name: Joi.string().allow(""),
599
- notification_emails: Joi.array().items(Joi.string().allow("")),
600
- reject_reason: Joi.string().allow(""),
592
+ uid: Joi.number().required(),
593
+ franchise_enabled: Joi.boolean(),
601
594
  stage: Joi.string().allow(""),
602
- uid: Joi.number(),
595
+ company_type: Joi.string().allow("").required(),
596
+ documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
597
+ addresses: Joi.array().items(
598
+ CompanyProfilePlatformModel.GetAddressSerializer()
599
+ ),
603
600
  verified_by: CompanyProfilePlatformModel.UserSerializer(),
604
- verified_on: Joi.string().allow(""),
605
- });
606
- }
607
-
608
- /** @returns {CompanySocialAccounts} */
609
- static CompanySocialAccounts() {
610
- return Joi.object({
611
- name: Joi.string().allow("").required(),
612
- url: Joi.string().allow("").required(),
601
+ notification_emails: Joi.array().items(Joi.string().allow("")),
602
+ modified_by: CompanyProfilePlatformModel.UserSerializer(),
613
603
  });
614
604
  }
615
605
 
616
- /** @returns {CompanyTaxesSerializer} */
617
- static CompanyTaxesSerializer() {
606
+ /** @returns {ErrorResponse} */
607
+ static ErrorResponse() {
618
608
  return Joi.object({
619
- effective_date: Joi.string().allow(""),
620
- enable: Joi.boolean(),
621
- rate: Joi.number(),
609
+ message: Joi.string().allow(""),
610
+ code: Joi.string().allow(""),
611
+ status: Joi.number(),
612
+ meta: Joi.any(),
622
613
  });
623
614
  }
624
615
 
@@ -626,69 +617,58 @@ class CompanyProfilePlatformModel {
626
617
  static CompanyTaxesSerializer1() {
627
618
  return Joi.object({
628
619
  effective_date: Joi.string().allow(""),
629
- enable: Joi.boolean(),
630
620
  rate: Joi.number(),
631
- });
632
- }
633
-
634
- /** @returns {ContactDetails} */
635
- static ContactDetails() {
636
- return Joi.object({
637
- emails: Joi.array().items(Joi.string().allow("")),
638
- phone: Joi.array().items(CompanyProfilePlatformModel.SellerPhoneNumber()),
639
- });
640
- }
641
-
642
- /** @returns {CountryCurrencyInfo} */
643
- static CountryCurrencyInfo() {
644
- return Joi.object({
645
- code: Joi.string().allow("").required(),
646
- name: Joi.string().allow("").required(),
647
- symbol: Joi.string().allow("").required(),
621
+ enable: Joi.boolean(),
648
622
  });
649
623
  }
650
624
 
651
625
  /** @returns {CreateUpdateAddressSerializer} */
652
626
  static CreateUpdateAddressSerializer() {
653
627
  return Joi.object({
628
+ landmark: Joi.string().allow(""),
629
+ country_code: Joi.string().allow(""),
630
+ pincode: Joi.number().required(),
654
631
  address_type: Joi.string().allow("").required(),
655
- address1: Joi.string().allow("").required(),
632
+ longitude: Joi.number().required(),
633
+ country: Joi.string().allow("").required(),
656
634
  address2: Joi.string().allow(""),
635
+ state: Joi.string().allow("").required(),
636
+ address1: Joi.string().allow("").required(),
657
637
  city: Joi.string().allow("").required(),
658
- country: Joi.string().allow("").required(),
659
- country_code: Joi.string().allow(""),
660
- landmark: Joi.string().allow(""),
661
638
  latitude: Joi.number().required(),
662
- longitude: Joi.number().required(),
663
- pincode: Joi.number().required(),
664
- state: Joi.string().allow("").required(),
665
639
  });
666
640
  }
667
641
 
668
- /** @returns {CreateUpdateBrandRequestSerializer} */
669
- static CreateUpdateBrandRequestSerializer() {
642
+ /** @returns {UpdateCompany} */
643
+ static UpdateCompany() {
670
644
  return Joi.object({
645
+ franchise_enabled: Joi.boolean(),
646
+ business_info: Joi.string().allow(""),
647
+ warnings: Joi.any(),
648
+ company_type: Joi.string().allow(""),
671
649
  _custom_json: Joi.any(),
672
- _locale_language: Joi.any(),
673
- banner: CompanyProfilePlatformModel.BrandBannerSerializer().required(),
674
- brand_tier: Joi.string().allow(""),
675
- company_id: Joi.number(),
676
- description: Joi.string().allow(""),
677
- logo: Joi.string().allow("").required(),
678
- name: Joi.string().allow("").required(),
679
- synonyms: Joi.array().items(Joi.string().allow("")),
680
- uid: Joi.number(),
650
+ taxes: Joi.array().items(
651
+ CompanyProfilePlatformModel.CompanyTaxesSerializer1()
652
+ ),
653
+ business_details: CompanyProfilePlatformModel.BusinessDetails(),
654
+ documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
655
+ business_type: Joi.string().allow(""),
656
+ addresses: Joi.array().items(
657
+ CompanyProfilePlatformModel.CreateUpdateAddressSerializer()
658
+ ),
659
+ notification_emails: Joi.array().items(Joi.string().allow("")),
660
+ contact_details: CompanyProfilePlatformModel.ContactDetails(),
661
+ reject_reason: Joi.string().allow(""),
662
+ name: Joi.string().allow(""),
681
663
  });
682
664
  }
683
665
 
684
- /** @returns {Document} */
685
- static Document() {
686
- return Joi.object({
687
- legal_name: Joi.string().allow(""),
688
- type: Joi.string().allow("").required(),
689
- url: Joi.string().allow(""),
690
- value: Joi.string().allow("").required(),
691
- verified: Joi.boolean(),
666
+ /** @returns {ProfileSuccessResponse} */
667
+ static ProfileSuccessResponse() {
668
+ return Joi.object({
669
+ uid: Joi.number(),
670
+ message: Joi.string().allow(""),
671
+ success: Joi.boolean(),
692
672
  });
693
673
  }
694
674
 
@@ -700,158 +680,224 @@ class CompanyProfilePlatformModel {
700
680
  });
701
681
  }
702
682
 
703
- /** @returns {ErrorResponse} */
704
- static ErrorResponse() {
683
+ /** @returns {MetricsSerializer} */
684
+ static MetricsSerializer() {
705
685
  return Joi.object({
706
- code: Joi.string().allow(""),
707
- message: Joi.string().allow(""),
708
- meta: Joi.any(),
709
- status: Joi.number(),
686
+ stage: Joi.string().allow(""),
687
+ store: CompanyProfilePlatformModel.DocumentsObj(),
688
+ company_documents: CompanyProfilePlatformModel.DocumentsObj(),
689
+ store_documents: CompanyProfilePlatformModel.DocumentsObj(),
690
+ product: CompanyProfilePlatformModel.DocumentsObj(),
691
+ uid: Joi.number(),
692
+ brand: CompanyProfilePlatformModel.DocumentsObj(),
710
693
  });
711
694
  }
712
695
 
713
- /** @returns {GetAddressSerializer} */
714
- static GetAddressSerializer() {
696
+ /** @returns {BrandBannerSerializer} */
697
+ static BrandBannerSerializer() {
715
698
  return Joi.object({
716
- address_type: Joi.string().allow(""),
717
- address1: Joi.string().allow(""),
718
- address2: Joi.string().allow(""),
719
- city: Joi.string().allow(""),
720
- country: Joi.string().allow(""),
721
- country_code: Joi.string().allow(""),
722
- landmark: Joi.string().allow(""),
723
- latitude: Joi.number().required(),
724
- longitude: Joi.number().required(),
725
- pincode: Joi.number(),
726
- sector: Joi.string().allow(""),
727
- state: Joi.string().allow(""),
728
- state_code: Joi.string().allow(""),
699
+ portrait: Joi.string().allow("").required(),
700
+ landscape: Joi.string().allow("").required(),
729
701
  });
730
702
  }
731
703
 
732
704
  /** @returns {GetBrandResponseSerializer} */
733
705
  static GetBrandResponseSerializer() {
734
706
  return Joi.object({
735
- _custom_json: Joi.any(),
736
- _locale_language: Joi.any(),
707
+ modified_by: CompanyProfilePlatformModel.UserSerializer(),
737
708
  banner: CompanyProfilePlatformModel.BrandBannerSerializer(),
709
+ name: Joi.string().allow("").required(),
710
+ _custom_json: Joi.any(),
711
+ verified_on: Joi.string().allow(""),
738
712
  created_by: CompanyProfilePlatformModel.UserSerializer(),
739
713
  created_on: Joi.string().allow(""),
740
- description: Joi.string().allow(""),
741
- logo: Joi.string().allow(""),
714
+ warnings: Joi.any(),
715
+ _locale_language: Joi.any(),
742
716
  mode: Joi.string().allow(""),
743
- modified_by: CompanyProfilePlatformModel.UserSerializer(),
717
+ synonyms: Joi.array().items(Joi.string().allow("")),
744
718
  modified_on: Joi.string().allow(""),
745
- name: Joi.string().allow("").required(),
719
+ uid: Joi.number(),
746
720
  reject_reason: Joi.string().allow(""),
747
- slug_key: Joi.string().allow(""),
748
721
  stage: Joi.string().allow(""),
722
+ verified_by: CompanyProfilePlatformModel.UserSerializer(),
723
+ slug_key: Joi.string().allow(""),
724
+ logo: Joi.string().allow(""),
725
+ description: Joi.string().allow(""),
726
+ });
727
+ }
728
+
729
+ /** @returns {CreateUpdateBrandRequestSerializer} */
730
+ static CreateUpdateBrandRequestSerializer() {
731
+ return Joi.object({
732
+ _custom_json: Joi.any(),
733
+ _locale_language: Joi.any(),
749
734
  synonyms: Joi.array().items(Joi.string().allow("")),
735
+ company_id: Joi.number(),
736
+ description: Joi.string().allow(""),
737
+ logo: Joi.string().allow("").required(),
738
+ brand_tier: Joi.string().allow(""),
750
739
  uid: Joi.number(),
751
- verified_by: CompanyProfilePlatformModel.UserSerializer(),
752
- verified_on: Joi.string().allow(""),
753
- warnings: Joi.any(),
740
+ banner: CompanyProfilePlatformModel.BrandBannerSerializer().required(),
741
+ name: Joi.string().allow("").required(),
754
742
  });
755
743
  }
756
744
 
757
- /** @returns {GetCompanyProfileSerializerResponse} */
758
- static GetCompanyProfileSerializerResponse() {
745
+ /** @returns {CompanySocialAccounts} */
746
+ static CompanySocialAccounts() {
747
+ return Joi.object({
748
+ name: Joi.string().allow("").required(),
749
+ url: Joi.string().allow("").required(),
750
+ });
751
+ }
752
+
753
+ /** @returns {CompanyDetails} */
754
+ static CompanyDetails() {
755
+ return Joi.object({
756
+ socials: Joi.array().items(
757
+ CompanyProfilePlatformModel.CompanySocialAccounts()
758
+ ),
759
+ website_url: Joi.string().allow(""),
760
+ });
761
+ }
762
+
763
+ /** @returns {CompanySerializer} */
764
+ static CompanySerializer() {
759
765
  return Joi.object({
766
+ stage: Joi.string().allow(""),
760
767
  _custom_json: Joi.any(),
768
+ verified_on: Joi.string().allow(""),
769
+ verified_by: CompanyProfilePlatformModel.UserSerializer(),
770
+ created_on: Joi.string().allow(""),
771
+ created_by: CompanyProfilePlatformModel.UserSerializer(),
772
+ company_type: Joi.string().allow("").required(),
773
+ modified_on: Joi.string().allow(""),
774
+ market_channels: Joi.array().items(Joi.string().allow("")),
775
+ business_type: Joi.string().allow("").required(),
761
776
  addresses: Joi.array().items(
762
777
  CompanyProfilePlatformModel.GetAddressSerializer()
763
778
  ),
779
+ notification_emails: Joi.array().items(Joi.string().allow("")),
780
+ details: CompanyProfilePlatformModel.CompanyDetails(),
764
781
  business_country_info: CompanyProfilePlatformModel.BusinessCountryInfo(),
765
- business_details: CompanyProfilePlatformModel.BusinessDetails(),
766
- business_info: Joi.string().allow(""),
767
- business_type: Joi.string().allow(""),
768
- company_type: Joi.string().allow("").required(),
769
- contact_details: CompanyProfilePlatformModel.ContactDetails(),
770
- created_by: CompanyProfilePlatformModel.UserSerializer(),
771
- created_on: Joi.string().allow(""),
772
- documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
773
- franchise_enabled: Joi.boolean(),
774
- mode: Joi.string().allow(""),
775
- modified_by: CompanyProfilePlatformModel.UserSerializer(),
776
- modified_on: Joi.string().allow(""),
782
+ uid: Joi.number(),
783
+ reject_reason: Joi.string().allow(""),
777
784
  name: Joi.string().allow(""),
778
- notification_emails: Joi.array().items(Joi.string().allow("")),
785
+ modified_by: CompanyProfilePlatformModel.UserSerializer(),
786
+ });
787
+ }
788
+
789
+ /** @returns {CompanyBrandSerializer} */
790
+ static CompanyBrandSerializer() {
791
+ return Joi.object({
779
792
  stage: Joi.string().allow(""),
780
- taxes: Joi.array().items(
781
- CompanyProfilePlatformModel.CompanyTaxesSerializer()
782
- ),
783
- uid: Joi.number().required(),
784
- verified_by: CompanyProfilePlatformModel.UserSerializer(),
785
793
  verified_on: Joi.string().allow(""),
794
+ verified_by: CompanyProfilePlatformModel.UserSerializer(),
795
+ created_on: Joi.string().allow(""),
796
+ created_by: CompanyProfilePlatformModel.UserSerializer(),
797
+ company: CompanyProfilePlatformModel.CompanySerializer(),
786
798
  warnings: Joi.any(),
799
+ modified_on: Joi.string().allow(""),
800
+ uid: Joi.number(),
801
+ reject_reason: Joi.string().allow(""),
802
+ brand: CompanyProfilePlatformModel.GetBrandResponseSerializer(),
803
+ modified_by: CompanyProfilePlatformModel.UserSerializer(),
787
804
  });
788
805
  }
789
806
 
790
- /** @returns {GetCompanySerializer} */
791
- static GetCompanySerializer() {
807
+ /** @returns {Page} */
808
+ static Page() {
792
809
  return Joi.object({
793
- addresses: Joi.array().items(
794
- CompanyProfilePlatformModel.GetAddressSerializer()
810
+ item_total: Joi.number(),
811
+ next_id: Joi.string().allow(""),
812
+ has_previous: Joi.boolean(),
813
+ has_next: Joi.boolean(),
814
+ current: Joi.number(),
815
+ type: Joi.string().allow("").required(),
816
+ size: Joi.number(),
817
+ });
818
+ }
819
+
820
+ /** @returns {CompanyBrandListSerializer} */
821
+ static CompanyBrandListSerializer() {
822
+ return Joi.object({
823
+ items: Joi.array().items(
824
+ CompanyProfilePlatformModel.CompanyBrandSerializer()
795
825
  ),
796
- business_type: Joi.string().allow(""),
797
- company_type: Joi.string().allow(""),
798
- created_by: CompanyProfilePlatformModel.UserSerializer(),
799
- created_on: Joi.string().allow(""),
800
- modified_by: CompanyProfilePlatformModel.UserSerializer(),
801
- modified_on: Joi.string().allow(""),
802
- name: Joi.string().allow(""),
803
- reject_reason: Joi.string().allow(""),
804
- stage: Joi.string().allow(""),
826
+ page: CompanyProfilePlatformModel.Page(),
827
+ });
828
+ }
829
+
830
+ /** @returns {CompanyBrandPostRequestSerializer} */
831
+ static CompanyBrandPostRequestSerializer() {
832
+ return Joi.object({
805
833
  uid: Joi.number(),
806
- verified_by: CompanyProfilePlatformModel.UserSerializer(),
807
- verified_on: Joi.string().allow(""),
834
+ brands: Joi.array().items(Joi.number()).required(),
835
+ company: Joi.number().required(),
808
836
  });
809
837
  }
810
838
 
811
- /** @returns {GetLocationSerializer} */
812
- static GetLocationSerializer() {
839
+ /** @returns {InvoiceCredSerializer} */
840
+ static InvoiceCredSerializer() {
813
841
  return Joi.object({
814
- _custom_json: Joi.any(),
815
- address: CompanyProfilePlatformModel.GetAddressSerializer().required(),
816
- auto_assign_courier_partner: Joi.boolean(),
817
- auto_invoice: Joi.boolean(),
818
- avg_order_processing_time: CompanyProfilePlatformModel.AverageOrderProcessingTime(),
819
- bulk_shipment: Joi.boolean(),
820
- code: Joi.string().allow("").required(),
821
- company: CompanyProfilePlatformModel.GetCompanySerializer(),
822
- contact_numbers: Joi.array().items(
823
- CompanyProfilePlatformModel.SellerPhoneNumber()
824
- ),
825
- created_by: CompanyProfilePlatformModel.UserSerializer(),
842
+ username: Joi.string().allow(""),
843
+ enabled: Joi.boolean(),
844
+ password: Joi.string().allow(""),
845
+ });
846
+ }
847
+
848
+ /** @returns {InvoiceDetailsSerializer} */
849
+ static InvoiceDetailsSerializer() {
850
+ return Joi.object({
851
+ e_invoice: CompanyProfilePlatformModel.InvoiceCredSerializer(),
852
+ e_waybill: CompanyProfilePlatformModel.InvoiceCredSerializer(),
853
+ });
854
+ }
855
+
856
+ /** @returns {GetCompanySerializer} */
857
+ static GetCompanySerializer() {
858
+ return Joi.object({
859
+ stage: Joi.string().allow(""),
860
+ verified_on: Joi.string().allow(""),
861
+ verified_by: CompanyProfilePlatformModel.UserSerializer(),
826
862
  created_on: Joi.string().allow(""),
827
- credit_note: Joi.boolean(),
828
- default_order_acceptance_timing: Joi.boolean(),
829
- display_name: Joi.string().allow("").required(),
830
- documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
831
- gst_credentials: CompanyProfilePlatformModel.InvoiceDetailsSerializer(),
832
- holiday: Joi.array().items(
833
- CompanyProfilePlatformModel.HolidaySchemaSerializer()
834
- ),
835
- manager: CompanyProfilePlatformModel.LocationManagerSerializer(),
836
- modified_by: CompanyProfilePlatformModel.UserSerializer(),
863
+ created_by: CompanyProfilePlatformModel.UserSerializer(),
864
+ company_type: Joi.string().allow(""),
837
865
  modified_on: Joi.string().allow(""),
838
- name: Joi.string().allow("").required(),
839
- notification_emails: Joi.array().items(Joi.string().allow("")),
840
- order_acceptance_timing: Joi.array().items(
841
- CompanyProfilePlatformModel.LocationDayWiseSerializer()
842
- ),
843
- phone_number: Joi.string().allow(""),
844
- product_return_config: CompanyProfilePlatformModel.ProductReturnConfigSerializer(),
845
- stage: Joi.string().allow(""),
846
- store_type: Joi.string().allow(""),
847
- tags: Joi.array().items(Joi.string().allow("")),
848
- timing: Joi.array().items(
849
- CompanyProfilePlatformModel.LocationDayWiseSerializer()
866
+ business_type: Joi.string().allow(""),
867
+ addresses: Joi.array().items(
868
+ CompanyProfilePlatformModel.GetAddressSerializer()
850
869
  ),
851
870
  uid: Joi.number(),
852
- verified_by: CompanyProfilePlatformModel.UserSerializer(),
853
- verified_on: Joi.string().allow(""),
854
- warnings: Joi.any(),
871
+ reject_reason: Joi.string().allow(""),
872
+ name: Joi.string().allow(""),
873
+ modified_by: CompanyProfilePlatformModel.UserSerializer(),
874
+ });
875
+ }
876
+
877
+ /** @returns {LocationManagerSerializer} */
878
+ static LocationManagerSerializer() {
879
+ return Joi.object({
880
+ email: Joi.string().allow(""),
881
+ mobile_no: CompanyProfilePlatformModel.SellerPhoneNumber().required(),
882
+ name: Joi.string().allow(""),
883
+ });
884
+ }
885
+
886
+ /** @returns {LocationTimingSerializer} */
887
+ static LocationTimingSerializer() {
888
+ return Joi.object({
889
+ hour: Joi.number().required(),
890
+ minute: Joi.number().required(),
891
+ });
892
+ }
893
+
894
+ /** @returns {LocationDayWiseSerializer} */
895
+ static LocationDayWiseSerializer() {
896
+ return Joi.object({
897
+ open: Joi.boolean().required(),
898
+ weekday: Joi.string().allow("").required(),
899
+ opening: CompanyProfilePlatformModel.LocationTimingSerializer(),
900
+ closing: CompanyProfilePlatformModel.LocationTimingSerializer(),
855
901
  });
856
902
  }
857
903
 
@@ -867,35 +913,63 @@ class CompanyProfilePlatformModel {
867
913
  static HolidaySchemaSerializer() {
868
914
  return Joi.object({
869
915
  date: CompanyProfilePlatformModel.HolidayDateSerializer().required(),
870
- holiday_type: Joi.string().allow("").required(),
871
916
  title: Joi.string().allow("").required(),
917
+ holiday_type: Joi.string().allow("").required(),
872
918
  });
873
919
  }
874
920
 
875
- /** @returns {InvoiceCredSerializer} */
876
- static InvoiceCredSerializer() {
877
- return Joi.object({
878
- enabled: Joi.boolean(),
879
- password: Joi.string().allow(""),
880
- username: Joi.string().allow(""),
881
- });
882
- }
883
-
884
- /** @returns {InvoiceDetailsSerializer} */
885
- static InvoiceDetailsSerializer() {
921
+ /** @returns {ProductReturnConfigSerializer} */
922
+ static ProductReturnConfigSerializer() {
886
923
  return Joi.object({
887
- e_invoice: CompanyProfilePlatformModel.InvoiceCredSerializer(),
888
- e_waybill: CompanyProfilePlatformModel.InvoiceCredSerializer(),
924
+ on_same_store: Joi.boolean(),
925
+ store_uid: Joi.number(),
889
926
  });
890
927
  }
891
928
 
892
- /** @returns {LocationDayWiseSerializer} */
893
- static LocationDayWiseSerializer() {
929
+ /** @returns {GetLocationSerializer} */
930
+ static GetLocationSerializer() {
894
931
  return Joi.object({
895
- closing: CompanyProfilePlatformModel.LocationTimingSerializer(),
896
- open: Joi.boolean().required(),
897
- opening: CompanyProfilePlatformModel.LocationTimingSerializer(),
898
- weekday: Joi.string().allow("").required(),
932
+ code: Joi.string().allow("").required(),
933
+ phone_number: Joi.string().allow(""),
934
+ contact_numbers: Joi.array().items(
935
+ CompanyProfilePlatformModel.SellerPhoneNumber()
936
+ ),
937
+ gst_credentials: CompanyProfilePlatformModel.InvoiceDetailsSerializer(),
938
+ name: Joi.string().allow("").required(),
939
+ _custom_json: Joi.any(),
940
+ verified_on: Joi.string().allow(""),
941
+ created_by: CompanyProfilePlatformModel.UserSerializer(),
942
+ created_on: Joi.string().allow(""),
943
+ company: CompanyProfilePlatformModel.GetCompanySerializer(),
944
+ address: CompanyProfilePlatformModel.GetAddressSerializer().required(),
945
+ warnings: Joi.any(),
946
+ store_type: Joi.string().allow(""),
947
+ manager: CompanyProfilePlatformModel.LocationManagerSerializer(),
948
+ auto_invoice: Joi.boolean(),
949
+ modified_on: Joi.string().allow(""),
950
+ uid: Joi.number(),
951
+ timing: Joi.array().items(
952
+ CompanyProfilePlatformModel.LocationDayWiseSerializer()
953
+ ),
954
+ stage: Joi.string().allow(""),
955
+ documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
956
+ credit_note: Joi.boolean(),
957
+ holiday: Joi.array().items(
958
+ CompanyProfilePlatformModel.HolidaySchemaSerializer()
959
+ ),
960
+ display_name: Joi.string().allow("").required(),
961
+ product_return_config: CompanyProfilePlatformModel.ProductReturnConfigSerializer(),
962
+ verified_by: CompanyProfilePlatformModel.UserSerializer(),
963
+ notification_emails: Joi.array().items(Joi.string().allow("")),
964
+ modified_by: CompanyProfilePlatformModel.UserSerializer(),
965
+ tags: Joi.array().items(Joi.string().allow("")),
966
+ default_order_acceptance_timing: Joi.boolean(),
967
+ order_acceptance_timing: Joi.array().items(
968
+ CompanyProfilePlatformModel.LocationDayWiseSerializer()
969
+ ),
970
+ avg_order_processing_time: CompanyProfilePlatformModel.AverageOrderProcessingTime(),
971
+ bulk_shipment: Joi.boolean(),
972
+ auto_assign_courier_partner: Joi.boolean(),
899
973
  });
900
974
  }
901
975
 
@@ -909,161 +983,87 @@ class CompanyProfilePlatformModel {
909
983
  });
910
984
  }
911
985
 
912
- /** @returns {LocationManagerSerializer} */
913
- static LocationManagerSerializer() {
986
+ /** @returns {AddressSerializer} */
987
+ static AddressSerializer() {
914
988
  return Joi.object({
915
- email: Joi.string().allow(""),
916
- mobile_no: CompanyProfilePlatformModel.SellerPhoneNumber().required(),
917
- name: Joi.string().allow(""),
989
+ landmark: Joi.string().allow(""),
990
+ country_code: Joi.string().allow("").required(),
991
+ pincode: Joi.number(),
992
+ address_type: Joi.string().allow(""),
993
+ longitude: Joi.number().required(),
994
+ country: Joi.string().allow(""),
995
+ address2: Joi.string().allow(""),
996
+ state: Joi.string().allow(""),
997
+ sector: Joi.string().allow(""),
998
+ state_code: Joi.string().allow(""),
999
+ address1: Joi.string().allow(""),
1000
+ city: Joi.string().allow(""),
1001
+ latitude: Joi.number().required(),
918
1002
  });
919
1003
  }
920
1004
 
921
1005
  /** @returns {LocationSerializer} */
922
1006
  static LocationSerializer() {
923
1007
  return Joi.object({
924
- _custom_json: Joi.any(),
925
- address: CompanyProfilePlatformModel.AddressSerializer().required(),
926
- auto_assign_courier_partner: Joi.boolean(),
927
- auto_invoice: Joi.boolean(),
928
- avg_order_processing_time: CompanyProfilePlatformModel.AverageOrderProcessingTime(),
929
- bulk_shipment: Joi.boolean(),
930
1008
  code: Joi.string().allow("").required(),
931
- company: Joi.number().required(),
1009
+ gst_credentials: CompanyProfilePlatformModel.InvoiceDetailsSerializer(),
932
1010
  contact_numbers: Joi.array().items(
933
1011
  CompanyProfilePlatformModel.SellerPhoneNumber()
934
1012
  ),
935
- credit_note: Joi.boolean(),
936
- default_order_acceptance_timing: Joi.boolean(),
937
- display_name: Joi.string().allow("").required(),
1013
+ name: Joi.string().allow("").required(),
1014
+ _custom_json: Joi.any(),
1015
+ warnings: Joi.any(),
1016
+ address: CompanyProfilePlatformModel.AddressSerializer().required(),
1017
+ company: Joi.number().required(),
1018
+ store_type: Joi.string().allow(""),
1019
+ manager: CompanyProfilePlatformModel.LocationManagerSerializer(),
1020
+ auto_invoice: Joi.boolean(),
1021
+ uid: Joi.number(),
1022
+ timing: Joi.array().items(
1023
+ CompanyProfilePlatformModel.LocationDayWiseSerializer()
1024
+ ),
1025
+ stage: Joi.string().allow(""),
938
1026
  documents: Joi.array()
939
1027
  .items(CompanyProfilePlatformModel.Document())
940
1028
  .required(),
941
- gst_credentials: CompanyProfilePlatformModel.InvoiceDetailsSerializer(),
1029
+ credit_note: Joi.boolean(),
942
1030
  holiday: Joi.array().items(
943
1031
  CompanyProfilePlatformModel.HolidaySchemaSerializer()
944
1032
  ),
945
- manager: CompanyProfilePlatformModel.LocationManagerSerializer(),
946
- name: Joi.string().allow("").required(),
947
- notification_emails: Joi.array().items(Joi.string().allow("")),
948
- order_acceptance_timing: Joi.array().items(
949
- CompanyProfilePlatformModel.LocationDayWiseSerializer()
950
- ),
951
1033
  product_return_config: CompanyProfilePlatformModel.ProductReturnConfigSerializer(),
952
- stage: Joi.string().allow(""),
953
- store_type: Joi.string().allow(""),
1034
+ display_name: Joi.string().allow("").required(),
1035
+ notification_emails: Joi.array().items(Joi.string().allow("")),
954
1036
  tags: Joi.array().items(Joi.string().allow("")),
955
- timing: Joi.array().items(
1037
+ default_order_acceptance_timing: Joi.boolean(),
1038
+ order_acceptance_timing: Joi.array().items(
956
1039
  CompanyProfilePlatformModel.LocationDayWiseSerializer()
957
1040
  ),
958
- uid: Joi.number(),
959
- warnings: Joi.any(),
960
- });
961
- }
962
-
963
- /** @returns {LocationTimingSerializer} */
964
- static LocationTimingSerializer() {
965
- return Joi.object({
966
- hour: Joi.number().required(),
967
- minute: Joi.number().required(),
968
- });
969
- }
970
-
971
- /** @returns {MetricsSerializer} */
972
- static MetricsSerializer() {
973
- return Joi.object({
974
- brand: CompanyProfilePlatformModel.DocumentsObj(),
975
- company_documents: CompanyProfilePlatformModel.DocumentsObj(),
976
- product: CompanyProfilePlatformModel.DocumentsObj(),
977
- stage: Joi.string().allow(""),
978
- store: CompanyProfilePlatformModel.DocumentsObj(),
979
- store_documents: CompanyProfilePlatformModel.DocumentsObj(),
980
- uid: Joi.number(),
981
- });
982
- }
983
-
984
- /** @returns {Page} */
985
- static Page() {
986
- return Joi.object({
987
- current: Joi.number(),
988
- has_next: Joi.boolean(),
989
- has_previous: Joi.boolean(),
990
- item_total: Joi.number(),
991
- next_id: Joi.string().allow(""),
992
- size: Joi.number(),
993
- type: Joi.string().allow("").required(),
994
- });
995
- }
996
-
997
- /** @returns {ProductReturnConfigSerializer} */
998
- static ProductReturnConfigSerializer() {
999
- return Joi.object({
1000
- on_same_store: Joi.boolean(),
1001
- store_uid: Joi.number(),
1041
+ avg_order_processing_time: CompanyProfilePlatformModel.AverageOrderProcessingTime(),
1042
+ bulk_shipment: Joi.boolean(),
1043
+ auto_assign_courier_partner: Joi.boolean(),
1002
1044
  });
1003
1045
  }
1004
1046
 
1005
- /** @returns {ProfileSuccessResponse} */
1006
- static ProfileSuccessResponse() {
1047
+ /** @returns {BulkLocationSerializer} */
1048
+ static BulkLocationSerializer() {
1007
1049
  return Joi.object({
1008
- message: Joi.string().allow(""),
1009
- success: Joi.boolean(),
1010
- uid: Joi.number(),
1050
+ data: Joi.array().items(CompanyProfilePlatformModel.LocationSerializer()),
1011
1051
  });
1012
1052
  }
1013
1053
 
1014
- /** @returns {SellerPhoneNumber} */
1015
- static SellerPhoneNumber() {
1054
+ /** @returns {AverageOrderProcessingTime} */
1055
+ static AverageOrderProcessingTime() {
1016
1056
  return Joi.object({
1017
- country_code: Joi.number().required(),
1018
- number: Joi.string().allow("").required(),
1057
+ duration: Joi.number(),
1058
+ duration_type: Joi.string().allow(""),
1019
1059
  });
1020
1060
  }
1021
1061
 
1022
1062
  /** @returns {StoreTagsResponseSchema} */
1023
1063
  static StoreTagsResponseSchema() {
1024
1064
  return Joi.object({
1025
- success: Joi.boolean(),
1026
1065
  tags: Joi.array().items(Joi.string().allow("")),
1027
- });
1028
- }
1029
-
1030
- /** @returns {UpdateCompany} */
1031
- static UpdateCompany() {
1032
- return Joi.object({
1033
- _custom_json: Joi.any(),
1034
- addresses: Joi.array().items(
1035
- CompanyProfilePlatformModel.CreateUpdateAddressSerializer()
1036
- ),
1037
- business_details: CompanyProfilePlatformModel.BusinessDetails(),
1038
- business_info: Joi.string().allow(""),
1039
- business_type: Joi.string().allow(""),
1040
- company_type: Joi.string().allow(""),
1041
- contact_details: CompanyProfilePlatformModel.ContactDetails(),
1042
- documents: Joi.array().items(CompanyProfilePlatformModel.Document()),
1043
- franchise_enabled: Joi.boolean(),
1044
- name: Joi.string().allow(""),
1045
- notification_emails: Joi.array().items(Joi.string().allow("")),
1046
- reject_reason: Joi.string().allow(""),
1047
- taxes: Joi.array().items(
1048
- CompanyProfilePlatformModel.CompanyTaxesSerializer1()
1049
- ),
1050
- warnings: Joi.any(),
1051
- });
1052
- }
1053
-
1054
- /** @returns {UserSerializer} */
1055
- static UserSerializer() {
1056
- return Joi.object({
1057
- contact: Joi.string().allow(""),
1058
- user_id: Joi.string().allow(""),
1059
- username: Joi.string().allow(""),
1060
- });
1061
- }
1062
-
1063
- /** @returns {Website} */
1064
- static Website() {
1065
- return Joi.object({
1066
- url: Joi.string().allow(""),
1066
+ success: Joi.boolean(),
1067
1067
  });
1068
1068
  }
1069
1069
  }