@gofynd/fdk-client-javascript 3.12.0 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/platform/Order/OrderPlatformClient.d.ts +1 -1
- package/sdk/platform/Order/OrderPlatformClient.js +1 -1
- package/sdk/platform/Order/OrderPlatformModel.d.ts +232 -207
- package/sdk/platform/Order/OrderPlatformModel.js +113 -104
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +16 -4
- package/sdk/platform/Order/OrderPlatformValidator.js +8 -2
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +14 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +85 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -1
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +16 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +861 -178
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +534 -84
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +5 -0
- package/sdk/public/Webhook/WebhookPublicModel.js +2 -0
|
@@ -240,7 +240,7 @@ export = OrderPlatformModel;
|
|
|
240
240
|
* bag, used to identify and reference a particular product in a list. This
|
|
241
241
|
* helps in pinpointing the exact item being updated or processed.
|
|
242
242
|
* @property {string} [identifier] - A unique string that serves as the
|
|
243
|
-
* product
|
|
243
|
+
* product's identifier, such as a SKU, barcode, or another distinct code.
|
|
244
244
|
* This ensures the product is correctly identified and distinguished from
|
|
245
245
|
* other items in the system.
|
|
246
246
|
* @property {number} [quantity] - The quantity of the product or item,
|
|
@@ -2262,7 +2262,7 @@ export = OrderPlatformModel;
|
|
|
2262
2262
|
* associated with a unique processing flow. For example:
|
|
2263
2263
|
*
|
|
2264
2264
|
* - "HomeDelivery": The order goes through all the steps needed for delivery,
|
|
2265
|
-
* from being packed to arriving at the customer
|
|
2265
|
+
* from being packed to arriving at the customer's address.
|
|
2266
2266
|
* - "PickAtStore": The order is prepared for pickup at the store, skipping
|
|
2267
2267
|
* shipping steps to make it ready faster for the customer to collect in person.
|
|
2268
2268
|
* - "Digital": This order type likely refers to orders that involve digital goods
|
|
@@ -2582,57 +2582,66 @@ export = OrderPlatformModel;
|
|
|
2582
2582
|
*/
|
|
2583
2583
|
/**
|
|
2584
2584
|
* @typedef PaymentMethodGatewaySchema
|
|
2585
|
-
* @property {string} name - Payment
|
|
2585
|
+
* @property {string} name - Payment gateway name e.g., Razorpay, Stripe, etc.
|
|
2586
2586
|
* @property {string} [logo]
|
|
2587
2587
|
*/
|
|
2588
2588
|
/**
|
|
2589
2589
|
* @typedef SubModeOfPaymentSchema
|
|
2590
|
-
* @property {string} name - Name of the
|
|
2590
|
+
* @property {string} name - Name of the sub-mode of payment. For example, if
|
|
2591
|
+
* the payment mode is 'Paytm', a sub-mode could be 'Paytm Wallet'.
|
|
2591
2592
|
*/
|
|
2592
2593
|
/**
|
|
2593
2594
|
* @typedef PaymentMethodModeOfPaymentSchema
|
|
2594
|
-
* @property {string} name - Payment
|
|
2595
|
-
*
|
|
2595
|
+
* @property {string} name - Payment mode name e.g., Credit Card, Debit Card,
|
|
2596
|
+
* Net Banking, Wallet, etc.
|
|
2597
|
+
* @property {string} slug - Slug of the payment mode e.g., cc, dc, nb, wl, etc.
|
|
2596
2598
|
* @property {SubModeOfPaymentSchema} [sub_mode_of_payment]
|
|
2597
2599
|
*/
|
|
2598
2600
|
/**
|
|
2599
2601
|
* @typedef PaymentMethodTransactionPartySchema
|
|
2600
|
-
* @property {string} refund_bearer - Entity responsible for
|
|
2601
|
-
*
|
|
2602
|
-
*
|
|
2602
|
+
* @property {string} refund_bearer - Entity responsible for refunding the
|
|
2603
|
+
* amount paid by the customer
|
|
2604
|
+
* @property {string} collection_bearer - Entity responsible for collection of
|
|
2605
|
+
* amount paid by the customer
|
|
2603
2606
|
*/
|
|
2604
2607
|
/**
|
|
2605
2608
|
* @typedef LineItemPaymentMethodSchema
|
|
2606
2609
|
* @property {PaymentMethodGatewaySchema} [gateway]
|
|
2607
2610
|
* @property {PaymentMethodModeOfPaymentSchema} [mode_of_payment]
|
|
2608
|
-
* @property {number} [amount_paid] - Total
|
|
2611
|
+
* @property {number} [amount_paid] - Total amount paid by this payment method
|
|
2609
2612
|
* @property {string} [payment_identifier] - Transaction id
|
|
2610
2613
|
* @property {PaymentMethodTransactionPartySchema} [transaction_party]
|
|
2611
2614
|
*/
|
|
2612
2615
|
/**
|
|
2613
2616
|
* @typedef BundleDetailsSchema
|
|
2614
|
-
* @property {boolean} [is_base] -
|
|
2617
|
+
* @property {boolean} [is_base] - This serves as the base item, with all other
|
|
2618
|
+
* items acting as child elements within the bundle to display the hero
|
|
2619
|
+
* product prominently at the top.
|
|
2615
2620
|
* @property {string[]} [images] - An array of image URLs associated with the bundle.
|
|
2616
|
-
* @property {string} [group_id] - Unique group identifier for the bundle
|
|
2621
|
+
* @property {string} [group_id] - Unique group identifier for the bundle
|
|
2622
|
+
* generated by seller to club the articles
|
|
2617
2623
|
* @property {string} [name] - Name of the bundle.
|
|
2618
|
-
* @property {string} [item_type] - Type of the item
|
|
2619
|
-
* @property {number} [item_id] - Unique identifier
|
|
2624
|
+
* @property {string} [item_type] - Type of the bundle item
|
|
2625
|
+
* @property {number} [item_id] - Unique identifier of the item.
|
|
2620
2626
|
* @property {string} [item_code] - Item code for the item.
|
|
2621
2627
|
* @property {string} [item_name] - Name of the item.
|
|
2622
2628
|
* @property {string} [seller_identifier] - Identifier for the seller of the bundle.
|
|
2623
|
-
* @property {number} [bundle_article_quantity] -
|
|
2629
|
+
* @property {number} [bundle_article_quantity] - In orders with multiple
|
|
2630
|
+
* quantities of the same line item, the line item count remains constant, but
|
|
2631
|
+
* multiple bundles can exist. To distinguish between these bundles, the
|
|
2632
|
+
* article quantity must be used.
|
|
2624
2633
|
* @property {string} [brand_name] - Identifier for the brand name.
|
|
2625
2634
|
* @property {string} [size] - Size associated with the bundle item.
|
|
2626
2635
|
*/
|
|
2627
2636
|
/**
|
|
2628
2637
|
* @typedef LineItemMonetaryValuesSchema
|
|
2629
|
-
* @property {number} amount_paid - Amount
|
|
2638
|
+
* @property {number} amount_paid - Amount paid by the customer
|
|
2630
2639
|
* @property {number} price_effective - The final effective price after applying
|
|
2631
2640
|
* discounts, promotional offers, and adjustments.
|
|
2632
2641
|
* @property {number} [discount] - Discount amount apart from promo and coupon discount
|
|
2633
2642
|
* @property {number} price_marked - The original marked price of the item
|
|
2634
2643
|
* before any discounts or promotions.
|
|
2635
|
-
* @property {number} [coupon_discount] - Coupon
|
|
2644
|
+
* @property {number} [coupon_discount] - Coupon discount applied for this article
|
|
2636
2645
|
* @property {number} [cod_charges] - Cash on Delivery Charges Applied for this Article.
|
|
2637
2646
|
* @property {number} [promo_discount] - Promotion Discount
|
|
2638
2647
|
* @property {number} [gift_price] - Gift Price
|
|
@@ -2640,12 +2649,12 @@ export = OrderPlatformModel;
|
|
|
2640
2649
|
*/
|
|
2641
2650
|
/**
|
|
2642
2651
|
* @typedef DimensionSchema
|
|
2643
|
-
* @property {number} height - Height of the
|
|
2652
|
+
* @property {number} height - Height of the product.
|
|
2644
2653
|
* @property {number} length - Length of the product.
|
|
2654
|
+
* @property {number} width - Width of the product
|
|
2645
2655
|
* @property {boolean} is_default - Not Modified, meaning these are same as
|
|
2646
2656
|
* product uploaded while loading catelogue.
|
|
2647
2657
|
* @property {string} unit - Unit of the measurement used.
|
|
2648
|
-
* @property {number} width - Width of the Product.
|
|
2649
2658
|
*/
|
|
2650
2659
|
/**
|
|
2651
2660
|
* @typedef GiftDetailsSchema
|
|
@@ -2672,14 +2681,20 @@ export = OrderPlatformModel;
|
|
|
2672
2681
|
*/
|
|
2673
2682
|
/**
|
|
2674
2683
|
* @typedef CPOptionsSchema
|
|
2675
|
-
* @property {string} [extension_id]
|
|
2676
|
-
*
|
|
2684
|
+
* @property {string} [extension_id] - A string that uniquely identifies the
|
|
2685
|
+
* courier partner extension. Refer <a
|
|
2686
|
+
* href='/commerce/sdk/latest/platform/company/serviceability#getCourierPartnerAccount'>Get
|
|
2687
|
+
* courier partner account</a> to get the extension id.
|
|
2688
|
+
* @property {string} [scheme_id] - A string that specifies the unique
|
|
2689
|
+
* identifier for the scheme associated with the account. Refer <a
|
|
2690
|
+
* href='/commerce/sdk/latest/platform/company/serviceability#getCourierPartnerAccount'>Get
|
|
2691
|
+
* courier partner account</a> to get the scheme id.
|
|
2677
2692
|
* @property {CPAreaCodeSchema} [area_code]
|
|
2678
2693
|
* @property {boolean} [is_self_ship]
|
|
2679
2694
|
* @property {number} [max_reattempts_for_delivery_allowed]
|
|
2680
2695
|
* @property {string} [cp_sort_key] - A sorting key used for categorizing or
|
|
2681
2696
|
* sorting courier partners, often related to their performance, costs, or
|
|
2682
|
-
* some other factor.
|
|
2697
|
+
* some other factor, (example: E-17A-4, E-17A-6, etc.).
|
|
2683
2698
|
* @property {string} [name] - The name of the courier partner or the delivery
|
|
2684
2699
|
* agent handling the shipment.
|
|
2685
2700
|
* @property {CPRiderDetailsSchema} [rider_details]
|
|
@@ -2692,7 +2707,7 @@ export = OrderPlatformModel;
|
|
|
2692
2707
|
* @typedef CourierPartnerDetailsSchema
|
|
2693
2708
|
* @property {string} [cp_sort_key] - A sorting key used for categorizing or
|
|
2694
2709
|
* sorting courier partners, often related to their performance, costs, or
|
|
2695
|
-
* some other factor.
|
|
2710
|
+
* some other factor. (example: E-17A-4, E-17A-6, etc.).
|
|
2696
2711
|
* @property {CPOptionsSchema[]} [cp_options] - Other Available CP's
|
|
2697
2712
|
* @property {string} scheme_id
|
|
2698
2713
|
* @property {string} name - The name of the courier partner or the delivery
|
|
@@ -2704,7 +2719,7 @@ export = OrderPlatformModel;
|
|
|
2704
2719
|
* @property {boolean} using_own_creds - Specifies weather the Seller's Creds or
|
|
2705
2720
|
* Fynd's Creds are being used.
|
|
2706
2721
|
* @property {number} [max_reattempts_for_delivery_allowed] - Reattempts Allowed
|
|
2707
|
-
* (required for
|
|
2722
|
+
* (required for NDR)
|
|
2708
2723
|
* @property {CPTatToDeliverTheShipmentSchema} [tat_to_deliver_the_shipment]
|
|
2709
2724
|
* @property {boolean} [is_self_ship] - Is every logistic action handled by seller.
|
|
2710
2725
|
*/
|
|
@@ -2737,28 +2752,28 @@ export = OrderPlatformModel;
|
|
|
2737
2752
|
* can be dispatched (e.g., the earliest possible dispatch date).
|
|
2738
2753
|
* @property {string} [dispatch_by_date] - The latest date the order must be
|
|
2739
2754
|
* dispatched to meet delivery expectations.
|
|
2740
|
-
* @property {string} [confirm_by_date] - The deadline by which the
|
|
2741
|
-
*
|
|
2755
|
+
* @property {string} [confirm_by_date] - The deadline by which the seller must
|
|
2756
|
+
* confirm the order.
|
|
2742
2757
|
* @property {CustomerPickupSlotSchema} [customer_pickup_slot]
|
|
2743
2758
|
* @property {string} [pack_by_date] - The latest time the package should be
|
|
2744
2759
|
* packed and ready to dispatch.
|
|
2745
2760
|
*/
|
|
2746
2761
|
/**
|
|
2747
2762
|
* @typedef LineItemSchema
|
|
2748
|
-
* @property {string} [seller_identifier] - Identifier
|
|
2749
|
-
* @property {LineItemPaymentMethodSchema[]} payment_methods - Payment
|
|
2750
|
-
*
|
|
2763
|
+
* @property {string} [seller_identifier] - Identifier of the seller selling the item.
|
|
2764
|
+
* @property {LineItemPaymentMethodSchema[]} payment_methods - Payment methods
|
|
2765
|
+
* used to sell this order.
|
|
2751
2766
|
* @property {LineItemMonetaryValuesSchema} monetary_values
|
|
2752
2767
|
* @property {GiftDetailsSchema} [gift_details]
|
|
2753
|
-
* @property {string} [special_instructions] -
|
|
2754
|
-
*
|
|
2768
|
+
* @property {string} [special_instructions] - These instructions are added by
|
|
2769
|
+
* the customer at checkout for the seller's reference.
|
|
2755
2770
|
* @property {DimensionSchema} [dimension]
|
|
2756
2771
|
* @property {number} [quantity] - Quantity of the Line Item
|
|
2757
2772
|
* @property {string} [external_line_id] - Unique identifier for the LineItem as
|
|
2758
2773
|
* assigned by an external system. You can use this to map external id to
|
|
2759
2774
|
* Fynd's generated id
|
|
2760
2775
|
* @property {BundleDetailsSchema} [bundle_details]
|
|
2761
|
-
* @property {Object} [meta] -
|
|
2776
|
+
* @property {Object} [meta] - Contains metadata related to the shipment
|
|
2762
2777
|
*/
|
|
2763
2778
|
/**
|
|
2764
2779
|
* @typedef CreateOrderShipmentSchema
|
|
@@ -2767,20 +2782,17 @@ export = OrderPlatformModel;
|
|
|
2767
2782
|
* after receiving an order creation request.
|
|
2768
2783
|
* @property {LifecycleMessageSchema[]} [shipment_lifecycle_messages] - List of
|
|
2769
2784
|
* general-purpose messages shown across different points in the shipment's
|
|
2770
|
-
* journey at Order Details
|
|
2785
|
+
* journey at Order Details screen.
|
|
2771
2786
|
* @property {string[]} [tags] - Tags that can be attached to the shipment for
|
|
2772
2787
|
* filtering and categorization.
|
|
2773
2788
|
* @property {string} [type] - The shipment type defining the fulfillment method
|
|
2774
2789
|
* and processing flow. Each type determines the specific journey a shipment
|
|
2775
2790
|
* will follow based on operational needs and customer preferences:
|
|
2776
|
-
*
|
|
2777
|
-
*
|
|
2778
|
-
*
|
|
2779
|
-
*
|
|
2780
|
-
*
|
|
2781
|
-
* - "Digital": Orders involving digital goods or services (e.g., software,
|
|
2782
|
-
* e-books, subscriptions) delivered electronically.
|
|
2783
|
-
*
|
|
2791
|
+
* "HomeDelivery": Standard delivery to the customer's address, undergoing all
|
|
2792
|
+
* typical state transitions from processing to final delivery. "PickAtStore":
|
|
2793
|
+
* Order prepared for in-store pickup, bypassing traditional shipping stages
|
|
2794
|
+
* for direct handover to the customer. "Digital": Orders involving digital
|
|
2795
|
+
* goods or services (e.g., software, e-books, subscriptions) delivered electronically.
|
|
2784
2796
|
* @property {FulfillmentOptionSchema} [fulfillment_option]
|
|
2785
2797
|
* @property {string} [external_shipment_id] - Unique identifier for the
|
|
2786
2798
|
* shipment as assigned by an external system. Use this to map the external ID
|
|
@@ -2802,9 +2814,10 @@ export = OrderPlatformModel;
|
|
|
2802
2814
|
*/
|
|
2803
2815
|
/**
|
|
2804
2816
|
* @typedef OrderingCurrencySchema
|
|
2805
|
-
* @property {string} currency_code - The
|
|
2806
|
-
*
|
|
2807
|
-
*
|
|
2817
|
+
* @property {string} currency_code - The <a
|
|
2818
|
+
* href='https://www.iso.org/iso-4217-currency-codes.html'>ISO 4217</a>
|
|
2819
|
+
* currency code, such as 'INR' for Indian Rupee. This field represents the
|
|
2820
|
+
* standardized three-letter code of a currency.
|
|
2808
2821
|
* @property {string} currency_symbol - The symbol representing the currency,
|
|
2809
2822
|
* such as '₹' for Indian Rupee. This is used for display purposes alongside
|
|
2810
2823
|
* currency amounts.
|
|
@@ -2830,7 +2843,6 @@ export = OrderPlatformModel;
|
|
|
2830
2843
|
/**
|
|
2831
2844
|
* @typedef CouponOwnershipSchema
|
|
2832
2845
|
* @property {string} payable_category - Indicates who issued the coupon
|
|
2833
|
-
* (MARKETPLACE or SELLER).
|
|
2834
2846
|
*/
|
|
2835
2847
|
/**
|
|
2836
2848
|
* @typedef CouponSchema
|
|
@@ -2844,40 +2856,38 @@ export = OrderPlatformModel;
|
|
|
2844
2856
|
*/
|
|
2845
2857
|
/**
|
|
2846
2858
|
* @typedef BillingDetailsSchema
|
|
2847
|
-
* @property {string} [first_name] - First
|
|
2859
|
+
* @property {string} [first_name] - First name of the customer
|
|
2848
2860
|
* @property {string} [phone_code] - Country phone code ex: +91
|
|
2849
|
-
* @property {string} [country] - Country of the
|
|
2850
|
-
* @property {string} [city] - City of the
|
|
2851
|
-
* @property {string} [pincode] - Pincode of the
|
|
2852
|
-
* @property {string} [last_name] - Last
|
|
2853
|
-
* @property {string} [mobile_number] - Primary
|
|
2854
|
-
* @property {string} [email] - Primary
|
|
2855
|
-
* @property {string} [state] - State of the
|
|
2856
|
-
* @property {string} [alternate_mobile_number] - Alternate
|
|
2857
|
-
* @property {string} [address] -
|
|
2858
|
-
* @property {string} [middle_name] -
|
|
2859
|
-
* @property {string} [title] -
|
|
2860
|
-
* @property {string} [house_no] -
|
|
2861
|
-
* number of the customer.
|
|
2861
|
+
* @property {string} [country] - Country of the customer
|
|
2862
|
+
* @property {string} [city] - City of the customer
|
|
2863
|
+
* @property {string} [pincode] - Pincode of the customer
|
|
2864
|
+
* @property {string} [last_name] - Last name of the customer
|
|
2865
|
+
* @property {string} [mobile_number] - Primary phone number of the customer
|
|
2866
|
+
* @property {string} [email] - Primary email of the customer
|
|
2867
|
+
* @property {string} [state] - State of the customer
|
|
2868
|
+
* @property {string} [alternate_mobile_number] - Alternate mobile number
|
|
2869
|
+
* @property {string} [address] - Billing address of the customer
|
|
2870
|
+
* @property {string} [middle_name] - Customer's middle name.
|
|
2871
|
+
* @property {string} [title] - Customer's title or prefix.
|
|
2872
|
+
* @property {string} [house_no] - House or apartment number of the customer.
|
|
2862
2873
|
* @property {GeoLocationSchema} [geo_location]
|
|
2863
|
-
* @property {string} [gender] - Gender of
|
|
2864
|
-
* @property {string} [landmark] -
|
|
2865
|
-
* point near the customer's location.
|
|
2866
|
-
* @property {string} [address_type] - A string representing the address type in
|
|
2867
|
-
* the seller's system.
|
|
2868
|
-
* @property {string} [state_code] - A string representing the state code of the
|
|
2869
|
-
* customer's location.
|
|
2870
|
-
* @property {string} [floor_no] - A string representing the floor number of the
|
|
2874
|
+
* @property {string} [gender] - Gender of customer
|
|
2875
|
+
* @property {string} [landmark] - Landmark or reference point near the
|
|
2871
2876
|
* customer's location.
|
|
2877
|
+
* @property {string} [address_type] - Address type in the seller's system.
|
|
2878
|
+
* @property {string} [state_code] - State code of the customer's location.
|
|
2879
|
+
* @property {string} [floor_no] - Floor number of the customer's location.
|
|
2872
2880
|
* @property {string} [alternate_email] - Alternate Email Address
|
|
2873
|
-
* @property {string} [address1] -
|
|
2874
|
-
* @property {string} [address2] -
|
|
2881
|
+
* @property {string} [address1] - First line of the address.
|
|
2882
|
+
* @property {string} [address2] - Second line of the address.
|
|
2875
2883
|
* @property {string} [country_iso_code] - Specifies the country's unique
|
|
2876
|
-
* identifier
|
|
2884
|
+
* identifier allowing the ISO 3166-1 alpha-2 standard. This two-letter code
|
|
2877
2885
|
* is crucial for distinguishing countries in international transactions, data
|
|
2878
2886
|
* processing, and shipping logistics.
|
|
2879
|
-
* @property {string} [user_id] - The unique identifier assigned to the
|
|
2880
|
-
*
|
|
2887
|
+
* @property {string} [user_id] - The unique identifier assigned to the
|
|
2888
|
+
* customer. Refer <a
|
|
2889
|
+
* href='/commerce/sdk/latest/platform/application/user#customer'>Customer</a>
|
|
2890
|
+
* to get more details.
|
|
2881
2891
|
* @property {string} [area_code] - Area Code
|
|
2882
2892
|
* @property {string} [area_code_slug]
|
|
2883
2893
|
* @property {string} [country_phone_code]
|
|
@@ -2888,49 +2898,48 @@ export = OrderPlatformModel;
|
|
|
2888
2898
|
*/
|
|
2889
2899
|
/**
|
|
2890
2900
|
* @typedef ShippingDetailsSchema
|
|
2891
|
-
* @property {string} [first_name] - First
|
|
2901
|
+
* @property {string} [first_name] - First name of the customer
|
|
2892
2902
|
* @property {string} [phone_code] - Country phone code ex: +91
|
|
2893
|
-
* @property {string} [country] - Country of the
|
|
2894
|
-
* @property {string} [city] - City of the
|
|
2895
|
-
* @property {string} [pincode] - Pincode of the
|
|
2896
|
-
* @property {string} [last_name] - Last
|
|
2897
|
-
* @property {string} [mobile_number] - Primary
|
|
2898
|
-
* @property {string} [email] - Primary
|
|
2899
|
-
* @property {string} [state] - State of the
|
|
2900
|
-
* @property {string} [alternate_mobile_number] - Alternate
|
|
2901
|
-
* @property {string} [address] -
|
|
2902
|
-
* @property {string} [middle_name] -
|
|
2903
|
-
* @property {string} [title] -
|
|
2904
|
-
* @property {string} [house_no] -
|
|
2905
|
-
* number of the customer.
|
|
2903
|
+
* @property {string} [country] - Country of the customer
|
|
2904
|
+
* @property {string} [city] - City of the customer
|
|
2905
|
+
* @property {string} [pincode] - Pincode of the customer
|
|
2906
|
+
* @property {string} [last_name] - Last name of the customer
|
|
2907
|
+
* @property {string} [mobile_number] - Primary phone number of the customer
|
|
2908
|
+
* @property {string} [email] - Primary email of the customer
|
|
2909
|
+
* @property {string} [state] - State of the customer
|
|
2910
|
+
* @property {string} [alternate_mobile_number] - Alternate mobile number
|
|
2911
|
+
* @property {string} [address] - Shipping address of the customer
|
|
2912
|
+
* @property {string} [middle_name] - Customer's middle name.
|
|
2913
|
+
* @property {string} [title] - Customer's title or prefix.
|
|
2914
|
+
* @property {string} [house_no] - House or apartment number of the customer.
|
|
2906
2915
|
* @property {GeoLocationSchema} [geo_location]
|
|
2907
|
-
* @property {string} [gender] - Gender of
|
|
2908
|
-
* @property {string} [landmark] -
|
|
2909
|
-
*
|
|
2916
|
+
* @property {string} [gender] - Gender of customer
|
|
2917
|
+
* @property {string} [landmark] - Landmark or reference point near the
|
|
2918
|
+
* customer's location.
|
|
2910
2919
|
* @property {string} [address_type] - A string representing the address type in
|
|
2911
2920
|
* the seller's system.
|
|
2912
|
-
* @property {string} [state_code] -
|
|
2913
|
-
*
|
|
2914
|
-
* @property {string} [floor_no] - A string representing the floor number of the
|
|
2915
|
-
* customer's location.
|
|
2921
|
+
* @property {string} [state_code] - State code of the customer's location.
|
|
2922
|
+
* @property {string} [floor_no] - Floor number of the customer's location.
|
|
2916
2923
|
* @property {string} [alternate_email] - Alternate Email Address
|
|
2917
|
-
* @property {string} [address1] -
|
|
2918
|
-
* @property {string} [address2] -
|
|
2924
|
+
* @property {string} [address1] - First line of the address
|
|
2925
|
+
* @property {string} [address2] - Second line of the address
|
|
2919
2926
|
* @property {string} [country_iso_code] - Specifies the country's unique
|
|
2920
|
-
* identifier
|
|
2927
|
+
* identifier allowing the ISO 3166-1 alpha-2 standard. This two-letter code
|
|
2921
2928
|
* is crucial for distinguishing countries in international transactions, data
|
|
2922
2929
|
* processing, and shipping logistics.
|
|
2923
|
-
* @property {string} [user_id] - The unique identifier assigned to the
|
|
2924
|
-
*
|
|
2930
|
+
* @property {string} [user_id] - The unique identifier assigned to the
|
|
2931
|
+
* customer. Refer <a
|
|
2932
|
+
* href='/commerce/sdk/latest/platform/application/user#customer'>Customer</a>
|
|
2933
|
+
* in platform documentation to get more details. details.
|
|
2925
2934
|
* @property {string} [area_code] - Area Code
|
|
2926
2935
|
* @property {string} [area_code_slug]
|
|
2927
2936
|
* @property {string} [country_phone_code]
|
|
2928
2937
|
*/
|
|
2929
2938
|
/**
|
|
2930
2939
|
* @typedef UserDetailsSchema
|
|
2931
|
-
* @property {string} [gstin] - The
|
|
2940
|
+
* @property {string} [gstin] - The customer's GSTIN (Goods and Services Tax
|
|
2932
2941
|
* Identification Number).
|
|
2933
|
-
* @property {string} [pan_no] - The
|
|
2942
|
+
* @property {string} [pan_no] - The customer's PAN (Permanent Account Number).
|
|
2934
2943
|
*/
|
|
2935
2944
|
/**
|
|
2936
2945
|
* @typedef LifecycleMessageSchema
|
|
@@ -2940,8 +2949,8 @@ export = OrderPlatformModel;
|
|
|
2940
2949
|
* message bar.
|
|
2941
2950
|
* @property {string[]} states - List of OMS states at which the message should
|
|
2942
2951
|
* be visible.
|
|
2943
|
-
* @property {number} priority - Determines the message display sequence, with
|
|
2944
|
-
* being the highest priority.
|
|
2952
|
+
* @property {number} priority - Determines the message display sequence, with
|
|
2953
|
+
* '1' being the highest priority.
|
|
2945
2954
|
*/
|
|
2946
2955
|
/**
|
|
2947
2956
|
* @typedef CreateOrderRequestSchema
|
|
@@ -2967,7 +2976,7 @@ export = OrderPlatformModel;
|
|
|
2967
2976
|
* order by an external system or service.
|
|
2968
2977
|
* @property {UserDetailsSchema} [user_details]
|
|
2969
2978
|
* @property {LifecycleMessageSchema[]} [order_lifecycle_messages] - List of
|
|
2970
|
-
* order lifecycle messages to be displayed to the
|
|
2979
|
+
* order lifecycle messages to be displayed to the seller at Order Details.
|
|
2971
2980
|
* @property {string} [channel_application_id] - Identifies the application from
|
|
2972
2981
|
* which the order was created. Pass this when it differs from the fulfilling
|
|
2973
2982
|
* company's application.
|
|
@@ -6013,7 +6022,7 @@ type ProductsDataUpdatesFilters = {
|
|
|
6013
6022
|
line_number?: number;
|
|
6014
6023
|
/**
|
|
6015
6024
|
* - A unique string that serves as the
|
|
6016
|
-
* product
|
|
6025
|
+
* product's identifier, such as a SKU, barcode, or another distinct code.
|
|
6017
6026
|
* This ensures the product is correctly identified and distinguished from
|
|
6018
6027
|
* other items in the system.
|
|
6019
6028
|
*/
|
|
@@ -9997,7 +10006,7 @@ type Filter = {
|
|
|
9997
10006
|
* associated with a unique processing flow. For example:
|
|
9998
10007
|
*
|
|
9999
10008
|
* - "HomeDelivery": The order goes through all the steps needed for delivery,
|
|
10000
|
-
* from being packed to arriving at the customer
|
|
10009
|
+
* from being packed to arriving at the customer's address.
|
|
10001
10010
|
* - "PickAtStore": The order is prepared for pickup at the store, skipping
|
|
10002
10011
|
* shipping steps to make it ready faster for the customer to collect in person.
|
|
10003
10012
|
* - "Digital": This order type likely refers to orders that involve digital goods
|
|
@@ -10664,7 +10673,7 @@ type FulfillmentOptionSchema = {
|
|
|
10664
10673
|
declare function PaymentMethodGatewaySchema(): PaymentMethodGatewaySchema;
|
|
10665
10674
|
type PaymentMethodGatewaySchema = {
|
|
10666
10675
|
/**
|
|
10667
|
-
* - Payment
|
|
10676
|
+
* - Payment gateway name e.g., Razorpay, Stripe, etc.
|
|
10668
10677
|
*/
|
|
10669
10678
|
name: string;
|
|
10670
10679
|
logo?: string;
|
|
@@ -10673,7 +10682,8 @@ type PaymentMethodGatewaySchema = {
|
|
|
10673
10682
|
declare function SubModeOfPaymentSchema(): SubModeOfPaymentSchema;
|
|
10674
10683
|
type SubModeOfPaymentSchema = {
|
|
10675
10684
|
/**
|
|
10676
|
-
* - Name of the
|
|
10685
|
+
* - Name of the sub-mode of payment. For example, if
|
|
10686
|
+
* the payment mode is 'Paytm', a sub-mode could be 'Paytm Wallet'.
|
|
10677
10687
|
*/
|
|
10678
10688
|
name: string;
|
|
10679
10689
|
};
|
|
@@ -10681,11 +10691,12 @@ type SubModeOfPaymentSchema = {
|
|
|
10681
10691
|
declare function PaymentMethodModeOfPaymentSchema(): PaymentMethodModeOfPaymentSchema;
|
|
10682
10692
|
type PaymentMethodModeOfPaymentSchema = {
|
|
10683
10693
|
/**
|
|
10684
|
-
* - Payment
|
|
10694
|
+
* - Payment mode name e.g., Credit Card, Debit Card,
|
|
10695
|
+
* Net Banking, Wallet, etc.
|
|
10685
10696
|
*/
|
|
10686
10697
|
name: string;
|
|
10687
10698
|
/**
|
|
10688
|
-
* - Slug of the
|
|
10699
|
+
* - Slug of the payment mode e.g., cc, dc, nb, wl, etc.
|
|
10689
10700
|
*/
|
|
10690
10701
|
slug: string;
|
|
10691
10702
|
sub_mode_of_payment?: SubModeOfPaymentSchema;
|
|
@@ -10694,12 +10705,13 @@ type PaymentMethodModeOfPaymentSchema = {
|
|
|
10694
10705
|
declare function PaymentMethodTransactionPartySchema(): PaymentMethodTransactionPartySchema;
|
|
10695
10706
|
type PaymentMethodTransactionPartySchema = {
|
|
10696
10707
|
/**
|
|
10697
|
-
* - Entity responsible for
|
|
10708
|
+
* - Entity responsible for refunding the
|
|
10709
|
+
* amount paid by the customer
|
|
10698
10710
|
*/
|
|
10699
10711
|
refund_bearer: string;
|
|
10700
10712
|
/**
|
|
10701
|
-
* - Entity responsible for collection
|
|
10702
|
-
*
|
|
10713
|
+
* - Entity responsible for collection of
|
|
10714
|
+
* amount paid by the customer
|
|
10703
10715
|
*/
|
|
10704
10716
|
collection_bearer: string;
|
|
10705
10717
|
};
|
|
@@ -10709,7 +10721,7 @@ type LineItemPaymentMethodSchema = {
|
|
|
10709
10721
|
gateway?: PaymentMethodGatewaySchema;
|
|
10710
10722
|
mode_of_payment?: PaymentMethodModeOfPaymentSchema;
|
|
10711
10723
|
/**
|
|
10712
|
-
* - Total
|
|
10724
|
+
* - Total amount paid by this payment method
|
|
10713
10725
|
*/
|
|
10714
10726
|
amount_paid?: number;
|
|
10715
10727
|
/**
|
|
@@ -10722,7 +10734,9 @@ type LineItemPaymentMethodSchema = {
|
|
|
10722
10734
|
declare function BundleDetailsSchema(): BundleDetailsSchema;
|
|
10723
10735
|
type BundleDetailsSchema = {
|
|
10724
10736
|
/**
|
|
10725
|
-
* -
|
|
10737
|
+
* - This serves as the base item, with all other
|
|
10738
|
+
* items acting as child elements within the bundle to display the hero
|
|
10739
|
+
* product prominently at the top.
|
|
10726
10740
|
*/
|
|
10727
10741
|
is_base?: boolean;
|
|
10728
10742
|
/**
|
|
@@ -10730,7 +10744,8 @@ type BundleDetailsSchema = {
|
|
|
10730
10744
|
*/
|
|
10731
10745
|
images?: string[];
|
|
10732
10746
|
/**
|
|
10733
|
-
* - Unique group identifier for the bundle
|
|
10747
|
+
* - Unique group identifier for the bundle
|
|
10748
|
+
* generated by seller to club the articles
|
|
10734
10749
|
*/
|
|
10735
10750
|
group_id?: string;
|
|
10736
10751
|
/**
|
|
@@ -10738,11 +10753,11 @@ type BundleDetailsSchema = {
|
|
|
10738
10753
|
*/
|
|
10739
10754
|
name?: string;
|
|
10740
10755
|
/**
|
|
10741
|
-
* - Type of the item
|
|
10756
|
+
* - Type of the bundle item
|
|
10742
10757
|
*/
|
|
10743
10758
|
item_type?: string;
|
|
10744
10759
|
/**
|
|
10745
|
-
* - Unique identifier
|
|
10760
|
+
* - Unique identifier of the item.
|
|
10746
10761
|
*/
|
|
10747
10762
|
item_id?: number;
|
|
10748
10763
|
/**
|
|
@@ -10758,7 +10773,10 @@ type BundleDetailsSchema = {
|
|
|
10758
10773
|
*/
|
|
10759
10774
|
seller_identifier?: string;
|
|
10760
10775
|
/**
|
|
10761
|
-
* -
|
|
10776
|
+
* - In orders with multiple
|
|
10777
|
+
* quantities of the same line item, the line item count remains constant, but
|
|
10778
|
+
* multiple bundles can exist. To distinguish between these bundles, the
|
|
10779
|
+
* article quantity must be used.
|
|
10762
10780
|
*/
|
|
10763
10781
|
bundle_article_quantity?: number;
|
|
10764
10782
|
/**
|
|
@@ -10774,7 +10792,7 @@ type BundleDetailsSchema = {
|
|
|
10774
10792
|
declare function LineItemMonetaryValuesSchema(): LineItemMonetaryValuesSchema;
|
|
10775
10793
|
type LineItemMonetaryValuesSchema = {
|
|
10776
10794
|
/**
|
|
10777
|
-
* - Amount
|
|
10795
|
+
* - Amount paid by the customer
|
|
10778
10796
|
*/
|
|
10779
10797
|
amount_paid: number;
|
|
10780
10798
|
/**
|
|
@@ -10792,7 +10810,7 @@ type LineItemMonetaryValuesSchema = {
|
|
|
10792
10810
|
*/
|
|
10793
10811
|
price_marked: number;
|
|
10794
10812
|
/**
|
|
10795
|
-
* - Coupon
|
|
10813
|
+
* - Coupon discount applied for this article
|
|
10796
10814
|
*/
|
|
10797
10815
|
coupon_discount?: number;
|
|
10798
10816
|
/**
|
|
@@ -10816,13 +10834,17 @@ type LineItemMonetaryValuesSchema = {
|
|
|
10816
10834
|
declare function DimensionSchema(): DimensionSchema;
|
|
10817
10835
|
type DimensionSchema = {
|
|
10818
10836
|
/**
|
|
10819
|
-
* - Height of the
|
|
10837
|
+
* - Height of the product.
|
|
10820
10838
|
*/
|
|
10821
10839
|
height: number;
|
|
10822
10840
|
/**
|
|
10823
10841
|
* - Length of the product.
|
|
10824
10842
|
*/
|
|
10825
10843
|
length: number;
|
|
10844
|
+
/**
|
|
10845
|
+
* - Width of the product
|
|
10846
|
+
*/
|
|
10847
|
+
width: number;
|
|
10826
10848
|
/**
|
|
10827
10849
|
* - Not Modified, meaning these are same as
|
|
10828
10850
|
* product uploaded while loading catelogue.
|
|
@@ -10832,10 +10854,6 @@ type DimensionSchema = {
|
|
|
10832
10854
|
* - Unit of the measurement used.
|
|
10833
10855
|
*/
|
|
10834
10856
|
unit: string;
|
|
10835
|
-
/**
|
|
10836
|
-
* - Width of the Product.
|
|
10837
|
-
*/
|
|
10838
|
-
width: number;
|
|
10839
10857
|
};
|
|
10840
10858
|
/** @returns {GiftDetailsSchema} */
|
|
10841
10859
|
declare function GiftDetailsSchema(): GiftDetailsSchema;
|
|
@@ -10873,7 +10891,19 @@ type CPTatToDeliverTheShipmentSchema = {
|
|
|
10873
10891
|
/** @returns {CPOptionsSchema} */
|
|
10874
10892
|
declare function CPOptionsSchema(): CPOptionsSchema;
|
|
10875
10893
|
type CPOptionsSchema = {
|
|
10894
|
+
/**
|
|
10895
|
+
* - A string that uniquely identifies the
|
|
10896
|
+
* courier partner extension. Refer <a
|
|
10897
|
+
* href='/commerce/sdk/latest/platform/company/serviceability#getCourierPartnerAccount'>Get
|
|
10898
|
+
* courier partner account</a> to get the extension id.
|
|
10899
|
+
*/
|
|
10876
10900
|
extension_id?: string;
|
|
10901
|
+
/**
|
|
10902
|
+
* - A string that specifies the unique
|
|
10903
|
+
* identifier for the scheme associated with the account. Refer <a
|
|
10904
|
+
* href='/commerce/sdk/latest/platform/company/serviceability#getCourierPartnerAccount'>Get
|
|
10905
|
+
* courier partner account</a> to get the scheme id.
|
|
10906
|
+
*/
|
|
10877
10907
|
scheme_id?: string;
|
|
10878
10908
|
area_code?: CPAreaCodeSchema;
|
|
10879
10909
|
is_self_ship?: boolean;
|
|
@@ -10881,7 +10911,7 @@ type CPOptionsSchema = {
|
|
|
10881
10911
|
/**
|
|
10882
10912
|
* - A sorting key used for categorizing or
|
|
10883
10913
|
* sorting courier partners, often related to their performance, costs, or
|
|
10884
|
-
* some other factor.
|
|
10914
|
+
* some other factor, (example: E-17A-4, E-17A-6, etc.).
|
|
10885
10915
|
*/
|
|
10886
10916
|
cp_sort_key?: string;
|
|
10887
10917
|
/**
|
|
@@ -10907,7 +10937,7 @@ type CourierPartnerDetailsSchema = {
|
|
|
10907
10937
|
/**
|
|
10908
10938
|
* - A sorting key used for categorizing or
|
|
10909
10939
|
* sorting courier partners, often related to their performance, costs, or
|
|
10910
|
-
* some other factor.
|
|
10940
|
+
* some other factor. (example: E-17A-4, E-17A-6, etc.).
|
|
10911
10941
|
*/
|
|
10912
10942
|
cp_sort_key?: string;
|
|
10913
10943
|
/**
|
|
@@ -10934,7 +10964,7 @@ type CourierPartnerDetailsSchema = {
|
|
|
10934
10964
|
using_own_creds: boolean;
|
|
10935
10965
|
/**
|
|
10936
10966
|
* - Reattempts Allowed
|
|
10937
|
-
* (required for
|
|
10967
|
+
* (required for NDR)
|
|
10938
10968
|
*/
|
|
10939
10969
|
max_reattempts_for_delivery_allowed?: number;
|
|
10940
10970
|
tat_to_deliver_the_shipment?: CPTatToDeliverTheShipmentSchema;
|
|
@@ -10996,8 +11026,8 @@ type OrderFulfillmentTimelineSchema = {
|
|
|
10996
11026
|
*/
|
|
10997
11027
|
dispatch_by_date?: string;
|
|
10998
11028
|
/**
|
|
10999
|
-
* - The deadline by which the
|
|
11000
|
-
*
|
|
11029
|
+
* - The deadline by which the seller must
|
|
11030
|
+
* confirm the order.
|
|
11001
11031
|
*/
|
|
11002
11032
|
confirm_by_date?: string;
|
|
11003
11033
|
customer_pickup_slot?: CustomerPickupSlotSchema;
|
|
@@ -11011,19 +11041,19 @@ type OrderFulfillmentTimelineSchema = {
|
|
|
11011
11041
|
declare function LineItemSchema(): LineItemSchema;
|
|
11012
11042
|
type LineItemSchema = {
|
|
11013
11043
|
/**
|
|
11014
|
-
* - Identifier
|
|
11044
|
+
* - Identifier of the seller selling the item.
|
|
11015
11045
|
*/
|
|
11016
11046
|
seller_identifier?: string;
|
|
11017
11047
|
/**
|
|
11018
|
-
* - Payment
|
|
11019
|
-
*
|
|
11048
|
+
* - Payment methods
|
|
11049
|
+
* used to sell this order.
|
|
11020
11050
|
*/
|
|
11021
11051
|
payment_methods: LineItemPaymentMethodSchema[];
|
|
11022
11052
|
monetary_values: LineItemMonetaryValuesSchema;
|
|
11023
11053
|
gift_details?: GiftDetailsSchema;
|
|
11024
11054
|
/**
|
|
11025
|
-
* -
|
|
11026
|
-
*
|
|
11055
|
+
* - These instructions are added by
|
|
11056
|
+
* the customer at checkout for the seller's reference.
|
|
11027
11057
|
*/
|
|
11028
11058
|
special_instructions?: string;
|
|
11029
11059
|
dimension?: DimensionSchema;
|
|
@@ -11039,7 +11069,7 @@ type LineItemSchema = {
|
|
|
11039
11069
|
external_line_id?: string;
|
|
11040
11070
|
bundle_details?: BundleDetailsSchema;
|
|
11041
11071
|
/**
|
|
11042
|
-
* -
|
|
11072
|
+
* - Contains metadata related to the shipment
|
|
11043
11073
|
*/
|
|
11044
11074
|
meta?: any;
|
|
11045
11075
|
};
|
|
@@ -11055,7 +11085,7 @@ type CreateOrderShipmentSchema = {
|
|
|
11055
11085
|
/**
|
|
11056
11086
|
* - List of
|
|
11057
11087
|
* general-purpose messages shown across different points in the shipment's
|
|
11058
|
-
* journey at Order Details
|
|
11088
|
+
* journey at Order Details screen.
|
|
11059
11089
|
*/
|
|
11060
11090
|
shipment_lifecycle_messages?: LifecycleMessageSchema[];
|
|
11061
11091
|
/**
|
|
@@ -11067,13 +11097,11 @@ type CreateOrderShipmentSchema = {
|
|
|
11067
11097
|
* - The shipment type defining the fulfillment method
|
|
11068
11098
|
* and processing flow. Each type determines the specific journey a shipment
|
|
11069
11099
|
* will follow based on operational needs and customer preferences:
|
|
11070
|
-
*
|
|
11071
|
-
*
|
|
11072
|
-
*
|
|
11073
|
-
*
|
|
11074
|
-
*
|
|
11075
|
-
* - "Digital": Orders involving digital goods or services (e.g., software,
|
|
11076
|
-
* e-books, subscriptions) delivered electronically.
|
|
11100
|
+
* "HomeDelivery": Standard delivery to the customer's address, undergoing all
|
|
11101
|
+
* typical state transitions from processing to final delivery. "PickAtStore":
|
|
11102
|
+
* Order prepared for in-store pickup, bypassing traditional shipping stages
|
|
11103
|
+
* for direct handover to the customer. "Digital": Orders involving digital
|
|
11104
|
+
* goods or services (e.g., software, e-books, subscriptions) delivered electronically.
|
|
11077
11105
|
*/
|
|
11078
11106
|
type?: string;
|
|
11079
11107
|
fulfillment_option?: FulfillmentOptionSchema;
|
|
@@ -11120,9 +11148,10 @@ type CreateOrderShipmentSchema = {
|
|
|
11120
11148
|
declare function OrderingCurrencySchema(): OrderingCurrencySchema;
|
|
11121
11149
|
type OrderingCurrencySchema = {
|
|
11122
11150
|
/**
|
|
11123
|
-
* - The
|
|
11124
|
-
*
|
|
11125
|
-
*
|
|
11151
|
+
* - The <a
|
|
11152
|
+
* href='https://www.iso.org/iso-4217-currency-codes.html'>ISO 4217</a>
|
|
11153
|
+
* currency code, such as 'INR' for Indian Rupee. This field represents the
|
|
11154
|
+
* standardized three-letter code of a currency.
|
|
11126
11155
|
*/
|
|
11127
11156
|
currency_code: string;
|
|
11128
11157
|
/**
|
|
@@ -11169,7 +11198,6 @@ declare function CouponOwnershipSchema(): CouponOwnershipSchema;
|
|
|
11169
11198
|
type CouponOwnershipSchema = {
|
|
11170
11199
|
/**
|
|
11171
11200
|
* - Indicates who issued the coupon
|
|
11172
|
-
* (MARKETPLACE or SELLER).
|
|
11173
11201
|
*/
|
|
11174
11202
|
payable_category: string;
|
|
11175
11203
|
};
|
|
@@ -11200,7 +11228,7 @@ type CouponSchema = {
|
|
|
11200
11228
|
declare function BillingDetailsSchema(): BillingDetailsSchema;
|
|
11201
11229
|
type BillingDetailsSchema = {
|
|
11202
11230
|
/**
|
|
11203
|
-
* - First
|
|
11231
|
+
* - First name of the customer
|
|
11204
11232
|
*/
|
|
11205
11233
|
first_name?: string;
|
|
11206
11234
|
/**
|
|
@@ -11208,77 +11236,73 @@ type BillingDetailsSchema = {
|
|
|
11208
11236
|
*/
|
|
11209
11237
|
phone_code?: string;
|
|
11210
11238
|
/**
|
|
11211
|
-
* - Country of the
|
|
11239
|
+
* - Country of the customer
|
|
11212
11240
|
*/
|
|
11213
11241
|
country?: string;
|
|
11214
11242
|
/**
|
|
11215
|
-
* - City of the
|
|
11243
|
+
* - City of the customer
|
|
11216
11244
|
*/
|
|
11217
11245
|
city?: string;
|
|
11218
11246
|
/**
|
|
11219
|
-
* - Pincode of the
|
|
11247
|
+
* - Pincode of the customer
|
|
11220
11248
|
*/
|
|
11221
11249
|
pincode?: string;
|
|
11222
11250
|
/**
|
|
11223
|
-
* - Last
|
|
11251
|
+
* - Last name of the customer
|
|
11224
11252
|
*/
|
|
11225
11253
|
last_name?: string;
|
|
11226
11254
|
/**
|
|
11227
|
-
* - Primary
|
|
11255
|
+
* - Primary phone number of the customer
|
|
11228
11256
|
*/
|
|
11229
11257
|
mobile_number?: string;
|
|
11230
11258
|
/**
|
|
11231
|
-
* - Primary
|
|
11259
|
+
* - Primary email of the customer
|
|
11232
11260
|
*/
|
|
11233
11261
|
email?: string;
|
|
11234
11262
|
/**
|
|
11235
|
-
* - State of the
|
|
11263
|
+
* - State of the customer
|
|
11236
11264
|
*/
|
|
11237
11265
|
state?: string;
|
|
11238
11266
|
/**
|
|
11239
|
-
* - Alternate
|
|
11267
|
+
* - Alternate mobile number
|
|
11240
11268
|
*/
|
|
11241
11269
|
alternate_mobile_number?: string;
|
|
11242
11270
|
/**
|
|
11243
|
-
* -
|
|
11271
|
+
* - Billing address of the customer
|
|
11244
11272
|
*/
|
|
11245
11273
|
address?: string;
|
|
11246
11274
|
/**
|
|
11247
|
-
* -
|
|
11275
|
+
* - Customer's middle name.
|
|
11248
11276
|
*/
|
|
11249
11277
|
middle_name?: string;
|
|
11250
11278
|
/**
|
|
11251
|
-
* -
|
|
11279
|
+
* - Customer's title or prefix.
|
|
11252
11280
|
*/
|
|
11253
11281
|
title?: string;
|
|
11254
11282
|
/**
|
|
11255
|
-
* -
|
|
11256
|
-
* number of the customer.
|
|
11283
|
+
* - House or apartment number of the customer.
|
|
11257
11284
|
*/
|
|
11258
11285
|
house_no?: string;
|
|
11259
11286
|
geo_location?: GeoLocationSchema;
|
|
11260
11287
|
/**
|
|
11261
|
-
* - Gender of
|
|
11288
|
+
* - Gender of customer
|
|
11262
11289
|
*/
|
|
11263
11290
|
gender?: string;
|
|
11264
11291
|
/**
|
|
11265
|
-
* -
|
|
11266
|
-
*
|
|
11292
|
+
* - Landmark or reference point near the
|
|
11293
|
+
* customer's location.
|
|
11267
11294
|
*/
|
|
11268
11295
|
landmark?: string;
|
|
11269
11296
|
/**
|
|
11270
|
-
* -
|
|
11271
|
-
* the seller's system.
|
|
11297
|
+
* - Address type in the seller's system.
|
|
11272
11298
|
*/
|
|
11273
11299
|
address_type?: string;
|
|
11274
11300
|
/**
|
|
11275
|
-
* -
|
|
11276
|
-
* customer's location.
|
|
11301
|
+
* - State code of the customer's location.
|
|
11277
11302
|
*/
|
|
11278
11303
|
state_code?: string;
|
|
11279
11304
|
/**
|
|
11280
|
-
* -
|
|
11281
|
-
* customer's location.
|
|
11305
|
+
* - Floor number of the customer's location.
|
|
11282
11306
|
*/
|
|
11283
11307
|
floor_no?: string;
|
|
11284
11308
|
/**
|
|
@@ -11286,23 +11310,25 @@ type BillingDetailsSchema = {
|
|
|
11286
11310
|
*/
|
|
11287
11311
|
alternate_email?: string;
|
|
11288
11312
|
/**
|
|
11289
|
-
* -
|
|
11313
|
+
* - First line of the address.
|
|
11290
11314
|
*/
|
|
11291
11315
|
address1?: string;
|
|
11292
11316
|
/**
|
|
11293
|
-
* -
|
|
11317
|
+
* - Second line of the address.
|
|
11294
11318
|
*/
|
|
11295
11319
|
address2?: string;
|
|
11296
11320
|
/**
|
|
11297
11321
|
* - Specifies the country's unique
|
|
11298
|
-
* identifier
|
|
11322
|
+
* identifier allowing the ISO 3166-1 alpha-2 standard. This two-letter code
|
|
11299
11323
|
* is crucial for distinguishing countries in international transactions, data
|
|
11300
11324
|
* processing, and shipping logistics.
|
|
11301
11325
|
*/
|
|
11302
11326
|
country_iso_code?: string;
|
|
11303
11327
|
/**
|
|
11304
|
-
* - The unique identifier assigned to the
|
|
11305
|
-
*
|
|
11328
|
+
* - The unique identifier assigned to the
|
|
11329
|
+
* customer. Refer <a
|
|
11330
|
+
* href='/commerce/sdk/latest/platform/application/user#customer'>Customer</a>
|
|
11331
|
+
* to get more details.
|
|
11306
11332
|
*/
|
|
11307
11333
|
user_id?: string;
|
|
11308
11334
|
/**
|
|
@@ -11324,7 +11350,7 @@ type CPConfigurationSchema = {
|
|
|
11324
11350
|
declare function ShippingDetailsSchema(): ShippingDetailsSchema;
|
|
11325
11351
|
type ShippingDetailsSchema = {
|
|
11326
11352
|
/**
|
|
11327
|
-
* - First
|
|
11353
|
+
* - First name of the customer
|
|
11328
11354
|
*/
|
|
11329
11355
|
first_name?: string;
|
|
11330
11356
|
/**
|
|
@@ -11332,62 +11358,61 @@ type ShippingDetailsSchema = {
|
|
|
11332
11358
|
*/
|
|
11333
11359
|
phone_code?: string;
|
|
11334
11360
|
/**
|
|
11335
|
-
* - Country of the
|
|
11361
|
+
* - Country of the customer
|
|
11336
11362
|
*/
|
|
11337
11363
|
country?: string;
|
|
11338
11364
|
/**
|
|
11339
|
-
* - City of the
|
|
11365
|
+
* - City of the customer
|
|
11340
11366
|
*/
|
|
11341
11367
|
city?: string;
|
|
11342
11368
|
/**
|
|
11343
|
-
* - Pincode of the
|
|
11369
|
+
* - Pincode of the customer
|
|
11344
11370
|
*/
|
|
11345
11371
|
pincode?: string;
|
|
11346
11372
|
/**
|
|
11347
|
-
* - Last
|
|
11373
|
+
* - Last name of the customer
|
|
11348
11374
|
*/
|
|
11349
11375
|
last_name?: string;
|
|
11350
11376
|
/**
|
|
11351
|
-
* - Primary
|
|
11377
|
+
* - Primary phone number of the customer
|
|
11352
11378
|
*/
|
|
11353
11379
|
mobile_number?: string;
|
|
11354
11380
|
/**
|
|
11355
|
-
* - Primary
|
|
11381
|
+
* - Primary email of the customer
|
|
11356
11382
|
*/
|
|
11357
11383
|
email?: string;
|
|
11358
11384
|
/**
|
|
11359
|
-
* - State of the
|
|
11385
|
+
* - State of the customer
|
|
11360
11386
|
*/
|
|
11361
11387
|
state?: string;
|
|
11362
11388
|
/**
|
|
11363
|
-
* - Alternate
|
|
11389
|
+
* - Alternate mobile number
|
|
11364
11390
|
*/
|
|
11365
11391
|
alternate_mobile_number?: string;
|
|
11366
11392
|
/**
|
|
11367
|
-
* -
|
|
11393
|
+
* - Shipping address of the customer
|
|
11368
11394
|
*/
|
|
11369
11395
|
address?: string;
|
|
11370
11396
|
/**
|
|
11371
|
-
* -
|
|
11397
|
+
* - Customer's middle name.
|
|
11372
11398
|
*/
|
|
11373
11399
|
middle_name?: string;
|
|
11374
11400
|
/**
|
|
11375
|
-
* -
|
|
11401
|
+
* - Customer's title or prefix.
|
|
11376
11402
|
*/
|
|
11377
11403
|
title?: string;
|
|
11378
11404
|
/**
|
|
11379
|
-
* -
|
|
11380
|
-
* number of the customer.
|
|
11405
|
+
* - House or apartment number of the customer.
|
|
11381
11406
|
*/
|
|
11382
11407
|
house_no?: string;
|
|
11383
11408
|
geo_location?: GeoLocationSchema;
|
|
11384
11409
|
/**
|
|
11385
|
-
* - Gender of
|
|
11410
|
+
* - Gender of customer
|
|
11386
11411
|
*/
|
|
11387
11412
|
gender?: string;
|
|
11388
11413
|
/**
|
|
11389
|
-
* -
|
|
11390
|
-
*
|
|
11414
|
+
* - Landmark or reference point near the
|
|
11415
|
+
* customer's location.
|
|
11391
11416
|
*/
|
|
11392
11417
|
landmark?: string;
|
|
11393
11418
|
/**
|
|
@@ -11396,13 +11421,11 @@ type ShippingDetailsSchema = {
|
|
|
11396
11421
|
*/
|
|
11397
11422
|
address_type?: string;
|
|
11398
11423
|
/**
|
|
11399
|
-
* -
|
|
11400
|
-
* customer's location.
|
|
11424
|
+
* - State code of the customer's location.
|
|
11401
11425
|
*/
|
|
11402
11426
|
state_code?: string;
|
|
11403
11427
|
/**
|
|
11404
|
-
* -
|
|
11405
|
-
* customer's location.
|
|
11428
|
+
* - Floor number of the customer's location.
|
|
11406
11429
|
*/
|
|
11407
11430
|
floor_no?: string;
|
|
11408
11431
|
/**
|
|
@@ -11410,23 +11433,25 @@ type ShippingDetailsSchema = {
|
|
|
11410
11433
|
*/
|
|
11411
11434
|
alternate_email?: string;
|
|
11412
11435
|
/**
|
|
11413
|
-
* -
|
|
11436
|
+
* - First line of the address
|
|
11414
11437
|
*/
|
|
11415
11438
|
address1?: string;
|
|
11416
11439
|
/**
|
|
11417
|
-
* -
|
|
11440
|
+
* - Second line of the address
|
|
11418
11441
|
*/
|
|
11419
11442
|
address2?: string;
|
|
11420
11443
|
/**
|
|
11421
11444
|
* - Specifies the country's unique
|
|
11422
|
-
* identifier
|
|
11445
|
+
* identifier allowing the ISO 3166-1 alpha-2 standard. This two-letter code
|
|
11423
11446
|
* is crucial for distinguishing countries in international transactions, data
|
|
11424
11447
|
* processing, and shipping logistics.
|
|
11425
11448
|
*/
|
|
11426
11449
|
country_iso_code?: string;
|
|
11427
11450
|
/**
|
|
11428
|
-
* - The unique identifier assigned to the
|
|
11429
|
-
*
|
|
11451
|
+
* - The unique identifier assigned to the
|
|
11452
|
+
* customer. Refer <a
|
|
11453
|
+
* href='/commerce/sdk/latest/platform/application/user#customer'>Customer</a>
|
|
11454
|
+
* in platform documentation to get more details. details.
|
|
11430
11455
|
*/
|
|
11431
11456
|
user_id?: string;
|
|
11432
11457
|
/**
|
|
@@ -11440,12 +11465,12 @@ type ShippingDetailsSchema = {
|
|
|
11440
11465
|
declare function UserDetailsSchema(): UserDetailsSchema;
|
|
11441
11466
|
type UserDetailsSchema = {
|
|
11442
11467
|
/**
|
|
11443
|
-
* - The
|
|
11468
|
+
* - The customer's GSTIN (Goods and Services Tax
|
|
11444
11469
|
* Identification Number).
|
|
11445
11470
|
*/
|
|
11446
11471
|
gstin?: string;
|
|
11447
11472
|
/**
|
|
11448
|
-
* - The
|
|
11473
|
+
* - The customer's PAN (Permanent Account Number).
|
|
11449
11474
|
*/
|
|
11450
11475
|
pan_no?: string;
|
|
11451
11476
|
};
|
|
@@ -11468,8 +11493,8 @@ type LifecycleMessageSchema = {
|
|
|
11468
11493
|
*/
|
|
11469
11494
|
states: string[];
|
|
11470
11495
|
/**
|
|
11471
|
-
* - Determines the message display sequence, with
|
|
11472
|
-
* being the highest priority.
|
|
11496
|
+
* - Determines the message display sequence, with
|
|
11497
|
+
* '1' being the highest priority.
|
|
11473
11498
|
*/
|
|
11474
11499
|
priority: number;
|
|
11475
11500
|
};
|
|
@@ -11520,7 +11545,7 @@ type CreateOrderRequestSchema = {
|
|
|
11520
11545
|
user_details?: UserDetailsSchema;
|
|
11521
11546
|
/**
|
|
11522
11547
|
* - List of
|
|
11523
|
-
* order lifecycle messages to be displayed to the
|
|
11548
|
+
* order lifecycle messages to be displayed to the seller at Order Details.
|
|
11524
11549
|
*/
|
|
11525
11550
|
order_lifecycle_messages?: LifecycleMessageSchema[];
|
|
11526
11551
|
/**
|