@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,116 @@
|
|
|
1
|
+
import { type WixCallOptions } from "../_shared/runtime.generated.js";
|
|
2
|
+
import type { CursorPaging, ExtendedFields, Paging, PagingMetadataV2, Sorting } from "../_shared/types.generated.js";
|
|
3
|
+
export type { CursorPaging, Cursors, ExtendedFields, Paging, PagingMetadataV2, Sorting } from "../_shared/types.generated.js";
|
|
4
|
+
export type { WixCallOptions } from "../_shared/runtime.generated.js";
|
|
5
|
+
export interface CreateDefaultTipSettingsRequest {
|
|
6
|
+
tipSettings?: TipSettings;
|
|
7
|
+
}
|
|
8
|
+
export interface CreateDefaultTipSettingsResponse {
|
|
9
|
+
tipSettings?: TipSettings;
|
|
10
|
+
}
|
|
11
|
+
export interface CreateTipSettingsRequest {
|
|
12
|
+
tipSettings?: TipSettings;
|
|
13
|
+
}
|
|
14
|
+
export interface CreateTipSettingsResponse {
|
|
15
|
+
tipSettings?: TipSettings;
|
|
16
|
+
}
|
|
17
|
+
export interface DeleteTipSettingsRequest {
|
|
18
|
+
tipSettingsId?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface DeleteTipSettingsResponse {
|
|
21
|
+
}
|
|
22
|
+
export interface Preset {
|
|
23
|
+
value?: number;
|
|
24
|
+
default?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface QueryTipSettingsRequest {
|
|
27
|
+
query?: QueryV2;
|
|
28
|
+
}
|
|
29
|
+
export interface QueryTipSettingsResponse {
|
|
30
|
+
tipSettings?: TipSettings[];
|
|
31
|
+
pagingMetadata?: PagingMetadataV2;
|
|
32
|
+
}
|
|
33
|
+
export interface QueryV2 {
|
|
34
|
+
paging?: Paging;
|
|
35
|
+
cursorPaging?: CursorPaging;
|
|
36
|
+
filter?: Record<string, unknown>;
|
|
37
|
+
sort?: Sorting[];
|
|
38
|
+
fields?: string[];
|
|
39
|
+
fieldsets?: string[];
|
|
40
|
+
}
|
|
41
|
+
export interface TipSettings {
|
|
42
|
+
locationId?: string;
|
|
43
|
+
paymentTerminalId?: string;
|
|
44
|
+
userId?: string;
|
|
45
|
+
id?: string;
|
|
46
|
+
tipType?: string;
|
|
47
|
+
presets?: Preset[];
|
|
48
|
+
allowCustomerTip?: boolean;
|
|
49
|
+
allowBusinessTipAtPayment?: boolean;
|
|
50
|
+
allowCustomAmount?: boolean;
|
|
51
|
+
allowEditDistribution?: boolean;
|
|
52
|
+
autoTipOnCheckInEnabled?: boolean;
|
|
53
|
+
autoTipOnCheckInPercentage?: number;
|
|
54
|
+
staffDistributionMethod?: string;
|
|
55
|
+
revision?: string;
|
|
56
|
+
createdDate?: string;
|
|
57
|
+
updatedDate?: string;
|
|
58
|
+
default?: boolean;
|
|
59
|
+
appId?: string;
|
|
60
|
+
extendedFields?: ExtendedFields;
|
|
61
|
+
}
|
|
62
|
+
export interface UpdateTipSettingsRequest {
|
|
63
|
+
tipSettings?: TipSettings;
|
|
64
|
+
}
|
|
65
|
+
export interface UpdateTipSettingsResponse {
|
|
66
|
+
tipSettings?: TipSettings;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Creates a default `tipSettings` object.
|
|
70
|
+
*
|
|
71
|
+
* @permissionId WIX_TIPS.TIP_SETTINGS_CREATE
|
|
72
|
+
* @fqn wix.tips.settings.v1.TipSettingsService.CreateDefaultTipSettings
|
|
73
|
+
*
|
|
74
|
+
* POST /tip-settings/v1/tip-settings/create-default
|
|
75
|
+
*/
|
|
76
|
+
export declare function createDefaultTipSettings(req?: CreateDefaultTipSettingsRequest, opts?: WixCallOptions): Promise<CreateDefaultTipSettingsResponse>;
|
|
77
|
+
/**
|
|
78
|
+
* Creates a `tipSettings` object.
|
|
79
|
+
*
|
|
80
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
81
|
+
* @permissionId WIX_TIPS.TIP_SETTINGS_CREATE
|
|
82
|
+
* @fqn wix.tips.settings.v1.TipSettingsService.CreateTipSettings
|
|
83
|
+
*
|
|
84
|
+
* POST /tip-settings/v1/tip-settings
|
|
85
|
+
*/
|
|
86
|
+
export declare function createTipSettings(req?: CreateTipSettingsRequest, opts?: WixCallOptions): Promise<CreateTipSettingsResponse>;
|
|
87
|
+
/**
|
|
88
|
+
* Deletes a `tipSettings` object.
|
|
89
|
+
*
|
|
90
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
91
|
+
* @permissionId WIX_TIPS.TIP_SETTINGS_DELETE
|
|
92
|
+
* @fqn wix.tips.settings.v1.TipSettingsService.DeleteTipSettings
|
|
93
|
+
*
|
|
94
|
+
* DELETE /tip-settings/v1/tip-settings/{tipSettingsId}
|
|
95
|
+
*/
|
|
96
|
+
export declare function deleteTipSettings(req: DeleteTipSettingsRequest, opts?: WixCallOptions): Promise<DeleteTipSettingsResponse>;
|
|
97
|
+
/**
|
|
98
|
+
* Creates a query to retrieve a list of tip settings.
|
|
99
|
+
*
|
|
100
|
+
* @scope visitor — an anonymous visitor session is enough.
|
|
101
|
+
* @permissionId WIX_TIPS.TIP_SETTINGS_READ
|
|
102
|
+
* @fqn wix.tips.settings.v1.TipSettingsService.QueryTipSettings
|
|
103
|
+
*
|
|
104
|
+
* POST /tip-settings/v1/tip-settings/query
|
|
105
|
+
*/
|
|
106
|
+
export declare function queryTipSettings(req?: QueryTipSettingsRequest, opts?: WixCallOptions): Promise<QueryTipSettingsResponse>;
|
|
107
|
+
/**
|
|
108
|
+
* Updates a `tipSettings` object.
|
|
109
|
+
*
|
|
110
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
111
|
+
* @permissionId WIX_TIPS.TIP_SETTINGS_UPDATE
|
|
112
|
+
* @fqn wix.tips.settings.v1.TipSettingsService.UpdateTipSettings
|
|
113
|
+
*
|
|
114
|
+
* PATCH /tip-settings/v1/tip-settings
|
|
115
|
+
*/
|
|
116
|
+
export declare function updateTipSettings(req?: UpdateTipSettingsRequest, opts?: WixCallOptions): Promise<UpdateTipSettingsResponse>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type WixCallOptions } from "../_shared/runtime.generated.js";
|
|
2
|
+
import type { IdentificationData } from "../_shared/types.generated.js";
|
|
3
|
+
export type { IdentificationData } from "../_shared/types.generated.js";
|
|
4
|
+
export type { WixCallOptions } from "../_shared/runtime.generated.js";
|
|
5
|
+
export interface ListTippableStaffRequest {
|
|
6
|
+
includeWixUsers?: boolean;
|
|
7
|
+
filterByName?: string;
|
|
8
|
+
filterByIds?: string[];
|
|
9
|
+
}
|
|
10
|
+
export interface ListTippableStaffResponse {
|
|
11
|
+
staff?: Staff[];
|
|
12
|
+
}
|
|
13
|
+
export interface Staff {
|
|
14
|
+
id?: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
staffMemberId?: string;
|
|
17
|
+
identificationData?: IdentificationData;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves a list of up to 100 staff who are eligible to receive tips, given the provided filtering.
|
|
21
|
+
*
|
|
22
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
23
|
+
* @permissionId WIX_TIPS.STAFF_READ
|
|
24
|
+
* @fqn wix.tips.staff.v1.TipStaffService.ListTippableStaff
|
|
25
|
+
*
|
|
26
|
+
* GET /tips-staff/v1/eligible-staff
|
|
27
|
+
*/
|
|
28
|
+
export declare function listTippableStaff(req?: ListTippableStaffRequest, opts?: WixCallOptions): Promise<ListTippableStaffResponse>;
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { type WixCallOptions } from "../_shared/runtime.generated.js";
|
|
2
|
+
import type { CommonIdentificationData, CursorPagingMetadata, CursorQuery, Price } from "../_shared/types.generated.js";
|
|
3
|
+
export type { CommonIdentificationData, CursorPaging, CursorPagingMetadata, CursorQuery, Cursors, Price, Sorting } from "../_shared/types.generated.js";
|
|
4
|
+
export type { WixCallOptions } from "../_shared/runtime.generated.js";
|
|
5
|
+
export interface AddTipDistributionsToOrderRequest {
|
|
6
|
+
orderId?: string;
|
|
7
|
+
tipDistributions?: TipDistribution[];
|
|
8
|
+
}
|
|
9
|
+
export interface AddTipDistributionsToOrderResponse {
|
|
10
|
+
tipDistributions?: TipDistribution[];
|
|
11
|
+
orderInfo?: OrderInfo;
|
|
12
|
+
}
|
|
13
|
+
export interface CatalogReference {
|
|
14
|
+
catalogItemId?: string;
|
|
15
|
+
appId?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface GetTipByDraftOrderIdRequest {
|
|
18
|
+
draftOrderId?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface GetTipByDraftOrderIdResponse {
|
|
21
|
+
tip?: Tip;
|
|
22
|
+
}
|
|
23
|
+
export interface GetTipByOrderIdRequest {
|
|
24
|
+
orderId?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface GetTipByOrderIdResponse {
|
|
27
|
+
tip?: Tip;
|
|
28
|
+
}
|
|
29
|
+
export interface GetTipChoiceRequest {
|
|
30
|
+
purchaseFlowId?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface GetTipChoiceResponse {
|
|
33
|
+
tipChoice?: TipChoice;
|
|
34
|
+
}
|
|
35
|
+
export interface LineItemInfo {
|
|
36
|
+
lineItemId?: string;
|
|
37
|
+
catalogReference?: CatalogReference;
|
|
38
|
+
price?: string;
|
|
39
|
+
name?: string;
|
|
40
|
+
quantity?: number;
|
|
41
|
+
}
|
|
42
|
+
export interface OrderInfo {
|
|
43
|
+
orderId?: string;
|
|
44
|
+
additionalFeeId?: string;
|
|
45
|
+
additionalFeePrice?: Price;
|
|
46
|
+
}
|
|
47
|
+
export interface PreviewTipRequest {
|
|
48
|
+
lineItemInfo?: LineItemInfo[];
|
|
49
|
+
tipChoice?: TipChoice;
|
|
50
|
+
tipSettingsId?: string;
|
|
51
|
+
draftOrderId?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface PreviewTipResponse {
|
|
54
|
+
tip?: Tip;
|
|
55
|
+
}
|
|
56
|
+
export interface QueryTipDistributionsRequest {
|
|
57
|
+
query?: CursorQuery;
|
|
58
|
+
}
|
|
59
|
+
export interface QueryTipDistributionsResponse {
|
|
60
|
+
tipDistributions?: TipDistribution[];
|
|
61
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
62
|
+
}
|
|
63
|
+
export interface RemoveTipFromOrderRequest {
|
|
64
|
+
orderId?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface RemoveTipFromOrderResponse {
|
|
67
|
+
orderInfo?: OrderInfo;
|
|
68
|
+
}
|
|
69
|
+
export interface SetTipOnOrderRequest {
|
|
70
|
+
orderId?: string;
|
|
71
|
+
tip?: Tip;
|
|
72
|
+
}
|
|
73
|
+
export interface SetTipOnOrderResponse {
|
|
74
|
+
tip?: Tip;
|
|
75
|
+
orderInfo?: OrderInfo;
|
|
76
|
+
}
|
|
77
|
+
export interface Staff {
|
|
78
|
+
id?: string;
|
|
79
|
+
name?: string;
|
|
80
|
+
staffMemberId?: string;
|
|
81
|
+
identificationData?: CommonIdentificationData;
|
|
82
|
+
}
|
|
83
|
+
export interface SumTipDistributionAmountsRequest {
|
|
84
|
+
filter?: Record<string, unknown>;
|
|
85
|
+
}
|
|
86
|
+
export interface SumTipDistributionAmountsResponse {
|
|
87
|
+
totalAmount?: string;
|
|
88
|
+
}
|
|
89
|
+
export interface Tip {
|
|
90
|
+
id?: string;
|
|
91
|
+
lineItemSubtotal?: string;
|
|
92
|
+
amount?: string;
|
|
93
|
+
distributions?: TipDistribution[];
|
|
94
|
+
undistributedAmount?: string;
|
|
95
|
+
}
|
|
96
|
+
export interface TipChoice {
|
|
97
|
+
value?: string;
|
|
98
|
+
tipType?: string;
|
|
99
|
+
}
|
|
100
|
+
export interface TipDistribution {
|
|
101
|
+
id?: string;
|
|
102
|
+
tipId?: string;
|
|
103
|
+
staff?: Staff;
|
|
104
|
+
amount?: string;
|
|
105
|
+
lineItemInfo?: LineItemInfo[];
|
|
106
|
+
transaction?: Transaction;
|
|
107
|
+
orderId?: string;
|
|
108
|
+
createdDate?: string;
|
|
109
|
+
source?: string;
|
|
110
|
+
}
|
|
111
|
+
export interface Transaction {
|
|
112
|
+
id?: string;
|
|
113
|
+
date?: string;
|
|
114
|
+
}
|
|
115
|
+
export interface UpdateTipChoiceRequest {
|
|
116
|
+
tipChoice?: TipChoice;
|
|
117
|
+
purchaseFlowId?: string;
|
|
118
|
+
}
|
|
119
|
+
export interface UpdateTipChoiceResponse {
|
|
120
|
+
tipChoice?: TipChoice;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Adds tip distributions to an eCommerce order ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/order-object)).
|
|
124
|
+
*
|
|
125
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
126
|
+
* @permissionId WIX_TIPS.TIP_DISTRIBUTION_ADD
|
|
127
|
+
* @fqn wix.tips.tip.v1.TipsService.AddTipDistributionsToOrder
|
|
128
|
+
*
|
|
129
|
+
* POST /tips/v1/tips/tip-distributions/add
|
|
130
|
+
*/
|
|
131
|
+
export declare function addTipDistributionsToOrder(req?: AddTipDistributionsToOrderRequest, opts?: WixCallOptions): Promise<AddTipDistributionsToOrderResponse>;
|
|
132
|
+
/**
|
|
133
|
+
* Retrieves the tip that's associated with an [eCommerce draft order](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/orders/draft-orders/introduction).
|
|
134
|
+
*
|
|
135
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
136
|
+
* @permissionId WIX_TIPS.TIP_READ
|
|
137
|
+
* @fqn wix.tips.tip.v1.TipsService.GetTipByDraftOrderId
|
|
138
|
+
*
|
|
139
|
+
* GET /tips/v1/tips/draft-order/{draftOrderId}
|
|
140
|
+
*/
|
|
141
|
+
export declare function getTipByDraftOrderId(req: GetTipByDraftOrderIdRequest, opts?: WixCallOptions): Promise<GetTipByDraftOrderIdResponse>;
|
|
142
|
+
/**
|
|
143
|
+
* Retrieves the tip that's associated with an eCommerce order ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/order-object)).
|
|
144
|
+
*
|
|
145
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
146
|
+
* @permissionId WIX_TIPS.TIP_READ
|
|
147
|
+
* @fqn wix.tips.tip.v1.TipsService.GetTipByOrderId
|
|
148
|
+
*
|
|
149
|
+
* GET /tips/v1/tips/order/{orderId}
|
|
150
|
+
*/
|
|
151
|
+
export declare function getTipByOrderId(req: GetTipByOrderIdRequest, opts?: WixCallOptions): Promise<GetTipByOrderIdResponse>;
|
|
152
|
+
/**
|
|
153
|
+
* Retrieves the tip choice that's currently selected by the customer for a specific eCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)). If the customer hasn't yet selected a tip choice, the response is empty.
|
|
154
|
+
*
|
|
155
|
+
* @scope visitor — an anonymous visitor session is enough.
|
|
156
|
+
* @permissionId WIX_TIPS.TIP_GET_CHOICE
|
|
157
|
+
* @fqn wix.tips.tip.v1.TipsService.GetTipChoice
|
|
158
|
+
*
|
|
159
|
+
* GET /tips/v1/tips/choice/{purchaseFlowId}
|
|
160
|
+
*/
|
|
161
|
+
export declare function getTipChoice(req: GetTipChoiceRequest, opts?: WixCallOptions): Promise<GetTipChoiceResponse>;
|
|
162
|
+
/**
|
|
163
|
+
* Previews a tip for a list of line items.
|
|
164
|
+
*
|
|
165
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
166
|
+
* @permissionId WIX_TIPS.TIP_PREVIEW
|
|
167
|
+
* @fqn wix.tips.tip.v1.TipsService.PreviewTip
|
|
168
|
+
*
|
|
169
|
+
* POST /tips/v1/tips/preview
|
|
170
|
+
*/
|
|
171
|
+
export declare function previewTip(req?: PreviewTipRequest, opts?: WixCallOptions): Promise<PreviewTipResponse>;
|
|
172
|
+
/**
|
|
173
|
+
* Creates a query to retrieve a list of tip distributions.
|
|
174
|
+
*
|
|
175
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
176
|
+
* @permissionId WIX_TIPS.TIP_DISTRIBUTION_READ
|
|
177
|
+
* @fqn wix.tips.tip.v1.TipsService.QueryTipDistributions
|
|
178
|
+
*
|
|
179
|
+
* POST /tips/v1/tips/tip-distributions/query
|
|
180
|
+
*/
|
|
181
|
+
export declare function queryTipDistributions(req?: QueryTipDistributionsRequest, opts?: WixCallOptions): Promise<QueryTipDistributionsResponse>;
|
|
182
|
+
/**
|
|
183
|
+
* Removes a tip from an eCommerce order ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/order-object)).
|
|
184
|
+
*
|
|
185
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
186
|
+
* @permissionId WIX_TIPS.TIP_REMOVE
|
|
187
|
+
* @fqn wix.tips.tip.v1.TipsService.RemoveTipFromOrder
|
|
188
|
+
*
|
|
189
|
+
* POST /tips/v1/tips/remove
|
|
190
|
+
*/
|
|
191
|
+
export declare function removeTipFromOrder(req?: RemoveTipFromOrderRequest, opts?: WixCallOptions): Promise<RemoveTipFromOrderResponse>;
|
|
192
|
+
/**
|
|
193
|
+
* Creates or updates a tip on an eCommerce order ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/order-object)).
|
|
194
|
+
*
|
|
195
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
196
|
+
* @permissionId WIX_TIPS.TIP_SET
|
|
197
|
+
* @fqn wix.tips.tip.v1.TipsService.SetTipOnOrder
|
|
198
|
+
*
|
|
199
|
+
* POST /tips/v1/tips/set
|
|
200
|
+
*/
|
|
201
|
+
export declare function setTipOnOrder(req?: SetTipOnOrderRequest, opts?: WixCallOptions): Promise<SetTipOnOrderResponse>;
|
|
202
|
+
/**
|
|
203
|
+
* Sums tip distribution amounts, given the provided filtering.
|
|
204
|
+
*
|
|
205
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
206
|
+
* @permissionId WIX_TIPS.TIP_DISTRIBUTION_READ
|
|
207
|
+
* @fqn wix.tips.tip.v1.TipsService.SumTipDistributionAmounts
|
|
208
|
+
*
|
|
209
|
+
* POST /tips/v1/tips/tip-distributions/sum-amounts
|
|
210
|
+
*/
|
|
211
|
+
export declare function sumTipDistributionAmounts(req?: SumTipDistributionAmountsRequest, opts?: WixCallOptions): Promise<SumTipDistributionAmountsResponse>;
|
|
212
|
+
/**
|
|
213
|
+
* Updates the tip choice that's currently selected by the customer for a specific eCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
|
|
214
|
+
*
|
|
215
|
+
* @scope visitor — an anonymous visitor session is enough.
|
|
216
|
+
* @permissionId WIX_TIPS.TIP_UPDATE_CHOICE
|
|
217
|
+
* @fqn wix.tips.tip.v1.TipsService.UpdateTipChoice
|
|
218
|
+
*
|
|
219
|
+
* PATCH /tips/v1/tips/choice
|
|
220
|
+
*/
|
|
221
|
+
export declare function updateTipChoice(req?: UpdateTipChoiceRequest, opts?: WixCallOptions): Promise<UpdateTipChoiceResponse>;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { type WixCallOptions } from "../_shared/runtime.generated.js";
|
|
2
|
+
import type { Address, CalculatedLineItem, CalculationErrors, CatalogReference, DiscountRuleName, ExtendedFields, ExternalReference, GiftCard, InvalidMembership, ItemTaxFullDetails, ItemType, Membership, MultiCurrencyPrice, PhysicalProperties, PriceSummary, SelectedMembership, SelectedShippingOption, ServiceProperties, ShippingInformation, TaxSummary, TaxableAddress, TranslatableString } from "../_shared/types.generated.js";
|
|
3
|
+
export type { Address, AddressLocation, ApplicableLineItems, ApplicationError, AutoTaxFallbackCalculationDetails, CalculatedLineItem, CalculationErrors, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CatalogReference, DeliveryAllocation, DeliveryLogistics, Details, DiscountRuleName, ExtendedFields, ExternalReference, FieldViolation, GiftCard, InvalidMembership, ItemTaxFullDetails, ItemType, LineItemPricesData, Membership, MembershipName, MembershipPaymentCredits, MultiCurrencyPrice, OtherCharge, PhysicalProperties, PickupDetails, PriceSummary, Region, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedShippingOption, ServiceProperties, ShippingInformation, ShippingOption, ShippingPrice, ShippingRegion, StreetAddress, SystemError, TaxBreakdown, TaxCalculationDetails, TaxRateBreakdown, TaxSummary, TaxableAddress, TranslatableString, ValidationError } from "../_shared/types.generated.js";
|
|
4
|
+
export type { WixCallOptions } from "../_shared/runtime.generated.js";
|
|
5
|
+
export interface ApiV1AdditionalFee {
|
|
6
|
+
code?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
price?: string;
|
|
9
|
+
taxDetails?: V1TaxDetails;
|
|
10
|
+
}
|
|
11
|
+
export interface AppliedDiscount {
|
|
12
|
+
coupon?: Coupon;
|
|
13
|
+
merchantDiscount?: MerchantDiscount;
|
|
14
|
+
discountRule?: DiscountRule;
|
|
15
|
+
discountType?: string;
|
|
16
|
+
lineItemIds?: string[];
|
|
17
|
+
}
|
|
18
|
+
export interface CalculateTotalsRequest {
|
|
19
|
+
couponId?: string;
|
|
20
|
+
couponCode?: string;
|
|
21
|
+
giftCardCode?: string;
|
|
22
|
+
calculationId?: string;
|
|
23
|
+
lineItems?: LineItem[];
|
|
24
|
+
shippingAddress?: Address;
|
|
25
|
+
billingAddress?: Address;
|
|
26
|
+
selectedShippingOption?: SelectedShippingOption;
|
|
27
|
+
buyerEmail?: string;
|
|
28
|
+
memberId?: string;
|
|
29
|
+
selectedMemberships?: SelectedMemberships;
|
|
30
|
+
buyerPhone?: string;
|
|
31
|
+
purchaseFlowId?: string;
|
|
32
|
+
externalReferences?: ExternalReference[];
|
|
33
|
+
businessLocationId?: string;
|
|
34
|
+
giftCardRedeemAmount?: string;
|
|
35
|
+
extendedFields?: ExtendedFields;
|
|
36
|
+
}
|
|
37
|
+
export interface CalculateTotalsResponse {
|
|
38
|
+
calculatedLineItems?: CalculatedLineItem[];
|
|
39
|
+
priceSummary?: PriceSummary;
|
|
40
|
+
giftCard?: GiftCard;
|
|
41
|
+
taxSummary?: TaxSummary;
|
|
42
|
+
shippingInfo?: ShippingInformation;
|
|
43
|
+
appliedDiscounts?: AppliedDiscount[];
|
|
44
|
+
calculationErrors?: CalculationErrors;
|
|
45
|
+
weightUnit?: string;
|
|
46
|
+
currency?: string;
|
|
47
|
+
conversionCurrency?: string;
|
|
48
|
+
taxIncludedInPrice?: boolean;
|
|
49
|
+
payNow?: PriceSummary;
|
|
50
|
+
payLater?: PriceSummary;
|
|
51
|
+
membershipOptions?: MembershipOptions;
|
|
52
|
+
additionalFees?: V1AdditionalFee[];
|
|
53
|
+
checkoutConversionRate?: string;
|
|
54
|
+
payNowTotalAfterGiftCard?: MultiCurrencyPrice;
|
|
55
|
+
totalAfterGiftCard?: MultiCurrencyPrice;
|
|
56
|
+
payAfterFreeTrial?: PriceSummary;
|
|
57
|
+
}
|
|
58
|
+
export interface Coupon {
|
|
59
|
+
id?: string;
|
|
60
|
+
code?: string;
|
|
61
|
+
amount?: MultiCurrencyPrice;
|
|
62
|
+
name?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface DiscountRule {
|
|
65
|
+
id?: string;
|
|
66
|
+
name?: DiscountRuleName;
|
|
67
|
+
amount?: MultiCurrencyPrice;
|
|
68
|
+
}
|
|
69
|
+
export interface ItemModifier {
|
|
70
|
+
id?: string;
|
|
71
|
+
quantity?: number;
|
|
72
|
+
label?: TranslatableString;
|
|
73
|
+
details?: TranslatableString;
|
|
74
|
+
price?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface LineItem {
|
|
77
|
+
id?: string;
|
|
78
|
+
quantity?: number;
|
|
79
|
+
catalogReference?: CatalogReference;
|
|
80
|
+
productName?: string;
|
|
81
|
+
price?: string;
|
|
82
|
+
physicalProperties?: PhysicalProperties;
|
|
83
|
+
subscriptionSettings?: SubscriptionSettings;
|
|
84
|
+
paymentOption?: string;
|
|
85
|
+
serviceProperties?: ServiceProperties;
|
|
86
|
+
rootCatalogItemId?: string;
|
|
87
|
+
depositAmount?: string;
|
|
88
|
+
fullPrice?: string;
|
|
89
|
+
deliveryProfileId?: string;
|
|
90
|
+
itemType?: ItemType;
|
|
91
|
+
taxableAddress?: TaxableAddress;
|
|
92
|
+
additionalFees?: ApiV1AdditionalFee[];
|
|
93
|
+
modifierGroups?: ModifierGroup[];
|
|
94
|
+
}
|
|
95
|
+
export interface MembershipOptions {
|
|
96
|
+
eligibleMemberships?: Membership[];
|
|
97
|
+
invalidMemberships?: InvalidMembership[];
|
|
98
|
+
selectedMemberships?: SelectedMembership[];
|
|
99
|
+
}
|
|
100
|
+
export interface MerchantDiscount {
|
|
101
|
+
amount?: MultiCurrencyPrice;
|
|
102
|
+
percentage?: number;
|
|
103
|
+
}
|
|
104
|
+
export interface ModifierGroup {
|
|
105
|
+
id?: string;
|
|
106
|
+
name?: TranslatableString;
|
|
107
|
+
modifiers?: ItemModifier[];
|
|
108
|
+
}
|
|
109
|
+
export interface SelectedMemberships {
|
|
110
|
+
memberships?: SelectedMembership[];
|
|
111
|
+
}
|
|
112
|
+
export interface SubscriptionSettings {
|
|
113
|
+
frequency?: string;
|
|
114
|
+
}
|
|
115
|
+
export interface V1AdditionalFee {
|
|
116
|
+
code?: string;
|
|
117
|
+
name?: string;
|
|
118
|
+
price?: MultiCurrencyPrice;
|
|
119
|
+
taxDetails?: ItemTaxFullDetails;
|
|
120
|
+
providerAppId?: string;
|
|
121
|
+
priceBeforeTax?: MultiCurrencyPrice;
|
|
122
|
+
priceAfterTax?: MultiCurrencyPrice;
|
|
123
|
+
lineItemIds?: string[];
|
|
124
|
+
source?: string;
|
|
125
|
+
translatedName?: string;
|
|
126
|
+
taxableAddress?: TaxableAddress;
|
|
127
|
+
}
|
|
128
|
+
export interface V1TaxDetails {
|
|
129
|
+
taxable?: boolean;
|
|
130
|
+
taxGroupId?: string;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Returns a totals calculation for specified line items.
|
|
134
|
+
*
|
|
135
|
+
* @scope visitor — an anonymous visitor session is enough.
|
|
136
|
+
* @permissionId ECOM.CALCULATE_TOTALS
|
|
137
|
+
* @fqn com.wix.ecom.totals_calculator.v1.TotalsCalculator.CalculateTotals
|
|
138
|
+
*
|
|
139
|
+
* POST /ecom/v1/calculate-totals
|
|
140
|
+
*/
|
|
141
|
+
export declare function calculateTotals(req?: CalculateTotalsRequest, opts?: WixCallOptions): Promise<CalculateTotalsResponse>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { type WixCallOptions } from "../_shared/runtime.generated.js";
|
|
2
|
+
import type { CatalogReference, ExtendedFields, Tags } from "../_shared/types.generated.js";
|
|
3
|
+
export type { CatalogReference, ExtendedFields, TagList, Tags } from "../_shared/types.generated.js";
|
|
4
|
+
export type { WixCallOptions } from "../_shared/runtime.generated.js";
|
|
5
|
+
export interface AddItemRequest {
|
|
6
|
+
catalogReference?: CatalogReference;
|
|
7
|
+
returnEntity?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface AddItemResponse {
|
|
10
|
+
wishlist?: Wishlist;
|
|
11
|
+
}
|
|
12
|
+
export interface GetDefaultWishlistRequest {
|
|
13
|
+
appId?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface GetDefaultWishlistResponse {
|
|
16
|
+
wishlist?: Wishlist;
|
|
17
|
+
}
|
|
18
|
+
export interface RemoveItemRequest {
|
|
19
|
+
catalogReference?: CatalogReference;
|
|
20
|
+
returnEntity?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface RemoveItemResponse {
|
|
23
|
+
wishlist?: Wishlist;
|
|
24
|
+
}
|
|
25
|
+
export interface Wishlist {
|
|
26
|
+
id?: string;
|
|
27
|
+
memberId?: string;
|
|
28
|
+
items?: WishlistItem[];
|
|
29
|
+
createdDate?: string;
|
|
30
|
+
updatedDate?: string;
|
|
31
|
+
extendedFields?: ExtendedFields;
|
|
32
|
+
tags?: Tags;
|
|
33
|
+
}
|
|
34
|
+
export interface WishlistItem {
|
|
35
|
+
catalogReference?: CatalogReference;
|
|
36
|
+
addedDate?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Not in Wix's public SDK typings — its www.wixapis.com route was verified live: visitor POST /ecom/v1/wishlists/add-item answered 400 on site de54bcbe (2026-12-01, codegen/wix/live/probe-excluded.ts)
|
|
40
|
+
*
|
|
41
|
+
* POST /ecom/v1/wishlists/add-item
|
|
42
|
+
*/
|
|
43
|
+
export declare function addItem(req?: AddItemRequest, opts?: WixCallOptions): Promise<AddItemResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Not in Wix's public SDK typings — its www.wixapis.com route was verified live: owner GET /ecom/v1/wishlists/get-default answered 403 on site de54bcbe (2026-12-01, codegen/wix/live/probe-excluded.ts)
|
|
46
|
+
*
|
|
47
|
+
* @scope member — requires a signed-in site member.
|
|
48
|
+
*
|
|
49
|
+
* GET /ecom/v1/wishlists/get-default
|
|
50
|
+
*/
|
|
51
|
+
export declare function getDefaultWishlist(req?: GetDefaultWishlistRequest, opts?: WixCallOptions): Promise<GetDefaultWishlistResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* Not in Wix's public SDK typings — its www.wixapis.com route was verified live: visitor POST /ecom/v1/wishlists/remove-item answered 400 on site de54bcbe (2026-12-01, codegen/wix/live/probe-excluded.ts)
|
|
54
|
+
*
|
|
55
|
+
* POST /ecom/v1/wishlists/remove-item
|
|
56
|
+
*/
|
|
57
|
+
export declare function removeItem(req?: RemoveItemRequest, opts?: WixCallOptions): Promise<RemoveItemResponse>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "../../wix-sdk/pricing-plans/src/index.js";
|
|
2
|
+
export * as orders from "./orders.generated.js";
|
|
3
|
+
export * as planBenefits from "./planBenefits.generated.js";
|
|
4
|
+
export * as plans from "./plans.generated.js";
|
|
5
|
+
export * as plansV3 from "./plansV3.generated.js";
|
|
6
|
+
export * as pricingPlansSettings from "./pricingPlansSettings.generated.js";
|
|
7
|
+
export * as pricingVariantCategories from "./pricingVariantCategories.generated.js";
|