@gofynd/fdk-client-javascript 1.3.3-beta.2 → 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.
@@ -1295,6 +1295,7 @@ const Joi = require("joi");
1295
1295
  * @property {string} [group_id]
1296
1296
  * @property {BagGST} [gst_details]
1297
1297
  * @property {string} [identifier]
1298
+ * @property {boolean} [is_parent]
1298
1299
  * @property {PlatformItem} [item]
1299
1300
  * @property {number} [line_number]
1300
1301
  * @property {BagMeta} [meta]
@@ -1415,6 +1416,7 @@ const Joi = require("joi");
1415
1416
  * @typedef OrderMeta
1416
1417
  * @property {BillingStaffDetails} [billing_staff_details]
1417
1418
  * @property {number} [cart_id]
1419
+ * @property {string} [cart_object_id]
1418
1420
  * @property {string} [comment]
1419
1421
  * @property {string} [company_logo]
1420
1422
  * @property {string} [currency_symbol]
@@ -1663,9 +1665,11 @@ const Joi = require("joi");
1663
1665
  * @property {InvoiceInfo} [invoice]
1664
1666
  * @property {string} [invoice_id]
1665
1667
  * @property {boolean} [is_dp_assign_enabled]
1668
+ * @property {boolean} [is_self_ship]
1666
1669
  * @property {string} [journey_type]
1667
1670
  * @property {boolean} [lock_status]
1668
1671
  * @property {ShipmentMeta} [meta]
1672
+ * @property {string} [mode_of_payment]
1669
1673
  * @property {string} [operational_status]
1670
1674
  * @property {OrderDetailsData} [order]
1671
1675
  * @property {OrderingStoreDetails} [ordering_store]
@@ -2032,6 +2036,7 @@ const Joi = require("joi");
2032
2036
  * @property {string} [invoice_id]
2033
2037
  * @property {boolean} [lock_status]
2034
2038
  * @property {ShipmentItemMeta} [meta]
2039
+ * @property {string} [mode_of_payment]
2035
2040
  * @property {string} [order_date]
2036
2041
  * @property {string} order_id
2037
2042
  * @property {string} [ordering_channnel]
@@ -2141,6 +2146,7 @@ const Joi = require("joi");
2141
2146
  * @property {string} [packaging_name]
2142
2147
  * @property {string} [parent_dp_id]
2143
2148
  * @property {string} [po_number]
2149
+ * @property {string} [refund_to]
2144
2150
  * @property {string} [return_affiliate_order_id]
2145
2151
  * @property {string} [return_affiliate_shipment_id]
2146
2152
  * @property {string} [return_awb_number]
@@ -2616,9 +2622,9 @@ class OrderPlatformModel {
2616
2622
  static AdvanceFilterInfo() {
2617
2623
  return Joi.object({
2618
2624
  action_centre: Joi.array().items(OrderPlatformModel.FiltersInfo()),
2619
- applied_filters: Joi.any(),
2625
+ applied_filters: Joi.any().allow(null),
2620
2626
  filters: Joi.array().items(OrderPlatformModel.FiltersInfo()),
2621
- page: Joi.any(),
2627
+ page: Joi.any().allow(null),
2622
2628
  processed: Joi.array().items(OrderPlatformModel.FiltersInfo()),
2623
2629
  returned: Joi.array().items(OrderPlatformModel.FiltersInfo()),
2624
2630
  unfulfilled: Joi.array().items(OrderPlatformModel.FiltersInfo()),
@@ -2692,15 +2698,15 @@ class OrderPlatformModel {
2692
2698
  affiliate_bag_id: Joi.string().allow("").required(),
2693
2699
  affiliate_meta: OrderPlatformModel.AffiliateMeta().required(),
2694
2700
  affiliate_order_id: Joi.string().allow("").required(),
2695
- employee_discount: Joi.number(),
2696
- loyalty_discount: Joi.number(),
2701
+ employee_discount: Joi.number().allow(null),
2702
+ loyalty_discount: Joi.number().allow(null),
2697
2703
  });
2698
2704
  }
2699
2705
 
2700
2706
  /** @returns {AffiliateBagsDetails} */
2701
2707
  static AffiliateBagsDetails() {
2702
2708
  return Joi.object({
2703
- affiliate_bag_id: Joi.string().allow(""),
2709
+ affiliate_bag_id: Joi.string().allow("").allow(null),
2704
2710
  coupon_code: Joi.string().allow("").allow(null),
2705
2711
  });
2706
2712
  }
@@ -2717,14 +2723,14 @@ class OrderPlatformModel {
2717
2723
  /** @returns {AffiliateDetails} */
2718
2724
  static AffiliateDetails() {
2719
2725
  return Joi.object({
2720
- ad_id: Joi.string().allow(""),
2726
+ ad_id: Joi.string().allow("").allow(null),
2721
2727
  affiliate_bag_id: Joi.string().allow("").required(),
2722
- affiliate_id: Joi.string().allow(""),
2728
+ affiliate_id: Joi.string().allow("").allow(null),
2723
2729
  affiliate_meta: OrderPlatformModel.AffiliateMeta().required(),
2724
2730
  affiliate_order_id: Joi.string().allow("").required(),
2725
2731
  affiliate_shipment_id: Joi.string().allow("").required(),
2726
2732
  affiliate_store_id: Joi.string().allow("").required(),
2727
- company_affiliate_tag: Joi.string().allow(""),
2733
+ company_affiliate_tag: Joi.string().allow("").allow(null),
2728
2734
  config: OrderPlatformModel.AffiliateConfig(),
2729
2735
  pdf_links: OrderPlatformModel.PDFLinks(),
2730
2736
  shipment_meta: OrderPlatformModel.ShipmentMeta().required(),
@@ -2786,12 +2792,12 @@ class OrderPlatformModel {
2786
2792
  channel_shipment_id: Joi.string().allow("").allow(null),
2787
2793
  coupon_code: Joi.string().allow("").allow(null),
2788
2794
  due_date: Joi.string().allow("").allow(null),
2789
- employee_discount: Joi.number(),
2790
- is_priority: Joi.boolean(),
2791
- 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),
2792
2798
  marketplace_invoice_id: Joi.string().allow("").allow(null),
2793
- order_item_id: Joi.string().allow(""),
2794
- quantity: Joi.number(),
2799
+ order_item_id: Joi.string().allow("").allow(null),
2800
+ quantity: Joi.number().allow(null),
2795
2801
  replacement_details: OrderPlatformModel.ReplacementDetails(),
2796
2802
  size_level_total_qty: Joi.number().allow(null),
2797
2803
  });
@@ -2835,14 +2841,14 @@ class OrderPlatformModel {
2835
2841
  /** @returns {AppliedPromos} */
2836
2842
  static AppliedPromos() {
2837
2843
  return Joi.object({
2838
- amount: Joi.number(),
2839
- article_quantity: Joi.number(),
2844
+ amount: Joi.number().allow(null),
2845
+ article_quantity: Joi.number().allow(null),
2840
2846
  buy_rules: Joi.array().items(OrderPlatformModel.BuyRules()),
2841
2847
  discount_rules: Joi.array().items(OrderPlatformModel.DiscountRules()),
2842
- mrp_promotion: Joi.boolean(),
2843
- promo_id: Joi.string().allow(""),
2844
- promotion_name: Joi.string().allow(""),
2845
- 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),
2846
2852
  });
2847
2853
  }
2848
2854
 
@@ -2852,12 +2858,12 @@ class OrderPlatformModel {
2852
2858
  _id: Joi.string().allow("").required(),
2853
2859
  a_set: Joi.any().allow(null),
2854
2860
  child_details: Joi.any().allow(null),
2855
- code: Joi.string().allow(""),
2861
+ code: Joi.string().allow("").allow(null),
2856
2862
  currency: Joi.any().allow(null),
2857
2863
  dimensions: OrderPlatformModel.Dimensions(),
2858
2864
  esp_modified: Joi.boolean().allow(null),
2859
2865
  identifiers: Joi.any().required(),
2860
- is_set: Joi.boolean(),
2866
+ is_set: Joi.boolean().allow(null),
2861
2867
  raw_meta: Joi.string().allow("").allow(null),
2862
2868
  return_config: OrderPlatformModel.ReturnConfig(),
2863
2869
  seller_identifier: Joi.string().allow("").required(),
@@ -2876,7 +2882,7 @@ class OrderPlatformModel {
2876
2882
  category: Joi.any().required(),
2877
2883
  dimension: Joi.any().required(),
2878
2884
  quantity: Joi.number().required(),
2879
- status: Joi.any(),
2885
+ status: Joi.any().allow(null),
2880
2886
  weight: Joi.any().required(),
2881
2887
  });
2882
2888
  }
@@ -2918,27 +2924,27 @@ class OrderPlatformModel {
2918
2924
  /** @returns {Attributes} */
2919
2925
  static Attributes() {
2920
2926
  return Joi.object({
2921
- brand_name: Joi.string().allow(""),
2922
- essential: Joi.string().allow(""),
2927
+ brand_name: Joi.string().allow("").allow(null),
2928
+ essential: Joi.string().allow("").allow(null),
2923
2929
  gender: Joi.array().items(Joi.string().allow("")),
2924
- marketer_address: Joi.string().allow(""),
2925
- marketer_name: Joi.string().allow(""),
2926
- name: Joi.string().allow(""),
2927
- primary_color: Joi.string().allow(""),
2928
- primary_color_hex: Joi.string().allow(""),
2929
- 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),
2930
2936
  });
2931
2937
  }
2932
2938
 
2933
2939
  /** @returns {B2BPODetails} */
2934
2940
  static B2BPODetails() {
2935
2941
  return Joi.object({
2936
- docker_number: Joi.string().allow(""),
2937
- item_base_price: Joi.number(),
2938
- partial_can_ret: Joi.boolean(),
2939
- po_line_amount: Joi.number(),
2940
- po_tax_amount: Joi.number(),
2941
- 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),
2942
2948
  });
2943
2949
  }
2944
2950
 
@@ -2964,62 +2970,62 @@ class OrderPlatformModel {
2964
2970
  article_details: OrderPlatformModel.ArticleDetails(),
2965
2971
  bag_status: Joi.array().items(OrderPlatformModel.BagStatusHistory()),
2966
2972
  bag_status_history: OrderPlatformModel.BagStatusHistory(),
2967
- bag_update_time: Joi.number(),
2973
+ bag_update_time: Joi.number().allow(null),
2968
2974
  brand: OrderPlatformModel.Brand(),
2969
2975
  current_operational_status: OrderPlatformModel.BagStatusHistory(),
2970
2976
  current_status: OrderPlatformModel.BagStatusHistory(),
2971
2977
  dates: OrderPlatformModel.Dates(),
2972
- display_name: Joi.string().allow(""),
2973
- entity_type: Joi.string().allow(""),
2978
+ display_name: Joi.string().allow("").allow(null),
2979
+ entity_type: Joi.string().allow("").allow(null),
2974
2980
  financial_breakup: Joi.array().items(
2975
2981
  OrderPlatformModel.FinancialBreakup()
2976
2982
  ),
2977
2983
  gst_details: OrderPlatformModel.BagGSTDetails(),
2978
- id: Joi.number(),
2979
- identifier: Joi.string().allow(""),
2984
+ id: Joi.number().allow(null),
2985
+ identifier: Joi.string().allow("").allow(null),
2980
2986
  item: OrderPlatformModel.Item(),
2981
- journey_type: Joi.string().allow(""),
2982
- line_number: Joi.number(),
2987
+ journey_type: Joi.string().allow("").allow(null),
2988
+ line_number: Joi.number().allow(null),
2983
2989
  meta: OrderPlatformModel.BagMeta(),
2984
- no_of_bags_order: Joi.number(),
2985
- operational_status: Joi.string().allow(""),
2990
+ no_of_bags_order: Joi.number().allow(null),
2991
+ operational_status: Joi.string().allow("").allow(null),
2986
2992
  order_integration_id: Joi.string().allow("").allow(null),
2987
2993
  ordering_store: OrderPlatformModel.Store(),
2988
2994
  original_bag_list: Joi.array().items(Joi.number()),
2989
- parent_promo_bags: Joi.any(),
2995
+ parent_promo_bags: Joi.any().allow(null),
2990
2996
  prices: OrderPlatformModel.Prices(),
2991
2997
  qc_required: Joi.any(),
2992
- quantity: Joi.number(),
2998
+ quantity: Joi.number().allow(null),
2993
2999
  reasons: Joi.array().items(Joi.any()),
2994
- restore_coupon: Joi.boolean(),
2995
- restore_promos: Joi.any(),
2996
- seller_identifier: Joi.string().allow(""),
2997
- 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),
2998
3004
  status: OrderPlatformModel.BagReturnableCancelableStatus1(),
2999
3005
  tags: Joi.array().items(Joi.string().allow("")),
3000
- type: Joi.string().allow(""),
3006
+ type: Joi.string().allow("").allow(null),
3001
3007
  });
