@gofynd/fdk-client-javascript 1.3.3-beta.1 → 1.3.3-beta.3

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.
@@ -90,6 +90,7 @@ const Joi = require("joi");
90
90
  /**
91
91
  * @typedef AffiliateConfig
92
92
  * @property {AffiliateAppConfig} [app]
93
+ * @property {number} [app_company_id]
93
94
  * @property {AffiliateInventoryConfig} [inventory]
94
95
  */
95
96
 
@@ -103,6 +104,7 @@ const Joi = require("joi");
103
104
  * @property {string} affiliate_shipment_id
104
105
  * @property {string} affiliate_store_id
105
106
  * @property {string} [company_affiliate_tag]
107
+ * @property {AffiliateConfig} [config]
106
108
  * @property {PDFLinks} [pdf_links]
107
109
  * @property {ShipmentMeta} shipment_meta
108
110
  */
@@ -772,7 +774,7 @@ const Joi = require("joi");
772
774
  * @property {string} [state_type]
773
775
  * @property {string} [status]
774
776
  * @property {number} [store_id]
775
- * @property {number} [updated_at]
777
+ * @property {string} [updated_at]
776
778
  */
777
779
 
778
780
  /**
@@ -1293,6 +1295,7 @@ const Joi = require("joi");
1293
1295
  * @property {string} [group_id]
1294
1296
  * @property {BagGST} [gst_details]
1295
1297
  * @property {string} [identifier]
1298
+ * @property {boolean} [is_parent]
1296
1299
  * @property {PlatformItem} [item]
1297
1300
  * @property {number} [line_number]
1298
1301
  * @property {BagMeta} [meta]
@@ -1344,6 +1347,7 @@ const Joi = require("joi");
1344
1347
  * @property {string} [affiliate_id]
1345
1348
  * @property {string} [cod_charges]
1346
1349
  * @property {string} fynd_order_id
1350
+ * @property {OrderMeta} [meta]
1347
1351
  * @property {string} [order_date]
1348
1352
  * @property {string} [order_value]
1349
1353
  * @property {string} [ordering_channel]
@@ -1412,6 +1416,7 @@ const Joi = require("joi");
1412
1416
  * @typedef OrderMeta
1413
1417
  * @property {BillingStaffDetails} [billing_staff_details]
1414
1418
  * @property {number} [cart_id]
1419
+ * @property {string} [cart_object_id]
1415
1420
  * @property {string} [comment]
1416
1421
  * @property {string} [company_logo]
1417
1422
  * @property {string} [currency_symbol]
@@ -1644,6 +1649,7 @@ const Joi = require("joi");
1644
1649
  * @property {boolean} [can_update_dimension]
1645
1650
  * @property {CompanyDetails} [company_details]
1646
1651
  * @property {Object} [coupon]
1652
+ * @property {string} [credit_note_id]
1647
1653
  * @property {string} [custom_message]
1648
1654
  * @property {Object[]} [custom_meta]
1649
1655
  * @property {UserDetailsData} [delivery_details]
@@ -1659,9 +1665,11 @@ const Joi = require("joi");
1659
1665
  * @property {InvoiceInfo} [invoice]
1660
1666
  * @property {string} [invoice_id]
1661
1667
  * @property {boolean} [is_dp_assign_enabled]
1668
+ * @property {boolean} [is_self_ship]
1662
1669
  * @property {string} [journey_type]
1663
1670
  * @property {boolean} [lock_status]
1664
1671
  * @property {ShipmentMeta} [meta]
1672
+ * @property {string} [mode_of_payment]
1665
1673
  * @property {string} [operational_status]
1666
1674
  * @property {OrderDetailsData} [order]
1667
1675
  * @property {OrderingStoreDetails} [ordering_store]
@@ -1672,14 +1680,17 @@ const Joi = require("joi");
1672
1680
  * @property {Object} [pdf_links]
1673
1681
  * @property {string} [picked_date]
1674
1682
  * @property {string} [platform_logo]
1683
+ * @property {string} [previous_shipment_id]
1675
1684
  * @property {Prices} [prices]
1676
1685
  * @property {string} [priority_text]
1686
+ * @property {PlatformDeliveryAddress} [rto_address]
1677
1687
  * @property {string} [shipment_created_at]
1678
1688
  * @property {ShipmentDetails} [shipment_details]
1679
1689
  * @property {string} shipment_id
1680
1690
  * @property {string[]} [shipment_images]
1681
1691
  * @property {number} [shipment_quantity]
1682
1692
  * @property {string} [shipment_status]
1693
+ * @property {number} [shipment_update_time]
1683
1694
  * @property {ShipmentStatusData} [status]
1684
1695
  * @property {number} [total_bags]
1685
1696
  * @property {number} [total_items]
@@ -2025,6 +2036,7 @@ const Joi = require("joi");
2025
2036
  * @property {string} [invoice_id]
2026
2037
  * @property {boolean} [lock_status]
2027
2038
  * @property {ShipmentItemMeta} [meta]
2039
+ * @property {string} [mode_of_payment]
2028
2040
  * @property {string} [order_date]
2029
2041
  * @property {string} order_id
2030
2042
  * @property {string} [ordering_channnel]
@@ -2134,6 +2146,7 @@ const Joi = require("joi");
2134
2146
  * @property {string} [packaging_name]
2135
2147
  * @property {string} [parent_dp_id]
2136
2148
  * @property {string} [po_number]
2149
+ * @property {string} [refund_to]
2137
2150
  * @property {string} [return_affiliate_order_id]
2138
2151
  * @property {string} [return_affiliate_shipment_id]
2139
2152
  * @property {string} [return_awb_number]
@@ -2609,9 +2622,9 @@ class OrderPlatformModel {
2609
2622
  static AdvanceFilterInfo() {
2610
2623
  return Joi.object({
2611
2624
  action_centre: Joi.array().items(OrderPlatformModel.FiltersInfo()),
2612
- applied_filters: Joi.any(),
2625
+ applied_filters: Joi.any().allow(null),
2613
2626
  filters: Joi.array().items(OrderPlatformModel.FiltersInfo()),
2614
- page: Joi.any(),
2627
+ page: Joi.any().allow(null),
2615
2628
  processed: Joi.array().items(OrderPlatformModel.FiltersInfo()),
2616
2629
  returned: Joi.array().items(OrderPlatformModel.FiltersInfo()),
2617
2630
  unfulfilled: Joi.array().items(OrderPlatformModel.FiltersInfo()),
@@ -2685,15 +2698,15 @@ class OrderPlatformModel {
2685
2698
  affiliate_bag_id: Joi.string().allow("").required(),
2686
2699
  affiliate_meta: OrderPlatformModel.AffiliateMeta().required(),
2687
2700
  affiliate_order_id: Joi.string().allow("").required(),
2688
- employee_discount: Joi.number(),
2689
- loyalty_discount: Joi.number(),
2701
+ employee_discount: Joi.number().allow(null),
2702
+ loyalty_discount: Joi.number().allow(null),
2690
2703
  });
2691
2704
  }
2692
2705
 
2693
2706
  /** @returns {AffiliateBagsDetails} */
2694
2707
  static AffiliateBagsDetails() {
2695
2708
  return Joi.object({
2696
- affiliate_bag_id: Joi.string().allow(""),
2709
+ affiliate_bag_id: Joi.string().allow("").allow(null),
2697
2710
  coupon_code: Joi.string().allow("").allow(null),
2698
2711
  });
2699
2712
  }
