@commercengine/storefront-sdk 0.11.1 → 0.12.1
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/dist/index.d.mts +801 -396
- package/dist/index.iife.js +311 -224
- package/dist/index.iife.js.map +1 -1
- package/dist/index.mjs +312 -224
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -555,6 +555,26 @@ interface paths {
|
|
|
555
555
|
patch?: never;
|
|
556
556
|
trace?: never;
|
|
557
557
|
};
|
|
558
|
+
"/carts/fulfillment-options": {
|
|
559
|
+
parameters: {
|
|
560
|
+
query?: never;
|
|
561
|
+
header?: never;
|
|
562
|
+
path?: never;
|
|
563
|
+
cookie?: never;
|
|
564
|
+
};
|
|
565
|
+
get?: never;
|
|
566
|
+
put?: never;
|
|
567
|
+
/**
|
|
568
|
+
* Retrieve fulfillment options
|
|
569
|
+
* @description This endpoint returns the available fulfillment options for a given cart and delivery pincode. It provides both delivery options and collect-in-store (Click & Collect) options, including details of store locations where the item can be collected.
|
|
570
|
+
*/
|
|
571
|
+
post: operations["get-fulfillment-options"];
|
|
572
|
+
delete?: never;
|
|
573
|
+
options?: never;
|
|
574
|
+
head?: never;
|
|
575
|
+
patch?: never;
|
|
576
|
+
trace?: never;
|
|
577
|
+
};
|
|
558
578
|
"/carts/users/{user_id}": {
|
|
559
579
|
parameters: {
|
|
560
580
|
query?: never;
|
|
@@ -1333,6 +1353,29 @@ interface paths {
|
|
|
1333
1353
|
patch?: never;
|
|
1334
1354
|
trace?: never;
|
|
1335
1355
|
};
|
|
1356
|
+
"/customers/{customer_id}/cards": {
|
|
1357
|
+
parameters: {
|
|
1358
|
+
query?: never;
|
|
1359
|
+
header?: never;
|
|
1360
|
+
path: {
|
|
1361
|
+
/** @description Customer Id */
|
|
1362
|
+
customer_id: string;
|
|
1363
|
+
};
|
|
1364
|
+
cookie?: never;
|
|
1365
|
+
};
|
|
1366
|
+
/**
|
|
1367
|
+
* List all saved cards
|
|
1368
|
+
* @description Retrieve a list of saved payment cards for a given customer.
|
|
1369
|
+
*/
|
|
1370
|
+
get: operations["list-customer-cards"];
|
|
1371
|
+
put?: never;
|
|
1372
|
+
post?: never;
|
|
1373
|
+
delete?: never;
|
|
1374
|
+
options?: never;
|
|
1375
|
+
head?: never;
|
|
1376
|
+
patch?: never;
|
|
1377
|
+
trace?: never;
|
|
1378
|
+
};
|
|
1336
1379
|
"/customers/{customer_id}/payment-methods": {
|
|
1337
1380
|
parameters: {
|
|
1338
1381
|
query?: never;
|
|
@@ -1345,10 +1388,12 @@ interface paths {
|
|
|
1345
1388
|
};
|
|
1346
1389
|
/**
|
|
1347
1390
|
* List all saved payment methods
|
|
1348
|
-
* @description This endpoint acts as a proxy for JusPay
|
|
1391
|
+
* @description This endpoint acts as a proxy for JusPay's Fetch Saved Payment Methods API. It enables to securely retrieve a list of payment methods (such as saved cards, UPI handles, wallets) that have been previously stored for a given customer.
|
|
1349
1392
|
*
|
|
1350
1393
|
* The operation helps streamline the checkout flow by allowing users to quickly select from existing payment methods, reducing input friction and improving conversion.
|
|
1351
1394
|
*
|
|
1395
|
+
* You can filter the results by payment method type using the payment_method query parameter. Multiple payment methods can be specified by separating them with commas (e.g., payment_method=upi_collect,card,wallet).
|
|
1396
|
+
*
|
|
1352
1397
|
* API documentation of JusPay can be found at below link:
|
|
1353
1398
|
*
|
|
1354
1399
|
* https://juspay.io/in/docs/api-reference/docs/express-checkout/fetch-saved-payment-methods
|
|
@@ -1581,6 +1626,26 @@ interface paths {
|
|
|
1581
1626
|
patch?: never;
|
|
1582
1627
|
trace?: never;
|
|
1583
1628
|
};
|
|
1629
|
+
"/fulfillment/serviceability": {
|
|
1630
|
+
parameters: {
|
|
1631
|
+
query?: never;
|
|
1632
|
+
header?: never;
|
|
1633
|
+
path?: never;
|
|
1634
|
+
cookie?: never;
|
|
1635
|
+
};
|
|
1636
|
+
get?: never;
|
|
1637
|
+
put?: never;
|
|
1638
|
+
/**
|
|
1639
|
+
* Check fulfillment
|
|
1640
|
+
* @description Checking if fulfillment is available to the entered pincode based on shipping zones and inventories.
|
|
1641
|
+
*/
|
|
1642
|
+
post: operations["check-fulfillment"];
|
|
1643
|
+
delete?: never;
|
|
1644
|
+
options?: never;
|
|
1645
|
+
head?: never;
|
|
1646
|
+
patch?: never;
|
|
1647
|
+
trace?: never;
|
|
1648
|
+
};
|
|
1584
1649
|
"/orders": {
|
|
1585
1650
|
parameters: {
|
|
1586
1651
|
query?: never;
|
|
@@ -1825,6 +1890,26 @@ interface paths {
|
|
|
1825
1890
|
patch?: never;
|
|
1826
1891
|
trace?: never;
|
|
1827
1892
|
};
|
|
1893
|
+
"/payments/card-info": {
|
|
1894
|
+
parameters: {
|
|
1895
|
+
query?: never;
|
|
1896
|
+
header?: never;
|
|
1897
|
+
path?: never;
|
|
1898
|
+
cookie?: never;
|
|
1899
|
+
};
|
|
1900
|
+
/**
|
|
1901
|
+
* Get card information
|
|
1902
|
+
* @description Retrieve card information based on the initial 9 digits (card BIN) of the card number.
|
|
1903
|
+
*/
|
|
1904
|
+
get: operations["get-card-info"];
|
|
1905
|
+
put?: never;
|
|
1906
|
+
post?: never;
|
|
1907
|
+
delete?: never;
|
|
1908
|
+
options?: never;
|
|
1909
|
+
head?: never;
|
|
1910
|
+
patch?: never;
|
|
1911
|
+
trace?: never;
|
|
1912
|
+
};
|
|
1828
1913
|
"/payments/generate-hash": {
|
|
1829
1914
|
parameters: {
|
|
1830
1915
|
query?: never;
|
|
@@ -2783,49 +2868,6 @@ interface paths {
|
|
|
2783
2868
|
patch?: never;
|
|
2784
2869
|
trace?: never;
|
|
2785
2870
|
};
|
|
2786
|
-
"/shipping/fulfillment-options": {
|
|
2787
|
-
parameters: {
|
|
2788
|
-
query?: never;
|
|
2789
|
-
header?: never;
|
|
2790
|
-
path?: never;
|
|
2791
|
-
cookie?: never;
|
|
2792
|
-
};
|
|
2793
|
-
get?: never;
|
|
2794
|
-
put?: never;
|
|
2795
|
-
/**
|
|
2796
|
-
* Retrieve fulfillment options
|
|
2797
|
-
* @description This endpoint returns the available fulfillment options for a given cart and delivery pincode. It provides both delivery options and collect-in-store (Click & Collect) options, including details of store locations where the item can be collected.
|
|
2798
|
-
*/
|
|
2799
|
-
post: operations["get-fulfillment-options"];
|
|
2800
|
-
delete?: never;
|
|
2801
|
-
options?: never;
|
|
2802
|
-
head?: never;
|
|
2803
|
-
patch?: never;
|
|
2804
|
-
trace?: never;
|
|
2805
|
-
};
|
|
2806
|
-
"/shipping/serviceability/{pincode}": {
|
|
2807
|
-
parameters: {
|
|
2808
|
-
query?: never;
|
|
2809
|
-
header?: never;
|
|
2810
|
-
path: {
|
|
2811
|
-
/** @description delivery pincode */
|
|
2812
|
-
pincode: string;
|
|
2813
|
-
};
|
|
2814
|
-
cookie?: never;
|
|
2815
|
-
};
|
|
2816
|
-
/**
|
|
2817
|
-
* Check serviceability
|
|
2818
|
-
* @description Checking if delivery is available to the entered pincode based on shipping zones.
|
|
2819
|
-
*/
|
|
2820
|
-
get: operations["check-pincode-serviceability"];
|
|
2821
|
-
put?: never;
|
|
2822
|
-
post?: never;
|
|
2823
|
-
delete?: never;
|
|
2824
|
-
options?: never;
|
|
2825
|
-
head?: never;
|
|
2826
|
-
patch?: never;
|
|
2827
|
-
trace?: never;
|
|
2828
|
-
};
|
|
2829
2871
|
"/store/config": {
|
|
2830
2872
|
parameters: {
|
|
2831
2873
|
query?: never;
|
|
@@ -3265,6 +3307,23 @@ interface components {
|
|
|
3265
3307
|
/** @description It can be null for get_offer_type = free */
|
|
3266
3308
|
maximum_discount_amount: number | null;
|
|
3267
3309
|
};
|
|
3310
|
+
/** CardbinInfo */
|
|
3311
|
+
CardbinInfo: {
|
|
3312
|
+
card_sub_type: string;
|
|
3313
|
+
extended_card_type: string;
|
|
3314
|
+
country: string;
|
|
3315
|
+
cvv_less_support: boolean;
|
|
3316
|
+
bank: string;
|
|
3317
|
+
id: string;
|
|
3318
|
+
mandate_support: boolean;
|
|
3319
|
+
brand: string;
|
|
3320
|
+
card_sub_type_category: string;
|
|
3321
|
+
juspay_bank_code: string;
|
|
3322
|
+
type: string;
|
|
3323
|
+
country_code: string;
|
|
3324
|
+
object: string;
|
|
3325
|
+
direct_otp_support: boolean;
|
|
3326
|
+
};
|
|
3268
3327
|
/**
|
|
3269
3328
|
* CardPayment
|
|
3270
3329
|
* @description Payments using credit card, debit card
|
|
@@ -3400,17 +3459,31 @@ interface components {
|
|
|
3400
3459
|
applied_promotions: components["schemas"]["AppliedPromotion"][];
|
|
3401
3460
|
/** @description This key provides details about the savings in cart after coupon have been applied to the cart. */
|
|
3402
3461
|
applied_coupons: components["schemas"]["AppliedCoupon"][];
|
|
3462
|
+
/** @description List containing detailed information about each shipment in the cart. */
|
|
3463
|
+
shipments: components["schemas"]["CartShipment"][];
|
|
3403
3464
|
promotion_savings: number;
|
|
3404
3465
|
coupon_savings: number;
|
|
3405
3466
|
other_savings: number;
|
|
3406
3467
|
total_savings: number;
|
|
3407
3468
|
};
|
|
3408
|
-
/**
|
|
3409
|
-
|
|
3410
|
-
|
|
3469
|
+
/** CartBasedFulfillmentCheck */
|
|
3470
|
+
CartBasedFulfillmentCheck: {
|
|
3471
|
+
/** @description delivery pincode, if null, the fulfillment type will be collect-in-store */
|
|
3472
|
+
delivery_pincode: string | null;
|
|
3473
|
+
cart_id: string;
|
|
3474
|
+
/** @enum {string} */
|
|
3475
|
+
fulfillment_type?: "delivery" | "collect-in-store";
|
|
3476
|
+
};
|
|
3477
|
+
/** CartBasedFulfillmentOption */
|
|
3478
|
+
CartBasedFulfillmentOption: {
|
|
3411
3479
|
cart_id: string;
|
|
3480
|
+
/** @enum {string} */
|
|
3481
|
+
fulfillment_type?: "delivery" | "collect-in-store";
|
|
3412
3482
|
};
|
|
3413
|
-
/**
|
|
3483
|
+
/**
|
|
3484
|
+
* CartItem
|
|
3485
|
+
* @description This Cart Item model captures the attributes of a cart item, including product details, pricing information, subscription details, and other relevant information related to Cart Item.
|
|
3486
|
+
*/
|
|
3414
3487
|
CartItem: {
|
|
3415
3488
|
/** @description Unique identifier for the product. */
|
|
3416
3489
|
product_id: string;
|
|
@@ -3505,6 +3578,29 @@ interface components {
|
|
|
3505
3578
|
associated_options: components["schemas"]["AssociatedOption"] | null;
|
|
3506
3579
|
attributes: components["schemas"]["ProductAttribute"][];
|
|
3507
3580
|
subscriptions: components["schemas"]["ProductSubscription"][] | null;
|
|
3581
|
+
/** @description Seller ID. This field is relevant for marketplace type stores only. Will return null for b2b and b2c type stores. */
|
|
3582
|
+
seller_id?: string | null;
|
|
3583
|
+
/** @description Seller detail information. This field is relevant for marketplace type stores only. Will return null for b2b and b2c type stores. */
|
|
3584
|
+
seller_detail?: components["schemas"]["SellerDetail"] | null;
|
|
3585
|
+
};
|
|
3586
|
+
/**
|
|
3587
|
+
* CartShipment
|
|
3588
|
+
* @description Cart shipment model
|
|
3589
|
+
*/
|
|
3590
|
+
CartShipment: {
|
|
3591
|
+
id?: string;
|
|
3592
|
+
shipping_provider_id?: string;
|
|
3593
|
+
shipping_provider_name?: string;
|
|
3594
|
+
courier_company_id?: string | null;
|
|
3595
|
+
courier_company_name?: string | null;
|
|
3596
|
+
/** Format: double */
|
|
3597
|
+
shipping_amount?: number;
|
|
3598
|
+
/** Format: double */
|
|
3599
|
+
shipping_tax_amount?: number;
|
|
3600
|
+
/** Format: double */
|
|
3601
|
+
shipping_amount_including_tax?: number;
|
|
3602
|
+
shipment_items_count?: number;
|
|
3603
|
+
shipment_items?: components["schemas"]["ShipmentItem"][];
|
|
3508
3604
|
};
|
|
3509
3605
|
/** Category */
|
|
3510
3606
|
Category: {
|
|
@@ -3910,10 +4006,42 @@ interface components {
|
|
|
3910
4006
|
fulfillment_type: "delivery";
|
|
3911
4007
|
/** @enum {string} */
|
|
3912
4008
|
readonly preference_type?: "user" | "auto";
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
4009
|
+
shipments: {
|
|
4010
|
+
id: string;
|
|
4011
|
+
shipping_provider_id: string;
|
|
4012
|
+
readonly shipping_provider_name?: string | null;
|
|
4013
|
+
courier_company_id?: string | null;
|
|
4014
|
+
readonly courier_company_name?: string | null;
|
|
4015
|
+
}[];
|
|
4016
|
+
};
|
|
4017
|
+
/** DeliveryOption */
|
|
4018
|
+
DeliveryOption: {
|
|
4019
|
+
is_serviceable: boolean;
|
|
4020
|
+
shipments: {
|
|
4021
|
+
id: string;
|
|
4022
|
+
items: components["schemas"]["ShipmentItem"][];
|
|
4023
|
+
shipping_methods: {
|
|
4024
|
+
id?: string;
|
|
4025
|
+
name?: string;
|
|
4026
|
+
/** @enum {unknown} */
|
|
4027
|
+
shipping_type?: "auto" | "manual";
|
|
4028
|
+
/** @description shipping amount of manual method or as per recommened courier or range of min-max shipping amount. */
|
|
4029
|
+
shipping_amount?: string;
|
|
4030
|
+
/** @description estimated delivery days of manual method or as per recommened courier or range of min-max estimated delivery days. */
|
|
4031
|
+
estimated_delivery_days?: string;
|
|
4032
|
+
courier_companies?: {
|
|
4033
|
+
id?: string | number;
|
|
4034
|
+
name?: string;
|
|
4035
|
+
shipping_amount?: number;
|
|
4036
|
+
estimated_delivery_days?: string;
|
|
4037
|
+
is_recommended?: boolean;
|
|
4038
|
+
is_hyperlocal?: boolean;
|
|
4039
|
+
/** @enum {unknown} */
|
|
4040
|
+
mode?: "air" | "surface";
|
|
4041
|
+
rating?: number;
|
|
4042
|
+
}[];
|
|
4043
|
+
}[];
|
|
4044
|
+
}[];
|
|
3917
4045
|
};
|
|
3918
4046
|
/** DiscountBasedPromotion */
|
|
3919
4047
|
DiscountBasedPromotion: {
|
|
@@ -4130,6 +4258,88 @@ interface components {
|
|
|
4130
4258
|
associated_options: components["schemas"]["AssociatedOption"] | null;
|
|
4131
4259
|
shipping?: components["schemas"]["ProductShipping"];
|
|
4132
4260
|
inventory?: components["schemas"]["LotBatchDetail"][];
|
|
4261
|
+
seller_id: string;
|
|
4262
|
+
seller_detail: components["schemas"]["SellerDetail"];
|
|
4263
|
+
};
|
|
4264
|
+
/** ItemsBasedFulfillmentCheck */
|
|
4265
|
+
ItemsBasedFulfillmentCheck: {
|
|
4266
|
+
/** @description delivery pincode, if null, the fulfillment type will be collect-in-store */
|
|
4267
|
+
delivery_pincode: string | null;
|
|
4268
|
+
items: {
|
|
4269
|
+
product_id: string;
|
|
4270
|
+
variant_id: string | null;
|
|
4271
|
+
}[];
|
|
4272
|
+
/** @enum {string} */
|
|
4273
|
+
fulfillment_type?: "delivery" | "collect-in-store";
|
|
4274
|
+
};
|
|
4275
|
+
/** JuspayCardDetail */
|
|
4276
|
+
JuspayCardDetail: {
|
|
4277
|
+
card_sub_type: string;
|
|
4278
|
+
token?: {
|
|
4279
|
+
tokenization_status?: string;
|
|
4280
|
+
support_token_transaction?: boolean;
|
|
4281
|
+
last_four_digits?: string;
|
|
4282
|
+
cvv_less_support?: boolean;
|
|
4283
|
+
vault_provider?: string;
|
|
4284
|
+
par?: string;
|
|
4285
|
+
card_reference?: string;
|
|
4286
|
+
expiry_month?: string;
|
|
4287
|
+
token_supported_gateways?: string[];
|
|
4288
|
+
card_fingerprint?: string;
|
|
4289
|
+
cvv_less_details?: {
|
|
4290
|
+
gateway?: string;
|
|
4291
|
+
gateway_reference_ids?: string[];
|
|
4292
|
+
}[];
|
|
4293
|
+
cvv_less_supported_gateways?: string[];
|
|
4294
|
+
provision_token_id?: string;
|
|
4295
|
+
card_isin?: string;
|
|
4296
|
+
expiry_year?: string;
|
|
4297
|
+
};
|
|
4298
|
+
extended_card_type: string;
|
|
4299
|
+
tokens?: {
|
|
4300
|
+
tokenization_status?: string;
|
|
4301
|
+
last_four_digits?: string;
|
|
4302
|
+
provider_category?: string;
|
|
4303
|
+
vault_provider?: string;
|
|
4304
|
+
par?: string;
|
|
4305
|
+
card_reference?: string;
|
|
4306
|
+
card_token?: string;
|
|
4307
|
+
expiry_month?: string;
|
|
4308
|
+
card_fingerprint?: string;
|
|
4309
|
+
provision_token_id?: string;
|
|
4310
|
+
card_isin?: string;
|
|
4311
|
+
expiry_year?: string;
|
|
4312
|
+
}[];
|
|
4313
|
+
nickname: string;
|
|
4314
|
+
provider_category: string;
|
|
4315
|
+
vault_provider: string;
|
|
4316
|
+
card_reference: string;
|
|
4317
|
+
card_type: string;
|
|
4318
|
+
metadata: {
|
|
4319
|
+
origin_customer_id?: string;
|
|
4320
|
+
origin_merchant_id?: string;
|
|
4321
|
+
} & {
|
|
4322
|
+
[key: string]: unknown;
|
|
4323
|
+
};
|
|
4324
|
+
card_issuer: string;
|
|
4325
|
+
card_token: string;
|
|
4326
|
+
health: string;
|
|
4327
|
+
card_exp_month: string;
|
|
4328
|
+
mandate_support: boolean;
|
|
4329
|
+
provider: string;
|
|
4330
|
+
card_sub_type_category: string;
|
|
4331
|
+
expired: boolean;
|
|
4332
|
+
card_fingerprint: string;
|
|
4333
|
+
tokenize_support: boolean;
|
|
4334
|
+
juspay_bank_code: string;
|
|
4335
|
+
card_exp_year: string;
|
|
4336
|
+
name_on_card: string;
|
|
4337
|
+
country_code: string;
|
|
4338
|
+
atm_pin_auth_support?: boolean;
|
|
4339
|
+
card_number: string;
|
|
4340
|
+
card_isin: string;
|
|
4341
|
+
card_brand: string;
|
|
4342
|
+
card_issuer_country: string;
|
|
4133
4343
|
};
|
|
4134
4344
|
/** JuspayCardPaymentMethod */
|
|
4135
4345
|
JuspayCardPaymentMethod: {
|
|
@@ -4506,6 +4716,13 @@ interface components {
|
|
|
4506
4716
|
details: Record<string, never>[];
|
|
4507
4717
|
order_params?: Record<string, never>;
|
|
4508
4718
|
};
|
|
4719
|
+
/** MarketplaceProduct */
|
|
4720
|
+
MarketplaceProduct: components["schemas"]["Product"] & {
|
|
4721
|
+
seller_id: string;
|
|
4722
|
+
seller_detail: components["schemas"]["SellerDetail"];
|
|
4723
|
+
};
|
|
4724
|
+
/** MarketplaceProductDetail */
|
|
4725
|
+
MarketplaceProductDetail: components["schemas"]["Product"] & components["schemas"]["AdditionalProductDetails"];
|
|
4509
4726
|
/** MeasurementUnit */
|
|
4510
4727
|
MeasurementUnit: {
|
|
4511
4728
|
/** @enum {unknown} */
|
|
@@ -4738,6 +4955,10 @@ interface components {
|
|
|
4738
4955
|
handling_charge_including_tax: number;
|
|
4739
4956
|
associated_options?: components["schemas"]["AssociatedOption"] | null;
|
|
4740
4957
|
attributes?: components["schemas"]["ProductAttribute"][];
|
|
4958
|
+
/** @description Seller ID. This field is relevant for marketplace type stores only. Will return null for b2b and b2c type stores. */
|
|
4959
|
+
seller_id?: string | null;
|
|
4960
|
+
/** @description Seller detail information. This field is relevant for marketplace type stores only. Will return null for b2b and b2c type stores. */
|
|
4961
|
+
seller_detail?: components["schemas"]["SellerDetail"] | null;
|
|
4741
4962
|
};
|
|
4742
4963
|
/**
|
|
4743
4964
|
* OrderList
|
|
@@ -4902,6 +5123,10 @@ interface components {
|
|
|
4902
5123
|
created_at?: string;
|
|
4903
5124
|
/** Format: date-time */
|
|
4904
5125
|
modified_at?: string;
|
|
5126
|
+
/** @description Seller ID. This field is relevant for marketplace type stores only. Will return null for b2b and b2c type stores. */
|
|
5127
|
+
seller_id?: string | null;
|
|
5128
|
+
/** @description Seller detail information. This field is relevant for marketplace type stores only. Will return null for b2b and b2c type stores. */
|
|
5129
|
+
seller_detail?: components["schemas"]["SellerDetail"] | null;
|
|
4905
5130
|
};
|
|
4906
5131
|
/**
|
|
4907
5132
|
* @description pagination metadata structure
|
|
@@ -5105,31 +5330,6 @@ interface components {
|
|
|
5105
5330
|
country_name?: string;
|
|
5106
5331
|
country_iso_code?: string;
|
|
5107
5332
|
};
|
|
5108
|
-
/** PincodeServiceability */
|
|
5109
|
-
PincodeServiceability: {
|
|
5110
|
-
is_serviceable: boolean;
|
|
5111
|
-
shipping_methods: {
|
|
5112
|
-
id?: string;
|
|
5113
|
-
name?: string;
|
|
5114
|
-
/** @enum {unknown} */
|
|
5115
|
-
shipping_type?: "auto" | "manual";
|
|
5116
|
-
/** @description shipping amount of manual method or as per recommened courier or range of min-max shipping amount. */
|
|
5117
|
-
shipping_amount?: string;
|
|
5118
|
-
/** @description estimated delivery days of manual method or as per recommened courier or range of min-max estimated delivery days. */
|
|
5119
|
-
estimated_delivery_days?: string;
|
|
5120
|
-
courier_companies?: {
|
|
5121
|
-
id?: string | number;
|
|
5122
|
-
name?: string;
|
|
5123
|
-
shipping_amount?: number;
|
|
5124
|
-
estimated_delivery_days?: string;
|
|
5125
|
-
is_recommended?: boolean;
|
|
5126
|
-
is_hyperlocal?: boolean;
|
|
5127
|
-
/** @enum {unknown} */
|
|
5128
|
-
mode?: "air" | "surface";
|
|
5129
|
-
rating?: number;
|
|
5130
|
-
}[];
|
|
5131
|
-
}[];
|
|
5132
|
-
};
|
|
5133
5333
|
/** PosDevice */
|
|
5134
5334
|
PosDevice: {
|
|
5135
5335
|
readonly id: string;
|
|
@@ -5501,30 +5701,30 @@ interface components {
|
|
|
5501
5701
|
};
|
|
5502
5702
|
/** SavedPaymentMethod */
|
|
5503
5703
|
SavedPaymentMethod: {
|
|
5504
|
-
|
|
5704
|
+
upi_collect?: {
|
|
5505
5705
|
count: number;
|
|
5506
5706
|
last_used: string;
|
|
5507
5707
|
vpa: string;
|
|
5508
5708
|
}[];
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
};
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
|
|
5520
|
-
|
|
5521
|
-
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5709
|
+
wallet?: {
|
|
5710
|
+
linked?: string;
|
|
5711
|
+
id: string;
|
|
5712
|
+
metadata?: {
|
|
5713
|
+
mobile_number: string;
|
|
5714
|
+
device_id?: string;
|
|
5715
|
+
};
|
|
5716
|
+
wallet: string;
|
|
5717
|
+
gateway_reference_id: string;
|
|
5718
|
+
last_refreshed: string;
|
|
5719
|
+
sub_details?: {
|
|
5720
|
+
last_used: string;
|
|
5721
|
+
current_balance: string;
|
|
5722
|
+
last_refreshed: string;
|
|
5723
|
+
payment_method: string;
|
|
5724
|
+
payment_method_type: string;
|
|
5525
5725
|
};
|
|
5526
5726
|
}[];
|
|
5527
|
-
|
|
5727
|
+
card?: {
|
|
5528
5728
|
card_sub_type: string;
|
|
5529
5729
|
extended_card_type: string;
|
|
5530
5730
|
card_global_fingerprint?: string;
|
|
@@ -5582,6 +5782,14 @@ interface components {
|
|
|
5582
5782
|
*/
|
|
5583
5783
|
facets?: string[];
|
|
5584
5784
|
};
|
|
5785
|
+
/** SellerDetail */
|
|
5786
|
+
SellerDetail: {
|
|
5787
|
+
id: string;
|
|
5788
|
+
trade_name: string;
|
|
5789
|
+
legal_name: string;
|
|
5790
|
+
business_type: string;
|
|
5791
|
+
tax_identification_number: string;
|
|
5792
|
+
};
|
|
5585
5793
|
/** Seo */
|
|
5586
5794
|
Seo: {
|
|
5587
5795
|
slug: string;
|
|
@@ -5597,6 +5805,8 @@ interface components {
|
|
|
5597
5805
|
product_id?: string;
|
|
5598
5806
|
product_name?: string;
|
|
5599
5807
|
product_image_url?: string | null;
|
|
5808
|
+
variant_id?: string;
|
|
5809
|
+
variant_name?: string;
|
|
5600
5810
|
sku?: string;
|
|
5601
5811
|
quantity?: number;
|
|
5602
5812
|
free_quantity?: number;
|
|
@@ -5836,6 +6046,19 @@ interface components {
|
|
|
5836
6046
|
/** @description For text attributes */
|
|
5837
6047
|
value: string;
|
|
5838
6048
|
};
|
|
6049
|
+
/**
|
|
6050
|
+
* UnserviceableItem
|
|
6051
|
+
* @description Unserviceable item model
|
|
6052
|
+
*/
|
|
6053
|
+
UnserviceableItem: {
|
|
6054
|
+
product_id?: string;
|
|
6055
|
+
product_name?: string;
|
|
6056
|
+
product_image_url?: string | null;
|
|
6057
|
+
variant_id?: string;
|
|
6058
|
+
variant_name?: string;
|
|
6059
|
+
unserviceable_quantity?: number;
|
|
6060
|
+
max_available_quantity?: number;
|
|
6061
|
+
};
|
|
5839
6062
|
/**
|
|
5840
6063
|
* UpdateCartItem
|
|
5841
6064
|
* @description Schema for updating a cart item, including adding, removing, or adjusting the quantity of a product or variant.
|
|
@@ -7502,6 +7725,47 @@ interface operations {
|
|
|
7502
7725
|
401: components["responses"]["Unauthorized"];
|
|
7503
7726
|
};
|
|
7504
7727
|
};
|
|
7728
|
+
"get-fulfillment-options": {
|
|
7729
|
+
parameters: {
|
|
7730
|
+
query?: never;
|
|
7731
|
+
header?: never;
|
|
7732
|
+
path?: never;
|
|
7733
|
+
cookie?: never;
|
|
7734
|
+
};
|
|
7735
|
+
requestBody: {
|
|
7736
|
+
content: {
|
|
7737
|
+
"application/json": components["schemas"]["CartBasedFulfillmentOption"];
|
|
7738
|
+
};
|
|
7739
|
+
};
|
|
7740
|
+
responses: {
|
|
7741
|
+
/** @description OK */
|
|
7742
|
+
200: {
|
|
7743
|
+
headers: {
|
|
7744
|
+
[name: string]: unknown;
|
|
7745
|
+
};
|
|
7746
|
+
content: {
|
|
7747
|
+
"application/json": {
|
|
7748
|
+
message: string;
|
|
7749
|
+
success: boolean;
|
|
7750
|
+
content: {
|
|
7751
|
+
summary: {
|
|
7752
|
+
collect_available: boolean;
|
|
7753
|
+
deliver_available: boolean;
|
|
7754
|
+
/** @enum {unknown} */
|
|
7755
|
+
recommended_fulfillment_type: "collect-in-store" | "delivery";
|
|
7756
|
+
recommended_store?: components["schemas"]["CollectInStore"];
|
|
7757
|
+
};
|
|
7758
|
+
collect?: components["schemas"]["CollectInStore"][];
|
|
7759
|
+
deliver?: components["schemas"]["DeliveryOption"];
|
|
7760
|
+
};
|
|
7761
|
+
};
|
|
7762
|
+
};
|
|
7763
|
+
};
|
|
7764
|
+
400: components["responses"]["BadRequest"];
|
|
7765
|
+
401: components["responses"]["Unauthorized"];
|
|
7766
|
+
404: components["responses"]["NotFound"];
|
|
7767
|
+
};
|
|
7768
|
+
};
|
|
7505
7769
|
"get-user-cart": {
|
|
7506
7770
|
parameters: {
|
|
7507
7771
|
query?: never;
|
|
@@ -8133,6 +8397,8 @@ interface operations {
|
|
|
8133
8397
|
category_slug?: string[];
|
|
8134
8398
|
/** @description Determines whether to include or exlude inventory details in response json */
|
|
8135
8399
|
inventory?: boolean;
|
|
8400
|
+
/** @description filter products by seller id */
|
|
8401
|
+
seller_id?: string;
|
|
8136
8402
|
};
|
|
8137
8403
|
header?: {
|
|
8138
8404
|
/** @description This param is used to determine product pricing, promotions, and subscription rates. If a valid customer group id is provided, pricing details will be retrieved accordingly. If no matching data is found for the specified customer group id, the system will fall back to the default customer group id. If no data is found for the default group either, the highest applicable price will be returned. */
|
|
@@ -8154,7 +8420,7 @@ interface operations {
|
|
|
8154
8420
|
message: string;
|
|
8155
8421
|
success: boolean;
|
|
8156
8422
|
content: {
|
|
8157
|
-
products: components["schemas"]["
|
|
8423
|
+
products: components["schemas"]["MarketplaceProduct"][];
|
|
8158
8424
|
pagination: components["schemas"]["Pagination"];
|
|
8159
8425
|
};
|
|
8160
8426
|
};
|
|
@@ -8363,7 +8629,7 @@ interface operations {
|
|
|
8363
8629
|
message: string;
|
|
8364
8630
|
success: boolean;
|
|
8365
8631
|
content: {
|
|
8366
|
-
product: components["schemas"]["
|
|
8632
|
+
product: components["schemas"]["MarketplaceProductDetail"];
|
|
8367
8633
|
};
|
|
8368
8634
|
};
|
|
8369
8635
|
};
|
|
@@ -8541,6 +8807,8 @@ interface operations {
|
|
|
8541
8807
|
category_id?: string[];
|
|
8542
8808
|
/** @description Determines whether to include or exlude inventory details in response json */
|
|
8543
8809
|
inventory?: boolean;
|
|
8810
|
+
/** @description filter sku by seller id */
|
|
8811
|
+
seller_id?: string;
|
|
8544
8812
|
/** @description array of sku */
|
|
8545
8813
|
sku?: string[];
|
|
8546
8814
|
};
|
|
@@ -9162,7 +9430,7 @@ interface operations {
|
|
|
9162
9430
|
401: components["responses"]["Unauthorized"];
|
|
9163
9431
|
};
|
|
9164
9432
|
};
|
|
9165
|
-
"list-
|
|
9433
|
+
"list-customer-cards": {
|
|
9166
9434
|
parameters: {
|
|
9167
9435
|
query?: never;
|
|
9168
9436
|
header?: never;
|
|
@@ -9181,10 +9449,10 @@ interface operations {
|
|
|
9181
9449
|
};
|
|
9182
9450
|
content: {
|
|
9183
9451
|
"application/json": {
|
|
9184
|
-
message
|
|
9185
|
-
success
|
|
9186
|
-
content
|
|
9187
|
-
|
|
9452
|
+
message: string;
|
|
9453
|
+
success: boolean;
|
|
9454
|
+
content: {
|
|
9455
|
+
cards: components["schemas"]["JuspayCardDetail"][];
|
|
9188
9456
|
};
|
|
9189
9457
|
};
|
|
9190
9458
|
};
|
|
@@ -9193,13 +9461,16 @@ interface operations {
|
|
|
9193
9461
|
404: components["responses"]["NotFound"];
|
|
9194
9462
|
};
|
|
9195
9463
|
};
|
|
9196
|
-
"
|
|
9464
|
+
"list-saved-payment-methods": {
|
|
9197
9465
|
parameters: {
|
|
9198
|
-
query?:
|
|
9466
|
+
query?: {
|
|
9467
|
+
/** @description Filter payment methods by type. Accepts multiple payment method types separated by commas. Example: payment_method=upi_collect,card,wallet. Available payment method types include: upi_collect, card, wallet. */
|
|
9468
|
+
payment_method?: string;
|
|
9469
|
+
};
|
|
9199
9470
|
header?: never;
|
|
9200
9471
|
path: {
|
|
9201
|
-
/** @description Customer
|
|
9202
|
-
|
|
9472
|
+
/** @description Customer Id */
|
|
9473
|
+
customer_id: string;
|
|
9203
9474
|
};
|
|
9204
9475
|
cookie?: never;
|
|
9205
9476
|
};
|
|
@@ -9215,17 +9486,16 @@ interface operations {
|
|
|
9215
9486
|
message?: string;
|
|
9216
9487
|
success?: boolean;
|
|
9217
9488
|
content?: {
|
|
9218
|
-
|
|
9489
|
+
saved_payment_methods?: components["schemas"]["SavedPaymentMethod"];
|
|
9219
9490
|
};
|
|
9220
9491
|
};
|
|
9221
9492
|
};
|
|
9222
9493
|
};
|
|
9223
|
-
400: components["responses"]["BadRequest"];
|
|
9224
9494
|
401: components["responses"]["Unauthorized"];
|
|
9225
9495
|
404: components["responses"]["NotFound"];
|
|
9226
9496
|
};
|
|
9227
9497
|
};
|
|
9228
|
-
"
|
|
9498
|
+
"get-customer-detail": {
|
|
9229
9499
|
parameters: {
|
|
9230
9500
|
query?: never;
|
|
9231
9501
|
header?: never;
|
|
@@ -9235,8 +9505,40 @@ interface operations {
|
|
|
9235
9505
|
};
|
|
9236
9506
|
cookie?: never;
|
|
9237
9507
|
};
|
|
9238
|
-
requestBody
|
|
9239
|
-
|
|
9508
|
+
requestBody?: never;
|
|
9509
|
+
responses: {
|
|
9510
|
+
/** @description OK */
|
|
9511
|
+
200: {
|
|
9512
|
+
headers: {
|
|
9513
|
+
[name: string]: unknown;
|
|
9514
|
+
};
|
|
9515
|
+
content: {
|
|
9516
|
+
"application/json": {
|
|
9517
|
+
message?: string;
|
|
9518
|
+
success?: boolean;
|
|
9519
|
+
content?: {
|
|
9520
|
+
customer_detail?: components["schemas"]["CustomerDetail"];
|
|
9521
|
+
};
|
|
9522
|
+
};
|
|
9523
|
+
};
|
|
9524
|
+
};
|
|
9525
|
+
400: components["responses"]["BadRequest"];
|
|
9526
|
+
401: components["responses"]["Unauthorized"];
|
|
9527
|
+
404: components["responses"]["NotFound"];
|
|
9528
|
+
};
|
|
9529
|
+
};
|
|
9530
|
+
"update-customer": {
|
|
9531
|
+
parameters: {
|
|
9532
|
+
query?: never;
|
|
9533
|
+
header?: never;
|
|
9534
|
+
path: {
|
|
9535
|
+
/** @description Customer id */
|
|
9536
|
+
id: string;
|
|
9537
|
+
};
|
|
9538
|
+
cookie?: never;
|
|
9539
|
+
};
|
|
9540
|
+
requestBody: {
|
|
9541
|
+
content: {
|
|
9240
9542
|
"application/json": components["schemas"]["UpdateCustomer"];
|
|
9241
9543
|
};
|
|
9242
9544
|
};
|
|
@@ -9774,6 +10076,42 @@ interface operations {
|
|
|
9774
10076
|
404: components["responses"]["NotFound"];
|
|
9775
10077
|
};
|
|
9776
10078
|
};
|
|
10079
|
+
"check-fulfillment": {
|
|
10080
|
+
parameters: {
|
|
10081
|
+
query?: never;
|
|
10082
|
+
header?: never;
|
|
10083
|
+
path?: never;
|
|
10084
|
+
cookie?: never;
|
|
10085
|
+
};
|
|
10086
|
+
/** @description Fulfillment check request */
|
|
10087
|
+
requestBody: {
|
|
10088
|
+
content: {
|
|
10089
|
+
"application/json": components["schemas"]["CartBasedFulfillmentCheck"] | components["schemas"]["ItemsBasedFulfillmentCheck"];
|
|
10090
|
+
};
|
|
10091
|
+
};
|
|
10092
|
+
responses: {
|
|
10093
|
+
/** @description OK */
|
|
10094
|
+
200: {
|
|
10095
|
+
headers: {
|
|
10096
|
+
[name: string]: unknown;
|
|
10097
|
+
};
|
|
10098
|
+
content: {
|
|
10099
|
+
"application/json": {
|
|
10100
|
+
message: string;
|
|
10101
|
+
success: boolean;
|
|
10102
|
+
content: {
|
|
10103
|
+
is_serviceable: boolean;
|
|
10104
|
+
/** @description List of unserviceable items if any. Empty array if all items are serviceable. */
|
|
10105
|
+
unserviceable_items?: components["schemas"]["UnserviceableItem"][];
|
|
10106
|
+
};
|
|
10107
|
+
};
|
|
10108
|
+
};
|
|
10109
|
+
};
|
|
10110
|
+
400: components["responses"]["BadRequest"];
|
|
10111
|
+
401: components["responses"]["Unauthorized"];
|
|
10112
|
+
404: components["responses"]["NotFound"];
|
|
10113
|
+
};
|
|
10114
|
+
};
|
|
9777
10115
|
"list-orders": {
|
|
9778
10116
|
parameters: {
|
|
9779
10117
|
query: {
|
|
@@ -10239,6 +10577,38 @@ interface operations {
|
|
|
10239
10577
|
401: components["responses"]["Unauthorized"];
|
|
10240
10578
|
};
|
|
10241
10579
|
};
|
|
10580
|
+
"get-card-info": {
|
|
10581
|
+
parameters: {
|
|
10582
|
+
query: {
|
|
10583
|
+
/** @description Initial 9 digits of card number (card BIN) */
|
|
10584
|
+
cardbin: string;
|
|
10585
|
+
};
|
|
10586
|
+
header?: never;
|
|
10587
|
+
path?: never;
|
|
10588
|
+
cookie?: never;
|
|
10589
|
+
};
|
|
10590
|
+
requestBody?: never;
|
|
10591
|
+
responses: {
|
|
10592
|
+
/** @description OK */
|
|
10593
|
+
200: {
|
|
10594
|
+
headers: {
|
|
10595
|
+
[name: string]: unknown;
|
|
10596
|
+
};
|
|
10597
|
+
content: {
|
|
10598
|
+
"application/json": {
|
|
10599
|
+
message: string;
|
|
10600
|
+
success: boolean;
|
|
10601
|
+
content: {
|
|
10602
|
+
card_info: components["schemas"]["CardbinInfo"];
|
|
10603
|
+
};
|
|
10604
|
+
};
|
|
10605
|
+
};
|
|
10606
|
+
};
|
|
10607
|
+
400: components["responses"]["BadRequest"];
|
|
10608
|
+
401: components["responses"]["Unauthorized"];
|
|
10609
|
+
404: components["responses"]["NotFound"];
|
|
10610
|
+
};
|
|
10611
|
+
};
|
|
10242
10612
|
"generate-hash": {
|
|
10243
10613
|
parameters: {
|
|
10244
10614
|
query?: never;
|
|
@@ -10384,7 +10754,12 @@ interface operations {
|
|
|
10384
10754
|
};
|
|
10385
10755
|
"list-payment-methods": {
|
|
10386
10756
|
parameters: {
|
|
10387
|
-
query?:
|
|
10757
|
+
query?: {
|
|
10758
|
+
/** @description Payment method type */
|
|
10759
|
+
payment_method_type?: "card" | "upi" | "netbanking" | "wallet" | "manual";
|
|
10760
|
+
/** @description Payment provider slug */
|
|
10761
|
+
payment_provider_slug?: string;
|
|
10762
|
+
};
|
|
10388
10763
|
header?: never;
|
|
10389
10764
|
path?: never;
|
|
10390
10765
|
cookie?: never;
|
|
@@ -10470,8 +10845,15 @@ interface operations {
|
|
|
10470
10845
|
message?: string;
|
|
10471
10846
|
success?: boolean;
|
|
10472
10847
|
content?: {
|
|
10473
|
-
vpa
|
|
10474
|
-
|
|
10848
|
+
vpa: string;
|
|
10849
|
+
/** @enum {string} */
|
|
10850
|
+
status: "valid" | "invalid" | "unknown";
|
|
10851
|
+
customer_name: string;
|
|
10852
|
+
/** @description Mandate details if available. */
|
|
10853
|
+
mandate_details: {
|
|
10854
|
+
/** @description Indicates whether the specific VPA handle is supported by the merchant's account. */
|
|
10855
|
+
is_handle_supported?: boolean;
|
|
10856
|
+
};
|
|
10475
10857
|
};
|
|
10476
10858
|
};
|
|
10477
10859
|
};
|
|
@@ -11950,7 +12332,7 @@ interface operations {
|
|
|
11950
12332
|
};
|
|
11951
12333
|
requestBody: {
|
|
11952
12334
|
content: {
|
|
11953
|
-
"application/json": components["schemas"]["
|
|
12335
|
+
"application/json": components["schemas"]["CartBasedFulfillmentOption"];
|
|
11954
12336
|
};
|
|
11955
12337
|
};
|
|
11956
12338
|
responses: {
|
|
@@ -11972,7 +12354,7 @@ interface operations {
|
|
|
11972
12354
|
recommended_store?: components["schemas"]["CollectInStore"];
|
|
11973
12355
|
};
|
|
11974
12356
|
collect?: components["schemas"]["CollectInStore"][];
|
|
11975
|
-
deliver?: components["schemas"]["
|
|
12357
|
+
deliver?: components["schemas"]["DeliveryOption"];
|
|
11976
12358
|
};
|
|
11977
12359
|
};
|
|
11978
12360
|
};
|
|
@@ -12115,79 +12497,6 @@ interface operations {
|
|
|
12115
12497
|
401: components["responses"]["Unauthorized"];
|
|
12116
12498
|
};
|
|
12117
12499
|
};
|
|
12118
|
-
"get-fulfillment-options": {
|
|
12119
|
-
parameters: {
|
|
12120
|
-
query?: never;
|
|
12121
|
-
header?: never;
|
|
12122
|
-
path?: never;
|
|
12123
|
-
cookie?: never;
|
|
12124
|
-
};
|
|
12125
|
-
requestBody: {
|
|
12126
|
-
content: {
|
|
12127
|
-
"application/json": components["schemas"]["CartBasedServiceabilityCheck"];
|
|
12128
|
-
};
|
|
12129
|
-
};
|
|
12130
|
-
responses: {
|
|
12131
|
-
/** @description OK */
|
|
12132
|
-
200: {
|
|
12133
|
-
headers: {
|
|
12134
|
-
[name: string]: unknown;
|
|
12135
|
-
};
|
|
12136
|
-
content: {
|
|
12137
|
-
"application/json": {
|
|
12138
|
-
message: string;
|
|
12139
|
-
success: boolean;
|
|
12140
|
-
content: {
|
|
12141
|
-
summary: {
|
|
12142
|
-
collect_available: boolean;
|
|
12143
|
-
deliver_available: boolean;
|
|
12144
|
-
/** @enum {unknown} */
|
|
12145
|
-
recommended_fulfillment_type: "collect-in-store" | "delivery";
|
|
12146
|
-
recommended_store?: components["schemas"]["CollectInStore"];
|
|
12147
|
-
};
|
|
12148
|
-
collect?: components["schemas"]["CollectInStore"][];
|
|
12149
|
-
deliver?: components["schemas"]["PincodeServiceability"];
|
|
12150
|
-
};
|
|
12151
|
-
};
|
|
12152
|
-
};
|
|
12153
|
-
};
|
|
12154
|
-
400: components["responses"]["BadRequest"];
|
|
12155
|
-
401: components["responses"]["Unauthorized"];
|
|
12156
|
-
404: components["responses"]["NotFound"];
|
|
12157
|
-
};
|
|
12158
|
-
};
|
|
12159
|
-
"check-pincode-serviceability": {
|
|
12160
|
-
parameters: {
|
|
12161
|
-
query?: never;
|
|
12162
|
-
header?: never;
|
|
12163
|
-
path: {
|
|
12164
|
-
/** @description delivery pincode */
|
|
12165
|
-
pincode: string;
|
|
12166
|
-
};
|
|
12167
|
-
cookie?: never;
|
|
12168
|
-
};
|
|
12169
|
-
requestBody?: never;
|
|
12170
|
-
responses: {
|
|
12171
|
-
/** @description OK */
|
|
12172
|
-
200: {
|
|
12173
|
-
headers: {
|
|
12174
|
-
[name: string]: unknown;
|
|
12175
|
-
};
|
|
12176
|
-
content: {
|
|
12177
|
-
"application/json": {
|
|
12178
|
-
message: string;
|
|
12179
|
-
success: boolean;
|
|
12180
|
-
content: {
|
|
12181
|
-
is_serviceable: boolean;
|
|
12182
|
-
};
|
|
12183
|
-
};
|
|
12184
|
-
};
|
|
12185
|
-
};
|
|
12186
|
-
400: components["responses"]["BadRequest"];
|
|
12187
|
-
401: components["responses"]["Unauthorized"];
|
|
12188
|
-
404: components["responses"]["NotFound"];
|
|
12189
|
-
};
|
|
12190
|
-
};
|
|
12191
12500
|
"get-config": {
|
|
12192
12501
|
parameters: {
|
|
12193
12502
|
query?: never;
|
|
@@ -13200,9 +13509,12 @@ type BuyXGetYRule = components['schemas']['BuyXGetYRule'];
|
|
|
13200
13509
|
type BuyXGetYRuleBasedOnAmount = components['schemas']['BuyXGetYRuleBasedOnAmount'];
|
|
13201
13510
|
type BuyXGetYRuleBasedOnQuantity = components['schemas']['BuyXGetYRuleBasedOnQuantity'];
|
|
13202
13511
|
type CardPayment = components['schemas']['CardPayment'];
|
|
13512
|
+
type CardbinInfo = components['schemas']['CardbinInfo'];
|
|
13203
13513
|
type Cart = components['schemas']['Cart'];
|
|
13204
|
-
type
|
|
13514
|
+
type CartBasedFulfillmentCheck = components['schemas']['CartBasedFulfillmentCheck'];
|
|
13515
|
+
type CartBasedFulfillmentOption = components['schemas']['CartBasedFulfillmentOption'];
|
|
13205
13516
|
type CartItem = components['schemas']['CartItem'];
|
|
13517
|
+
type CartShipment = components['schemas']['CartShipment'];
|
|
13206
13518
|
type Category = components['schemas']['Category'];
|
|
13207
13519
|
type CollectInStore = components['schemas']['CollectInStore'];
|
|
13208
13520
|
type CollectInStoreAddress = components['schemas']['CollectInStoreAddress'];
|
|
@@ -13231,6 +13543,7 @@ type CustomerReadyForReview = components['schemas']['CustomerReadyForReview'];
|
|
|
13231
13543
|
type CustomerReview = components['schemas']['CustomerReview'];
|
|
13232
13544
|
type DateAttribute = components['schemas']['DateAttribute'];
|
|
13233
13545
|
type DeliveryFulfillment = components['schemas']['DeliveryFulfillment'];
|
|
13546
|
+
type DeliveryOption = components['schemas']['DeliveryOption'];
|
|
13234
13547
|
type DiscountBasedPromotion = components['schemas']['DiscountBasedPromotion'];
|
|
13235
13548
|
type DiscountCouponPromotion = components['schemas']['DiscountCouponPromotion'];
|
|
13236
13549
|
type DiscountRule = components['schemas']['DiscountRule'];
|
|
@@ -13253,6 +13566,7 @@ type GstinDetail = components['schemas']['GstinDetail'];
|
|
|
13253
13566
|
type InapplicableCoupon = components['schemas']['InapplicableCoupon'];
|
|
13254
13567
|
type InapplicablePromotion = components['schemas']['InapplicablePromotion'];
|
|
13255
13568
|
type Item = components['schemas']['Item'];
|
|
13569
|
+
type ItemsBasedFulfillmentCheck = components['schemas']['ItemsBasedFulfillmentCheck'];
|
|
13256
13570
|
type JusPayExpressCheckout = components['schemas']['JusPayExpressCheckout'];
|
|
13257
13571
|
type JusPayExpressCheckoutCommonField = components['schemas']['JusPayExpressCheckoutCommonField'];
|
|
13258
13572
|
type JusPayExpressCheckoutResponse = components['schemas']['JusPayExpressCheckoutResponse'];
|
|
@@ -13260,6 +13574,7 @@ type JusPayHyperCheckout = components['schemas']['JusPayHyperCheckout'];
|
|
|
13260
13574
|
type JusPayHyperCheckoutResponse = components['schemas']['JusPayHyperCheckoutResponse'];
|
|
13261
13575
|
type JusPayNewCard = components['schemas']['JusPayNewCard'];
|
|
13262
13576
|
type JusPaySavedCardToken = components['schemas']['JusPaySavedCardToken'];
|
|
13577
|
+
type JuspayCardDetail = components['schemas']['JuspayCardDetail'];
|
|
13263
13578
|
type JuspayCardPaymentMethod = components['schemas']['JuspayCardPaymentMethod'];
|
|
13264
13579
|
type JuspayCreateCustomerPayload = components['schemas']['JuspayCreateCustomerPayload'];
|
|
13265
13580
|
type JuspayCreateOrderPayload = components['schemas']['JuspayCreateOrderPayload'];
|
|
@@ -13278,6 +13593,8 @@ type KycDocumentConfig = components['schemas']['KycDocumentConfig'];
|
|
|
13278
13593
|
type LotBatchDetail = components['schemas']['LotBatchDetail'];
|
|
13279
13594
|
type LoyaltyPointActivity = components['schemas']['LoyaltyPointActivity'];
|
|
13280
13595
|
type ManualPaymentMethod = components['schemas']['ManualPaymentMethod'];
|
|
13596
|
+
type MarketplaceProduct = components['schemas']['MarketplaceProduct'];
|
|
13597
|
+
type MarketplaceProductDetail = components['schemas']['MarketplaceProductDetail'];
|
|
13281
13598
|
type MeasurementUnit = components['schemas']['MeasurementUnit'];
|
|
13282
13599
|
type MultiSelectAttribute = components['schemas']['MultiSelectAttribute'];
|
|
13283
13600
|
type NetbankingPayment = components['schemas']['NetbankingPayment'];
|
|
@@ -13306,7 +13623,6 @@ type PayuPaymentInfo = components['schemas']['PayuPaymentInfo'];
|
|
|
13306
13623
|
type PayuPaymentMethod = components['schemas']['PayuPaymentMethod'];
|
|
13307
13624
|
type PercentageDiscountRule = components['schemas']['PercentageDiscountRule'];
|
|
13308
13625
|
type Pincode = components['schemas']['Pincode'];
|
|
13309
|
-
type PincodeServiceability = components['schemas']['PincodeServiceability'];
|
|
13310
13626
|
type PosDevice = components['schemas']['PosDevice'];
|
|
13311
13627
|
type PosDeviceClaimedUser = components['schemas']['PosDeviceClaimedUser'];
|
|
13312
13628
|
type PosLocation = components['schemas']['PosLocation'];
|
|
@@ -13333,6 +13649,7 @@ type RegisterWithPhonePassword = components['schemas']['RegisterWithPhonePasswor
|
|
|
13333
13649
|
type RevokeSubscription = components['schemas']['RevokeSubscription'];
|
|
13334
13650
|
type SavedPaymentMethod = components['schemas']['SavedPaymentMethod'];
|
|
13335
13651
|
type SearchProduct = components['schemas']['SearchProduct'];
|
|
13652
|
+
type SellerDetail = components['schemas']['SellerDetail'];
|
|
13336
13653
|
type Seo = components['schemas']['Seo'];
|
|
13337
13654
|
type ShipmentItem = components['schemas']['ShipmentItem'];
|
|
13338
13655
|
type ShipmentStatus = components['schemas']['ShipmentStatus'];
|
|
@@ -13345,6 +13662,7 @@ type SubscriptionBehaviour = components['schemas']['SubscriptionBehaviour'];
|
|
|
13345
13662
|
type SubscriptionDetail = components['schemas']['SubscriptionDetail'];
|
|
13346
13663
|
type SubscriptionInvoiceItem = components['schemas']['SubscriptionInvoiceItem'];
|
|
13347
13664
|
type TextAttribute = components['schemas']['TextAttribute'];
|
|
13665
|
+
type UnserviceableItem = components['schemas']['UnserviceableItem'];
|
|
13348
13666
|
type UpdateCartItem = components['schemas']['UpdateCartItem'];
|
|
13349
13667
|
type UpdateCustomer = components['schemas']['UpdateCustomer'];
|
|
13350
13668
|
type UpdateDigitalProductSubscription = components['schemas']['UpdateDigitalProductSubscription'];
|
|
@@ -13458,6 +13776,9 @@ type ListCouponsHeaderParams = paths['/carts/available-coupons']['get']['paramet
|
|
|
13458
13776
|
type ListPromotionsResponse = paths['/carts/available-promotions']['get']['responses'][200]['content']['application/json'];
|
|
13459
13777
|
type ListPromotionsContent = ListPromotionsResponse['content'];
|
|
13460
13778
|
type ListPromotionsHeaderParams = paths['/carts/available-promotions']['get']['parameters']['header'];
|
|
13779
|
+
type GetFulfillmentOptionsResponse = paths['/carts/fulfillment-options']['post']['responses'][200]['content']['application/json'];
|
|
13780
|
+
type GetFulfillmentOptionsContent = GetFulfillmentOptionsResponse['content'];
|
|
13781
|
+
type GetFulfillmentOptionsBody = NonNullable<paths['/carts/fulfillment-options']['post']['requestBody']>['content']['application/json'];
|
|
13461
13782
|
type GetUserCartResponse = paths['/carts/users/{user_id}']['get']['responses'][200]['content']['application/json'];
|
|
13462
13783
|
type GetUserCartContent = GetUserCartResponse['content'];
|
|
13463
13784
|
type GetUserCartPathParams = paths['/carts/users/{user_id}']['get']['parameters']['path'];
|
|
@@ -13617,8 +13938,12 @@ type ListCountryStatesPathParams = paths['/common/countries/{country_iso_code}/s
|
|
|
13617
13938
|
type CreateCustomerResponse = paths['/customers']['post']['responses'][200]['content']['application/json'];
|
|
13618
13939
|
type CreateCustomerContent = CreateCustomerResponse['content'];
|
|
13619
13940
|
type CreateCustomerBody = NonNullable<paths['/customers']['post']['requestBody']>['content']['application/json'];
|
|
13941
|
+
type ListCustomerCardsResponse = paths['/customers/{customer_id}/cards']['get']['responses'][200]['content']['application/json'];
|
|
13942
|
+
type ListCustomerCardsContent = ListCustomerCardsResponse['content'];
|
|
13943
|
+
type ListCustomerCardsPathParams = paths['/customers/{customer_id}/cards']['get']['parameters']['path'];
|
|
13620
13944
|
type ListSavedPaymentMethodsResponse = paths['/customers/{customer_id}/payment-methods']['get']['responses'][200]['content']['application/json'];
|
|
13621
13945
|
type ListSavedPaymentMethodsContent = ListSavedPaymentMethodsResponse['content'];
|
|
13946
|
+
type ListSavedPaymentMethodsQuery = paths['/customers/{customer_id}/payment-methods']['get']['parameters']['query'];
|
|
13622
13947
|
type ListSavedPaymentMethodsPathParams = paths['/customers/{customer_id}/payment-methods']['get']['parameters']['path'];
|
|
13623
13948
|
type GetCustomerDetailResponse = paths['/customers/{id}']['get']['responses'][200]['content']['application/json'];
|
|
13624
13949
|
type GetCustomerDetailContent = GetCustomerDetailResponse['content'];
|
|
@@ -13674,6 +13999,9 @@ type ListLoyaltyActivitiesPathParams = paths['/customers/{user_id}/loyalty-point
|
|
|
13674
13999
|
type ListUserReviewsResponse = paths['/customers/{user_id}/reviews']['get']['responses'][200]['content']['application/json'];
|
|
13675
14000
|
type ListUserReviewsContent = ListUserReviewsResponse['content'];
|
|
13676
14001
|
type ListUserReviewsPathParams = paths['/customers/{user_id}/reviews']['get']['parameters']['path'];
|
|
14002
|
+
type CheckFulfillmentResponse = paths['/fulfillment/serviceability']['post']['responses'][200]['content']['application/json'];
|
|
14003
|
+
type CheckFulfillmentContent = CheckFulfillmentResponse['content'];
|
|
14004
|
+
type CheckFulfillmentBody = NonNullable<paths['/fulfillment/serviceability']['post']['requestBody']>['content']['application/json'];
|
|
13677
14005
|
type CreateOrderResponse = paths['/orders']['post']['responses'][200]['content']['application/json'];
|
|
13678
14006
|
type CreateOrderContent = CreateOrderResponse['content'];
|
|
13679
14007
|
type CreateOrderBody = NonNullable<paths['/orders']['post']['requestBody']>['content']['application/json'];
|
|
@@ -13714,6 +14042,9 @@ type ListOrderShipmentsContent = ListOrderShipmentsResponse['content'];
|
|
|
13714
14042
|
type ListOrderShipmentsPathParams = paths['/orders/{order_number}/shipments']['get']['parameters']['path'];
|
|
13715
14043
|
type AuthenticateDirectOtpResponse = paths['/payments/authenticate-direct-otp']['post']['responses'][200]['content']['application/json'];
|
|
13716
14044
|
type AuthenticateDirectOtpBody = NonNullable<paths['/payments/authenticate-direct-otp']['post']['requestBody']>['content']['application/json'];
|
|
14045
|
+
type GetCardInfoResponse = paths['/payments/card-info']['get']['responses'][200]['content']['application/json'];
|
|
14046
|
+
type GetCardInfoContent = GetCardInfoResponse['content'];
|
|
14047
|
+
type GetCardInfoQuery = paths['/payments/card-info']['get']['parameters']['query'];
|
|
13717
14048
|
type GenerateHashResponse = paths['/payments/generate-hash']['post']['responses'][200]['content']['application/json'];
|
|
13718
14049
|
type GenerateHashContent = GenerateHashResponse['content'];
|
|
13719
14050
|
type GenerateHashBody = NonNullable<paths['/payments/generate-hash']['post']['requestBody']>['content']['application/json'];
|
|
@@ -13728,6 +14059,7 @@ type GetJuspayCustomerContent = GetJuspayCustomerResponse['content'];
|
|
|
13728
14059
|
type GetJuspayCustomerPathParams = paths['/payments/juspay/customers/{user_id}']['get']['parameters']['path'];
|
|
13729
14060
|
type ListPaymentMethodsResponse = paths['/payments/payment-methods']['get']['responses'][200]['content']['application/json'];
|
|
13730
14061
|
type ListPaymentMethodsContent = ListPaymentMethodsResponse['content'];
|
|
14062
|
+
type ListPaymentMethodsQuery = paths['/payments/payment-methods']['get']['parameters']['query'];
|
|
13731
14063
|
type ResendDirectOtpResponse = paths['/payments/resend-direct-otp']['post']['responses'][200]['content']['application/json'];
|
|
13732
14064
|
type ResendDirectOtpContent = ResendDirectOtpResponse['content'];
|
|
13733
14065
|
type ResendDirectOtpBody = NonNullable<paths['/payments/resend-direct-otp']['post']['requestBody']>['content']['application/json'];
|
|
@@ -13884,12 +14216,6 @@ type PosGetPaymentStatusPathParams = paths['/pos/orders/{order_number}/payment-s
|
|
|
13884
14216
|
type GetPosUserResponse = paths['/pos/users/{id}']['get']['responses'][200]['content']['application/json'];
|
|
13885
14217
|
type GetPosUserContent = GetPosUserResponse['content'];
|
|
13886
14218
|
type GetPosUserPathParams = paths['/pos/users/{id}']['get']['parameters']['path'];
|
|
13887
|
-
type GetFulfillmentOptionsResponse = paths['/shipping/fulfillment-options']['post']['responses'][200]['content']['application/json'];
|
|
13888
|
-
type GetFulfillmentOptionsContent = GetFulfillmentOptionsResponse['content'];
|
|
13889
|
-
type GetFulfillmentOptionsBody = NonNullable<paths['/shipping/fulfillment-options']['post']['requestBody']>['content']['application/json'];
|
|
13890
|
-
type CheckPincodeServiceabilityResponse = paths['/shipping/serviceability/{pincode}']['get']['responses'][200]['content']['application/json'];
|
|
13891
|
-
type CheckPincodeServiceabilityContent = CheckPincodeServiceabilityResponse['content'];
|
|
13892
|
-
type CheckPincodeServiceabilityPathParams = paths['/shipping/serviceability/{pincode}']['get']['parameters']['path'];
|
|
13893
14219
|
type GetConfigResponse = paths['/store/config']['get']['responses'][200]['content']['application/json'];
|
|
13894
14220
|
type GetConfigContent = GetConfigResponse['content'];
|
|
13895
14221
|
type ListKycDocumentResponse = paths['/store/kyc-document']['get']['responses'][200]['content']['application/json'];
|
|
@@ -14671,6 +14997,120 @@ declare class CartClient extends StorefrontAPIClient {
|
|
|
14671
14997
|
* ```
|
|
14672
14998
|
*/
|
|
14673
14999
|
removeCoupon(cartId: RemoveCouponPathParams): Promise<ApiResult<RemoveCouponContent>>;
|
|
15000
|
+
/**
|
|
15001
|
+
* Get all available coupons
|
|
15002
|
+
*
|
|
15003
|
+
* @param headers - Optional header parameters (customer_group_id, etc.)
|
|
15004
|
+
* @returns Promise with all available coupons
|
|
15005
|
+
* @example
|
|
15006
|
+
* ```typescript
|
|
15007
|
+
* // Get all available coupons
|
|
15008
|
+
* const { data, error } = await sdk.cart.getAvailableCoupons();
|
|
15009
|
+
*
|
|
15010
|
+
* if (error) {
|
|
15011
|
+
* console.error("Failed to get available coupons:", error.message);
|
|
15012
|
+
* } else {
|
|
15013
|
+
* const coupons = data.coupons || [];
|
|
15014
|
+
* console.log("Available coupons:", coupons.length);
|
|
15015
|
+
* coupons.forEach(coupon => {
|
|
15016
|
+
* console.log("Coupon:", coupon.code, "Discount:", coupon.discount_amount);
|
|
15017
|
+
* });
|
|
15018
|
+
* }
|
|
15019
|
+
*
|
|
15020
|
+
* // Override customer group ID for this specific request
|
|
15021
|
+
* const { data: overrideData, error: overrideError } = await sdk.cart.getAvailableCoupons({
|
|
15022
|
+
* "x-customer-group-id": "01H9GROUP12345ABC" // Override default SDK config
|
|
15023
|
+
* });
|
|
15024
|
+
* ```
|
|
15025
|
+
*/
|
|
15026
|
+
getAvailableCoupons(headers?: ListCouponsHeaderParams): Promise<ApiResult<ListCouponsContent>>;
|
|
15027
|
+
/**
|
|
15028
|
+
* Get all available promotions
|
|
15029
|
+
*
|
|
15030
|
+
* @param headers - Optional header parameters (customer_group_id, etc.)
|
|
15031
|
+
* @returns Promise with all available promotions
|
|
15032
|
+
* @example
|
|
15033
|
+
* ```typescript
|
|
15034
|
+
* // Get all available promotions
|
|
15035
|
+
* const { data, error } = await sdk.cart.getAvailablePromotions();
|
|
15036
|
+
*
|
|
15037
|
+
* if (error) {
|
|
15038
|
+
* console.error("Failed to get available promotions:", error.message);
|
|
15039
|
+
* } else {
|
|
15040
|
+
* const promotions = data.promotions || [];
|
|
15041
|
+
* console.log("Available promotions:", promotions.length);
|
|
15042
|
+
* promotions.forEach(promotion => {
|
|
15043
|
+
* console.log("Promotion:", promotion.name, "Type:", promotion.promotion_type);
|
|
15044
|
+
* });
|
|
15045
|
+
* }
|
|
15046
|
+
*
|
|
15047
|
+
* // Override customer group ID for this specific request
|
|
15048
|
+
* const { data: overrideData, error: overrideError } = await sdk.cart.getAvailablePromotions({
|
|
15049
|
+
* "x-customer-group-id": "01H9GROUP12345ABC" // Override default SDK config
|
|
15050
|
+
* });
|
|
15051
|
+
* ```
|
|
15052
|
+
*/
|
|
15053
|
+
getAvailablePromotions(headers?: ListPromotionsHeaderParams): Promise<ApiResult<ListPromotionsContent>>;
|
|
15054
|
+
/**
|
|
15055
|
+
* Evaluate promotions
|
|
15056
|
+
*
|
|
15057
|
+
* @param cartId - The ID of the cart
|
|
15058
|
+
* @returns Promise with evaluated promotions
|
|
15059
|
+
* @example
|
|
15060
|
+
* ```typescript
|
|
15061
|
+
* const { data, error } = await sdk.cart.evaluatePromotions({
|
|
15062
|
+
* id: "01H9CART12345ABCDE"
|
|
15063
|
+
* });
|
|
15064
|
+
*
|
|
15065
|
+
* if (error) {
|
|
15066
|
+
* console.error("Failed to evaluate promotions:", error.message);
|
|
15067
|
+
* } else {
|
|
15068
|
+
* const applicable = data.applicable_promotions || [];
|
|
15069
|
+
* const inapplicable = data.inapplicable_promotions || [];
|
|
15070
|
+
*
|
|
15071
|
+
* console.log("Applicable promotions:", applicable.length);
|
|
15072
|
+
* applicable.forEach(promo => {
|
|
15073
|
+
* console.log(`- ${promo.name}: ${promo.savings_message}`);
|
|
15074
|
+
* });
|
|
15075
|
+
*
|
|
15076
|
+
* console.log("Inapplicable promotions:", inapplicable.length);
|
|
15077
|
+
* inapplicable.forEach(promo => {
|
|
15078
|
+
* console.log(`- ${promo.name}: ${promo.reason}`);
|
|
15079
|
+
* });
|
|
15080
|
+
* }
|
|
15081
|
+
* ```
|
|
15082
|
+
*/
|
|
15083
|
+
evaluatePromotions(cartId: EvaluatePromotionsPathParams): Promise<ApiResult<EvaluatePromotionsContent>>;
|
|
15084
|
+
/**
|
|
15085
|
+
* Evaluate coupons
|
|
15086
|
+
*
|
|
15087
|
+
* @param cartId - The ID of the cart
|
|
15088
|
+
* @returns Promise with evaluated coupons
|
|
15089
|
+
* @example
|
|
15090
|
+
* ```typescript
|
|
15091
|
+
* const { data, error } = await sdk.cart.evaluateCoupons({
|
|
15092
|
+
* id: "01H9CART12345ABCDE"
|
|
15093
|
+
* });
|
|
15094
|
+
*
|
|
15095
|
+
* if (error) {
|
|
15096
|
+
* console.error("Failed to evaluate coupons:", error.message);
|
|
15097
|
+
* } else {
|
|
15098
|
+
* const applicable = data.applicable_coupons || [];
|
|
15099
|
+
* const inapplicable = data.inapplicable_coupons || [];
|
|
15100
|
+
*
|
|
15101
|
+
* console.log("Applicable coupons:", applicable.length);
|
|
15102
|
+
* applicable.forEach(coupon => {
|
|
15103
|
+
* console.log(`- ${coupon.code}: Save $${coupon.estimated_discount}`);
|
|
15104
|
+
* });
|
|
15105
|
+
*
|
|
15106
|
+
* console.log("Inapplicable coupons:", inapplicable.length);
|
|
15107
|
+
* inapplicable.forEach(coupon => {
|
|
15108
|
+
* console.log(`- ${coupon.code}: ${coupon.reason}`);
|
|
15109
|
+
* });
|
|
15110
|
+
* }
|
|
15111
|
+
* ```
|
|
15112
|
+
*/
|
|
15113
|
+
evaluateCoupons(cartId: EvaluateCouponsPathParams): Promise<ApiResult<EvaluateCouponsContent>>;
|
|
14674
15114
|
/**
|
|
14675
15115
|
* Redeem loyalty points
|
|
14676
15116
|
*
|
|
@@ -14720,12 +15160,18 @@ declare class CartClient extends StorefrontAPIClient {
|
|
|
14720
15160
|
* @returns Promise with updated cart
|
|
14721
15161
|
* @example
|
|
14722
15162
|
* ```typescript
|
|
15163
|
+
* // For delivery fulfillment with shipments
|
|
14723
15164
|
* const { data, error } = await sdk.cart.updateFulfillmentPreference(
|
|
14724
15165
|
* { id: "01H9CART12345ABCDE" },
|
|
14725
15166
|
* {
|
|
14726
15167
|
* fulfillment_type: "delivery",
|
|
14727
|
-
*
|
|
14728
|
-
*
|
|
15168
|
+
* shipments: [
|
|
15169
|
+
* {
|
|
15170
|
+
* id: "01H9SHIP12345ABCDE",
|
|
15171
|
+
* shipping_provider_id: "01H9PROV12345FAST",
|
|
15172
|
+
* courier_company_id: "01H9COY12345FAST" // Optional
|
|
15173
|
+
* }
|
|
15174
|
+
* ]
|
|
14729
15175
|
* }
|
|
14730
15176
|
* );
|
|
14731
15177
|
*
|
|
@@ -14735,9 +15181,111 @@ declare class CartClient extends StorefrontAPIClient {
|
|
|
14735
15181
|
* console.log("Fulfillment preference updated:", data.cart.fulfillment_preference?.fulfillment_type);
|
|
14736
15182
|
* console.log("Shipping cost:", data.cart.shipping_amount);
|
|
14737
15183
|
* }
|
|
15184
|
+
*
|
|
15185
|
+
* // For collect-in-store fulfillment
|
|
15186
|
+
* const { data: collectData, error: collectError } = await sdk.cart.updateFulfillmentPreference(
|
|
15187
|
+
* { id: "01H9CART12345ABCDE" },
|
|
15188
|
+
* {
|
|
15189
|
+
* fulfillment_type: "collect-in-store",
|
|
15190
|
+
* pickup_location_id: "01H9STORE12345ABC"
|
|
15191
|
+
* }
|
|
15192
|
+
* );
|
|
14738
15193
|
* ```
|
|
14739
15194
|
*/
|
|
14740
15195
|
updateFulfillmentPreference(cartId: UpdateFulfillmentPreferencePathParams, body: UpdateFulfillmentPreferenceBody): Promise<ApiResult<UpdateFulfillmentPreferenceContent>>;
|
|
15196
|
+
/**
|
|
15197
|
+
* Check fulfillment serviceability
|
|
15198
|
+
*
|
|
15199
|
+
* Checks if fulfillment (delivery or collect-in-store) is available to the specified pincode
|
|
15200
|
+
* based on shipping zones and inventories.
|
|
15201
|
+
*
|
|
15202
|
+
* @param body - Fulfillment check body (cart-based or items-based)
|
|
15203
|
+
* @returns Promise with fulfillment serviceability result
|
|
15204
|
+
* @example
|
|
15205
|
+
* ```typescript
|
|
15206
|
+
* // Cart-based fulfillment check
|
|
15207
|
+
* const { data, error } = await sdk.cart.checkPincodeDeliverability({
|
|
15208
|
+
* cart_id: "cart_01H9XYZ12345ABCDE",
|
|
15209
|
+
* delivery_pincode: "400001",
|
|
15210
|
+
* fulfillment_type: "delivery" // optional: "delivery" | "collect-in-store"
|
|
15211
|
+
* });
|
|
15212
|
+
*
|
|
15213
|
+
* // Items-based fulfillment check
|
|
15214
|
+
* const { data, error } = await sdk.cart.checkPincodeDeliverability({
|
|
15215
|
+
* delivery_pincode: "400001",
|
|
15216
|
+
* items: [
|
|
15217
|
+
* { product_id: "prod_123", variant_id: "var_456" },
|
|
15218
|
+
* { product_id: "prod_789", variant_id: null }
|
|
15219
|
+
* ]
|
|
15220
|
+
* // fulfillment_type is optional
|
|
15221
|
+
* });
|
|
15222
|
+
*
|
|
15223
|
+
* if (error) {
|
|
15224
|
+
* console.error("Failed to check fulfillment serviceability:", error.message);
|
|
15225
|
+
* } else {
|
|
15226
|
+
* console.log("Serviceable:", data.is_serviceable);
|
|
15227
|
+
*
|
|
15228
|
+
* if (!data.is_serviceable && data.unserviceable_items) {
|
|
15229
|
+
* data.unserviceable_items.forEach(item => {
|
|
15230
|
+
* console.log(`Unserviceable: ${item.product_name}, max available: ${item.max_available_quantity}`);
|
|
15231
|
+
* });
|
|
15232
|
+
* }
|
|
15233
|
+
* }
|
|
15234
|
+
* ```
|
|
15235
|
+
*/
|
|
15236
|
+
checkPincodeDeliverability(body: CheckFulfillmentBody): Promise<ApiResult<CheckFulfillmentContent>>;
|
|
15237
|
+
/**
|
|
15238
|
+
* Get fulfillment options for an order
|
|
15239
|
+
*
|
|
15240
|
+
* @param body - Fulfillment options body containing cart_id and optional fulfillment_type
|
|
15241
|
+
* @returns Promise with fulfillment options including collect and delivery methods. The response contains:
|
|
15242
|
+
* - `summary`: Object with `collect_available`, `deliver_available`, `recommended_fulfillment_type`, and optional `recommended_store`
|
|
15243
|
+
* - `collect`: Optional array of `CollectInStore` objects for collect-in-store options
|
|
15244
|
+
* - `deliver`: Optional `DeliveryOption` object with `is_serviceable` and `shipments` array. Each shipment contains `id`, `items`, and `shipping_methods` array. Shipping methods may have optional `courier_companies` for auto shipping types.
|
|
15245
|
+
* @example
|
|
15246
|
+
* ```typescript
|
|
15247
|
+
* const { data, error } = await sdk.cart.getFulfillmentOptions({
|
|
15248
|
+
* cart_id: "cart_01H9XYZ12345ABCDE",
|
|
15249
|
+
* fulfillment_type: "delivery" // optional: "delivery" | "collect-in-store"
|
|
15250
|
+
* });
|
|
15251
|
+
*
|
|
15252
|
+
* if (error) {
|
|
15253
|
+
* console.error("Failed to get fulfillment options:", error.message);
|
|
15254
|
+
* } else {
|
|
15255
|
+
* // Check summary information
|
|
15256
|
+
* console.log("Collect available:", data.summary.collect_available);
|
|
15257
|
+
* console.log("Deliver available:", data.summary.deliver_available);
|
|
15258
|
+
* console.log("Recommended fulfillment type:", data.summary.recommended_fulfillment_type);
|
|
15259
|
+
*
|
|
15260
|
+
* // Access collect options
|
|
15261
|
+
* if (data.collect && data.collect.length > 0) {
|
|
15262
|
+
* console.log("Available stores for collection:");
|
|
15263
|
+
* data.collect.forEach(store => {
|
|
15264
|
+
* console.log(`${store.name} - ${store.distance_km}km away, ETA: ${store.collect_eta_minutes} minutes`);
|
|
15265
|
+
* });
|
|
15266
|
+
* }
|
|
15267
|
+
*
|
|
15268
|
+
* // Access delivery options (with shipments)
|
|
15269
|
+
* if (data.deliver && data.deliver.is_serviceable) {
|
|
15270
|
+
* console.log("Available shipments and shipping methods:");
|
|
15271
|
+
* data.deliver.shipments.forEach(shipment => {
|
|
15272
|
+
* console.log(`Shipment ${shipment.id}:`);
|
|
15273
|
+
* console.log(` Items: ${shipment.items.length}`);
|
|
15274
|
+
* shipment.shipping_methods.forEach(method => {
|
|
15275
|
+
* console.log(` - ${method.name}: ${method.shipping_amount}, ${method.estimated_delivery_days} days`);
|
|
15276
|
+
* // Access courier companies for auto shipping methods
|
|
15277
|
+
* if (method.courier_companies) {
|
|
15278
|
+
* method.courier_companies.forEach(courier => {
|
|
15279
|
+
* console.log(` Courier: ${courier.name} - ${courier.shipping_amount}, ${courier.estimated_delivery_days} days`);
|
|
15280
|
+
* });
|
|
15281
|
+
* }
|
|
15282
|
+
* });
|
|
15283
|
+
* });
|
|
15284
|
+
* }
|
|
15285
|
+
* }
|
|
15286
|
+
* ```
|
|
15287
|
+
*/
|
|
15288
|
+
getFulfillmentOptions(body: GetFulfillmentOptionsBody): Promise<ApiResult<GetFulfillmentOptionsContent>>;
|
|
14741
15289
|
/**
|
|
14742
15290
|
* Use credit balance
|
|
14743
15291
|
*
|
|
@@ -14852,120 +15400,6 @@ declare class CartClient extends StorefrontAPIClient {
|
|
|
14852
15400
|
* ```
|
|
14853
15401
|
*/
|
|
14854
15402
|
removeFromWishlist(userId: DeleteFromWishlistPathParams, body: DeleteFromWishlistBody): Promise<ApiResult<DeleteFromWishlistContent>>;
|
|
14855
|
-
/**
|
|
14856
|
-
* Get all available coupons
|
|
14857
|
-
*
|
|
14858
|
-
* @param headers - Optional header parameters (customer_group_id, etc.)
|
|
14859
|
-
* @returns Promise with all available coupons
|
|
14860
|
-
* @example
|
|
14861
|
-
* ```typescript
|
|
14862
|
-
* // Get all available coupons
|
|
14863
|
-
* const { data, error } = await sdk.cart.getAvailableCoupons();
|
|
14864
|
-
*
|
|
14865
|
-
* if (error) {
|
|
14866
|
-
* console.error("Failed to get available coupons:", error.message);
|
|
14867
|
-
* } else {
|
|
14868
|
-
* const coupons = data.coupons || [];
|
|
14869
|
-
* console.log("Available coupons:", coupons.length);
|
|
14870
|
-
* coupons.forEach(coupon => {
|
|
14871
|
-
* console.log("Coupon:", coupon.code, "Discount:", coupon.discount_amount);
|
|
14872
|
-
* });
|
|
14873
|
-
* }
|
|
14874
|
-
*
|
|
14875
|
-
* // Override customer group ID for this specific request
|
|
14876
|
-
* const { data: overrideData, error: overrideError } = await sdk.cart.getAvailableCoupons({
|
|
14877
|
-
* "x-customer-group-id": "01H9GROUP12345ABC" // Override default SDK config
|
|
14878
|
-
* });
|
|
14879
|
-
* ```
|
|
14880
|
-
*/
|
|
14881
|
-
getAvailableCoupons(headers?: ListCouponsHeaderParams): Promise<ApiResult<ListCouponsContent>>;
|
|
14882
|
-
/**
|
|
14883
|
-
* Get all available promotions
|
|
14884
|
-
*
|
|
14885
|
-
* @param headers - Optional header parameters (customer_group_id, etc.)
|
|
14886
|
-
* @returns Promise with all available promotions
|
|
14887
|
-
* @example
|
|
14888
|
-
* ```typescript
|
|
14889
|
-
* // Get all available promotions
|
|
14890
|
-
* const { data, error } = await sdk.cart.getAvailablePromotions();
|
|
14891
|
-
*
|
|
14892
|
-
* if (error) {
|
|
14893
|
-
* console.error("Failed to get available promotions:", error.message);
|
|
14894
|
-
* } else {
|
|
14895
|
-
* const promotions = data.promotions || [];
|
|
14896
|
-
* console.log("Available promotions:", promotions.length);
|
|
14897
|
-
* promotions.forEach(promotion => {
|
|
14898
|
-
* console.log("Promotion:", promotion.name, "Type:", promotion.promotion_type);
|
|
14899
|
-
* });
|
|
14900
|
-
* }
|
|
14901
|
-
*
|
|
14902
|
-
* // Override customer group ID for this specific request
|
|
14903
|
-
* const { data: overrideData, error: overrideError } = await sdk.cart.getAvailablePromotions({
|
|
14904
|
-
* "x-customer-group-id": "01H9GROUP12345ABC" // Override default SDK config
|
|
14905
|
-
* });
|
|
14906
|
-
* ```
|
|
14907
|
-
*/
|
|
14908
|
-
getAvailablePromotions(headers?: ListPromotionsHeaderParams): Promise<ApiResult<ListPromotionsContent>>;
|
|
14909
|
-
/**
|
|
14910
|
-
* Evaluate promotions
|
|
14911
|
-
*
|
|
14912
|
-
* @param cartId - The ID of the cart
|
|
14913
|
-
* @returns Promise with evaluated promotions
|
|
14914
|
-
* @example
|
|
14915
|
-
* ```typescript
|
|
14916
|
-
* const { data, error } = await sdk.cart.evaluatePromotions({
|
|
14917
|
-
* id: "01H9CART12345ABCDE"
|
|
14918
|
-
* });
|
|
14919
|
-
*
|
|
14920
|
-
* if (error) {
|
|
14921
|
-
* console.error("Failed to evaluate promotions:", error.message);
|
|
14922
|
-
* } else {
|
|
14923
|
-
* const applicable = data.applicable_promotions || [];
|
|
14924
|
-
* const inapplicable = data.inapplicable_promotions || [];
|
|
14925
|
-
*
|
|
14926
|
-
* console.log("Applicable promotions:", applicable.length);
|
|
14927
|
-
* applicable.forEach(promo => {
|
|
14928
|
-
* console.log(`- ${promo.name}: ${promo.savings_message}`);
|
|
14929
|
-
* });
|
|
14930
|
-
*
|
|
14931
|
-
* console.log("Inapplicable promotions:", inapplicable.length);
|
|
14932
|
-
* inapplicable.forEach(promo => {
|
|
14933
|
-
* console.log(`- ${promo.name}: ${promo.reason}`);
|
|
14934
|
-
* });
|
|
14935
|
-
* }
|
|
14936
|
-
* ```
|
|
14937
|
-
*/
|
|
14938
|
-
evaluatePromotions(cartId: EvaluatePromotionsPathParams): Promise<ApiResult<EvaluatePromotionsContent>>;
|
|
14939
|
-
/**
|
|
14940
|
-
* Evaluate coupons
|
|
14941
|
-
*
|
|
14942
|
-
* @param cartId - The ID of the cart
|
|
14943
|
-
* @returns Promise with evaluated coupons
|
|
14944
|
-
* @example
|
|
14945
|
-
* ```typescript
|
|
14946
|
-
* const { data, error } = await sdk.cart.evaluateCoupons({
|
|
14947
|
-
* id: "01H9CART12345ABCDE"
|
|
14948
|
-
* });
|
|
14949
|
-
*
|
|
14950
|
-
* if (error) {
|
|
14951
|
-
* console.error("Failed to evaluate coupons:", error.message);
|
|
14952
|
-
* } else {
|
|
14953
|
-
* const applicable = data.applicable_coupons || [];
|
|
14954
|
-
* const inapplicable = data.inapplicable_coupons || [];
|
|
14955
|
-
*
|
|
14956
|
-
* console.log("Applicable coupons:", applicable.length);
|
|
14957
|
-
* applicable.forEach(coupon => {
|
|
14958
|
-
* console.log(`- ${coupon.code}: Save $${coupon.estimated_discount}`);
|
|
14959
|
-
* });
|
|
14960
|
-
*
|
|
14961
|
-
* console.log("Inapplicable coupons:", inapplicable.length);
|
|
14962
|
-
* inapplicable.forEach(coupon => {
|
|
14963
|
-
* console.log(`- ${coupon.code}: ${coupon.reason}`);
|
|
14964
|
-
* });
|
|
14965
|
-
* }
|
|
14966
|
-
* ```
|
|
14967
|
-
*/
|
|
14968
|
-
evaluateCoupons(cartId: EvaluateCouponsPathParams): Promise<ApiResult<EvaluateCouponsContent>>;
|
|
14969
15403
|
}
|
|
14970
15404
|
//#endregion
|
|
14971
15405
|
//#region src/lib/auth.d.ts
|
|
@@ -15895,10 +16329,14 @@ declare class PaymentsClient extends StorefrontAPIClient {
|
|
|
15895
16329
|
/**
|
|
15896
16330
|
* List all available payment methods
|
|
15897
16331
|
*
|
|
16332
|
+
* @param queryParams - Query parameters containing the payment method type and payment provider slug
|
|
15898
16333
|
* @returns Promise with list of payment methods
|
|
15899
16334
|
* @example
|
|
15900
16335
|
* ```typescript
|
|
15901
|
-
* const { data, error } = await sdk.payments.listPaymentMethods(
|
|
16336
|
+
* const { data, error } = await sdk.payments.listPaymentMethods({
|
|
16337
|
+
* payment_method_type: "card",
|
|
16338
|
+
* payment_provider_slug: "payu"
|
|
16339
|
+
* });
|
|
15902
16340
|
*
|
|
15903
16341
|
* if (error) {
|
|
15904
16342
|
* console.error("Failed to list payment methods:", error.message);
|
|
@@ -15912,7 +16350,7 @@ declare class PaymentsClient extends StorefrontAPIClient {
|
|
|
15912
16350
|
* }
|
|
15913
16351
|
* ```
|
|
15914
16352
|
*/
|
|
15915
|
-
listPaymentMethods(): Promise<ApiResult<ListPaymentMethodsContent>>;
|
|
16353
|
+
listPaymentMethods(queryParams?: ListPaymentMethodsQuery): Promise<ApiResult<ListPaymentMethodsContent>>;
|
|
15916
16354
|
/**
|
|
15917
16355
|
* Verify a UPI Virtual Payment Address (VPA)
|
|
15918
16356
|
*
|
|
@@ -15942,7 +16380,28 @@ declare class PaymentsClient extends StorefrontAPIClient {
|
|
|
15942
16380
|
* }
|
|
15943
16381
|
* ```
|
|
15944
16382
|
*/
|
|
15945
|
-
verifyVpa(queryParams
|
|
16383
|
+
verifyVpa(queryParams?: VerifyVpaQuery): Promise<ApiResult<VerifyVpaContent>>;
|
|
16384
|
+
/**
|
|
16385
|
+
* Get card information
|
|
16386
|
+
*
|
|
16387
|
+
* Retrieves card information based on the initial 9 digits (card BIN) of the card number.
|
|
16388
|
+
*
|
|
16389
|
+
* @param queryParams - Query parameters containing the card BIN
|
|
16390
|
+
* @returns Promise with card information
|
|
16391
|
+
* @example
|
|
16392
|
+
* ```typescript
|
|
16393
|
+
* const { data, error } = await sdk.payments.getCardInfo({
|
|
16394
|
+
* cardbin: "411111111"
|
|
16395
|
+
* });
|
|
16396
|
+
*
|
|
16397
|
+
* if (error) {
|
|
16398
|
+
* console.error("Failed to get card information:", error.message);
|
|
16399
|
+
* } else {
|
|
16400
|
+
* console.log("Card information:", data.card_info);
|
|
16401
|
+
* }
|
|
16402
|
+
* ```
|
|
16403
|
+
*/
|
|
16404
|
+
getCardInfo(queryParams: GetCardInfoQuery): Promise<ApiResult<GetCardInfoContent>>;
|
|
15946
16405
|
/**
|
|
15947
16406
|
* Authenticate a direct OTP for payment verification
|
|
15948
16407
|
*
|
|
@@ -15998,77 +16457,6 @@ declare class PaymentsClient extends StorefrontAPIClient {
|
|
|
15998
16457
|
resendDirectOtp(body: ResendDirectOtpBody): Promise<ApiResult<ResendDirectOtpContent>>;
|
|
15999
16458
|
}
|
|
16000
16459
|
//#endregion
|
|
16001
|
-
//#region src/lib/shipping.d.ts
|
|
16002
|
-
/**
|
|
16003
|
-
* Client for interacting with shipping endpoints
|
|
16004
|
-
*/
|
|
16005
|
-
declare class ShippingClient extends StorefrontAPIClient {
|
|
16006
|
-
/**
|
|
16007
|
-
* Check pincode deliverability
|
|
16008
|
-
*
|
|
16009
|
-
* @param pathParams - Path parameters
|
|
16010
|
-
* @returns Promise with pincode deliverability result
|
|
16011
|
-
* @example
|
|
16012
|
-
* ```typescript
|
|
16013
|
-
* const { data, error } = await sdk.shipping.checkPincodeDeliverability({
|
|
16014
|
-
* pincode: "400001"
|
|
16015
|
-
* });
|
|
16016
|
-
*
|
|
16017
|
-
* if (error) {
|
|
16018
|
-
* console.error("Failed to check pincode serviceability:", error.message);
|
|
16019
|
-
* } else {
|
|
16020
|
-
* console.log("Pincode serviceable:", data.is_serviceable);
|
|
16021
|
-
*
|
|
16022
|
-
* if (data.is_serviceable) {
|
|
16023
|
-
* console.log("Delivery is available to this pincode");
|
|
16024
|
-
* } else {
|
|
16025
|
-
* console.log("Delivery is not available to this pincode");
|
|
16026
|
-
* }
|
|
16027
|
-
* }
|
|
16028
|
-
* ```
|
|
16029
|
-
*/
|
|
16030
|
-
checkPincodeDeliverability(pathParams: CheckPincodeServiceabilityPathParams): Promise<ApiResult<CheckPincodeServiceabilityContent>>;
|
|
16031
|
-
/**
|
|
16032
|
-
* Get fulfillment options for an order
|
|
16033
|
-
*
|
|
16034
|
-
* @param body - Fulfillment options body containing cart_id and delivery_pincode
|
|
16035
|
-
* @returns Promise with fulfillment options including collect and delivery methods
|
|
16036
|
-
* @example
|
|
16037
|
-
* ```typescript
|
|
16038
|
-
* const { data, error } = await sdk.shipping.getFulfillmentOptions({
|
|
16039
|
-
* cart_id: "cart_01H9XYZ12345ABCDE",
|
|
16040
|
-
* delivery_pincode: "400001"
|
|
16041
|
-
* });
|
|
16042
|
-
*
|
|
16043
|
-
* if (error) {
|
|
16044
|
-
* console.error("Failed to get fulfillment options:", error.message);
|
|
16045
|
-
* } else {
|
|
16046
|
-
* // Check summary information
|
|
16047
|
-
* console.log("Collect available:", data.summary.collect_available);
|
|
16048
|
-
* console.log("Deliver available:", data.summary.deliver_available);
|
|
16049
|
-
* console.log("Recommended fulfillment type:", data.summary.recommended_fulfillment_type);
|
|
16050
|
-
*
|
|
16051
|
-
* // Access collect options
|
|
16052
|
-
* if (data.collect && data.collect.length > 0) {
|
|
16053
|
-
* console.log("Available stores for collection:");
|
|
16054
|
-
* data.collect.forEach(store => {
|
|
16055
|
-
* console.log(`${store.name} - ${store.distance_km}km away, ETA: ${store.collect_eta_minutes} minutes`);
|
|
16056
|
-
* });
|
|
16057
|
-
* }
|
|
16058
|
-
*
|
|
16059
|
-
* // Access delivery options
|
|
16060
|
-
* if (data.deliver && data.deliver.is_serviceable) {
|
|
16061
|
-
* console.log("Available shipping methods:");
|
|
16062
|
-
* data.deliver.shipping_methods.forEach(method => {
|
|
16063
|
-
* console.log(`${method.name} - ${method.shipping_amount}, ${method.estimated_delivery_days} days`);
|
|
16064
|
-
* });
|
|
16065
|
-
* }
|
|
16066
|
-
* }
|
|
16067
|
-
* ```
|
|
16068
|
-
*/
|
|
16069
|
-
getFulfillmentOptions(body: GetFulfillmentOptionsBody): Promise<ApiResult<GetFulfillmentOptionsContent>>;
|
|
16070
|
-
}
|
|
16071
|
-
//#endregion
|
|
16072
16460
|
//#region src/lib/helper.d.ts
|
|
16073
16461
|
/**
|
|
16074
16462
|
* Client for interacting with helper endpoints
|
|
@@ -16174,7 +16562,7 @@ declare class HelpersClient extends StorefrontAPIClient {
|
|
|
16174
16562
|
* console.log("US Pincodes:", usPincodes.pincodes?.map(p => p.pincode).join(", "));
|
|
16175
16563
|
* ```
|
|
16176
16564
|
*/
|
|
16177
|
-
listCountryPincodes(pathParams: ListCountryPincodesPathParams): Promise<ApiResult<ListCountryPincodesContent>>;
|
|
16565
|
+
listCountryPincodes(pathParams: ListCountryPincodesPathParams, queryParams?: ListCountryPincodesQuery): Promise<ApiResult<ListCountryPincodesContent>>;
|
|
16178
16566
|
}
|
|
16179
16567
|
//#endregion
|
|
16180
16568
|
//#region src/lib/customer.d.ts
|
|
@@ -16283,7 +16671,7 @@ declare class CustomerClient extends StorefrontAPIClient {
|
|
|
16283
16671
|
* });
|
|
16284
16672
|
* ```
|
|
16285
16673
|
*/
|
|
16286
|
-
listAddresses(pathParams: ListAddressesPathParams): Promise<ApiResult<ListAddressesContent>>;
|
|
16674
|
+
listAddresses(pathParams: ListAddressesPathParams, queryParams?: ListAddressesQuery): Promise<ApiResult<ListAddressesContent>>;
|
|
16287
16675
|
/**
|
|
16288
16676
|
* Create a new address for a customer
|
|
16289
16677
|
*
|
|
@@ -16441,7 +16829,7 @@ declare class CustomerClient extends StorefrontAPIClient {
|
|
|
16441
16829
|
* });
|
|
16442
16830
|
* ```
|
|
16443
16831
|
*/
|
|
16444
|
-
listLoyaltyPointsActivity(pathParams: ListLoyaltyActivitiesPathParams): Promise<ApiResult<ListLoyaltyActivitiesContent>>;
|
|
16832
|
+
listLoyaltyPointsActivity(pathParams: ListLoyaltyActivitiesPathParams, queryParams?: ListLoyaltyActivitiesQuery): Promise<ApiResult<ListLoyaltyActivitiesContent>>;
|
|
16445
16833
|
/**
|
|
16446
16834
|
* List all reviews left by a customer
|
|
16447
16835
|
*
|
|
@@ -16484,7 +16872,28 @@ declare class CustomerClient extends StorefrontAPIClient {
|
|
|
16484
16872
|
* console.log("Saved payment methods:", data.saved_payment_methods);
|
|
16485
16873
|
* ```
|
|
16486
16874
|
*/
|
|
16487
|
-
listSavedPaymentMethods(pathParams: ListSavedPaymentMethodsPathParams): Promise<ApiResult<ListSavedPaymentMethodsContent>>;
|
|
16875
|
+
listSavedPaymentMethods(pathParams: ListSavedPaymentMethodsPathParams, queryParams?: ListSavedPaymentMethodsQuery): Promise<ApiResult<ListSavedPaymentMethodsContent>>;
|
|
16876
|
+
/**
|
|
16877
|
+
* List all saved cards for a customer
|
|
16878
|
+
*
|
|
16879
|
+
* @param pathParams - Path parameters
|
|
16880
|
+
* @returns Promise with cards
|
|
16881
|
+
*
|
|
16882
|
+
* @example
|
|
16883
|
+
* ```typescript
|
|
16884
|
+
* const { data, error } = await sdk.customer.listCustomerCards({
|
|
16885
|
+
* customer_id: "customer_123"
|
|
16886
|
+
* });
|
|
16887
|
+
*
|
|
16888
|
+
* if (error) {
|
|
16889
|
+
* console.error("Failed to list customer cards:", error);
|
|
16890
|
+
* return;
|
|
16891
|
+
* }
|
|
16892
|
+
*
|
|
16893
|
+
* console.log("Customer cards:", data.cards);
|
|
16894
|
+
* ```
|
|
16895
|
+
*/
|
|
16896
|
+
listCustomerCards(pathParams: ListCustomerCardsPathParams): Promise<ApiResult<ListCustomerCardsContent>>;
|
|
16488
16897
|
}
|
|
16489
16898
|
//#endregion
|
|
16490
16899
|
//#region src/lib/store-config.d.ts
|
|
@@ -16720,10 +17129,6 @@ declare class StorefrontSDK {
|
|
|
16720
17129
|
* Client for helper-related endpoints
|
|
16721
17130
|
*/
|
|
16722
17131
|
readonly helpers: HelpersClient;
|
|
16723
|
-
/**
|
|
16724
|
-
* Client for shipping-related endpoints
|
|
16725
|
-
*/
|
|
16726
|
-
readonly shipping: ShippingClient;
|
|
16727
17132
|
/**
|
|
16728
17133
|
* Client for order-related endpoints
|
|
16729
17134
|
*/
|
|
@@ -16829,5 +17234,5 @@ declare class StorefrontSDK {
|
|
|
16829
17234
|
getDefaultHeaders(): SupportedDefaultHeaders | undefined;
|
|
16830
17235
|
}
|
|
16831
17236
|
//#endregion
|
|
16832
|
-
export { AcceleratedRewardCouponPromotion, AcceleratedRewardRule, AddProfileImageContent, AddProfileImageFormData, AddProfileImagePathParams, AddProfileImageResponse, AddToWishlistBody, AddToWishlistContent, AddToWishlistPathParams, AddToWishlistResponse, AdditionalProductDetails, AnalyticsEvent, AnonymousUser, ApiErrorResponse, ApiResult, ApplicableCoupon, ApplicablePromotion, AppliedCoupon, AppliedPromotion, ApplyCouponBody, ApplyCouponContent, ApplyCouponPathParams, ApplyCouponResponse, AssociatedOption, AuthClient, AuthenticateDirectOtpBody, AuthenticateDirectOtpResponse, AutoScaleBasedOnAmount, AutoScaleBasedOnQuantity, BankTransfer, BaseAPIClient, BaseSDKOptions, BooleanAttribute, Brand, BrowserTokenStorage, Business, BuyXGetYCouponPromotion, BuyXGetYRule, BuyXGetYRuleBasedOnAmount, BuyXGetYRuleBasedOnQuantity, CancelOrderBody, CancelOrderContent, CancelOrderPathParams, CancelOrderResponse, CardPayment, Cart, CartBasedServiceabilityCheck, CartClient, CartItem, CatalogClient, Category, ChangePasswordBody, ChangePasswordContent, ChangePasswordResponse, type Channel, CheckPincodeServiceabilityContent, CheckPincodeServiceabilityPathParams, CheckPincodeServiceabilityResponse, CheckVerificationStatusBody, CheckVerificationStatusContent, CheckVerificationStatusResponse, ClaimPosDeviceContent, ClaimPosDevicePathParams, ClaimPosDeviceResponse, CollectInStore, CollectInStoreAddress, CollectInStoreFulfillment, ColorAttribute, ColorOption, CookieTokenStorage, type CookieTokenStorageOptions, Country, CountryState, Coupon, CouponPromotionCommonDetail, CouponType, CreateAddressBody, CreateAddressContent, CreateAddressPathParams, CreateAddressResponse, CreateCartAddressBody, CreateCartAddressContent, CreateCartAddressPathParams, CreateCartAddressResponse, CreateCartBody, CreateCartContent, CreateCartResponse, CreateCustomSubscription, CreateCustomer, CreateCustomerBody, CreateCustomerContent, CreateCustomerResponse, CreateDocumentContent, CreateDocumentFormData, CreateDocumentPathParams, CreateDocumentResponse, CreateJuspayCustomerBody, CreateJuspayCustomerContent, CreateJuspayCustomerResponse, CreateJuspayOrderBody, CreateJuspayOrderContent, CreateJuspayOrderResponse, CreateMarketplaceProductReviewFormData, CreateMarketplaceProductReviewPathParams, CreateMarketplaceProductReviewResponse, CreateNotificationPreferencesBody, CreateNotificationPreferencesContent, CreateNotificationPreferencesPathParams, CreateNotificationPreferencesResponse, CreateOrderBody, CreateOrderContent, CreateOrderResponse, CreateOrderReturn, CreateOrderReturnBody, CreateOrderReturnContent, CreateOrderReturnPathParams, CreateOrderReturnResponse, CreatePosOrderBody, CreatePosOrderContent, CreatePosOrderResponse, CreateProductReviewFormData, CreateProductReviewPathParams, CreateProductReviewResponse, CreateReview, CreateStandardSubscription, CreateSubscription, CreateSubscriptionBody, CreateSubscriptionContent, CreateSubscriptionResponse, Currency, CustomSlabsBasedOnAmount, CustomSlabsBasedOnQuantity, CustomerAddress, CustomerClient, CustomerDetail, CustomerGroup, CustomerLoyalty, CustomerReadyForReview, CustomerReview, DateAttribute, DeactivateUserPathParams, DeactivateUserResponse, DebugLogger, DebugLoggerFn, DeleteAddressPathParams, DeleteAddressResponse, DeleteCartPathParams, DeleteCartResponse, DeleteDocumentPathParams, DeleteDocumentResponse, DeleteFromWishlistBody, DeleteFromWishlistContent, DeleteFromWishlistPathParams, DeleteFromWishlistResponse, DeleteUserCartPathParams, DeleteUserCartResponse, DeliveryFulfillment, DiscountBasedPromotion, DiscountCouponPromotion, DiscountRule, Document, Environment, EvaluateCouponsContent, EvaluateCouponsPathParams, EvaluateCouponsResponse, EvaluatePromotionsContent, EvaluatePromotionsPathParams, EvaluatePromotionsResponse, FixedAmountDiscountRule, FixedPriceCouponPromotion, FixedPricePromotion, FixedPriceRule, FixedPriceRuleBasedAmount, FixedPriceRuleBasedQuantity, ForgotPasswordBody, ForgotPasswordContent, ForgotPasswordResponse, FreeGoodCouponPromotion, FreeGoodsPromotion, FreeGoodsRule, FreeShipingCouponPromotion, FulfillmentItem, FulfillmentPreference, GenerateHashBody, GenerateHashContent, GenerateHashResponse, GenerateOtpBody, GenerateOtpContent, GenerateOtpHeaderParams, GenerateOtpResponse, GenerateOtpWithEmail, GenerateOtpWithPhone, GetAddressDetailContent, GetAddressDetailPathParams, GetAddressDetailResponse, GetAnonymousTokenContent, GetAnonymousTokenResponse, GetCartContent, GetCartPathParams, GetCartResponse, GetConfigContent, GetConfigResponse, GetCustomerDetailContent, GetCustomerDetailPathParams, GetCustomerDetailResponse, GetDocumentContent, GetDocumentPathParams, GetDocumentResponse, GetFulfillmentOptionsBody, GetFulfillmentOptionsContent, GetFulfillmentOptionsResponse, GetJuspayCustomerContent, GetJuspayCustomerPathParams, GetJuspayCustomerResponse, GetLoyaltyDetailsContent, GetLoyaltyDetailsPathParams, GetLoyaltyDetailsResponse, GetMarketplaceProductDetailContent, GetMarketplaceProductDetailHeaderParams, GetMarketplaceProductDetailPathParams, GetMarketplaceProductDetailQuery, GetMarketplaceProductDetailResponse, GetMarketplaceVariantDetailContent, GetMarketplaceVariantDetailHeaderParams, GetMarketplaceVariantDetailPathParams, GetMarketplaceVariantDetailQuery, GetMarketplaceVariantDetailResponse, GetNotificationPreferencesContent, GetNotificationPreferencesPathParams, GetNotificationPreferencesResponse, GetOrderDetailContent, GetOrderDetailPathParams, GetOrderDetailResponse, GetOrderReturnDetailContent, GetOrderReturnDetailPathParams, GetOrderReturnDetailResponse, GetPaymentStatusContent, GetPaymentStatusPathParams, GetPaymentStatusResponse, GetPosFulfillmentOptionsBody, GetPosFulfillmentOptionsContent, GetPosFulfillmentOptionsResponse, GetPosUserContent, GetPosUserPathParams, GetPosUserResponse, GetProductDetailContent, GetProductDetailHeaderParams, GetProductDetailPathParams, GetProductDetailQuery, GetProductDetailResponse, GetProfileImageContent, GetProfileImagePathParams, GetProfileImageResponse, GetSubscriptionContent, GetSubscriptionPathParams, GetSubscriptionResponse, GetUserCartContent, GetUserCartPathParams, GetUserCartResponse, GetUserDetailContent, GetUserDetailPathParams, GetUserDetailResponse, GetVariantDetailContent, GetVariantDetailHeaderParams, GetVariantDetailPathParams, GetVariantDetailQuery, GetVariantDetailResponse, GetWishlistContent, GetWishlistPathParams, GetWishlistResponse, GstinDetail, HeaderConfig, HelpersClient, InapplicableCoupon, InapplicablePromotion, Item, JusPayExpressCheckout, JusPayExpressCheckoutCommonField, JusPayExpressCheckoutResponse, JusPayHyperCheckout, JusPayHyperCheckoutResponse, JusPayNewCard, JusPaySavedCardToken, JuspayCardPaymentMethod, JuspayCreateCustomerPayload, JuspayCreateOrderPayload, JuspayCustomer, JuspayNetBanking, JuspayNetbankingPaymentMethod, JuspayOrder, JuspayPaymentMethod, JuspayPaymentMethodDetail, JuspayUpiCollect, JuspayUpiIntent, JuspayUpiPaymentMethod, JuspayWalletPaymentMethod, KycDocument, KycDocumentConfig, ListAddressesContent, ListAddressesPathParams, ListAddressesQuery, ListAddressesResponse, ListCategoriesContent, ListCategoriesQuery, ListCategoriesResponse, ListCountriesContent, ListCountriesResponse, ListCountryPincodesContent, ListCountryPincodesPathParams, ListCountryPincodesQuery, ListCountryPincodesResponse, ListCountryStatesContent, ListCountryStatesPathParams, ListCountryStatesResponse, ListCouponsContent, ListCouponsHeaderParams, ListCouponsResponse, ListCrosssellProductsContent, ListCrosssellProductsHeaderParams, ListCrosssellProductsQuery, ListCrosssellProductsResponse, ListDocumentsContent, ListDocumentsPathParams, ListDocumentsResponse, ListKycDocumentContent, ListKycDocumentResponse, ListLoyaltyActivitiesContent, ListLoyaltyActivitiesPathParams, ListLoyaltyActivitiesQuery, ListLoyaltyActivitiesResponse, ListMarketplaceCategoriesContent, ListMarketplaceCategoriesQuery, ListMarketplaceCategoriesResponse, ListMarketplaceCrosssellProductsContent, ListMarketplaceCrosssellProductsHeaderParams, ListMarketplaceCrosssellProductsQuery, ListMarketplaceCrosssellProductsResponse, ListMarketplaceProductReviewsContent, ListMarketplaceProductReviewsPathParams, ListMarketplaceProductReviewsQuery, ListMarketplaceProductReviewsResponse, ListMarketplaceProductVariantsContent, ListMarketplaceProductVariantsHeaderParams, ListMarketplaceProductVariantsPathParams, ListMarketplaceProductVariantsQuery, ListMarketplaceProductVariantsResponse, ListMarketplaceProductsContent, ListMarketplaceProductsHeaderParams, ListMarketplaceProductsQuery, ListMarketplaceProductsResponse, ListMarketplaceSimilarProductsContent, ListMarketplaceSimilarProductsHeaderParams, ListMarketplaceSimilarProductsQuery, ListMarketplaceSimilarProductsResponse, ListMarketplaceSkusContent, ListMarketplaceSkusHeaderParams, ListMarketplaceSkusQuery, ListMarketplaceSkusResponse, ListMarketplaceUpsellProductsContent, ListMarketplaceUpsellProductsHeaderParams, ListMarketplaceUpsellProductsQuery, ListMarketplaceUpsellProductsResponse, ListOrderPaymentsContent, ListOrderPaymentsPathParams, ListOrderPaymentsResponse, ListOrderRefundsContent, ListOrderRefundsPathParams, ListOrderRefundsResponse, ListOrderShipmentsContent, ListOrderShipmentsPathParams, ListOrderShipmentsResponse, ListOrdersContent, ListOrdersQuery, ListOrdersResponse, ListPaymentMethodsContent, ListPaymentMethodsResponse, ListPosDevicesContent, ListPosDevicesResponse, ListPosLocationsContent, ListPosLocationsResponse, ListProductReviewsContent, ListProductReviewsPathParams, ListProductReviewsQuery, ListProductReviewsResponse, ListProductVariantsContent, ListProductVariantsHeaderParams, ListProductVariantsPathParams, ListProductVariantsQuery, ListProductVariantsResponse, ListProductsContent, ListProductsHeaderParams, ListProductsQuery, ListProductsResponse, ListPromotionsContent, ListPromotionsHeaderParams, ListPromotionsResponse, ListReturnsContent, ListReturnsResponse, ListSavedPaymentMethodsContent, ListSavedPaymentMethodsPathParams, ListSavedPaymentMethodsResponse, ListSimilarProductsContent, ListSimilarProductsHeaderParams, ListSimilarProductsQuery, ListSimilarProductsResponse, ListSkusContent, ListSkusHeaderParams, ListSkusQuery, ListSkusResponse, ListSubscriptionsContent, ListSubscriptionsResponse, ListUpsellProductsContent, ListUpsellProductsHeaderParams, ListUpsellProductsQuery, ListUpsellProductsResponse, ListUserReviewsContent, ListUserReviewsPathParams, ListUserReviewsResponse, LoginPosDeviceWithEmailBody, LoginPosDeviceWithEmailContent, LoginPosDeviceWithEmailHeaderParams, LoginPosDeviceWithEmailResponse, LoginPosDeviceWithPhoneBody, LoginPosDeviceWithPhoneContent, LoginPosDeviceWithPhoneHeaderParams, LoginPosDeviceWithPhoneResponse, LoginPosDeviceWithWhatsappBody, LoginPosDeviceWithWhatsappContent, LoginPosDeviceWithWhatsappHeaderParams, LoginPosDeviceWithWhatsappResponse, LoginWithEmailBody, LoginWithEmailContent, LoginWithEmailHeaderParams, LoginWithEmailResponse, LoginWithPasswordBody, LoginWithPasswordContent, LoginWithPasswordResponse, LoginWithPhoneBody, LoginWithPhoneContent, LoginWithPhoneHeaderParams, LoginWithPhoneResponse, LoginWithWhatsappBody, LoginWithWhatsappContent, LoginWithWhatsappHeaderParams, LoginWithWhatsappResponse, LogoutContent, LogoutFromPosDeviceResponse, LogoutResponse, LotBatchDetail, LoyaltyPointActivity, ManualPaymentMethod, MeasurementUnit, MemoryTokenStorage, MultiSelectAttribute, NetbankingPayment, NotificationChannelPreferences, NotificationPreferences, NumberAttribute, Order, OrderClient, OrderDetail, OrderItem, OrderList, OrderPayment, OrderRefund, OrderReturn, OrderReturnItem, OrderShipment, Pagination, PairPosDeviceBody, PairPosDeviceContent, PairPosDeviceResponse, PanDetail, PartialCollectAndDelivery, PauseSubscription, PayWithCard, PayWithCash, PayWithUpi, PaymentInfo, PaymentMethodPayload, PaymentsClient, PayuPaymentInfo, PayuPaymentMethod, PercentageDiscountRule, Pincode, PincodeServiceability, PosApplyCouponBody, PosApplyCouponContent, PosApplyCouponPathParams, PosApplyCouponResponse, PosCreateCartAddressBody, PosCreateCartAddressContent, PosCreateCartAddressPathParams, PosCreateCartAddressResponse, PosCreateCartBody, PosCreateCartContent, PosCreateCartResponse, PosDeleteCartPathParams, PosDeleteCartResponse, PosDevice, PosDeviceClaimedUser, PosEvaluateCouponsContent, PosEvaluateCouponsPathParams, PosEvaluateCouponsResponse, PosEvaluatePromotionsContent, PosEvaluatePromotionsPathParams, PosEvaluatePromotionsResponse, PosGetCartContent, PosGetCartPathParams, PosGetCartResponse, PosGetPaymentStatusContent, PosGetPaymentStatusPathParams, PosGetPaymentStatusResponse, PosGetProductDetailContent, PosGetProductDetailHeaderParams, PosGetProductDetailPathParams, PosGetProductDetailQuery, PosGetProductDetailResponse, PosGetUserCartContent, PosGetUserCartPathParams, PosGetUserCartResponse, PosGetVariantDetailContent, PosGetVariantDetailHeaderParams, PosGetVariantDetailPathParams, PosGetVariantDetailQuery, PosGetVariantDetailResponse, PosListCategoriesContent, PosListCategoriesQuery, PosListCategoriesResponse, PosListCouponsContent, PosListCouponsHeaderParams, PosListCouponsResponse, PosListCrosssellProductsContent, PosListCrosssellProductsHeaderParams, PosListCrosssellProductsQuery, PosListCrosssellProductsResponse, PosListProductReviewsContent, PosListProductReviewsPathParams, PosListProductReviewsQuery, PosListProductReviewsResponse, PosListProductVariantsContent, PosListProductVariantsHeaderParams, PosListProductVariantsPathParams, PosListProductVariantsQuery, PosListProductVariantsResponse, PosListProductsContent, PosListProductsHeaderParams, PosListProductsQuery, PosListProductsResponse, PosListPromotionsContent, PosListPromotionsHeaderParams, PosListPromotionsResponse, PosListSimilarProductsContent, PosListSimilarProductsHeaderParams, PosListSimilarProductsQuery, PosListSimilarProductsResponse, PosListSkusContent, PosListSkusHeaderParams, PosListSkusQuery, PosListSkusResponse, PosListUpsellProductsContent, PosListUpsellProductsHeaderParams, PosListUpsellProductsQuery, PosListUpsellProductsResponse, PosLocation, PosRedeemCreditBalanceBody, PosRedeemCreditBalanceContent, PosRedeemCreditBalancePathParams, PosRedeemCreditBalanceResponse, PosRedeemLoyaltyPointsBody, PosRedeemLoyaltyPointsContent, PosRedeemLoyaltyPointsPathParams, PosRedeemLoyaltyPointsResponse, PosRemoveCouponContent, PosRemoveCouponPathParams, PosRemoveCouponResponse, PosRemoveCreditBalanceContent, PosRemoveCreditBalancePathParams, PosRemoveCreditBalanceResponse, PosRemoveLoyaltyPointsContent, PosRemoveLoyaltyPointsPathParams, PosRemoveLoyaltyPointsResponse, PosSearchProductsBody, PosSearchProductsContent, PosSearchProductsHeaderParams, PosSearchProductsResponse, PosUpdateCartBody, PosUpdateCartContent, PosUpdateCartPathParams, PosUpdateCartResponse, PosUpdateCustomerWithEmail, PosUpdateCustomerWithId, PosUpdateCustomerWithPhone, PosUpdateFulfillmentPreferenceBody, PosUpdateFulfillmentPreferenceContent, PosUpdateFulfillmentPreferencePathParams, PosUpdateFulfillmentPreferenceResponse, PosUser, Product, ProductAttribute, ProductBundleItem, ProductCategory, ProductDetail, ProductImage, ProductPricing, ProductPromotion, ProductReview, ProductShipping, ProductSubscription, ProductVideo, Promotion, PromotionType, RedeemCreditBalanceBody, RedeemCreditBalanceContent, RedeemCreditBalancePathParams, RedeemCreditBalanceResponse, RedeemLoyaltyPointsBody, RedeemLoyaltyPointsContent, RedeemLoyaltyPointsPathParams, RedeemLoyaltyPointsResponse, RefreshPosAccessTokenBody, RefreshPosAccessTokenContent, RefreshPosAccessTokenResponse, RefreshTokenBody, RefreshTokenContent, RefreshTokenResponse, RegisterWithEmailBody, RegisterWithEmailContent, RegisterWithEmailPassword, RegisterWithEmailResponse, RegisterWithPasswordBody, RegisterWithPasswordContent, RegisterWithPasswordResponse, RegisterWithPhoneBody, RegisterWithPhoneContent, RegisterWithPhonePassword, RegisterWithPhoneResponse, RegisterWithWhatsappBody, RegisterWithWhatsappContent, RegisterWithWhatsappResponse, RemoveCouponContent, RemoveCouponPathParams, RemoveCouponResponse, RemoveCreditBalanceContent, RemoveCreditBalancePathParams, RemoveCreditBalanceResponse, RemoveLoyaltyPointsContent, RemoveLoyaltyPointsPathParams, RemoveLoyaltyPointsResponse, RemoveProfileImagePathParams, RemoveProfileImageResponse, ResendDirectOtpBody, ResendDirectOtpContent, ResendDirectOtpResponse, ResetPasswordBody, ResetPasswordContent, ResetPasswordResponse, ResponseUtils, RetryOrderPaymentBody, RetryOrderPaymentContent, RetryOrderPaymentPathParams, RetryOrderPaymentResponse, RevokeSubscription, SavedPaymentMethod, SearchMarketplaceProductsBody, SearchMarketplaceProductsContent, SearchMarketplaceProductsHeaderParams, SearchMarketplaceProductsResponse, SearchProduct, SearchProductsBody, SearchProductsContent, SearchProductsHeaderParams, SearchProductsResponse, Seo, ShipmentItem, ShipmentStatus, ShippingClient, SingleSelectAttribute, SingleSelectOption, StoreConfig, StoreConfigClient, StoreTemplate, StorefrontAPIClient, StorefrontSDK, StorefrontSDK as default, StorefrontSDKOptions, SubscribeNewsletterBody, SubscribeNewsletterResponse, Subscription, SubscriptionBehaviour, SubscriptionDetail, SubscriptionInvoiceItem, SupportedDefaultHeaders, TextAttribute, type TokenStorage, TrackAnalyticsEventBody, TrackAnalyticsEventResponse, UnclaimPosDeviceContent, UnclaimPosDevicePathParams, UnclaimPosDeviceResponse, UpdateAddressDetailBody, UpdateAddressDetailContent, UpdateAddressDetailPathParams, UpdateAddressDetailResponse, UpdateCartBody, UpdateCartContent, UpdateCartItem, UpdateCartPathParams, UpdateCartResponse, UpdateCustomer, UpdateCustomerBody, UpdateCustomerContent, UpdateCustomerPathParams, UpdateCustomerResponse, UpdateDigitalProductSubscription, UpdateDocument, UpdateDocumentContent, UpdateDocumentFormData, UpdateDocumentPathParams, UpdateDocumentResponse, UpdateFulfillmentPreferenceBody, UpdateFulfillmentPreferenceContent, UpdateFulfillmentPreferencePathParams, UpdateFulfillmentPreferenceResponse, UpdateNotificationPreferencesBody, UpdateNotificationPreferencesContent, UpdateNotificationPreferencesPathParams, UpdateNotificationPreferencesResponse, UpdatePhysicalProductSubscription, UpdatePosCartCustomerBody, UpdatePosCartCustomerContent, UpdatePosCartCustomerPathParams, UpdatePosCartCustomerResponse, UpdateProfileImageContent, UpdateProfileImageFormData, UpdateProfileImagePathParams, UpdateProfileImageResponse, UpdateSubscriptionBody, UpdateSubscriptionContent, UpdateSubscriptionPathParams, UpdateSubscriptionResponse, UpdateUserBody, UpdateUserContent, UpdateUserPathParams, UpdateUserResponse, UpiPayment, User, type UserInfo, Variant, VariantDetail, VariantOption, VerifyDocumentBody, VerifyDocumentContent, VerifyDocumentPathParams, VerifyDocumentResponse, VerifyOtpBody, VerifyOtpContent, VerifyOtpResponse, VerifyPosLoginOtpBody, VerifyPosLoginOtpContent, VerifyPosLoginOtpResponse, VerifyVpaContent, VerifyVpaQuery, VerifyVpaResponse, VolumeBasedCouponPromotion, VolumeBasedPromotion, VolumeBasedRule, WalletPayment, type components, createDebugMiddleware, createTimeoutMiddleware, executeRequest, extractRequestBody, getPathnameFromUrl, mergeAndTransformHeaders, mergeHeaders, type operations, type paths, transformHeaders };
|
|
17237
|
+
export { AcceleratedRewardCouponPromotion, AcceleratedRewardRule, AddProfileImageContent, AddProfileImageFormData, AddProfileImagePathParams, AddProfileImageResponse, AddToWishlistBody, AddToWishlistContent, AddToWishlistPathParams, AddToWishlistResponse, AdditionalProductDetails, AnalyticsEvent, AnonymousUser, ApiErrorResponse, ApiResult, ApplicableCoupon, ApplicablePromotion, AppliedCoupon, AppliedPromotion, ApplyCouponBody, ApplyCouponContent, ApplyCouponPathParams, ApplyCouponResponse, AssociatedOption, AuthClient, AuthenticateDirectOtpBody, AuthenticateDirectOtpResponse, AutoScaleBasedOnAmount, AutoScaleBasedOnQuantity, BankTransfer, BaseAPIClient, BaseSDKOptions, BooleanAttribute, Brand, BrowserTokenStorage, Business, BuyXGetYCouponPromotion, BuyXGetYRule, BuyXGetYRuleBasedOnAmount, BuyXGetYRuleBasedOnQuantity, CancelOrderBody, CancelOrderContent, CancelOrderPathParams, CancelOrderResponse, CardPayment, CardbinInfo, Cart, CartBasedFulfillmentCheck, CartBasedFulfillmentOption, CartClient, CartItem, CartShipment, CatalogClient, Category, ChangePasswordBody, ChangePasswordContent, ChangePasswordResponse, type Channel, CheckFulfillmentBody, CheckFulfillmentContent, CheckFulfillmentResponse, CheckVerificationStatusBody, CheckVerificationStatusContent, CheckVerificationStatusResponse, ClaimPosDeviceContent, ClaimPosDevicePathParams, ClaimPosDeviceResponse, CollectInStore, CollectInStoreAddress, CollectInStoreFulfillment, ColorAttribute, ColorOption, CookieTokenStorage, type CookieTokenStorageOptions, Country, CountryState, Coupon, CouponPromotionCommonDetail, CouponType, CreateAddressBody, CreateAddressContent, CreateAddressPathParams, CreateAddressResponse, CreateCartAddressBody, CreateCartAddressContent, CreateCartAddressPathParams, CreateCartAddressResponse, CreateCartBody, CreateCartContent, CreateCartResponse, CreateCustomSubscription, CreateCustomer, CreateCustomerBody, CreateCustomerContent, CreateCustomerResponse, CreateDocumentContent, CreateDocumentFormData, CreateDocumentPathParams, CreateDocumentResponse, CreateJuspayCustomerBody, CreateJuspayCustomerContent, CreateJuspayCustomerResponse, CreateJuspayOrderBody, CreateJuspayOrderContent, CreateJuspayOrderResponse, CreateMarketplaceProductReviewFormData, CreateMarketplaceProductReviewPathParams, CreateMarketplaceProductReviewResponse, CreateNotificationPreferencesBody, CreateNotificationPreferencesContent, CreateNotificationPreferencesPathParams, CreateNotificationPreferencesResponse, CreateOrderBody, CreateOrderContent, CreateOrderResponse, CreateOrderReturn, CreateOrderReturnBody, CreateOrderReturnContent, CreateOrderReturnPathParams, CreateOrderReturnResponse, CreatePosOrderBody, CreatePosOrderContent, CreatePosOrderResponse, CreateProductReviewFormData, CreateProductReviewPathParams, CreateProductReviewResponse, CreateReview, CreateStandardSubscription, CreateSubscription, CreateSubscriptionBody, CreateSubscriptionContent, CreateSubscriptionResponse, Currency, CustomSlabsBasedOnAmount, CustomSlabsBasedOnQuantity, CustomerAddress, CustomerClient, CustomerDetail, CustomerGroup, CustomerLoyalty, CustomerReadyForReview, CustomerReview, DateAttribute, DeactivateUserPathParams, DeactivateUserResponse, DebugLogger, DebugLoggerFn, DeleteAddressPathParams, DeleteAddressResponse, DeleteCartPathParams, DeleteCartResponse, DeleteDocumentPathParams, DeleteDocumentResponse, DeleteFromWishlistBody, DeleteFromWishlistContent, DeleteFromWishlistPathParams, DeleteFromWishlistResponse, DeleteUserCartPathParams, DeleteUserCartResponse, DeliveryFulfillment, DeliveryOption, DiscountBasedPromotion, DiscountCouponPromotion, DiscountRule, Document, Environment, EvaluateCouponsContent, EvaluateCouponsPathParams, EvaluateCouponsResponse, EvaluatePromotionsContent, EvaluatePromotionsPathParams, EvaluatePromotionsResponse, FixedAmountDiscountRule, FixedPriceCouponPromotion, FixedPricePromotion, FixedPriceRule, FixedPriceRuleBasedAmount, FixedPriceRuleBasedQuantity, ForgotPasswordBody, ForgotPasswordContent, ForgotPasswordResponse, FreeGoodCouponPromotion, FreeGoodsPromotion, FreeGoodsRule, FreeShipingCouponPromotion, FulfillmentItem, FulfillmentPreference, GenerateHashBody, GenerateHashContent, GenerateHashResponse, GenerateOtpBody, GenerateOtpContent, GenerateOtpHeaderParams, GenerateOtpResponse, GenerateOtpWithEmail, GenerateOtpWithPhone, GetAddressDetailContent, GetAddressDetailPathParams, GetAddressDetailResponse, GetAnonymousTokenContent, GetAnonymousTokenResponse, GetCardInfoContent, GetCardInfoQuery, GetCardInfoResponse, GetCartContent, GetCartPathParams, GetCartResponse, GetConfigContent, GetConfigResponse, GetCustomerDetailContent, GetCustomerDetailPathParams, GetCustomerDetailResponse, GetDocumentContent, GetDocumentPathParams, GetDocumentResponse, GetFulfillmentOptionsBody, GetFulfillmentOptionsContent, GetFulfillmentOptionsResponse, GetJuspayCustomerContent, GetJuspayCustomerPathParams, GetJuspayCustomerResponse, GetLoyaltyDetailsContent, GetLoyaltyDetailsPathParams, GetLoyaltyDetailsResponse, GetMarketplaceProductDetailContent, GetMarketplaceProductDetailHeaderParams, GetMarketplaceProductDetailPathParams, GetMarketplaceProductDetailQuery, GetMarketplaceProductDetailResponse, GetMarketplaceVariantDetailContent, GetMarketplaceVariantDetailHeaderParams, GetMarketplaceVariantDetailPathParams, GetMarketplaceVariantDetailQuery, GetMarketplaceVariantDetailResponse, GetNotificationPreferencesContent, GetNotificationPreferencesPathParams, GetNotificationPreferencesResponse, GetOrderDetailContent, GetOrderDetailPathParams, GetOrderDetailResponse, GetOrderReturnDetailContent, GetOrderReturnDetailPathParams, GetOrderReturnDetailResponse, GetPaymentStatusContent, GetPaymentStatusPathParams, GetPaymentStatusResponse, GetPosFulfillmentOptionsBody, GetPosFulfillmentOptionsContent, GetPosFulfillmentOptionsResponse, GetPosUserContent, GetPosUserPathParams, GetPosUserResponse, GetProductDetailContent, GetProductDetailHeaderParams, GetProductDetailPathParams, GetProductDetailQuery, GetProductDetailResponse, GetProfileImageContent, GetProfileImagePathParams, GetProfileImageResponse, GetSubscriptionContent, GetSubscriptionPathParams, GetSubscriptionResponse, GetUserCartContent, GetUserCartPathParams, GetUserCartResponse, GetUserDetailContent, GetUserDetailPathParams, GetUserDetailResponse, GetVariantDetailContent, GetVariantDetailHeaderParams, GetVariantDetailPathParams, GetVariantDetailQuery, GetVariantDetailResponse, GetWishlistContent, GetWishlistPathParams, GetWishlistResponse, GstinDetail, HeaderConfig, HelpersClient, InapplicableCoupon, InapplicablePromotion, Item, ItemsBasedFulfillmentCheck, JusPayExpressCheckout, JusPayExpressCheckoutCommonField, JusPayExpressCheckoutResponse, JusPayHyperCheckout, JusPayHyperCheckoutResponse, JusPayNewCard, JusPaySavedCardToken, JuspayCardDetail, JuspayCardPaymentMethod, JuspayCreateCustomerPayload, JuspayCreateOrderPayload, JuspayCustomer, JuspayNetBanking, JuspayNetbankingPaymentMethod, JuspayOrder, JuspayPaymentMethod, JuspayPaymentMethodDetail, JuspayUpiCollect, JuspayUpiIntent, JuspayUpiPaymentMethod, JuspayWalletPaymentMethod, KycDocument, KycDocumentConfig, ListAddressesContent, ListAddressesPathParams, ListAddressesQuery, ListAddressesResponse, ListCategoriesContent, ListCategoriesQuery, ListCategoriesResponse, ListCountriesContent, ListCountriesResponse, ListCountryPincodesContent, ListCountryPincodesPathParams, ListCountryPincodesQuery, ListCountryPincodesResponse, ListCountryStatesContent, ListCountryStatesPathParams, ListCountryStatesResponse, ListCouponsContent, ListCouponsHeaderParams, ListCouponsResponse, ListCrosssellProductsContent, ListCrosssellProductsHeaderParams, ListCrosssellProductsQuery, ListCrosssellProductsResponse, ListCustomerCardsContent, ListCustomerCardsPathParams, ListCustomerCardsResponse, ListDocumentsContent, ListDocumentsPathParams, ListDocumentsResponse, ListKycDocumentContent, ListKycDocumentResponse, ListLoyaltyActivitiesContent, ListLoyaltyActivitiesPathParams, ListLoyaltyActivitiesQuery, ListLoyaltyActivitiesResponse, ListMarketplaceCategoriesContent, ListMarketplaceCategoriesQuery, ListMarketplaceCategoriesResponse, ListMarketplaceCrosssellProductsContent, ListMarketplaceCrosssellProductsHeaderParams, ListMarketplaceCrosssellProductsQuery, ListMarketplaceCrosssellProductsResponse, ListMarketplaceProductReviewsContent, ListMarketplaceProductReviewsPathParams, ListMarketplaceProductReviewsQuery, ListMarketplaceProductReviewsResponse, ListMarketplaceProductVariantsContent, ListMarketplaceProductVariantsHeaderParams, ListMarketplaceProductVariantsPathParams, ListMarketplaceProductVariantsQuery, ListMarketplaceProductVariantsResponse, ListMarketplaceProductsContent, ListMarketplaceProductsHeaderParams, ListMarketplaceProductsQuery, ListMarketplaceProductsResponse, ListMarketplaceSimilarProductsContent, ListMarketplaceSimilarProductsHeaderParams, ListMarketplaceSimilarProductsQuery, ListMarketplaceSimilarProductsResponse, ListMarketplaceSkusContent, ListMarketplaceSkusHeaderParams, ListMarketplaceSkusQuery, ListMarketplaceSkusResponse, ListMarketplaceUpsellProductsContent, ListMarketplaceUpsellProductsHeaderParams, ListMarketplaceUpsellProductsQuery, ListMarketplaceUpsellProductsResponse, ListOrderPaymentsContent, ListOrderPaymentsPathParams, ListOrderPaymentsResponse, ListOrderRefundsContent, ListOrderRefundsPathParams, ListOrderRefundsResponse, ListOrderShipmentsContent, ListOrderShipmentsPathParams, ListOrderShipmentsResponse, ListOrdersContent, ListOrdersQuery, ListOrdersResponse, ListPaymentMethodsContent, ListPaymentMethodsQuery, ListPaymentMethodsResponse, ListPosDevicesContent, ListPosDevicesResponse, ListPosLocationsContent, ListPosLocationsResponse, ListProductReviewsContent, ListProductReviewsPathParams, ListProductReviewsQuery, ListProductReviewsResponse, ListProductVariantsContent, ListProductVariantsHeaderParams, ListProductVariantsPathParams, ListProductVariantsQuery, ListProductVariantsResponse, ListProductsContent, ListProductsHeaderParams, ListProductsQuery, ListProductsResponse, ListPromotionsContent, ListPromotionsHeaderParams, ListPromotionsResponse, ListReturnsContent, ListReturnsResponse, ListSavedPaymentMethodsContent, ListSavedPaymentMethodsPathParams, ListSavedPaymentMethodsQuery, ListSavedPaymentMethodsResponse, ListSimilarProductsContent, ListSimilarProductsHeaderParams, ListSimilarProductsQuery, ListSimilarProductsResponse, ListSkusContent, ListSkusHeaderParams, ListSkusQuery, ListSkusResponse, ListSubscriptionsContent, ListSubscriptionsResponse, ListUpsellProductsContent, ListUpsellProductsHeaderParams, ListUpsellProductsQuery, ListUpsellProductsResponse, ListUserReviewsContent, ListUserReviewsPathParams, ListUserReviewsResponse, LoginPosDeviceWithEmailBody, LoginPosDeviceWithEmailContent, LoginPosDeviceWithEmailHeaderParams, LoginPosDeviceWithEmailResponse, LoginPosDeviceWithPhoneBody, LoginPosDeviceWithPhoneContent, LoginPosDeviceWithPhoneHeaderParams, LoginPosDeviceWithPhoneResponse, LoginPosDeviceWithWhatsappBody, LoginPosDeviceWithWhatsappContent, LoginPosDeviceWithWhatsappHeaderParams, LoginPosDeviceWithWhatsappResponse, LoginWithEmailBody, LoginWithEmailContent, LoginWithEmailHeaderParams, LoginWithEmailResponse, LoginWithPasswordBody, LoginWithPasswordContent, LoginWithPasswordResponse, LoginWithPhoneBody, LoginWithPhoneContent, LoginWithPhoneHeaderParams, LoginWithPhoneResponse, LoginWithWhatsappBody, LoginWithWhatsappContent, LoginWithWhatsappHeaderParams, LoginWithWhatsappResponse, LogoutContent, LogoutFromPosDeviceResponse, LogoutResponse, LotBatchDetail, LoyaltyPointActivity, ManualPaymentMethod, MarketplaceProduct, MarketplaceProductDetail, MeasurementUnit, MemoryTokenStorage, MultiSelectAttribute, NetbankingPayment, NotificationChannelPreferences, NotificationPreferences, NumberAttribute, Order, OrderClient, OrderDetail, OrderItem, OrderList, OrderPayment, OrderRefund, OrderReturn, OrderReturnItem, OrderShipment, Pagination, PairPosDeviceBody, PairPosDeviceContent, PairPosDeviceResponse, PanDetail, PartialCollectAndDelivery, PauseSubscription, PayWithCard, PayWithCash, PayWithUpi, PaymentInfo, PaymentMethodPayload, PaymentsClient, PayuPaymentInfo, PayuPaymentMethod, PercentageDiscountRule, Pincode, PosApplyCouponBody, PosApplyCouponContent, PosApplyCouponPathParams, PosApplyCouponResponse, PosCreateCartAddressBody, PosCreateCartAddressContent, PosCreateCartAddressPathParams, PosCreateCartAddressResponse, PosCreateCartBody, PosCreateCartContent, PosCreateCartResponse, PosDeleteCartPathParams, PosDeleteCartResponse, PosDevice, PosDeviceClaimedUser, PosEvaluateCouponsContent, PosEvaluateCouponsPathParams, PosEvaluateCouponsResponse, PosEvaluatePromotionsContent, PosEvaluatePromotionsPathParams, PosEvaluatePromotionsResponse, PosGetCartContent, PosGetCartPathParams, PosGetCartResponse, PosGetPaymentStatusContent, PosGetPaymentStatusPathParams, PosGetPaymentStatusResponse, PosGetProductDetailContent, PosGetProductDetailHeaderParams, PosGetProductDetailPathParams, PosGetProductDetailQuery, PosGetProductDetailResponse, PosGetUserCartContent, PosGetUserCartPathParams, PosGetUserCartResponse, PosGetVariantDetailContent, PosGetVariantDetailHeaderParams, PosGetVariantDetailPathParams, PosGetVariantDetailQuery, PosGetVariantDetailResponse, PosListCategoriesContent, PosListCategoriesQuery, PosListCategoriesResponse, PosListCouponsContent, PosListCouponsHeaderParams, PosListCouponsResponse, PosListCrosssellProductsContent, PosListCrosssellProductsHeaderParams, PosListCrosssellProductsQuery, PosListCrosssellProductsResponse, PosListProductReviewsContent, PosListProductReviewsPathParams, PosListProductReviewsQuery, PosListProductReviewsResponse, PosListProductVariantsContent, PosListProductVariantsHeaderParams, PosListProductVariantsPathParams, PosListProductVariantsQuery, PosListProductVariantsResponse, PosListProductsContent, PosListProductsHeaderParams, PosListProductsQuery, PosListProductsResponse, PosListPromotionsContent, PosListPromotionsHeaderParams, PosListPromotionsResponse, PosListSimilarProductsContent, PosListSimilarProductsHeaderParams, PosListSimilarProductsQuery, PosListSimilarProductsResponse, PosListSkusContent, PosListSkusHeaderParams, PosListSkusQuery, PosListSkusResponse, PosListUpsellProductsContent, PosListUpsellProductsHeaderParams, PosListUpsellProductsQuery, PosListUpsellProductsResponse, PosLocation, PosRedeemCreditBalanceBody, PosRedeemCreditBalanceContent, PosRedeemCreditBalancePathParams, PosRedeemCreditBalanceResponse, PosRedeemLoyaltyPointsBody, PosRedeemLoyaltyPointsContent, PosRedeemLoyaltyPointsPathParams, PosRedeemLoyaltyPointsResponse, PosRemoveCouponContent, PosRemoveCouponPathParams, PosRemoveCouponResponse, PosRemoveCreditBalanceContent, PosRemoveCreditBalancePathParams, PosRemoveCreditBalanceResponse, PosRemoveLoyaltyPointsContent, PosRemoveLoyaltyPointsPathParams, PosRemoveLoyaltyPointsResponse, PosSearchProductsBody, PosSearchProductsContent, PosSearchProductsHeaderParams, PosSearchProductsResponse, PosUpdateCartBody, PosUpdateCartContent, PosUpdateCartPathParams, PosUpdateCartResponse, PosUpdateCustomerWithEmail, PosUpdateCustomerWithId, PosUpdateCustomerWithPhone, PosUpdateFulfillmentPreferenceBody, PosUpdateFulfillmentPreferenceContent, PosUpdateFulfillmentPreferencePathParams, PosUpdateFulfillmentPreferenceResponse, PosUser, Product, ProductAttribute, ProductBundleItem, ProductCategory, ProductDetail, ProductImage, ProductPricing, ProductPromotion, ProductReview, ProductShipping, ProductSubscription, ProductVideo, Promotion, PromotionType, RedeemCreditBalanceBody, RedeemCreditBalanceContent, RedeemCreditBalancePathParams, RedeemCreditBalanceResponse, RedeemLoyaltyPointsBody, RedeemLoyaltyPointsContent, RedeemLoyaltyPointsPathParams, RedeemLoyaltyPointsResponse, RefreshPosAccessTokenBody, RefreshPosAccessTokenContent, RefreshPosAccessTokenResponse, RefreshTokenBody, RefreshTokenContent, RefreshTokenResponse, RegisterWithEmailBody, RegisterWithEmailContent, RegisterWithEmailPassword, RegisterWithEmailResponse, RegisterWithPasswordBody, RegisterWithPasswordContent, RegisterWithPasswordResponse, RegisterWithPhoneBody, RegisterWithPhoneContent, RegisterWithPhonePassword, RegisterWithPhoneResponse, RegisterWithWhatsappBody, RegisterWithWhatsappContent, RegisterWithWhatsappResponse, RemoveCouponContent, RemoveCouponPathParams, RemoveCouponResponse, RemoveCreditBalanceContent, RemoveCreditBalancePathParams, RemoveCreditBalanceResponse, RemoveLoyaltyPointsContent, RemoveLoyaltyPointsPathParams, RemoveLoyaltyPointsResponse, RemoveProfileImagePathParams, RemoveProfileImageResponse, ResendDirectOtpBody, ResendDirectOtpContent, ResendDirectOtpResponse, ResetPasswordBody, ResetPasswordContent, ResetPasswordResponse, ResponseUtils, RetryOrderPaymentBody, RetryOrderPaymentContent, RetryOrderPaymentPathParams, RetryOrderPaymentResponse, RevokeSubscription, SavedPaymentMethod, SearchMarketplaceProductsBody, SearchMarketplaceProductsContent, SearchMarketplaceProductsHeaderParams, SearchMarketplaceProductsResponse, SearchProduct, SearchProductsBody, SearchProductsContent, SearchProductsHeaderParams, SearchProductsResponse, SellerDetail, Seo, ShipmentItem, ShipmentStatus, SingleSelectAttribute, SingleSelectOption, StoreConfig, StoreConfigClient, StoreTemplate, StorefrontAPIClient, StorefrontSDK, StorefrontSDK as default, StorefrontSDKOptions, SubscribeNewsletterBody, SubscribeNewsletterResponse, Subscription, SubscriptionBehaviour, SubscriptionDetail, SubscriptionInvoiceItem, SupportedDefaultHeaders, TextAttribute, type TokenStorage, TrackAnalyticsEventBody, TrackAnalyticsEventResponse, UnclaimPosDeviceContent, UnclaimPosDevicePathParams, UnclaimPosDeviceResponse, UnserviceableItem, UpdateAddressDetailBody, UpdateAddressDetailContent, UpdateAddressDetailPathParams, UpdateAddressDetailResponse, UpdateCartBody, UpdateCartContent, UpdateCartItem, UpdateCartPathParams, UpdateCartResponse, UpdateCustomer, UpdateCustomerBody, UpdateCustomerContent, UpdateCustomerPathParams, UpdateCustomerResponse, UpdateDigitalProductSubscription, UpdateDocument, UpdateDocumentContent, UpdateDocumentFormData, UpdateDocumentPathParams, UpdateDocumentResponse, UpdateFulfillmentPreferenceBody, UpdateFulfillmentPreferenceContent, UpdateFulfillmentPreferencePathParams, UpdateFulfillmentPreferenceResponse, UpdateNotificationPreferencesBody, UpdateNotificationPreferencesContent, UpdateNotificationPreferencesPathParams, UpdateNotificationPreferencesResponse, UpdatePhysicalProductSubscription, UpdatePosCartCustomerBody, UpdatePosCartCustomerContent, UpdatePosCartCustomerPathParams, UpdatePosCartCustomerResponse, UpdateProfileImageContent, UpdateProfileImageFormData, UpdateProfileImagePathParams, UpdateProfileImageResponse, UpdateSubscriptionBody, UpdateSubscriptionContent, UpdateSubscriptionPathParams, UpdateSubscriptionResponse, UpdateUserBody, UpdateUserContent, UpdateUserPathParams, UpdateUserResponse, UpiPayment, User, type UserInfo, Variant, VariantDetail, VariantOption, VerifyDocumentBody, VerifyDocumentContent, VerifyDocumentPathParams, VerifyDocumentResponse, VerifyOtpBody, VerifyOtpContent, VerifyOtpResponse, VerifyPosLoginOtpBody, VerifyPosLoginOtpContent, VerifyPosLoginOtpResponse, VerifyVpaContent, VerifyVpaQuery, VerifyVpaResponse, VolumeBasedCouponPromotion, VolumeBasedPromotion, VolumeBasedRule, WalletPayment, type components, createDebugMiddleware, createTimeoutMiddleware, executeRequest, extractRequestBody, getPathnameFromUrl, mergeAndTransformHeaders, mergeHeaders, type operations, type paths, transformHeaders };
|
|
16833
17238
|
//# sourceMappingURL=index.d.mts.map
|