@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,115 @@
|
|
|
1
|
+
import { type WixCallOptions } from "../_shared/runtime.generated.js";
|
|
2
|
+
import type { ApplicationError } from "../_shared/types.generated.js";
|
|
3
|
+
export type { ApplicationError } from "../_shared/types.generated.js";
|
|
4
|
+
export type { WixCallOptions } from "../_shared/runtime.generated.js";
|
|
5
|
+
export interface Address {
|
|
6
|
+
country?: string;
|
|
7
|
+
subdivision?: string;
|
|
8
|
+
city?: string;
|
|
9
|
+
postalCode?: string;
|
|
10
|
+
addressLine?: string;
|
|
11
|
+
addressLine2?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface AddressIndex {
|
|
14
|
+
singleAddress?: number;
|
|
15
|
+
multipleAddresses?: MultipleAddresses;
|
|
16
|
+
}
|
|
17
|
+
export interface AggregatedTaxBreakdown {
|
|
18
|
+
taxName?: string;
|
|
19
|
+
taxType?: string;
|
|
20
|
+
jurisdiction?: string;
|
|
21
|
+
jurisdictionType?: string;
|
|
22
|
+
rate?: string;
|
|
23
|
+
aggregatedTaxAmount?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface CalculateTaxRequest {
|
|
26
|
+
externalId?: string;
|
|
27
|
+
currency?: string;
|
|
28
|
+
addresses?: Address[];
|
|
29
|
+
lineItems?: LineItem[];
|
|
30
|
+
}
|
|
31
|
+
export interface CalculateTaxResponse {
|
|
32
|
+
externalId?: string;
|
|
33
|
+
currency?: string;
|
|
34
|
+
addresses?: Address[];
|
|
35
|
+
taxSummary?: TaxSummary;
|
|
36
|
+
lineItemTaxDetails?: LineItemTaxDetails[];
|
|
37
|
+
errors?: ApplicationError[];
|
|
38
|
+
}
|
|
39
|
+
export interface LineItem {
|
|
40
|
+
id?: string;
|
|
41
|
+
itemName?: string;
|
|
42
|
+
quantity?: number;
|
|
43
|
+
price?: string;
|
|
44
|
+
itemCode?: string;
|
|
45
|
+
taxGroupId?: string;
|
|
46
|
+
appId?: string;
|
|
47
|
+
taxIncludedInPrice?: boolean;
|
|
48
|
+
addressIndex?: AddressIndex;
|
|
49
|
+
}
|
|
50
|
+
export interface LineItemTaxDetails {
|
|
51
|
+
id?: string;
|
|
52
|
+
itemName?: string;
|
|
53
|
+
quantity?: number;
|
|
54
|
+
taxBreakdown?: TaxBreakdown[];
|
|
55
|
+
taxSummary?: LineItemTaxSummary;
|
|
56
|
+
addressIndex?: AddressIndex;
|
|
57
|
+
taxIncludedInPrice?: boolean;
|
|
58
|
+
}
|
|
59
|
+
export interface LineItemTaxSummary {
|
|
60
|
+
fullPrice?: string;
|
|
61
|
+
taxAmount?: string;
|
|
62
|
+
taxableAmount?: string;
|
|
63
|
+
appId?: string;
|
|
64
|
+
}
|
|
65
|
+
export interface ListTaxCalculatorsRequest {
|
|
66
|
+
}
|
|
67
|
+
export interface ListTaxCalculatorsResponse {
|
|
68
|
+
taxCalculatorDetails?: TaxCalculatorDetails[];
|
|
69
|
+
}
|
|
70
|
+
export interface MultipleAddresses {
|
|
71
|
+
origin?: number;
|
|
72
|
+
destination?: number;
|
|
73
|
+
}
|
|
74
|
+
export interface TaxBreakdown {
|
|
75
|
+
jurisdiction?: string;
|
|
76
|
+
nonTaxableAmount?: string;
|
|
77
|
+
rate?: string;
|
|
78
|
+
taxAmount?: string;
|
|
79
|
+
taxableAmount?: string;
|
|
80
|
+
taxType?: string;
|
|
81
|
+
taxName?: string;
|
|
82
|
+
jurisdictionType?: string;
|
|
83
|
+
}
|
|
84
|
+
export interface TaxCalculatorDetails {
|
|
85
|
+
appId?: string;
|
|
86
|
+
displayName?: string;
|
|
87
|
+
unsupportedCountries?: string[];
|
|
88
|
+
}
|
|
89
|
+
export interface TaxSummary {
|
|
90
|
+
totalAmount?: string;
|
|
91
|
+
totalTax?: string;
|
|
92
|
+
totalTaxableAmount?: string;
|
|
93
|
+
totalTaxIncludedInPrice?: string;
|
|
94
|
+
aggregatedTaxBreakdown?: AggregatedTaxBreakdown[];
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Calculates tax for the provided line items.
|
|
98
|
+
*
|
|
99
|
+
* @scope visitor — an anonymous visitor session is enough.
|
|
100
|
+
* @permissionId BILLING.CALCULATE_TAX
|
|
101
|
+
* @fqn wix.billing.v1.TaxCalculation.CalculateTax
|
|
102
|
+
*
|
|
103
|
+
* POST /billing/v1/calculate-tax
|
|
104
|
+
*/
|
|
105
|
+
export declare function calculateTax(req?: CalculateTaxRequest, opts?: WixCallOptions): Promise<CalculateTaxResponse>;
|
|
106
|
+
/**
|
|
107
|
+
* Retrieves a list of installed tax calculators.
|
|
108
|
+
*
|
|
109
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
110
|
+
* @permissionId BILLING.TAX_CALCULATORS_READ
|
|
111
|
+
* @fqn wix.billing.v1.TaxCalculation.ListTaxCalculators
|
|
112
|
+
*
|
|
113
|
+
* GET /billing/v1/list-tax-calculators
|
|
114
|
+
*/
|
|
115
|
+
export declare function listTaxCalculators(req?: ListTaxCalculatorsRequest, opts?: WixCallOptions): Promise<ListTaxCalculatorsResponse>;
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { type WixCallOptions } from "../_shared/runtime.generated.js";
|
|
2
|
+
import type { BulkActionMetadata, CursorPagingMetadata, CursorQuery, ExtendedFields, ItemMetadata, Tags } from "../_shared/types.generated.js";
|
|
3
|
+
export type { ApplicationError, BulkActionMetadata, CursorPaging, CursorPagingMetadata, CursorQuery, Cursors, ExtendedFields, ItemMetadata, Sorting, TagList, Tags } from "../_shared/types.generated.js";
|
|
4
|
+
export type { WixCallOptions } from "../_shared/runtime.generated.js";
|
|
5
|
+
export interface BulkCreateTaxExemptGroupsRequest {
|
|
6
|
+
taxExemptGroups?: TaxExemptGroup[];
|
|
7
|
+
returnEntity?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface BulkCreateTaxExemptGroupsResponse {
|
|
10
|
+
results?: BulkTaxExemptGroupResult[];
|
|
11
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
12
|
+
}
|
|
13
|
+
export interface BulkDeleteTaxExemptGroupsRequest {
|
|
14
|
+
taxExemptGroupIds?: string[];
|
|
15
|
+
}
|
|
16
|
+
export interface BulkDeleteTaxExemptGroupsResponse {
|
|
17
|
+
results?: BulkDeleteTaxExemptGroupsResponseBulkTaxExemptGroupResult[];
|
|
18
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
19
|
+
}
|
|
20
|
+
export interface BulkDeleteTaxExemptGroupsResponseBulkTaxExemptGroupResult {
|
|
21
|
+
itemMetadata?: ItemMetadata;
|
|
22
|
+
}
|
|
23
|
+
export interface BulkTaxExemptGroupResult {
|
|
24
|
+
itemMetadata?: ItemMetadata;
|
|
25
|
+
item?: TaxExemptGroup;
|
|
26
|
+
}
|
|
27
|
+
export interface BulkUpdateTaxExemptGroupTagsByFilterRequest {
|
|
28
|
+
filter?: Record<string, unknown>;
|
|
29
|
+
assignTags?: Tags;
|
|
30
|
+
unassignTags?: Tags;
|
|
31
|
+
}
|
|
32
|
+
export interface BulkUpdateTaxExemptGroupTagsByFilterResponse {
|
|
33
|
+
jobId?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface BulkUpdateTaxExemptGroupTagsRequest {
|
|
36
|
+
taxExemptGroupIds?: string[];
|
|
37
|
+
assignTags?: Tags;
|
|
38
|
+
unassignTags?: Tags;
|
|
39
|
+
}
|
|
40
|
+
export interface BulkUpdateTaxExemptGroupTagsResponse {
|
|
41
|
+
results?: BulkUpdateTaxExemptGroupTagsResult[];
|
|
42
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
43
|
+
}
|
|
44
|
+
export interface BulkUpdateTaxExemptGroupTagsResult {
|
|
45
|
+
itemMetadata?: ItemMetadata;
|
|
46
|
+
}
|
|
47
|
+
export interface BulkUpdateTaxExemptGroupsRequest {
|
|
48
|
+
taxExemptGroups?: MaskedTaxExemptGroup[];
|
|
49
|
+
returnEntity?: boolean;
|
|
50
|
+
}
|
|
51
|
+
export interface BulkUpdateTaxExemptGroupsResponse {
|
|
52
|
+
results?: BulkUpdateTaxExemptGroupsResponseBulkTaxExemptGroupResult[];
|
|
53
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
54
|
+
}
|
|
55
|
+
export interface BulkUpdateTaxExemptGroupsResponseBulkTaxExemptGroupResult {
|
|
56
|
+
itemMetadata?: ItemMetadata;
|
|
57
|
+
item?: TaxExemptGroup;
|
|
58
|
+
}
|
|
59
|
+
export interface CreateTaxExemptGroupRequest {
|
|
60
|
+
taxExemptGroup?: TaxExemptGroup;
|
|
61
|
+
}
|
|
62
|
+
export interface CreateTaxExemptGroupResponse {
|
|
63
|
+
taxExemptGroup?: TaxExemptGroup;
|
|
64
|
+
}
|
|
65
|
+
export interface DeleteTaxExemptGroupRequest {
|
|
66
|
+
taxExemptGroupId?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface DeleteTaxExemptGroupResponse {
|
|
69
|
+
}
|
|
70
|
+
export interface GetTaxExemptGroupRequest {
|
|
71
|
+
taxExemptGroupId?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface GetTaxExemptGroupResponse {
|
|
74
|
+
taxExemptGroup?: TaxExemptGroup;
|
|
75
|
+
}
|
|
76
|
+
export interface ListDefaultTaxExemptGroupsRequest {
|
|
77
|
+
}
|
|
78
|
+
export interface ListDefaultTaxExemptGroupsResponse {
|
|
79
|
+
taxExemptGroups?: TaxExemptDefaultGroup[];
|
|
80
|
+
}
|
|
81
|
+
export interface MaskedTaxExemptGroup {
|
|
82
|
+
taxExemptGroup?: TaxExemptGroup;
|
|
83
|
+
}
|
|
84
|
+
export interface QueryTaxExemptGroupsRequest {
|
|
85
|
+
query?: CursorQuery;
|
|
86
|
+
}
|
|
87
|
+
export interface QueryTaxExemptGroupsResponse {
|
|
88
|
+
taxExemptGroups?: TaxExemptGroup[];
|
|
89
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
90
|
+
}
|
|
91
|
+
export interface TaxExemptDefaultGroup {
|
|
92
|
+
id?: string;
|
|
93
|
+
name?: string;
|
|
94
|
+
appId?: string;
|
|
95
|
+
}
|
|
96
|
+
export interface TaxExemptGroup {
|
|
97
|
+
id?: string;
|
|
98
|
+
revision?: string;
|
|
99
|
+
createdDate?: string;
|
|
100
|
+
updatedDate?: string;
|
|
101
|
+
name?: string;
|
|
102
|
+
extendedFields?: ExtendedFields;
|
|
103
|
+
tags?: Tags;
|
|
104
|
+
}
|
|
105
|
+
export interface UpdateTaxExemptGroupRequest {
|
|
106
|
+
taxExemptGroup?: TaxExemptGroup;
|
|
107
|
+
}
|
|
108
|
+
export interface UpdateTaxExemptGroupResponse {
|
|
109
|
+
taxExemptGroup?: TaxExemptGroup;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Creates multiple tax exempt groups in a single request.
|
|
113
|
+
*
|
|
114
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
115
|
+
* @permissionId BILLING.TAX_EXEMPT_GROUP_CREATE
|
|
116
|
+
* @fqn wix.billing.v1.TaxExemptGroups.BulkCreateTaxExemptGroups
|
|
117
|
+
*
|
|
118
|
+
* POST /billing/v1/bulk/tax-exempt-groups/create
|
|
119
|
+
*/
|
|
120
|
+
export declare function bulkCreateTaxExemptGroups(req?: BulkCreateTaxExemptGroupsRequest, opts?: WixCallOptions): Promise<BulkCreateTaxExemptGroupsResponse>;
|
|
121
|
+
/**
|
|
122
|
+
* Deletes multiple tax exempt groups in a single request.
|
|
123
|
+
*
|
|
124
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
125
|
+
* @permissionId BILLING.TAX_EXEMPT_GROUP_DELETE
|
|
126
|
+
* @fqn wix.billing.v1.TaxExemptGroups.BulkDeleteTaxExemptGroups
|
|
127
|
+
*
|
|
128
|
+
* POST /billing/v1/bulk/tax-exempt-groups/delete
|
|
129
|
+
*/
|
|
130
|
+
export declare function bulkDeleteTaxExemptGroups(req?: BulkDeleteTaxExemptGroupsRequest, opts?: WixCallOptions): Promise<BulkDeleteTaxExemptGroupsResponse>;
|
|
131
|
+
/**
|
|
132
|
+
* Adds or removes tags on multiple tax exempt groups.
|
|
133
|
+
*
|
|
134
|
+
* @permissionId BILLING.TAX_EXEMPT_GROUP_UPDATE_TAGS
|
|
135
|
+
* @fqn wix.billing.v1.TaxExemptGroups.BulkUpdateTaxExemptGroupTags
|
|
136
|
+
*
|
|
137
|
+
* POST /billing/v1/bulk/tax-exempt-groups/update-tags
|
|
138
|
+
*/
|
|
139
|
+
export declare function bulkUpdateTaxExemptGroupTags(req?: BulkUpdateTaxExemptGroupTagsRequest, opts?: WixCallOptions): Promise<BulkUpdateTaxExemptGroupTagsResponse>;
|
|
140
|
+
/**
|
|
141
|
+
* Asynchronously updates tags on multiple tax exempt groups that match the provided filter criteria.
|
|
142
|
+
*
|
|
143
|
+
* @permissionId BILLING.TAX_EXEMPT_GROUP_UPDATE_TAGS
|
|
144
|
+
* @fqn wix.billing.v1.TaxExemptGroups.BulkUpdateTaxExemptGroupTagsByFilter
|
|
145
|
+
*
|
|
146
|
+
* POST /billing/v1/bulk/tax-exempt-groups/update-tags-by-filter
|
|
147
|
+
*/
|
|
148
|
+
export declare function bulkUpdateTaxExemptGroupTagsByFilter(req?: BulkUpdateTaxExemptGroupTagsByFilterRequest, opts?: WixCallOptions): Promise<BulkUpdateTaxExemptGroupTagsByFilterResponse>;
|
|
149
|
+
/**
|
|
150
|
+
* Updates multiple tax exempt groups in a single request.
|
|
151
|
+
*
|
|
152
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
153
|
+
* @permissionId BILLING.TAX_EXEMPT_GROUP_UPDATE
|
|
154
|
+
* @fqn wix.billing.v1.TaxExemptGroups.BulkUpdateTaxExemptGroups
|
|
155
|
+
*
|
|
156
|
+
* POST /billing/v1/bulk/tax-exempt-groups/update
|
|
157
|
+
*/
|
|
158
|
+
export declare function bulkUpdateTaxExemptGroups(req?: BulkUpdateTaxExemptGroupsRequest, opts?: WixCallOptions): Promise<BulkUpdateTaxExemptGroupsResponse>;
|
|
159
|
+
/**
|
|
160
|
+
* Creates a tax exempt group.
|
|
161
|
+
*
|
|
162
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
163
|
+
* @permissionId BILLING.TAX_EXEMPT_GROUP_CREATE
|
|
164
|
+
* @fqn wix.billing.v1.TaxExemptGroups.CreateTaxExemptGroup
|
|
165
|
+
*
|
|
166
|
+
* POST /billing/v1/tax-exempt-groups
|
|
167
|
+
*/
|
|
168
|
+
export declare function createTaxExemptGroup(req?: CreateTaxExemptGroupRequest, opts?: WixCallOptions): Promise<CreateTaxExemptGroupResponse>;
|
|
169
|
+
/**
|
|
170
|
+
* Deletes a tax exempt group.
|
|
171
|
+
*
|
|
172
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
173
|
+
* @permissionId BILLING.TAX_EXEMPT_GROUP_DELETE
|
|
174
|
+
* @fqn wix.billing.v1.TaxExemptGroups.DeleteTaxExemptGroup
|
|
175
|
+
*
|
|
176
|
+
* DELETE /billing/v1/tax-exempt-groups/{taxExemptGroupId}
|
|
177
|
+
*/
|
|
178
|
+
export declare function deleteTaxExemptGroup(req: DeleteTaxExemptGroupRequest, opts?: WixCallOptions): Promise<DeleteTaxExemptGroupResponse>;
|
|
179
|
+
/**
|
|
180
|
+
* Retrieves a tax exempt group.
|
|
181
|
+
*
|
|
182
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
183
|
+
* @permissionId BILLING.TAX_EXEMPT_GROUP_READ
|
|
184
|
+
* @fqn wix.billing.v1.TaxExemptGroups.GetTaxExemptGroup
|
|
185
|
+
*
|
|
186
|
+
* GET /billing/v1/tax-exempt-groups/{taxExemptGroupId}
|
|
187
|
+
*/
|
|
188
|
+
export declare function getTaxExemptGroup(req: GetTaxExemptGroupRequest, opts?: WixCallOptions): Promise<GetTaxExemptGroupResponse>;
|
|
189
|
+
/**
|
|
190
|
+
* Retrieves the site's default tax exempt groups.
|
|
191
|
+
*
|
|
192
|
+
* @scope visitor — an anonymous visitor session is enough.
|
|
193
|
+
* @permissionId BILLING.TAX_GROUP_READ
|
|
194
|
+
* @fqn wix.billing.v1.TaxExemptGroups.ListDefaultTaxExemptGroups
|
|
195
|
+
*
|
|
196
|
+
* GET /billing/v1/tax-exempt-groups/default-tax-exempt-groups
|
|
197
|
+
*/
|
|
198
|
+
export declare function listDefaultTaxExemptGroups(req?: ListDefaultTaxExemptGroupsRequest, opts?: WixCallOptions): Promise<ListDefaultTaxExemptGroupsResponse>;
|
|
199
|
+
/**
|
|
200
|
+
* Retrieves a list of up to 100 tax exempt groups, given the provided paging, filtering, and sorting.
|
|
201
|
+
*
|
|
202
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
203
|
+
* @permissionId BILLING.TAX_EXEMPT_GROUP_READ
|
|
204
|
+
* @fqn wix.billing.v1.TaxExemptGroups.QueryTaxExemptGroups
|
|
205
|
+
*
|
|
206
|
+
* POST /billing/v1/tax-exempt-groups/query
|
|
207
|
+
*/
|
|
208
|
+
export declare function queryTaxExemptGroups(req?: QueryTaxExemptGroupsRequest, opts?: WixCallOptions): Promise<QueryTaxExemptGroupsResponse>;
|
|
209
|
+
/**
|
|
210
|
+
* Updates a tax exempt group.
|
|
211
|
+
*
|
|
212
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
213
|
+
* @permissionId BILLING.TAX_EXEMPT_GROUP_UPDATE
|
|
214
|
+
* @fqn wix.billing.v1.TaxExemptGroups.UpdateTaxExemptGroup
|
|
215
|
+
*
|
|
216
|
+
* PATCH /billing/v1/tax-exempt-groups/{taxExemptGroupId}
|
|
217
|
+
*/
|
|
218
|
+
export declare function updateTaxExemptGroup(req: UpdateTaxExemptGroupRequest, opts?: WixCallOptions): Promise<UpdateTaxExemptGroupResponse>;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { type WixCallOptions } from "../_shared/runtime.generated.js";
|
|
2
|
+
import type { AddressLocation, BulkActionMetadata, CursorPaging, CursorPagingMetadata, ItemMetadata, Paging } from "../_shared/types.generated.js";
|
|
3
|
+
export type { AddressLocation, ApplicationError, BulkActionMetadata, CursorPaging, CursorPagingMetadata, Cursors, ItemMetadata, Paging } from "../_shared/types.generated.js";
|
|
4
|
+
export type { WixCallOptions } from "../_shared/runtime.generated.js";
|
|
5
|
+
export interface CreateTaxGroupRequest {
|
|
6
|
+
taxGroup?: TaxGroup;
|
|
7
|
+
}
|
|
8
|
+
export interface CreateTaxGroupResponse {
|
|
9
|
+
taxGroup?: TaxGroup;
|
|
10
|
+
}
|
|
11
|
+
export interface DeleteTaxGroupRequest {
|
|
12
|
+
taxGroupId?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface DeleteTaxGroupResponse {
|
|
15
|
+
}
|
|
16
|
+
export interface GetTaxGroupRequest {
|
|
17
|
+
taxGroupId?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface GetTaxGroupResponse {
|
|
20
|
+
taxGroup?: TaxGroup;
|
|
21
|
+
}
|
|
22
|
+
export interface ListDefaultTaxGroupsByAppIdsRequest {
|
|
23
|
+
appIds?: string[];
|
|
24
|
+
}
|
|
25
|
+
export interface ListDefaultTaxGroupsByAppIdsResponse {
|
|
26
|
+
results?: ListDefaultTaxGroupsByAppIdsResult[];
|
|
27
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
28
|
+
}
|
|
29
|
+
export interface ListDefaultTaxGroupsByAppIdsResult {
|
|
30
|
+
taxGroupMetadata?: ItemMetadata;
|
|
31
|
+
taxGroup?: TaxGroup;
|
|
32
|
+
}
|
|
33
|
+
export interface ListDefaultTaxGroupsRequest {
|
|
34
|
+
}
|
|
35
|
+
export interface ListDefaultTaxGroupsResponse {
|
|
36
|
+
taxGroups?: TaxGroup[];
|
|
37
|
+
}
|
|
38
|
+
export interface QueryTaxGroupsRequest {
|
|
39
|
+
query?: QueryV2;
|
|
40
|
+
}
|
|
41
|
+
export interface QueryTaxGroupsResponse {
|
|
42
|
+
taxGroups?: TaxGroup[];
|
|
43
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
44
|
+
}
|
|
45
|
+
export interface QueryV2 {
|
|
46
|
+
paging?: Paging;
|
|
47
|
+
cursorPaging?: CursorPaging;
|
|
48
|
+
filter?: Record<string, unknown>;
|
|
49
|
+
sort?: Sorting[];
|
|
50
|
+
fields?: string[];
|
|
51
|
+
fieldsets?: string[];
|
|
52
|
+
}
|
|
53
|
+
export interface Sorting {
|
|
54
|
+
fieldName?: string;
|
|
55
|
+
order?: string;
|
|
56
|
+
origin?: AddressLocation;
|
|
57
|
+
}
|
|
58
|
+
export interface TaxGroup {
|
|
59
|
+
id?: string;
|
|
60
|
+
name?: string;
|
|
61
|
+
revision?: string;
|
|
62
|
+
createdDate?: string;
|
|
63
|
+
updatedDate?: string;
|
|
64
|
+
}
|
|
65
|
+
export interface UpdateTaxGroupRequest {
|
|
66
|
+
taxGroup?: TaxGroup;
|
|
67
|
+
}
|
|
68
|
+
export interface UpdateTaxGroupResponse {
|
|
69
|
+
taxGroup?: TaxGroup;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Creates a tax group.
|
|
73
|
+
*
|
|
74
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
75
|
+
* @permissionId BILLING.TAX_GROUP_CREATE
|
|
76
|
+
* @fqn wix.billing.v1.TaxGroups.CreateTaxGroup
|
|
77
|
+
*
|
|
78
|
+
* POST /billing/v1/tax-groups
|
|
79
|
+
*/
|
|
80
|
+
export declare function createTaxGroup(req?: CreateTaxGroupRequest, opts?: WixCallOptions): Promise<CreateTaxGroupResponse>;
|
|
81
|
+
/**
|
|
82
|
+
* Deletes a tax group.
|
|
83
|
+
*
|
|
84
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
85
|
+
* @permissionId BILLING.TAX_GROUP_DELETE
|
|
86
|
+
* @fqn wix.billing.v1.TaxGroups.DeleteTaxGroup
|
|
87
|
+
*
|
|
88
|
+
* DELETE /billing/v1/tax-groups/{taxGroupId}
|
|
89
|
+
*/
|
|
90
|
+
export declare function deleteTaxGroup(req: DeleteTaxGroupRequest, opts?: WixCallOptions): Promise<DeleteTaxGroupResponse>;
|
|
91
|
+
/**
|
|
92
|
+
* Retrieves a tax group.
|
|
93
|
+
*
|
|
94
|
+
* @scope visitor — an anonymous visitor session is enough.
|
|
95
|
+
* @permissionId BILLING.TAX_GROUP_READ
|
|
96
|
+
* @fqn wix.billing.v1.TaxGroups.GetTaxGroup
|
|
97
|
+
*
|
|
98
|
+
* GET /billing/v1/tax-groups/{taxGroupId}
|
|
99
|
+
*/
|
|
100
|
+
export declare function getTaxGroup(req: GetTaxGroupRequest, opts?: WixCallOptions): Promise<GetTaxGroupResponse>;
|
|
101
|
+
/**
|
|
102
|
+
* Retrieves a list of default tax groups.
|
|
103
|
+
*
|
|
104
|
+
* @scope visitor — an anonymous visitor session is enough.
|
|
105
|
+
* @permissionId BILLING.TAX_GROUP_READ
|
|
106
|
+
* @fqn wix.billing.v1.TaxGroups.ListDefaultTaxGroups
|
|
107
|
+
*
|
|
108
|
+
* GET /billing/v1/tax-groups/default-tax-groups
|
|
109
|
+
*/
|
|
110
|
+
export declare function listDefaultTaxGroups(req?: ListDefaultTaxGroupsRequest, opts?: WixCallOptions): Promise<ListDefaultTaxGroupsResponse>;
|
|
111
|
+
/**
|
|
112
|
+
* Retrieves default tax groups for specific apps.
|
|
113
|
+
*
|
|
114
|
+
* @scope visitor — an anonymous visitor session is enough.
|
|
115
|
+
* @permissionId BILLING.TAX_GROUP_READ
|
|
116
|
+
* @fqn wix.billing.v1.TaxGroups.ListDefaultTaxGroupsByAppIds
|
|
117
|
+
*
|
|
118
|
+
* POST /billing/v1/tax-groups/list-default-tax-groups-by-app-ids
|
|
119
|
+
*/
|
|
120
|
+
export declare function listDefaultTaxGroupsByAppIds(req?: ListDefaultTaxGroupsByAppIdsRequest, opts?: WixCallOptions): Promise<ListDefaultTaxGroupsByAppIdsResponse>;
|
|
121
|
+
/**
|
|
122
|
+
* Creates a query to retrieve a list of tax groups.
|
|
123
|
+
*
|
|
124
|
+
* @scope visitor — an anonymous visitor session is enough.
|
|
125
|
+
* @permissionId BILLING.TAX_GROUP_READ
|
|
126
|
+
* @fqn wix.billing.v1.TaxGroups.QueryTaxGroups
|
|
127
|
+
*
|
|
128
|
+
* POST /billing/v1/tax-groups/query
|
|
129
|
+
*/
|
|
130
|
+
export declare function queryTaxGroups(req?: QueryTaxGroupsRequest, opts?: WixCallOptions): Promise<QueryTaxGroupsResponse>;
|
|
131
|
+
/**
|
|
132
|
+
* Updates a tax group.
|
|
133
|
+
*
|
|
134
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
135
|
+
* @permissionId BILLING.TAX_GROUP_UPDATE
|
|
136
|
+
* @fqn wix.billing.v1.TaxGroups.UpdateTaxGroup
|
|
137
|
+
*
|
|
138
|
+
* PATCH /billing/v1/tax-groups/{taxGroupId}
|
|
139
|
+
*/
|
|
140
|
+
export declare function updateTaxGroup(req: UpdateTaxGroupRequest, opts?: WixCallOptions): Promise<UpdateTaxGroupResponse>;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { type WixCallOptions } from "../_shared/runtime.generated.js";
|
|
2
|
+
import type { AddressLocation, BulkActionMetadata, CursorPaging, CursorPagingMetadata, ItemMetadata } from "../_shared/types.generated.js";
|
|
3
|
+
export type { AddressLocation, ApplicationError, BulkActionMetadata, CursorPaging, CursorPagingMetadata, Cursors, ItemMetadata } from "../_shared/types.generated.js";
|
|
4
|
+
export type { WixCallOptions } from "../_shared/runtime.generated.js";
|
|
5
|
+
export interface BulkCreateTaxRegionRequest {
|
|
6
|
+
taxRegions?: TaxRegion[];
|
|
7
|
+
returnEntity?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface BulkCreateTaxRegionResponse {
|
|
10
|
+
results?: BulkCreateTaxRegionResult[];
|
|
11
|
+
bulkActionMetadata?: BulkActionMetadata;
|
|
12
|
+
}
|
|
13
|
+
export interface BulkCreateTaxRegionResult {
|
|
14
|
+
itemMetadata?: ItemMetadata;
|
|
15
|
+
item?: TaxRegion;
|
|
16
|
+
}
|
|
17
|
+
export interface CreateTaxRegionRequest {
|
|
18
|
+
taxRegion?: TaxRegion;
|
|
19
|
+
}
|
|
20
|
+
export interface CreateTaxRegionResponse {
|
|
21
|
+
taxRegion?: TaxRegion;
|
|
22
|
+
}
|
|
23
|
+
export interface CursorQuery {
|
|
24
|
+
cursorPaging?: CursorPaging;
|
|
25
|
+
filter?: Record<string, unknown>;
|
|
26
|
+
sort?: Sorting[];
|
|
27
|
+
}
|
|
28
|
+
export interface DeleteTaxRegionRequest {
|
|
29
|
+
taxRegionId?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface DeleteTaxRegionResponse {
|
|
32
|
+
}
|
|
33
|
+
export interface GetTaxRegionRequest {
|
|
34
|
+
taxRegionId?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface GetTaxRegionResponse {
|
|
37
|
+
taxRegion?: TaxRegion;
|
|
38
|
+
}
|
|
39
|
+
export interface QueryTaxRegionsRequest {
|
|
40
|
+
query?: CursorQuery;
|
|
41
|
+
}
|
|
42
|
+
export interface QueryTaxRegionsResponse {
|
|
43
|
+
taxRegions?: TaxRegion[];
|
|
44
|
+
pagingMetadata?: CursorPagingMetadata;
|
|
45
|
+
}
|
|
46
|
+
export interface Sorting {
|
|
47
|
+
fieldName?: string;
|
|
48
|
+
order?: string;
|
|
49
|
+
origin?: AddressLocation;
|
|
50
|
+
}
|
|
51
|
+
export interface TaxRegion {
|
|
52
|
+
id?: string;
|
|
53
|
+
country?: string;
|
|
54
|
+
subdivision?: string;
|
|
55
|
+
appId?: string;
|
|
56
|
+
taxIncludedInPrice?: boolean;
|
|
57
|
+
revision?: string;
|
|
58
|
+
createdDate?: string;
|
|
59
|
+
updatedDate?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface UpdateTaxRegionRequest {
|
|
62
|
+
taxRegion?: TaxRegion;
|
|
63
|
+
}
|
|
64
|
+
export interface UpdateTaxRegionResponse {
|
|
65
|
+
taxRegion?: TaxRegion;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Create multiple Tax Regions by Bulk
|
|
69
|
+
*
|
|
70
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
71
|
+
* @permissionId BILLING.TAX_REGION_CREATE
|
|
72
|
+
* @fqn wix.billing.v1.TaxRegionsService.BulkCreateTaxRegion
|
|
73
|
+
*
|
|
74
|
+
* POST /billing/v1/bulk/tax-regions/create
|
|
75
|
+
*/
|
|
76
|
+
export declare function bulkCreateTaxRegion(req?: BulkCreateTaxRegionRequest, opts?: WixCallOptions): Promise<BulkCreateTaxRegionResponse>;
|
|
77
|
+
/**
|
|
78
|
+
* Creates a tax region.
|
|
79
|
+
*
|
|
80
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
81
|
+
* @permissionId BILLING.TAX_REGION_CREATE
|
|
82
|
+
* @fqn wix.billing.v1.TaxRegionsService.CreateTaxRegion
|
|
83
|
+
*
|
|
84
|
+
* POST /billing/v1/tax-regions
|
|
85
|
+
*/
|
|
86
|
+
export declare function createTaxRegion(req?: CreateTaxRegionRequest, opts?: WixCallOptions): Promise<CreateTaxRegionResponse>;
|
|
87
|
+
/**
|
|
88
|
+
* Deletes a tax region.
|
|
89
|
+
*
|
|
90
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
91
|
+
* @permissionId BILLING.TAX_REGION_DELETE
|
|
92
|
+
* @fqn wix.billing.v1.TaxRegionsService.DeleteTaxRegion
|
|
93
|
+
*
|
|
94
|
+
* DELETE /billing/v1/tax-regions/{taxRegionId}
|
|
95
|
+
*/
|
|
96
|
+
export declare function deleteTaxRegion(req: DeleteTaxRegionRequest, opts?: WixCallOptions): Promise<DeleteTaxRegionResponse>;
|
|
97
|
+
/**
|
|
98
|
+
* Retrieves a tax region.
|
|
99
|
+
*
|
|
100
|
+
* @scope visitor — an anonymous visitor session is enough.
|
|
101
|
+
* @permissionId BILLING.TAX_REGION_READ
|
|
102
|
+
* @fqn wix.billing.v1.TaxRegionsService.GetTaxRegion
|
|
103
|
+
*
|
|
104
|
+
* GET /billing/v1/tax-regions/{taxRegionId}
|
|
105
|
+
*/
|
|
106
|
+
export declare function getTaxRegion(req: GetTaxRegionRequest, opts?: WixCallOptions): Promise<GetTaxRegionResponse>;
|
|
107
|
+
/**
|
|
108
|
+
* Creates a query to retrieve a list of tax regions.
|
|
109
|
+
*
|
|
110
|
+
* @scope visitor — an anonymous visitor session is enough.
|
|
111
|
+
* @permissionId BILLING.TAX_REGION_READ
|
|
112
|
+
* @fqn wix.billing.v1.TaxRegionsService.QueryTaxRegions
|
|
113
|
+
*
|
|
114
|
+
* POST /billing/v1/tax-regions/query
|
|
115
|
+
*/
|
|
116
|
+
export declare function queryTaxRegions(req?: QueryTaxRegionsRequest, opts?: WixCallOptions): Promise<QueryTaxRegionsResponse>;
|
|
117
|
+
/**
|
|
118
|
+
* Updates a tax region.
|
|
119
|
+
*
|
|
120
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
121
|
+
* @permissionId BILLING.TAX_REGION_UPDATE
|
|
122
|
+
* @fqn wix.billing.v1.TaxRegionsService.UpdateTaxRegion
|
|
123
|
+
*
|
|
124
|
+
* PATCH /billing/v1/tax-regions/{taxRegionId}
|
|
125
|
+
*/
|
|
126
|
+
export declare function updateTaxRegion(req: UpdateTaxRegionRequest, opts?: WixCallOptions): Promise<UpdateTaxRegionResponse>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type WixCallOptions } from "../_shared/runtime.generated.js";
|
|
2
|
+
export type { WixCallOptions } from "../_shared/runtime.generated.js";
|
|
3
|
+
export interface GetTaxSettingsRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface GetTaxSettingsResponse {
|
|
6
|
+
taxSettings?: TaxSettings;
|
|
7
|
+
}
|
|
8
|
+
export interface TaxSettings {
|
|
9
|
+
taxIncludedInItemPrices?: boolean;
|
|
10
|
+
createdDate?: string;
|
|
11
|
+
updatedDate?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface UpsertTaxSettingsRequest {
|
|
14
|
+
taxSettings?: TaxSettings;
|
|
15
|
+
}
|
|
16
|
+
export interface UpsertTaxSettingsResponse {
|
|
17
|
+
taxSettings?: TaxSettings;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves the site's tax settings.
|
|
21
|
+
*
|
|
22
|
+
* @scope visitor — an anonymous visitor session is enough.
|
|
23
|
+
* @permissionId billing:tax:v1:tax_settings:get_tax_settings
|
|
24
|
+
* @fqn wix.billing.tax.v1.TaxSettingsService.GetTaxSettings
|
|
25
|
+
*
|
|
26
|
+
* GET /billing/v1/tax-settings
|
|
27
|
+
*/
|
|
28
|
+
export declare function getTaxSettings(req?: GetTaxSettingsRequest, opts?: WixCallOptions): Promise<GetTaxSettingsResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Creates or updates the site's tax settings.
|
|
31
|
+
*
|
|
32
|
+
* @scope owner — requires an owner / business identity — a visitor session gets 403.
|
|
33
|
+
* @permissionId billing:tax:v1:tax_settings:upsert_tax_settings
|
|
34
|
+
* @fqn wix.billing.tax.v1.TaxSettingsService.UpsertTaxSettings
|
|
35
|
+
*
|
|
36
|
+
* POST /billing/v1/tax-settings
|
|
37
|
+
*/
|
|
38
|
+
export declare function upsertTaxSettings(req?: UpsertTaxSettingsRequest, opts?: WixCallOptions): Promise<UpsertTaxSettingsResponse>;
|