@gofynd/fdk-client-javascript 1.4.5 → 1.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +0 -2
  4. package/sdk/application/ApplicationClient.js +0 -2
  5. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +5 -5
  6. package/sdk/application/Catalog/CatalogApplicationClient.js +5 -5
  7. package/sdk/application/Logistic/LogisticApplicationModel.js +2 -2
  8. package/sdk/application/Order/OrderApplicationClient.d.ts +1 -1
  9. package/sdk/application/Order/OrderApplicationClient.js +1 -1
  10. package/sdk/application/Order/OrderApplicationValidator.d.ts +2 -2
  11. package/sdk/application/Order/OrderApplicationValidator.js +1 -1
  12. package/sdk/application/Payment/PaymentApplicationModel.js +23 -17
  13. package/sdk/application/index.d.ts +0 -1
  14. package/sdk/application/index.js +0 -2
  15. package/sdk/partner/Webhook/WebhookPartnerModel.js +1 -1
  16. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +25 -2
  17. package/sdk/platform/Catalog/CatalogPlatformClient.js +69 -1
  18. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +2 -0
  19. package/sdk/platform/Catalog/CatalogPlatformModel.js +16 -12
  20. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +59 -0
  21. package/sdk/platform/Catalog/CatalogPlatformValidator.js +25 -0
  22. package/sdk/platform/Order/OrderPlatformModel.js +65 -41
  23. package/sdk/platform/Payment/PaymentPlatformModel.js +22 -16
  24. package/sdk/platform/Webhook/WebhookPlatformModel.js +1 -1
  25. package/sdk/public/Webhook/WebhookPublicModel.js +1 -1
  26. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +0 -323
  27. package/sdk/application/PosCart/PosCartApplicationClient.js +0 -2364
  28. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +0 -1857
  29. package/sdk/application/PosCart/PosCartApplicationModel.js +0 -1906
  30. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +0 -483
  31. package/sdk/application/PosCart/PosCartApplicationValidator.js +0 -492
@@ -162,9 +162,25 @@ export = CatalogPlatformValidator;
162
162
  * set of results
163
163
  * @property {number} [pageSize] - Number of items to retrieve in each page.
164
164
  * Default is 12.
165
+ * @property {string} [pageId] - Alphanumeric Page ID to retrieve next set of results.
166
+ * @property {string} [pageType] - Available pagination types are cursor or number.
165
167
  * @property {string} [q] - Search with help of store code.
166
168
  * @property {boolean} [sellable] - Filter on whether product is in stock or not.
167
169
  * @property {number[]} [storeIds] - The Store Id of products to fetch inventory.
170
+ * @property {number[]} [brandIds] - The Brand Id of products to fetch inventory.
171
+ * @property {string[]} [sellerIdentifiers] - The Seller Identifier or Primary
172
+ * Identifier of the inventory.
173
+ * @property {number} [qtyGt] - This field allows you to filter for inventories
174
+ * that have quantity greater than to the specified value based on qty_type filter.
175
+ * @property {number} [qtyLt] - This field allows you to filter for inventories
176
+ * that have a quantity less than to the specified value based on qty_type filter.
177
+ * @property {string} [qtyType] - This field provides flexibility in selecting
178
+ * filter for inventory quantity counts and date queries. For example, you
179
+ * might use this field to specify "total" or "sellable" quantity.
180
+ * @property {string} [fromDate] - Inventory updated on filter to get
181
+ * inventories greater then or equal to provided date based on qty_type value.
182
+ * @property {string} [toDate] - Inventory updated on filter to get inventories
183
+ * less then or equal to provided date based on qty_type value.
168
184
  * @property {string} [sizeIdentifier] - Size Identifier (Seller Identifier or
169
185
  * Primary Identifier) of which inventory is to get.
170
186
  */
