@wix/himalaya-cli 0.2004.0 → 0.2005.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/bookings-v2/src/extensions.d.ts +33 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/stores-v1/src/extensions.d.ts +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/stores-v1/src/options.d.ts +4 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/stores-v1/src/product-details.d.ts +58 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/_shared/types.generated.d.ts +2336 -26
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/addOns.generated.d.ts +169 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/attendance.generated.d.ts +150 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/attributeDefinition.generated.d.ts +124 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/attributeValue.generated.d.ts +107 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/availabilityCalendar.generated.d.ts +66 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/availabilityTimeSlots.generated.d.ts +115 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/bookingFees.generated.d.ts +82 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/bookingPolicies.generated.d.ts +174 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/bookingPolicySnapshots.generated.d.ts +54 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/bookings.generated.d.ts +732 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/bookingsSettings.generated.d.ts +54 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/catalogSearch.generated.d.ts +158 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/categories.generated.d.ts +74 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/categoriesV2.generated.d.ts +122 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/eventTimeSlots.generated.d.ts +76 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/extendedBookings.generated.d.ts +239 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/externalCalendars.generated.d.ts +229 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/index.generated.d.ts +28 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/multiServiceAvailabilityTimeSlots.generated.d.ts +97 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/pricing.generated.d.ts +138 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/relatedProducts.generated.d.ts +78 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/resourceTypes.generated.d.ts +109 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/resources.generated.d.ts +210 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/serviceOptionsAndVariants.generated.d.ts +194 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/services.generated.d.ts +642 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/staffMemberSettings.generated.d.ts +46 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/staffMembers.generated.d.ts +399 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/bookings/timeSlotsConfiguration.generated.d.ts +93 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/calendar/conferencing.generated.d.ts +200 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/calendar/eventViews.generated.d.ts +20 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/calendar/events.generated.d.ts +355 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/calendar/index.generated.d.ts +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/calendar/participations.generated.d.ts +98 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/calendar/scheduleTimeFrames.generated.d.ts +45 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/calendar/schedules.generated.d.ts +123 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/categories.generated.d.ts +15 -7
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/comments.generated.d.ts +32 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/contentRevisions.generated.d.ts +27 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/comments/widgets.generated.d.ts +20 -13
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/abandonedCheckouts.generated.d.ts +215 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/backInStockNotifications.generated.d.ts +148 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/backInStockSettings.generated.d.ts +56 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/cart.generated.d.ts +380 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/cartV2.generated.d.ts +529 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/checkout.generated.d.ts +461 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/checkoutContent.generated.d.ts +27 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/checkoutSettings.generated.d.ts +137 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/checkoutTemplates.generated.d.ts +189 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/contactTaxDetails.generated.d.ts +185 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/currencies.generated.d.ts +62 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/currentCart.generated.d.ts +326 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/currentCartV2.generated.d.ts +442 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/deliveryProfile.generated.d.ts +399 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/deliverySolutions.generated.d.ts +110 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/discountRules.generated.d.ts +186 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/discountsCustomTrigger.generated.d.ts +22 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/draftOrders.generated.d.ts +877 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/draftSubscriptionContracts.generated.d.ts +301 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/ecommerceSettings.generated.d.ts +24 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/giftVouchers.generated.d.ts +73 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/index.generated.d.ts +45 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/localDeliveryOptions.generated.d.ts +99 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/manualTaxMappings.generated.d.ts +207 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/orderBilling.generated.d.ts +399 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/orderFulfillments.generated.d.ts +137 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/orderInvoices.generated.d.ts +80 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/orderPaymentRequests.generated.d.ts +171 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/orderTransactions.generated.d.ts +167 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/orders.generated.d.ts +695 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/ordersSettings.generated.d.ts +39 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/recommendations.generated.d.ts +57 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/shippingOptions.generated.d.ts +144 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/shippoConfigurations.generated.d.ts +178 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/subscriptionContracts.generated.d.ts +209 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/taxCalculation.generated.d.ts +115 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/taxExemptGroups.generated.d.ts +218 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/taxGroups.generated.d.ts +140 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/taxRegions.generated.d.ts +126 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/taxSettings.generated.d.ts +38 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/tipSettings.generated.d.ts +116 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/tippableStaff.generated.d.ts +28 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/tips.generated.d.ts +221 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/totalsCalculator.generated.d.ts +141 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/ecom/wishlists.generated.d.ts +57 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/pricing-plans/index.generated.d.ts +7 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/pricing-plans/orders.generated.d.ts +368 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/pricing-plans/planBenefits.generated.d.ts +94 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/pricing-plans/plans.generated.d.ts +235 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/pricing-plans/plansV3.generated.d.ts +266 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/pricing-plans/pricingPlansSettings.generated.d.ts +48 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/pricing-plans/pricingVariantCategories.generated.d.ts +92 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/brandsV3.generated.d.ts +211 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/catalogImportsV3.generated.d.ts +382 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/catalogVersioning.generated.d.ts +17 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/collections.generated.d.ts +52 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/customizationsV3.generated.d.ts +292 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/index.generated.d.ts +18 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/infoSectionsV3.generated.d.ts +306 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/inventory.generated.d.ts +126 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/inventoryItemsV3.generated.d.ts +389 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/productGroupsV3.generated.d.ts +282 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/products.generated.d.ts +678 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/productsV3.generated.d.ts +1069 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/promotionsV3.generated.d.ts +232 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/readOnlyVariantsV3.generated.d.ts +93 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/ribbonsV3.generated.d.ts +211 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/storesLocationsV3.generated.d.ts +60 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/subscriptionOptions.generated.d.ts +223 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk-auto/stores/wishlist.generated.d.ts +37 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +2 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-bookings.mjs +1036 -4
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-calendar.mjs +286 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-comments.mjs +23 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-ecom.mjs +1663 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-pricing-plans.mjs +336 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-stores.mjs +1029 -11
- package/dist/authoring-runtime/node_modules/@wix/himalaya/package.json +8 -4
- package/dist/cli.mjs +8 -8
- package/guides/importable-sdks.md +1 -0
- package/guides/sdk-reference.json +15672 -8927
- package/guides/wix-api-usage.md +28 -0
- package/package.json +2 -2
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
import { type WixCallOptions } from "../_shared/runtime.generated.js";
|
|
2
|
+
import type { AddressLocation, Duration, PagingMetadataV2, Recurrence } from "../_shared/types.generated.js";
|
|
3
|
+
export type { AddressLocation, Cursors, Duration, PagingMetadataV2, Recurrence } from "../_shared/types.generated.js";
|
|
4
|
+
export type { WixCallOptions } from "../_shared/runtime.generated.js";
|
|
5
|
+
export interface Buyer {
|
|
6
|
+
memberId?: string;
|
|
7
|
+
contactId?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface CancelOrderRequest {
|
|
10
|
+
id?: string;
|
|
11
|
+
effectiveAt?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface CancelOrderResponse {
|
|
14
|
+
}
|
|
15
|
+
export interface Cancellation {
|
|
16
|
+
requestedDate?: string;
|
|
17
|
+
cause?: string;
|
|
18
|
+
effectiveAt?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface Coupon {
|
|
21
|
+
code?: string;
|
|
22
|
+
amount?: string;
|
|
23
|
+
id?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface CreateOfflineOrderRequest {
|
|
26
|
+
planId?: string;
|
|
27
|
+
memberId?: string;
|
|
28
|
+
startDate?: string;
|
|
29
|
+
paid?: boolean;
|
|
30
|
+
couponCode?: string;
|
|
31
|
+
submissionId?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface CreateOfflineOrderResponse {
|
|
34
|
+
order?: Order;
|
|
35
|
+
}
|
|
36
|
+
export interface CreateOnlineOrderRequest {
|
|
37
|
+
planId?: string;
|
|
38
|
+
startDate?: string;
|
|
39
|
+
couponCode?: string;
|
|
40
|
+
onBehalf?: OnBehalf;
|
|
41
|
+
submissionId?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface CreateOnlineOrderResponse {
|
|
44
|
+
order?: Order;
|
|
45
|
+
}
|
|
46
|
+
export interface CurrentCycle {
|
|
47
|
+
index?: number;
|
|
48
|
+
startedDate?: string;
|
|
49
|
+
endedDate?: string;
|
|
50
|
+
}
|
|
51
|
+
export interface FormData {
|
|
52
|
+
formId?: string;
|
|
53
|
+
submissionId?: string;
|
|
54
|
+
submissionData?: Record<string, unknown>;
|
|
55
|
+
}
|
|
56
|
+
export interface GetOfflineOrderPreviewRequest {
|
|
57
|
+
planId?: string;
|
|
58
|
+
memberId?: string;
|
|
59
|
+
startDate?: string;
|
|
60
|
+
couponCode?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface GetOfflineOrderPreviewResponse {
|
|
63
|
+
order?: Order;
|
|
64
|
+
purchaseLimitExceeded?: boolean;
|
|
65
|
+
}
|
|
66
|
+
export interface GetOnlineOrderPreviewRequest {
|
|
67
|
+
planId?: string;
|
|
68
|
+
startDate?: string;
|
|
69
|
+
couponCode?: string;
|
|
70
|
+
}
|
|
71
|
+
export interface GetOnlineOrderPreviewResponse {
|
|
72
|
+
order?: Order;
|
|
73
|
+
purchaseLimitExceeded?: boolean;
|
|
74
|
+
}
|
|
75
|
+
export interface GetOrderRequest {
|
|
76
|
+
id?: string;
|
|
77
|
+
fieldSet?: string;
|
|
78
|
+
}
|
|
79
|
+
export interface GetOrderResponse {
|
|
80
|
+
order?: Order;
|
|
81
|
+
}
|
|
82
|
+
export interface GetPricePreviewRequest {
|
|
83
|
+
planId?: string;
|
|
84
|
+
couponCode?: string;
|
|
85
|
+
}
|
|
86
|
+
export interface GetPricePreviewResponse {
|
|
87
|
+
price?: PriceDetails;
|
|
88
|
+
prices?: SpannedPrice[];
|
|
89
|
+
}
|
|
90
|
+
export interface ListOrdersRequest {
|
|
91
|
+
buyerIds?: string[];
|
|
92
|
+
planIds?: string[];
|
|
93
|
+
autoRenewCanceled?: boolean;
|
|
94
|
+
orderStatuses?: string[];
|
|
95
|
+
paymentStatuses?: string[];
|
|
96
|
+
limit?: number;
|
|
97
|
+
offset?: number;
|
|
98
|
+
sorting?: Sorting;
|
|
99
|
+
fieldSet?: string;
|
|
100
|
+
}
|
|
101
|
+
export interface ListOrdersResponse {
|
|
102
|
+
orders?: Order[];
|
|
103
|
+
pagingMetadata?: PagingMetadataV2;
|
|
104
|
+
}
|
|
105
|
+
export interface MarkAsPaidRequest {
|
|
106
|
+
id?: string;
|
|
107
|
+
}
|
|
108
|
+
export interface MarkAsPaidResponse {
|
|
109
|
+
}
|
|
110
|
+
export interface MemberGetOrderRequest {
|
|
111
|
+
id?: string;
|
|
112
|
+
fieldSet?: string;
|
|
113
|
+
}
|
|
114
|
+
export interface MemberGetOrderResponse {
|
|
115
|
+
order?: Order;
|
|
116
|
+
}
|
|
117
|
+
export interface MemberListOrdersRequest {
|
|
118
|
+
planIds?: string[];
|
|
119
|
+
autoRenewCanceled?: boolean;
|
|
120
|
+
orderStatuses?: string[];
|
|
121
|
+
paymentStatuses?: string[];
|
|
122
|
+
limit?: number;
|
|
123
|
+
offset?: number;
|
|
124
|
+
sorting?: Sorting;
|
|
125
|
+
fieldSet?: string;
|
|
126
|
+
}
|
|
127
|
+
export interface MemberListOrdersResponse {
|
|
128
|
+
orders?: Order[];
|
|
129
|
+
pagingMetadata?: PagingMetadataV2;
|
|
130
|
+
}
|
|
131
|
+
export interface OnBehalf {
|
|
132
|
+
memberId?: string;
|
|
133
|
+
orderMethod?: string;
|
|
134
|
+
}
|
|
135
|
+
export interface Order {
|
|
136
|
+
id?: string;
|
|
137
|
+
planId?: string;
|
|
138
|
+
subscriptionId?: string;
|
|
139
|
+
wixPayOrderId?: string;
|
|
140
|
+
buyer?: Buyer;
|
|
141
|
+
priceDetails?: PriceDetails;
|
|
142
|
+
pricing?: PricingDetails;
|
|
143
|
+
type?: string;
|
|
144
|
+
status?: string;
|
|
145
|
+
autoRenewCanceled?: boolean;
|
|
146
|
+
cancellation?: Cancellation;
|
|
147
|
+
lastPaymentStatus?: string;
|
|
148
|
+
startDate?: string;
|
|
149
|
+
endDate?: string;
|
|
150
|
+
pausePeriods?: PausePeriod[];
|
|
151
|
+
freeTrialDays?: number;
|
|
152
|
+
earliestEndDate?: string;
|
|
153
|
+
currentCycle?: CurrentCycle;
|
|
154
|
+
planName?: string;
|
|
155
|
+
planDescription?: string;
|
|
156
|
+
planPrice?: string;
|
|
157
|
+
createdDate?: string;
|
|
158
|
+
updatedDate?: string;
|
|
159
|
+
formData?: FormData;
|
|
160
|
+
}
|
|
161
|
+
export interface PauseOrderRequest {
|
|
162
|
+
id?: string;
|
|
163
|
+
}
|
|
164
|
+
export interface PauseOrderResponse {
|
|
165
|
+
}
|
|
166
|
+
export interface PausePeriod {
|
|
167
|
+
status?: string;
|
|
168
|
+
pauseDate?: string;
|
|
169
|
+
resumeDate?: string;
|
|
170
|
+
}
|
|
171
|
+
export interface PostponeEndDateRequest {
|
|
172
|
+
id?: string;
|
|
173
|
+
endDate?: string;
|
|
174
|
+
}
|
|
175
|
+
export interface PostponeEndDateResponse {
|
|
176
|
+
}
|
|
177
|
+
export interface Price {
|
|
178
|
+
subtotal?: string;
|
|
179
|
+
coupon?: Coupon;
|
|
180
|
+
discount?: string;
|
|
181
|
+
tax?: Tax;
|
|
182
|
+
total?: string;
|
|
183
|
+
currency?: string;
|
|
184
|
+
proration?: string;
|
|
185
|
+
}
|
|
186
|
+
export interface PriceDetails {
|
|
187
|
+
subscription?: Recurrence;
|
|
188
|
+
singlePaymentForDuration?: Duration;
|
|
189
|
+
singlePaymentUnlimited?: boolean;
|
|
190
|
+
subtotal?: string;
|
|
191
|
+
discount?: string;
|
|
192
|
+
tax?: Tax;
|
|
193
|
+
total?: string;
|
|
194
|
+
planPrice?: string;
|
|
195
|
+
currency?: string;
|
|
196
|
+
freeTrialDays?: number;
|
|
197
|
+
coupon?: Coupon;
|
|
198
|
+
}
|
|
199
|
+
export interface PriceDuration {
|
|
200
|
+
cycleFrom?: number;
|
|
201
|
+
numberOfCycles?: number;
|
|
202
|
+
}
|
|
203
|
+
export interface PricingDetails {
|
|
204
|
+
subscription?: Recurrence;
|
|
205
|
+
singlePaymentForDuration?: Duration;
|
|
206
|
+
singlePaymentUnlimited?: boolean;
|
|
207
|
+
prices?: SpannedPrice[];
|
|
208
|
+
}
|
|
209
|
+
export interface RequestCancellationRequest {
|
|
210
|
+
id?: string;
|
|
211
|
+
effectiveAt?: string;
|
|
212
|
+
}
|
|
213
|
+
export interface RequestCancellationResponse {
|
|
214
|
+
}
|
|
215
|
+
export interface ResumeOrderRequest {
|
|
216
|
+
id?: string;
|
|
217
|
+
}
|
|
218
|
+
export interface ResumeOrderResponse {
|
|
219
|
+
}
|
|
220
|
+
export interface Sorting {
|
|
221
|
+
fieldName?: string;
|
|
222
|
+
order?: string;
|
|
223
|
+
origin?: AddressLocation;
|
|
224
|
+
}
|
|
225
|
+
export interface SpannedPrice {
|
|
226
|
+
duration?: PriceDuration;
|
|
227
|
+
price?: Price;
|
|
228
|
+
}
|
|
229
|
+
export interface Tax {
|
|
230
|
+
name?: string;
|
|
231
|
+
includedInPrice?: boolean;
|
|
232
|
+
rate?: string;
|
|
233
|
+
amount?: string;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Cancels an existing order.
|
|
237
|
+
*
|
|
238
|
+
* @permissionId PRICING_PLANS.MANAGE_ORDERS
|
|
239
|
+
* @fqn com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder
|
|
240
|
+
*
|
|
241
|
+
* POST /pricing-plans/v2/orders/{id}/cancel
|
|
242
|
+
*/
|
|
243
|
+
export declare function cancelOrder(req: CancelOrderRequest, opts?: WixCallOptions): Promise<CancelOrderResponse>;
|
|
244
|
+
/**
|
|
245
|
+
* Creates an order for a buyer who purchased the plan with an offline transaction.
|
|
246
|
+
*
|
|
247
|
+
* @permissionId PRICING_PLANS.REGISTER_OFFLINE_ORDERS
|
|
248
|
+
* @fqn com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder
|
|
249
|
+
*
|
|
250
|
+
* POST /pricing-plans/v2/checkout/orders/offline
|
|
251
|
+
*/
|
|
252
|
+
export declare function createOfflineOrder(req?: CreateOfflineOrderRequest, opts?: WixCallOptions): Promise<CreateOfflineOrderResponse>;
|
|
253
|
+
/**
|
|
254
|
+
* Creates an online order for a site member.
|
|
255
|
+
*
|
|
256
|
+
* @fqn com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder
|
|
257
|
+
*
|
|
258
|
+
* POST /pricing-plans/v2/checkout/orders/online
|
|
259
|
+
*/
|
|
260
|
+
export declare function createOnlineOrder(req?: CreateOnlineOrderRequest, opts?: WixCallOptions): Promise<CreateOnlineOrderResponse>;
|
|
261
|
+
/**
|
|
262
|
+
* Performs a dry run of a purchase and provides an order preview.
|
|
263
|
+
*
|
|
264
|
+
* @permissionId PRICING_PLANS.MANAGE_ORDERS
|
|
265
|
+
* @fqn com.wixpress.membership.v2.orders.CheckoutService.GetOfflineOrderPreview
|
|
266
|
+
*
|
|
267
|
+
* POST /pricing-plans/v2/checkout/orders/preview-offline
|
|
268
|
+
*/
|
|
269
|
+
export declare function getOfflineOrderPreview(req?: GetOfflineOrderPreviewRequest, opts?: WixCallOptions): Promise<GetOfflineOrderPreviewResponse>;
|
|
270
|
+
/**
|
|
271
|
+
* Returns an `order` object that represents a potential online order for a site member.
|
|
272
|
+
*
|
|
273
|
+
* @permissionId PRICING_PLANS.PURCHASE_PLANS
|
|
274
|
+
* @fqn com.wixpress.membership.v2.orders.CheckoutService.GetOnlineOrderPreview
|
|
275
|
+
*
|
|
276
|
+
* POST /pricing-plans/v2/checkout/orders/preview-online
|
|
277
|
+
*/
|
|
278
|
+
export declare function getOnlineOrderPreview(req?: GetOnlineOrderPreviewRequest, opts?: WixCallOptions): Promise<GetOnlineOrderPreviewResponse>;
|
|
279
|
+
/**
|
|
280
|
+
* Retrieves a plan's pricing.
|
|
281
|
+
*
|
|
282
|
+
* @permissionId PRICING_PLANS.READ_PUBLIC_PLANS
|
|
283
|
+
* @fqn com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview
|
|
284
|
+
*
|
|
285
|
+
* POST /pricing-plans/v2/checkout/orders/price-preview
|
|
286
|
+
*/
|
|
287
|
+
export declare function getPricePreview(req?: GetPricePreviewRequest, opts?: WixCallOptions): Promise<GetPricePreviewResponse>;
|
|
288
|
+
/**
|
|
289
|
+
* Retrieves an order by ID.
|
|
290
|
+
*
|
|
291
|
+
* @permissionId PRICING_PLANS.READ_ORDERS
|
|
292
|
+
* @fqn com.wixpress.membership.v2.orders.OrderManagementService.GetOrder
|
|
293
|
+
*
|
|
294
|
+
* GET /pricing-plans/v2/orders/{id}
|
|
295
|
+
*/
|
|
296
|
+
export declare function managementGetOrder(req: GetOrderRequest, opts?: WixCallOptions): Promise<GetOrderResponse>;
|
|
297
|
+
/**
|
|
298
|
+
* Retrieves a list of up to 50 pricing plan orders and details, given the specified sorting and filtering.
|
|
299
|
+
*
|
|
300
|
+
* @permissionId PRICING_PLANS.READ_ORDERS
|
|
301
|
+
* @fqn com.wixpress.membership.v2.orders.OrderManagementService.ListOrders
|
|
302
|
+
*
|
|
303
|
+
* GET /pricing-plans/v2/orders
|
|
304
|
+
*/
|
|
305
|
+
export declare function managementListOrders(req?: ListOrdersRequest, opts?: WixCallOptions): Promise<ListOrdersResponse>;
|
|
306
|
+
/**
|
|
307
|
+
* Marks an offline order as paid. > __Note__: Marking separate payment cycles as paid is not yet supported. The entire order will be marked as paid. Subsequent offline payments do trigger events and emails, but are not registered as additional offline payments.
|
|
308
|
+
*
|
|
309
|
+
* @permissionId PRICING_PLANS.MANAGE_ORDERS
|
|
310
|
+
* @fqn com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid
|
|
311
|
+
*
|
|
312
|
+
* POST /pricing-plans/v2/orders/{id}/mark-as-paid
|
|
313
|
+
*/
|
|
314
|
+
export declare function markAsPaid(req: MarkAsPaidRequest, opts?: WixCallOptions): Promise<MarkAsPaidResponse>;
|
|
315
|
+
/**
|
|
316
|
+
* Retrieves an order for the currently logged-in member by ID.
|
|
317
|
+
*
|
|
318
|
+
* @permissionId PRICING_PLANS.READ_OWN_ORDERS
|
|
319
|
+
* @fqn com.wixpress.membership.v2.orders.member.MemberOrdersService.GetOrder
|
|
320
|
+
*
|
|
321
|
+
* GET /pricing-plans/v2/member/orders/{id}
|
|
322
|
+
*/
|
|
323
|
+
export declare function memberGetOrder(req: MemberGetOrderRequest, opts?: WixCallOptions): Promise<MemberGetOrderResponse>;
|
|
324
|
+
/**
|
|
325
|
+
* Retrieves a list of up to 100 pricing plan orders for currently logged-in member.
|
|
326
|
+
*
|
|
327
|
+
* @permissionId PRICING_PLANS.READ_OWN_ORDERS
|
|
328
|
+
* @fqn com.wixpress.membership.v2.orders.member.MemberOrdersService.ListOrders
|
|
329
|
+
*
|
|
330
|
+
* GET /pricing-plans/v2/member/orders
|
|
331
|
+
*/
|
|
332
|
+
export declare function memberListOrders(req?: MemberListOrdersRequest, opts?: WixCallOptions): Promise<MemberListOrdersResponse>;
|
|
333
|
+
/**
|
|
334
|
+
* Pauses an order. Calling this method changes the order status to `"PAUSED"` and updates the `pausePeriods` array.
|
|
335
|
+
*
|
|
336
|
+
* @permissionId PRICING_PLANS.MANAGE_ORDERS
|
|
337
|
+
* @fqn com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder
|
|
338
|
+
*
|
|
339
|
+
* POST /pricing-plans/v2/orders/{id}/pause
|
|
340
|
+
*/
|
|
341
|
+
export declare function pauseOrder(req: PauseOrderRequest, opts?: WixCallOptions): Promise<PauseOrderResponse>;
|
|
342
|
+
/**
|
|
343
|
+
* Extends the duration of a pricing plan order by postponing the order's `endDate`. Postponing the end date of an order does not impact payments.
|
|
344
|
+
*
|
|
345
|
+
* @permissionId PRICING_PLANS.MANAGE_ORDERS
|
|
346
|
+
* @fqn com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate
|
|
347
|
+
*
|
|
348
|
+
* PATCH /pricing-plans/v2/orders/{id}
|
|
349
|
+
*/
|
|
350
|
+
export declare function postponeEndDate(req: PostponeEndDateRequest, opts?: WixCallOptions): Promise<PostponeEndDateResponse>;
|
|
351
|
+
/**
|
|
352
|
+
* Cancels an order. Recurring orders can be canceled either immediately or at the next payment date. One time orders can only be canceled immediately.
|
|
353
|
+
*
|
|
354
|
+
* @permissionId PRICING_PLANS.MANAGE_OWN_ORDERS
|
|
355
|
+
* @fqn com.wixpress.membership.v2.orders.member.MemberOrdersService.RequestCancellation
|
|
356
|
+
*
|
|
357
|
+
* POST /pricing-plans/v2/member/orders/{id}/cancel
|
|
358
|
+
*/
|
|
359
|
+
export declare function requestCancellation(req: RequestCancellationRequest, opts?: WixCallOptions): Promise<RequestCancellationResponse>;
|
|
360
|
+
/**
|
|
361
|
+
* Resumes a paused order. For orders with recurring payments, it also restarts the payment schedule.
|
|
362
|
+
*
|
|
363
|
+
* @permissionId PRICING_PLANS.MANAGE_ORDERS
|
|
364
|
+
* @fqn com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder
|
|
365
|
+
*
|
|
366
|
+
* POST /pricing-plans/v2/orders/{id}/resume
|
|
367
|
+
*/
|
|
368
|
+
export declare function resumeOrder(req: ResumeOrderRequest, opts?: WixCallOptions): Promise<ResumeOrderResponse>;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { type WixCallOptions } from "../_shared/runtime.generated.js";
|
|
2
|
+
import type { ExtendedFields, Perk, PricingVariant, PurchaseLimit, StartDateSettings, Tags } from "../_shared/types.generated.js";
|
|
3
|
+
export type { BillingTerms, CyclesCompletedDetails, DateRangeOptions, DayOfMonthOptions, ExtendedFields, Fee, FeeOverride, FeeOverrides, FixedAmountOption, FixedAmountOptions, FixedDateOptions, FixedPriceOptions, FlatRate, PercentageDiscountOptions, Perk, PriceOverride, PriceOverrides, PricingStrategy, PricingVariant, PurchaseConditions, PurchaseLimit, SpecificMembersOptions, StartDateSettings, TagList, Tags, V3Duration } from "../_shared/types.generated.js";
|
|
4
|
+
export type { WixCallOptions } from "../_shared/runtime.generated.js";
|
|
5
|
+
export interface BenefitDistributionSettings {
|
|
6
|
+
customScheduleOptions?: CustomScheduleOptions;
|
|
7
|
+
distributionStrategyType?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface BenefitInfo {
|
|
10
|
+
externalId?: string;
|
|
11
|
+
category?: string;
|
|
12
|
+
providerAppId?: string;
|
|
13
|
+
poolDefinitionId?: string;
|
|
14
|
+
itemSetId?: string;
|
|
15
|
+
price?: string;
|
|
16
|
+
creditConfiguration?: CreditConfiguration;
|
|
17
|
+
benefitKey?: string;
|
|
18
|
+
displayName?: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface CreditConfiguration {
|
|
22
|
+
amount?: string;
|
|
23
|
+
unitDisplayName?: string;
|
|
24
|
+
unitType?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface CustomScheduleOptions {
|
|
27
|
+
cycleDuration?: Duration;
|
|
28
|
+
}
|
|
29
|
+
export interface Duration {
|
|
30
|
+
unit?: string;
|
|
31
|
+
count?: number;
|
|
32
|
+
}
|
|
33
|
+
export interface Image {
|
|
34
|
+
id?: string;
|
|
35
|
+
height?: number;
|
|
36
|
+
width?: number;
|
|
37
|
+
altText?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface ItemIdentifier {
|
|
40
|
+
externalId?: string;
|
|
41
|
+
category?: string;
|
|
42
|
+
providerAppId?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface ListPlansByItemIdentifierRequest {
|
|
45
|
+
itemIdentifier?: ItemIdentifier;
|
|
46
|
+
targetDate?: string;
|
|
47
|
+
count?: number;
|
|
48
|
+
}
|
|
49
|
+
export interface ListPlansByItemIdentifierResponse {
|
|
50
|
+
planBenefits?: PlanBenefit[];
|
|
51
|
+
}
|
|
52
|
+
export interface Plan {
|
|
53
|
+
id?: string;
|
|
54
|
+
revision?: string;
|
|
55
|
+
createdDate?: string;
|
|
56
|
+
updatedDate?: string;
|
|
57
|
+
name?: string;
|
|
58
|
+
description?: string;
|
|
59
|
+
image?: Image;
|
|
60
|
+
slug?: string;
|
|
61
|
+
termsAndConditions?: string;
|
|
62
|
+
maxPurchasesPerBuyer?: number;
|
|
63
|
+
pricingVariants?: PricingVariant[];
|
|
64
|
+
perks?: Perk[];
|
|
65
|
+
visibility?: string;
|
|
66
|
+
buyable?: boolean;
|
|
67
|
+
formId?: string;
|
|
68
|
+
buyerCanCancel?: boolean;
|
|
69
|
+
currency?: string;
|
|
70
|
+
purchaseLimits?: PurchaseLimit[];
|
|
71
|
+
benefitDistributionSettings?: BenefitDistributionSettings;
|
|
72
|
+
startDateSettings?: StartDateSettings;
|
|
73
|
+
tags?: Tags;
|
|
74
|
+
extendedFields?: ExtendedFields;
|
|
75
|
+
}
|
|
76
|
+
export interface PlanBenefit {
|
|
77
|
+
planInfo?: PlanInfo;
|
|
78
|
+
benefitInfo?: BenefitInfo;
|
|
79
|
+
}
|
|
80
|
+
export interface PlanInfo {
|
|
81
|
+
plan?: Plan;
|
|
82
|
+
nextStartDate?: string;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Returns plans associated with the provided item identifier that are available for purchase.
|
|
86
|
+
*
|
|
87
|
+
* @scope visitor — an anonymous visitor session is enough.
|
|
88
|
+
* @permissionId PRICING_PLANS.ELIGIBLE_PLANS_READ
|
|
89
|
+
* @permissionId pricing_plans:v3:plan_benefit:read_on_behalf
|
|
90
|
+
* @fqn wix.pricing_plans.v3.plan_benefit.PlanBenefitService.ListPlansByItemIdentifier
|
|
91
|
+
*
|
|
92
|
+
* POST /pricing-plan-benefits/v3/plan-benefits/list-plans-by-item-identifier
|
|
93
|
+
*/
|
|
94
|
+
export declare function listPlansByItemIdentifier(req?: ListPlansByItemIdentifierRequest, opts?: WixCallOptions): Promise<ListPlansByItemIdentifierResponse>;
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { type WixCallOptions } from "../_shared/runtime.generated.js";
|
|
2
|
+
import type { AddressLocation, Duration, Paging, PagingMetadataV2, Recurrence } from "../_shared/types.generated.js";
|
|
3
|
+
export type { AddressLocation, Cursors, Duration, Paging, PagingMetadataV2, Recurrence } from "../_shared/types.generated.js";
|
|
4
|
+
export type { WixCallOptions } from "../_shared/runtime.generated.js";
|
|
5
|
+
export interface ArchivePlanRequest {
|
|
6
|
+
id?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ArchivePlanResponse {
|
|
9
|
+
plan?: Plan;
|
|
10
|
+
}
|
|
11
|
+
export interface ClearPrimaryRequest {
|
|
12
|
+
}
|
|
13
|
+
export interface ClearPrimaryResponse {
|
|
14
|
+
}
|
|
15
|
+
export interface CreatePlanRequest {
|
|
16
|
+
plan?: Plan;
|
|
17
|
+
}
|
|
18
|
+
export interface CreatePlanResponse {
|
|
19
|
+
plan?: Plan;
|
|
20
|
+
}
|
|
21
|
+
export interface GetPlanRequest {
|
|
22
|
+
id?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface GetPlanResponse {
|
|
25
|
+
plan?: Plan;
|
|
26
|
+
}
|
|
27
|
+
export interface GetPlanStatsRequest {
|
|
28
|
+
}
|
|
29
|
+
export interface GetPlanStatsResponse {
|
|
30
|
+
totalPlans?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface ListPlansRequest {
|
|
33
|
+
archived?: string;
|
|
34
|
+
public?: string;
|
|
35
|
+
limit?: number;
|
|
36
|
+
offset?: number;
|
|
37
|
+
planIds?: string[];
|
|
38
|
+
}
|
|
39
|
+
export interface ListPlansResponse {
|
|
40
|
+
plans?: Plan[];
|
|
41
|
+
pagingMetadata?: PagingMetadataV2;
|
|
42
|
+
}
|
|
43
|
+
export interface ListPublicPlansRequest {
|
|
44
|
+
limit?: number;
|
|
45
|
+
offset?: number;
|
|
46
|
+
planIds?: string[];
|
|
47
|
+
}
|
|
48
|
+
export interface ListPublicPlansResponse {
|
|
49
|
+
plans?: PublicPlan[];
|
|
50
|
+
pagingMetadata?: PagingMetadataV2;
|
|
51
|
+
}
|
|
52
|
+
export interface MakePlanPrimaryRequest {
|
|
53
|
+
id?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface MakePlanPrimaryResponse {
|
|
56
|
+
plan?: Plan;
|
|
57
|
+
}
|
|
58
|
+
export interface Money {
|
|
59
|
+
value?: string;
|
|
60
|
+
currency?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface Plan {
|
|
63
|
+
id?: string;
|
|
64
|
+
name?: string;
|
|
65
|
+
description?: string;
|
|
66
|
+
perks?: StringList;
|
|
67
|
+
pricing?: Pricing;
|
|
68
|
+
public?: boolean;
|
|
69
|
+
archived?: boolean;
|
|
70
|
+
primary?: boolean;
|
|
71
|
+
hasOrders?: boolean;
|
|
72
|
+
createdDate?: string;
|
|
73
|
+
updatedDate?: string;
|
|
74
|
+
slug?: string;
|
|
75
|
+
maxPurchasesPerBuyer?: number;
|
|
76
|
+
allowFutureStartDate?: boolean;
|
|
77
|
+
buyerCanCancel?: boolean;
|
|
78
|
+
termsAndConditions?: string;
|
|
79
|
+
formId?: string;
|
|
80
|
+
}
|
|
81
|
+
export interface Pricing {
|
|
82
|
+
subscription?: Recurrence;
|
|
83
|
+
singlePaymentForDuration?: Duration;
|
|
84
|
+
singlePaymentUnlimited?: boolean;
|
|
85
|
+
price?: Money;
|
|
86
|
+
freeTrialDays?: number;
|
|
87
|
+
}
|
|
88
|
+
export interface PublicPlan {
|
|
89
|
+
id?: string;
|
|
90
|
+
name?: string;
|
|
91
|
+
description?: string;
|
|
92
|
+
perks?: StringList;
|
|
93
|
+
pricing?: Pricing;
|
|
94
|
+
primary?: boolean;
|
|
95
|
+
createdDate?: string;
|
|
96
|
+
updatedDate?: string;
|
|
97
|
+
slug?: string;
|
|
98
|
+
maxPurchasesPerBuyer?: number;
|
|
99
|
+
allowFutureStartDate?: boolean;
|
|
100
|
+
buyerCanCancel?: boolean;
|
|
101
|
+
termsAndConditions?: string;
|
|
102
|
+
formId?: string;
|
|
103
|
+
}
|
|
104
|
+
export interface QueryPublicPlansRequest {
|
|
105
|
+
query?: QueryV2;
|
|
106
|
+
}
|
|
107
|
+
export interface QueryPublicPlansResponse {
|
|
108
|
+
plans?: PublicPlan[];
|
|
109
|
+
pagingMetadata?: PagingMetadataV2;
|
|
110
|
+
}
|
|
111
|
+
export interface QueryV2 {
|
|
112
|
+
filter?: Record<string, unknown>;
|
|
113
|
+
sort?: Sorting[];
|
|
114
|
+
paging?: Paging;
|
|
115
|
+
}
|
|
116
|
+
export interface SetPlanVisibilityRequest {
|
|
117
|
+
id?: string;
|
|
118
|
+
visible?: boolean;
|
|
119
|
+
}
|
|
120
|
+
export interface SetPlanVisibilityResponse {
|
|
121
|
+
plan?: Plan;
|
|
122
|
+
}
|
|
123
|
+
export interface Sorting {
|
|
124
|
+
fieldName?: string;
|
|
125
|
+
order?: string;
|
|
126
|
+
origin?: AddressLocation;
|
|
127
|
+
}
|
|
128
|
+
export interface StringList {
|
|
129
|
+
values?: string[];
|
|
130
|
+
}
|
|
131
|
+
export interface UpdatePlanRequest {
|
|
132
|
+
plan?: Plan;
|
|
133
|
+
}
|
|
134
|
+
export interface UpdatePlanResponse {
|
|
135
|
+
plan?: Plan;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Archives a single plan. When a plan is archived, it's no longer visible as a public plan that can be chosen by site members or visitors. This is because the plan's `public` property is automatically set to `false`. Archived plans can't be purchased or reactivated. Plan archiving doesn't impact existing orders made for the plan. All orders for the plan are still active and keep their perks, payment options, and terms. Wix users can see archived plans in a site's dashboard under **Pricing Plans -> Archived Plans**. > **Note:** An attempt to archive an already-archived plan throws an error.
|
|
139
|
+
*
|
|
140
|
+
* @permissionId PRICING_PLANS.MANAGE_PLANS
|
|
141
|
+
* @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ArchivePlan
|
|
142
|
+
*
|
|
143
|
+
* POST /pricing-plans/v2/plans/{id}/archive
|
|
144
|
+
*/
|
|
145
|
+
export declare function archivePlan(req: ArchivePlanRequest, opts?: WixCallOptions): Promise<ArchivePlanResponse>;
|
|
146
|
+
/**
|
|
147
|
+
* Sets all pricing plans as not primary. When viewing pricing plans on a site, no plan is highlighted with a customizable ribbon.
|
|
148
|
+
*
|
|
149
|
+
* @permissionId PRICING_PLANS.MANAGE_PLANS
|
|
150
|
+
* @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ClearPrimary
|
|
151
|
+
*
|
|
152
|
+
* POST /pricing-plans/v2/plans/clear-primary
|
|
153
|
+
*/
|
|
154
|
+
export declare function clearPrimary(req?: ClearPrimaryRequest, opts?: WixCallOptions): Promise<ClearPrimaryResponse>;
|
|
155
|
+
/**
|
|
156
|
+
* Creates a pricing plan. The specified `plan` object must contain a pricing model. A pricing model can be 1 of the following: - **A subscription**: A subscription with recurring payments and how often the plan occurs. Subscriptions can have free trial days. - **A plan that doesn't renew**: A single payment for a specific duration that doesn't renew. - **An unlimited plan**: A single payment for an unlimited amount of time (until canceled). Pricing plans are available to the Wix user in the Pricing Plans section in a site's dashboard.
|
|
157
|
+
*
|
|
158
|
+
* @permissionId PRICING_PLANS.MANAGE_PLANS
|
|
159
|
+
* @fqn com.wixpress.membership.v2.plans.PlansServiceV2.CreatePlan
|
|
160
|
+
*
|
|
161
|
+
* POST /pricing-plans/v2/plans
|
|
162
|
+
*/
|
|
163
|
+
export declare function createPlan(req?: CreatePlanRequest, opts?: WixCallOptions): Promise<CreatePlanResponse>;
|
|
164
|
+
/**
|
|
165
|
+
* Retrieves a pricing plan by ID.
|
|
166
|
+
*
|
|
167
|
+
* @permissionId PRICING_PLANS.READ_PLANS
|
|
168
|
+
* @fqn com.wixpress.membership.v2.plans.PlansServiceV2.GetPlan
|
|
169
|
+
*
|
|
170
|
+
* GET /pricing-plans/v2/plans/{id}
|
|
171
|
+
*/
|
|
172
|
+
export declare function getPlan(req: GetPlanRequest, opts?: WixCallOptions): Promise<GetPlanResponse>;
|
|
173
|
+
/**
|
|
174
|
+
* Gets statistics about the pricing plans. Currently provides only the total number of pricing plans, including archived plans.
|
|
175
|
+
*
|
|
176
|
+
* @permissionId PRICING_PLANS.READ_PLANS
|
|
177
|
+
* @fqn com.wixpress.membership.v2.plans.PlansServiceV2.GetPlanStats
|
|
178
|
+
*
|
|
179
|
+
* GET /pricing-plans/v2/plans/stats
|
|
180
|
+
*/
|
|
181
|
+
export declare function getPlanStats(req?: GetPlanStatsRequest, opts?: WixCallOptions): Promise<GetPlanStatsResponse>;
|
|
182
|
+
/**
|
|
183
|
+
* Retrieves a list of up to 100 pricing plans (including public, hidden, and archived plans).
|
|
184
|
+
*
|
|
185
|
+
* @permissionId PRICING_PLANS.READ_PLANS
|
|
186
|
+
* @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ListPlans
|
|
187
|
+
*
|
|
188
|
+
* GET /pricing-plans/v2/plans
|
|
189
|
+
*/
|
|
190
|
+
export declare function listPlans(req?: ListPlansRequest, opts?: WixCallOptions): Promise<ListPlansResponse>;
|
|
191
|
+
/**
|
|
192
|
+
* Retrieves a list of up to 100 public pricing plans. Public plans are visible plans that are available to site visitors and can be purchased.
|
|
193
|
+
*
|
|
194
|
+
* @permissionId PRICING_PLANS.READ_PUBLIC_PLANS
|
|
195
|
+
* @fqn com.wixpress.membership.v2.plans.PlansServiceV2.ListPublicPlans
|
|
196
|
+
*
|
|
197
|
+
* GET /pricing-plans/v2/plans/public
|
|
198
|
+
*/
|
|
199
|
+
export declare function listPublicPlans(req?: ListPublicPlansRequest, opts?: WixCallOptions): Promise<ListPublicPlansResponse>;
|
|
200
|
+
/**
|
|
201
|
+
* Marks a pricing plan as the primary pricing plan. When viewing pricing plans on a site, the primary plan is highlighted with a customizable ribbon. Only a single plan can be marked as a primary plan at any given time. If there is an existing plan marked as primary, calling Make Plan Primary causes the existing primary plan to lose its primary status.
|
|
202
|
+
*
|
|
203
|
+
* @permissionId PRICING_PLANS.MANAGE_PLANS
|
|
204
|
+
* @fqn com.wixpress.membership.v2.plans.PlansServiceV2.MakePlanPrimary
|
|
205
|
+
*
|
|
206
|
+
* POST /pricing-plans/v2/plans/{id}/make-primary
|
|
207
|
+
*/
|
|
208
|
+
export declare function makePlanPrimary(req: MakePlanPrimaryRequest, opts?: WixCallOptions): Promise<MakePlanPrimaryResponse>;
|
|
209
|
+
/**
|
|
210
|
+
* Creates a query to retrieve a list of public pricing plans.
|
|
211
|
+
*
|
|
212
|
+
* @permissionId PRICING_PLANS.READ_PUBLIC_PLANS
|
|
213
|
+
* @fqn com.wixpress.membership.v2.plans.PlansServiceV2.QueryPublicPlans
|
|
214
|
+
*
|
|
215
|
+
* POST /pricing-plans/v2/plans/public/query
|
|
216
|
+
*/
|
|
217
|
+
export declare function queryPublicPlans(req?: QueryPublicPlansRequest, opts?: WixCallOptions): Promise<QueryPublicPlansResponse>;
|
|
218
|
+
/**
|
|
219
|
+
* Sets visibility for pricing plans. Visible plans are considered public plans. By default, pricing plans are public, meaning they are visible. Plans can be hidden so that site members and visitors can't choose them. As opposed to archiving, setting visibility can be reversed. This means that a public plan can be hidden, and a hidden plan can be made public (visible). (An archived plan always remains archived and can't be made active again.) Changing a plan’s visibility doesn't impact existing orders for the plan. All orders for hidden plans are still active and keep their perks.
|
|
220
|
+
*
|
|
221
|
+
* @permissionId PRICING_PLANS.MANAGE_PLANS
|
|
222
|
+
* @fqn com.wixpress.membership.v2.plans.PlansServiceV2.SetPlanVisibility
|
|
223
|
+
*
|
|
224
|
+
* PUT /pricing-plans/v2/plans/{id}/visibility
|
|
225
|
+
*/
|
|
226
|
+
export declare function setPlanVisibility(req: SetPlanVisibilityRequest, opts?: WixCallOptions): Promise<SetPlanVisibilityResponse>;
|
|
227
|
+
/**
|
|
228
|
+
* Updates a pricing plan. Updating a plan doesn't impact existing orders made for the plan. All orders keep the details of the original plan that was active at the time of purchase.
|
|
229
|
+
*
|
|
230
|
+
* @permissionId PRICING_PLANS.MANAGE_PLANS
|
|
231
|
+
* @fqn com.wixpress.membership.v2.plans.PlansServiceV2.UpdatePlan
|
|
232
|
+
*
|
|
233
|
+
* PATCH /pricing-plans/v2/plans/{planId}
|
|
234
|
+
*/
|
|
235
|
+
export declare function updatePlan(req: UpdatePlanRequest, opts?: WixCallOptions): Promise<UpdatePlanResponse>;
|