@@ -2702,6 +2715,7 @@ class OrderPlatformModel {
2702
2715
  static AffiliateConfig() {
2703
2716
  return Joi.object({
2704
2717
  app: OrderPlatformModel.AffiliateAppConfig(),
2718
+ app_company_id: Joi.number().allow(null),
2705
2719
  inventory: OrderPlatformModel.AffiliateInventoryConfig(),
2706
2720
  });
2707
2721
  }
@@ -2709,14 +2723,15 @@ class OrderPlatformModel {
2709
2723
  /** @returns {AffiliateDetails} */
2710
2724
  static AffiliateDetails() {
2711
2725
  return Joi.object({
2712
- ad_id: Joi.string().allow(""),
2726
+ ad_id: Joi.string().allow("").allow(null),
2713
2727
  affiliate_bag_id: Joi.string().allow("").required(),
2714
- affiliate_id: Joi.string().allow(""),
2728
+ affiliate_id: Joi.string().allow("").allow(null),
2715
2729
  affiliate_meta: OrderPlatformModel.AffiliateMeta().required(),
2716
2730
  affiliate_order_id: Joi.string().allow("").required(),
2717
2731
  affiliate_shipment_id: Joi.string().allow("").required(),
2718
2732
  affiliate_store_id: Joi.string().allow("").required(),
2719
- company_affiliate_tag: Joi.string().allow(""),
2733
+ company_affiliate_tag: Joi.string().allow("").allow(null),
2734
+ config: OrderPlatformModel.AffiliateConfig(),
2720
2735
  pdf_links: OrderPlatformModel.PDFLinks(),
2721
2736
  shipment_meta: OrderPlatformModel.ShipmentMeta().required(),
2722
2737
  });
@@ -2777,12 +2792,12 @@ class OrderPlatformModel {
2777
2792
  channel_shipment_id: Joi.string().allow("").allow(null),
2778
2793
  coupon_code: Joi.string().allow("").allow(null),
2779
2794
  due_date: Joi.string().allow("").allow(null),
2780
- employee_discount: Joi.number(),
2781
- is_priority: Joi.boolean(),
2782
- loyalty_discount: Joi.number(),
2795
+ employee_discount: Joi.number().allow(null),
2796
+ is_priority: Joi.boolean().allow(null),
2797
+ loyalty_discount: Joi.number().allow(null),
2783
2798
  marketplace_invoice_id: Joi.string().allow("").allow(null),
2784
- order_item_id: Joi.string().allow(""),
2785
- quantity: Joi.number(),
2799
+ order_item_id: Joi.string().allow("").allow(null),
2800
+ quantity: Joi.number().allow(null),
2786
2801
  replacement_details: OrderPlatformModel.ReplacementDetails(),
2787
2802
  size_level_total_qty: Joi.number().allow(null),
2788
2803
  });
@@ -2826,14 +2841,14 @@ class OrderPlatformModel {
2826
2841
  /** @returns {AppliedPromos} */
2827
2842
  static AppliedPromos() {
2828
2843
  return Joi.object({
2829
- amount: Joi.number(),
2830
- article_quantity: Joi.number(),
2844
+ amount: Joi.number().allow(null),
2845
+ article_quantity: Joi.number().allow(null),
2831
2846
  buy_rules: Joi.array().items(OrderPlatformModel.BuyRules()),
2832
2847
  discount_rules: Joi.array().items(OrderPlatformModel.DiscountRules()),
2833
- mrp_promotion: Joi.boolean(),
2834
- promo_id: Joi.string().allow(""),
2835
- promotion_name: Joi.string().allow(""),
2836
- promotion_type: Joi.string().allow(""),
2848
+ mrp_promotion: Joi.boolean().allow(null),
2849
+ promo_id: Joi.string().allow("").allow(null),
2850
+ promotion_name: Joi.string().allow("").allow(null),
2851
+ promotion_type: Joi.string().allow("").allow(null),
2837
2852
  });
2838
2853
  }
2839
2854
 
@@ -2843,12 +2858,12 @@ class OrderPlatformModel {
2843
2858
  _id: Joi.string().allow("").required(),
2844
2859
  a_set: Joi.any().allow(null),
2845
2860
  child_details: Joi.any().allow(null),
2846
- code: Joi.string().allow(""),
2861
+ code: Joi.string().allow("").allow(null),
2847
2862
  currency: Joi.any().allow(null),
2848
2863
  dimensions: OrderPlatformModel.Dimensions(),
2849
2864
  esp_modified: Joi.boolean().allow(null),
2850
2865
  identifiers: Joi.any().required(),
2851
- is_set: Joi.boolean(),
2866
+ is_set: Joi.boolean().allow(null),
2852
2867
  raw_meta: Joi.string().allow("").allow(null),
2853
2868
  return_config: OrderPlatformModel.ReturnConfig(),
2854
2869
  seller_identifier: Joi.string().allow("").required(),
@@ -2867,7 +2882,7 @@ class OrderPlatformModel {
2867
2882
  category: Joi.any().required(),
2868
2883
  dimension: Joi.any().required(),
2869
2884
  quantity: Joi.number().required(),
2870
- status: Joi.any(),
2885
+ status: Joi.any().allow(null),
2871
2886
  weight: Joi.any().required(),
2872
2887
  });
2873
2888
  }
@@ -2909,27 +2924,27 @@ class OrderPlatformModel {
2909
2924
  /** @returns {Attributes} */
2910
2925
  static Attributes() {
2911
2926
  return Joi.object({
2912
- brand_name: Joi.string().allow(""),
2913
- essential: Joi.string().allow(""),
2927
+ brand_name: Joi.string().allow("").allow(null),
2928
+ essential: Joi.string().allow("").allow(null),
2914
2929
  gender: Joi.array().items(Joi.string().allow("")),
2915
- marketer_address: Joi.string().allow(""),
2916
- marketer_name: Joi.string().allow(""),
2917
- name: Joi.string().allow(""),
2918
- primary_color: Joi.string().allow(""),
2919
- primary_color_hex: Joi.string().allow(""),
2920
- primary_material: Joi.string().allow(""),
2930
+ marketer_address: Joi.string().allow("").allow(null),
2931
+ marketer_name: Joi.string().allow("").allow(null),
2932
+ name: Joi.string().allow("").allow(null),
2933
+ primary_color: Joi.string().allow("").allow(null),
2934
+ primary_color_hex: Joi.string().allow("").allow(null),
2935
+ primary_material: Joi.string().allow("").allow(null),
2921
2936
  });
2922
2937
  }
2923
2938
 
2924
2939
  /** @returns {B2BPODetails} */
2925
2940
  static B2BPODetails() {
2926
2941
  return Joi.object({
2927
- docker_number: Joi.string().allow(""),
2928
- item_base_price: Joi.number(),
2929
- partial_can_ret: Joi.boolean(),
2930
- po_line_amount: Joi.number(),
2931
- po_tax_amount: Joi.number(),
2932
- total_gst_percentage: Joi.number(),
2942
+ docker_number: Joi.string().allow("").allow(null),
2943
+ item_base_price: Joi.number().allow(null),
2944
+ partial_can_ret: Joi.boolean().allow(null),
2945
+ po_line_amount: Joi.number().allow(null),
2946
+ po_tax_amount: Joi.number().allow(null),
2947
+ total_gst_percentage: Joi.number().allow(null),
2933
2948
  });
2934
2949
  }
2935
2950
 
@@ -2955,62 +2970,62 @@ class OrderPlatformModel {
2955
2970
  article_details: OrderPlatformModel.ArticleDetails(),
2956
2971
  bag_status: Joi.array().items(OrderPlatformModel.BagStatusHistory()),
2957
2972
  bag_status_history: OrderPlatformModel.BagStatusHistory(),
2958
- bag_update_time: Joi.number(),
2973
+ bag_update_time: Joi.number().allow(null),
2959
2974
  brand: OrderPlatformModel.Brand(),
2960
2975
  current_operational_status: OrderPlatformModel.BagStatusHistory(),
2961
2976
  current_status: OrderPlatformModel.BagStatusHistory(),
2962
2977
  dates: OrderPlatformModel.Dates(),
2963
- display_name: Joi.string().allow(""),
2964
- entity_type: Joi.string().allow(""),
2978
+ display_name: Joi.string().allow("").allow(null),
2979
+ entity_type: Joi.string().allow("").allow(null),
2965
2980
  financial_breakup: Joi.array().items(
2966
2981
  OrderPlatformModel.FinancialBreakup()
2967
2982
  ),
2968
2983
  gst_details: OrderPlatformModel.BagGSTDetails(),
2969
- id: Joi.number(),
2970
- identifier: Joi.string().allow(""),
2984
+ id: Joi.number().allow(null),
2985
+ identifier: Joi.string().allow("").allow(null),
2971
2986
  item: OrderPlatformModel.Item(),
2972
- journey_type: Joi.string().allow(""),
2973
- line_number: Joi.number(),
2987
+ journey_type: Joi.string().allow("").allow(null),
2988
+ line_number: Joi.number().allow(null),
2974
2989
  meta: OrderPlatformModel.BagMeta(),
2975
- no_of_bags_order: Joi.number(),
2976
- operational_status: Joi.string().allow(""),
2990
+ no_of_bags_order: Joi.number().allow(null),
2991
+ operational_status: Joi.string().allow("").allow(null),
2977
2992
  order_integration_id: Joi.string().allow("").allow(null),
2978
2993
  ordering_store: OrderPlatformModel.Store(),
2979
2994
  original_bag_list: Joi.array().items(Joi.number()),
2980
- parent_promo_bags: Joi.any(),
2995
+ parent_promo_bags: Joi.any().allow(null),
2981
2996
  prices: OrderPlatformModel.Prices(),
2982
2997
  qc_required: Joi.any(),
2983
- quantity: Joi.number(),
2998
+ quantity: Joi.number().allow(null),
2984
2999
  reasons: Joi.array().items(Joi.any()),
2985
- restore_coupon: Joi.boolean(),
2986
- restore_promos: Joi.any(),
2987
- seller_identifier: Joi.string().allow(""),
2988
- shipment_id: Joi.string().allow(""),
3000
+ restore_coupon: Joi.boolean().allow(null),
3001
+ restore_promos: Joi.any().allow(null),
3002
+ seller_identifier: Joi.string().allow("").allow(null),
3003
+ shipment_id: Joi.string().allow("").allow(null),
2989
3004
  status: OrderPlatformModel.BagReturnableCancelableStatus1(),
2990
3005
  tags: Joi.array().items(Joi.string().allow("")),
2991
- type: Joi.string().allow(""),
3006
+ type: Joi.string().allow("").allow(null),
2992
3007
  });
2993
3008
  }
2994
3009
 
2995
3010
  /** @returns {BagGST} */
2996
3011
  static BagGST() {
2997
3012
  return Joi.object({
2998
- brand_calculated_amount: Joi.number(),
2999
- cgst_gst_fee: Joi.string().allow(""),
3000
- cgst_tax_percentage: Joi.number(),
3001
- gst_fee: Joi.number(),
3002
- gst_tag: Joi.string().allow(""),
3003
- gst_tax_percentage: Joi.number(),
3004
- gstin_code: Joi.string().allow(""),
3005
- hsn_code: Joi.string().allow(""),
3006
- hsn_code_id: Joi.string().allow(""),
3007
- igst_gst_fee: Joi.string().allow(""),
3008
- igst_tax_percentage: Joi.number(),
3009
- is_default_hsn_code: Joi.boolean(),
3010
- sgst_gst_fee: Joi.string().allow(""),
3011
- sgst_tax_percentage: Joi.number(),
3012
- tax_collected_at_source: Joi.number(),
3013
- value_of_good: Joi.number(),
3013
+ brand_calculated_amount: Joi.number().allow(null),
3014
+ cgst_gst_fee: Joi.string().allow("").allow(null),
3015
+ cgst_tax_percentage: Joi.number().allow(null),
3016
+ gst_fee: Joi.number().allow(null),
3017
+ gst_tag: Joi.string().allow("").allow(null),
3018
+ gst_tax_percentage: Joi.number().allow(null),
3019
+ gstin_code: Joi.string().allow("").allow(null),
3020
+ hsn_code: Joi.string().allow("").allow(null),
3021
+ hsn_code_id: Joi.string().allow("").allow(null),
3022
+ igst_gst_fee: Joi.string().allow("").allow(null),
3023
+ igst_tax_percentage: Joi.number().allow(null),
3024
+ is_default_hsn_code: Joi.boolean().allow(null),
3025
+ sgst_gst_fee: Joi.string().allow("").allow(null),
3026
+ sgst_tax_percentage: Joi.number().allow(null),
3027
+ tax_collected_at_source: Joi.number().allow(null),
3028
+ value_of_good: Joi.number().allow(null),
3014
3029
  });
3015
3030
  }
3016
3031
 
@@ -3028,7 +3043,7 @@ class OrderPlatformModel {
3028
3043
  hsn_code_id: Joi.string().allow("").required(),
3029
3044
  igst_gst_fee: Joi.string().allow("").required(),
3030
3045
  igst_tax_percentage: Joi.number().required(),
3031
- is_default_hsn_code: Joi.boolean(),
3046
+ is_default_hsn_code: Joi.boolean().allow(null),
3032
3047
  sgst_gst_fee: Joi.string().allow("").required(),
3033
3048
  sgst_tax_percentage: Joi.number().required(),
3034
3049
  tax_collected_at_source: Joi.number().required(),
@@ -3040,21 +3055,21 @@ class OrderPlatformModel {
3040
3055
  static BagMeta() {
3041
3056
  return Joi.object({
3042
3057
  b2b_po_details: OrderPlatformModel.B2BPODetails(),
3043
- custom_json: Joi.any(),
3044
- custom_message: Joi.string().allow(""),
3045
- docket_number: Joi.string().allow(""),
3046
- extra_meta: Joi.any(),
3058
+ custom_json: Joi.any().allow(null),
3059
+ custom_message: Joi.string().allow("").allow(null),
3060
+ docket_number: Joi.string().allow("").allow(null),
3061
+ extra_meta: Joi.any().allow(null),
3047
3062
  gift_card: OrderPlatformModel.GiftCard(),
3048
- group_id: Joi.string().allow(""),
3049
- partial_can_ret: Joi.boolean(),
3063
+ group_id: Joi.string().allow("").allow(null),
3064
+ partial_can_ret: Joi.boolean().allow(null),
3050
3065
  });
3051
3066
  }
3052
3067
 
3053
3068
  /** @returns {BagPaymentMethods} */
3054
3069
  static BagPaymentMethods() {
3055
3070
  return Joi.object({
3056
- amount: Joi.number(),
3057
- mode: Joi.string().allow(""),
3071
+ amount: Joi.number().allow(null),
3072
+ mode: Joi.string().allow("").allow(null),
3058
3073
  });
3059
3074
  }
3060
3075
 
@@ -3104,15 +3119,15 @@ class OrderPlatformModel {
3104
3119
  /** @returns {BagStateMapper} */
3105
3120
  static BagStateMapper() {
3106
3121
  return Joi.object({
3107
- app_display_name: Joi.string().allow(""),
3108
- app_facing: Joi.boolean(),
3109
- app_state_name: Joi.string().allow(""),
3122
+ app_display_name: Joi.string().allow("").allow(null),
3123
+ app_facing: Joi.boolean().allow(null),
3124
+ app_state_name: Joi.string().allow("").allow(null),
3110
3125
  display_name: Joi.string().allow("").required(),
3111
3126
  id: Joi.number().required(),
3112
- is_active: Joi.boolean(),
3127
+ is_active: Joi.boolean().allow(null),
3113
3128
  journey_type: Joi.string().allow("").required(),
3114
3129
  name: Joi.string().allow("").required(),
3115
- notify_customer: Joi.boolean(),
3130
+ notify_customer: Joi.boolean().allow(null),
3116
3131
  state_type: Joi.string().allow("").required(),
3117
3132
  });
3118
3133
  }
@@ -3128,23 +3143,23 @@ class OrderPlatformModel {
3128
3143
  /** @returns {BagStatusHistory} */
3129
3144
  static BagStatusHistory() {
3130
3145
  return Joi.object({
3131
- app_display_name: Joi.string().allow(""),
3132
- bag_id: Joi.number(),
3146
+ app_display_name: Joi.string().allow("").allow(null),
3147
+ bag_id: Joi.number().allow(null),
3133
3148
  bag_state_mapper: OrderPlatformModel.BagStateMapper(),
3134
- bsh_id: Joi.number(),
3135
- created_at: Joi.string().allow(""),
3149
+ bsh_id: Joi.number().allow(null),
3150
+ created_at: Joi.string().allow("").allow(null),
3136
3151
  delivery_awb_number: Joi.string().allow("").allow(null),
3137
3152
  delivery_partner_id: Joi.number().allow(null),
3138
- display_name: Joi.string().allow(""),
3153
+ display_name: Joi.string().allow("").allow(null),
3139
3154
  forward: Joi.boolean().allow(null),
3140
- kafka_sync: Joi.boolean(),
3155
+ kafka_sync: Joi.boolean().allow(null),
3141
3156
  reasons: Joi.array().items(Joi.any()),
3142
- shipment_id: Joi.string().allow(""),
3143
- state_id: Joi.number(),
3144
- state_type: Joi.string().allow(""),
3157
+ shipment_id: Joi.string().allow("").allow(null),
3158
+ state_id: Joi.number().allow(null),
3159
+ state_type: Joi.string().allow("").allow(null),
3145
3160
  status: Joi.string().allow("").required(),
3146
- store_id: Joi.number(),
3147
- updated_at: Joi.string().allow(""),
3161
+ store_id: Joi.number().allow(null),
3162
+ updated_at: Joi.string().allow("").allow(null),
3148
3163
  });
3149
3164
  }
3150
3165
 
@@ -3156,26 +3171,26 @@ class OrderPlatformModel {
3156
3171
  bag_expiry_date: Joi.string().allow("").allow(null),
3157
3172
  bag_id: Joi.number().required(),
3158
3173
  bag_status: Joi.array().items(OrderPlatformModel.BagStatusHistory()),
3159
- bag_type: Joi.string().allow(""),
3174
+ bag_type: Joi.string().allow("").allow(null),
3160
3175
  brand: OrderPlatformModel.ShipmentListingBrand(),
3161
- can_cancel: Joi.boolean(),
3162
- can_return: Joi.boolean(),
3176
+ can_cancel: Joi.boolean().allow(null),
3177
+ can_return: Joi.boolean().allow(null),
3163
3178
  current_operational_status: OrderPlatformModel.BagStatusHistory().required(),
3164
3179
  current_status: OrderPlatformModel.BagStatusHistory().required(),
3165
3180
  dates: OrderPlatformModel.Dates(),
3166
- display_name: Joi.string().allow(""),
3167
- entity_type: Joi.string().allow(""),
3181
+ display_name: Joi.string().allow("").allow(null),
3182
+ entity_type: Joi.string().allow("").allow(null),
3168
3183
  financial_breakup: Joi.array()
3169
3184
  .items(OrderPlatformModel.FinancialBreakup())
3170
3185
  .required(),
3171
3186
  gst: OrderPlatformModel.GSTDetailsData(),
3172
3187
  item: OrderPlatformModel.PlatformItem(),
3173
- line_number: Joi.number(),
3174
- meta: Joi.any(),
3188
+ line_number: Joi.number().allow(null),
3189
+ meta: Joi.any().allow(null),
3175
3190
  prices: OrderPlatformModel.Prices(),
3176
3191
  product_quantity: Joi.number().required(),
3177
3192
  reasons: Joi.array().items(Joi.any()),
3178
- size: Joi.string().allow(""),
3193
+ size: Joi.string().allow("").allow(null),
3179
3194
  status: OrderPlatformModel.BagReturnableCancelableStatus().required(),
3180
3195
  });
3181
3196
  }
@@ -3232,13 +3247,13 @@ class OrderPlatformModel {
3232
3247
  brand_id: Joi.number().required(),
3233
3248
  brand_name: Joi.string().allow("").required(),
3234
3249
  company: Joi.string().allow("").required(),
3235
- created_on: Joi.number(),
3236
- credit_note_allowed: Joi.boolean(),
3250
+ created_on: Joi.number().allow(null),
3251
+ credit_note_allowed: Joi.boolean().allow(null),
3237
3252
  credit_note_expiry_days: Joi.number().allow(null),
3238
3253
  invoice_prefix: Joi.string().allow("").allow(null),
3239
3254
  is_virtual_invoice: Joi.boolean().allow(null),
3240
- logo: Joi.string().allow(""),
3241
- modified_on: Joi.number(),
3255
+ logo: Joi.string().allow("").allow(null),
3256
+ modified_on: Joi.number().allow(null),
3242
3257
  pickup_location: Joi.string().allow("").allow(null),
3243
3258
  script_last_ran: Joi.string().allow("").allow(null),
3244
3259
  start_date: Joi.string().allow("").allow(null),
@@ -3298,7 +3313,7 @@ class OrderPlatformModel {
3298
3313
  static BuyerDetails() {
3299
3314
  return Joi.object({
3300
3315
  address: Joi.string().allow("").allow(null).required(),
3301
- ajio_site_id: Joi.string().allow(""),
3316
+ ajio_site_id: Joi.string().allow("").allow(null),
3302
3317
  city: Joi.string().allow("").required(),
3303
3318
  gstin: Joi.string().allow("").required(),
3304
3319
  name: Joi.string().allow("").required(),
@@ -3310,7 +3325,7 @@ class OrderPlatformModel {
3310
3325
  /** @returns {BuyRules} */
3311
3326
  static BuyRules() {
3312
3327
  return Joi.object({
3313
- cart_conditions: Joi.any(),
3328
+ cart_conditions: Joi.any().allow(null),
3314
3329
  item_criteria: OrderPlatformModel.ItemCriterias(),
3315
3330
  });
3316
3331
  }
@@ -3352,12 +3367,12 @@ class OrderPlatformModel {
3352
3367
  /** @returns {CompanyDetails} */
3353
3368
  static CompanyDetails() {
3354
3369
  return Joi.object({
3355
- address: Joi.any(),
3370
+ address: Joi.any().allow(null),
3356
3371
  company_cin: Joi.string().allow("").allow(null),
3357
3372
  company_contact: OrderPlatformModel.ContactDetails(),
3358
- company_gst: Joi.string().allow(""),
3359
- company_id: Joi.number(),
3360
- company_name: Joi.string().allow(""),
3373
+ company_gst: Joi.string().allow("").allow(null),
3374
+ company_id: Joi.number().allow(null),
3375
+ company_name: Joi.string().allow("").allow(null),
3361
3376
  });
3362
3377
  }
3363
3378
 
@@ -3501,19 +3516,19 @@ class OrderPlatformModel {
3501
3516
  /** @returns {CurrentStatus} */
3502
3517
  static CurrentStatus() {
3503
3518
  return Joi.object({
3504
- bag_id: Joi.number(),
3519
+ bag_id: Joi.number().allow(null),
3505
3520
  bag_state_mapper: OrderPlatformModel.BagStateMapper(),
3506
3521
  created_at: Joi.string().allow("").allow(null),
3507
3522
  delivery_awb_number: Joi.string().allow("").allow(null),
3508
3523
  delivery_partner_id: Joi.number().allow(null),
3509
3524
  id: Joi.number().required(),
3510
- kafka_sync: Joi.boolean(),
3511
- shipment_id: Joi.string().allow(""),
3512
- state_id: Joi.number(),
3513
- state_type: Joi.string().allow(""),
3514
- status: Joi.string().allow(""),
3515
- store_id: Joi.number(),
3516
- updated_at: Joi.number(),
3525
+ kafka_sync: Joi.boolean().allow(null),
3526
+ shipment_id: Joi.string().allow("").allow(null),
3527
+ state_id: Joi.number().allow(null),
3528
+ state_type: Joi.string().allow("").allow(null),
3529
+ status: Joi.string().allow("").allow(null),
3530
+ store_id: Joi.number().allow(null),
3531
+ updated_at: Joi.string().allow("").allow(null),
3517
3532
  });
3518
3533
  }
3519
3534
 
@@ -3532,14 +3547,14 @@ class OrderPlatformModel {
3532
3547
  static Dates() {
3533
3548
  return Joi.object({
3534
3549
  delivery_date: Joi.string().allow("").allow(null),
3535
- order_created: Joi.string().allow(""),
3550
+ order_created: Joi.string().allow("").allow(null),
3536
3551
  });
3537
3552
  }
3538
3553
 
3539
3554
  /** @returns {DebugInfo} */
3540
3555
  static DebugInfo() {
3541
3556
  return Joi.object({
3542
- stormbreaker_uuid: Joi.string().allow(""),
3557
+ stormbreaker_uuid: Joi.string().allow("").allow(null),
3543
3558
  });
3544
3559
  }
3545
3560
 
@@ -3557,19 +3572,19 @@ class OrderPlatformModel {
3557
3572
  /** @returns {Dimensions} */
3558
3573
  static Dimensions() {
3559
3574
  return Joi.object({
3560
- height: Joi.number(),
3561
- is_default: Joi.boolean(),
3562
- length: Joi.number(),
3563
- unit: Joi.string().allow(""),
3564
- width: Joi.number(),
3575
+ height: Joi.number().allow(null),
3576
+ is_default: Joi.boolean().allow(null),
3577
+ length: Joi.number().allow(null),
3578
+ unit: Joi.string().allow("").allow(null),
3579
+ width: Joi.number().allow(null),
3565
3580
  });
3566
3581
  }
3567
3582
 
3568
3583
  /** @returns {DiscountRules} */
3569
3584
  static DiscountRules() {
3570
3585
  return Joi.object({
3571
- type: Joi.string().allow(""),
3572
- value: Joi.number(),
3586
+ type: Joi.string().allow("").allow(null),
3587
+ value: Joi.number().allow(null),
3573
3588
  });
3574
3589
  }
3575
3590
 
@@ -3585,7 +3600,7 @@ class OrderPlatformModel {
3585
3600
  return Joi.object({
3586
3601
  ds_type: Joi.string().allow("").required(),
3587
3602
  legal_name: Joi.string().allow("").required(),
3588
- url: Joi.string().allow(""),
3603
+ url: Joi.string().allow("").allow(null),
3589
3604
  value: Joi.string().allow("").required(),
3590
3605
  verified: Joi.boolean().required(),
3591
3606
  });
@@ -3602,12 +3617,12 @@ class OrderPlatformModel {
3602
3617
  static DPDetailsData() {
3603
3618
  return Joi.object({
3604
3619
  awb_no: Joi.string().allow("").allow(null),
3605
- country: Joi.string().allow(""),
3620
+ country: Joi.string().allow("").allow(null),
3606
3621
  eway_bill_id: Joi.string().allow("").allow(null),
3607
- gst_tag: Joi.string().allow(""),
3622
+ gst_tag: Joi.string().allow("").allow(null),
3608
3623
  id: Joi.number().allow(null),
3609
3624
  name: Joi.string().allow("").allow(null),
3610
- pincode: Joi.string().allow(""),
3625
+ pincode: Joi.string().allow("").allow(null),
3611
3626
  track_url: Joi.string().allow("").allow(null),
3612
3627
  });
3613
3628
  }
@@ -3615,17 +3630,17 @@ class OrderPlatformModel {
3615
3630
  /** @returns {EinvoiceInfo} */
3616
3631
  static EinvoiceInfo() {
3617
3632
  return Joi.object({
3618
- credit_note: Joi.any(),
3619
- invoice: Joi.any(),
3633
+ credit_note: Joi.any().allow(null),
3634
+ invoice: Joi.any().allow(null),
3620
3635
  });
3621
3636
  }
3622
3637
 
3623
3638
  /** @returns {EInvoicePortalDetails} */
3624
3639
  static EInvoicePortalDetails() {
3625
3640
  return Joi.object({
3626
- password: Joi.string().allow(""),
3627
- user: Joi.string().allow(""),
3628
- username: Joi.string().allow(""),
3641
+ password: Joi.string().allow("").allow(null),
3642
+ user: Joi.string().allow("").allow(null),
3643
+ username: Joi.string().allow("").allow(null),
3629
3644
  });
3630
3645
  }
3631
3646
 
@@ -3727,10 +3742,10 @@ class OrderPlatformModel {
3727
3742
  static ErrorResponse() {
3728
3743
  return Joi.object({
3729
3744
  error: Joi.string().allow("").required(),
3730
- error_trace: Joi.string().allow(""),
3731
- message: Joi.string().allow("").required(),
3732
- status: Joi.number(),
3733
- success: Joi.boolean(),
3745
+ error_trace: Joi.string().allow("").allow(null),
3746
+ message: Joi.string().allow("").allow(null).required(),
3747
+ status: Joi.number().allow(null),
3748
+ success: Joi.boolean().allow(null),
3734
3749
  });
3735
3750
  }
3736
3751
 
@@ -3762,10 +3777,10 @@ class OrderPlatformModel {
3762
3777
  /** @returns {FilterInfoOption} */
3763
3778
  static FilterInfoOption() {
3764
3779
  return Joi.object({
3765
- min_search_size: Joi.number(),
3780
+ min_search_size: Joi.number().allow(null),
3766
3781
  name: Joi.string().allow("").allow(null),
3767
- placeholder_text: Joi.string().allow(""),
3768
- show_ui: Joi.boolean(),
3782
+ placeholder_text: Joi.string().allow("").allow(null),
3783
+ show_ui: Joi.boolean().allow(null),
3769
3784
  text: Joi.string().allow("").allow(null),
3770
3785
  value: Joi.string().allow("").allow(null),
3771
3786
  });
@@ -3775,8 +3790,8 @@ class OrderPlatformModel {
3775
3790
  static FiltersInfo() {
3776
3791
  return Joi.object({
3777
3792
  options: Joi.array().items(OrderPlatformModel.FilterInfoOption()),
3778
- placeholder_text: Joi.string().allow(""),
3779
- required: Joi.boolean(),
3793
+ placeholder_text: Joi.string().allow("").allow(null),
3794
+ required: Joi.boolean().allow(null),
3780
3795
  text: Joi.string().allow("").required(),
3781
3796
  type: Joi.string().allow("").required(),
3782
3797
  value: Joi.string().allow("").required(),
@@ -3796,7 +3811,7 @@ class OrderPlatformModel {
3796
3811
  return Joi.object({
3797
3812
  added_to_fynd_cash: Joi.boolean().required(),
3798
3813
  amount_paid: Joi.number().required(),
3799
- amount_paid_roundoff: Joi.number(),
3814
+ amount_paid_roundoff: Joi.number().allow(null),
3800
3815
  brand_calculated_amount: Joi.number().required(),
3801
3816
  cashback: Joi.number().required(),
3802
3817
  cashback_applied: Joi.number().required(),
@@ -3817,7 +3832,7 @@ class OrderPlatformModel {
3817
3832
  promotion_effective_discount: Joi.number().required(),
3818
3833
  refund_credit: Joi.number().required(),
3819
3834
  size: Joi.string().allow("").required(),
3820
- tax_collected_at_source: Joi.number(),
3835
+ tax_collected_at_source: Joi.number().allow(null),
3821
3836
  total_units: Joi.number().required(),
3822
3837
  transfer_price: Joi.number().required(),
3823
3838
  value_of_good: Joi.number().required(),
@@ -3827,8 +3842,8 @@ class OrderPlatformModel {
3827
3842
  /** @returns {Formatted} */
3828
3843
  static Formatted() {
3829
3844
  return Joi.object({
3830
- max: Joi.string().allow(""),
3831
- min: Joi.string().allow(""),
3845
+ max: Joi.string().allow("").allow(null),
3846
+ min: Joi.string().allow("").allow(null),
3832
3847
  });
3833
3848
  }
3834
3849
 
@@ -3889,10 +3904,10 @@ class OrderPlatformModel {
3889
3904
  /** @returns {GiftCard} */
3890
3905
  static GiftCard() {
3891
3906
  return Joi.object({
3892
- display_text: Joi.string().allow(""),
3893
- gift_message: Joi.string().allow(""),
3894
- gift_price: Joi.number(),
3895
- is_gift_applied: Joi.boolean(),
3907
+ display_text: Joi.string().allow("").allow(null),
3908
+ gift_message: Joi.string().allow("").allow(null),
3909
+ gift_price: Joi.number().allow(null),
3910
+ is_gift_applied: Joi.boolean().allow(null),
3896
3911
  });
3897
3912
  }
3898
3913
 
@@ -3900,19 +3915,19 @@ class OrderPlatformModel {
3900
3915
  static GSTDetailsData() {
3901
3916
  return Joi.object({
3902
3917
  brand_calculated_amount: Joi.number().required(),
3903
- cgst_gst_fee: Joi.number(),
3904
- cgst_tax_percentage: Joi.number(),
3918
+ cgst_gst_fee: Joi.number().allow(null),
3919
+ cgst_tax_percentage: Joi.number().allow(null),
3905
3920
  gst_fee: Joi.number().required(),
3906
- gst_tag: Joi.string().allow(""),
3907
- gst_tax_percentage: Joi.number(),
3921
+ gst_tag: Joi.string().allow("").allow(null),
3922
+ gst_tax_percentage: Joi.number().allow(null),
3908
3923
  gstin_code: Joi.string().allow("").allow(null),
3909
- hsn_code: Joi.string().allow(""),
3910
- hsn_code_id: Joi.string().allow(""),
3911
- igst_gst_fee: Joi.number(),
3912
- igst_tax_percentage: Joi.number(),
3913
- is_default_hsn_code: Joi.boolean(),
3914
- sgst_gst_fee: Joi.number(),
3915
- sgst_tax_percentage: Joi.number(),
3924
+ hsn_code: Joi.string().allow("").allow(null),
3925
+ hsn_code_id: Joi.string().allow("").allow(null),
3926
+ igst_gst_fee: Joi.number().allow(null),
3927
+ igst_tax_percentage: Joi.number().allow(null),
3928
+ is_default_hsn_code: Joi.boolean().allow(null),
3929
+ sgst_gst_fee: Joi.number().allow(null),
3930
+ sgst_tax_percentage: Joi.number().allow(null),
3916
3931
  tax_collected_at_source: Joi.number().required(),
3917
3932
  value_of_good: Joi.number().required(),
3918
3933
  });
@@ -3981,11 +3996,11 @@ class OrderPlatformModel {
3981
3996
  /** @returns {Identifier} */
3982
3997
  static Identifier() {
3983
3998
  return Joi.object({
3984
- alu: Joi.string().allow(""),
3985
- ean: Joi.string().allow(""),
3986
- isbn: Joi.string().allow(""),
3987
- sku_code: Joi.string().allow(""),
3988
- upc: Joi.string().allow(""),
3999
+ alu: Joi.string().allow("").allow(null),
4000
+ ean: Joi.string().allow("").allow(null),
4001
+ isbn: Joi.string().allow("").allow(null),
4002
+ sku_code: Joi.string().allow("").allow(null),
4003
+ upc: Joi.string().allow("").allow(null),
3989
4004
  });
3990
4005
  }
3991
4006
 
@@ -4021,11 +4036,11 @@ class OrderPlatformModel {
4021
4036
  static InvoiceInfo() {
4022
4037
  return Joi.object({
4023
4038
  credit_note_id: Joi.string().allow("").allow(null),
4024
- external_invoice_id: Joi.string().allow(""),
4025
- invoice_url: Joi.string().allow(""),
4026
- label_url: Joi.string().allow(""),
4039
+ external_invoice_id: Joi.string().allow("").allow(null),
4040
+ invoice_url: Joi.string().allow("").allow(null),
4041
+ label_url: Joi.string().allow("").allow(null),
4027
4042
  store_invoice_id: Joi.string().allow("").allow(null),
4028
- updated_date: Joi.string().allow(""),
4043
+ updated_date: Joi.string().allow("").allow(null),
4029
4044
  });
4030
4045
  }
4031
4046
 
@@ -4036,22 +4051,22 @@ class OrderPlatformModel {
4036
4051
  branch_url: Joi.string().allow("").allow(null),
4037
4052
  brand: Joi.string().allow("").required(),
4038
4053
  brand_id: Joi.number().required(),
4039
- can_cancel: Joi.boolean(),
4040
- can_return: Joi.boolean(),
4041
- code: Joi.string().allow(""),
4054
+ can_cancel: Joi.boolean().allow(null),
4055
+ can_return: Joi.boolean().allow(null),
4056
+ code: Joi.string().allow("").allow(null),
4042
4057
  color: Joi.string().allow("").allow(null),
4043
- department_id: Joi.number(),
4058
+ department_id: Joi.number().allow(null),
4044
4059
  gender: Joi.string().allow("").allow(null),
4045
4060
  image: Joi.array().items(Joi.string().allow("")).required(),
4046
4061
  item_id: Joi.number().required(),
4047
4062
  l1_category: Joi.array().items(Joi.string().allow("")),
4048
- l1_category_id: Joi.number(),
4063
+ l1_category_id: Joi.number().allow(null),
4049
4064
  l2_category: Joi.array().items(Joi.string().allow("")),
4050
- l2_category_id: Joi.number(),
4051
- l3_category: Joi.number(),
4052
- l3_category_name: Joi.string().allow(""),
4053
- last_updated_at: Joi.string().allow(""),
4054
- meta: Joi.any(),
4065
+ l2_category_id: Joi.number().allow(null),
4066
+ l3_category: Joi.number().allow(null),
4067
+ l3_category_name: Joi.string().allow("").allow(null),
4068
+ last_updated_at: Joi.string().allow("").allow(null),
4069
+ meta: Joi.any().allow(null),
4055
4070
  name: Joi.string().allow("").required(),
4056
4071
  size: Joi.string().allow("").required(),
4057
4072
  slug_key: Joi.string().allow("").required(),
@@ -4099,9 +4114,9 @@ class OrderPlatformModel {
4099
4114
  /** @returns {LockData} */
4100
4115
  static LockData() {
4101
4116
  return Joi.object({
4102
- lock_message: Joi.string().allow(""),
4103
- locked: Joi.boolean(),
4104
- mto: Joi.boolean(),
4117
+ lock_message: Joi.string().allow("").allow(null),
4118
+ locked: Joi.boolean().allow(null),
4119
+ mto: Joi.boolean().allow(null),
4105
4120
  });
4106
4121
  }
4107
4122
 
@@ -4124,10 +4139,10 @@ class OrderPlatformModel {
4124
4139
  /** @returns {OrderBagArticle} */
4125
4140
  static OrderBagArticle() {
4126
4141
  return Joi.object({
4127
- identifiers: Joi.any(),
4142
+ identifiers: Joi.any().allow(null),
4128
4143
  return_config: OrderPlatformModel.ReturnConfig1(),
4129
- size: Joi.string().allow(""),
4130
- uid: Joi.string().allow(""),
4144
+ size: Joi.string().allow("").allow(null),
4145
+ uid: Joi.string().allow("").allow(null),
4131
4146
  });
4132
4147
  }
4133
4148
 
@@ -4140,38 +4155,39 @@ class OrderPlatformModel {
4140
4155
  bag_configs: OrderPlatformModel.BagConfigs(),
4141
4156
  bag_id: Joi.number().required(),
4142
4157
  brand: OrderPlatformModel.OrderBrandName(),
4143
- can_cancel: Joi.boolean(),
4144
- can_return: Joi.boolean(),
4158
+ can_cancel: Joi.boolean().allow(null),
4159
+ can_return: Joi.boolean().allow(null),
4145
4160
  current_status: OrderPlatformModel.CurrentStatus(),
4146
4161
  delivery_address: OrderPlatformModel.PlatformDeliveryAddress(),
4147
- display_name: Joi.string().allow(""),
4148
- entity_type: Joi.string().allow(""),
4162
+ display_name: Joi.string().allow("").allow(null),
4163
+ entity_type: Joi.string().allow("").allow(null),
4149
4164
  financial_breakup: OrderPlatformModel.FinancialBreakup(),
4150
- group_id: Joi.string().allow(""),
4165
+ group_id: Joi.string().allow("").allow(null),
4151
4166
  gst_details: OrderPlatformModel.BagGST(),
4152
- identifier: Joi.string().allow(""),
4167
+ identifier: Joi.string().allow("").allow(null),
4168
+ is_parent: Joi.boolean().allow(null),
4153
4169
  item: OrderPlatformModel.PlatformItem(),
4154
- line_number: Joi.number(),
4170
+ line_number: Joi.number().allow(null),
4155
4171
  meta: OrderPlatformModel.BagMeta(),
4156
- parent_promo_bags: Joi.any(),
4172
+ parent_promo_bags: Joi.any().allow(null),
4157
4173
  payment_methods: Joi.array().items(
4158
4174
  OrderPlatformModel.BagPaymentMethods()
4159
4175
  ),
4160
4176
  prices: OrderPlatformModel.Prices(),
4161
- quantity: Joi.number(),
4162
- seller_identifier: Joi.string().allow(""),
4177
+ quantity: Joi.number().allow(null),
4178
+ seller_identifier: Joi.string().allow("").allow(null),
4163
4179
  });
4164
4180
  }
4165
4181
 
4166
4182
  /** @returns {OrderBrandName} */
4167
4183
  static OrderBrandName() {
4168
4184
  return Joi.object({
4169
- brand_name: Joi.string().allow(""),
4185
+ brand_name: Joi.string().allow("").allow(null),
4170
4186
  company: Joi.number().allow(null).required(),
4171
- created_on: Joi.string().allow(""),
4187
+ created_on: Joi.string().allow("").allow(null),
4172
4188
  id: Joi.number().required(),
4173
- logo: Joi.string().allow(""),
4174
- modified_on: Joi.string().allow(""),
4189
+ logo: Joi.string().allow("").allow(null),
4190
+ modified_on: Joi.string().allow("").allow(null),
4175
4191
  });
4176
4192
  }
4177
4193
 
@@ -4195,7 +4211,7 @@ class OrderPlatformModel {
4195
4211
  fynd_order_id: Joi.string().allow("").required(),
4196
4212
  meta: OrderPlatformModel.OrderMeta(),
4197
4213
  order_date: Joi.string().allow("").required(),
4198
- payment_methods: Joi.any(),
4214
+ payment_methods: Joi.any().allow(null),
4199
4215
  prices: OrderPlatformModel.Prices(),
4200
4216
  tax_details: OrderPlatformModel.TaxDetails(),
4201
4217
  });
@@ -4212,15 +4228,16 @@ class OrderPlatformModel {
4212
4228
  /** @returns {OrderDetailsData} */
4213
4229
  static OrderDetailsData() {
4214
4230
  return Joi.object({
4215
- affiliate_id: Joi.string().allow(""),
4216
- cod_charges: Joi.string().allow(""),
4231
+ affiliate_id: Joi.string().allow("").allow(null),
4232
+ cod_charges: Joi.string().allow("").allow(null),
4217
4233
  fynd_order_id: Joi.string().allow("").required(),
4218
- order_date: Joi.string().allow(""),
4219
- order_value: Joi.string().allow(""),
4220
- ordering_channel: Joi.string().allow(""),
4221
- ordering_channel_logo: Joi.any(),
4222
- source: Joi.string().allow(""),
4223
- tax_details: Joi.any(),
4234
+ meta: OrderPlatformModel.OrderMeta(),
4235
+ order_date: Joi.string().allow("").allow(null),
4236
+ order_value: Joi.string().allow("").allow(null),
4237
+ ordering_channel: Joi.string().allow("").allow(null),
4238
+ ordering_channel_logo: Joi.any().allow(null),
4239
+ source: Joi.string().allow("").allow(null),
4240
+ tax_details: Joi.any().allow(null),
4224
4241
  });
4225
4242
  }
4226
4243
 
@@ -4257,17 +4274,17 @@ class OrderPlatformModel {
4257
4274
  /** @returns {OrderingStoreDetails} */
4258
4275
  static OrderingStoreDetails() {
4259
4276
  return Joi.object({
4260
- address: Joi.string().allow(""),
4261
- city: Joi.string().allow(""),
4262
- code: Joi.string().allow(""),
4263
- contact_person: Joi.string().allow(""),
4264
- country: Joi.string().allow(""),
4265
- id: Joi.number(),
4266
- meta: Joi.any(),
4267
- phone: Joi.string().allow(""),
4268
- pincode: Joi.string().allow(""),
4269
- state: Joi.string().allow(""),
4270
- store_name: Joi.string().allow(""),
4277
+ address: Joi.string().allow("").allow(null),
4278
+ city: Joi.string().allow("").allow(null),
4279
+ code: Joi.string().allow("").allow(null),
4280
+ contact_person: Joi.string().allow("").allow(null),
4281
+ country: Joi.string().allow("").allow(null),
4282
+ id: Joi.number().allow(null),
4283
+ meta: Joi.any().allow(null),
4284
+ phone: Joi.string().allow("").allow(null),
4285
+ pincode: Joi.string().allow("").allow(null),
4286
+ state: Joi.string().allow("").allow(null),
4287
+ store_name: Joi.string().allow("").allow(null),
4271
4288
  });
4272
4289
  }
4273
4290
 
@@ -4282,11 +4299,11 @@ class OrderPlatformModel {
4282
4299
  static OrderListingResponse() {
4283
4300
  return Joi.object({
4284
4301
  items: Joi.array().items(OrderPlatformModel.PlatformOrderItems()),
4285
- lane: Joi.string().allow(""),
4286
- message: Joi.string().allow(""),
4302
+ lane: Joi.string().allow("").allow(null),
4303
+ message: Joi.string().allow("").allow(null),
4287
4304
  page: OrderPlatformModel.Page(),
4288
- success: Joi.boolean(),
4289
- total_count: Joi.number(),
4305
+ success: Joi.boolean().allow(null),
4306
+ total_count: Joi.number().allow(null),
4290
4307
  });
4291
4308
  }
4292
4309
 
@@ -4294,23 +4311,24 @@ class OrderPlatformModel {
4294
4311
  static OrderMeta() {
4295
4312
  return Joi.object({
4296
4313
  billing_staff_details: OrderPlatformModel.BillingStaffDetails(),
4297
- cart_id: Joi.number(),
4298
- comment: Joi.string().allow(""),
4299
- company_logo: Joi.string().allow(""),
4300
- currency_symbol: Joi.string().allow(""),
4301
- customer_note: Joi.string().allow(""),
4314
+ cart_id: Joi.number().allow(null),
4315
+ cart_object_id: Joi.string().allow("").allow(null),
4316
+ comment: Joi.string().allow("").allow(null),
4317
+ company_logo: Joi.string().allow("").allow(null),
4318
+ currency_symbol: Joi.string().allow("").allow(null),
4319
+ customer_note: Joi.string().allow("").allow(null),
4302
4320
  employee_id: Joi.string().allow("").allow(null),
4303
- extra_meta: Joi.any(),
4321
+ extra_meta: Joi.any().allow(null),
4304
4322
  files: Joi.array().items(Joi.any()),
4305
- mongo_cart_id: Joi.number(),
4323
+ mongo_cart_id: Joi.number().allow(null),
4306
4324
  order_child_entities: Joi.array().items(Joi.string().allow("")),
4307
- order_platform: Joi.string().allow(""),
4325
+ order_platform: Joi.string().allow("").allow(null),
4308
4326
  order_tags: Joi.array().items(Joi.any().allow(null)),
4309
- order_type: Joi.string().allow(""),
4310
- ordering_store: Joi.number(),
4311
- payment_type: Joi.string().allow(""),
4327
+ order_type: Joi.string().allow("").allow(null),
4328
+ ordering_store: Joi.number().allow(null),
4329
+ payment_type: Joi.string().allow("").allow(null),
4312
4330
  platform_user_details: OrderPlatformModel.PlatformUserDetails(),
4313
- staff: Joi.any(),
4331
+ staff: Joi.any().allow(null),
4314
4332
  transaction_data: OrderPlatformModel.TransactionData(),
4315
4333
  });
4316
4334
  }
@@ -4433,78 +4451,78 @@ class OrderPlatformModel {
4433
4451
  /** @returns {PDFLinks} */
4434
4452
  static PDFLinks() {
4435
4453
  return Joi.object({
4436
- b2b: Joi.string().allow(""),
4437
- credit_note_url: Joi.string().allow(""),
4438
- delivery_challan_a4: Joi.string().allow(""),
4439
- invoice: Joi.string().allow(""),
4440
- invoice_a4: Joi.string().allow(""),
4441
- invoice_a6: Joi.string().allow(""),
4442
- invoice_export: Joi.string().allow(""),
4443
- invoice_pos: Joi.string().allow(""),
4454
+ b2b: Joi.string().allow("").allow(null),
4455
+ credit_note_url: Joi.string().allow("").allow(null),
4456
+ delivery_challan_a4: Joi.string().allow("").allow(null),
4457
+ invoice: Joi.string().allow("").allow(null),
4458
+ invoice_a4: Joi.string().allow("").allow(null),
4459
+ invoice_a6: Joi.string().allow("").allow(null),
4460
+ invoice_export: Joi.string().allow("").allow(null),
4461
+ invoice_pos: Joi.string().allow("").allow(null),
4444
4462
  invoice_type: Joi.string().allow("").required(),
4445
- label: Joi.string().allow(""),
4446
- label_a4: Joi.string().allow(""),
4447
- label_a6: Joi.string().allow(""),
4448
- label_export: Joi.string().allow(""),
4449
- label_pos: Joi.string().allow(""),
4463
+ label: Joi.string().allow("").allow(null),
4464
+ label_a4: Joi.string().allow("").allow(null),
4465
+ label_a6: Joi.string().allow("").allow(null),
4466
+ label_export: Joi.string().allow("").allow(null),
4467
+ label_pos: Joi.string().allow("").allow(null),
4450
4468
  label_type: Joi.string().allow("").required(),
4451
- po_invoice: Joi.string().allow(""),
4469
+ po_invoice: Joi.string().allow("").allow(null),
4452
4470
  });
4453
4471
  }
4454
4472
 
4455
4473
  /** @returns {PhoneDetails} */
4456
4474
  static PhoneDetails() {
4457
4475
  return Joi.object({
4458
- country_code: Joi.number(),
4459
- number: Joi.string().allow(""),
4476
+ country_code: Joi.number().allow(null),
4477
+ number: Joi.string().allow("").allow(null),
4460
4478
  });
4461
4479
  }
4462
4480
 
4463
4481
  /** @returns {PlatformArticleAttributes} */
4464
4482
  static PlatformArticleAttributes() {
4465
4483
  return Joi.object({
4466
- currency: Joi.string().allow(""),
4484
+ currency: Joi.string().allow("").allow(null),
4467
4485
  });
4468
4486
  }
4469
4487
 
4470
4488
  /** @returns {PlatformBreakupValues} */
4471
4489
  static PlatformBreakupValues() {
4472
4490
  return Joi.object({
4473
- display: Joi.string().allow(""),
4474
- name: Joi.string().allow(""),
4475
- value: Joi.string().allow(""),
4491
+ display: Joi.string().allow("").allow(null),
4492
+ name: Joi.string().allow("").allow(null),
4493
+ value: Joi.string().allow("").allow(null),
4476
4494
  });
4477
4495
  }
4478
4496
 
4479
4497
  /** @returns {PlatformChannel} */
4480
4498
  static PlatformChannel() {
4481
4499
  return Joi.object({
4482
- logo: Joi.string().allow(""),
4483
- name: Joi.string().allow(""),
4500
+ logo: Joi.string().allow("").allow(null),
4501
+ name: Joi.string().allow("").allow(null),
4484
4502
  });
4485
4503
  }
4486
4504
 
4487
4505
  /** @returns {PlatformDeliveryAddress} */
4488
4506
  static PlatformDeliveryAddress() {
4489
4507
  return Joi.object({
4490
- address_category: Joi.string().allow(""),
4491
- address_type: Joi.string().allow(""),
4492
- address1: Joi.string().allow(""),
4493
- address2: Joi.string().allow(""),
4494
- area: Joi.string().allow(""),
4495
- city: Joi.string().allow(""),
4496
- contact_person: Joi.string().allow(""),
4497
- country: Joi.string().allow(""),
4498
- created_at: Joi.string().allow(""),
4499
- email: Joi.string().allow(""),
4500
- landmark: Joi.string().allow(""),
4501
- latitude: Joi.number(),
4502
- longitude: Joi.number(),
4503
- phone: Joi.string().allow(""),
4504
- pincode: Joi.string().allow(""),
4505
- state: Joi.string().allow(""),
4506
- updated_at: Joi.string().allow(""),
4507
- version: Joi.string().allow(""),
4508
+ address_category: Joi.string().allow("").allow(null),
4509
+ address_type: Joi.string().allow("").allow(null),
4510
+ address1: Joi.string().allow("").allow(null),
4511
+ address2: Joi.string().allow("").allow(null),
4512
+ area: Joi.string().allow("").allow(null),
4513
+ city: Joi.string().allow("").allow(null),
4514
+ contact_person: Joi.string().allow("").allow(null),
4515
+ country: Joi.string().allow("").allow(null),
4516
+ created_at: Joi.string().allow("").allow(null),
4517
+ email: Joi.string().allow("").allow(null),
4518
+ landmark: Joi.string().allow("").allow(null),
4519
+ latitude: Joi.number().allow(null),
4520
+ longitude: Joi.number().allow(null),
4521
+ phone: Joi.string().allow("").allow(null),
4522
+ pincode: Joi.string().allow("").allow(null),
4523
+ state: Joi.string().allow("").allow(null),
4524
+ updated_at: Joi.string().allow("").allow(null),
4525
+ version: Joi.string().allow("").allow(null),
4508
4526
  });
4509
4527
  }
4510
4528
 
@@ -4513,25 +4531,25 @@ class OrderPlatformModel {
4513
4531
  return Joi.object({
4514
4532
  attributes: OrderPlatformModel.PlatformArticleAttributes(),
4515
4533
  branch_url: Joi.string().allow("").allow(null),
4516
- brand: Joi.string().allow(""),
4517
- brand_id: Joi.number(),
4518
- can_cancel: Joi.boolean(),
4519
- can_return: Joi.boolean(),
4520
- code: Joi.string().allow(""),
4534
+ brand: Joi.string().allow("").allow(null),
4535
+ brand_id: Joi.number().allow(null),
4536
+ can_cancel: Joi.boolean().allow(null),
4537
+ can_return: Joi.boolean().allow(null),
4538
+ code: Joi.string().allow("").allow(null),
4521
4539
  color: Joi.string().allow("").allow(null),
4522
- department_id: Joi.number(),
4523
- id: Joi.number(),
4540
+ department_id: Joi.number().allow(null),
4541
+ id: Joi.number().allow(null),
4524
4542
  image: Joi.array().items(Joi.string().allow("")),
4525
4543
  images: Joi.array().items(Joi.string().allow("")),
4526
4544
  l1_category: Joi.array().items(Joi.string().allow("")),
4527
4545
  l2_category: Joi.array().items(Joi.string().allow("")),
4528
- l3_category: Joi.number(),
4529
- l3_category_name: Joi.string().allow(""),
4530
- last_updated_at: Joi.string().allow(""),
4531
- meta: Joi.any(),
4532
- name: Joi.string().allow(""),
4533
- size: Joi.string().allow(""),
4534
- slug_key: Joi.string().allow(""),
4546
+ l3_category: Joi.number().allow(null),
4547
+ l3_category_name: Joi.string().allow("").allow(null),
4548
+ last_updated_at: Joi.string().allow("").allow(null),
4549
+ meta: Joi.any().allow(null),
4550
+ name: Joi.string().allow("").allow(null),
4551
+ size: Joi.string().allow("").allow(null),
4552
+ slug_key: Joi.string().allow("").allow(null),
4535
4553
  });
4536
4554
  }
4537
4555
 
@@ -4542,13 +4560,13 @@ class OrderPlatformModel {
4542
4560
  OrderPlatformModel.PlatformBreakupValues()
4543
4561
  ),
4544
4562
  channel: OrderPlatformModel.PlatformChannel(),
4545
- meta: Joi.any(),
4546
- order_created_time: Joi.string().allow(""),
4547
- order_id: Joi.string().allow(""),
4548
- order_value: Joi.number(),
4549
- payment_mode: Joi.string().allow(""),
4563
+ meta: Joi.any().allow(null),
4564
+ order_created_time: Joi.string().allow("").allow(null),
4565
+ order_id: Joi.string().allow("").allow(null),
4566
+ order_value: Joi.number().allow(null),
4567
+ payment_mode: Joi.string().allow("").allow(null),
4550
4568
  shipments: Joi.array().items(OrderPlatformModel.PlatformShipment()),
4551
- total_order_value: Joi.number(),
4569
+ total_order_value: Joi.number().allow(null),
4552
4570
  user_info: OrderPlatformModel.UserDataInfo(),
4553
4571
  });
4554
4572
  }
@@ -4569,51 +4587,57 @@ class OrderPlatformModel {
4569
4587
  ),
4570
4588
  bags: Joi.array().items(OrderPlatformModel.OrderBags()),
4571
4589
  billing_details: OrderPlatformModel.UserDetailsData(),
4572
- can_update_dimension: Joi.boolean(),
4590
+ can_update_dimension: Joi.boolean().allow(null),
4573
4591
  company_details: OrderPlatformModel.CompanyDetails(),
4574
- coupon: Joi.any(),
4575
- custom_message: Joi.string().allow(""),
4592
+ coupon: Joi.any().allow(null),
4593
+ credit_note_id: Joi.string().allow("").allow(null),
4594
+ custom_message: Joi.string().allow("").allow(null),
4576
4595
  custom_meta: Joi.array().items(Joi.any()),
4577
4596
  delivery_details: OrderPlatformModel.UserDetailsData(),
4578
- delivery_slot: Joi.any(),
4579
- dp_assignment: Joi.boolean(),
4597
+ delivery_slot: Joi.any().allow(null),
4598
+ dp_assignment: Joi.boolean().allow(null),
4580
4599
  dp_details: OrderPlatformModel.DPDetailsData(),
4581
- enable_dp_tracking: Joi.boolean(),
4582
- estimated_sla_time: Joi.string().allow(""),
4600
+ enable_dp_tracking: Joi.boolean().allow(null),
4601
+ estimated_sla_time: Joi.string().allow("").allow(null),
4583
4602
  forward_shipment_id: Joi.string().allow("").allow(null),
4584
4603
  fulfilling_store: OrderPlatformModel.FulfillingStore(),
4585
- fulfilment_priority: Joi.number(),
4604
+ fulfilment_priority: Joi.number().allow(null),
4586
4605
  gst_details: OrderPlatformModel.GSTDetailsData(),
4587
4606
  invoice: OrderPlatformModel.InvoiceInfo(),
4588
- invoice_id: Joi.string().allow(""),
4589
- is_dp_assign_enabled: Joi.boolean(),
4590
- journey_type: Joi.string().allow(""),
4591
- lock_status: Joi.boolean(),
4607
+ invoice_id: Joi.string().allow("").allow(null),
4608
+ is_dp_assign_enabled: Joi.boolean().allow(null),
4609
+ is_self_ship: Joi.boolean().allow(null),
4610
+ journey_type: Joi.string().allow("").allow(null),
4611
+ lock_status: Joi.boolean().allow(null),
4592
4612
  meta: OrderPlatformModel.ShipmentMeta(),
4593
- operational_status: Joi.string().allow(""),
4613
+ mode_of_payment: Joi.string().allow("").allow(null),
4614
+ operational_status: Joi.string().allow("").allow(null),
4594
4615
  order: OrderPlatformModel.OrderDetailsData(),
4595
4616
  ordering_store: OrderPlatformModel.OrderingStoreDetails(),
4596
- packaging_type: Joi.string().allow(""),
4597
- payment_methods: Joi.any(),
4598
- payment_mode: Joi.string().allow(""),
4617
+ packaging_type: Joi.string().allow("").allow(null),
4618
+ payment_methods: Joi.any().allow(null),
4619
+ payment_mode: Joi.string().allow("").allow(null),
4599
4620
  payments: OrderPlatformModel.ShipmentPayments(),
4600
4621
  pdf_links: Joi.any(),
4601
- picked_date: Joi.string().allow(""),
4602
- platform_logo: Joi.string().allow(""),
4622
+ picked_date: Joi.string().allow("").allow(null),
4623
+ platform_logo: Joi.string().allow("").allow(null),
4624
+ previous_shipment_id: Joi.string().allow("").allow(null),
4603
4625
  prices: OrderPlatformModel.Prices(),
4604
4626
  priority_text: Joi.string().allow("").allow(null),
4605
- shipment_created_at: Joi.string().allow(""),
4627
+ rto_address: OrderPlatformModel.PlatformDeliveryAddress(),
4628
+ shipment_created_at: Joi.string().allow("").allow(null),
4606
4629
  shipment_details: OrderPlatformModel.ShipmentDetails(),
4607
4630
  shipment_id: Joi.string().allow("").required(),
4608
4631
  shipment_images: Joi.array().items(Joi.string().allow("")),
4609
- shipment_quantity: Joi.number(),
4610
- shipment_status: Joi.string().allow(""),
4632
+ shipment_quantity: Joi.number().allow(null),
4633
+ shipment_status: Joi.string().allow("").allow(null),
4634
+ shipment_update_time: Joi.number().allow(null),
4611
4635
  status: OrderPlatformModel.ShipmentStatusData(),
4612
- total_bags: Joi.number(),
4613
- total_items: Joi.number(),
4636
+ total_bags: Joi.number().allow(null),
4637
+ total_items: Joi.number().allow(null),
4614
4638
  tracking_list: Joi.array().items(OrderPlatformModel.TrackingList()),
4615
4639
  user: OrderPlatformModel.UserDataInfo(),
4616
- user_agent: Joi.string().allow(""),
4640
+ user_agent: Joi.string().allow("").allow(null),
4617
4641
  vertical: Joi.string().allow("").allow(null),
4618
4642
  });
4619
4643
  }
@@ -4654,9 +4678,9 @@ class OrderPlatformModel {
4654
4678
  static PlatformUserDetails() {
4655
4679
  return Joi.object({
4656
4680
  platform_user_employee_code: Joi.string().allow("").allow(null),
4657
- platform_user_first_name: Joi.string().allow(""),
4681
+ platform_user_first_name: Joi.string().allow("").allow(null),
4658
4682
  platform_user_id: Joi.string().allow("").allow(null),
4659
- platform_user_last_name: Joi.string().allow(""),
4683
+ platform_user_last_name: Joi.string().allow("").allow(null),
4660
4684
  });
4661
4685
  }
4662
4686
 
@@ -4714,27 +4738,27 @@ class OrderPlatformModel {
4714
4738
  /** @returns {Prices} */
4715
4739
  static Prices() {
4716
4740
  return Joi.object({
4717
- amount_paid: Joi.number(),
4718
- amount_paid_roundoff: Joi.number(),
4719
- brand_calculated_amount: Joi.number(),
4720
- cashback: Joi.number(),
4721
- cashback_applied: Joi.number(),
4722
- cod_charges: Joi.number(),
4723
- coupon_effective_discount: Joi.number(),
4724
- coupon_value: Joi.number(),
4725
- delivery_charge: Joi.number(),
4726
- discount: Joi.number(),
4727
- fynd_credits: Joi.number(),
4728
- gift_price: Joi.number(),
4729
- pm_price_split: Joi.number(),
4730
- price_effective: Joi.number(),
4731
- price_marked: Joi.number(),
4732
- promotion_effective_discount: Joi.number(),
4733
- refund_amount: Joi.number(),
4734
- refund_credit: Joi.number(),
4735
- tax_collected_at_source: Joi.number(),
4736
- transfer_price: Joi.number(),
4737
- value_of_good: Joi.number(),
4741
+ amount_paid: Joi.number().allow(null),
4742
+ amount_paid_roundoff: Joi.number().allow(null),
4743
+ brand_calculated_amount: Joi.number().allow(null),
4744
+ cashback: Joi.number().allow(null),
4745
+ cashback_applied: Joi.number().allow(null),
4746
+ cod_charges: Joi.number().allow(null),
4747
+ coupon_effective_discount: Joi.number().allow(null),
4748
+ coupon_value: Joi.number().allow(null),
4749
+ delivery_charge: Joi.number().allow(null),
4750
+ discount: Joi.number().allow(null),
4751
+ fynd_credits: Joi.number().allow(null),
4752
+ gift_price: Joi.number().allow(null),
4753
+ pm_price_split: Joi.number().allow(null),
4754
+ price_effective: Joi.number().allow(null),
4755
+ price_marked: Joi.number().allow(null),
4756
+ promotion_effective_discount: Joi.number().allow(null),
4757
+ refund_amount: Joi.number().allow(null),
4758
+ refund_credit: Joi.number().allow(null),
4759
+ tax_collected_at_source: Joi.number().allow(null),
4760
+ transfer_price: Joi.number().allow(null),
4761
+ value_of_good: Joi.number().allow(null),
4738
4762
  });
4739
4763
  }
4740
4764
 
@@ -4885,18 +4909,18 @@ class OrderPlatformModel {
4885
4909
  /** @returns {ReturnConfig} */
4886
4910
  static ReturnConfig() {
4887
4911
  return Joi.object({
4888
- returnable: Joi.boolean(),
4889
- time: Joi.number(),
4890
- unit: Joi.string().allow(""),
4912
+ returnable: Joi.boolean().allow(null),
4913
+ time: Joi.number().allow(null),
4914
+ unit: Joi.string().allow("").allow(null),
4891
4915
  });
4892
4916
  }
4893
4917
 
4894
4918
  /** @returns {ReturnConfig1} */
4895
4919
  static ReturnConfig1() {
4896
4920
  return Joi.object({
4897
- returnable: Joi.boolean(),
4898
- time: Joi.number(),
4899
- unit: Joi.string().allow(""),
4921
+ returnable: Joi.boolean().allow(null),
4922
+ time: Joi.number().allow(null),
4923
+ unit: Joi.string().allow("").allow(null),
4900
4924
  });
4901
4925
  }
4902
4926
 
@@ -4984,7 +5008,7 @@ class OrderPlatformModel {
4984
5008
  /** @returns {ShipmentDetails} */
4985
5009
  static ShipmentDetails() {
4986
5010
  return Joi.object({
4987
- action_to_status: Joi.any(),
5011
+ action_to_status: Joi.any().allow(null),
4988
5012
  affiliate_shipment_id: Joi.string().allow("").required(),
4989
5013
  articles: Joi.array()
4990
5014
  .items(OrderPlatformModel.ArticleDetails())
@@ -4992,8 +5016,8 @@ class OrderPlatformModel {
4992
5016
  box_type: Joi.string().allow("").allow(null),
4993
5017
  dp_id: Joi.number().allow(null),
4994
5018
  fulfillment_id: Joi.number().required(),
4995
- lock_message: Joi.string().allow(""),
4996
- lock_status: Joi.boolean(),
5019
+ lock_message: Joi.string().allow("").allow(null),
5020
+ lock_status: Joi.boolean().allow(null),
4997
5021
  meta: Joi.any(),
4998
5022
  shipments: Joi.number().required(),
4999
5023
  });
@@ -5012,7 +5036,7 @@ class OrderPlatformModel {
5012
5036
  /** @returns {ShipmentInfoResponse} */
5013
5037
  static ShipmentInfoResponse() {
5014
5038
  return Joi.object({
5015
- message: Joi.string().allow(""),
5039
+ message: Joi.string().allow("").allow(null),
5016
5040
  shipments: Joi.array().items(OrderPlatformModel.PlatformShipment()),
5017
5041
  success: Joi.boolean().required(),
5018
5042
  });
@@ -5022,11 +5046,11 @@ class OrderPlatformModel {
5022
5046
  static ShipmentInternalPlatformViewResponse() {
5023
5047
  return Joi.object({
5024
5048
  items: Joi.array().items(OrderPlatformModel.ShipmentItem()),
5025
- lane: Joi.string().allow(""),
5026
- message: Joi.string().allow(""),
5049
+ lane: Joi.string().allow("").allow(null),
5050
+ message: Joi.string().allow("").allow(null),
5027
5051
  page: OrderPlatformModel.Page(),
5028
- success: Joi.boolean(),
5029
- total_count: Joi.number(),
5052
+ success: Joi.boolean().allow(null),
5053
+ total_count: Joi.number().allow(null),
5030
5054
  });
5031
5055
  }
5032
5056
 
@@ -5034,28 +5058,29 @@ class OrderPlatformModel {
5034
5058
  static ShipmentItem() {
5035
5059
  return Joi.object({
5036
5060
  bags: Joi.array().items(OrderPlatformModel.BagUnit()),
5037
- can_process: Joi.boolean(),
5061
+ can_process: Joi.boolean().allow(null),
5038
5062
  channel: OrderPlatformModel.ShipmentListingChannel(),
5039
- customer_note: Joi.string().allow(""),
5063
+ customer_note: Joi.string().allow("").allow(null),
5040
5064
  delivery_address: OrderPlatformModel.PlatformDeliveryAddress(),
5041
- display_name: Joi.string().allow(""),
5065
+ display_name: Joi.string().allow("").allow(null),
5042
5066
  estimated_sla_time: Joi.string().allow("").allow(null),
5043
5067
  fulfilling_store: OrderPlatformModel.ShipmentItemFulFillingStore(),
5044
5068
  invoice_id: Joi.string().allow("").allow(null),
5045
- lock_status: Joi.boolean(),
5069
+ lock_status: Joi.boolean().allow(null),
5046
5070
  meta: OrderPlatformModel.ShipmentItemMeta(),
5047
- order_date: Joi.string().allow(""),
5071
+ mode_of_payment: Joi.string().allow(""),
5072
+ order_date: Joi.string().allow("").allow(null),
5048
5073
  order_id: Joi.string().allow("").required(),
5049
- ordering_channnel: Joi.string().allow(""),
5050
- payment_methods: Joi.any(),
5051
- payment_mode: Joi.string().allow(""),
5074
+ ordering_channnel: Joi.string().allow("").allow(null),
5075
+ payment_methods: Joi.any().allow(null),
5076
+ payment_mode: Joi.string().allow("").allow(null),
5052
5077
  previous_shipment_id: Joi.string().allow("").allow(null),
5053
5078
  prices: OrderPlatformModel.Prices(),
5054
5079
  shipment_created_at: Joi.string().allow("").required(),
5055
- shipment_id: Joi.string().allow(""),
5080
+ shipment_id: Joi.string().allow("").allow(null),
5056
5081
  shipment_status: OrderPlatformModel.ShipmentStatus(),
5057
5082
  status_created_at: Joi.string().allow(""),
5058
- total_bags: Joi.number().required(),
5083
+ total_bags: Joi.number().allow(null).required(),
5059
5084
  user: OrderPlatformModel.UserDataInfo(),
5060
5085
  });
5061
5086
  }
@@ -5065,114 +5090,115 @@ class OrderPlatformModel {
5065
5090
  return Joi.object({
5066
5091
  address: Joi.string().allow("").allow(null),
5067
5092
  brand_store_tags: Joi.string().allow("").allow(null),
5068
- city: Joi.string().allow(""),
5093
+ city: Joi.string().allow("").allow(null),
5069
5094
  code: Joi.string().allow("").required(),
5070
5095
  id: Joi.number().required(),
5071
- location_type: Joi.string().allow(""),
5096
+ location_type: Joi.string().allow("").allow(null),
5072
5097
  meta: Joi.any().allow(null),
5073
- name: Joi.string().allow(""),
5074
- phone: Joi.string().allow(""),
5075
- pincode: Joi.string().allow(""),
5076
- state: Joi.string().allow(""),
5077
- store_email: Joi.string().allow(""),
5098
+ name: Joi.string().allow("").allow(null),
5099
+ phone: Joi.string().allow("").allow(null),
5100
+ pincode: Joi.string().allow("").allow(null),
5101
+ state: Joi.string().allow("").allow(null),
5102
+ store_email: Joi.string().allow("").allow(null),
5078
5103
  });
5079
5104
  }
5080
5105
 
5081
5106
  /** @returns {ShipmentItemMeta} */
5082
5107
  static ShipmentItemMeta() {
5083
5108
  return Joi.object({
5084
- activity_comment: Joi.string().allow(""),
5085
- assign_dp_from_sb: Joi.boolean(),
5109
+ activity_comment: Joi.string().allow("").allow(null),
5110
+ assign_dp_from_sb: Joi.boolean().allow(null),
5086
5111
  auto_trigger_dp_assignment_acf: Joi.boolean().required(),
5087
- bag_weight: Joi.any(),
5088
- debug_info: Joi.any(),
5089
- dp_options: Joi.any(),
5112
+ bag_weight: Joi.any().allow(null),
5113
+ debug_info: Joi.any().allow(null),
5114
+ dp_options: Joi.any().allow(null),
5090
5115
  dp_sort_key: Joi.string().allow("").allow(null),
5091
- ewaybill_info: Joi.any(),
5116
+ ewaybill_info: Joi.any().allow(null),
5092
5117
  existing_dp_list: Joi.array().items(Joi.string().allow("")),
5093
- external: Joi.any(),
5118
+ external: Joi.any().allow(null),
5094
5119
  formatted: OrderPlatformModel.Formatted(),
5095
5120
  fulfilment_priority_text: Joi.string().allow("").allow(null),
5096
- is_international: Joi.boolean(),
5121
+ is_international: Joi.boolean().allow(null),
5097
5122
  lock_data: OrderPlatformModel.LockData(),
5098
5123
  order_type: Joi.string().allow("").allow(null),
5099
- packaging_name: Joi.string().allow(""),
5100
- parent_dp_id: Joi.string().allow(""),
5124
+ packaging_name: Joi.string().allow("").allow(null),
5125
+ parent_dp_id: Joi.string().allow("").allow(null),
5101
5126
  pdf_media: Joi.array().items(Joi.any()),
5102
- same_store_available: Joi.boolean(),
5103
- shipment_chargeable_weight: Joi.number(),
5127
+ same_store_available: Joi.boolean().allow(null),
5128
+ shipment_chargeable_weight: Joi.number().allow(null),
5104
5129
  shipment_tags: Joi.array().items(OrderPlatformModel.ShipmentTags()),
5105
- shipment_volumetric_weight: Joi.number(),
5106
- shipment_weight: Joi.number(),
5107
- shipping_zone: Joi.string().allow(""),
5108
- sla: Joi.number(),
5109
- store_invoice_updated_date: Joi.string().allow(""),
5130
+ shipment_volumetric_weight: Joi.number().allow(null),
5131
+ shipment_weight: Joi.number().allow(null),
5132
+ shipping_zone: Joi.string().allow("").allow(null),
5133
+ sla: Joi.number().allow(null),
5134
+ store_invoice_updated_date: Joi.string().allow("").allow(null),
5110
5135
  tags: Joi.array().items(Joi.any()),
5111
5136
  timestamp: OrderPlatformModel.ShipmentTimeStamp(),
5112
- weight: Joi.number(),
5137
+ weight: Joi.number().allow(null),
5113
5138
  });
5114
5139
  }
5115
5140
 
5116
5141
  /** @returns {ShipmentListingBrand} */
5117
5142
  static ShipmentListingBrand() {
5118
5143
  return Joi.object({
5119
- created_on: Joi.string().allow(""),
5120
- logo: Joi.string().allow(""),
5121
- logo_base64: Joi.string().allow(""),
5122
- name: Joi.string().allow(""),
5144
+ created_on: Joi.string().allow("").allow(null),
5145
+ logo: Joi.string().allow("").allow(null),
5146
+ logo_base64: Joi.string().allow("").allow(null),
5147
+ name: Joi.string().allow("").allow(null),
5123
5148
  });
5124
5149
  }
5125
5150
 
5126
5151
  /** @returns {ShipmentListingChannel} */
5127
5152
  static ShipmentListingChannel() {
5128
5153
  return Joi.object({
5129
- channel_shipment_id: Joi.string().allow(""),
5130
- is_affiliate: Joi.boolean(),
5131
- logo: Joi.string().allow(""),
5132
- name: Joi.string().allow(""),
5154
+ channel_shipment_id: Joi.string().allow("").allow(null),
5155
+ is_affiliate: Joi.boolean().allow(null),
5156
+ logo: Joi.string().allow("").allow(null),
5157
+ name: Joi.string().allow("").allow(null),
5133
5158
  });
5134
5159
  }
5135
5160
 
5136
5161
  /** @returns {ShipmentMeta} */
5137
5162
  static ShipmentMeta() {
5138
5163
  return Joi.object({
5139
- assign_dp_from_sb: Joi.boolean(),
5140
- auto_trigger_dp_assignment_acf: Joi.boolean(),
5141
- awb_number: Joi.string().allow(""),
5164
+ assign_dp_from_sb: Joi.boolean().allow(null),
5165
+ auto_trigger_dp_assignment_acf: Joi.boolean().allow(null),
5166
+ awb_number: Joi.string().allow("").allow(null),
5142
5167
  b2b_buyer_details: OrderPlatformModel.BuyerDetails(),
5143
5168
  b2c_buyer_details: Joi.any().allow(null),
5144
- bag_weight: Joi.any(),
5169
+ bag_weight: Joi.any().allow(null),
5145
5170
  box_type: Joi.string().allow("").allow(null),
5146
5171
  debug_info: OrderPlatformModel.DebugInfo(),
5147
5172
  dimension: OrderPlatformModel.Dimensions(),
5148
5173
  dp_id: Joi.string().allow("").allow(null),
5149
- dp_name: Joi.string().allow(""),
5150
- dp_options: Joi.any(),
5151
- dp_sort_key: Joi.string().allow(""),
5152
- due_date: Joi.string().allow(""),
5174
+ dp_name: Joi.string().allow("").allow(null),
5175
+ dp_options: Joi.any().allow(null),
5176
+ dp_sort_key: Joi.string().allow("").allow(null),
5177
+ due_date: Joi.string().allow("").allow(null),
5153
5178
  einvoice_info: OrderPlatformModel.EinvoiceInfo(),
5154
5179
  ewaybill_info: Joi.any().allow(null),
5155
- external: Joi.any(),
5180
+ external: Joi.any().allow(null),
5156
5181
  formatted: OrderPlatformModel.Formatted(),
5157
- forward_affiliate_order_id: Joi.string().allow(""),
5158
- forward_affiliate_shipment_id: Joi.string().allow(""),
5182
+ forward_affiliate_order_id: Joi.string().allow("").allow(null),
5183
+ forward_affiliate_shipment_id: Joi.string().allow("").allow(null),
5159
5184
  fulfilment_priority_text: Joi.string().allow("").allow(null),
5160
5185
  lock_data: OrderPlatformModel.LockData(),
5161
- marketplace_store_id: Joi.string().allow(""),
5186
+ marketplace_store_id: Joi.string().allow("").allow(null),
5162
5187
  order_type: Joi.string().allow("").allow(null),
5163
- packaging_name: Joi.string().allow(""),
5188
+ packaging_name: Joi.string().allow("").allow(null),
5164
5189
  parent_dp_id: Joi.string().allow("").allow(null),
5165
- po_number: Joi.string().allow(""),
5166
- return_affiliate_order_id: Joi.string().allow(""),
5167
- return_affiliate_shipment_id: Joi.string().allow(""),
5168
- return_awb_number: Joi.string().allow(""),
5169
- return_details: Joi.any(),
5170
- return_store_node: Joi.number(),
5190
+ po_number: Joi.string().allow("").allow(null),
5191
+ refund_to: Joi.string().allow("").allow(null),
5192
+ return_affiliate_order_id: Joi.string().allow("").allow(null),
5193
+ return_affiliate_shipment_id: Joi.string().allow("").allow(null),
5194
+ return_awb_number: Joi.string().allow("").allow(null),
5195
+ return_details: Joi.any().allow(null),
5196
+ return_store_node: Joi.number().allow(null),
5171
5197
  same_store_available: Joi.boolean().required(),
5172
5198
  shipment_tags: Joi.array().items(OrderPlatformModel.ShipmentTags()),
5173
- shipment_volumetric_weight: Joi.number(),
5174
- shipment_weight: Joi.number(),
5175
- store_invoice_updated_date: Joi.string().allow(""),
5199
+ shipment_volumetric_weight: Joi.number().allow(null),
5200
+ shipment_weight: Joi.number().allow(null),
5201
+ store_invoice_updated_date: Joi.string().allow("").allow(null),
5176
5202
  timestamp: OrderPlatformModel.ShipmentTimeStamp(),
5177
5203
  weight: Joi.number().required(),
5178
5204
  });
@@ -5181,9 +5207,9 @@ class OrderPlatformModel {
5181
5207
  /** @returns {ShipmentPayments} */
5182
5208
  static ShipmentPayments() {
5183
5209
  return Joi.object({
5184
- logo: Joi.string().allow(""),
5185
- mode: Joi.string().allow(""),
5186
- source: Joi.string().allow(""),
5210
+ logo: Joi.string().allow("").allow(null),
5211
+ mode: Joi.string().allow("").allow(null),
5212
+ source: Joi.string().allow("").allow(null),
5187
5213
  });
5188
5214
  }
5189
5215
 
@@ -5219,14 +5245,14 @@ class OrderPlatformModel {
5219
5245
  /** @returns {ShipmentsResponse} */
5220
5246
  static ShipmentsResponse() {
5221
5247
  return Joi.object({
5222
- code: Joi.string().allow(""),
5223
- exception: Joi.string().allow(""),
5224
- final_state: Joi.any(),
5225
- identifier: Joi.string().allow(""),
5226
- message: Joi.string().allow(""),
5227
- meta: Joi.any(),
5228
- stack_trace: Joi.string().allow(""),
5229
- status: Joi.number(),
5248
+ code: Joi.string().allow("").allow(null),
5249
+ exception: Joi.string().allow("").allow(null),
5250
+ final_state: Joi.any().allow(null),
5251
+ identifier: Joi.string().allow("").allow(null),
5252
+ message: Joi.string().allow("").allow(null),
5253
+ meta: Joi.any().allow(null),
5254
+ stack_trace: Joi.string().allow("").allow(null),
5255
+ status: Joi.number().allow(null),
5230
5256
  });
5231
5257
  }
5232
5258
 
@@ -5234,13 +5260,13 @@ class OrderPlatformModel {
5234
5260
  static ShipmentStatus() {
5235
5261
  return Joi.object({
5236
5262
  bag_list: Joi.array().items(Joi.string().allow("")),
5237
- created_at: Joi.string().allow(""),
5238
- current_shipment_status: Joi.string().allow(""),
5263
+ created_at: Joi.string().allow("").allow(null),
5264
+ current_shipment_status: Joi.string().allow("").allow(null),
5239
5265
  meta: Joi.any().allow(null),
5240
- shipment_id: Joi.string().allow(""),
5241
- shipment_status_id: Joi.number(),
5266
+ shipment_id: Joi.string().allow("").allow(null),
5267
+ shipment_status_id: Joi.number().allow(null),
5242
5268
  status: Joi.string().allow("").required(),
5243
- status_created_at: Joi.string().allow(""),
5269
+ status_created_at: Joi.string().allow("").allow(null),
5244
5270
  title: Joi.string().allow("").required(),
5245
5271
  });
5246
5272
  }
@@ -5250,28 +5276,28 @@ class OrderPlatformModel {
5250
5276
  return Joi.object({
5251
5277
  bag_list: Joi.array().items(Joi.string().allow("")),
5252
5278
  created_at: Joi.string().allow("").allow(null),
5253
- display_name: Joi.string().allow(""),
5254
- id: Joi.number(),
5255
- meta: Joi.any(),
5256
- shipment_id: Joi.string().allow(""),
5257
- status: Joi.string().allow(""),
5279
+ display_name: Joi.string().allow("").allow(null),
5280
+ id: Joi.number().allow(null),
5281
+ meta: Joi.any().allow(null),
5282
+ shipment_id: Joi.string().allow("").allow(null),
5283
+ status: Joi.string().allow("").allow(null),
5258
5284
  });
5259
5285
  }
5260
5286
 
5261
5287
  /** @returns {ShipmentTags} */
5262
5288
  static ShipmentTags() {
5263
5289
  return Joi.object({
5264
- display_text: Joi.string().allow(""),
5265
- entity_type: Joi.string().allow(""),
5266
- slug: Joi.string().allow(""),
5290
+ display_text: Joi.string().allow("").allow(null),
5291
+ entity_type: Joi.string().allow("").allow(null),
5292
+ slug: Joi.string().allow("").allow(null),
5267
5293
  });
5268
5294
  }
5269
5295
 
5270
5296
  /** @returns {ShipmentTimeStamp} */
5271
5297
  static ShipmentTimeStamp() {
5272
5298
  return Joi.object({
5273
- max: Joi.number(),
5274
- min: Joi.number(),
5299
+ max: Joi.number().allow(null),
5300
+ min: Joi.number().allow(null),
5275
5301
  });
5276
5302
  }
5277
5303
 
@@ -5343,20 +5369,20 @@ class OrderPlatformModel {
5343
5369
  static Store() {
5344
5370
  return Joi.object({
5345
5371
  address1: Joi.string().allow("").required(),
5346
- address2: Joi.string().allow(""),
5347
- alohomora_user_id: Joi.number(),
5372
+ address2: Joi.string().allow("").allow(null),
5373
+ alohomora_user_id: Joi.number().allow(null),
5348
5374
  brand_id: Joi.any(),
5349
5375
  brand_store_tags: Joi.array().items(Joi.string().allow("")),
5350
5376
  city: Joi.string().allow("").required(),
5351
- code: Joi.string().allow(""),
5377
+ code: Joi.string().allow("").allow(null),
5352
5378
  company_id: Joi.number().required(),
5353
5379
  contact_person: Joi.string().allow("").required(),
5354
5380
  country: Joi.string().allow("").required(),
5355
5381
  created_at: Joi.string().allow("").required(),
5356
5382
  fulfillment_channel: Joi.string().allow("").required(),
5357
- is_active: Joi.boolean(),
5358
- is_archived: Joi.boolean(),
5359
- is_enabled_for_recon: Joi.boolean(),
5383
+ is_active: Joi.boolean().allow(null),
5384
+ is_archived: Joi.boolean().allow(null),
5385
+ is_enabled_for_recon: Joi.boolean().allow(null),
5360
5386
  latitude: Joi.number().required(),
5361
5387
  location_type: Joi.string().allow("").required(),
5362
5388
  login_username: Joi.string().allow("").required(),
@@ -5365,9 +5391,9 @@ class OrderPlatformModel {
5365
5391
  mall_name: Joi.string().allow("").allow(null),
5366
5392
  meta: OrderPlatformModel.StoreMeta().required(),
5367
5393
  name: Joi.string().allow("").required(),
5368
- order_integration_id: Joi.string().allow(""),
5369
- packaging_material_count: Joi.number(),
5370
- parent_store_id: Joi.number(),
5394
+ order_integration_id: Joi.string().allow("").allow(null),
5395
+ packaging_material_count: Joi.number().allow(null),
5396
+ parent_store_id: Joi.number().allow(null),
5371
5397
  phone: Joi.number().required(),
5372
5398
  pincode: Joi.string().allow("").required(),
5373
5399
  s_id: Joi.string().allow("").required(),
@@ -5387,13 +5413,13 @@ class OrderPlatformModel {
5387
5413
  address_type: Joi.string().allow("").required(),
5388
5414
  address1: Joi.string().allow("").required(),
5389
5415
  address2: Joi.string().allow(""),
5390
- area: Joi.string().allow(""),
5416
+ area: Joi.string().allow("").allow(null),
5391
5417
  city: Joi.string().allow("").required(),
5392
5418
  contact_person: Joi.string().allow("").required(),
5393
5419
  country: Joi.string().allow("").required(),
5394
5420
  country_code: Joi.string().allow("").required(),
5395
5421
  created_at: Joi.string().allow("").required(),
5396
- email: Joi.string().allow(""),
5422
+ email: Joi.string().allow("").allow(null),
5397
5423
  landmark: Joi.string().allow(""),
5398
5424
  latitude: Joi.number().required(),
5399
5425
  longitude: Joi.number().required(),
@@ -5401,7 +5427,7 @@ class OrderPlatformModel {
5401
5427
  pincode: Joi.number().required(),
5402
5428
  state: Joi.string().allow("").required(),
5403
5429
  updated_at: Joi.string().allow("").required(),
5404
- version: Joi.string().allow(""),
5430
+ version: Joi.string().allow("").allow(null),
5405
5431
  });
5406
5432
  }
5407
5433
 
@@ -5416,16 +5442,16 @@ class OrderPlatformModel {
5416
5442
  static StoreEinvoice() {
5417
5443
  return Joi.object({
5418
5444
  enabled: Joi.boolean().required(),
5419
- password: Joi.string().allow(""),
5420
- user: Joi.string().allow(""),
5421
- username: Joi.string().allow(""),
5445
+ password: Joi.string().allow("").allow(null),
5446
+ user: Joi.string().allow("").allow(null),
5447
+ username: Joi.string().allow("").allow(null),
5422
5448
  });
5423
5449
  }
5424
5450
 
5425
5451
  /** @returns {StoreEwaybill} */
5426
5452
  static StoreEwaybill() {
5427
5453
  return Joi.object({
5428
- enabled: Joi.boolean(),
5454
+ enabled: Joi.boolean().allow(null),
5429
5455
  });
5430
5456
  }
5431
5457
 
@@ -5440,15 +5466,15 @@ class OrderPlatformModel {
5440
5466
  /** @returns {StoreMeta} */
5441
5467
  static StoreMeta() {
5442
5468
  return Joi.object({
5443
- additional_contact_details: Joi.any(),
5469
+ additional_contact_details: Joi.any().allow(null),
5444
5470
  display_name: Joi.string().allow("").required(),
5445
5471
  documents: OrderPlatformModel.StoreDocuments(),
5446
5472
  einvoice_portal_details: OrderPlatformModel.EInvoicePortalDetails(),
5447
- ewaybill_portal_details: Joi.any(),
5473
+ ewaybill_portal_details: Joi.any().allow(null),
5448
5474
  gst_credentials: OrderPlatformModel.StoreGstCredentials().required(),
5449
- gst_number: Joi.string().allow(""),
5475
+ gst_number: Joi.string().allow("").allow(null),
5450
5476
  notification_emails: Joi.array().items(Joi.string().allow("")),
5451
- product_return_config: Joi.any(),
5477
+ product_return_config: Joi.any().allow(null),
5452
5478
  stage: Joi.string().allow("").required(),
5453
5479
  timing: Joi.array().items(Joi.any()),
5454
5480
  });
@@ -5537,25 +5563,25 @@ class OrderPlatformModel {
5537
5563
  /** @returns {TrackingList} */
5538
5564
  static TrackingList() {
5539
5565
  return Joi.object({
5540
- is_current: Joi.boolean(),
5541
- is_passed: Joi.boolean(),
5566
+ is_current: Joi.boolean().allow(null),
5567
+ is_passed: Joi.boolean().allow(null),
5542
5568
  status: Joi.string().allow("").required(),
5543
5569
  text: Joi.string().allow("").required(),
5544
- time: Joi.string().allow(""),
5570
+ time: Joi.string().allow("").allow(null),
5545
5571
  });
5546
5572
  }
5547
5573
 
5548
5574
  /** @returns {TransactionData} */
5549
5575
  static TransactionData() {
5550
5576
  return Joi.object({
5551
- amount_paid: Joi.number(),
5552
- currency: Joi.string().allow(""),
5553
- entity: Joi.string().allow(""),
5554
- payment_id: Joi.string().allow(""),
5555
- status: Joi.string().allow(""),
5556
- terminal_id: Joi.string().allow(""),
5557
- transaction_id: Joi.string().allow(""),
5558
- unique_reference_number: Joi.string().allow(""),
5577
+ amount_paid: Joi.number().allow(null),
5578
+ currency: Joi.string().allow("").allow(null),
5579
+ entity: Joi.string().allow("").allow(null),
5580
+ payment_id: Joi.string().allow("").allow(null),
5581
+ status: Joi.string().allow("").allow(null),
5582
+ terminal_id: Joi.string().allow("").allow(null),
5583
+ transaction_id: Joi.string().allow("").allow(null),
5584
+ unique_reference_number: Joi.string().allow("").allow(null),
5559
5585
  });
5560
5586
  }
5561
5587
 
@@ -5638,15 +5664,15 @@ class OrderPlatformModel {
5638
5664
  /** @returns {UserDataInfo} */
5639
5665
  static UserDataInfo() {
5640
5666
  return Joi.object({
5641
- avis_user_id: Joi.string().allow(""),
5667
+ avis_user_id: Joi.string().allow("").allow(null),
5642
5668
  email: Joi.string().allow("").allow(null),
5643
- first_name: Joi.string().allow(""),
5669
+ first_name: Joi.string().allow("").allow(null),
5644
5670
  gender: Joi.string().allow("").allow(null),
5645
- is_anonymous_user: Joi.boolean(),
5646
- last_name: Joi.string().allow(""),
5671
+ is_anonymous_user: Joi.boolean().allow(null),
5672
+ last_name: Joi.string().allow("").allow(null),
5647
5673
  mobile: Joi.string().allow("").allow(null),
5648
- name: Joi.string().allow(""),
5649
- uid: Joi.number(),
5674
+ name: Joi.string().allow("").allow(null),
5675
+ uid: Joi.number().allow(null),
5650
5676
  });
5651
5677
  }
5652
5678
 
@@ -5654,13 +5680,13 @@ class OrderPlatformModel {
5654
5680
  static UserDetailsData() {
5655
5681
  return Joi.object({
5656
5682
  address: Joi.string().allow("").required(),
5657
- address_type: Joi.string().allow(""),
5658
- address1: Joi.string().allow(""),
5659
- area: Joi.string().allow(""),
5683
+ address_type: Joi.string().allow("").allow(null),
5684
+ address1: Joi.string().allow("").allow(null),
5685
+ area: Joi.string().allow("").allow(null),
5660
5686
  city: Joi.string().allow("").required(),
5661
5687
  country: Joi.string().allow("").required(),
5662
- email: Joi.string().allow(""),
5663
- landmark: Joi.string().allow(""),
5688
+ email: Joi.string().allow("").allow(null),
5689
+ landmark: Joi.string().allow("").allow(null),
5664
5690
  name: Joi.string().allow("").required(),
5665
5691
  phone: Joi.string().allow("").required(),
5666
5692
  pincode: Joi.string().allow("").required(),
@@ -5708,9 +5734,9 @@ class OrderPlatformModel {
5708
5734
  /** @returns {Weight} */
5709
5735
  static Weight() {
5710
5736
  return Joi.object({
5711
- is_default: Joi.boolean(),
5712
- shipping: Joi.number(),
5713
- unit: Joi.string().allow(""),
5737
+ is_default: Joi.boolean().allow(null),
5738
+ shipping: Joi.number().allow(null),
5739
+ unit: Joi.string().allow("").allow(null),
5714
5740
  });
5715
5741
  }
5716
5742
  }