@@ -834,6 +850,14 @@ type GetInventoriesParam = {
834
850
  * Default is 12.
835
851
  */
836
852
  pageSize?: number;
853
+ /**
854
+ * - Alphanumeric Page ID to retrieve next set of results.
855
+ */
856
+ pageId?: string;
857
+ /**
858
+ * - Available pagination types are cursor or number.
859
+ */
860
+ pageType?: string;
837
861
  /**
838
862
  * - Search with help of store code.
839
863
  */
@@ -846,6 +870,41 @@ type GetInventoriesParam = {
846
870
  * - The Store Id of products to fetch inventory.
847
871
  */
848
872
  storeIds?: number[];
873
+ /**
874
+ * - The Brand Id of products to fetch inventory.
875
+ */
876
+ brandIds?: number[];
877
+ /**
878
+ * - The Seller Identifier or Primary
879
+ * Identifier of the inventory.
880
+ */
881
+ sellerIdentifiers?: string[];
882
+ /**
883
+ * - This field allows you to filter for inventories
884
+ * that have quantity greater than to the specified value based on qty_type filter.
885
+ */
886
+ qtyGt?: number;
887
+ /**
888
+ * - This field allows you to filter for inventories
889
+ * that have a quantity less than to the specified value based on qty_type filter.
890
+ */
891
+ qtyLt?: number;
892
+ /**
893
+ * - This field provides flexibility in selecting
894
+ * filter for inventory quantity counts and date queries. For example, you
895
+ * might use this field to specify "total" or "sellable" quantity.
896
+ */
897
+ qtyType?: string;
898
+ /**
899
+ * - Inventory updated on filter to get
900
+ * inventories greater then or equal to provided date based on qty_type value.
901
+ */
902
+ fromDate?: string;
903
+ /**
904
+ * - Inventory updated on filter to get inventories
905
+ * less then or equal to provided date based on qty_type value.
906
+ */
907
+ toDate?: string;
849
908
  /**
850
909
  * - Size Identifier (Seller Identifier or
851
910
  * Primary Identifier) of which inventory is to get.
@@ -199,9 +199,25 @@ const CatalogPlatformModel = require("./CatalogPlatformModel");
199
199
  * set of results
200
200
  * @property {number} [pageSize] - Number of items to retrieve in each page.
201
201
  * Default is 12.
202
+ * @property {string} [pageId] - Alphanumeric Page ID to retrieve next set of results.
203
+ * @property {string} [pageType] - Available pagination types are cursor or number.
202
204
  * @property {string} [q] - Search with help of store code.
203
205
  * @property {boolean} [sellable] - Filter on whether product is in stock or not.
204
206
  * @property {number[]} [storeIds] - The Store Id of products to fetch inventory.
207
+ * @property {number[]} [brandIds] - The Brand Id of products to fetch inventory.
208
+ * @property {string[]} [sellerIdentifiers] - The Seller Identifier or Primary
209
+ * Identifier of the inventory.
210
+ * @property {number} [qtyGt] - This field allows you to filter for inventories
211
+ * that have quantity greater than to the specified value based on qty_type filter.
212
+ * @property {number} [qtyLt] - This field allows you to filter for inventories
213
+ * that have a quantity less than to the specified value based on qty_type filter.
214
+ * @property {string} [qtyType] - This field provides flexibility in selecting
215
+ * filter for inventory quantity counts and date queries. For example, you
216
+ * might use this field to specify "total" or "sellable" quantity.
217
+ * @property {string} [fromDate] - Inventory updated on filter to get
218
+ * inventories greater then or equal to provided date based on qty_type value.
219
+ * @property {string} [toDate] - Inventory updated on filter to get inventories
220
+ * less then or equal to provided date based on qty_type value.
205
221
  * @property {string} [sizeIdentifier] - Size Identifier (Seller Identifier or
206
222
  * Primary Identifier) of which inventory is to get.
207
223
  */
@@ -778,9 +794,18 @@ class CatalogPlatformValidator {
778
794
  size: Joi.string().allow(""),
779
795
  pageNo: Joi.number(),
780
796
  pageSize: Joi.number(),
797
+ pageId: Joi.string().allow(""),
798
+ pageType: Joi.string().allow(""),
781
799
  q: Joi.string().allow(""),
782
800
  sellable: Joi.boolean(),
783
801
  storeIds: Joi.array().items(Joi.number()),
802
+ brandIds: Joi.array().items(Joi.number()),
803
+ sellerIdentifiers: Joi.array().items(Joi.string().allow("")),
804
+ qtyGt: Joi.number(),
805
+ qtyLt: Joi.number(),
806
+ qtyType: Joi.string().allow(""),
807
+ fromDate: Joi.string().allow(""),
808
+ toDate: Joi.string().allow(""),
784
809
  sizeIdentifier: Joi.string().allow(""),
785
810
  }).required();
786
811
  }
