@wix/auto_sdk_pricing-plans_orders 1.0.106 → 1.0.107
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/build/cjs/index.d.ts +39 -39
- package/build/cjs/index.js +283 -283
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +158 -158
- package/build/cjs/index.typings.js +254 -254
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +83 -83
- package/build/cjs/meta.js +198 -198
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +39 -39
- package/build/es/index.mjs +283 -283
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +158 -158
- package/build/es/index.typings.mjs +254 -254
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +83 -83
- package/build/es/meta.mjs +198 -198
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +39 -39
- package/build/internal/cjs/index.js +283 -283
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +158 -158
- package/build/internal/cjs/index.typings.js +254 -254
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +83 -83
- package/build/internal/cjs/meta.js +198 -198
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +39 -39
- package/build/internal/es/index.mjs +283 -283
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +158 -158
- package/build/internal/es/index.typings.mjs +254 -254
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +83 -83
- package/build/internal/es/meta.mjs +198 -198
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1106,83 +1106,6 @@ interface AccountInfo {
|
|
|
1106
1106
|
*/
|
|
1107
1107
|
siteId?: string | null;
|
|
1108
1108
|
}
|
|
1109
|
-
interface MemberGetOrderRequest {
|
|
1110
|
-
/**
|
|
1111
|
-
* Order ID.
|
|
1112
|
-
* @format GUID
|
|
1113
|
-
*/
|
|
1114
|
-
_id: string;
|
|
1115
|
-
/**
|
|
1116
|
-
* Predefined set of fields to return.
|
|
1117
|
-
*
|
|
1118
|
-
* Default: If `fieldSet` is omitted, no order form submission data is returned.
|
|
1119
|
-
*/
|
|
1120
|
-
fieldSet?: SetWithLiterals;
|
|
1121
|
-
}
|
|
1122
|
-
interface MemberGetOrderResponse {
|
|
1123
|
-
/** Requested order. */
|
|
1124
|
-
order?: Order;
|
|
1125
|
-
}
|
|
1126
|
-
interface MemberListOrdersRequest {
|
|
1127
|
-
/**
|
|
1128
|
-
* Filter by plan IDs.
|
|
1129
|
-
* @format GUID
|
|
1130
|
-
*/
|
|
1131
|
-
planIds?: string[];
|
|
1132
|
-
/** Filter for orders where auto renewal was canceled. */
|
|
1133
|
-
autoRenewCanceled?: boolean | null;
|
|
1134
|
-
/** Filter by order status. */
|
|
1135
|
-
orderStatuses?: OrderStatusWithLiterals[];
|
|
1136
|
-
/** Filter by payment status. */
|
|
1137
|
-
paymentStatuses?: PaymentStatusWithLiterals[];
|
|
1138
|
-
/**
|
|
1139
|
-
* Limit the number of pricing plans returned. Default limit is 50.
|
|
1140
|
-
* @min 1
|
|
1141
|
-
* @max 50
|
|
1142
|
-
*/
|
|
1143
|
-
limit?: number | null;
|
|
1144
|
-
/** Number of entries to offset. */
|
|
1145
|
-
offset?: number | null;
|
|
1146
|
-
/** Sorting direction (defaults to ASC) and field to sort by. */
|
|
1147
|
-
sorting?: Sorting;
|
|
1148
|
-
/**
|
|
1149
|
-
* Predefined set of fields to return.
|
|
1150
|
-
*
|
|
1151
|
-
* Default: If `fieldSet` is omitted, no order form submission data is returned.
|
|
1152
|
-
*/
|
|
1153
|
-
fieldSet?: SetWithLiterals;
|
|
1154
|
-
}
|
|
1155
|
-
interface MemberListOrdersResponse {
|
|
1156
|
-
/** Requested orders. */
|
|
1157
|
-
orders?: Order[];
|
|
1158
|
-
/** Object containing paging-related data (number of orders returned, offset). */
|
|
1159
|
-
pagingMetadata?: PagingMetadataV2;
|
|
1160
|
-
}
|
|
1161
|
-
/**
|
|
1162
|
-
* TODO: Write orders filter and sort docs page
|
|
1163
|
-
* Retrieves a list of up to 1,000 orders, based on the provided paging, sorting, and filtering.
|
|
1164
|
-
*/
|
|
1165
|
-
interface QueryOrdersRequest {
|
|
1166
|
-
/** Query filter. */
|
|
1167
|
-
query?: QueryV2;
|
|
1168
|
-
}
|
|
1169
|
-
interface QueryOrdersResponse {
|
|
1170
|
-
/** Order data. */
|
|
1171
|
-
plans?: Order[];
|
|
1172
|
-
/** Paging-related data (number of orders returned, offset). */
|
|
1173
|
-
pagingMetadata?: PagingMetadataV2;
|
|
1174
|
-
}
|
|
1175
|
-
interface RequestCancellationRequest {
|
|
1176
|
-
/**
|
|
1177
|
-
* Order ID.
|
|
1178
|
-
* @format GUID
|
|
1179
|
-
*/
|
|
1180
|
-
_id: string;
|
|
1181
|
-
/** Required. Whether to cancel the order effective immediately or at the next payment date. One-time orders can only be canceled immediately. */
|
|
1182
|
-
effectiveAt: CancellationEffectiveAtWithLiterals;
|
|
1183
|
-
}
|
|
1184
|
-
interface RequestCancellationResponse {
|
|
1185
|
-
}
|
|
1186
1109
|
interface CreateOnlineOrderRequest {
|
|
1187
1110
|
/**
|
|
1188
1111
|
* Plan ID.
|
|
@@ -1486,6 +1409,83 @@ interface SetSubmissionResponse {
|
|
|
1486
1409
|
/** Order with submission id */
|
|
1487
1410
|
order?: Order;
|
|
1488
1411
|
}
|
|
1412
|
+
interface MemberGetOrderRequest {
|
|
1413
|
+
/**
|
|
1414
|
+
* Order ID.
|
|
1415
|
+
* @format GUID
|
|
1416
|
+
*/
|
|
1417
|
+
_id: string;
|
|
1418
|
+
/**
|
|
1419
|
+
* Predefined set of fields to return.
|
|
1420
|
+
*
|
|
1421
|
+
* Default: If `fieldSet` is omitted, no order form submission data is returned.
|
|
1422
|
+
*/
|
|
1423
|
+
fieldSet?: SetWithLiterals;
|
|
1424
|
+
}
|
|
1425
|
+
interface MemberGetOrderResponse {
|
|
1426
|
+
/** Requested order. */
|
|
1427
|
+
order?: Order;
|
|
1428
|
+
}
|
|
1429
|
+
interface MemberListOrdersRequest {
|
|
1430
|
+
/**
|
|
1431
|
+
* Filter by plan IDs.
|
|
1432
|
+
* @format GUID
|
|
1433
|
+
*/
|
|
1434
|
+
planIds?: string[];
|
|
1435
|
+
/** Filter for orders where auto renewal was canceled. */
|
|
1436
|
+
autoRenewCanceled?: boolean | null;
|
|
1437
|
+
/** Filter by order status. */
|
|
1438
|
+
orderStatuses?: OrderStatusWithLiterals[];
|
|
1439
|
+
/** Filter by payment status. */
|
|
1440
|
+
paymentStatuses?: PaymentStatusWithLiterals[];
|
|
1441
|
+
/**
|
|
1442
|
+
* Limit the number of pricing plans returned. Default limit is 50.
|
|
1443
|
+
* @min 1
|
|
1444
|
+
* @max 50
|
|
1445
|
+
*/
|
|
1446
|
+
limit?: number | null;
|
|
1447
|
+
/** Number of entries to offset. */
|
|
1448
|
+
offset?: number | null;
|
|
1449
|
+
/** Sorting direction (defaults to ASC) and field to sort by. */
|
|
1450
|
+
sorting?: Sorting;
|
|
1451
|
+
/**
|
|
1452
|
+
* Predefined set of fields to return.
|
|
1453
|
+
*
|
|
1454
|
+
* Default: If `fieldSet` is omitted, no order form submission data is returned.
|
|
1455
|
+
*/
|
|
1456
|
+
fieldSet?: SetWithLiterals;
|
|
1457
|
+
}
|
|
1458
|
+
interface MemberListOrdersResponse {
|
|
1459
|
+
/** Requested orders. */
|
|
1460
|
+
orders?: Order[];
|
|
1461
|
+
/** Object containing paging-related data (number of orders returned, offset). */
|
|
1462
|
+
pagingMetadata?: PagingMetadataV2;
|
|
1463
|
+
}
|
|
1464
|
+
/**
|
|
1465
|
+
* TODO: Write orders filter and sort docs page
|
|
1466
|
+
* Retrieves a list of up to 1,000 orders, based on the provided paging, sorting, and filtering.
|
|
1467
|
+
*/
|
|
1468
|
+
interface QueryOrdersRequest {
|
|
1469
|
+
/** Query filter. */
|
|
1470
|
+
query?: QueryV2;
|
|
1471
|
+
}
|
|
1472
|
+
interface QueryOrdersResponse {
|
|
1473
|
+
/** Order data. */
|
|
1474
|
+
plans?: Order[];
|
|
1475
|
+
/** Paging-related data (number of orders returned, offset). */
|
|
1476
|
+
pagingMetadata?: PagingMetadataV2;
|
|
1477
|
+
}
|
|
1478
|
+
interface RequestCancellationRequest {
|
|
1479
|
+
/**
|
|
1480
|
+
* Order ID.
|
|
1481
|
+
* @format GUID
|
|
1482
|
+
*/
|
|
1483
|
+
_id: string;
|
|
1484
|
+
/** Required. Whether to cancel the order effective immediately or at the next payment date. One-time orders can only be canceled immediately. */
|
|
1485
|
+
effectiveAt: CancellationEffectiveAtWithLiterals;
|
|
1486
|
+
}
|
|
1487
|
+
interface RequestCancellationResponse {
|
|
1488
|
+
}
|
|
1489
1489
|
/** @docsIgnore */
|
|
1490
1490
|
type CreateOnlineOrderApplicationErrors = {
|
|
1491
1491
|
code?: 'MEMBER_REQUIRED';
|
|
@@ -2310,87 +2310,6 @@ declare function pauseOrder(_id: string): Promise<void>;
|
|
|
2310
2310
|
* @fqn com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder
|
|
2311
2311
|
*/
|
|
2312
2312
|
declare function resumeOrder(_id: string): Promise<void>;
|
|
2313
|
-
/**
|
|
2314
|
-
* Retrieves an order for the currently logged-in member by ID.
|
|
2315
|
-
* @param _id - Order ID.
|
|
2316
|
-
* @public
|
|
2317
|
-
* @requiredField _id
|
|
2318
|
-
* @param options - Options for getting a logged-in member's order.
|
|
2319
|
-
* @permissionId PRICING_PLANS.READ_OWN_ORDERS
|
|
2320
|
-
* @applicableIdentity APP
|
|
2321
|
-
* @applicableIdentity MEMBER
|
|
2322
|
-
* @returns Requested order.
|
|
2323
|
-
* @fqn com.wixpress.membership.v2.orders.member.MemberOrdersService.GetOrder
|
|
2324
|
-
*/
|
|
2325
|
-
declare function memberGetOrder(_id: string, options?: MemberGetOrderOptions): Promise<NonNullablePaths<Order, `_id` | `planId` | `subscriptionId` | `buyer.memberId` | `buyer.contactId` | `priceDetails.subscription.cycleDuration.unit` | `priceDetails.subtotal` | `priceDetails.discount` | `priceDetails.tax.name` | `priceDetails.tax.includedInPrice` | `priceDetails.tax.rate` | `priceDetails.tax.amount` | `priceDetails.total` | `priceDetails.planPrice` | `priceDetails.currency` | `priceDetails.coupon.code` | `priceDetails.coupon.amount` | `priceDetails.coupon._id` | `pricing.prices` | `pricing.prices.${number}.duration.cycleFrom` | `pricing.prices.${number}.price.subtotal` | `pricing.prices.${number}.price.discount` | `pricing.prices.${number}.price.total` | `pricing.prices.${number}.price.currency` | `pricing.prices.${number}.price.proration` | `type` | `status` | `cancellation.cause` | `cancellation.effectiveAt` | `lastPaymentStatus` | `pausePeriods` | `pausePeriods.${number}.status` | `currentCycle.index` | `planName` | `planDescription` | `planPrice`, 6>>;
|
|
2326
|
-
interface MemberGetOrderOptions {
|
|
2327
|
-
/**
|
|
2328
|
-
* Predefined set of fields to return.
|
|
2329
|
-
*
|
|
2330
|
-
* Default: If `fieldSet` is omitted, no order form submission data is returned.
|
|
2331
|
-
*/
|
|
2332
|
-
fieldSet?: SetWithLiterals;
|
|
2333
|
-
}
|
|
2334
|
-
/**
|
|
2335
|
-
* Retrieves a list of up to 100 pricing plan orders for currently logged-in member.
|
|
2336
|
-
* @public
|
|
2337
|
-
* @param options - Filtering, sorting, and pagination options.
|
|
2338
|
-
* @permissionId PRICING_PLANS.READ_OWN_ORDERS
|
|
2339
|
-
* @applicableIdentity APP
|
|
2340
|
-
* @applicableIdentity MEMBER
|
|
2341
|
-
* @fqn com.wixpress.membership.v2.orders.member.MemberOrdersService.ListOrders
|
|
2342
|
-
*/
|
|
2343
|
-
declare function memberListOrders(options?: MemberListOrdersOptions): Promise<NonNullablePaths<MemberListOrdersResponse, `orders` | `orders.${number}._id` | `orders.${number}.planId` | `orders.${number}.subscriptionId` | `orders.${number}.buyer.memberId` | `orders.${number}.buyer.contactId` | `orders.${number}.priceDetails.singlePaymentForDuration.unit` | `orders.${number}.priceDetails.subtotal` | `orders.${number}.priceDetails.discount` | `orders.${number}.priceDetails.tax.name` | `orders.${number}.priceDetails.tax.includedInPrice` | `orders.${number}.priceDetails.tax.rate` | `orders.${number}.priceDetails.tax.amount` | `orders.${number}.priceDetails.total` | `orders.${number}.priceDetails.planPrice` | `orders.${number}.priceDetails.currency` | `orders.${number}.priceDetails.coupon.code` | `orders.${number}.priceDetails.coupon.amount` | `orders.${number}.priceDetails.coupon._id` | `orders.${number}.type` | `orders.${number}.status` | `orders.${number}.cancellation.cause` | `orders.${number}.cancellation.effectiveAt` | `orders.${number}.lastPaymentStatus` | `orders.${number}.currentCycle.index` | `orders.${number}.planName` | `orders.${number}.planDescription` | `orders.${number}.planPrice`, 6>>;
|
|
2344
|
-
interface MemberListOrdersOptions {
|
|
2345
|
-
/**
|
|
2346
|
-
* Filter by plan IDs.
|
|
2347
|
-
* @format GUID
|
|
2348
|
-
*/
|
|
2349
|
-
planIds?: string[];
|
|
2350
|
-
/** Filter for orders where auto renewal was canceled. */
|
|
2351
|
-
autoRenewCanceled?: boolean | null;
|
|
2352
|
-
/** Filter by order status. */
|
|
2353
|
-
orderStatuses?: OrderStatusWithLiterals[];
|
|
2354
|
-
/** Filter by payment status. */
|
|
2355
|
-
paymentStatuses?: PaymentStatusWithLiterals[];
|
|
2356
|
-
/**
|
|
2357
|
-
* Limit the number of pricing plans returned. Default limit is 50.
|
|
2358
|
-
* @min 1
|
|
2359
|
-
* @max 50
|
|
2360
|
-
*/
|
|
2361
|
-
limit?: number | null;
|
|
2362
|
-
/** Number of entries to offset. */
|
|
2363
|
-
offset?: number | null;
|
|
2364
|
-
/** Sorting direction (defaults to ASC) and field to sort by. */
|
|
2365
|
-
sorting?: Sorting;
|
|
2366
|
-
/**
|
|
2367
|
-
* Predefined set of fields to return.
|
|
2368
|
-
*
|
|
2369
|
-
* Default: If `fieldSet` is omitted, no order form submission data is returned.
|
|
2370
|
-
*/
|
|
2371
|
-
fieldSet?: SetWithLiterals;
|
|
2372
|
-
}
|
|
2373
|
-
/**
|
|
2374
|
-
* Cancels an order. Recurring orders can be canceled either immediately or at the next payment date. One time orders can only be canceled immediately.
|
|
2375
|
-
*
|
|
2376
|
-
* There may be some operations that continue to be processed before the status of the order is changed to `"CANCELED"`. For example, payments might need to be refunded before the order is fully canceled.
|
|
2377
|
-
*
|
|
2378
|
-
* Canceling during the free trial period: When a buyer cancels their order during the free trial period, the buyer's subscription expires at the end of the free trial period and they won't be billed. The buyer may continue using the benefits until the end of the free trial period.
|
|
2379
|
-
*
|
|
2380
|
-
* >**Note:**
|
|
2381
|
-
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
|
|
2382
|
-
* @param _id - Order ID.
|
|
2383
|
-
* @param effectiveAt - Required. Whether to cancel the order effective immediately or at the next payment date. One-time orders can only be canceled immediately.
|
|
2384
|
-
* @public
|
|
2385
|
-
* @requiredField _id
|
|
2386
|
-
* @requiredField effectiveAt
|
|
2387
|
-
* @param options - Options for requesting a cancellation.
|
|
2388
|
-
* @permissionId PRICING_PLANS.MANAGE_OWN_ORDERS
|
|
2389
|
-
* @applicableIdentity APP
|
|
2390
|
-
* @applicableIdentity MEMBER
|
|
2391
|
-
* @fqn com.wixpress.membership.v2.orders.member.MemberOrdersService.RequestCancellation
|
|
2392
|
-
*/
|
|
2393
|
-
declare function requestCancellation(_id: string, effectiveAt: CancellationEffectiveAtWithLiterals): Promise<void>;
|
|
2394
2313
|
/**
|
|
2395
2314
|
* Creates an online order for a site member.
|
|
2396
2315
|
*
|
|
@@ -2585,5 +2504,86 @@ interface GetPricePreviewOptions {
|
|
|
2585
2504
|
*/
|
|
2586
2505
|
couponCode?: string | null;
|
|
2587
2506
|
}
|
|
2507
|
+
/**
|
|
2508
|
+
* Retrieves an order for the currently logged-in member by ID.
|
|
2509
|
+
* @param _id - Order ID.
|
|
2510
|
+
* @public
|
|
2511
|
+
* @requiredField _id
|
|
2512
|
+
* @param options - Options for getting a logged-in member's order.
|
|
2513
|
+
* @permissionId PRICING_PLANS.READ_OWN_ORDERS
|
|
2514
|
+
* @applicableIdentity APP
|
|
2515
|
+
* @applicableIdentity MEMBER
|
|
2516
|
+
* @returns Requested order.
|
|
2517
|
+
* @fqn com.wixpress.membership.v2.orders.member.MemberOrdersService.GetOrder
|
|
2518
|
+
*/
|
|
2519
|
+
declare function memberGetOrder(_id: string, options?: MemberGetOrderOptions): Promise<NonNullablePaths<Order, `_id` | `planId` | `subscriptionId` | `buyer.memberId` | `buyer.contactId` | `priceDetails.subscription.cycleDuration.unit` | `priceDetails.subtotal` | `priceDetails.discount` | `priceDetails.tax.name` | `priceDetails.tax.includedInPrice` | `priceDetails.tax.rate` | `priceDetails.tax.amount` | `priceDetails.total` | `priceDetails.planPrice` | `priceDetails.currency` | `priceDetails.coupon.code` | `priceDetails.coupon.amount` | `priceDetails.coupon._id` | `pricing.prices` | `pricing.prices.${number}.duration.cycleFrom` | `pricing.prices.${number}.price.subtotal` | `pricing.prices.${number}.price.discount` | `pricing.prices.${number}.price.total` | `pricing.prices.${number}.price.currency` | `pricing.prices.${number}.price.proration` | `type` | `status` | `cancellation.cause` | `cancellation.effectiveAt` | `lastPaymentStatus` | `pausePeriods` | `pausePeriods.${number}.status` | `currentCycle.index` | `planName` | `planDescription` | `planPrice`, 6>>;
|
|
2520
|
+
interface MemberGetOrderOptions {
|
|
2521
|
+
/**
|
|
2522
|
+
* Predefined set of fields to return.
|
|
2523
|
+
*
|
|
2524
|
+
* Default: If `fieldSet` is omitted, no order form submission data is returned.
|
|
2525
|
+
*/
|
|
2526
|
+
fieldSet?: SetWithLiterals;
|
|
2527
|
+
}
|
|
2528
|
+
/**
|
|
2529
|
+
* Retrieves a list of up to 100 pricing plan orders for currently logged-in member.
|
|
2530
|
+
* @public
|
|
2531
|
+
* @param options - Filtering, sorting, and pagination options.
|
|
2532
|
+
* @permissionId PRICING_PLANS.READ_OWN_ORDERS
|
|
2533
|
+
* @applicableIdentity APP
|
|
2534
|
+
* @applicableIdentity MEMBER
|
|
2535
|
+
* @fqn com.wixpress.membership.v2.orders.member.MemberOrdersService.ListOrders
|
|
2536
|
+
*/
|
|
2537
|
+
declare function memberListOrders(options?: MemberListOrdersOptions): Promise<NonNullablePaths<MemberListOrdersResponse, `orders` | `orders.${number}._id` | `orders.${number}.planId` | `orders.${number}.subscriptionId` | `orders.${number}.buyer.memberId` | `orders.${number}.buyer.contactId` | `orders.${number}.priceDetails.singlePaymentForDuration.unit` | `orders.${number}.priceDetails.subtotal` | `orders.${number}.priceDetails.discount` | `orders.${number}.priceDetails.tax.name` | `orders.${number}.priceDetails.tax.includedInPrice` | `orders.${number}.priceDetails.tax.rate` | `orders.${number}.priceDetails.tax.amount` | `orders.${number}.priceDetails.total` | `orders.${number}.priceDetails.planPrice` | `orders.${number}.priceDetails.currency` | `orders.${number}.priceDetails.coupon.code` | `orders.${number}.priceDetails.coupon.amount` | `orders.${number}.priceDetails.coupon._id` | `orders.${number}.type` | `orders.${number}.status` | `orders.${number}.cancellation.cause` | `orders.${number}.cancellation.effectiveAt` | `orders.${number}.lastPaymentStatus` | `orders.${number}.currentCycle.index` | `orders.${number}.planName` | `orders.${number}.planDescription` | `orders.${number}.planPrice`, 6>>;
|
|
2538
|
+
interface MemberListOrdersOptions {
|
|
2539
|
+
/**
|
|
2540
|
+
* Filter by plan IDs.
|
|
2541
|
+
* @format GUID
|
|
2542
|
+
*/
|
|
2543
|
+
planIds?: string[];
|
|
2544
|
+
/** Filter for orders where auto renewal was canceled. */
|
|
2545
|
+
autoRenewCanceled?: boolean | null;
|
|
2546
|
+
/** Filter by order status. */
|
|
2547
|
+
orderStatuses?: OrderStatusWithLiterals[];
|
|
2548
|
+
/** Filter by payment status. */
|
|
2549
|
+
paymentStatuses?: PaymentStatusWithLiterals[];
|
|
2550
|
+
/**
|
|
2551
|
+
* Limit the number of pricing plans returned. Default limit is 50.
|
|
2552
|
+
* @min 1
|
|
2553
|
+
* @max 50
|
|
2554
|
+
*/
|
|
2555
|
+
limit?: number | null;
|
|
2556
|
+
/** Number of entries to offset. */
|
|
2557
|
+
offset?: number | null;
|
|
2558
|
+
/** Sorting direction (defaults to ASC) and field to sort by. */
|
|
2559
|
+
sorting?: Sorting;
|
|
2560
|
+
/**
|
|
2561
|
+
* Predefined set of fields to return.
|
|
2562
|
+
*
|
|
2563
|
+
* Default: If `fieldSet` is omitted, no order form submission data is returned.
|
|
2564
|
+
*/
|
|
2565
|
+
fieldSet?: SetWithLiterals;
|
|
2566
|
+
}
|
|
2567
|
+
/**
|
|
2568
|
+
* Cancels an order. Recurring orders can be canceled either immediately or at the next payment date. One time orders can only be canceled immediately.
|
|
2569
|
+
*
|
|
2570
|
+
* There may be some operations that continue to be processed before the status of the order is changed to `"CANCELED"`. For example, payments might need to be refunded before the order is fully canceled.
|
|
2571
|
+
*
|
|
2572
|
+
* Canceling during the free trial period: When a buyer cancels their order during the free trial period, the buyer's subscription expires at the end of the free trial period and they won't be billed. The buyer may continue using the benefits until the end of the free trial period.
|
|
2573
|
+
*
|
|
2574
|
+
* >**Note:**
|
|
2575
|
+
* >This method requires [visitor or member authentication](https://dev.wix.com/docs/rest/articles/getting-started/access-types-and-permissions).
|
|
2576
|
+
* @param _id - Order ID.
|
|
2577
|
+
* @param effectiveAt - Required. Whether to cancel the order effective immediately or at the next payment date. One-time orders can only be canceled immediately.
|
|
2578
|
+
* @public
|
|
2579
|
+
* @requiredField _id
|
|
2580
|
+
* @requiredField effectiveAt
|
|
2581
|
+
* @param options - Options for requesting a cancellation.
|
|
2582
|
+
* @permissionId PRICING_PLANS.MANAGE_OWN_ORDERS
|
|
2583
|
+
* @applicableIdentity APP
|
|
2584
|
+
* @applicableIdentity MEMBER
|
|
2585
|
+
* @fqn com.wixpress.membership.v2.orders.member.MemberOrdersService.RequestCancellation
|
|
2586
|
+
*/
|
|
2587
|
+
declare function requestCancellation(_id: string, effectiveAt: CancellationEffectiveAtWithLiterals): Promise<void>;
|
|
2588
2588
|
|
|
2589
2589
|
export { type AccountInfo, type AccountInfoMetadata, type ActionEvent, type ApplicationError, type ApplyCouponRequest, type ApplyCouponResponse, type BaseEventMetadata, type BulkActionMetadata, type BulkOrderResult, type BulkPauseOrderRequest, type BulkPauseOrderResponse, type BulkResumeOrderRequest, type BulkResumeOrderResponse, type Buyer, type CancelOrderRequest, type CancelOrderResponse, type Cancellation, CancellationCause, type CancellationCauseWithLiterals, CancellationEffectiveAt, type CancellationEffectiveAtWithLiterals, type Captcha, type ChangeStartDateRequest, type ChangeStartDateResponse, type Coupon, type CouponsError, type CreateExternalOrderRequest, type CreateExternalOrderResponse, type CreateGuestOnlineOrderRequest, type CreateGuestOnlineOrderResponse, type CreateOfflineOrderApplicationErrors, type CreateOfflineOrderOptions, type CreateOfflineOrderRequest, type CreateOfflineOrderResponse, type CreateOfflineOrderValidationErrors, type CreateOnlineOrderApplicationErrors, type CreateOnlineOrderOptions, type CreateOnlineOrderRequest, type CreateOnlineOrderResponse, type CreateOnlineOrderValidationErrors, type CurrentCycle, type CursorPaging, type Cursors, type DomainEvent, type DomainEventBodyOneOf, type Duration, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type Fee, type FormData, type GetAvailableOrderActionsRequest, type GetAvailableOrderActionsResponse, type GetGuestOnlineOrderPreviewRequest, type GetGuestOnlineOrderPreviewResponse, type GetOfflineOrderPreviewApplicationErrors, type GetOfflineOrderPreviewOptions, type GetOfflineOrderPreviewRequest, type GetOfflineOrderPreviewResponse, type GetOfflineOrderPreviewValidationErrors, type GetOnlineOrderPreviewApplicationErrors, type GetOnlineOrderPreviewOptions, type GetOnlineOrderPreviewRequest, type GetOnlineOrderPreviewResponse, type GetOnlineOrderPreviewValidationErrors, type GetOrderRequest, type GetOrderResponse, type GetOrdersStatsRequest, type GetOrdersStatsResponse, type GetPricePreviewApplicationErrors, type GetPricePreviewOptions, type GetPricePreviewRequest, type GetPricePreviewResponse, type Guest, type IdentificationData, type IdentificationDataIdOneOf, type ItemMetadata, type ListOrdersRequest, type ListOrdersResponse, type ManagementGetOrderOptions, type ManagementListOrdersOptions, type MarkAsPaidRequest, type MarkAsPaidResponse, type MemberGetOrderOptions, type MemberGetOrderRequest, type MemberGetOrderResponse, type MemberListOrdersOptions, type MemberListOrdersRequest, type MemberListOrdersResponse, type MessageEnvelope, type OnBehalf, type Order, type OrderAutoRenewCanceled, type OrderAutoRenewCanceledEnvelope, type OrderCanceled, type OrderCanceledEnvelope, type OrderCreatedEnvelope, type OrderCycle, type OrderCycleStarted, type OrderCycleStartedEnvelope, type OrderEndDatePostponed, type OrderEndDatePostponedEnvelope, type OrderEnded, type OrderEndedEnvelope, type OrderMarkedAsPaid, type OrderMarkedAsPaidEnvelope, OrderMethod, type OrderMethodWithLiterals, type OrderPaused, type OrderPausedEnvelope, type OrderPurchased, type OrderPurchasedEnvelope, type OrderResumed, type OrderResumedEnvelope, type OrderStartDateChanged, type OrderStartDateChangedEnvelope, type OrderStarted, type OrderStartedEnvelope, OrderStatus, type OrderStatusWithLiterals, OrderType, type OrderTypeWithLiterals, type OrderUpdatedEnvelope, type OrdersQueryOrdersRequest, type OrdersQueryOrdersResponse, type Paging, type PagingMetadataV2, type PauseOrderRequest, type PauseOrderResponse, type PausePeriod, PaymentStatus, type PaymentStatusWithLiterals, PeriodUnit, type PeriodUnitWithLiterals, type PostponeEndDateRequest, type PostponeEndDateResponse, type Price, type PriceDetails, type PriceDetailsPricingModelOneOf, type PriceDuration, type PricingDetails, type PricingDetailsPricingModelOneOf, type QueryOrdersRequest, type QueryOrdersResponse, type QueryV2, type QueryV2PagingMethodOneOf, ReasonNotSuspendable, type ReasonNotSuspendableWithLiterals, type Recurrence, type RequestCancellationRequest, type RequestCancellationResponse, type RestoreInfo, type ResumeOrderRequest, type ResumeOrderResponse, Set, type SetSubmissionRequest, type SetSubmissionResponse, type SetWithLiterals, SortOrder, type SortOrderWithLiterals, type Sorting, type SpannedPrice, Status, type StatusWithLiterals, type Tax, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, cancelOrder, createOfflineOrder, createOnlineOrder, getOfflineOrderPreview, getOnlineOrderPreview, getPricePreview, managementGetOrder, managementListOrders, markAsPaid, memberGetOrder, memberListOrders, onOrderAutoRenewCanceled, onOrderCanceled, onOrderCreated, onOrderCycleStarted, onOrderEndDatePostponed, onOrderEnded, onOrderMarkedAsPaid, onOrderPaused, onOrderPurchased, onOrderResumed, onOrderStartDateChanged, onOrderStarted, onOrderUpdated, pauseOrder, postponeEndDate, requestCancellation, resumeOrder };
|