3002
3008
  }
3003
3009
 
3004
3010
  /** @returns {BagGST} */
3005
3011
  static BagGST() {
3006
3012
  return Joi.object({
3007
- brand_calculated_amount: Joi.number(),
3008
- cgst_gst_fee: Joi.string().allow(""),
3009
- cgst_tax_percentage: Joi.number(),
3010
- gst_fee: Joi.number(),
3011
- gst_tag: Joi.string().allow(""),
3012
- gst_tax_percentage: Joi.number(),
3013
- gstin_code: Joi.string().allow(""),
3014
- hsn_code: Joi.string().allow(""),
3015
- hsn_code_id: Joi.string().allow(""),
3016
- igst_gst_fee: Joi.string().allow(""),
3017
- igst_tax_percentage: Joi.number(),
3018
- is_default_hsn_code: Joi.boolean(),
3019
- sgst_gst_fee: Joi.string().allow(""),
3020
- sgst_tax_percentage: Joi.number(),
3021
- tax_collected_at_source: Joi.number(),
3022
- 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),
3023
3029
  });
3024
3030
  }
3025
3031
 
@@ -3037,7 +3043,7 @@ class OrderPlatformModel {
3037
3043
  hsn_code_id: Joi.string().allow("").required(),
3038
3044
  igst_gst_fee: Joi.string().allow("").required(),
3039
3045
  igst_tax_percentage: Joi.number().required(),
3040
- is_default_hsn_code: Joi.boolean(),
3046
+ is_default_hsn_code: Joi.boolean().allow(null),
3041
3047
  sgst_gst_fee: Joi.string().allow("").required(),
3042
3048
  sgst_tax_percentage: Joi.number().required(),
3043
3049
  tax_collected_at_source: Joi.number().required(),
@@ -3049,21 +3055,21 @@ class OrderPlatformModel {
3049
3055
  static BagMeta() {
3050
3056
  return Joi.object({
3051
3057
  b2b_po_details: OrderPlatformModel.B2BPODetails(),
3052
- custom_json: Joi.any(),
3053
- custom_message: Joi.string().allow(""),
3054
- docket_number: Joi.string().allow(""),
3055
- 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),
3056
3062
  gift_card: OrderPlatformModel.GiftCard(),
3057
- group_id: Joi.string().allow(""),
3058
- partial_can_ret: Joi.boolean(),
3063
+ group_id: Joi.string().allow("").allow(null),
3064
+ partial_can_ret: Joi.boolean().allow(null),
3059
3065
  });
3060
3066
  }
3061
3067
 
3062
3068
  /** @returns {BagPaymentMethods} */
3063
3069
  static BagPaymentMethods() {
3064
3070
  return Joi.object({
3065
- amount: Joi.number(),
3066
- mode: Joi.string().allow(""),
3071
+ amount: Joi.number().allow(null),
3072
+ mode: Joi.string().allow("").allow(null),
3067
3073
  });
3068
3074
  }
3069
3075
 
@@ -3113,15 +3119,15 @@ class OrderPlatformModel {
3113
3119
  /** @returns {BagStateMapper} */
3114
3120
  static BagStateMapper() {
3115
3121
  return Joi.object({
3116
- app_display_name: Joi.string().allow(""),
3117
- app_facing: Joi.boolean(),
3118
- 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),
3119
3125
  display_name: Joi.string().allow("").required(),
3120
3126
  id: Joi.number().required(),
3121
- is_active: Joi.boolean(),
3127
+ is_active: Joi.boolean().allow(null),
3122
3128
  journey_type: Joi.string().allow("").required(),
3123
3129
  name: Joi.string().allow("").required(),
3124
- notify_customer: Joi.boolean(),
3130
+ notify_customer: Joi.boolean().allow(null),
3125
3131
  state_type: Joi.string().allow("").required(),
3126
3132
  });
3127
3133
  }
@@ -3137,23 +3143,23 @@ class OrderPlatformModel {
3137
3143
  /** @returns {BagStatusHistory} */
3138
3144
  static BagStatusHistory() {
3139
3145
  return Joi.object({
3140
- app_display_name: Joi.string().allow(""),
3141
- bag_id: Joi.number(),
3146
+ app_display_name: Joi.string().allow("").allow(null),
3147
+ bag_id: Joi.number().allow(null),
3142
3148
  bag_state_mapper: OrderPlatformModel.BagStateMapper(),
3143
- bsh_id: Joi.number(),
3144
- created_at: Joi.string().allow(""),
3149
+ bsh_id: Joi.number().allow(null),
3150
+ created_at: Joi.string().allow("").allow(null),
3145
3151
  delivery_awb_number: Joi.string().allow("").allow(null),
3146
3152
  delivery_partner_id: Joi.number().allow(null),
3147
- display_name: Joi.string().allow(""),
3153
+ display_name: Joi.string().allow("").allow(null),
3148
3154
  forward: Joi.boolean().allow(null),
3149
- kafka_sync: Joi.boolean(),
3155
+ kafka_sync: Joi.boolean().allow(null),
3150
3156
  reasons: Joi.array().items(Joi.any()),
3151
- shipment_id: Joi.string().allow(""),
3152
- state_id: Joi.number(),
3153
- 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),
3154
3160
  status: Joi.string().allow("").required(),
3155
- store_id: Joi.number(),
3156
- updated_at: Joi.string().allow(""),
3161
+ store_id: Joi.number().allow(null),
3162
+ updated_at: Joi.string().allow("").allow(null),
3157
3163
  });
3158
3164
  }
3159
3165
 
@@ -3165,26 +3171,26 @@ class OrderPlatformModel {
3165
3171
  bag_expiry_date: Joi.string().allow("").allow(null),
3166
3172
  bag_id: Joi.number().required(),
3167
3173
  bag_status: Joi.array().items(OrderPlatformModel.BagStatusHistory()),
3168
- bag_type: Joi.string().allow(""),
3174
+ bag_type: Joi.string().allow("").allow(null),
3169
3175
  brand: OrderPlatformModel.ShipmentListingBrand(),
3170
- can_cancel: Joi.boolean(),
3171
- can_return: Joi.boolean(),
3176
+ can_cancel: Joi.boolean().allow(null),
3177
+ can_return: Joi.boolean().allow(null),
3172
3178
  current_operational_status: OrderPlatformModel.BagStatusHistory().required(),
3173
3179
  current_status: OrderPlatformModel.BagStatusHistory().required(),
3174
3180
  dates: OrderPlatformModel.Dates(),
3175
- display_name: Joi.string().allow(""),
3176
- entity_type: Joi.string().allow(""),
3181
+ display_name: Joi.string().allow("").allow(null),
3182
+ entity_type: Joi.string().allow("").allow(null),
3177
3183
  financial_breakup: Joi.array()
3178
3184
  .items(OrderPlatformModel.FinancialBreakup())
3179
3185
  .required(),
3180
3186
  gst: OrderPlatformModel.GSTDetailsData(),
3181
3187
  item: OrderPlatformModel.PlatformItem(),
3182
- line_number: Joi.number(),
3183
- meta: Joi.any(),
3188
+ line_number: Joi.number().allow(null),
3189
+ meta: Joi.any().allow(null),
3184
3190
  prices: OrderPlatformModel.Prices(),
3185
3191
  product_quantity: Joi.number().required(),
3186
3192
  reasons: Joi.array().items(Joi.any()),
3187
- size: Joi.string().allow(""),
3193
+ size: Joi.string().allow("").allow(null),
3188
3194
  status: OrderPlatformModel.BagReturnableCancelableStatus().required(),
3189
3195
  });