@@ -3190,7 +3190,7 @@ class OrderPlatformModel {
3190
3190
  fynd_order_id: Joi.string().allow("").allow(null),
3191
3191
  set_id: Joi.string().allow("").allow(null),
3192
3192
  affiliate_bag_id: Joi.string().allow("").allow(null),
3193
- reason_ids: Joi.array().items(Joi.number()),
3193
+ reason_ids: Joi.array().items(Joi.number()).allow(null, ""),
3194
3194
  mongo_article_id: Joi.string().allow("").allow(null),
3195
3195
  });
3196
3196
  }
@@ -4095,7 +4095,7 @@ class OrderPlatformModel {
4095
4095
  eway_bill_id: Joi.string().allow("").allow(null),
4096
4096
  affiliate_shipment_id: Joi.string().allow("").allow(null),
4097
4097
  fynd_order_id: Joi.string().allow(""),
4098
- tags: Joi.array().items(Joi.string().allow("")),
4098
+ tags: Joi.array().items(Joi.string().allow("")).allow(null, ""),
4099
4099
  created_at: Joi.string().allow(""),
4100
4100
  delivery_awb_number: Joi.string().allow("").allow(null),
4101
4101
  hand_over_contact_json: OrderPlatformModel.PlatformDeliveryAddress(),
@@ -4896,7 +4896,9 @@ class OrderPlatformModel {
4896
4896
  /** @returns {FiltersInfo} */
4897
4897
  static FiltersInfo() {
4898
4898
  return Joi.object({
4899
- options: Joi.array().items(OrderPlatformModel.FilterInfoOption()),
4899
+ options: Joi.array()
4900
+ .items(OrderPlatformModel.FilterInfoOption())
4901
+ .allow(null, ""),
4900
4902
  text: Joi.string().allow("").required(),
4901
4903
  placeholder_text: Joi.string().allow("").allow(null),
4902
4904
  value: Joi.string().allow("").required(),
@@ -5208,7 +5210,7 @@ class OrderPlatformModel {
5208
5210
  current_shipment_status: Joi.string().allow("").allow(null),
5209
5211
  meta: Joi.any().allow(null),
5210
5212
  shipment_status_id: Joi.number().allow(null),
5211
- bag_list: Joi.array().items(Joi.string().allow("")),
5213
+ bag_list: Joi.array().items(Joi.string().allow("")).allow(null, ""),
5212
5214
  title: Joi.string().allow("").required(),
5213
5215
  created_at: Joi.string().allow("").allow(null),
5214
5216
  created_ts: Joi.string().allow("").allow(null),
@@ -5401,7 +5403,7 @@ class OrderPlatformModel {
5401
5403
  updated_ts: Joi.string().allow("").allow(null),
5402
5404
  bag_state_mapper: OrderPlatformModel.BagStateMapper(),
5403
5405
  bag_id: Joi.number().allow(null),
5404
- reasons: Joi.array().items(Joi.any()),
5406
+ reasons: Joi.array().items(Joi.any()).allow(null, ""),
5405
5407
  status: Joi.string().allow("").required(),
5406
5408
  display_name: Joi.string().allow("").allow(null),
5407
5409
  });
@@ -5454,7 +5456,7 @@ class OrderPlatformModel {
5454
5456
  raw_meta: Joi.string().allow("").allow(null),
5455
5457
  size: Joi.string().allow("").required(),
5456
5458
  is_set: Joi.boolean().allow(null),
5457
- tags: Joi.array().items(Joi.string().allow("")),
5459
+ tags: Joi.array().items(Joi.string().allow("")).allow(null, ""),
5458
5460
  });
5459
5461
  }
5460
5462
 
@@ -5527,11 +5529,11 @@ class OrderPlatformModel {
5527
5529
  l3_category_name: Joi.string().allow("").allow(null),
5528
5530
  last_updated_at: Joi.string().allow("").allow(null),
5529
5531
  name: Joi.string().allow("").allow(null),
5530
- l2_category: Joi.array().items(Joi.string().allow("")),
5532
+ l2_category: Joi.array().items(Joi.string().allow("")).allow(null, ""),
5531
5533
  brand: Joi.string().allow("").allow(null),
5532
- image: Joi.array().items(Joi.string().allow("")),
5534
+ image: Joi.array().items(Joi.string().allow("")).allow(null, ""),
5533
5535
  code: Joi.string().allow("").allow(null),
5534
- l1_category: Joi.array().items(Joi.string().allow("")),
5536
+ l1_category: Joi.array().items(Joi.string().allow("")).allow(null, ""),
5535
5537
  size: Joi.string().allow("").allow(null),
5536
5538
  can_cancel: Joi.boolean().allow(null),
5537
5539
  can_return: Joi.boolean().allow(null),
@@ -5539,7 +5541,7 @@ class OrderPlatformModel {
5539
5541
  meta: Joi.any().allow(null),
5540
5542
  color: Joi.string().allow("").allow(null),
5541
5543
  department_id: Joi.number().allow(null),
5542
- images: Joi.array().items(Joi.string().allow("")),
5544
+ images: Joi.array().items(Joi.string().allow("")).allow(null, ""),
5543
5545
  });
5544
5546
  }
5545
5547
 
@@ -5577,7 +5579,7 @@ class OrderPlatformModel {
5577
5579
  brand: OrderPlatformModel.ShipmentListingBrand(),
5578
5580
  affiliate_bag_details: OrderPlatformModel.AffiliateBagDetails(),
5579
5581
  item: OrderPlatformModel.PlatformItem(),
5580
- reasons: Joi.array().items(Joi.any()),
5582
+ reasons: Joi.array().items(Joi.any()).allow(null, ""),
5581
5583
  product_quantity: Joi.number().required(),
5582
5584
  can_return: Joi.boolean().allow(null),
5583
5585
  display_name: Joi.string().allow("").allow(null),
@@ -5598,7 +5600,9 @@ class OrderPlatformModel {
5598
5600
  static ShipmentItemFulFillingStore() {
5599
5601
  return Joi.object({
5600
5602
  phone: Joi.string().allow("").allow(null),
5601
- brand_store_tags: Joi.array().items(Joi.string().allow("")),
5603
+ brand_store_tags: Joi.array()
5604
+ .items(Joi.string().allow(""))
5605
+ .allow(null, ""),
5602
5606
  pincode: Joi.string().allow("").allow(null),
5603
5607
  meta: Joi.any().allow(null),
5604
5608
  address: Joi.string().allow("").allow(null),
@@ -5611,7 +5615,7 @@ class OrderPlatformModel {
5611
5615
  name: Joi.string().allow("").allow(null),
5612
5616
  state: Joi.string().allow("").allow(null),
5613
5617
  city: Joi.string().allow("").allow(null),
5614
- tags: Joi.array().items(Joi.string().allow("")),
5618
+ tags: Joi.array().items(Joi.string().allow("")).allow(null, ""),
5615
5619
  });
5616
5620
  }
5617
5621
 
@@ -5664,7 +5668,7 @@ class OrderPlatformModel {
5664
5668
  lock_status: Joi.boolean().allow(null),
5665
5669
  invoice_id: Joi.string().allow("").allow(null),
5666
5670
  payment_methods: Joi.any().allow(null),
5667
- payment_info: Joi.array().items(Joi.any()),
5671
+ payment_info: Joi.array().items(Joi.any()).allow(null, ""),
5668
5672
  status_created_at: Joi.string().allow(""),
5669
5673
  status_created_ts: Joi.string().allow(""),
5670
5674
  display_name: Joi.string().allow("").allow(null),
@@ -5775,8 +5779,10 @@ class OrderPlatformModel {
5775
5779
  /** @returns {ContactDetails} */
5776
5780
  static ContactDetails() {
5777
5781
  return Joi.object({
5778
- phone: Joi.array().items(OrderPlatformModel.PhoneDetails()),
5779
- emails: Joi.array().items(Joi.string().allow("")),
5782
+ phone: Joi.array()
5783
+ .items(OrderPlatformModel.PhoneDetails())
5784
+ .allow(null, ""),
5785
+ emails: Joi.array().items(Joi.string().allow("")).allow(null, ""),
5780
5786
  });
5781
5787
  }
5782
5788
 
@@ -5994,7 +6000,7 @@ class OrderPlatformModel {
5994
6000
  return_config: OrderPlatformModel.ReturnConfig(),
5995
6001
  uid: Joi.string().allow("").allow(null),
5996
6002
  size: Joi.string().allow("").allow(null),
5997
- tags: Joi.array().items(Joi.string().allow("")),
6003
+ tags: Joi.array().items(Joi.string().allow("")).allow(null, ""),
5998
6004
  });
5999
6005
  }
6000
6006
 
@@ -6038,7 +6044,7 @@ class OrderPlatformModel {
6038
6044
  /** @returns {ItemCriterias} */
6039
6045
  static ItemCriterias() {
6040
6046
  return Joi.object({
6041
- item_brand: Joi.array().items(Joi.number()),
6047
+ item_brand: Joi.array().items(Joi.number()).allow(null, ""),
6042
6048
  });
6043
6049
  }
6044
6050
 
@@ -6152,7 +6158,7 @@ class OrderPlatformModel {
6152
6158
  static ShipmentStatusData() {
6153
6159
  return Joi.object({
6154
6160
  meta: Joi.any().allow(null),
6155
- bag_list: Joi.array().items(Joi.string().allow("")),
6161
+ bag_list: Joi.array().items(Joi.string().allow("")).allow(null, ""),
6156
6162
  id: Joi.number().allow(null),
6157
6163
  created_at: Joi.string().allow("").allow(null),
6158
6164
  created_ts: Joi.string().allow("").allow(null),
@@ -6189,13 +6195,15 @@ class OrderPlatformModel {
6189
6195
  estimated_sla_time: Joi.string().allow("").allow(null),
6190
6196
  estimated_sla_ts: Joi.string().allow("").allow(null),
6191
6197
  can_update_dimension: Joi.boolean().allow(null),
6192
- shipment_images: Joi.array().items(Joi.string().allow("")),
6198
+ shipment_images: Joi.array()
6199
+ .items(Joi.string().allow(""))
6200
+ .allow(null, ""),
6193
6201
  delivery_details: OrderPlatformModel.UserDetailsData(),
6194
6202
  billing_details: OrderPlatformModel.UserDetailsData(),
6195
6203
  forward_shipment_id: Joi.string().allow("").allow(null),
6196
6204
  fulfilment_priority: Joi.number().allow(null),
6197
6205
  shipment_details: OrderPlatformModel.ShipmentLockDetails(),
6198
- custom_meta: Joi.array().items(Joi.any()),
6206
+ custom_meta: Joi.array().items(Joi.any()).allow(null, ""),
6199
6207
  shipment_quantity: Joi.number().allow(null),
6200
6208
  company_details: OrderPlatformModel.CompanyDetails(),
6201
6209
  ordering_store: OrderPlatformModel.OrderingStoreDetails(),
@@ -6206,7 +6214,7 @@ class OrderPlatformModel {
6206
6214
  dp_details: OrderPlatformModel.DPDetailsData(),
6207
6215
  invoice_id: Joi.string().allow("").allow(null),
6208
6216
  payment_methods: Joi.any().allow(null),
6209
- payment_info: Joi.array().items(Joi.any()),
6217
+ payment_info: Joi.array().items(Joi.any()).allow(null, ""),
6210
6218
  coupon: Joi.any().allow(null),
6211
6219
  affiliate_details: OrderPlatformModel.AffiliateDetails(),
6212
6220
  priority_text: Joi.string().allow("").allow(null),
@@ -6285,7 +6293,9 @@ class OrderPlatformModel {
6285
6293
  fynd_order_id: Joi.string().allow("").required(),
6286
6294
  prices: OrderPlatformModel.Prices(),
6287
6295
  payment_methods: Joi.any().allow(null),
6288
- payment_info: Joi.array().items(OrderPlatformModel.PaymentInfoData()),
6296
+ payment_info: Joi.array()
6297
+ .items(OrderPlatformModel.PaymentInfoData())
6298
+ .allow(null, ""),
6289
6299
  });
6290
6300
  }
6291
6301
 
@@ -6403,11 +6413,21 @@ class OrderPlatformModel {
6403
6413
  /** @returns {AdvanceFilterInfo} */
6404
6414
  static AdvanceFilterInfo() {
6405
6415
  return Joi.object({
6406
- returned: Joi.array().items(OrderPlatformModel.FiltersInfo()),
6407
- action_centre: Joi.array().items(OrderPlatformModel.FiltersInfo()),
6408
- unfulfilled: Joi.array().items(OrderPlatformModel.FiltersInfo()),
6409
- filters: Joi.array().items(OrderPlatformModel.FiltersInfo()),
6410
- processed: Joi.array().items(OrderPlatformModel.FiltersInfo()),
6416
+ returned: Joi.array()
6417
+ .items(OrderPlatformModel.FiltersInfo())
6418
+ .allow(null, ""),
6419
+ action_centre: Joi.array()
6420
+ .items(OrderPlatformModel.FiltersInfo())
6421
+ .allow(null, ""),
6422
+ unfulfilled: Joi.array()
6423
+ .items(OrderPlatformModel.FiltersInfo())
6424
+ .allow(null, ""),
6425
+ filters: Joi.array()
6426
+ .items(OrderPlatformModel.FiltersInfo())
6427
+ .allow(null, ""),
6428
+ processed: Joi.array()
6429
+ .items(OrderPlatformModel.FiltersInfo())
6430
+ .allow(null, ""),
6411
6431
  applied_filters: Joi.any().allow(null),
6412
6432
  page: Joi.any().allow(null),
6413
6433
  });
@@ -6572,8 +6592,10 @@ class OrderPlatformModel {
6572
6592
  static StoreMeta() {
6573
6593
  return Joi.object({
6574
6594
  additional_contact_details: Joi.any().allow(null),
6575
- timing: Joi.array().items(Joi.any()),
6576
- notification_emails: Joi.array().items(Joi.string().allow("")),
6595
+ timing: Joi.array().items(Joi.any()).allow(null, ""),
6596
+ notification_emails: Joi.array()
6597
+ .items(Joi.string().allow(""))
6598
+ .allow(null, ""),
6577
6599
  gst_number: Joi.string().allow("").allow(null),
6578
6600
  ewaybill_portal_details: Joi.any().allow(null),
6579
6601
  einvoice_portal_details: OrderPlatformModel.EInvoicePortalDetails(),
@@ -6605,7 +6627,9 @@ class OrderPlatformModel {
6605
6627
  city: Joi.string().allow("").required(),
6606
6628
  name: Joi.string().allow("").required(),
6607
6629
  longitude: Joi.number().allow(null),
6608
- brand_store_tags: Joi.array().items(Joi.string().allow("")),
6630
+ brand_store_tags: Joi.array()
6631
+ .items(Joi.string().allow(""))
6632
+ .allow(null, ""),
6609
6633
  order_integration_id: Joi.string().allow("").allow(null),
6610
6634
  parent_store_id: Joi.number().allow(null),
6611
6635
  location_type: Joi.string().allow("").required(),
@@ -6657,7 +6681,7 @@ class OrderPlatformModel {
6657
6681
  primary_color_hex: Joi.string().allow("").allow(null),
6658
6682
  brand_name: Joi.string().allow("").allow(null),
6659
6683
  name: Joi.string().allow("").allow(null),
6660
- gender: Joi.array().items(Joi.string().allow("")),
6684
+ gender: Joi.array().items(Joi.string().allow("")).allow(null, ""),
6661
6685
  });
6662
6686
  }
6663
6687
 
@@ -6672,13 +6696,13 @@ class OrderPlatformModel {
6672
6696
  l3_category_name: Joi.string().allow("").allow(null),
6673
6697
  last_updated_at: Joi.string().allow("").allow(null),
6674
6698
  name: Joi.string().allow("").required(),
6675
- l2_category: Joi.array().items(Joi.string().allow("")),
6699
+ l2_category: Joi.array().items(Joi.string().allow("")).allow(null, ""),
6676
6700
  brand: Joi.string().allow("").required(),
6677
6701
  image: Joi.array().items(Joi.string().allow("")).required(),
6678
6702
  code: Joi.string().allow("").allow(null),
6679
6703
  l1_category_id: Joi.number().allow(null),
6680
6704
  item_id: Joi.number().required(),
6681
- l1_category: Joi.array().items(Joi.string().allow("")),
6705
+ l1_category: Joi.array().items(Joi.string().allow("")).allow(null, ""),
6682
6706
  gender: Joi.string().allow("").allow(null),
6683
6707
  can_cancel: Joi.boolean().allow(null),
6684
6708
  can_return: Joi.boolean().allow(null),
@@ -6778,7 +6802,7 @@ class OrderPlatformModel {
6778
6802
  bag_id: Joi.number().allow(null),
6779
6803
  affiliate_bag_details: OrderPlatformModel.AffiliateBagDetails(),
6780
6804
  affiliate_details: OrderPlatformModel.AffiliateDetails(),
6781
- applied_promos: Joi.array().items(Joi.any()),
6805
+ applied_promos: Joi.array().items(Joi.any()).allow(null, ""),
6782
6806
  article: OrderPlatformModel.Article(),
6783
6807
  article_details: OrderPlatformModel.ArticleStatusDetails(),
6784
6808
  bag_status: Joi.array().items(OrderPlatformModel.BagStatusHistory()),
@@ -6823,7 +6847,7 @@ class OrderPlatformModel {
6823
6847
  prices: OrderPlatformModel.Prices(),
6824
6848
  qc_required: Joi.boolean().allow(null),
6825
6849
  quantity: Joi.number().allow(null),
6826
- reasons: Joi.array().items(Joi.any()),
6850
+ reasons: Joi.array().items(Joi.any()).allow(null, ""),
6827
6851
  restore_coupon: Joi.boolean().allow(null),
6828
6852
  restore_promos: Joi.any().allow(null),
6829
6853
  rto_address: OrderPlatformModel.PlatformDeliveryAddress(),
@@ -6833,11 +6857,11 @@ class OrderPlatformModel {
6833
6857
  shipment_id: Joi.string().allow("").allow(null),
6834
6858
  shipment_gst: OrderPlatformModel.ShipmentGstDetails(),
6835
6859
  shipment_status: OrderPlatformModel.ShipmentStatusData(),
6836
- shipment_status_history: Joi.array().items(
6837
- OrderPlatformModel.ShipmentStatusData()
6838
- ),
6860
+ shipment_status_history: Joi.array()
6861
+ .items(OrderPlatformModel.ShipmentStatusData())
6862
+ .allow(null, ""),
6839
6863
  status: OrderPlatformModel.BagReturnableCancelableStatus(),
6840
- tags: Joi.array().items(Joi.string().allow("")),
6864
+ tags: Joi.array().items(Joi.string().allow("")).allow(null, ""),
6841
6865
  total_shipment_bags: Joi.number().allow(null),
6842
6866
  total_shipments_in_order: Joi.number().allow(null),
6843
6867
  transaction_type: Joi.string().allow("").allow(null),
@@ -6845,7 +6869,7 @@ class OrderPlatformModel {
6845
6869
  updated_at: Joi.string().allow("").allow(null),
6846
6870
  user: OrderPlatformModel.UserDetails(),
6847
6871
  weight: OrderPlatformModel.WeightData(),
6848
- original_bag_list: Joi.array().items(Joi.number()),
6872
+ original_bag_list: Joi.array().items(Joi.number()).allow(null, ""),
6849
6873
  identifier: Joi.string().allow("").allow(null),
6850
6874
  });
6851
6875
  }
@@ -1448,9 +1448,9 @@ class PaymentPlatformModel {
1448
1448
  retry_count: Joi.number().allow(null),
1449
1449
  card_name: Joi.string().allow("").allow(null),
1450
1450
  timeout: Joi.number().allow(null),
1451
- intent_app_error_dict_list: Joi.array().items(
1452
- PaymentPlatformModel.IntentAppErrorList()
1453
- ),
1451
+ intent_app_error_dict_list: Joi.array()
1452
+ .items(PaymentPlatformModel.IntentAppErrorList())
1453
+ .allow(null, ""),
1454
1454
  card_brand_image: Joi.string().allow("").allow(null),
1455
1455
  expired: Joi.boolean().allow(null),
1456
1456
  logo_url: PaymentPlatformModel.PaymentModeLogo(),
@@ -1459,12 +1459,16 @@ class PaymentPlatformModel {
1459
1459
  cod_charges: Joi.number().allow(null),
1460
1460
  product_cod_data: PaymentPlatformModel.ProductCODData(),
1461
1461
  cod_limit: Joi.number().allow(null),
1462
- intent_app: Joi.array().items(PaymentPlatformModel.IntentApp()),
1462
+ intent_app: Joi.array()
1463
+ .items(PaymentPlatformModel.IntentApp())
1464
+ .allow(null, ""),
1463
1465
  nickname: Joi.string().allow("").allow(null),
1464
1466
  compliant_with_tokenisation_guidelines: Joi.boolean().allow(null),
1465
1467
  exp_year: Joi.number().allow(null),
1466
1468
  name: Joi.string().allow("").allow(null),
1467
- intent_app_error_list: Joi.array().items(Joi.string().allow("")),
1469
+ intent_app_error_list: Joi.array()
1470
+ .items(Joi.string().allow(""))
1471
+ .allow(null, ""),
1468
1472
  });
1469
1473
  }
1470
1474
 
@@ -1553,9 +1557,9 @@ class PaymentPlatformModel {
1553
1557
  prepayment_value: Joi.number().allow(null),
1554
1558
  cancellation_type: Joi.string().allow("").allow(null),
1555
1559
  refund_time_limit: Joi.number().allow(null),
1556
- all_prepayment_type: Joi.array().items(
1557
- Joi.string().allow("").allow(null)
1558
- ),
1560
+ all_prepayment_type: Joi.array()
1561
+ .items(Joi.string().allow("").allow(null))
1562
+ .allow(null, ""),
1559
1563
  allow_custom_advance_amount: Joi.boolean().allow(null),
1560
1564
  });
1561
1565
  }
@@ -1576,7 +1580,9 @@ class PaymentPlatformModel {
1576
1580
  display_priority: Joi.number().allow(null),
1577
1581
  payment_mode_id: Joi.number().allow(null),
1578
1582
  display_name: Joi.string().allow("").allow(null),
1579
- list: Joi.array().items(PaymentPlatformModel.PaymentModeList()),
1583
+ list: Joi.array()
1584
+ .items(PaymentPlatformModel.PaymentModeList())
1585
+ .allow(null, ""),
1580
1586
  split: PaymentPlatformModel.SplitObject(),
1581
1587
  advance: PaymentPlatformModel.AdvanceObject(),
1582
1588
  });
@@ -1588,9 +1594,9 @@ class PaymentPlatformModel {
1588
1594
  payment_options: PaymentPlatformModel.PaymentOptionAndFlow().required(),
1589
1595
  success: Joi.boolean().required(),
1590
1596
  payment_breakup: Joi.any(),
1591
- advance_payment: Joi.array().items(
1592
- PaymentPlatformModel.AdvancePaymentObject()
1593
- ),
1597
+ advance_payment: Joi.array()
1598
+ .items(PaymentPlatformModel.AdvancePaymentObject())
1599
+ .allow(null, ""),
1594
1600
  });
1595
1601
  }
1596
1602
 
@@ -1844,9 +1850,9 @@ class PaymentPlatformModel {
1844
1850
  /** @returns {OrderBeneficiaryResponse} */
1845
1851
  static OrderBeneficiaryResponse() {
1846
1852
  return Joi.object({
1847
- beneficiaries: Joi.array().items(
1848
- PaymentPlatformModel.OrderBeneficiaryDetails()
1849
- ),
1853
+ beneficiaries: Joi.array()
1854
+ .items(PaymentPlatformModel.OrderBeneficiaryDetails())
1855
+ .allow(null, ""),
1850
1856
  show_beneficiary_details: Joi.boolean(),
1851
1857
  });
1852
1858
  }
@@ -2445,7 +2451,7 @@ class PaymentPlatformModel {
2445
2451
  static PlatformPaymentModeResponse() {
2446
2452
  return Joi.object({
2447
2453
  message: Joi.string().allow("").allow(null),
2448
- items: Joi.array().items(Joi.any()),
2454
+ items: Joi.array().items(Joi.any()).allow(null, ""),
2449
2455
  success: Joi.boolean().required(),
2450
2456
  });
2451
2457
  }
@@ -462,7 +462,7 @@ class WebhookPlatformModel {
462
462
  event_type: Joi.string().allow(""),
463
463
  event_category: Joi.string().allow(""),
464
464
  subscriber_event_mapping: WebhookPlatformModel.SubscriberEventMapping(),
465
- event_schema: Joi.object().pattern(/\S/, Joi.any()),
465
+ event_schema: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
466
466
  version: Joi.string().allow(""),
467
467
  display_name: Joi.string().allow(""),
468
468
  description: Joi.string().allow("").allow(null),
@@ -111,7 +111,7 @@ class WebhookPublicModel {
111
111
  event_name: Joi.string().allow(""),
112
112
  event_type: Joi.string().allow(""),
113
113
  event_category: Joi.string().allow(""),
114
- event_schema: Joi.object().pattern(/\S/, Joi.any()),
114
+ event_schema: Joi.object().pattern(/\S/, Joi.any()).allow(null, ""),
115
115
  version: Joi.string().allow(""),
116
116
  display_name: Joi.string().allow(""),
117
117
  description: Joi.string().allow("").allow(null),