@blezgo/api-sdk 0.1.3 → 0.1.4
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 +180 -180
- package/dist/account/generated.d.ts.map +1 -1
- package/dist/activity/generated.d.ts +60 -60
- package/dist/activity/generated.d.ts.map +1 -1
- package/dist/addon/generated.d.ts +83 -83
- package/dist/addon/generated.d.ts.map +1 -1
- package/dist/admin/generated.d.ts +126 -126
- package/dist/admin/generated.d.ts.map +1 -1
- package/dist/affiliate/generated.d.ts +83 -83
- package/dist/affiliate/generated.d.ts.map +1 -1
- package/dist/analytics/generated.d.ts +30 -30
- package/dist/analytics/generated.d.ts.map +1 -1
- package/dist/announcements/generated.d.ts +64 -64
- package/dist/announcements/generated.d.ts.map +1 -1
- package/dist/apikeys/generated.d.ts +79 -79
- package/dist/apikeys/generated.d.ts.map +1 -1
- package/dist/assistance/generated.d.ts +30 -30
- 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 +204 -204
- package/dist/blog/generated.d.ts.map +1 -1
- package/dist/bundle/generated.d.ts +147 -147
- package/dist/bundle/generated.d.ts.map +1 -1
- package/dist/cache/generated.d.ts +33 -33
- package/dist/cache/generated.d.ts.map +1 -1
- package/dist/calendar/generated.d.ts +80 -80
- package/dist/calendar/generated.d.ts.map +1 -1
- package/dist/campaigns/generated.d.ts +198 -198
- package/dist/campaigns/generated.d.ts.map +1 -1
- package/dist/cart/generated.d.ts +40 -40
- package/dist/cart/generated.d.ts.map +1 -1
- package/dist/changelog/generated.d.ts +95 -95
- package/dist/changelog/generated.d.ts.map +1 -1
- package/dist/channel/generated.d.ts +251 -251
- package/dist/channel/generated.d.ts.map +1 -1
- package/dist/company/generated.d.ts +69 -69
- package/dist/company/generated.d.ts.map +1 -1
- package/dist/conference/generated.d.ts +166 -166
- package/dist/conference/generated.d.ts.map +1 -1
- package/dist/config/generated.d.ts +54 -54
- package/dist/config/generated.d.ts.map +1 -1
- package/dist/content/generated.d.ts +477 -477
- package/dist/content/generated.d.ts.map +1 -1
- package/dist/cookies/generated.d.ts +77 -77
- package/dist/cookies/generated.d.ts.map +1 -1
- package/dist/courses/generated.d.ts +397 -397
- package/dist/courses/generated.d.ts.map +1 -1
- package/dist/custom/generated.d.ts +99 -99
- package/dist/custom/generated.d.ts.map +1 -1
- package/dist/dashboard/generated.d.ts +177 -177
- package/dist/dashboard/generated.d.ts.map +1 -1
- package/dist/elasticsearch/generated.d.ts +30 -30
- package/dist/elasticsearch/generated.d.ts.map +1 -1
- package/dist/enrollments/generated.d.ts +30 -30
- package/dist/enrollments/generated.d.ts.map +1 -1
- package/dist/errors/generated.d.ts +30 -30
- package/dist/errors/generated.d.ts.map +1 -1
- package/dist/eventconfig/generated.d.ts +94 -94
- package/dist/eventconfig/generated.d.ts.map +1 -1
- package/dist/funnels/generated.d.ts +146 -146
- package/dist/funnels/generated.d.ts.map +1 -1
- package/dist/gamification/generated.d.ts +154 -154
- package/dist/gamification/generated.d.ts.map +1 -1
- package/dist/impersonation/generated.d.ts +71 -71
- package/dist/impersonation/generated.d.ts.map +1 -1
- package/dist/inbox/generated.d.ts +140 -140
- package/dist/inbox/generated.d.ts.map +1 -1
- package/dist/internal/generated.d.ts +30 -30
- package/dist/internal/generated.d.ts.map +1 -1
- package/dist/internationalization/generated.d.ts +30 -30
- package/dist/internationalization/generated.d.ts.map +1 -1
- package/dist/invitations/generated.d.ts +123 -123
- package/dist/invitations/generated.d.ts.map +1 -1
- package/dist/meetings/generated.d.ts +337 -337
- package/dist/meetings/generated.d.ts.map +1 -1
- package/dist/metas/generated.d.ts +170 -170
- package/dist/metas/generated.d.ts.map +1 -1
- package/dist/notification/generated.d.ts +382 -382
- package/dist/notification/generated.d.ts.map +1 -1
- package/dist/notifications/generated.d.ts +30 -30
- package/dist/notifications/generated.d.ts.map +1 -1
- package/dist/onboarding/generated.d.ts +106 -106
- package/dist/onboarding/generated.d.ts.map +1 -1
- package/dist/packages/generated.d.ts +83 -83
- package/dist/packages/generated.d.ts.map +1 -1
- package/dist/payments/generated.d.ts +502 -502
- package/dist/payments/generated.d.ts.map +1 -1
- package/dist/payouts/generated.d.ts +30 -30
- package/dist/payouts/generated.d.ts.map +1 -1
- package/dist/plans/generated.d.ts +470 -470
- package/dist/plans/generated.d.ts.map +1 -1
- package/dist/pricing/generated.d.ts +87 -87
- package/dist/pricing/generated.d.ts.map +1 -1
- package/dist/products/generated.d.ts +552 -552
- package/dist/products/generated.d.ts.map +1 -1
- package/dist/profile/generated.d.ts +272 -272
- package/dist/profile/generated.d.ts.map +1 -1
- package/dist/reasons/generated.d.ts +78 -78
- package/dist/reasons/generated.d.ts.map +1 -1
- package/dist/registration/generated.d.ts +145 -145
- package/dist/registration/generated.d.ts.map +1 -1
- package/dist/reviews/generated.d.ts +47 -47
- package/dist/reviews/generated.d.ts.map +1 -1
- package/dist/role/generated.d.ts +217 -217
- package/dist/role/generated.d.ts.map +1 -1
- package/dist/scheduling/generated.d.ts +139 -139
- package/dist/scheduling/generated.d.ts.map +1 -1
- package/dist/services/generated.d.ts +989 -989
- package/dist/services/generated.d.ts.map +1 -1
- package/dist/sessions/generated.d.ts +334 -334
- package/dist/sessions/generated.d.ts.map +1 -1
- package/dist/spaces/generated.d.ts +390 -390
- package/dist/spaces/generated.d.ts.map +1 -1
- package/dist/storefront/generated.d.ts +30 -30
- package/dist/storefront/generated.d.ts.map +1 -1
- package/dist/support/generated.d.ts +1465 -1465
- package/dist/support/generated.d.ts.map +1 -1
- package/dist/sync/generated.d.ts +157 -157
- package/dist/sync/generated.d.ts.map +1 -1
- package/dist/tenant/generated.d.ts +562 -562
- package/dist/tenant/generated.d.ts.map +1 -1
- package/dist/testimonials/generated.d.ts +67 -67
- package/dist/testimonials/generated.d.ts.map +1 -1
- package/dist/tests/generated.d.ts +619 -619
- package/dist/tests/generated.d.ts.map +1 -1
- package/dist/tokens/generated.d.ts +59 -59
- package/dist/tokens/generated.d.ts.map +1 -1
- package/dist/uploads/generated.d.ts +65 -65
- 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 +123 -117
- package/dist/user/generated.d.ts.map +1 -1
- package/dist/webinars/generated.d.ts +298 -298
- package/dist/webinars/generated.d.ts.map +1 -1
- package/package.json +1 -1
- package/test-commit.txt +1 -0
|
@@ -3241,25 +3241,35 @@ export interface paths {
|
|
|
3241
3241
|
export type webhooks = Record<string, never>;
|
|
3242
3242
|
export interface components {
|
|
3243
3243
|
schemas: {
|
|
3244
|
-
/**
|
|
3245
|
-
|
|
3244
|
+
/** ProcessRefundRequest */
|
|
3245
|
+
ProcessRefundRequest: {
|
|
3246
3246
|
/**
|
|
3247
|
-
*
|
|
3248
|
-
* @description
|
|
3249
|
-
* @default true
|
|
3247
|
+
* Payment Id
|
|
3248
|
+
* @description Payment ID to refund
|
|
3250
3249
|
*/
|
|
3251
|
-
|
|
3250
|
+
payment_id: string;
|
|
3251
|
+
/**
|
|
3252
|
+
* Company Id
|
|
3253
|
+
* @description Company ID
|
|
3254
|
+
*/
|
|
3255
|
+
company_id: number;
|
|
3256
|
+
/**
|
|
3257
|
+
* Refund Amount
|
|
3258
|
+
* @description Refund amount (None for full refund)
|
|
3259
|
+
*/
|
|
3260
|
+
refund_amount?: number | null;
|
|
3252
3261
|
/**
|
|
3253
3262
|
* Reason
|
|
3254
|
-
* @description
|
|
3263
|
+
* @description Refund reason
|
|
3255
3264
|
*/
|
|
3256
3265
|
reason?: string | null;
|
|
3257
3266
|
};
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
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
|
+
};
|
|
3263
3273
|
/** InitPaymentRequest */
|
|
3264
3274
|
InitPaymentRequest: {
|
|
3265
3275
|
/**
|
|
@@ -3299,22 +3309,16 @@ export interface components {
|
|
|
3299
3309
|
*/
|
|
3300
3310
|
return_url?: string | null;
|
|
3301
3311
|
};
|
|
3302
|
-
/** ApplyCouponRequest */
|
|
3303
|
-
ApplyCouponRequest: {
|
|
3304
|
-
/** Coupon Code */
|
|
3305
|
-
coupon_code: string;
|
|
3306
|
-
};
|
|
3307
|
-
StandardResponse_CartResponseData_: {
|
|
3308
|
-
[key: string]: unknown;
|
|
3309
|
-
};
|
|
3310
3312
|
/**
|
|
3311
|
-
*
|
|
3312
|
-
* @description
|
|
3313
|
-
*
|
|
3313
|
+
* CouponAdminCreateRequest
|
|
3314
|
+
* @description Admin-specific coupon creation request with optional owner parameter.
|
|
3315
|
+
* Allows admins to create coupons on behalf of other users.
|
|
3314
3316
|
*/
|
|
3315
|
-
|
|
3317
|
+
CouponAdminCreateRequest: {
|
|
3316
3318
|
/** Coupon Name */
|
|
3317
3319
|
coupon_name: string;
|
|
3320
|
+
/** Coupon Code */
|
|
3321
|
+
coupon_code: string;
|
|
3318
3322
|
/** Duration */
|
|
3319
3323
|
duration?: string | null;
|
|
3320
3324
|
/**
|
|
@@ -3368,163 +3372,174 @@ export interface components {
|
|
|
3368
3372
|
*/
|
|
3369
3373
|
owner?: number | null;
|
|
3370
3374
|
};
|
|
3371
|
-
/**
|
|
3372
|
-
|
|
3373
|
-
/**
|
|
3374
|
-
* Company Id
|
|
3375
|
-
* @description Company ID for gateway configuration
|
|
3376
|
-
* @example 1
|
|
3377
|
-
*/
|
|
3378
|
-
company_id: number;
|
|
3379
|
-
/**
|
|
3380
|
-
* Product Id
|
|
3381
|
-
* @example 132
|
|
3382
|
-
*/
|
|
3383
|
-
product_id: number;
|
|
3384
|
-
/** @example subscription */
|
|
3385
|
-
price_type: components["schemas"]["PriceType"];
|
|
3375
|
+
/** VerifyPaymentRequest */
|
|
3376
|
+
VerifyPaymentRequest: {
|
|
3386
3377
|
/**
|
|
3387
|
-
*
|
|
3388
|
-
* @
|
|
3378
|
+
* Payment Id
|
|
3379
|
+
* @description Blezgo payment ID
|
|
3389
3380
|
*/
|
|
3390
|
-
|
|
3391
|
-
/** @example USD */
|
|
3392
|
-
currency: components["schemas"]["Currency"];
|
|
3381
|
+
payment_id: string;
|
|
3393
3382
|
/**
|
|
3394
|
-
* Gateway
|
|
3395
|
-
* @
|
|
3383
|
+
* Gateway Payment Id
|
|
3384
|
+
* @description Gateway payment/transaction ID
|
|
3396
3385
|
*/
|
|
3397
|
-
|
|
3386
|
+
gateway_payment_id?: string | null;
|
|
3387
|
+
};
|
|
3388
|
+
/**
|
|
3389
|
+
* @example {
|
|
3390
|
+
* "status": "success",
|
|
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
|
+
*/
|
|
3404
|
+
StandardResponse: {
|
|
3405
|
+
/** @example success */
|
|
3406
|
+
status?: string;
|
|
3407
|
+
data?: Record<string, never> | null;
|
|
3408
|
+
/** @example Operation successful */
|
|
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;
|
|
3417
|
+
};
|
|
3418
|
+
/** CancelSubscriptionRequest */
|
|
3419
|
+
CancelSubscriptionRequest: {
|
|
3398
3420
|
/**
|
|
3399
|
-
*
|
|
3400
|
-
* @
|
|
3401
|
-
* @
|
|
3421
|
+
* Cancel At Period End
|
|
3422
|
+
* @description Cancel at end of billing period
|
|
3423
|
+
* @default true
|
|
3402
3424
|
*/
|
|
3403
|
-
|
|
3404
|
-
/** @example month */
|
|
3405
|
-
interval?: components["schemas"]["Interval"] | null;
|
|
3425
|
+
cancel_at_period_end: boolean;
|
|
3406
3426
|
/**
|
|
3407
|
-
*
|
|
3408
|
-
* @
|
|
3427
|
+
* Reason
|
|
3428
|
+
* @description Cancellation reason
|
|
3409
3429
|
*/
|
|
3410
|
-
|
|
3430
|
+
reason?: string | null;
|
|
3431
|
+
};
|
|
3432
|
+
/**
|
|
3433
|
+
* CouponBulkCreateRequest
|
|
3434
|
+
* @description Bulk coupon creation request - coupon_code is NOT required (auto-generated).
|
|
3435
|
+
* Used for creating multiple coupons with a shared prefix and rules.
|
|
3436
|
+
*/
|
|
3437
|
+
CouponBulkCreateRequest: {
|
|
3438
|
+
/** Coupon Name */
|
|
3439
|
+
coupon_name: string;
|
|
3440
|
+
/** Duration */
|
|
3441
|
+
duration?: string | null;
|
|
3411
3442
|
/**
|
|
3412
|
-
*
|
|
3443
|
+
* Duration In Months
|
|
3413
3444
|
* @default 0
|
|
3414
|
-
* @example 0
|
|
3415
|
-
*/
|
|
3416
|
-
trial_period_days: number | null;
|
|
3417
|
-
/**
|
|
3418
|
-
* Initial Amount
|
|
3419
|
-
* @example 0
|
|
3420
3445
|
*/
|
|
3421
|
-
|
|
3446
|
+
duration_in_months: number;
|
|
3447
|
+
/** Amount Off */
|
|
3448
|
+
amount_off?: number | null;
|
|
3449
|
+
/** Currency */
|
|
3450
|
+
currency?: string | null;
|
|
3451
|
+
/** Percent Off */
|
|
3452
|
+
percent_off?: number | null;
|
|
3422
3453
|
/**
|
|
3423
|
-
*
|
|
3424
|
-
* @
|
|
3454
|
+
* Redeem From
|
|
3455
|
+
* @description Coupon valid from datetime (YYYY-MM-DD HH:MM:SS)
|
|
3425
3456
|
*/
|
|
3426
|
-
|
|
3457
|
+
redeem_from?: string | null;
|
|
3427
3458
|
/**
|
|
3428
|
-
*
|
|
3429
|
-
* @
|
|
3459
|
+
* Redeem By
|
|
3460
|
+
* @description Coupon expiry datetime (YYYY-MM-DD HH:MM:SS)
|
|
3430
3461
|
*/
|
|
3431
|
-
|
|
3462
|
+
redeem_by?: string | null;
|
|
3432
3463
|
/**
|
|
3433
|
-
*
|
|
3434
|
-
* @
|
|
3464
|
+
* Max Redemptions
|
|
3465
|
+
* @default 0
|
|
3435
3466
|
*/
|
|
3436
|
-
|
|
3467
|
+
max_redemptions: number;
|
|
3437
3468
|
/**
|
|
3438
|
-
*
|
|
3439
|
-
* @
|
|
3440
|
-
* @default false
|
|
3441
|
-
* @example false
|
|
3469
|
+
* Site Wide
|
|
3470
|
+
* @default true
|
|
3442
3471
|
*/
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3472
|
+
site_wide: boolean;
|
|
3473
|
+
/** Applies To */
|
|
3474
|
+
applies_to?: {
|
|
3475
|
+
[key: string]: unknown;
|
|
3476
|
+
} | null;
|
|
3477
|
+
/** Coupon Data */
|
|
3478
|
+
coupon_data?: {
|
|
3479
|
+
[key: string]: unknown;
|
|
3480
|
+
} | null;
|
|
3447
3481
|
/** Company Id */
|
|
3448
3482
|
company_id: number;
|
|
3483
|
+
/** Applicable Gateways */
|
|
3484
|
+
applicable_gateways: string[];
|
|
3485
|
+
/** Min Order Amount */
|
|
3486
|
+
min_order_amount?: number | null;
|
|
3449
3487
|
/**
|
|
3450
|
-
*
|
|
3451
|
-
* @description
|
|
3488
|
+
* Owner
|
|
3489
|
+
* @description User ID who will own the coupon (defaults to creator if not specified)
|
|
3452
3490
|
*/
|
|
3453
|
-
|
|
3454
|
-
};
|
|
3455
|
-
StandardResponse_MergeCartResponseData_: {
|
|
3456
|
-
[key: string]: unknown;
|
|
3491
|
+
owner?: number | null;
|
|
3457
3492
|
};
|
|
3458
|
-
/**
|
|
3459
|
-
|
|
3460
|
-
/**
|
|
3461
|
-
|
|
3462
|
-
* @description Order ID
|
|
3463
|
-
*/
|
|
3464
|
-
order_id: number;
|
|
3465
|
-
/**
|
|
3466
|
-
* Company Id
|
|
3467
|
-
* @description Company ID
|
|
3468
|
-
*/
|
|
3469
|
-
company_id: number;
|
|
3493
|
+
/** CartUpdateRequest */
|
|
3494
|
+
CartUpdateRequest: {
|
|
3495
|
+
/** Quantity */
|
|
3496
|
+
quantity: number;
|
|
3470
3497
|
};
|
|
3471
|
-
/**
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
order_amount?: number | null;
|
|
3481
|
-
/** Product Ids */
|
|
3482
|
-
product_ids?: number[] | null;
|
|
3483
|
-
/** Category Ids */
|
|
3484
|
-
category_ids?: number[] | null;
|
|
3485
|
-
/**
|
|
3486
|
-
* Test Mode
|
|
3487
|
-
* @default false
|
|
3488
|
-
*/
|
|
3489
|
-
test_mode: boolean;
|
|
3498
|
+
/**
|
|
3499
|
+
* PriceType
|
|
3500
|
+
* @enum {string}
|
|
3501
|
+
*/
|
|
3502
|
+
PriceType: "free" | "subscription" | "onetime" | "emi";
|
|
3503
|
+
/** CartItemRequest */
|
|
3504
|
+
CartItemRequest: {
|
|
3505
|
+
/** Items */
|
|
3506
|
+
items: components["schemas"]["CartItem"][];
|
|
3490
3507
|
};
|
|
3491
3508
|
/** UpdateOrderStatusRequest */
|
|
3492
3509
|
UpdateOrderStatusRequest: {
|
|
3493
3510
|
/** Status */
|
|
3494
3511
|
status: string;
|
|
3495
3512
|
};
|
|
3496
|
-
/**
|
|
3497
|
-
|
|
3498
|
-
/** Email */
|
|
3499
|
-
email: string;
|
|
3500
|
-
/** Mobile Isd Code */
|
|
3501
|
-
mobile_isd_code: string;
|
|
3502
|
-
/** Mobile No */
|
|
3503
|
-
mobile_no: string;
|
|
3504
|
-
};
|
|
3505
|
-
/** AdminStatusVerifyRequest */
|
|
3506
|
-
AdminStatusVerifyRequest: {
|
|
3513
|
+
/** AddPaymentMethodRequest */
|
|
3514
|
+
AddPaymentMethodRequest: {
|
|
3507
3515
|
/**
|
|
3508
|
-
*
|
|
3509
|
-
* @description
|
|
3516
|
+
* Payment Method Token
|
|
3517
|
+
* @description Payment method token from gateway
|
|
3510
3518
|
*/
|
|
3511
|
-
|
|
3519
|
+
payment_method_token: string;
|
|
3512
3520
|
/**
|
|
3513
|
-
*
|
|
3514
|
-
* @description
|
|
3521
|
+
* Gateway
|
|
3522
|
+
* @description Payment gateway (stripe, razorpay, etc)
|
|
3515
3523
|
*/
|
|
3516
|
-
|
|
3524
|
+
gateway: string;
|
|
3517
3525
|
};
|
|
3518
|
-
/**
|
|
3519
|
-
|
|
3520
|
-
/**
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
/**
|
|
3525
|
-
|
|
3526
|
-
/**
|
|
3527
|
-
|
|
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;
|
|
3528
3543
|
};
|
|
3529
3544
|
Extensions: {
|
|
3530
3545
|
/** @example GENERIC_ERROR */
|
|
@@ -3535,9 +3550,61 @@ export interface components {
|
|
|
3535
3550
|
/** @example Detailed debug information */
|
|
3536
3551
|
debug?: string | null;
|
|
3537
3552
|
};
|
|
3538
|
-
|
|
3553
|
+
StandardResponse_CartItemResponseData_: {
|
|
3539
3554
|
[key: string]: unknown;
|
|
3540
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
|
+
};
|
|
3541
3608
|
ErrorResponse: {
|
|
3542
3609
|
/** @example about:blank */
|
|
3543
3610
|
type?: string;
|
|
@@ -3553,55 +3620,35 @@ export interface components {
|
|
|
3553
3620
|
instance?: string;
|
|
3554
3621
|
extensions?: components["schemas"]["Extensions"];
|
|
3555
3622
|
};
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
/**
|
|
3559
|
-
* Recipient Email
|
|
3560
|
-
* @description Email address to send invoice
|
|
3561
|
-
*/
|
|
3562
|
-
recipient_email: string;
|
|
3623
|
+
StandardResponse_MergeCartResponseData_: {
|
|
3624
|
+
[key: string]: unknown;
|
|
3563
3625
|
};
|
|
3564
|
-
/**
|
|
3565
|
-
|
|
3566
|
-
/**
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
/**
|
|
3571
|
-
|
|
3572
|
-
/** Trial Period Days */
|
|
3573
|
-
trial_period_days?: number | null;
|
|
3574
|
-
/** Initial Amount */
|
|
3575
|
-
initial_amount?: number | null;
|
|
3576
|
-
/** Compare Price */
|
|
3577
|
-
compare_price?: number | null;
|
|
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;
|
|
3578
3634
|
};
|
|
3579
|
-
/**
|
|
3580
|
-
|
|
3581
|
-
* @description Request to sync customer to payment gateway
|
|
3582
|
-
*/
|
|
3583
|
-
SyncCustomerRequest: {
|
|
3584
|
-
/**
|
|
3585
|
-
* Gateway
|
|
3586
|
-
* @description Gateway (stripe, razorpay, paypal, athmovil)
|
|
3587
|
-
*/
|
|
3588
|
-
gateway: string;
|
|
3635
|
+
/** WalletPaymentRequest */
|
|
3636
|
+
WalletPaymentRequest: {
|
|
3589
3637
|
/**
|
|
3590
|
-
*
|
|
3591
|
-
* @description
|
|
3638
|
+
* Amount
|
|
3639
|
+
* @description Payment amount
|
|
3592
3640
|
*/
|
|
3593
|
-
|
|
3641
|
+
amount: number;
|
|
3594
3642
|
/**
|
|
3595
|
-
*
|
|
3596
|
-
* @description
|
|
3643
|
+
* Currency
|
|
3644
|
+
* @description Currency code (e.g., USD)
|
|
3597
3645
|
*/
|
|
3598
|
-
|
|
3646
|
+
currency: string;
|
|
3599
3647
|
/**
|
|
3600
|
-
*
|
|
3601
|
-
* @description
|
|
3602
|
-
* @default false
|
|
3648
|
+
* Order Id
|
|
3649
|
+
* @description Order ID from order_tbl
|
|
3603
3650
|
*/
|
|
3604
|
-
|
|
3651
|
+
order_id: string;
|
|
3605
3652
|
};
|
|
3606
3653
|
/** CouponUpdateRequest */
|
|
3607
3654
|
CouponUpdateRequest: {
|
|
@@ -3644,190 +3691,189 @@ export interface components {
|
|
|
3644
3691
|
/** Min Order Amount */
|
|
3645
3692
|
min_order_amount?: number | null;
|
|
3646
3693
|
};
|
|
3647
|
-
/**
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3694
|
+
/** CouponValidateRequest */
|
|
3695
|
+
CouponValidateRequest: {
|
|
3696
|
+
/** Coupon Code */
|
|
3697
|
+
coupon_code: string;
|
|
3698
|
+
/** Company Id */
|
|
3699
|
+
company_id: number;
|
|
3700
|
+
/** Gateway */
|
|
3701
|
+
gateway?: string | null;
|
|
3702
|
+
/** Order Amount */
|
|
3703
|
+
order_amount?: number | null;
|
|
3704
|
+
/** Product Ids */
|
|
3705
|
+
product_ids?: number[] | null;
|
|
3706
|
+
/** Category Ids */
|
|
3707
|
+
category_ids?: number[] | null;
|
|
3708
|
+
/**
|
|
3709
|
+
* Test Mode
|
|
3710
|
+
* @default false
|
|
3711
|
+
*/
|
|
3712
|
+
test_mode: boolean;
|
|
3655
3713
|
};
|
|
3656
|
-
/**
|
|
3657
|
-
|
|
3658
|
-
/** Product Id */
|
|
3659
|
-
product_id: number;
|
|
3660
|
-
/** Product Pricing Id */
|
|
3661
|
-
product_pricing_id?: number | null;
|
|
3714
|
+
/** PriceRequest */
|
|
3715
|
+
PriceRequest: {
|
|
3662
3716
|
/**
|
|
3663
|
-
*
|
|
3664
|
-
* @
|
|
3717
|
+
* Company Id
|
|
3718
|
+
* @description Company ID for gateway configuration
|
|
3719
|
+
* @example 1
|
|
3665
3720
|
*/
|
|
3666
|
-
|
|
3721
|
+
company_id: number;
|
|
3667
3722
|
/**
|
|
3668
|
-
*
|
|
3669
|
-
* @
|
|
3723
|
+
* Product Id
|
|
3724
|
+
* @example 132
|
|
3670
3725
|
*/
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3726
|
+
product_id: number;
|
|
3727
|
+
/** @example subscription */
|
|
3728
|
+
price_type: components["schemas"]["PriceType"];
|
|
3729
|
+
/**
|
|
3730
|
+
* Amount
|
|
3731
|
+
* @example 52
|
|
3732
|
+
*/
|
|
3733
|
+
amount: number;
|
|
3734
|
+
/** @example USD */
|
|
3735
|
+
currency: components["schemas"]["Currency"];
|
|
3675
3736
|
/**
|
|
3676
3737
|
* Gateway
|
|
3677
|
-
* @
|
|
3738
|
+
* @example stripe
|
|
3678
3739
|
*/
|
|
3679
|
-
gateway
|
|
3740
|
+
gateway?: string | null;
|
|
3680
3741
|
/**
|
|
3681
|
-
*
|
|
3682
|
-
* @
|
|
3742
|
+
* Is Live
|
|
3743
|
+
* @default false
|
|
3744
|
+
* @example false
|
|
3683
3745
|
*/
|
|
3684
|
-
|
|
3746
|
+
is_live: boolean;
|
|
3747
|
+
/** @example month */
|
|
3748
|
+
interval?: components["schemas"]["Interval"] | null;
|
|
3685
3749
|
/**
|
|
3686
|
-
*
|
|
3687
|
-
* @
|
|
3750
|
+
* Interval Count
|
|
3751
|
+
* @example 1
|
|
3688
3752
|
*/
|
|
3689
|
-
|
|
3753
|
+
interval_count?: number | null;
|
|
3690
3754
|
/**
|
|
3691
|
-
*
|
|
3692
|
-
* @
|
|
3755
|
+
* Trial Period Days
|
|
3756
|
+
* @default 0
|
|
3757
|
+
* @example 0
|
|
3693
3758
|
*/
|
|
3694
|
-
|
|
3759
|
+
trial_period_days: number | null;
|
|
3695
3760
|
/**
|
|
3696
|
-
*
|
|
3697
|
-
* @
|
|
3761
|
+
* Initial Amount
|
|
3762
|
+
* @example 0
|
|
3698
3763
|
*/
|
|
3699
|
-
|
|
3764
|
+
initial_amount?: number | null;
|
|
3700
3765
|
/**
|
|
3701
|
-
*
|
|
3702
|
-
* @
|
|
3766
|
+
* Compare Price
|
|
3767
|
+
* @example 0
|
|
3703
3768
|
*/
|
|
3704
|
-
|
|
3769
|
+
compare_price?: number | null;
|
|
3705
3770
|
/**
|
|
3706
|
-
*
|
|
3707
|
-
* @
|
|
3771
|
+
* Object Id
|
|
3772
|
+
* @example 0
|
|
3708
3773
|
*/
|
|
3709
|
-
|
|
3774
|
+
object_id?: number | null;
|
|
3710
3775
|
/**
|
|
3711
|
-
*
|
|
3712
|
-
* @
|
|
3776
|
+
* Module Id
|
|
3777
|
+
* @example 0
|
|
3713
3778
|
*/
|
|
3714
|
-
|
|
3779
|
+
module_id?: number | null;
|
|
3715
3780
|
/**
|
|
3716
|
-
*
|
|
3717
|
-
* @description
|
|
3781
|
+
* Requires Payment Method Upfront
|
|
3782
|
+
* @description False=Gateway-managed trial (send trial to gateway), True=App-managed trial (don't send trial to gateway)
|
|
3718
3783
|
* @default false
|
|
3784
|
+
* @example false
|
|
3719
3785
|
*/
|
|
3720
|
-
|
|
3786
|
+
requires_payment_method_upfront: boolean;
|
|
3721
3787
|
};
|
|
3722
3788
|
/**
|
|
3723
|
-
*
|
|
3724
|
-
* @description
|
|
3725
|
-
*
|
|
3726
|
-
* Example:
|
|
3727
|
-
* {
|
|
3728
|
-
* "amount": 1000.00,
|
|
3729
|
-
* "company_id": 5
|
|
3730
|
-
* }
|
|
3789
|
+
* GuestDetails
|
|
3790
|
+
* @description Guest customer details for checkout
|
|
3731
3791
|
*/
|
|
3732
|
-
|
|
3792
|
+
GuestDetails: {
|
|
3733
3793
|
/**
|
|
3734
|
-
*
|
|
3735
|
-
* @description
|
|
3794
|
+
* Email
|
|
3795
|
+
* @description Guest email address
|
|
3736
3796
|
*/
|
|
3737
|
-
|
|
3797
|
+
email: string;
|
|
3738
3798
|
/**
|
|
3739
|
-
*
|
|
3740
|
-
* @description
|
|
3799
|
+
* Mobile Isd Code
|
|
3800
|
+
* @description Mobile country code (e.g., +91, +1)
|
|
3741
3801
|
*/
|
|
3742
|
-
|
|
3743
|
-
};
|
|
3744
|
-
/** CartUpdateRequest */
|
|
3745
|
-
CartUpdateRequest: {
|
|
3746
|
-
/** Quantity */
|
|
3747
|
-
quantity: number;
|
|
3748
|
-
};
|
|
3749
|
-
/** WalletPaymentRequest */
|
|
3750
|
-
WalletPaymentRequest: {
|
|
3802
|
+
mobile_isd_code: string;
|
|
3751
3803
|
/**
|
|
3752
|
-
*
|
|
3753
|
-
* @description
|
|
3804
|
+
* Mobile No
|
|
3805
|
+
* @description Mobile number
|
|
3754
3806
|
*/
|
|
3755
|
-
|
|
3807
|
+
mobile_no: string;
|
|
3756
3808
|
/**
|
|
3757
|
-
*
|
|
3758
|
-
* @description
|
|
3809
|
+
* First Name
|
|
3810
|
+
* @description Guest first name
|
|
3759
3811
|
*/
|
|
3760
|
-
|
|
3812
|
+
first_name: string;
|
|
3761
3813
|
/**
|
|
3762
|
-
*
|
|
3763
|
-
* @description
|
|
3814
|
+
* Last Name
|
|
3815
|
+
* @description Guest last name
|
|
3764
3816
|
*/
|
|
3765
|
-
|
|
3766
|
-
};
|
|
3767
|
-
/**
|
|
3768
|
-
* CouponAdminCreateRequest
|
|
3769
|
-
* @description Admin-specific coupon creation request with optional owner parameter.
|
|
3770
|
-
* Allows admins to create coupons on behalf of other users.
|
|
3771
|
-
*/
|
|
3772
|
-
CouponAdminCreateRequest: {
|
|
3773
|
-
/** Coupon Name */
|
|
3774
|
-
coupon_name: string;
|
|
3775
|
-
/** Coupon Code */
|
|
3776
|
-
coupon_code: string;
|
|
3777
|
-
/** Duration */
|
|
3778
|
-
duration?: string | null;
|
|
3817
|
+
last_name: string;
|
|
3779
3818
|
/**
|
|
3780
|
-
*
|
|
3781
|
-
* @
|
|
3819
|
+
* Address Line1
|
|
3820
|
+
* @description Street address, PO box, company name
|
|
3782
3821
|
*/
|
|
3783
|
-
|
|
3784
|
-
/** Amount Off */
|
|
3785
|
-
amount_off?: number | null;
|
|
3786
|
-
/** Currency */
|
|
3787
|
-
currency?: string | null;
|
|
3788
|
-
/** Percent Off */
|
|
3789
|
-
percent_off?: number | null;
|
|
3822
|
+
address_line1?: string | null;
|
|
3790
3823
|
/**
|
|
3791
|
-
*
|
|
3792
|
-
* @description
|
|
3824
|
+
* Address Line2
|
|
3825
|
+
* @description Apartment, suite, unit, building, floor, etc.
|
|
3793
3826
|
*/
|
|
3794
|
-
|
|
3827
|
+
address_line2?: string | null;
|
|
3795
3828
|
/**
|
|
3796
|
-
*
|
|
3797
|
-
* @description
|
|
3829
|
+
* City
|
|
3830
|
+
* @description City, district, suburb, town, or village
|
|
3798
3831
|
*/
|
|
3799
|
-
|
|
3832
|
+
city?: string | null;
|
|
3800
3833
|
/**
|
|
3801
|
-
*
|
|
3802
|
-
* @
|
|
3834
|
+
* State
|
|
3835
|
+
* @description State, province, prefecture, or region
|
|
3803
3836
|
*/
|
|
3804
|
-
|
|
3837
|
+
state?: string | null;
|
|
3805
3838
|
/**
|
|
3806
|
-
*
|
|
3807
|
-
* @
|
|
3839
|
+
* Postal Code
|
|
3840
|
+
* @description ZIP or postal code
|
|
3808
3841
|
*/
|
|
3809
|
-
|
|
3810
|
-
/**
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3842
|
+
postal_code?: string | null;
|
|
3843
|
+
/**
|
|
3844
|
+
* Country
|
|
3845
|
+
* @description Two-letter country code (ISO 3166-1 alpha-2, e.g., IN, US, GB)
|
|
3846
|
+
*/
|
|
3847
|
+
country?: string | null;
|
|
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: {
|
|
3818
3860
|
/** Company Id */
|
|
3819
3861
|
company_id: number;
|
|
3820
|
-
/** Applicable Gateways */
|
|
3821
|
-
applicable_gateways: string[];
|
|
3822
|
-
/** Min Order Amount */
|
|
3823
|
-
min_order_amount?: number | null;
|
|
3824
3862
|
/**
|
|
3825
|
-
*
|
|
3826
|
-
* @description
|
|
3863
|
+
* Recovery Token
|
|
3864
|
+
* @description Cart recovery token from abandoned cart email link (enables recovery attribution)
|
|
3827
3865
|
*/
|
|
3828
|
-
|
|
3866
|
+
recovery_token?: string | null;
|
|
3829
3867
|
};
|
|
3830
|
-
|
|
3868
|
+
/** SendInvoiceRequest */
|
|
3869
|
+
SendInvoiceRequest: {
|
|
3870
|
+
/**
|
|
3871
|
+
* Recipient Email
|
|
3872
|
+
* @description Email address to send invoice
|
|
3873
|
+
*/
|
|
3874
|
+
recipient_email: string;
|
|
3875
|
+
};
|
|
3876
|
+
StandardResponse_CartResponseData_: {
|
|
3831
3877
|
[key: string]: unknown;
|
|
3832
3878
|
};
|
|
3833
3879
|
/** CancelOfflineOrderRequest */
|
|
@@ -3843,61 +3889,40 @@ export interface components {
|
|
|
3843
3889
|
*/
|
|
3844
3890
|
admin_remark?: string | null;
|
|
3845
3891
|
};
|
|
3846
|
-
/**
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
* "version": "v1",
|
|
3857
|
-
* "executionTime": 42,
|
|
3858
|
-
* "language": "en-US"
|
|
3859
|
-
* }
|
|
3860
|
-
* }
|
|
3861
|
-
*/
|
|
3862
|
-
StandardResponse: {
|
|
3863
|
-
/** @example success */
|
|
3864
|
-
status?: string;
|
|
3865
|
-
data?: Record<string, never> | null;
|
|
3866
|
-
/** @example Operation successful */
|
|
3867
|
-
message?: string | null;
|
|
3868
|
-
/** @example api_suc_20001 */
|
|
3869
|
-
message_code?: string | null;
|
|
3870
|
-
metadata?: Record<string, never> | null;
|
|
3871
|
-
error?: components["schemas"]["ErrorResponse"];
|
|
3892
|
+
/** BuyNowRequest */
|
|
3893
|
+
BuyNowRequest: {
|
|
3894
|
+
/** Company Id */
|
|
3895
|
+
company_id: number;
|
|
3896
|
+
/** Product Id */
|
|
3897
|
+
product_id: number;
|
|
3898
|
+
/** Product Pricing Id */
|
|
3899
|
+
product_pricing_id: number;
|
|
3900
|
+
/** Quantity */
|
|
3901
|
+
quantity: number;
|
|
3872
3902
|
};
|
|
3873
|
-
/**
|
|
3874
|
-
|
|
3875
|
-
* @enum {string}
|
|
3876
|
-
*/
|
|
3877
|
-
Currency: "USD" | "INR" | "EUR" | "GBP";
|
|
3878
|
-
/** VerifyPaymentRequest */
|
|
3879
|
-
VerifyPaymentRequest: {
|
|
3903
|
+
/** OfflineStatusUpdateRequest */
|
|
3904
|
+
OfflineStatusUpdateRequest: {
|
|
3880
3905
|
/**
|
|
3881
|
-
*
|
|
3882
|
-
* @description
|
|
3906
|
+
* Status
|
|
3907
|
+
* @description Status: proof_uploaded or cancelled for users
|
|
3883
3908
|
*/
|
|
3884
|
-
|
|
3909
|
+
status: string;
|
|
3885
3910
|
/**
|
|
3886
|
-
*
|
|
3887
|
-
* @description
|
|
3911
|
+
* Proof Of Payment
|
|
3912
|
+
* @description Proof of payment (required for proof_uploaded)
|
|
3888
3913
|
*/
|
|
3889
|
-
|
|
3890
|
-
};
|
|
3891
|
-
/** WalletCreditDebitRequest */
|
|
3892
|
-
WalletCreditDebitRequest: {
|
|
3914
|
+
proof_of_payment?: string | null;
|
|
3893
3915
|
/**
|
|
3894
|
-
* User
|
|
3895
|
-
* @description User
|
|
3916
|
+
* User Remark
|
|
3917
|
+
* @description User remark
|
|
3896
3918
|
*/
|
|
3897
|
-
|
|
3919
|
+
user_remark?: string | null;
|
|
3920
|
+
};
|
|
3921
|
+
/** OfflinePaymentRequest */
|
|
3922
|
+
OfflinePaymentRequest: {
|
|
3898
3923
|
/**
|
|
3899
3924
|
* Amount
|
|
3900
|
-
* @description
|
|
3925
|
+
* @description Payment amount
|
|
3901
3926
|
*/
|
|
3902
3927
|
amount: number;
|
|
3903
3928
|
/**
|
|
@@ -3906,32 +3931,15 @@ export interface components {
|
|
|
3906
3931
|
*/
|
|
3907
3932
|
currency: string;
|
|
3908
3933
|
/**
|
|
3909
|
-
*
|
|
3910
|
-
* @description
|
|
3911
|
-
*/
|
|
3912
|
-
reason: string;
|
|
3913
|
-
};
|
|
3914
|
-
/** AddPaymentMethodRequest */
|
|
3915
|
-
AddPaymentMethodRequest: {
|
|
3916
|
-
/**
|
|
3917
|
-
* Payment Method Token
|
|
3918
|
-
* @description Payment method token from gateway
|
|
3934
|
+
* Company Id
|
|
3935
|
+
* @description Company ID
|
|
3919
3936
|
*/
|
|
3920
|
-
|
|
3937
|
+
company_id: number;
|
|
3921
3938
|
/**
|
|
3922
|
-
*
|
|
3923
|
-
* @description
|
|
3939
|
+
* Order Id
|
|
3940
|
+
* @description Order ID
|
|
3924
3941
|
*/
|
|
3925
|
-
|
|
3926
|
-
};
|
|
3927
|
-
InvalidParam: {
|
|
3928
|
-
/** @example items[0].quantity */
|
|
3929
|
-
field?: string;
|
|
3930
|
-
/** @example Input should be greater than or equal to 1 */
|
|
3931
|
-
error?: string;
|
|
3932
|
-
};
|
|
3933
|
-
StandardResponse_CartItemDetail_: {
|
|
3934
|
-
[key: string]: unknown;
|
|
3942
|
+
order_id: string;
|
|
3935
3943
|
};
|
|
3936
3944
|
/** CouponCreateRequest */
|
|
3937
3945
|
CouponCreateRequest: {
|
|
@@ -3987,177 +3995,169 @@ export interface components {
|
|
|
3987
3995
|
/** Min Order Amount */
|
|
3988
3996
|
min_order_amount?: number | null;
|
|
3989
3997
|
};
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
/**
|
|
3996
|
-
* Amount
|
|
3997
|
-
* @description Payment amount
|
|
3998
|
-
*/
|
|
3999
|
-
amount: number;
|
|
3998
|
+
/**
|
|
3999
|
+
* SyncCustomerRequest
|
|
4000
|
+
* @description Request to sync customer to payment gateway
|
|
4001
|
+
*/
|
|
4002
|
+
SyncCustomerRequest: {
|
|
4000
4003
|
/**
|
|
4001
|
-
*
|
|
4002
|
-
* @description
|
|
4004
|
+
* Gateway
|
|
4005
|
+
* @description Gateway (stripe, razorpay, paypal, athmovil)
|
|
4003
4006
|
*/
|
|
4004
|
-
|
|
4007
|
+
gateway: string;
|
|
4005
4008
|
/**
|
|
4006
4009
|
* Company Id
|
|
4007
|
-
* @description Company ID
|
|
4010
|
+
* @description Company ID (required for gateway config lookup)
|
|
4008
4011
|
*/
|
|
4009
4012
|
company_id: number;
|
|
4010
4013
|
/**
|
|
4011
|
-
*
|
|
4012
|
-
* @description
|
|
4014
|
+
* Email
|
|
4015
|
+
* @description Email to sync (defaults to current user)
|
|
4013
4016
|
*/
|
|
4014
|
-
|
|
4017
|
+
email?: string | null;
|
|
4018
|
+
/**
|
|
4019
|
+
* Force Create
|
|
4020
|
+
* @description Force create new customer even if exists
|
|
4021
|
+
* @default false
|
|
4022
|
+
*/
|
|
4023
|
+
force_create: boolean;
|
|
4015
4024
|
};
|
|
4016
|
-
/**
|
|
4017
|
-
|
|
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: {
|
|
4018
4041
|
/**
|
|
4019
|
-
*
|
|
4020
|
-
* @description
|
|
4042
|
+
* Amount
|
|
4043
|
+
* @description Top-up amount (must be positive)
|
|
4021
4044
|
*/
|
|
4022
|
-
|
|
4045
|
+
amount: number;
|
|
4023
4046
|
/**
|
|
4024
4047
|
* Company Id
|
|
4025
4048
|
* @description Company ID
|
|
4026
4049
|
*/
|
|
4027
4050
|
company_id: number;
|
|
4028
|
-
/**
|
|
4029
|
-
* Gateway
|
|
4030
|
-
* @description Payment gateway (stripe, razorpay, etc)
|
|
4031
|
-
*/
|
|
4032
|
-
gateway: string;
|
|
4033
|
-
/**
|
|
4034
|
-
* Payment Method Id
|
|
4035
|
-
* @description Saved payment method ID (optional)
|
|
4036
|
-
*/
|
|
4037
|
-
payment_method_id?: string | null;
|
|
4038
|
-
/**
|
|
4039
|
-
* Save Payment Method
|
|
4040
|
-
* @description Save this payment method for future use
|
|
4041
|
-
* @default false
|
|
4042
|
-
*/
|
|
4043
|
-
save_payment_method: boolean;
|
|
4044
|
-
/**
|
|
4045
|
-
* Coupon Code
|
|
4046
|
-
* @description Coupon code to apply (optional)
|
|
4047
|
-
*/
|
|
4048
|
-
coupon_code?: string | null;
|
|
4049
|
-
/**
|
|
4050
|
-
* Return Url
|
|
4051
|
-
* @description URL to redirect after payment
|
|
4052
|
-
*/
|
|
4053
|
-
return_url?: string | null;
|
|
4054
4051
|
};
|
|
4055
|
-
/**
|
|
4056
|
-
|
|
4052
|
+
/**
|
|
4053
|
+
* Currency
|
|
4054
|
+
* @enum {string}
|
|
4055
|
+
*/
|
|
4056
|
+
Currency: "USD" | "INR" | "EUR" | "GBP";
|
|
4057
|
+
/** AdminStatusVerifyRequest */
|
|
4058
|
+
AdminStatusVerifyRequest: {
|
|
4057
4059
|
/**
|
|
4058
4060
|
* Status
|
|
4059
|
-
* @description Status:
|
|
4061
|
+
* @description Status: completed or failed
|
|
4060
4062
|
*/
|
|
4061
4063
|
status: string;
|
|
4062
4064
|
/**
|
|
4063
|
-
*
|
|
4064
|
-
* @description
|
|
4065
|
-
*/
|
|
4066
|
-
proof_of_payment?: string | null;
|
|
4067
|
-
/**
|
|
4068
|
-
* User Remark
|
|
4069
|
-
* @description User remark
|
|
4065
|
+
* Admin Remark
|
|
4066
|
+
* @description Admin remark
|
|
4070
4067
|
*/
|
|
4071
|
-
|
|
4068
|
+
admin_remark?: string | null;
|
|
4072
4069
|
};
|
|
4073
|
-
/**
|
|
4074
|
-
|
|
4070
|
+
/** WalletCreditDebitRequest */
|
|
4071
|
+
WalletCreditDebitRequest: {
|
|
4075
4072
|
/**
|
|
4076
|
-
*
|
|
4077
|
-
* @description
|
|
4073
|
+
* User Id
|
|
4074
|
+
* @description User ID to credit/debit
|
|
4078
4075
|
*/
|
|
4079
|
-
|
|
4076
|
+
user_id: number;
|
|
4080
4077
|
/**
|
|
4081
|
-
*
|
|
4082
|
-
* @description
|
|
4078
|
+
* Amount
|
|
4079
|
+
* @description Amount to credit/debit
|
|
4083
4080
|
*/
|
|
4084
|
-
|
|
4081
|
+
amount: number;
|
|
4085
4082
|
/**
|
|
4086
|
-
*
|
|
4087
|
-
* @description
|
|
4083
|
+
* Currency
|
|
4084
|
+
* @description Currency code (e.g., USD)
|
|
4088
4085
|
*/
|
|
4089
|
-
|
|
4086
|
+
currency: string;
|
|
4090
4087
|
/**
|
|
4091
4088
|
* Reason
|
|
4092
|
-
* @description
|
|
4089
|
+
* @description Reason for credit/debit
|
|
4093
4090
|
*/
|
|
4094
|
-
reason
|
|
4091
|
+
reason: string;
|
|
4095
4092
|
};
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4093
|
+
StandardResponse_ClearCartResponseData_: {
|
|
4094
|
+
[key: string]: unknown;
|
|
4095
|
+
};
|
|
4096
|
+
/** CartItem */
|
|
4097
|
+
CartItem: {
|
|
4098
|
+
/** Product Id */
|
|
4099
|
+
product_id: number;
|
|
4100
|
+
/** Product Pricing Id */
|
|
4101
|
+
product_pricing_id?: number | null;
|
|
4101
4102
|
/**
|
|
4102
|
-
*
|
|
4103
|
-
* @
|
|
4103
|
+
* Sub Product Id
|
|
4104
|
+
* @default 0
|
|
4104
4105
|
*/
|
|
4105
|
-
|
|
4106
|
+
sub_product_id: number | null;
|
|
4106
4107
|
/**
|
|
4107
|
-
*
|
|
4108
|
-
* @
|
|
4108
|
+
* Quantity
|
|
4109
|
+
* @default 1
|
|
4109
4110
|
*/
|
|
4110
|
-
|
|
4111
|
+
quantity: number | null;
|
|
4112
|
+
};
|
|
4113
|
+
/** SavePaymentMethodRequest */
|
|
4114
|
+
SavePaymentMethodRequest: {
|
|
4111
4115
|
/**
|
|
4112
|
-
*
|
|
4113
|
-
* @description
|
|
4116
|
+
* Gateway
|
|
4117
|
+
* @description Payment gateway (stripe, razorpay, etc)
|
|
4114
4118
|
*/
|
|
4115
|
-
|
|
4119
|
+
gateway: string;
|
|
4116
4120
|
/**
|
|
4117
|
-
*
|
|
4118
|
-
* @description
|
|
4121
|
+
* Gateway Payment Method Id
|
|
4122
|
+
* @description Gateway payment method token/ID
|
|
4119
4123
|
*/
|
|
4120
|
-
|
|
4124
|
+
gateway_payment_method_id: string;
|
|
4121
4125
|
/**
|
|
4122
|
-
*
|
|
4123
|
-
* @description
|
|
4126
|
+
* Card Last4
|
|
4127
|
+
* @description Last 4 digits of card
|
|
4124
4128
|
*/
|
|
4125
|
-
|
|
4129
|
+
card_last4?: string | null;
|
|
4126
4130
|
/**
|
|
4127
|
-
*
|
|
4128
|
-
* @description
|
|
4131
|
+
* Card Brand
|
|
4132
|
+
* @description Card brand (Visa, Mastercard, etc)
|
|
4129
4133
|
*/
|
|
4130
|
-
|
|
4134
|
+
card_brand?: string | null;
|
|
4131
4135
|
/**
|
|
4132
|
-
*
|
|
4133
|
-
* @description
|
|
4136
|
+
* Card Exp Month
|
|
4137
|
+
* @description Card expiry month (1-12)
|
|
4134
4138
|
*/
|
|
4135
|
-
|
|
4139
|
+
card_exp_month?: number | null;
|
|
4136
4140
|
/**
|
|
4137
|
-
*
|
|
4138
|
-
* @description
|
|
4141
|
+
* Card Exp Year
|
|
4142
|
+
* @description Card expiry year (YYYY)
|
|
4139
4143
|
*/
|
|
4140
|
-
|
|
4144
|
+
card_exp_year?: number | null;
|
|
4141
4145
|
/**
|
|
4142
|
-
*
|
|
4143
|
-
* @description
|
|
4146
|
+
* Billing Name
|
|
4147
|
+
* @description Billing name
|
|
4144
4148
|
*/
|
|
4145
|
-
|
|
4149
|
+
billing_name?: string | null;
|
|
4146
4150
|
/**
|
|
4147
|
-
*
|
|
4148
|
-
* @description
|
|
4151
|
+
* Billing Email
|
|
4152
|
+
* @description Billing email
|
|
4149
4153
|
*/
|
|
4150
|
-
|
|
4154
|
+
billing_email?: string | null;
|
|
4151
4155
|
/**
|
|
4152
|
-
*
|
|
4153
|
-
* @description
|
|
4156
|
+
* Is Default
|
|
4157
|
+
* @description Set as default payment method
|
|
4158
|
+
* @default false
|
|
4154
4159
|
*/
|
|
4155
|
-
|
|
4156
|
-
};
|
|
4157
|
-
/** CartItemRequest */
|
|
4158
|
-
CartItemRequest: {
|
|
4159
|
-
/** Items */
|
|
4160
|
-
items: components["schemas"]["CartItem"][];
|
|
4160
|
+
is_default: boolean;
|
|
4161
4161
|
};
|
|
4162
4162
|
};
|
|
4163
4163
|
responses: never;
|