3190
3196
  }
@@ -3241,13 +3247,13 @@ class OrderPlatformModel {
3241
3247
  brand_id: Joi.number().required(),
3242
3248
  brand_name: Joi.string().allow("").required(),
3243
3249
  company: Joi.string().allow("").required(),
3244
- created_on: Joi.number(),
3245
- credit_note_allowed: Joi.boolean(),
3250
+ created_on: Joi.number().allow(null),
3251
+ credit_note_allowed: Joi.boolean().allow(null),
3246
3252
  credit_note_expiry_days: Joi.number().allow(null),
3247
3253
  invoice_prefix: Joi.string().allow("").allow(null),
3248
3254
  is_virtual_invoice: Joi.boolean().allow(null),
3249
- logo: Joi.string().allow(""),
3250
- modified_on: Joi.number(),
3255
+ logo: Joi.string().allow("").allow(null),
3256
+ modified_on: Joi.number().allow(null),
3251
3257
  pickup_location: Joi.string().allow("").allow(null),
3252
3258
  script_last_ran: Joi.string().allow("").allow(null),
3253
3259
  start_date: Joi.string().allow("").allow(null),
@@ -3307,7 +3313,7 @@ class OrderPlatformModel {
3307
3313
  static BuyerDetails() {
3308
3314
  return Joi.object({
3309
3315
  address: Joi.string().allow("").allow(null).required(),
3310
- ajio_site_id: Joi.string().allow(""),
3316
+ ajio_site_id: Joi.string().allow("").allow(null),
3311
3317
  city: Joi.string().allow("").required(),
3312
3318
  gstin: Joi.string().allow("").required(),
3313
3319
  name: Joi.string().allow("").required(),
@@ -3319,7 +3325,7 @@ class OrderPlatformModel {
3319
3325
  /** @returns {BuyRules} */
3320
3326
  static BuyRules() {
3321
3327
  return Joi.object({
3322
- cart_conditions: Joi.any(),
3328
+ cart_conditions: Joi.any().allow(null),
3323
3329
  item_criteria: OrderPlatformModel.ItemCriterias(),
3324
3330
  });
3325
3331
  }
@@ -3361,12 +3367,12 @@ class OrderPlatformModel {
3361
3367
  /** @returns {CompanyDetails} */
3362
3368
  static CompanyDetails() {
3363
3369
  return Joi.object({
3364
- address: Joi.any(),
3370
+ address: Joi.any().allow(null),
3365
3371
  company_cin: Joi.string().allow("").allow(null),
3366
3372
  company_contact: OrderPlatformModel.ContactDetails(),
3367
- company_gst: Joi.string().allow(""),
3368
- company_id: Joi.number(),
3369
- 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),
3370
3376
  });
3371
3377
  }
3372
3378
 
@@ -3510,19 +3516,19 @@ class OrderPlatformModel {
3510
3516
  /** @returns {CurrentStatus} */
3511
3517
  static CurrentStatus() {
3512
3518
  return Joi.object({
3513
- bag_id: Joi.number(),
3519
+ bag_id: Joi.number().allow(null),
3514
3520
  bag_state_mapper: OrderPlatformModel.BagStateMapper(),
3515
3521
  created_at: Joi.string().allow("").allow(null),
3516
3522
  delivery_awb_number: Joi.string().allow("").allow(null),
3517
3523
  delivery_partner_id: Joi.number().allow(null),
3518
3524
  id: Joi.number().required(),
3519
- kafka_sync: Joi.boolean(),
3520
- shipment_id: Joi.string().allow(""),
3521
- state_id: Joi.number(),
3522
- state_type: Joi.string().allow(""),
3523
- status: Joi.string().allow(""),
3524
- store_id: Joi.number(),
3525
- updated_at: Joi.string().allow(""),
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),
3526
3532
  });
3527
3533
  }
3528
3534
 
@@ -3541,14 +3547,14 @@ class OrderPlatformModel {
3541
3547
  static Dates() {
3542
3548
  return Joi.object({
3543
3549
  delivery_date: Joi.string().allow("").allow(null),
3544
- order_created: Joi.string().allow(""),
3550
+ order_created: Joi.string().allow("").allow(null),
3545
3551
  });
3546
3552
  }
3547
3553
 
3548
3554
  /** @returns {DebugInfo} */
3549
3555
  static DebugInfo() {
3550
3556
  return Joi.object({
3551
- stormbreaker_uuid: Joi.string().allow(""),
3557
+ stormbreaker_uuid: Joi.string().allow("").allow(null),
3552
3558
  });
3553
3559
  }
3554
3560
 
@@ -3566,19 +3572,19 @@ class OrderPlatformModel {
3566
3572
  /** @returns {Dimensions} */
3567
3573
  static Dimensions() {
3568
3574
  return Joi.object({
3569
- height: Joi.number(),
3570
- is_default: Joi.boolean(),
3571
- length: Joi.number(),
3572
- unit: Joi.string().allow(""),
3573
- 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),
3574
3580
  });
3575
3581
  }
3576
3582
 
3577
3583
  /** @returns {DiscountRules} */
3578
3584
  static DiscountRules() {
3579
3585
  return Joi.object({
3580
- type: Joi.string().allow(""),
3581
- value: Joi.number(),
3586
+ type: Joi.string().allow("").allow(null),
3587
+ value: Joi.number().allow(null),
3582
3588
  });
3583
3589
  }
3584
3590
 
@@ -3594,7 +3600,7 @@ class OrderPlatformModel {
3594
3600
  return Joi.object({
3595
3601
  ds_type: Joi.string().allow("").required(),
3596
3602
  legal_name: Joi.string().allow("").required(),
3597
- url: Joi.string().allow(""),
3603
+ url: Joi.string().allow("").allow(null),
3598
3604
  value: Joi.string().allow("").required(),
3599
3605
  verified: Joi.boolean().required(),
3600
3606
  });
@@ -3611,12 +3617,12 @@ class OrderPlatformModel {
3611
3617
  static DPDetailsData() {
3612
3618
  return Joi.object({
3613
3619
  awb_no: Joi.string().allow("").allow(null),
3614
- country: Joi.string().allow(""),
3620
+ country: Joi.string().allow("").allow(null),
3615
3621
  eway_bill_id: Joi.string().allow("").allow(null),
3616
- gst_tag: Joi.string().allow(""),
3622
+ gst_tag: Joi.string().allow("").allow(null),
3617
3623
  id: Joi.number().allow(null),
3618
3624
  name: Joi.string().allow("").allow(null),
3619
- pincode: Joi.string().allow(""),
3625
+ pincode: Joi.string().allow("").allow(null),
3620
3626
  track_url: Joi.string().allow("").allow(null),
3621
3627
  });
3622
3628
  }
@@ -3624,17 +3630,17 @@ class OrderPlatformModel {
3624
3630
  /** @returns {EinvoiceInfo} */
3625
3631
  static EinvoiceInfo() {
3626
3632
  return Joi.object({
3627
- credit_note: Joi.any(),
3628
- invoice: Joi.any(),
3633
+ credit_note: Joi.any().allow(null),
3634
+ invoice: Joi.any().allow(null),
3629
3635
  });
3630
3636
  }
3631
3637
 
3632
3638
  /** @returns {EInvoicePortalDetails} */
3633
3639
  static EInvoicePortalDetails() {
3634
3640
  return Joi.object({
3635
- password: Joi.string().allow(""),
3636
- user: Joi.string().allow(""),
3637
- 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),
3638
3644
  });
3639
3645
  }
3640
3646
 
@@ -3736,10 +3742,10 @@ class OrderPlatformModel {
3736
3742
  static ErrorResponse() {
3737
3743
  return Joi.object({
3738
3744
  error: Joi.string().allow("").required(),
3739
- error_trace: Joi.string().allow(""),
3740
- message: Joi.string().allow("").required(),
3741
- status: Joi.number(),
3742
- 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),
3743
3749
  });
3744
3750
  }
3745
3751
 
@@ -3771,10 +3777,10 @@ class OrderPlatformModel {
3771
3777
  /** @returns {FilterInfoOption} */
3772
3778
  static FilterInfoOption() {
3773
3779
  return Joi.object({
3774
- min_search_size: Joi.number(),
3780
+ min_search_size: Joi.number().allow(null),
3775
3781
  name: Joi.string().allow("").allow(null),
3776
- placeholder_text: Joi.string().allow(""),
3777
- show_ui: Joi.boolean(),
3782
+ placeholder_text: Joi.string().allow("").allow(null),
3783
+ show_ui: Joi.boolean().allow(null),
3778
3784
  text: Joi.string().allow("").allow(null),
3779
3785
  value: Joi.string().allow("").allow(null),
3780
3786
  });
@@ -3784,8 +3790,8 @@ class OrderPlatformModel {
3784
3790
  static FiltersInfo() {
3785
3791
  return Joi.object({
3786
3792
  options: Joi.array().items(OrderPlatformModel.FilterInfoOption()),
3787
- placeholder_text: Joi.string().allow(""),
3788
- required: Joi.boolean(),
3793
+ placeholder_text: Joi.string().allow("").allow(null),
3794
+ required: Joi.boolean().allow(null),
3789
3795
  text: Joi.string().allow("").required(),
3790
3796
  type: Joi.string().allow("").required(),
3791
3797
  value: Joi.string().allow("").required(),
@@ -3805,7 +3811,7 @@ class OrderPlatformModel {
3805
3811
  return Joi.object({
3806
3812
  added_to_fynd_cash: Joi.boolean().required(),
3807
3813
  amount_paid: Joi.number().required(),
3808
- amount_paid_roundoff: Joi.number(),
3814
+ amount_paid_roundoff: Joi.number().allow(null),
3809
3815
  brand_calculated_amount: Joi.number().required(),
3810
3816
  cashback: Joi.number().required(),
3811
3817
  cashback_applied: Joi.number().required(),
@@ -3826,7 +3832,7 @@ class OrderPlatformModel {
3826
3832
  promotion_effective_discount: Joi.number().required(),
3827
3833
  refund_credit: Joi.number().required(),
3828
3834
  size: Joi.string().allow("").required(),
3829
- tax_collected_at_source: Joi.number(),
3835
+ tax_collected_at_source: Joi.number().allow(null),
3830
3836
  total_units: Joi.number().required(),
3831
3837
  transfer_price: Joi.number().required(),
3832
3838
  value_of_good: Joi.number().required(),
@@ -3836,8 +3842,8 @@ class OrderPlatformModel {
3836
3842
  /** @returns {Formatted} */
3837
3843
  static Formatted() {
3838
3844
  return Joi.object({
3839
- max: Joi.string().allow(""),
3840
- min: Joi.string().allow(""),
3845
+ max: Joi.string().allow("").allow(null),
3846
+ min: Joi.string().allow("").allow(null),
3841
3847
  });
3842
3848
  }
3843
3849
 
@@ -3898,10 +3904,10 @@ class OrderPlatformModel {
3898
3904
  /** @returns {GiftCard} */
3899
3905
  static GiftCard() {
3900
3906
  return Joi.object({
3901
- display_text: Joi.string().allow(""),
3902
- gift_message: Joi.string().allow(""),
3903
- gift_price: Joi.number(),
3904
- 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),
3905
3911
  });
3906
3912
  }
3907
3913
 
@@ -3909,19 +3915,19 @@ class OrderPlatformModel {
3909
3915
  static GSTDetailsData() {
3910
3916
  return Joi.object({
3911
3917
  brand_calculated_amount: Joi.number().required(),
3912
- cgst_gst_fee: Joi.number(),
3913
- cgst_tax_percentage: Joi.number(),
3918
+ cgst_gst_fee: Joi.number().allow(null),
3919
+ cgst_tax_percentage: Joi.number().allow(null),
3914
3920
  gst_fee: Joi.number().required(),
3915
- gst_tag: Joi.string().allow(""),
3916
- gst_tax_percentage: Joi.number(),
3921
+ gst_tag: Joi.string().allow("").allow(null),
3922
+ gst_tax_percentage: Joi.number().allow(null),
3917
3923
  gstin_code: Joi.string().allow("").allow(null),
3918
- hsn_code: Joi.string().allow(""),
3919
- hsn_code_id: Joi.string().allow(""),
3920
- igst_gst_fee: Joi.number(),
3921
- igst_tax_percentage: Joi.number(),
3922
- is_default_hsn_code: Joi.boolean(),
3923
- sgst_gst_fee: Joi.number(),
3924
- 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),
3925
3931
  tax_collected_at_source: Joi.number().required(),
3926
3932
  value_of_good: Joi.number().required(),
3927
3933
  });
@@ -3990,11 +3996,11 @@ class OrderPlatformModel {
3990
3996
  /** @returns {Identifier} */
3991
3997
  static Identifier() {
3992
3998
  return Joi.object({
3993
- alu: Joi.string().allow(""),
3994
- ean: Joi.string().allow(""),
3995
- isbn: Joi.string().allow(""),
3996
- sku_code: Joi.string().allow(""),
3997
- 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),
3998
4004
  });
3999
4005
  }
4000
4006
 
@@ -4030,11 +4036,11 @@ class OrderPlatformModel {
4030
4036
  static InvoiceInfo() {
4031
4037
  return Joi.object({
4032
4038
  credit_note_id: Joi.string().allow("").allow(null),
4033
- external_invoice_id: Joi.string().allow(""),
4034
- invoice_url: Joi.string().allow(""),
4035
- 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),
4036
4042
  store_invoice_id: Joi.string().allow("").allow(null),
4037
- updated_date: Joi.string().allow(""),
4043
+ updated_date: Joi.string().allow("").allow(null),
4038
4044
  });
4039
4045
  }
4040
4046
 
@@ -4045,22 +4051,22 @@ class OrderPlatformModel {
4045
4051
  branch_url: Joi.string().allow("").allow(null),
4046
4052
  brand: Joi.string().allow("").required(),
4047
4053
  brand_id: Joi.number().required(),
4048
- can_cancel: Joi.boolean(),
4049
- can_return: Joi.boolean(),
4050
- 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),
4051
4057
  color: Joi.string().allow("").allow(null),
4052
- department_id: Joi.number(),
4058
+ department_id: Joi.number().allow(null),
4053
4059
  gender: Joi.string().allow("").allow(null),
4054
4060
  image: Joi.array().items(Joi.string().allow("")).required(),
4055
4061
  item_id: Joi.number().required(),
4056
4062
  l1_category: Joi.array().items(Joi.string().allow("")),
4057
- l1_category_id: Joi.number(),
4063
+ l1_category_id: Joi.number().allow(null),
4058
4064
  l2_category: Joi.array().items(Joi.string().allow("")),
4059
- l2_category_id: Joi.number(),
4060
- l3_category: Joi.number(),
4061
- l3_category_name: Joi.string().allow(""),
4062
- last_updated_at: Joi.string().allow(""),
4063
- 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),
4064
4070
  name: Joi.string().allow("").required(),
4065
4071
  size: Joi.string().allow("").required(),
4066
4072
  slug_key: Joi.string().allow("").required(),
@@ -4108,9 +4114,9 @@ class OrderPlatformModel {
4108
4114
  /** @returns {LockData} */
4109
4115
  static LockData() {
4110
4116
  return Joi.object({
4111
- lock_message: Joi.string().allow(""),
4112
- locked: Joi.boolean(),
4113
- mto: Joi.boolean(),
4117
+ lock_message: Joi.string().allow("").allow(null),
4118
+ locked: Joi.boolean().allow(null),
4119
+ mto: Joi.boolean().allow(null),
4114
4120
  });
4115
4121
  }
4116
4122
 
@@ -4133,10 +4139,10 @@ class OrderPlatformModel {
4133
4139
  /** @returns {OrderBagArticle} */
4134
4140
  static OrderBagArticle() {
4135
4141
  return Joi.object({
4136
- identifiers: Joi.any(),
4142
+ identifiers: Joi.any().allow(null),
4137
4143
  return_config: OrderPlatformModel.ReturnConfig1(),
4138
- size: Joi.string().allow(""),
4139
- uid: Joi.string().allow(""),
4144
+ size: Joi.string().allow("").allow(null),
4145
+ uid: Joi.string().allow("").allow(null),
4140
4146
  });
4141
4147
  }
4142
4148
 
@@ -4149,38 +4155,39 @@ class OrderPlatformModel {
4149
4155
  bag_configs: OrderPlatformModel.BagConfigs(),
4150
4156
  bag_id: Joi.number().required(),
4151
4157
  brand: OrderPlatformModel.OrderBrandName(),
4152
- can_cancel: Joi.boolean(),
4153
- can_return: Joi.boolean(),
4158
+ can_cancel: Joi.boolean().allow(null),
4159
+ can_return: Joi.boolean().allow(null),
4154
4160
  current_status: OrderPlatformModel.CurrentStatus(),
4155
4161
  delivery_address: OrderPlatformModel.PlatformDeliveryAddress(),
4156
- display_name: Joi.string().allow(""),
4157
- entity_type: Joi.string().allow(""),
4162
+ display_name: Joi.string().allow("").allow(null),
4163
+ entity_type: Joi.string().allow("").allow(null),
4158
4164
  financial_breakup: OrderPlatformModel.FinancialBreakup(),
4159
- group_id: Joi.string().allow(""),
4165
+ group_id: Joi.string().allow("").allow(null),
4160
4166
  gst_details: OrderPlatformModel.BagGST(),
4161
- identifier: Joi.string().allow(""),
4167
+ identifier: Joi.string().allow("").allow(null),
4168
+ is_parent: Joi.boolean().allow(null),
4162
4169
  item: OrderPlatformModel.PlatformItem(),
4163
- line_number: Joi.number(),
4170
+ line_number: Joi.number().allow(null),
4164
4171
  meta: OrderPlatformModel.BagMeta(),
4165
- parent_promo_bags: Joi.any(),
4172
+ parent_promo_bags: Joi.any().allow(null),
4166
4173
  payment_methods: Joi.array().items(
4167
4174
  OrderPlatformModel.BagPaymentMethods()
4168
4175
  ),
4169
4176
  prices: OrderPlatformModel.Prices(),
4170
- quantity: Joi.number(),
4171
- seller_identifier: Joi.string().allow(""),
4177
+ quantity: Joi.number().allow(null),
4178
+ seller_identifier: Joi.string().allow("").allow(null),
4172
4179
  });
4173
4180
  }
4174
4181
 
4175
4182
  /** @returns {OrderBrandName} */
4176
4183
  static OrderBrandName() {
4177
4184
  return Joi.object({
4178
- brand_name: Joi.string().allow(""),
4185
+ brand_name: Joi.string().allow("").allow(null),
4179
4186
  company: Joi.number().allow(null).required(),
4180
- created_on: Joi.string().allow(""),
4187
+ created_on: Joi.string().allow("").allow(null),
4181
4188
  id: Joi.number().required(),
4182
- logo: Joi.string().allow(""),
4183
- modified_on: Joi.string().allow(""),
4189
+ logo: Joi.string().allow("").allow(null),
4190
+ modified_on: Joi.string().allow("").allow(null),
4184
4191
  });
4185
4192
  }
4186
4193
 
@@ -4204,7 +4211,7 @@ class OrderPlatformModel {
4204
4211
  fynd_order_id: Joi.string().allow("").required(),
4205
4212
  meta: OrderPlatformModel.OrderMeta(),
4206
4213
  order_date: Joi.string().allow("").required(),
4207
- payment_methods: Joi.any(),
4214
+ payment_methods: Joi.any().allow(null),
4208
4215
  prices: OrderPlatformModel.Prices(),
4209
4216
  tax_details: OrderPlatformModel.TaxDetails(),
4210
4217
  });
@@ -4221,16 +4228,16 @@ class OrderPlatformModel {
4221
4228
  /** @returns {OrderDetailsData} */
4222
4229
  static OrderDetailsData() {
4223
4230
  return Joi.object({
4224
- affiliate_id: Joi.string().allow(""),
4225
- cod_charges: Joi.string().allow(""),
4231
+ affiliate_id: Joi.string().allow("").allow(null),
4232
+ cod_charges: Joi.string().allow("").allow(null),
4226
4233
  fynd_order_id: Joi.string().allow("").required(),
4227
4234
  meta: OrderPlatformModel.OrderMeta(),
4228
- order_date: Joi.string().allow(""),
4229
- order_value: Joi.string().allow(""),
4230
- ordering_channel: Joi.string().allow(""),
4231
- ordering_channel_logo: Joi.any(),
4232
- source: Joi.string().allow(""),
4233
- tax_details: Joi.any(),
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),
4234
4241
  });
4235
4242
  }
4236
4243
 
@@ -4267,17 +4274,17 @@ class OrderPlatformModel {
4267
4274
  /** @returns {OrderingStoreDetails} */
4268
4275
  static OrderingStoreDetails() {
4269
4276
  return Joi.object({
4270
- address: Joi.string().allow(""),
4271
- city: Joi.string().allow(""),
4272
- code: Joi.string().allow(""),
4273
- contact_person: Joi.string().allow(""),
4274
- country: Joi.string().allow(""),
4275
- id: Joi.number(),
4276
- meta: Joi.any(),
4277
- phone: Joi.string().allow(""),
4278
- pincode: Joi.string().allow(""),
4279
- state: Joi.string().allow(""),
4280
- 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),
4281
4288
  });
4282
4289
  }
4283
4290
 
@@ -4292,11 +4299,11 @@ class OrderPlatformModel {
4292
4299
  static OrderListingResponse() {
4293
4300
  return Joi.object({
4294
4301
  items: Joi.array().items(OrderPlatformModel.PlatformOrderItems()),
4295
- lane: Joi.string().allow(""),
4296
- message: Joi.string().allow(""),
4302
+ lane: Joi.string().allow("").allow(null),
4303
+ message: Joi.string().allow("").allow(null),
4297
4304
  page: OrderPlatformModel.Page(),
4298
- success: Joi.boolean(),
4299
- total_count: Joi.number(),
4305
+ success: Joi.boolean().allow(null),
4306
+ total_count: Joi.number().allow(null),
4300
4307
  });
4301
4308
  }
4302
4309
 
@@ -4304,23 +4311,24 @@ class OrderPlatformModel {
4304
4311
  static OrderMeta() {
4305
4312
  return Joi.object({
4306
4313
  billing_staff_details: OrderPlatformModel.BillingStaffDetails(),
4307
- cart_id: Joi.number(),
4308
- comment: Joi.string().allow(""),
4309
- company_logo: Joi.string().allow(""),
4310
- currency_symbol: Joi.string().allow(""),
4311
- 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),
4312
4320
  employee_id: Joi.string().allow("").allow(null),
4313
- extra_meta: Joi.any(),
4321
+ extra_meta: Joi.any().allow(null),
4314
4322
  files: Joi.array().items(Joi.any()),
4315
- mongo_cart_id: Joi.number(),
4323
+ mongo_cart_id: Joi.number().allow(null),
4316
4324
  order_child_entities: Joi.array().items(Joi.string().allow("")),
4317
- order_platform: Joi.string().allow(""),
4325
+ order_platform: Joi.string().allow("").allow(null),
4318
4326
  order_tags: Joi.array().items(Joi.any().allow(null)),
4319
- order_type: Joi.string().allow(""),
4320
- ordering_store: Joi.number(),
4321
- 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),
4322
4330
  platform_user_details: OrderPlatformModel.PlatformUserDetails(),
4323
- staff: Joi.any(),
4331
+ staff: Joi.any().allow(null),
4324
4332
  transaction_data: OrderPlatformModel.TransactionData(),
4325
4333
  });
4326
4334
  }
@@ -4443,78 +4451,78 @@ class OrderPlatformModel {
4443
4451
  /** @returns {PDFLinks} */
4444
4452
  static PDFLinks() {
4445
4453
  return Joi.object({
4446
- b2b: Joi.string().allow(""),
4447
- credit_note_url: Joi.string().allow(""),
4448
- delivery_challan_a4: Joi.string().allow(""),
4449
- invoice: Joi.string().allow(""),
4450
- invoice_a4: Joi.string().allow(""),
4451
- invoice_a6: Joi.string().allow(""),
4452
- invoice_export: Joi.string().allow(""),
4453
- 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),
4454
4462
  invoice_type: Joi.string().allow("").required(),
4455
- label: Joi.string().allow(""),
4456
- label_a4: Joi.string().allow(""),
4457
- label_a6: Joi.string().allow(""),
4458
- label_export: Joi.string().allow(""),
4459
- 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),
4460
4468
  label_type: Joi.string().allow("").required(),
4461
- po_invoice: Joi.string().allow(""),
4469
+ po_invoice: Joi.string().allow("").allow(null),
4462
4470
  });
4463
4471
  }
4464
4472
 
4465
4473
  /** @returns {PhoneDetails} */
4466
4474
  static PhoneDetails() {
4467
4475
  return Joi.object({
4468
- country_code: Joi.number(),
4469
- number: Joi.string().allow(""),
4476
+ country_code: Joi.number().allow(null),
4477
+ number: Joi.string().allow("").allow(null),
4470
4478
  });
4471
4479
  }
4472
4480
 
4473
4481
  /** @returns {PlatformArticleAttributes} */
4474
4482
  static PlatformArticleAttributes() {
4475
4483
  return Joi.object({
4476
- currency: Joi.string().allow(""),
4484
+ currency: Joi.string().allow("").allow(null),
4477
4485
  });
4478
4486
  }
4479
4487
 
4480
4488
  /** @returns {PlatformBreakupValues} */
4481
4489
  static PlatformBreakupValues() {
4482
4490
  return Joi.object({
4483
- display: Joi.string().allow(""),
4484
- name: Joi.string().allow(""),
4485
- 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),
4486
4494
  });
4487
4495
  }
4488
4496
 
4489
4497
  /** @returns {PlatformChannel} */
4490
4498
  static PlatformChannel() {
4491
4499
  return Joi.object({
4492
- logo: Joi.string().allow(""),
4493
- name: Joi.string().allow(""),
4500
+ logo: Joi.string().allow("").allow(null),
4501
+ name: Joi.string().allow("").allow(null),
4494
4502
  });
4495
4503
  }
4496
4504
 
4497
4505
  /** @returns {PlatformDeliveryAddress} */
4498
4506
  static PlatformDeliveryAddress() {
4499
4507
  return Joi.object({
4500
- address_category: Joi.string().allow(""),
4501
- address_type: Joi.string().allow(""),
4502
- address1: Joi.string().allow(""),
4503
- address2: Joi.string().allow(""),
4504
- area: Joi.string().allow(""),
4505
- city: Joi.string().allow(""),
4506
- contact_person: Joi.string().allow(""),
4507
- country: Joi.string().allow(""),
4508
- created_at: Joi.string().allow(""),
4509
- email: Joi.string().allow(""),
4510
- landmark: Joi.string().allow(""),
4511
- latitude: Joi.number(),
4512
- longitude: Joi.number(),
4513
- phone: Joi.string().allow(""),
4514
- pincode: Joi.string().allow(""),
4515
- state: Joi.string().allow(""),
4516
- updated_at: Joi.string().allow(""),
4517
- 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),
4518
4526
  });
4519
4527
  }
4520
4528
 
@@ -4523,25 +4531,25 @@ class OrderPlatformModel {
4523
4531
  return Joi.object({
4524
4532
  attributes: OrderPlatformModel.PlatformArticleAttributes(),
4525
4533
  branch_url: Joi.string().allow("").allow(null),
4526
- brand: Joi.string().allow(""),
4527
- brand_id: Joi.number(),
4528
- can_cancel: Joi.boolean(),
4529
- can_return: Joi.boolean(),
4530
- 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),
4531
4539
  color: Joi.string().allow("").allow(null),
4532
- department_id: Joi.number(),
4533
- id: Joi.number(),
4540
+ department_id: Joi.number().allow(null),
4541
+ id: Joi.number().allow(null),
4534
4542
  image: Joi.array().items(Joi.string().allow("")),
4535
4543
  images: Joi.array().items(Joi.string().allow("")),
4536
4544
  l1_category: Joi.array().items(Joi.string().allow("")),
4537
4545
  l2_category: Joi.array().items(Joi.string().allow("")),
4538
- l3_category: Joi.number(),
4539
- l3_category_name: Joi.string().allow(""),
4540
- last_updated_at: Joi.string().allow(""),
4541
- meta: Joi.any(),
4542
- name: Joi.string().allow(""),
4543
- size: Joi.string().allow(""),
4544
- 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),
4545
4553
  });
4546
4554
  }
4547
4555
 
@@ -4552,13 +4560,13 @@ class OrderPlatformModel {
4552
4560
  OrderPlatformModel.PlatformBreakupValues()
4553
4561
  ),
4554
4562
  channel: OrderPlatformModel.PlatformChannel(),
4555
- meta: Joi.any(),
4556
- order_created_time: Joi.string().allow(""),
4557
- order_id: Joi.string().allow(""),
4558
- order_value: Joi.number(),
4559
- 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),
4560
4568
  shipments: Joi.array().items(OrderPlatformModel.PlatformShipment()),
4561
- total_order_value: Joi.number(),
4569
+ total_order_value: Joi.number().allow(null),
4562
4570
  user_info: OrderPlatformModel.UserDataInfo(),
4563
4571
  });
4564
4572
  }
@@ -4579,55 +4587,57 @@ class OrderPlatformModel {
4579
4587
  ),
4580
4588
  bags: Joi.array().items(OrderPlatformModel.OrderBags()),
4581
4589
  billing_details: OrderPlatformModel.UserDetailsData(),
4582
- can_update_dimension: Joi.boolean(),
4590
+ can_update_dimension: Joi.boolean().allow(null),
4583
4591
  company_details: OrderPlatformModel.CompanyDetails(),
4584
- coupon: Joi.any(),
4592
+ coupon: Joi.any().allow(null),
4585
4593
  credit_note_id: Joi.string().allow("").allow(null),
4586
- custom_message: Joi.string().allow(""),
4594
+ custom_message: Joi.string().allow("").allow(null),
4587
4595
  custom_meta: Joi.array().items(Joi.any()),
4588
4596
  delivery_details: OrderPlatformModel.UserDetailsData(),
4589
- delivery_slot: Joi.any(),
4590
- dp_assignment: Joi.boolean(),
4597
+ delivery_slot: Joi.any().allow(null),
4598
+ dp_assignment: Joi.boolean().allow(null),
4591
4599
  dp_details: OrderPlatformModel.DPDetailsData(),
4592
- enable_dp_tracking: Joi.boolean(),
4593
- estimated_sla_time: Joi.string().allow(""),
4600
+ enable_dp_tracking: Joi.boolean().allow(null),
4601
+ estimated_sla_time: Joi.string().allow("").allow(null),
4594
4602
  forward_shipment_id: Joi.string().allow("").allow(null),
4595
4603
  fulfilling_store: OrderPlatformModel.FulfillingStore(),
4596
- fulfilment_priority: Joi.number(),
4604
+ fulfilment_priority: Joi.number().allow(null),
4597
4605
  gst_details: OrderPlatformModel.GSTDetailsData(),
4598
4606
  invoice: OrderPlatformModel.InvoiceInfo(),
4599
- invoice_id: Joi.string().allow(""),
4600
- is_dp_assign_enabled: Joi.boolean(),
4601
- journey_type: Joi.string().allow(""),
4602
- 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),
4603
4612
  meta: OrderPlatformModel.ShipmentMeta(),
4604
- operational_status: Joi.string().allow(""),
4613
+ mode_of_payment: Joi.string().allow("").allow(null),
4614
+ operational_status: Joi.string().allow("").allow(null),
4605
4615
  order: OrderPlatformModel.OrderDetailsData(),
4606
4616
  ordering_store: OrderPlatformModel.OrderingStoreDetails(),
4607
- packaging_type: Joi.string().allow(""),
4608
- payment_methods: Joi.any(),
4609
- 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),
4610
4620
  payments: OrderPlatformModel.ShipmentPayments(),
4611
4621
  pdf_links: Joi.any(),
4612
- picked_date: Joi.string().allow(""),
4613
- platform_logo: Joi.string().allow(""),
4622
+ picked_date: Joi.string().allow("").allow(null),
4623
+ platform_logo: Joi.string().allow("").allow(null),
4614
4624
  previous_shipment_id: Joi.string().allow("").allow(null),
4615
4625
  prices: OrderPlatformModel.Prices(),
4616
4626
  priority_text: Joi.string().allow("").allow(null),
4617
4627
  rto_address: OrderPlatformModel.PlatformDeliveryAddress(),
4618
- shipment_created_at: Joi.string().allow(""),
4628
+ shipment_created_at: Joi.string().allow("").allow(null),
4619
4629
  shipment_details: OrderPlatformModel.ShipmentDetails(),
4620
4630
  shipment_id: Joi.string().allow("").required(),
4621
4631
  shipment_images: Joi.array().items(Joi.string().allow("")),
4622
- shipment_quantity: Joi.number(),
4623
- shipment_status: Joi.string().allow(""),
4632
+ shipment_quantity: Joi.number().allow(null),
4633
+ shipment_status: Joi.string().allow("").allow(null),
4624
4634
  shipment_update_time: Joi.number().allow(null),
4625
4635
  status: OrderPlatformModel.ShipmentStatusData(),
4626
- total_bags: Joi.number(),
4627
- total_items: Joi.number(),
4636
+ total_bags: Joi.number().allow(null),
4637
+ total_items: Joi.number().allow(null),
4628
4638
  tracking_list: Joi.array().items(OrderPlatformModel.TrackingList()),
4629
4639
  user: OrderPlatformModel.UserDataInfo(),
4630
- user_agent: Joi.string().allow(""),
4640
+ user_agent: Joi.string().allow("").allow(null),
4631
4641
  vertical: Joi.string().allow("").allow(null),
4632
4642
  });
4633
4643
  }
@@ -4668,9 +4678,9 @@ class OrderPlatformModel {
4668
4678
  static PlatformUserDetails() {
4669
4679
  return Joi.object({
4670
4680
  platform_user_employee_code: Joi.string().allow("").allow(null),
4671
- platform_user_first_name: Joi.string().allow(""),
4681
+ platform_user_first_name: Joi.string().allow("").allow(null),
4672
4682
  platform_user_id: Joi.string().allow("").allow(null),
4673
- platform_user_last_name: Joi.string().allow(""),
4683
+ platform_user_last_name: Joi.string().allow("").allow(null),
4674
4684
  });
4675
4685
  }
4676
4686
 
@@ -4728,27 +4738,27 @@ class OrderPlatformModel {
4728
4738
  /** @returns {Prices} */
4729
4739
  static Prices() {
4730
4740
  return Joi.object({
4731
- amount_paid: Joi.number(),
4732
- amount_paid_roundoff: Joi.number(),
4733
- brand_calculated_amount: Joi.number(),
4734
- cashback: Joi.number(),
4735
- cashback_applied: Joi.number(),
4736
- cod_charges: Joi.number(),
4737
- coupon_effective_discount: Joi.number(),
4738
- coupon_value: Joi.number(),
4739
- delivery_charge: Joi.number(),
4740
- discount: Joi.number(),
4741
- fynd_credits: Joi.number(),
4742
- gift_price: Joi.number(),
4743
- pm_price_split: Joi.number(),
4744
- price_effective: Joi.number(),
4745
- price_marked: Joi.number(),
4746
- promotion_effective_discount: Joi.number(),
4747
- refund_amount: Joi.number(),
4748
- refund_credit: Joi.number(),
4749
- tax_collected_at_source: Joi.number(),
4750
- transfer_price: Joi.number(),
4751
- 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),
4752
4762
  });
4753
4763
  }
4754
4764
 
@@ -4899,18 +4909,18 @@ class OrderPlatformModel {
4899
4909
  /** @returns {ReturnConfig} */
4900
4910
  static ReturnConfig() {
4901
4911
  return Joi.object({
4902
- returnable: Joi.boolean(),
4903
- time: Joi.number(),
4904
- unit: Joi.string().allow(""),
4912
+ returnable: Joi.boolean().allow(null),
4913
+ time: Joi.number().allow(null),
4914
+ unit: Joi.string().allow("").allow(null),
4905
4915
  });
4906
4916
  }
4907
4917
 
4908
4918
  /** @returns {ReturnConfig1} */
4909
4919
  static ReturnConfig1() {
4910
4920
  return Joi.object({
4911
- returnable: Joi.boolean(),
4912
- time: Joi.number(),
4913
- unit: Joi.string().allow(""),
4921
+ returnable: Joi.boolean().allow(null),
4922
+ time: Joi.number().allow(null),
4923
+ unit: Joi.string().allow("").allow(null),
4914
4924
  });
4915
4925
  }
4916
4926
 
@@ -4998,7 +5008,7 @@ class OrderPlatformModel {
4998
5008
  /** @returns {ShipmentDetails} */
4999
5009
  static ShipmentDetails() {
5000
5010
  return Joi.object({
5001
- action_to_status: Joi.any(),
5011
+ action_to_status: Joi.any().allow(null),
5002
5012
  affiliate_shipment_id: Joi.string().allow("").required(),
5003
5013
  articles: Joi.array()
5004
5014
  .items(OrderPlatformModel.ArticleDetails())
@@ -5006,8 +5016,8 @@ class OrderPlatformModel {
5006
5016
  box_type: Joi.string().allow("").allow(null),
5007
5017
  dp_id: Joi.number().allow(null),
5008
5018
  fulfillment_id: Joi.number().required(),
5009
- lock_message: Joi.string().allow(""),
5010
- lock_status: Joi.boolean(),
5019
+ lock_message: Joi.string().allow("").allow(null),
5020
+ lock_status: Joi.boolean().allow(null),
5011
5021
  meta: Joi.any(),
5012
5022
  shipments: Joi.number().required(),
5013
5023
  });
@@ -5026,7 +5036,7 @@ class OrderPlatformModel {
5026
5036
  /** @returns {ShipmentInfoResponse} */
5027
5037
  static ShipmentInfoResponse() {
5028
5038
  return Joi.object({
5029
- message: Joi.string().allow(""),
5039
+ message: Joi.string().allow("").allow(null),
5030
5040
  shipments: Joi.array().items(OrderPlatformModel.PlatformShipment()),
5031
5041
  success: Joi.boolean().required(),
5032
5042
  });
@@ -5036,11 +5046,11 @@ class OrderPlatformModel {
5036
5046
  static ShipmentInternalPlatformViewResponse() {
5037
5047
  return Joi.object({
5038
5048
  items: Joi.array().items(OrderPlatformModel.ShipmentItem()),
5039
- lane: Joi.string().allow(""),
5040
- message: Joi.string().allow(""),
5049
+ lane: Joi.string().allow("").allow(null),
5050
+ message: Joi.string().allow("").allow(null),
5041
5051
  page: OrderPlatformModel.Page(),
5042
- success: Joi.boolean(),
5043
- total_count: Joi.number(),
5052
+ success: Joi.boolean().allow(null),
5053
+ total_count: Joi.number().allow(null),
5044
5054
  });
5045
5055
  }
5046
5056
 
@@ -5048,28 +5058,29 @@ class OrderPlatformModel {
5048
5058
  static ShipmentItem() {
5049
5059
  return Joi.object({
5050
5060
  bags: Joi.array().items(OrderPlatformModel.BagUnit()),
5051
- can_process: Joi.boolean(),
5061
+ can_process: Joi.boolean().allow(null),
5052
5062
  channel: OrderPlatformModel.ShipmentListingChannel(),
5053
- customer_note: Joi.string().allow(""),
5063
+ customer_note: Joi.string().allow("").allow(null),
5054
5064
  delivery_address: OrderPlatformModel.PlatformDeliveryAddress(),
5055
- display_name: Joi.string().allow(""),
5065
+ display_name: Joi.string().allow("").allow(null),
5056
5066
  estimated_sla_time: Joi.string().allow("").allow(null),
5057
5067
  fulfilling_store: OrderPlatformModel.ShipmentItemFulFillingStore(),
5058
5068
  invoice_id: Joi.string().allow("").allow(null),
5059
- lock_status: Joi.boolean(),
5069
+ lock_status: Joi.boolean().allow(null),
5060
5070
  meta: OrderPlatformModel.ShipmentItemMeta(),
5061
- order_date: Joi.string().allow(""),
5071
+ mode_of_payment: Joi.string().allow(""),
5072
+ order_date: Joi.string().allow("").allow(null),
5062
5073
  order_id: Joi.string().allow("").required(),
5063
- ordering_channnel: Joi.string().allow(""),
5064
- payment_methods: Joi.any(),
5065
- 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),
5066
5077
  previous_shipment_id: Joi.string().allow("").allow(null),
5067
5078
  prices: OrderPlatformModel.Prices(),
5068
5079
  shipment_created_at: Joi.string().allow("").required(),
5069
- shipment_id: Joi.string().allow(""),
5080
+ shipment_id: Joi.string().allow("").allow(null),
5070
5081
  shipment_status: OrderPlatformModel.ShipmentStatus(),
5071
5082
  status_created_at: Joi.string().allow(""),
5072
- total_bags: Joi.number().required(),
5083
+ total_bags: Joi.number().allow(null).required(),
5073
5084
  user: OrderPlatformModel.UserDataInfo(),
5074
5085
  });
5075
5086
  }
@@ -5079,114 +5090,115 @@ class OrderPlatformModel {
5079
5090
  return Joi.object({
5080
5091
  address: Joi.string().allow("").allow(null),
5081
5092
  brand_store_tags: Joi.string().allow("").allow(null),
5082
- city: Joi.string().allow(""),
5093
+ city: Joi.string().allow("").allow(null),
5083
5094
  code: Joi.string().allow("").required(),
5084
5095
  id: Joi.number().required(),
5085
- location_type: Joi.string().allow(""),
5096
+ location_type: Joi.string().allow("").allow(null),
5086
5097
  meta: Joi.any().allow(null),
5087
- name: Joi.string().allow(""),
5088
- phone: Joi.string().allow(""),
5089
- pincode: Joi.string().allow(""),
5090
- state: Joi.string().allow(""),
5091
- 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),
5092
5103
  });
5093
5104
  }
5094
5105
 
5095
5106
  /** @returns {ShipmentItemMeta} */
5096
5107
  static ShipmentItemMeta() {
5097
5108
  return Joi.object({
5098
- activity_comment: Joi.string().allow(""),
5099
- assign_dp_from_sb: Joi.boolean(),
5109
+ activity_comment: Joi.string().allow("").allow(null),
5110
+ assign_dp_from_sb: Joi.boolean().allow(null),
5100
5111
  auto_trigger_dp_assignment_acf: Joi.boolean().required(),
5101
- bag_weight: Joi.any(),
5102
- debug_info: Joi.any(),
5103
- 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),
5104
5115
  dp_sort_key: Joi.string().allow("").allow(null),
5105
- ewaybill_info: Joi.any(),
5116
+ ewaybill_info: Joi.any().allow(null),
5106
5117
  existing_dp_list: Joi.array().items(Joi.string().allow("")),
5107
- external: Joi.any(),
5118
+ external: Joi.any().allow(null),
5108
5119
  formatted: OrderPlatformModel.Formatted(),
5109
5120
  fulfilment_priority_text: Joi.string().allow("").allow(null),
5110
- is_international: Joi.boolean(),
5121
+ is_international: Joi.boolean().allow(null),
5111
5122
  lock_data: OrderPlatformModel.LockData(),
5112
5123
  order_type: Joi.string().allow("").allow(null),
5113
- packaging_name: Joi.string().allow(""),
5114
- parent_dp_id: Joi.string().allow(""),
5124
+ packaging_name: Joi.string().allow("").allow(null),
5125
+ parent_dp_id: Joi.string().allow("").allow(null),
5115
5126
  pdf_media: Joi.array().items(Joi.any()),
5116
- same_store_available: Joi.boolean(),
5117
- shipment_chargeable_weight: Joi.number(),
5127
+ same_store_available: Joi.boolean().allow(null),
5128
+ shipment_chargeable_weight: Joi.number().allow(null),
5118
5129
  shipment_tags: Joi.array().items(OrderPlatformModel.ShipmentTags()),
5119
- shipment_volumetric_weight: Joi.number(),
5120
- shipment_weight: Joi.number(),
5121
- shipping_zone: Joi.string().allow(""),
5122
- sla: Joi.number(),
5123
- 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),
5124
5135
  tags: Joi.array().items(Joi.any()),
5125
5136
  timestamp: OrderPlatformModel.ShipmentTimeStamp(),
5126
- weight: Joi.number(),
5137
+ weight: Joi.number().allow(null),
5127
5138
  });
5128
5139
  }
5129
5140
 
5130
5141
  /** @returns {ShipmentListingBrand} */
5131
5142
  static ShipmentListingBrand() {
5132
5143
  return Joi.object({
5133
- created_on: Joi.string().allow(""),
5134
- logo: Joi.string().allow(""),
5135
- logo_base64: Joi.string().allow(""),
5136
- 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),
5137
5148
  });
5138
5149
  }
5139
5150
 
5140
5151
  /** @returns {ShipmentListingChannel} */
5141
5152
  static ShipmentListingChannel() {
5142
5153
  return Joi.object({
5143
- channel_shipment_id: Joi.string().allow(""),
5144
- is_affiliate: Joi.boolean(),
5145
- logo: Joi.string().allow(""),
5146
- 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),
5147
5158
  });
5148
5159
  }
5149
5160
 
5150
5161
  /** @returns {ShipmentMeta} */
5151
5162
  static ShipmentMeta() {
5152
5163
  return Joi.object({
5153
- assign_dp_from_sb: Joi.boolean(),
5154
- auto_trigger_dp_assignment_acf: Joi.boolean(),
5155
- 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),
5156
5167
  b2b_buyer_details: OrderPlatformModel.BuyerDetails(),
5157
5168
  b2c_buyer_details: Joi.any().allow(null),
5158
- bag_weight: Joi.any(),
5169
+ bag_weight: Joi.any().allow(null),
5159
5170
  box_type: Joi.string().allow("").allow(null),
5160
5171
  debug_info: OrderPlatformModel.DebugInfo(),
5161
5172
  dimension: OrderPlatformModel.Dimensions(),
5162
5173
  dp_id: Joi.string().allow("").allow(null),
5163
- dp_name: Joi.string().allow(""),
5164
- dp_options: Joi.any(),
5165
- dp_sort_key: Joi.string().allow(""),
5166
- 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),
5167
5178
  einvoice_info: OrderPlatformModel.EinvoiceInfo(),
5168
5179
  ewaybill_info: Joi.any().allow(null),
5169
- external: Joi.any(),
5180
+ external: Joi.any().allow(null),
5170
5181
  formatted: OrderPlatformModel.Formatted(),
5171
- forward_affiliate_order_id: Joi.string().allow(""),
5172
- 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),
5173
5184
  fulfilment_priority_text: Joi.string().allow("").allow(null),
5174
5185
  lock_data: OrderPlatformModel.LockData(),
5175
- marketplace_store_id: Joi.string().allow(""),
5186
+ marketplace_store_id: Joi.string().allow("").allow(null),
5176
5187
  order_type: Joi.string().allow("").allow(null),
5177
- packaging_name: Joi.string().allow(""),
5188
+ packaging_name: Joi.string().allow("").allow(null),
5178
5189
  parent_dp_id: Joi.string().allow("").allow(null),
5179
- po_number: Joi.string().allow(""),
5180
- return_affiliate_order_id: Joi.string().allow(""),
5181
- return_affiliate_shipment_id: Joi.string().allow(""),
5182
- return_awb_number: Joi.string().allow(""),
5183
- return_details: Joi.any(),
5184
- 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),
5185
5197
  same_store_available: Joi.boolean().required(),
5186
5198
  shipment_tags: Joi.array().items(OrderPlatformModel.ShipmentTags()),
5187
- shipment_volumetric_weight: Joi.number(),
5188
- shipment_weight: Joi.number(),
5189
- 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),
5190
5202
  timestamp: OrderPlatformModel.ShipmentTimeStamp(),
5191
5203
  weight: Joi.number().required(),
5192
5204
  });
@@ -5195,9 +5207,9 @@ class OrderPlatformModel {
5195
5207
  /** @returns {ShipmentPayments} */
5196
5208
  static ShipmentPayments() {
5197
5209
  return Joi.object({
5198
- logo: Joi.string().allow(""),
5199
- mode: Joi.string().allow(""),
5200
- 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),
5201
5213
  });
5202
5214
  }
5203
5215
 
@@ -5233,14 +5245,14 @@ class OrderPlatformModel {
5233
5245
  /** @returns {ShipmentsResponse} */
5234
5246
  static ShipmentsResponse() {
5235
5247
  return Joi.object({
5236
- code: Joi.string().allow(""),
5237
- exception: Joi.string().allow(""),
5238
- final_state: Joi.any(),
5239
- identifier: Joi.string().allow(""),
5240
- message: Joi.string().allow(""),
5241
- meta: Joi.any(),
5242
- stack_trace: Joi.string().allow(""),
5243
- 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),
5244
5256
  });
5245
5257
  }
5246
5258
 
@@ -5248,13 +5260,13 @@ class OrderPlatformModel {
5248
5260
  static ShipmentStatus() {
5249
5261
  return Joi.object({
5250
5262
  bag_list: Joi.array().items(Joi.string().allow("")),
5251
- created_at: Joi.string().allow(""),
5252
- current_shipment_status: Joi.string().allow(""),
5263
+ created_at: Joi.string().allow("").allow(null),
5264
+ current_shipment_status: Joi.string().allow("").allow(null),
5253
5265
  meta: Joi.any().allow(null),
5254
- shipment_id: Joi.string().allow(""),
5255
- shipment_status_id: Joi.number(),
5266
+ shipment_id: Joi.string().allow("").allow(null),
5267
+ shipment_status_id: Joi.number().allow(null),
5256
5268
  status: Joi.string().allow("").required(),
5257
- status_created_at: Joi.string().allow(""),
5269
+ status_created_at: Joi.string().allow("").allow(null),
5258
5270
  title: Joi.string().allow("").required(),
5259
5271
  });
5260
5272
  }
@@ -5264,28 +5276,28 @@ class OrderPlatformModel {
5264
5276
  return Joi.object({
5265
5277
  bag_list: Joi.array().items(Joi.string().allow("")),
5266
5278
  created_at: Joi.string().allow("").allow(null),
5267
- display_name: Joi.string().allow(""),
5268
- id: Joi.number(),
5269
- meta: Joi.any(),
5270
- shipment_id: Joi.string().allow(""),
5271
- 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),
5272
5284
  });
5273
5285
  }
5274
5286
 
5275
5287
  /** @returns {ShipmentTags} */
5276
5288
  static ShipmentTags() {
5277
5289
  return Joi.object({
5278
- display_text: Joi.string().allow(""),
5279
- entity_type: Joi.string().allow(""),
5280
- 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),
5281
5293
  });
5282
5294
  }
5283
5295
 
5284
5296
  /** @returns {ShipmentTimeStamp} */
5285
5297
  static ShipmentTimeStamp() {
5286
5298
  return Joi.object({
5287
- max: Joi.number(),
5288
- min: Joi.number(),
5299
+ max: Joi.number().allow(null),
5300
+ min: Joi.number().allow(null),
5289
5301
  });
5290
5302
  }
5291
5303
 
@@ -5357,20 +5369,20 @@ class OrderPlatformModel {
5357
5369
  static Store() {
5358
5370
  return Joi.object({
5359
5371
  address1: Joi.string().allow("").required(),
5360
- address2: Joi.string().allow(""),
5361
- alohomora_user_id: Joi.number(),
5372
+ address2: Joi.string().allow("").allow(null),
5373
+ alohomora_user_id: Joi.number().allow(null),
5362
5374
  brand_id: Joi.any(),
5363
5375
  brand_store_tags: Joi.array().items(Joi.string().allow("")),
5364
5376
  city: Joi.string().allow("").required(),
5365
- code: Joi.string().allow(""),
5377
+ code: Joi.string().allow("").allow(null),
5366
5378
  company_id: Joi.number().required(),
5367
5379
  contact_person: Joi.string().allow("").required(),
5368
5380
  country: Joi.string().allow("").required(),
5369
5381
  created_at: Joi.string().allow("").required(),
5370
5382
  fulfillment_channel: Joi.string().allow("").required(),
5371
- is_active: Joi.boolean(),
5372
- is_archived: Joi.boolean(),
5373
- 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),
5374
5386
  latitude: Joi.number().required(),
5375
5387
  location_type: Joi.string().allow("").required(),
5376
5388
  login_username: Joi.string().allow("").required(),
@@ -5379,9 +5391,9 @@ class OrderPlatformModel {
5379
5391
  mall_name: Joi.string().allow("").allow(null),
5380
5392
  meta: OrderPlatformModel.StoreMeta().required(),
5381
5393
  name: Joi.string().allow("").required(),
5382
- order_integration_id: Joi.string().allow(""),
5383
- packaging_material_count: Joi.number(),
5384
- 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),
5385
5397
  phone: Joi.number().required(),
5386
5398
  pincode: Joi.string().allow("").required(),
5387
5399
  s_id: Joi.string().allow("").required(),
@@ -5401,13 +5413,13 @@ class OrderPlatformModel {
5401
5413
  address_type: Joi.string().allow("").required(),
5402
5414
  address1: Joi.string().allow("").required(),
5403
5415
  address2: Joi.string().allow(""),
5404
- area: Joi.string().allow(""),
5416
+ area: Joi.string().allow("").allow(null),
5405
5417
  city: Joi.string().allow("").required(),
5406
5418
  contact_person: Joi.string().allow("").required(),
5407
5419
  country: Joi.string().allow("").required(),
5408
5420
  country_code: Joi.string().allow("").required(),
5409
5421
  created_at: Joi.string().allow("").required(),
5410
- email: Joi.string().allow(""),
5422
+ email: Joi.string().allow("").allow(null),
5411
5423
  landmark: Joi.string().allow(""),
5412
5424
  latitude: Joi.number().required(),
5413
5425
  longitude: Joi.number().required(),
@@ -5415,7 +5427,7 @@ class OrderPlatformModel {
5415
5427
  pincode: Joi.number().required(),
5416
5428
  state: Joi.string().allow("").required(),
5417
5429
  updated_at: Joi.string().allow("").required(),
5418
- version: Joi.string().allow(""),
5430
+ version: Joi.string().allow("").allow(null),
5419
5431
  });
5420
5432
  }
5421
5433
 
@@ -5430,16 +5442,16 @@ class OrderPlatformModel {
5430
5442
  static StoreEinvoice() {
5431
5443
  return Joi.object({
5432
5444
  enabled: Joi.boolean().required(),
5433
- password: Joi.string().allow(""),
5434
- user: Joi.string().allow(""),
5435
- 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),
5436
5448
  });
5437
5449
  }
5438
5450
 
5439
5451
  /** @returns {StoreEwaybill} */
5440
5452
  static StoreEwaybill() {
5441
5453
  return Joi.object({
5442
- enabled: Joi.boolean(),
5454
+ enabled: Joi.boolean().allow(null),
5443
5455
  });
5444
5456
  }
5445
5457
 
@@ -5454,15 +5466,15 @@ class OrderPlatformModel {
5454
5466
  /** @returns {StoreMeta} */
5455
5467
  static StoreMeta() {
5456
5468
  return Joi.object({
5457
- additional_contact_details: Joi.any(),
5469
+ additional_contact_details: Joi.any().allow(null),
5458
5470
  display_name: Joi.string().allow("").required(),
5459
5471
  documents: OrderPlatformModel.StoreDocuments(),
5460
5472
  einvoice_portal_details: OrderPlatformModel.EInvoicePortalDetails(),
5461
- ewaybill_portal_details: Joi.any(),
5473
+ ewaybill_portal_details: Joi.any().allow(null),
5462
5474
  gst_credentials: OrderPlatformModel.StoreGstCredentials().required(),
5463
- gst_number: Joi.string().allow(""),
5475
+ gst_number: Joi.string().allow("").allow(null),
5464
5476
  notification_emails: Joi.array().items(Joi.string().allow("")),
5465
- product_return_config: Joi.any(),
5477
+ product_return_config: Joi.any().allow(null),
5466
5478
  stage: Joi.string().allow("").required(),
5467
5479
  timing: Joi.array().items(Joi.any()),
5468
5480
  });
@@ -5551,25 +5563,25 @@ class OrderPlatformModel {
5551
5563
  /** @returns {TrackingList} */
5552
5564
  static TrackingList() {
5553
5565
  return Joi.object({
5554
- is_current: Joi.boolean(),
5555
- is_passed: Joi.boolean(),
5566
+ is_current: Joi.boolean().allow(null),
5567
+ is_passed: Joi.boolean().allow(null),
5556
5568
  status: Joi.string().allow("").required(),
5557
5569
  text: Joi.string().allow("").required(),
5558
- time: Joi.string().allow(""),
5570
+ time: Joi.string().allow("").allow(null),
5559
5571
  });
5560
5572
  }
5561
5573
 
5562
5574
  /** @returns {TransactionData} */
5563
5575
  static TransactionData() {
5564
5576
  return Joi.object({
5565
- amount_paid: Joi.number(),
5566
- currency: Joi.string().allow(""),
5567
- entity: Joi.string().allow(""),
5568
- payment_id: Joi.string().allow(""),
5569
- status: Joi.string().allow(""),
5570
- terminal_id: Joi.string().allow(""),
5571
- transaction_id: Joi.string().allow(""),
5572
- 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),
5573
5585
  });
5574
5586
  }
5575
5587
 
@@ -5652,15 +5664,15 @@ class OrderPlatformModel {
5652
5664
  /** @returns {UserDataInfo} */
5653
5665
  static UserDataInfo() {
5654
5666
  return Joi.object({
5655
- avis_user_id: Joi.string().allow(""),
5667
+ avis_user_id: Joi.string().allow("").allow(null),
5656
5668
  email: Joi.string().allow("").allow(null),
5657
- first_name: Joi.string().allow(""),
5669
+ first_name: Joi.string().allow("").allow(null),
5658
5670
  gender: Joi.string().allow("").allow(null),
5659
- is_anonymous_user: Joi.boolean(),
5660
- last_name: Joi.string().allow(""),
5671
+ is_anonymous_user: Joi.boolean().allow(null),
5672
+ last_name: Joi.string().allow("").allow(null),
5661
5673
  mobile: Joi.string().allow("").allow(null),
5662
- name: Joi.string().allow(""),
5663
- uid: Joi.number(),
5674
+ name: Joi.string().allow("").allow(null),
5675
+ uid: Joi.number().allow(null),
5664
5676
  });
5665
5677
  }
5666
5678
 
@@ -5668,13 +5680,13 @@ class OrderPlatformModel {
5668
5680
  static UserDetailsData() {
5669
5681
  return Joi.object({
5670
5682
  address: Joi.string().allow("").required(),
5671
- address_type: Joi.string().allow(""),
5672
- address1: Joi.string().allow(""),
5673
- 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),
5674
5686
  city: Joi.string().allow("").required(),
5675
5687
  country: Joi.string().allow("").required(),
5676
- email: Joi.string().allow(""),
5677
- landmark: Joi.string().allow(""),
5688
+ email: Joi.string().allow("").allow(null),
5689
+ landmark: Joi.string().allow("").allow(null),
5678
5690
  name: Joi.string().allow("").required(),
5679
5691
  phone: Joi.string().allow("").required(),
5680
5692
  pincode: Joi.string().allow("").required(),
@@ -5722,9 +5734,9 @@ class OrderPlatformModel {
5722
5734
  /** @returns {Weight} */
5723
5735
  static Weight() {
5724
5736
  return Joi.object({
5725
- is_default: Joi.boolean(),
5726
- shipping: Joi.number(),
5727
- unit: Joi.string().allow(""),
5737
+ is_default: Joi.boolean().allow(null),
5738
+ shipping: Joi.number().allow(null),
5739
+ unit: Joi.string().allow("").allow(null),
5728
5740
  });
5729
5741
  }
5730
5742
  }