@blezgo/api-sdk 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/generated.d.ts +230 -230
- package/dist/account/generated.d.ts.map +1 -1
- package/dist/activity/generated.d.ts +46 -46
- package/dist/activity/generated.d.ts.map +1 -1
- package/dist/addon/generated.d.ts +101 -101
- package/dist/addon/generated.d.ts.map +1 -1
- package/dist/admin/generated.d.ts +122 -122
- package/dist/admin/generated.d.ts.map +1 -1
- package/dist/affiliate/generated.d.ts +82 -82
- package/dist/affiliate/generated.d.ts.map +1 -1
- package/dist/analytics/generated.d.ts +21 -21
- package/dist/analytics/generated.d.ts.map +1 -1
- package/dist/announcements/generated.d.ts +119 -119
- package/dist/announcements/generated.d.ts.map +1 -1
- package/dist/apikeys/generated.d.ts +129 -129
- package/dist/apikeys/generated.d.ts.map +1 -1
- package/dist/assistance/generated.d.ts +21 -21
- package/dist/assistance/generated.d.ts.map +1 -1
- package/dist/authentication/generated.d.ts +83 -83
- package/dist/authentication/generated.d.ts.map +1 -1
- package/dist/blog/generated.d.ts +212 -212
- package/dist/blog/generated.d.ts.map +1 -1
- package/dist/bundle/generated.d.ts +185 -185
- package/dist/bundle/generated.d.ts.map +1 -1
- package/dist/cache/generated.d.ts +27 -27
- package/dist/cache/generated.d.ts.map +1 -1
- package/dist/calendar/generated.d.ts +54 -54
- package/dist/calendar/generated.d.ts.map +1 -1
- package/dist/campaigns/generated.d.ts +206 -206
- package/dist/campaigns/generated.d.ts.map +1 -1
- package/dist/cart/generated.d.ts +42 -42
- package/dist/cart/generated.d.ts.map +1 -1
- package/dist/changelog/generated.d.ts +101 -101
- package/dist/changelog/generated.d.ts.map +1 -1
- package/dist/channel/generated.d.ts +213 -213
- package/dist/channel/generated.d.ts.map +1 -1
- package/dist/company/generated.d.ts +57 -57
- package/dist/company/generated.d.ts.map +1 -1
- package/dist/conference/generated.d.ts +109 -109
- package/dist/conference/generated.d.ts.map +1 -1
- package/dist/config/generated.d.ts +55 -55
- package/dist/config/generated.d.ts.map +1 -1
- package/dist/content/generated.d.ts +613 -613
- package/dist/content/generated.d.ts.map +1 -1
- package/dist/cookies/generated.d.ts +71 -71
- package/dist/cookies/generated.d.ts.map +1 -1
- package/dist/courses/generated.d.ts +453 -453
- package/dist/courses/generated.d.ts.map +1 -1
- package/dist/custom/generated.d.ts +78 -78
- package/dist/custom/generated.d.ts.map +1 -1
- package/dist/dashboard/generated.d.ts +138 -138
- package/dist/dashboard/generated.d.ts.map +1 -1
- package/dist/elasticsearch/generated.d.ts +21 -21
- package/dist/elasticsearch/generated.d.ts.map +1 -1
- package/dist/enrollments/generated.d.ts +21 -21
- package/dist/enrollments/generated.d.ts.map +1 -1
- package/dist/errors/generated.d.ts +54 -54
- package/dist/errors/generated.d.ts.map +1 -1
- package/dist/eventconfig/generated.d.ts +53 -53
- package/dist/eventconfig/generated.d.ts.map +1 -1
- package/dist/funnels/generated.d.ts +117 -117
- package/dist/funnels/generated.d.ts.map +1 -1
- package/dist/gamification/generated.d.ts +177 -177
- package/dist/gamification/generated.d.ts.map +1 -1
- package/dist/impersonation/generated.d.ts +52 -52
- package/dist/impersonation/generated.d.ts.map +1 -1
- package/dist/inbox/generated.d.ts +122 -122
- package/dist/inbox/generated.d.ts.map +1 -1
- package/dist/internal/generated.d.ts +21 -21
- package/dist/internal/generated.d.ts.map +1 -1
- package/dist/internationalization/generated.d.ts +21 -21
- package/dist/internationalization/generated.d.ts.map +1 -1
- package/dist/invitations/generated.d.ts +156 -156
- package/dist/invitations/generated.d.ts.map +1 -1
- package/dist/meetings/generated.d.ts +372 -372
- package/dist/meetings/generated.d.ts.map +1 -1
- package/dist/metas/generated.d.ts +199 -199
- package/dist/metas/generated.d.ts.map +1 -1
- package/dist/notification/generated.d.ts +356 -356
- package/dist/notification/generated.d.ts.map +1 -1
- package/dist/notifications/generated.d.ts +21 -21
- package/dist/notifications/generated.d.ts.map +1 -1
- package/dist/onboarding/generated.d.ts +77 -77
- package/dist/onboarding/generated.d.ts.map +1 -1
- package/dist/packages/generated.d.ts +59 -59
- package/dist/packages/generated.d.ts.map +1 -1
- package/dist/payments/generated.d.ts +523 -523
- package/dist/payments/generated.d.ts.map +1 -1
- package/dist/payouts/generated.d.ts +21 -21
- package/dist/payouts/generated.d.ts.map +1 -1
- package/dist/plans/generated.d.ts +323 -323
- package/dist/plans/generated.d.ts.map +1 -1
- package/dist/pricing/generated.d.ts +38 -38
- package/dist/pricing/generated.d.ts.map +1 -1
- package/dist/products/generated.d.ts +443 -443
- package/dist/products/generated.d.ts.map +1 -1
- package/dist/profile/generated.d.ts +354 -354
- package/dist/profile/generated.d.ts.map +1 -1
- package/dist/reasons/generated.d.ts +101 -101
- package/dist/reasons/generated.d.ts.map +1 -1
- package/dist/registration/generated.d.ts +171 -171
- package/dist/registration/generated.d.ts.map +1 -1
- package/dist/reviews/generated.d.ts +57 -57
- package/dist/reviews/generated.d.ts.map +1 -1
- package/dist/role/generated.d.ts +191 -191
- package/dist/role/generated.d.ts.map +1 -1
- package/dist/scheduling/generated.d.ts +103 -103
- package/dist/scheduling/generated.d.ts.map +1 -1
- package/dist/services/generated.d.ts +1017 -1017
- package/dist/services/generated.d.ts.map +1 -1
- package/dist/sessions/generated.d.ts +362 -362
- package/dist/sessions/generated.d.ts.map +1 -1
- package/dist/spaces/generated.d.ts +600 -600
- package/dist/spaces/generated.d.ts.map +1 -1
- package/dist/storefront/generated.d.ts +21 -21
- package/dist/storefront/generated.d.ts.map +1 -1
- package/dist/support/generated.d.ts +1403 -1403
- package/dist/support/generated.d.ts.map +1 -1
- package/dist/sync/generated.d.ts +182 -182
- package/dist/sync/generated.d.ts.map +1 -1
- package/dist/tenant/generated.d.ts +737 -737
- package/dist/tenant/generated.d.ts.map +1 -1
- package/dist/testimonials/generated.d.ts +50 -50
- package/dist/testimonials/generated.d.ts.map +1 -1
- package/dist/tests/generated.d.ts +472 -472
- package/dist/tests/generated.d.ts.map +1 -1
- package/dist/tokens/generated.d.ts +54 -54
- package/dist/tokens/generated.d.ts.map +1 -1
- package/dist/uploads/generated.d.ts +69 -69
- package/dist/uploads/generated.d.ts.map +1 -1
- package/dist/upsell/generated.d.ts +130 -130
- package/dist/upsell/generated.d.ts.map +1 -1
- package/dist/user/generated.d.ts +72 -72
- package/dist/user/generated.d.ts.map +1 -1
- package/dist/webinars/generated.d.ts +329 -329
- package/dist/webinars/generated.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -3241,73 +3241,79 @@ export interface paths {
|
|
|
3241
3241
|
export type webhooks = Record<string, never>;
|
|
3242
3242
|
export interface components {
|
|
3243
3243
|
schemas: {
|
|
3244
|
-
/**
|
|
3245
|
-
|
|
3244
|
+
/** GenerateInvoiceRequest */
|
|
3245
|
+
GenerateInvoiceRequest: {
|
|
3246
3246
|
/**
|
|
3247
|
-
*
|
|
3248
|
-
* @description
|
|
3247
|
+
* Order Id
|
|
3248
|
+
* @description Order ID
|
|
3249
3249
|
*/
|
|
3250
|
-
|
|
3250
|
+
order_id: number;
|
|
3251
3251
|
/**
|
|
3252
3252
|
* Company Id
|
|
3253
3253
|
* @description Company ID
|
|
3254
3254
|
*/
|
|
3255
3255
|
company_id: number;
|
|
3256
|
+
};
|
|
3257
|
+
/**
|
|
3258
|
+
* GuestDetails
|
|
3259
|
+
* @description Guest customer details for checkout
|
|
3260
|
+
*/
|
|
3261
|
+
GuestDetails: {
|
|
3256
3262
|
/**
|
|
3257
|
-
*
|
|
3258
|
-
* @description
|
|
3263
|
+
* Email
|
|
3264
|
+
* @description Guest email address
|
|
3259
3265
|
*/
|
|
3260
|
-
|
|
3266
|
+
email: string;
|
|
3261
3267
|
/**
|
|
3262
|
-
*
|
|
3263
|
-
* @description
|
|
3268
|
+
* Mobile Isd Code
|
|
3269
|
+
* @description Mobile country code (e.g., +91, +1)
|
|
3264
3270
|
*/
|
|
3265
|
-
|
|
3266
|
-
};
|
|
3267
|
-
InvalidParam: {
|
|
3268
|
-
/** @example items[0].quantity */
|
|
3269
|
-
field?: string;
|
|
3270
|
-
/** @example Input should be greater than or equal to 1 */
|
|
3271
|
-
error?: string;
|
|
3272
|
-
};
|
|
3273
|
-
/** InitPaymentRequest */
|
|
3274
|
-
InitPaymentRequest: {
|
|
3271
|
+
mobile_isd_code: string;
|
|
3275
3272
|
/**
|
|
3276
|
-
*
|
|
3277
|
-
* @description
|
|
3273
|
+
* Mobile No
|
|
3274
|
+
* @description Mobile number
|
|
3278
3275
|
*/
|
|
3279
|
-
|
|
3276
|
+
mobile_no: string;
|
|
3280
3277
|
/**
|
|
3281
|
-
*
|
|
3282
|
-
* @description
|
|
3278
|
+
* First Name
|
|
3279
|
+
* @description Guest first name
|
|
3283
3280
|
*/
|
|
3284
|
-
|
|
3281
|
+
first_name: string;
|
|
3285
3282
|
/**
|
|
3286
|
-
*
|
|
3287
|
-
* @description
|
|
3283
|
+
* Last Name
|
|
3284
|
+
* @description Guest last name
|
|
3288
3285
|
*/
|
|
3289
|
-
|
|
3286
|
+
last_name: string;
|
|
3290
3287
|
/**
|
|
3291
|
-
*
|
|
3292
|
-
* @description
|
|
3288
|
+
* Address Line1
|
|
3289
|
+
* @description Street address, PO box, company name
|
|
3293
3290
|
*/
|
|
3294
|
-
|
|
3291
|
+
address_line1?: string | null;
|
|
3295
3292
|
/**
|
|
3296
|
-
*
|
|
3297
|
-
* @description
|
|
3298
|
-
* @default false
|
|
3293
|
+
* Address Line2
|
|
3294
|
+
* @description Apartment, suite, unit, building, floor, etc.
|
|
3299
3295
|
*/
|
|
3300
|
-
|
|
3296
|
+
address_line2?: string | null;
|
|
3301
3297
|
/**
|
|
3302
|
-
*
|
|
3303
|
-
* @description
|
|
3298
|
+
* City
|
|
3299
|
+
* @description City, district, suburb, town, or village
|
|
3304
3300
|
*/
|
|
3305
|
-
|
|
3301
|
+
city?: string | null;
|
|
3306
3302
|
/**
|
|
3307
|
-
*
|
|
3308
|
-
* @description
|
|
3303
|
+
* State
|
|
3304
|
+
* @description State, province, prefecture, or region
|
|
3309
3305
|
*/
|
|
3310
|
-
|
|
3306
|
+
state?: string | null;
|
|
3307
|
+
/**
|
|
3308
|
+
* Postal Code
|
|
3309
|
+
* @description ZIP or postal code
|
|
3310
|
+
*/
|
|
3311
|
+
postal_code?: string | null;
|
|
3312
|
+
/**
|
|
3313
|
+
* Country
|
|
3314
|
+
* @description Two-letter country code (ISO 3166-1 alpha-2, e.g., IN, US, GB)
|
|
3315
|
+
*/
|
|
3316
|
+
country?: string | null;
|
|
3311
3317
|
};
|
|
3312
3318
|
/**
|
|
3313
3319
|
* CouponAdminCreateRequest
|
|
@@ -3372,48 +3378,36 @@ export interface components {
|
|
|
3372
3378
|
*/
|
|
3373
3379
|
owner?: number | null;
|
|
3374
3380
|
};
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3381
|
+
StandardResponse_CartResponseData_: {
|
|
3382
|
+
[key: string]: unknown;
|
|
3383
|
+
};
|
|
3384
|
+
StandardResponse_ClearCartResponseData_: {
|
|
3385
|
+
[key: string]: unknown;
|
|
3386
|
+
};
|
|
3387
|
+
/** PriceUpdateRequest */
|
|
3388
|
+
PriceUpdateRequest: {
|
|
3389
|
+
/** Amount */
|
|
3390
|
+
amount?: number | null;
|
|
3391
|
+
currency?: components["schemas"]["Currency"] | null;
|
|
3392
|
+
interval?: components["schemas"]["Interval"] | null;
|
|
3393
|
+
/** Interval Count */
|
|
3394
|
+
interval_count?: number | null;
|
|
3395
|
+
/** Trial Period Days */
|
|
3396
|
+
trial_period_days?: number | null;
|
|
3397
|
+
/** Initial Amount */
|
|
3398
|
+
initial_amount?: number | null;
|
|
3399
|
+
/** Compare Price */
|
|
3400
|
+
compare_price?: number | null;
|
|
3387
3401
|
};
|
|
3388
3402
|
/**
|
|
3389
|
-
*
|
|
3390
|
-
*
|
|
3391
|
-
* "message": "Operation successful",
|
|
3392
|
-
* "message_code": "api_suc_20001",
|
|
3393
|
-
* "data": {},
|
|
3394
|
-
* "metadata": {
|
|
3395
|
-
* "timestamp": "2026-03-26T10:00:00.000Z",
|
|
3396
|
-
* "requestId": "07e22004-cb60-4dfc-bc9c-b6f99664dca1",
|
|
3397
|
-
* "traceId": "a9f1204c-bb82-41de-b234-7c3a9e120000",
|
|
3398
|
-
* "version": "v1",
|
|
3399
|
-
* "executionTime": 42,
|
|
3400
|
-
* "language": "en-US"
|
|
3401
|
-
* }
|
|
3402
|
-
* }
|
|
3403
|
+
* Currency
|
|
3404
|
+
* @enum {string}
|
|
3403
3405
|
*/
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
message?: string | null;
|
|
3410
|
-
/** @example api_suc_20001 */
|
|
3411
|
-
message_code?: string | null;
|
|
3412
|
-
metadata?: Record<string, never> | null;
|
|
3413
|
-
error?: components["schemas"]["ErrorResponse"];
|
|
3414
|
-
};
|
|
3415
|
-
StandardResponse_DeleteCartItemResponseData_: {
|
|
3416
|
-
[key: string]: unknown;
|
|
3406
|
+
Currency: "USD" | "INR" | "EUR" | "GBP";
|
|
3407
|
+
/** ApplyCouponRequest */
|
|
3408
|
+
ApplyCouponRequest: {
|
|
3409
|
+
/** Coupon Code */
|
|
3410
|
+
coupon_code: string;
|
|
3417
3411
|
};
|
|
3418
3412
|
/** CancelSubscriptionRequest */
|
|
3419
3413
|
CancelSubscriptionRequest: {
|
|
@@ -3429,6 +3423,33 @@ export interface components {
|
|
|
3429
3423
|
*/
|
|
3430
3424
|
reason?: string | null;
|
|
3431
3425
|
};
|
|
3426
|
+
/** UpdateOrderStatusRequest */
|
|
3427
|
+
UpdateOrderStatusRequest: {
|
|
3428
|
+
/** Status */
|
|
3429
|
+
status: string;
|
|
3430
|
+
};
|
|
3431
|
+
/** AttachGuestDetailsRequest */
|
|
3432
|
+
AttachGuestDetailsRequest: {
|
|
3433
|
+
guest_details: components["schemas"]["GuestDetails"];
|
|
3434
|
+
};
|
|
3435
|
+
/** CancelOfflineOrderRequest */
|
|
3436
|
+
CancelOfflineOrderRequest: {
|
|
3437
|
+
/**
|
|
3438
|
+
* User Remark
|
|
3439
|
+
* @description User remark for cancellation
|
|
3440
|
+
*/
|
|
3441
|
+
user_remark?: string | null;
|
|
3442
|
+
/**
|
|
3443
|
+
* Admin Remark
|
|
3444
|
+
* @description Admin remark for cancellation
|
|
3445
|
+
*/
|
|
3446
|
+
admin_remark?: string | null;
|
|
3447
|
+
};
|
|
3448
|
+
/**
|
|
3449
|
+
* PriceType
|
|
3450
|
+
* @enum {string}
|
|
3451
|
+
*/
|
|
3452
|
+
PriceType: "free" | "subscription" | "onetime" | "emi";
|
|
3432
3453
|
/**
|
|
3433
3454
|
* CouponBulkCreateRequest
|
|
3434
3455
|
* @description Bulk coupon creation request - coupon_code is NOT required (auto-generated).
|
|
@@ -3490,183 +3511,28 @@ export interface components {
|
|
|
3490
3511
|
*/
|
|
3491
3512
|
owner?: number | null;
|
|
3492
3513
|
};
|
|
3493
|
-
/**
|
|
3494
|
-
|
|
3495
|
-
/**
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
*/
|
|
3502
|
-
PriceType: "free" | "subscription" | "onetime" | "emi";
|
|
3503
|
-
/** CartItemRequest */
|
|
3504
|
-
CartItemRequest: {
|
|
3505
|
-
/** Items */
|
|
3506
|
-
items: components["schemas"]["CartItem"][];
|
|
3507
|
-
};
|
|
3508
|
-
/** UpdateOrderStatusRequest */
|
|
3509
|
-
UpdateOrderStatusRequest: {
|
|
3510
|
-
/** Status */
|
|
3511
|
-
status: string;
|
|
3512
|
-
};
|
|
3513
|
-
/** AddPaymentMethodRequest */
|
|
3514
|
-
AddPaymentMethodRequest: {
|
|
3514
|
+
/** CouponCreateRequest */
|
|
3515
|
+
CouponCreateRequest: {
|
|
3516
|
+
/** Coupon Name */
|
|
3517
|
+
coupon_name: string;
|
|
3518
|
+
/** Coupon Code */
|
|
3519
|
+
coupon_code: string;
|
|
3520
|
+
/** Duration */
|
|
3521
|
+
duration?: string | null;
|
|
3515
3522
|
/**
|
|
3516
|
-
*
|
|
3517
|
-
* @
|
|
3523
|
+
* Duration In Months
|
|
3524
|
+
* @default 0
|
|
3518
3525
|
*/
|
|
3519
|
-
|
|
3526
|
+
duration_in_months: number;
|
|
3527
|
+
/** Amount Off */
|
|
3528
|
+
amount_off?: number | null;
|
|
3529
|
+
/** Currency */
|
|
3530
|
+
currency?: string | null;
|
|
3531
|
+
/** Percent Off */
|
|
3532
|
+
percent_off?: number | null;
|
|
3520
3533
|
/**
|
|
3521
|
-
*
|
|
3522
|
-
* @description
|
|
3523
|
-
*/
|
|
3524
|
-
gateway: string;
|
|
3525
|
-
};
|
|
3526
|
-
/** PriceUpdateRequest */
|
|
3527
|
-
PriceUpdateRequest: {
|
|
3528
|
-
/** Amount */
|
|
3529
|
-
amount?: number | null;
|
|
3530
|
-
currency?: components["schemas"]["Currency"] | null;
|
|
3531
|
-
interval?: components["schemas"]["Interval"] | null;
|
|
3532
|
-
/** Interval Count */
|
|
3533
|
-
interval_count?: number | null;
|
|
3534
|
-
/** Trial Period Days */
|
|
3535
|
-
trial_period_days?: number | null;
|
|
3536
|
-
/** Initial Amount */
|
|
3537
|
-
initial_amount?: number | null;
|
|
3538
|
-
/** Compare Price */
|
|
3539
|
-
compare_price?: number | null;
|
|
3540
|
-
};
|
|
3541
|
-
StandardResponse_CartItemDetail_: {
|
|
3542
|
-
[key: string]: unknown;
|
|
3543
|
-
};
|
|
3544
|
-
Extensions: {
|
|
3545
|
-
/** @example GENERIC_ERROR */
|
|
3546
|
-
message_code?: string;
|
|
3547
|
-
/** @example [] */
|
|
3548
|
-
invalid_params?: components["schemas"]["InvalidParam"][];
|
|
3549
|
-
extra_data?: Record<string, never> | null;
|
|
3550
|
-
/** @example Detailed debug information */
|
|
3551
|
-
debug?: string | null;
|
|
3552
|
-
};
|
|
3553
|
-
StandardResponse_CartItemResponseData_: {
|
|
3554
|
-
[key: string]: unknown;
|
|
3555
|
-
};
|
|
3556
|
-
/** CreateSubscriptionRequest */
|
|
3557
|
-
CreateSubscriptionRequest: {
|
|
3558
|
-
/**
|
|
3559
|
-
* Order Id
|
|
3560
|
-
* @description Order ID (external ord_xxx format)
|
|
3561
|
-
*/
|
|
3562
|
-
order_id: string;
|
|
3563
|
-
/**
|
|
3564
|
-
* Company Id
|
|
3565
|
-
* @description Company ID
|
|
3566
|
-
*/
|
|
3567
|
-
company_id: number;
|
|
3568
|
-
/**
|
|
3569
|
-
* Gateway
|
|
3570
|
-
* @description Payment gateway (stripe, razorpay, etc)
|
|
3571
|
-
*/
|
|
3572
|
-
gateway: string;
|
|
3573
|
-
/**
|
|
3574
|
-
* Payment Method Id
|
|
3575
|
-
* @description Saved payment method ID (optional)
|
|
3576
|
-
*/
|
|
3577
|
-
payment_method_id?: string | null;
|
|
3578
|
-
/**
|
|
3579
|
-
* Save Payment Method
|
|
3580
|
-
* @description Save this payment method for future use
|
|
3581
|
-
* @default false
|
|
3582
|
-
*/
|
|
3583
|
-
save_payment_method: boolean;
|
|
3584
|
-
/**
|
|
3585
|
-
* Coupon Code
|
|
3586
|
-
* @description Coupon code to apply (optional)
|
|
3587
|
-
*/
|
|
3588
|
-
coupon_code?: string | null;
|
|
3589
|
-
/**
|
|
3590
|
-
* Return Url
|
|
3591
|
-
* @description URL to redirect after payment
|
|
3592
|
-
*/
|
|
3593
|
-
return_url?: string | null;
|
|
3594
|
-
};
|
|
3595
|
-
/** GenerateInvoiceRequest */
|
|
3596
|
-
GenerateInvoiceRequest: {
|
|
3597
|
-
/**
|
|
3598
|
-
* Order Id
|
|
3599
|
-
* @description Order ID
|
|
3600
|
-
*/
|
|
3601
|
-
order_id: number;
|
|
3602
|
-
/**
|
|
3603
|
-
* Company Id
|
|
3604
|
-
* @description Company ID
|
|
3605
|
-
*/
|
|
3606
|
-
company_id: number;
|
|
3607
|
-
};
|
|
3608
|
-
ErrorResponse: {
|
|
3609
|
-
/** @example about:blank */
|
|
3610
|
-
type?: string;
|
|
3611
|
-
/** @example GENERIC_ERROR */
|
|
3612
|
-
code?: string;
|
|
3613
|
-
/** @example Client Error */
|
|
3614
|
-
title?: string;
|
|
3615
|
-
/** @example 400 */
|
|
3616
|
-
status?: number;
|
|
3617
|
-
/** @example An error occurred */
|
|
3618
|
-
detail?: string;
|
|
3619
|
-
/** @example /v1/cart/items */
|
|
3620
|
-
instance?: string;
|
|
3621
|
-
extensions?: components["schemas"]["Extensions"];
|
|
3622
|
-
};
|
|
3623
|
-
StandardResponse_MergeCartResponseData_: {
|
|
3624
|
-
[key: string]: unknown;
|
|
3625
|
-
};
|
|
3626
|
-
/** GuestCheckRequest */
|
|
3627
|
-
GuestCheckRequest: {
|
|
3628
|
-
/** Email */
|
|
3629
|
-
email: string;
|
|
3630
|
-
/** Mobile Isd Code */
|
|
3631
|
-
mobile_isd_code: string;
|
|
3632
|
-
/** Mobile No */
|
|
3633
|
-
mobile_no: string;
|
|
3634
|
-
};
|
|
3635
|
-
/** WalletPaymentRequest */
|
|
3636
|
-
WalletPaymentRequest: {
|
|
3637
|
-
/**
|
|
3638
|
-
* Amount
|
|
3639
|
-
* @description Payment amount
|
|
3640
|
-
*/
|
|
3641
|
-
amount: number;
|
|
3642
|
-
/**
|
|
3643
|
-
* Currency
|
|
3644
|
-
* @description Currency code (e.g., USD)
|
|
3645
|
-
*/
|
|
3646
|
-
currency: string;
|
|
3647
|
-
/**
|
|
3648
|
-
* Order Id
|
|
3649
|
-
* @description Order ID from order_tbl
|
|
3650
|
-
*/
|
|
3651
|
-
order_id: string;
|
|
3652
|
-
};
|
|
3653
|
-
/** CouponUpdateRequest */
|
|
3654
|
-
CouponUpdateRequest: {
|
|
3655
|
-
/** Coupon Name */
|
|
3656
|
-
coupon_name?: string | null;
|
|
3657
|
-
/** Duration */
|
|
3658
|
-
duration?: string | null;
|
|
3659
|
-
/** Duration In Months */
|
|
3660
|
-
duration_in_months?: number | null;
|
|
3661
|
-
/** Amount Off */
|
|
3662
|
-
amount_off?: number | null;
|
|
3663
|
-
/** Currency */
|
|
3664
|
-
currency?: string | null;
|
|
3665
|
-
/** Percent Off */
|
|
3666
|
-
percent_off?: number | null;
|
|
3667
|
-
/**
|
|
3668
|
-
* Redeem From
|
|
3669
|
-
* @description Coupon valid from datetime (YYYY-MM-DD HH:MM:SS)
|
|
3534
|
+
* Redeem From
|
|
3535
|
+
* @description Coupon valid from datetime (YYYY-MM-DD HH:MM:SS)
|
|
3670
3536
|
*/
|
|
3671
3537
|
redeem_from?: string | null;
|
|
3672
3538
|
/**
|
|
@@ -3674,10 +3540,16 @@ export interface components {
|
|
|
3674
3540
|
* @description Coupon expiry datetime (YYYY-MM-DD HH:MM:SS)
|
|
3675
3541
|
*/
|
|
3676
3542
|
redeem_by?: string | null;
|
|
3677
|
-
/**
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3543
|
+
/**
|
|
3544
|
+
* Max Redemptions
|
|
3545
|
+
* @default 0
|
|
3546
|
+
*/
|
|
3547
|
+
max_redemptions: number;
|
|
3548
|
+
/**
|
|
3549
|
+
* Site Wide
|
|
3550
|
+
* @default true
|
|
3551
|
+
*/
|
|
3552
|
+
site_wide: boolean;
|
|
3681
3553
|
/** Applies To */
|
|
3682
3554
|
applies_to?: {
|
|
3683
3555
|
[key: string]: unknown;
|
|
@@ -3686,8 +3558,10 @@ export interface components {
|
|
|
3686
3558
|
coupon_data?: {
|
|
3687
3559
|
[key: string]: unknown;
|
|
3688
3560
|
} | null;
|
|
3561
|
+
/** Company Id */
|
|
3562
|
+
company_id: number;
|
|
3689
3563
|
/** Applicable Gateways */
|
|
3690
|
-
applicable_gateways
|
|
3564
|
+
applicable_gateways: string[];
|
|
3691
3565
|
/** Min Order Amount */
|
|
3692
3566
|
min_order_amount?: number | null;
|
|
3693
3567
|
};
|
|
@@ -3711,159 +3585,179 @@ export interface components {
|
|
|
3711
3585
|
*/
|
|
3712
3586
|
test_mode: boolean;
|
|
3713
3587
|
};
|
|
3714
|
-
/**
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
*/
|
|
3726
|
-
product_id: number;
|
|
3727
|
-
/** @example subscription */
|
|
3728
|
-
price_type: components["schemas"]["PriceType"];
|
|
3588
|
+
/**
|
|
3589
|
+
* InitiateTopupRequest
|
|
3590
|
+
* @description Request model for initiating wallet top-up
|
|
3591
|
+
*
|
|
3592
|
+
* Example:
|
|
3593
|
+
* {
|
|
3594
|
+
* "amount": 1000.00,
|
|
3595
|
+
* "company_id": 5
|
|
3596
|
+
* }
|
|
3597
|
+
*/
|
|
3598
|
+
InitiateTopupRequest: {
|
|
3729
3599
|
/**
|
|
3730
3600
|
* Amount
|
|
3731
|
-
* @
|
|
3601
|
+
* @description Top-up amount (must be positive)
|
|
3732
3602
|
*/
|
|
3733
3603
|
amount: number;
|
|
3734
|
-
/** @example USD */
|
|
3735
|
-
currency: components["schemas"]["Currency"];
|
|
3736
3604
|
/**
|
|
3737
|
-
*
|
|
3738
|
-
* @
|
|
3605
|
+
* Company Id
|
|
3606
|
+
* @description Company ID
|
|
3739
3607
|
*/
|
|
3740
|
-
|
|
3608
|
+
company_id: number;
|
|
3609
|
+
};
|
|
3610
|
+
/** GuestCheckRequest */
|
|
3611
|
+
GuestCheckRequest: {
|
|
3612
|
+
/** Email */
|
|
3613
|
+
email: string;
|
|
3614
|
+
/** Mobile Isd Code */
|
|
3615
|
+
mobile_isd_code: string;
|
|
3616
|
+
/** Mobile No */
|
|
3617
|
+
mobile_no: string;
|
|
3618
|
+
};
|
|
3619
|
+
/**
|
|
3620
|
+
* SyncCustomerRequest
|
|
3621
|
+
* @description Request to sync customer to payment gateway
|
|
3622
|
+
*/
|
|
3623
|
+
SyncCustomerRequest: {
|
|
3741
3624
|
/**
|
|
3742
|
-
*
|
|
3743
|
-
* @
|
|
3744
|
-
* @example false
|
|
3625
|
+
* Gateway
|
|
3626
|
+
* @description Gateway (stripe, razorpay, paypal, athmovil)
|
|
3745
3627
|
*/
|
|
3746
|
-
|
|
3747
|
-
/** @example month */
|
|
3748
|
-
interval?: components["schemas"]["Interval"] | null;
|
|
3628
|
+
gateway: string;
|
|
3749
3629
|
/**
|
|
3750
|
-
*
|
|
3751
|
-
* @
|
|
3630
|
+
* Company Id
|
|
3631
|
+
* @description Company ID (required for gateway config lookup)
|
|
3752
3632
|
*/
|
|
3753
|
-
|
|
3633
|
+
company_id: number;
|
|
3754
3634
|
/**
|
|
3755
|
-
*
|
|
3756
|
-
* @
|
|
3757
|
-
* @example 0
|
|
3635
|
+
* Email
|
|
3636
|
+
* @description Email to sync (defaults to current user)
|
|
3758
3637
|
*/
|
|
3759
|
-
|
|
3638
|
+
email?: string | null;
|
|
3760
3639
|
/**
|
|
3761
|
-
*
|
|
3762
|
-
* @
|
|
3640
|
+
* Force Create
|
|
3641
|
+
* @description Force create new customer even if exists
|
|
3642
|
+
* @default false
|
|
3763
3643
|
*/
|
|
3764
|
-
|
|
3644
|
+
force_create: boolean;
|
|
3645
|
+
};
|
|
3646
|
+
/** BuyNowRequest */
|
|
3647
|
+
BuyNowRequest: {
|
|
3648
|
+
/** Company Id */
|
|
3649
|
+
company_id: number;
|
|
3650
|
+
/** Product Id */
|
|
3651
|
+
product_id: number;
|
|
3652
|
+
/** Product Pricing Id */
|
|
3653
|
+
product_pricing_id: number;
|
|
3654
|
+
/** Quantity */
|
|
3655
|
+
quantity: number;
|
|
3656
|
+
};
|
|
3657
|
+
StandardResponse_MergeCartResponseData_: {
|
|
3658
|
+
[key: string]: unknown;
|
|
3659
|
+
};
|
|
3660
|
+
/** CartItemRequest */
|
|
3661
|
+
CartItemRequest: {
|
|
3662
|
+
/** Items */
|
|
3663
|
+
items: components["schemas"]["CartItem"][];
|
|
3664
|
+
};
|
|
3665
|
+
/** ProcessRefundRequest */
|
|
3666
|
+
ProcessRefundRequest: {
|
|
3765
3667
|
/**
|
|
3766
|
-
*
|
|
3767
|
-
* @
|
|
3668
|
+
* Payment Id
|
|
3669
|
+
* @description Payment ID to refund
|
|
3768
3670
|
*/
|
|
3769
|
-
|
|
3671
|
+
payment_id: string;
|
|
3770
3672
|
/**
|
|
3771
|
-
*
|
|
3772
|
-
* @
|
|
3673
|
+
* Company Id
|
|
3674
|
+
* @description Company ID
|
|
3773
3675
|
*/
|
|
3774
|
-
|
|
3676
|
+
company_id: number;
|
|
3775
3677
|
/**
|
|
3776
|
-
*
|
|
3777
|
-
* @
|
|
3678
|
+
* Refund Amount
|
|
3679
|
+
* @description Refund amount (None for full refund)
|
|
3778
3680
|
*/
|
|
3779
|
-
|
|
3681
|
+
refund_amount?: number | null;
|
|
3780
3682
|
/**
|
|
3781
|
-
*
|
|
3782
|
-
* @description
|
|
3783
|
-
* @default false
|
|
3784
|
-
* @example false
|
|
3683
|
+
* Reason
|
|
3684
|
+
* @description Refund reason
|
|
3785
3685
|
*/
|
|
3786
|
-
|
|
3686
|
+
reason?: string | null;
|
|
3787
3687
|
};
|
|
3788
|
-
/**
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3688
|
+
/** CartItem */
|
|
3689
|
+
CartItem: {
|
|
3690
|
+
/** Product Id */
|
|
3691
|
+
product_id: number;
|
|
3692
|
+
/** Product Pricing Id */
|
|
3693
|
+
product_pricing_id?: number | null;
|
|
3793
3694
|
/**
|
|
3794
|
-
*
|
|
3795
|
-
* @
|
|
3695
|
+
* Sub Product Id
|
|
3696
|
+
* @default 0
|
|
3796
3697
|
*/
|
|
3797
|
-
|
|
3698
|
+
sub_product_id: number | null;
|
|
3798
3699
|
/**
|
|
3799
|
-
*
|
|
3800
|
-
* @
|
|
3700
|
+
* Quantity
|
|
3701
|
+
* @default 1
|
|
3801
3702
|
*/
|
|
3802
|
-
|
|
3703
|
+
quantity: number | null;
|
|
3704
|
+
};
|
|
3705
|
+
/** CreateSubscriptionRequest */
|
|
3706
|
+
CreateSubscriptionRequest: {
|
|
3803
3707
|
/**
|
|
3804
|
-
*
|
|
3805
|
-
* @description
|
|
3708
|
+
* Order Id
|
|
3709
|
+
* @description Order ID (external ord_xxx format)
|
|
3806
3710
|
*/
|
|
3807
|
-
|
|
3711
|
+
order_id: string;
|
|
3808
3712
|
/**
|
|
3809
|
-
*
|
|
3810
|
-
* @description
|
|
3713
|
+
* Company Id
|
|
3714
|
+
* @description Company ID
|
|
3811
3715
|
*/
|
|
3812
|
-
|
|
3716
|
+
company_id: number;
|
|
3813
3717
|
/**
|
|
3814
|
-
*
|
|
3815
|
-
* @description
|
|
3718
|
+
* Gateway
|
|
3719
|
+
* @description Payment gateway (stripe, razorpay, etc)
|
|
3816
3720
|
*/
|
|
3817
|
-
|
|
3721
|
+
gateway: string;
|
|
3818
3722
|
/**
|
|
3819
|
-
*
|
|
3820
|
-
* @description
|
|
3723
|
+
* Payment Method Id
|
|
3724
|
+
* @description Saved payment method ID (optional)
|
|
3821
3725
|
*/
|
|
3822
|
-
|
|
3726
|
+
payment_method_id?: string | null;
|
|
3823
3727
|
/**
|
|
3824
|
-
*
|
|
3825
|
-
* @description
|
|
3728
|
+
* Save Payment Method
|
|
3729
|
+
* @description Save this payment method for future use
|
|
3730
|
+
* @default false
|
|
3826
3731
|
*/
|
|
3827
|
-
|
|
3732
|
+
save_payment_method: boolean;
|
|
3828
3733
|
/**
|
|
3829
|
-
*
|
|
3830
|
-
* @description
|
|
3734
|
+
* Coupon Code
|
|
3735
|
+
* @description Coupon code to apply (optional)
|
|
3831
3736
|
*/
|
|
3832
|
-
|
|
3737
|
+
coupon_code?: string | null;
|
|
3833
3738
|
/**
|
|
3834
|
-
*
|
|
3835
|
-
* @description
|
|
3739
|
+
* Return Url
|
|
3740
|
+
* @description URL to redirect after payment
|
|
3836
3741
|
*/
|
|
3837
|
-
|
|
3742
|
+
return_url?: string | null;
|
|
3743
|
+
};
|
|
3744
|
+
/** WalletPaymentRequest */
|
|
3745
|
+
WalletPaymentRequest: {
|
|
3838
3746
|
/**
|
|
3839
|
-
*
|
|
3840
|
-
* @description
|
|
3747
|
+
* Amount
|
|
3748
|
+
* @description Payment amount
|
|
3841
3749
|
*/
|
|
3842
|
-
|
|
3750
|
+
amount: number;
|
|
3843
3751
|
/**
|
|
3844
|
-
*
|
|
3845
|
-
* @description
|
|
3752
|
+
* Currency
|
|
3753
|
+
* @description Currency code (e.g., USD)
|
|
3846
3754
|
*/
|
|
3847
|
-
|
|
3848
|
-
};
|
|
3849
|
-
/**
|
|
3850
|
-
* Interval
|
|
3851
|
-
* @enum {string}
|
|
3852
|
-
*/
|
|
3853
|
-
Interval: "day" | "week" | "month" | "year";
|
|
3854
|
-
/** AttachGuestDetailsRequest */
|
|
3855
|
-
AttachGuestDetailsRequest: {
|
|
3856
|
-
guest_details: components["schemas"]["GuestDetails"];
|
|
3857
|
-
};
|
|
3858
|
-
/** OrderCreateRequest */
|
|
3859
|
-
OrderCreateRequest: {
|
|
3860
|
-
/** Company Id */
|
|
3861
|
-
company_id: number;
|
|
3755
|
+
currency: string;
|
|
3862
3756
|
/**
|
|
3863
|
-
*
|
|
3864
|
-
* @description
|
|
3757
|
+
* Order Id
|
|
3758
|
+
* @description Order ID from order_tbl
|
|
3865
3759
|
*/
|
|
3866
|
-
|
|
3760
|
+
order_id: string;
|
|
3867
3761
|
};
|
|
3868
3762
|
/** SendInvoiceRequest */
|
|
3869
3763
|
SendInvoiceRequest: {
|
|
@@ -3873,32 +3767,15 @@ export interface components {
|
|
|
3873
3767
|
*/
|
|
3874
3768
|
recipient_email: string;
|
|
3875
3769
|
};
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
};
|
|
3879
|
-
/** CancelOfflineOrderRequest */
|
|
3880
|
-
CancelOfflineOrderRequest: {
|
|
3881
|
-
/**
|
|
3882
|
-
* User Remark
|
|
3883
|
-
* @description User remark for cancellation
|
|
3884
|
-
*/
|
|
3885
|
-
user_remark?: string | null;
|
|
3886
|
-
/**
|
|
3887
|
-
* Admin Remark
|
|
3888
|
-
* @description Admin remark for cancellation
|
|
3889
|
-
*/
|
|
3890
|
-
admin_remark?: string | null;
|
|
3891
|
-
};
|
|
3892
|
-
/** BuyNowRequest */
|
|
3893
|
-
BuyNowRequest: {
|
|
3770
|
+
/** OrderCreateRequest */
|
|
3771
|
+
OrderCreateRequest: {
|
|
3894
3772
|
/** Company Id */
|
|
3895
3773
|
company_id: number;
|
|
3896
|
-
/**
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
quantity: number;
|
|
3774
|
+
/**
|
|
3775
|
+
* Recovery Token
|
|
3776
|
+
* @description Cart recovery token from abandoned cart email link (enables recovery attribution)
|
|
3777
|
+
*/
|
|
3778
|
+
recovery_token?: string | null;
|
|
3902
3779
|
};
|
|
3903
3780
|
/** OfflineStatusUpdateRequest */
|
|
3904
3781
|
OfflineStatusUpdateRequest: {
|
|
@@ -3918,142 +3795,80 @@ export interface components {
|
|
|
3918
3795
|
*/
|
|
3919
3796
|
user_remark?: string | null;
|
|
3920
3797
|
};
|
|
3921
|
-
/**
|
|
3922
|
-
|
|
3923
|
-
/**
|
|
3924
|
-
* Amount
|
|
3925
|
-
* @description Payment amount
|
|
3926
|
-
*/
|
|
3927
|
-
amount: number;
|
|
3928
|
-
/**
|
|
3929
|
-
* Currency
|
|
3930
|
-
* @description Currency code (e.g., USD)
|
|
3931
|
-
*/
|
|
3932
|
-
currency: string;
|
|
3798
|
+
/** PriceRequest */
|
|
3799
|
+
PriceRequest: {
|
|
3933
3800
|
/**
|
|
3934
3801
|
* Company Id
|
|
3935
|
-
* @description Company ID
|
|
3802
|
+
* @description Company ID for gateway configuration
|
|
3803
|
+
* @example 1
|
|
3936
3804
|
*/
|
|
3937
3805
|
company_id: number;
|
|
3938
3806
|
/**
|
|
3939
|
-
*
|
|
3940
|
-
* @
|
|
3941
|
-
*/
|
|
3942
|
-
order_id: string;
|
|
3943
|
-
};
|
|
3944
|
-
/** CouponCreateRequest */
|
|
3945
|
-
CouponCreateRequest: {
|
|
3946
|
-
/** Coupon Name */
|
|
3947
|
-
coupon_name: string;
|
|
3948
|
-
/** Coupon Code */
|
|
3949
|
-
coupon_code: string;
|
|
3950
|
-
/** Duration */
|
|
3951
|
-
duration?: string | null;
|
|
3952
|
-
/**
|
|
3953
|
-
* Duration In Months
|
|
3954
|
-
* @default 0
|
|
3955
|
-
*/
|
|
3956
|
-
duration_in_months: number;
|
|
3957
|
-
/** Amount Off */
|
|
3958
|
-
amount_off?: number | null;
|
|
3959
|
-
/** Currency */
|
|
3960
|
-
currency?: string | null;
|
|
3961
|
-
/** Percent Off */
|
|
3962
|
-
percent_off?: number | null;
|
|
3963
|
-
/**
|
|
3964
|
-
* Redeem From
|
|
3965
|
-
* @description Coupon valid from datetime (YYYY-MM-DD HH:MM:SS)
|
|
3966
|
-
*/
|
|
3967
|
-
redeem_from?: string | null;
|
|
3968
|
-
/**
|
|
3969
|
-
* Redeem By
|
|
3970
|
-
* @description Coupon expiry datetime (YYYY-MM-DD HH:MM:SS)
|
|
3971
|
-
*/
|
|
3972
|
-
redeem_by?: string | null;
|
|
3973
|
-
/**
|
|
3974
|
-
* Max Redemptions
|
|
3975
|
-
* @default 0
|
|
3807
|
+
* Product Id
|
|
3808
|
+
* @example 132
|
|
3976
3809
|
*/
|
|
3977
|
-
|
|
3810
|
+
product_id: number;
|
|
3811
|
+
/** @example subscription */
|
|
3812
|
+
price_type: components["schemas"]["PriceType"];
|
|
3978
3813
|
/**
|
|
3979
|
-
*
|
|
3980
|
-
* @
|
|
3814
|
+
* Amount
|
|
3815
|
+
* @example 52
|
|
3981
3816
|
*/
|
|
3982
|
-
|
|
3983
|
-
/**
|
|
3984
|
-
|
|
3985
|
-
[key: string]: unknown;
|
|
3986
|
-
} | null;
|
|
3987
|
-
/** Coupon Data */
|
|
3988
|
-
coupon_data?: {
|
|
3989
|
-
[key: string]: unknown;
|
|
3990
|
-
} | null;
|
|
3991
|
-
/** Company Id */
|
|
3992
|
-
company_id: number;
|
|
3993
|
-
/** Applicable Gateways */
|
|
3994
|
-
applicable_gateways: string[];
|
|
3995
|
-
/** Min Order Amount */
|
|
3996
|
-
min_order_amount?: number | null;
|
|
3997
|
-
};
|
|
3998
|
-
/**
|
|
3999
|
-
* SyncCustomerRequest
|
|
4000
|
-
* @description Request to sync customer to payment gateway
|
|
4001
|
-
*/
|
|
4002
|
-
SyncCustomerRequest: {
|
|
3817
|
+
amount: number;
|
|
3818
|
+
/** @example USD */
|
|
3819
|
+
currency: components["schemas"]["Currency"];
|
|
4003
3820
|
/**
|
|
4004
3821
|
* Gateway
|
|
4005
|
-
* @
|
|
3822
|
+
* @example stripe
|
|
4006
3823
|
*/
|
|
4007
|
-
gateway
|
|
3824
|
+
gateway?: string | null;
|
|
4008
3825
|
/**
|
|
4009
|
-
*
|
|
4010
|
-
* @
|
|
3826
|
+
* Is Live
|
|
3827
|
+
* @default false
|
|
3828
|
+
* @example false
|
|
4011
3829
|
*/
|
|
4012
|
-
|
|
3830
|
+
is_live: boolean;
|
|
3831
|
+
/** @example month */
|
|
3832
|
+
interval?: components["schemas"]["Interval"] | null;
|
|
4013
3833
|
/**
|
|
4014
|
-
*
|
|
4015
|
-
* @
|
|
3834
|
+
* Interval Count
|
|
3835
|
+
* @example 1
|
|
4016
3836
|
*/
|
|
4017
|
-
|
|
3837
|
+
interval_count?: number | null;
|
|
4018
3838
|
/**
|
|
4019
|
-
*
|
|
4020
|
-
* @
|
|
4021
|
-
* @
|
|
3839
|
+
* Trial Period Days
|
|
3840
|
+
* @default 0
|
|
3841
|
+
* @example 0
|
|
4022
3842
|
*/
|
|
4023
|
-
|
|
4024
|
-
};
|
|
4025
|
-
/** ApplyCouponRequest */
|
|
4026
|
-
ApplyCouponRequest: {
|
|
4027
|
-
/** Coupon Code */
|
|
4028
|
-
coupon_code: string;
|
|
4029
|
-
};
|
|
4030
|
-
/**
|
|
4031
|
-
* InitiateTopupRequest
|
|
4032
|
-
* @description Request model for initiating wallet top-up
|
|
4033
|
-
*
|
|
4034
|
-
* Example:
|
|
4035
|
-
* {
|
|
4036
|
-
* "amount": 1000.00,
|
|
4037
|
-
* "company_id": 5
|
|
4038
|
-
* }
|
|
4039
|
-
*/
|
|
4040
|
-
InitiateTopupRequest: {
|
|
3843
|
+
trial_period_days: number | null;
|
|
4041
3844
|
/**
|
|
4042
|
-
* Amount
|
|
4043
|
-
* @
|
|
3845
|
+
* Initial Amount
|
|
3846
|
+
* @example 0
|
|
4044
3847
|
*/
|
|
4045
|
-
|
|
3848
|
+
initial_amount?: number | null;
|
|
4046
3849
|
/**
|
|
4047
|
-
*
|
|
4048
|
-
* @
|
|
3850
|
+
* Compare Price
|
|
3851
|
+
* @example 0
|
|
4049
3852
|
*/
|
|
4050
|
-
|
|
3853
|
+
compare_price?: number | null;
|
|
3854
|
+
/**
|
|
3855
|
+
* Object Id
|
|
3856
|
+
* @example 0
|
|
3857
|
+
*/
|
|
3858
|
+
object_id?: number | null;
|
|
3859
|
+
/**
|
|
3860
|
+
* Module Id
|
|
3861
|
+
* @example 0
|
|
3862
|
+
*/
|
|
3863
|
+
module_id?: number | null;
|
|
3864
|
+
/**
|
|
3865
|
+
* Requires Payment Method Upfront
|
|
3866
|
+
* @description False=Gateway-managed trial (send trial to gateway), True=App-managed trial (don't send trial to gateway)
|
|
3867
|
+
* @default false
|
|
3868
|
+
* @example false
|
|
3869
|
+
*/
|
|
3870
|
+
requires_payment_method_upfront: boolean;
|
|
4051
3871
|
};
|
|
4052
|
-
/**
|
|
4053
|
-
* Currency
|
|
4054
|
-
* @enum {string}
|
|
4055
|
-
*/
|
|
4056
|
-
Currency: "USD" | "INR" | "EUR" | "GBP";
|
|
4057
3872
|
/** AdminStatusVerifyRequest */
|
|
4058
3873
|
AdminStatusVerifyRequest: {
|
|
4059
3874
|
/**
|
|
@@ -4067,6 +3882,19 @@ export interface components {
|
|
|
4067
3882
|
*/
|
|
4068
3883
|
admin_remark?: string | null;
|
|
4069
3884
|
};
|
|
3885
|
+
/** AddPaymentMethodRequest */
|
|
3886
|
+
AddPaymentMethodRequest: {
|
|
3887
|
+
/**
|
|
3888
|
+
* Payment Method Token
|
|
3889
|
+
* @description Payment method token from gateway
|
|
3890
|
+
*/
|
|
3891
|
+
payment_method_token: string;
|
|
3892
|
+
/**
|
|
3893
|
+
* Gateway
|
|
3894
|
+
* @description Payment gateway (stripe, razorpay, etc)
|
|
3895
|
+
*/
|
|
3896
|
+
gateway: string;
|
|
3897
|
+
};
|
|
4070
3898
|
/** WalletCreditDebitRequest */
|
|
4071
3899
|
WalletCreditDebitRequest: {
|
|
4072
3900
|
/**
|
|
@@ -4090,25 +3918,38 @@ export interface components {
|
|
|
4090
3918
|
*/
|
|
4091
3919
|
reason: string;
|
|
4092
3920
|
};
|
|
4093
|
-
|
|
4094
|
-
|
|
3921
|
+
ErrorResponse: {
|
|
3922
|
+
/** @example about:blank */
|
|
3923
|
+
type?: string;
|
|
3924
|
+
/** @example GENERIC_ERROR */
|
|
3925
|
+
code?: string;
|
|
3926
|
+
/** @example Client Error */
|
|
3927
|
+
title?: string;
|
|
3928
|
+
/** @example 400 */
|
|
3929
|
+
status?: number;
|
|
3930
|
+
/** @example An error occurred */
|
|
3931
|
+
detail?: string;
|
|
3932
|
+
/** @example /v1/cart/items */
|
|
3933
|
+
instance?: string;
|
|
3934
|
+
extensions?: components["schemas"]["Extensions"];
|
|
4095
3935
|
};
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
/**
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
3936
|
+
Extensions: {
|
|
3937
|
+
/** @example GENERIC_ERROR */
|
|
3938
|
+
message_code?: string;
|
|
3939
|
+
/** @example [] */
|
|
3940
|
+
invalid_params?: components["schemas"]["InvalidParam"][];
|
|
3941
|
+
extra_data?: Record<string, never> | null;
|
|
3942
|
+
/** @example Detailed debug information */
|
|
3943
|
+
debug?: string | null;
|
|
3944
|
+
};
|
|
3945
|
+
InvalidParam: {
|
|
3946
|
+
/** @example items[0].quantity */
|
|
3947
|
+
field?: string;
|
|
3948
|
+
/** @example Input should be greater than or equal to 1 */
|
|
3949
|
+
error?: string;
|
|
3950
|
+
};
|
|
3951
|
+
StandardResponse_CartItemDetail_: {
|
|
3952
|
+
[key: string]: unknown;
|
|
4112
3953
|
};
|
|
4113
3954
|
/** SavePaymentMethodRequest */
|
|
4114
3955
|
SavePaymentMethodRequest: {
|
|
@@ -4159,6 +4000,165 @@ export interface components {
|
|
|
4159
4000
|
*/
|
|
4160
4001
|
is_default: boolean;
|
|
4161
4002
|
};
|
|
4003
|
+
/** CartUpdateRequest */
|
|
4004
|
+
CartUpdateRequest: {
|
|
4005
|
+
/** Quantity */
|
|
4006
|
+
quantity: number;
|
|
4007
|
+
};
|
|
4008
|
+
StandardResponse_DeleteCartItemResponseData_: {
|
|
4009
|
+
[key: string]: unknown;
|
|
4010
|
+
};
|
|
4011
|
+
/** CouponUpdateRequest */
|
|
4012
|
+
CouponUpdateRequest: {
|
|
4013
|
+
/** Coupon Name */
|
|
4014
|
+
coupon_name?: string | null;
|
|
4015
|
+
/** Duration */
|
|
4016
|
+
duration?: string | null;
|
|
4017
|
+
/** Duration In Months */
|
|
4018
|
+
duration_in_months?: number | null;
|
|
4019
|
+
/** Amount Off */
|
|
4020
|
+
amount_off?: number | null;
|
|
4021
|
+
/** Currency */
|
|
4022
|
+
currency?: string | null;
|
|
4023
|
+
/** Percent Off */
|
|
4024
|
+
percent_off?: number | null;
|
|
4025
|
+
/**
|
|
4026
|
+
* Redeem From
|
|
4027
|
+
* @description Coupon valid from datetime (YYYY-MM-DD HH:MM:SS)
|
|
4028
|
+
*/
|
|
4029
|
+
redeem_from?: string | null;
|
|
4030
|
+
/**
|
|
4031
|
+
* Redeem By
|
|
4032
|
+
* @description Coupon expiry datetime (YYYY-MM-DD HH:MM:SS)
|
|
4033
|
+
*/
|
|
4034
|
+
redeem_by?: string | null;
|
|
4035
|
+
/** Max Redemptions */
|
|
4036
|
+
max_redemptions?: number | null;
|
|
4037
|
+
/** Site Wide */
|
|
4038
|
+
site_wide?: boolean | null;
|
|
4039
|
+
/** Applies To */
|
|
4040
|
+
applies_to?: {
|
|
4041
|
+
[key: string]: unknown;
|
|
4042
|
+
} | null;
|
|
4043
|
+
/** Coupon Data */
|
|
4044
|
+
coupon_data?: {
|
|
4045
|
+
[key: string]: unknown;
|
|
4046
|
+
} | null;
|
|
4047
|
+
/** Applicable Gateways */
|
|
4048
|
+
applicable_gateways?: string[] | null;
|
|
4049
|
+
/** Min Order Amount */
|
|
4050
|
+
min_order_amount?: number | null;
|
|
4051
|
+
};
|
|
4052
|
+
/** InitPaymentRequest */
|
|
4053
|
+
InitPaymentRequest: {
|
|
4054
|
+
/**
|
|
4055
|
+
* Order Id
|
|
4056
|
+
* @description Order ID (external order_id like ord_xxx)
|
|
4057
|
+
*/
|
|
4058
|
+
order_id: string;
|
|
4059
|
+
/**
|
|
4060
|
+
* Company Id
|
|
4061
|
+
* @description Company ID
|
|
4062
|
+
*/
|
|
4063
|
+
company_id: number;
|
|
4064
|
+
/**
|
|
4065
|
+
* Gateway
|
|
4066
|
+
* @description Payment gateway (stripe, razorpay, paypal, etc)
|
|
4067
|
+
*/
|
|
4068
|
+
gateway: string;
|
|
4069
|
+
/**
|
|
4070
|
+
* Payment Method Id
|
|
4071
|
+
* @description Saved payment method ID (optional)
|
|
4072
|
+
*/
|
|
4073
|
+
payment_method_id?: string | null;
|
|
4074
|
+
/**
|
|
4075
|
+
* Save Payment Method
|
|
4076
|
+
* @description Save this payment method for future use
|
|
4077
|
+
* @default false
|
|
4078
|
+
*/
|
|
4079
|
+
save_payment_method: boolean;
|
|
4080
|
+
/**
|
|
4081
|
+
* Coupon Code
|
|
4082
|
+
* @description Coupon code to apply (optional)
|
|
4083
|
+
*/
|
|
4084
|
+
coupon_code?: string | null;
|
|
4085
|
+
/**
|
|
4086
|
+
* Return Url
|
|
4087
|
+
* @description URL to redirect after payment
|
|
4088
|
+
*/
|
|
4089
|
+
return_url?: string | null;
|
|
4090
|
+
};
|
|
4091
|
+
/** OfflinePaymentRequest */
|
|
4092
|
+
OfflinePaymentRequest: {
|
|
4093
|
+
/**
|
|
4094
|
+
* Amount
|
|
4095
|
+
* @description Payment amount
|
|
4096
|
+
*/
|
|
4097
|
+
amount: number;
|
|
4098
|
+
/**
|
|
4099
|
+
* Currency
|
|
4100
|
+
* @description Currency code (e.g., USD)
|
|
4101
|
+
*/
|
|
4102
|
+
currency: string;
|
|
4103
|
+
/**
|
|
4104
|
+
* Company Id
|
|
4105
|
+
* @description Company ID
|
|
4106
|
+
*/
|
|
4107
|
+
company_id: number;
|
|
4108
|
+
/**
|
|
4109
|
+
* Order Id
|
|
4110
|
+
* @description Order ID
|
|
4111
|
+
*/
|
|
4112
|
+
order_id: string;
|
|
4113
|
+
};
|
|
4114
|
+
/**
|
|
4115
|
+
* @example {
|
|
4116
|
+
* "status": "success",
|
|
4117
|
+
* "message": "Operation successful",
|
|
4118
|
+
* "message_code": "api_suc_20001",
|
|
4119
|
+
* "data": {},
|
|
4120
|
+
* "metadata": {
|
|
4121
|
+
* "timestamp": "2026-03-26T10:00:00.000Z",
|
|
4122
|
+
* "requestId": "07e22004-cb60-4dfc-bc9c-b6f99664dca1",
|
|
4123
|
+
* "traceId": "a9f1204c-bb82-41de-b234-7c3a9e120000",
|
|
4124
|
+
* "version": "v1",
|
|
4125
|
+
* "executionTime": 42,
|
|
4126
|
+
* "language": "en-US"
|
|
4127
|
+
* }
|
|
4128
|
+
* }
|
|
4129
|
+
*/
|
|
4130
|
+
StandardResponse: {
|
|
4131
|
+
/** @example success */
|
|
4132
|
+
status?: string;
|
|
4133
|
+
data?: Record<string, never> | null;
|
|
4134
|
+
/** @example Operation successful */
|
|
4135
|
+
message?: string | null;
|
|
4136
|
+
/** @example api_suc_20001 */
|
|
4137
|
+
message_code?: string | null;
|
|
4138
|
+
metadata?: Record<string, never> | null;
|
|
4139
|
+
error?: components["schemas"]["ErrorResponse"];
|
|
4140
|
+
};
|
|
4141
|
+
/**
|
|
4142
|
+
* Interval
|
|
4143
|
+
* @enum {string}
|
|
4144
|
+
*/
|
|
4145
|
+
Interval: "day" | "week" | "month" | "year";
|
|
4146
|
+
StandardResponse_CartItemResponseData_: {
|
|
4147
|
+
[key: string]: unknown;
|
|
4148
|
+
};
|
|
4149
|
+
/** VerifyPaymentRequest */
|
|
4150
|
+
VerifyPaymentRequest: {
|
|
4151
|
+
/**
|
|
4152
|
+
* Payment Id
|
|
4153
|
+
* @description Blezgo payment ID
|
|
4154
|
+
*/
|
|
4155
|
+
payment_id: string;
|
|
4156
|
+
/**
|
|
4157
|
+
* Gateway Payment Id
|
|
4158
|
+
* @description Gateway payment/transaction ID
|
|
4159
|
+
*/
|
|
4160
|
+
gateway_payment_id?: string | null;
|
|
4161
|
+
};
|
|
4162
4162
|
};
|
|
4163
4163
|
responses: never;
|
|
4164
4164
|
parameters: never;
|
|
@@ -16316,7 +16316,7 @@ export interface operations {
|
|
|
16316
16316
|
authorization?: string | null;
|
|
16317
16317
|
};
|
|
16318
16318
|
path: {
|
|
16319
|
-
user_id:
|
|
16319
|
+
user_id: string;
|
|
16320
16320
|
};
|
|
16321
16321
|
cookie?: never;
|
|
16322
16322
|
};
|