@wix/auto_sdk_ecom_tax-calculation 1.0.52 → 1.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/schemas.js +4 -4
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/schemas.mjs +4 -4
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/schemas.js +4 -4
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/schemas.mjs +4 -4
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/schemas.js
CHANGED
|
@@ -39,7 +39,7 @@ module.exports = __toCommonJS(schemas_exports);
|
|
|
39
39
|
|
|
40
40
|
// src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.ts
|
|
41
41
|
var z = __toESM(require("zod"));
|
|
42
|
-
var CalculateTaxRequest = z.object({
|
|
42
|
+
var CalculateTaxRequest = /* @__PURE__ */ z.object({
|
|
43
43
|
options: z.object({
|
|
44
44
|
externalId: z.string().describe(
|
|
45
45
|
"Optional ID of the entity that tax is being calculated for. For example, a cart ID."
|
|
@@ -120,7 +120,7 @@ var CalculateTaxRequest = z.object({
|
|
|
120
120
|
).min(1).max(300)
|
|
121
121
|
}).describe("Calculate tax options.")
|
|
122
122
|
});
|
|
123
|
-
var CalculateTaxResponse = z.object({
|
|
123
|
+
var CalculateTaxResponse = /* @__PURE__ */ z.object({
|
|
124
124
|
externalId: z.string().describe(
|
|
125
125
|
"Optional ID of the entity that tax is being calculated for. For example, a cart ID."
|
|
126
126
|
).regex(
|
|
@@ -249,8 +249,8 @@ var CalculateTaxResponse = z.object({
|
|
|
249
249
|
})
|
|
250
250
|
).min(0).max(100).optional()
|
|
251
251
|
});
|
|
252
|
-
var ListTaxCalculatorsRequest = z.object({});
|
|
253
|
-
var ListTaxCalculatorsResponse = z.object({
|
|
252
|
+
var ListTaxCalculatorsRequest = /* @__PURE__ */ z.object({});
|
|
253
|
+
var ListTaxCalculatorsResponse = /* @__PURE__ */ z.object({
|
|
254
254
|
taxCalculatorDetails: z.array(
|
|
255
255
|
z.object({
|
|
256
256
|
appId: z.string().describe("ID of the tax calculator.").regex(
|
package/build/cjs/schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../schemas.ts","../../src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.ts"],"sourcesContent":["export * from './src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.js';\n","import * as z from 'zod';\n\nexport const CalculateTaxRequest = z.object({\n options: z\n .object({\n externalId: z\n .string()\n .describe(\n 'Optional ID of the entity that tax is being calculated for. For example, a cart ID.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n currency: z\n .string()\n .describe(\n '3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.'\n )\n .optional(),\n addresses: z\n .array(\n z.object({\n country: z\n .string()\n .describe(\n '2-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.'\n )\n .optional()\n .nullable(),\n subdivision: z\n .string()\n .describe(\n 'Subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.'\n )\n .max(50)\n .optional()\n .nullable(),\n city: z\n .string()\n .describe('City name.')\n .max(100)\n .optional()\n .nullable(),\n postalCode: z\n .string()\n .describe('Postal or zip code.')\n .max(50)\n .optional()\n .nullable(),\n addressLine: z\n .string()\n .describe(\n 'Main address line, usually street and number as free text.'\n )\n .max(200)\n .optional()\n .nullable(),\n addressLine2: z\n .string()\n .describe(\n 'Free text providing more detailed address information, such as apartment, suite, or floor.'\n )\n .max(200)\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3),\n lineItems: z\n .array(\n z.object({\n _id: z.string().describe('Line item ID.').min(1).max(100),\n itemName: z\n .string()\n .describe('Line item name to display.')\n .min(0)\n .max(250)\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Line item quantity.')\n .min(1)\n .max(100000)\n .optional(),\n price: z.string().describe('Line item price.'),\n itemCode: z\n .string()\n .describe(\n 'Stock keeping unit for this line item. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).'\n )\n .max(40)\n .optional()\n .nullable(),\n taxGroupId: z\n .string()\n .describe(\n 'Tax group ID for this line item. If not provided, the default tax group applies.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app providing the catalog for this line item.\\n\\nYou can get your app\\'s ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\\n\\nFor items from Wix catalogs, the following values always apply:\\n+ Wix Stores: `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`\\n+ Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n+ Wix Restaurants: `\"9a5d83fd-8570-482e-81ab-cfa88942ee60\"`'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n taxIncludedInPrice: z\n .boolean()\n .describe('Whether tax is included in the price.')\n .optional()\n .nullable(),\n addressIndex: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z.never().optional(),\n }),\n z.object({\n multipleAddresses: z.never().optional(),\n singleAddress: z\n .number()\n .int()\n .describe(\n 'Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based.'\n ),\n }),\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z\n .object({\n origin: z\n .number()\n .int()\n .describe('Index of the origin address.')\n .optional(),\n destination: z\n .number()\n .int()\n .describe('Index of the destination address.')\n .optional(),\n })\n .describe(\n 'Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\\nas well as the address the item is shipped to.'\n ),\n }),\n ])\n )\n .describe(\n 'Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based.'\n ),\n })\n )\n .min(1)\n .max(300),\n })\n .describe('Calculate tax options.'),\n});\nexport const CalculateTaxResponse = z.object({\n externalId: z\n .string()\n .describe(\n 'Optional ID of the entity that tax is being calculated for. For example, a cart ID.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n currency: z\n .string()\n .describe(\n '3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.'\n )\n .optional(),\n addresses: z\n .array(\n z.object({\n city: z.string().optional().nullable(),\n subdivision: z.string().optional().nullable(),\n country: z.string().optional().nullable(),\n postalCode: z.string().optional().nullable(),\n addressLine2: z.string().optional().nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n taxSummary: z\n .object({\n totalAmount: z\n .string()\n .describe('Total price for all line items.')\n .optional(),\n totalTax: z\n .string()\n .describe(\n 'Total amount of tax calculated for all line items.\\nNote that due to rounding, `totalTax` may not equal the sum of `lineItemTaxDetails.taxSummary.taxAmount`.'\n )\n .optional(),\n totalTaxableAmount: z\n .string()\n .describe('Total taxable amount for all line items.')\n .optional(),\n totalTaxIncludedInPrice: z\n .string()\n .describe(\n 'Total amount of `totalTax` that is included in price. Applies to line items with `taxIncludedInPrice` set to `true`.'\n )\n .optional(),\n aggregatedTaxBreakdown: z\n .array(\n z.object({\n taxName: z\n .string()\n .describe('Name of the tax that was calculated.')\n .max(200)\n .optional(),\n taxType: z\n .string()\n .describe('Type of tax that was calculated.')\n .max(200)\n .optional(),\n jurisdiction: z\n .string()\n .describe('Jurisdiction that taxes were calculated for.')\n .max(200)\n .optional(),\n jurisdictionType: z\n .enum([\n 'UNDEFINED',\n 'COUNTRY',\n 'STATE',\n 'COUNTY',\n 'CITY',\n 'SPECIAL',\n ])\n .describe('Type of jurisdiction that taxes were calculated for.')\n .optional(),\n rate: z\n .string()\n .describe(\n 'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `\"0.1000\"` and 200% tax is `\"2.0000\"`.'\n )\n .optional(),\n aggregatedTaxAmount: z\n .string()\n .describe('Total amount of this tax for this jurisdiction.')\n .optional(),\n })\n )\n .min(0)\n .max(50)\n .optional(),\n })\n .describe('Summary of the tax calculated.')\n .optional(),\n lineItemTaxDetails: z\n .array(\n z.object({\n _id: z.string().describe('Line item ID.').min(1).max(100).optional(),\n itemName: z\n .string()\n .describe('Line item name to display.')\n .min(0)\n .max(250)\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Line item quantity.')\n .min(1)\n .max(100000)\n .optional(),\n taxBreakdown: z\n .array(\n z.object({\n jurisdiction: z\n .string()\n .describe('Jurisdiction that taxes were calculated for.')\n .max(200)\n .optional()\n .nullable(),\n nonTaxableAmount: z\n .string()\n .describe('Non-taxable amount of the price.')\n .optional()\n .nullable(),\n rate: z\n .string()\n .describe(\n 'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `\"0.1000\"` and 200% tax is `\"2.0000\"`.'\n )\n .optional()\n .nullable(),\n taxAmount: z\n .string()\n .describe(\n 'Amount of this tax calculated for this jurisdiction.'\n )\n .optional()\n .nullable(),\n taxableAmount: z\n .string()\n .describe('Taxable amount of the price.')\n .optional()\n .nullable(),\n taxType: z\n .string()\n .describe(\n 'Type of tax that was calculated. For example, `\"Sales Tax\"`, `\"Income Tax\"`, `\"Value Added Tax\"`, etc.'\n )\n .max(200)\n .optional()\n .nullable(),\n taxName: z\n .string()\n .describe(\n 'Name of the tax that was calculated. For example, `\"NY State Sales Tax\"`, `\"Quebec GST\"`, etc.'\n )\n .max(200)\n .optional()\n .nullable(),\n jurisdictionType: z\n .enum([\n 'UNDEFINED',\n 'COUNTRY',\n 'STATE',\n 'COUNTY',\n 'CITY',\n 'SPECIAL',\n ])\n .describe(\n 'Type of jurisdiction that taxes were calculated for. For example, `\"State\"`, `\"Çounty\"`, `\"City\"`, `\"Special\"`, etc.'\n )\n .optional(),\n })\n )\n .max(7)\n .optional(),\n taxSummary: z\n .object({\n fullPrice: z\n .string()\n .describe(\n 'Total price for this line item.\\nTo determine the price for each individual unit of this line item, divide by `quantity`.'\n )\n .optional()\n .nullable(),\n taxAmount: z\n .string()\n .describe('Total amount of tax calculated for this line item.')\n .optional(),\n taxableAmount: z\n .string()\n .describe('Total taxable amount for this line item.')\n .optional(),\n appId: z\n .string()\n .describe(\n 'ID of the calculator app that calculated tax for this line item.'\n )\n .max(50)\n .optional()\n .nullable(),\n })\n .describe(\"Summary of this line item's total price and tax.\")\n .optional(),\n addressIndex: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z.never().optional(),\n }),\n z.object({\n multipleAddresses: z.never().optional(),\n singleAddress: z\n .number()\n .int()\n .describe(\n 'Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based.'\n ),\n }),\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z\n .object({\n origin: z\n .number()\n .int()\n .describe('Index of the origin address.')\n .optional(),\n destination: z\n .number()\n .int()\n .describe('Index of the destination address.')\n .optional(),\n })\n .describe(\n 'Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\\nas well as the address the item is shipped to.'\n ),\n }),\n ])\n )\n .describe(\n 'Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based.'\n )\n .optional(),\n taxIncludedInPrice: z\n .boolean()\n .describe('Whether tax is included in the price.')\n .optional(),\n })\n )\n .min(1)\n .max(300)\n .optional(),\n errors: z\n .array(\n z.object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n )\n .min(0)\n .max(100)\n .optional(),\n});\nexport const ListTaxCalculatorsRequest = z.object({});\nexport const ListTaxCalculatorsResponse = z.object({\n taxCalculatorDetails: z\n .array(\n z.object({\n appId: z\n .string()\n .describe('ID of the tax calculator.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n displayName: z\n .string()\n .describe('Display name of the tax calculator.')\n .min(1)\n .max(200)\n .optional(),\n unsupportedCountries: z.array(z.string()).max(195).optional(),\n })\n )\n .max(10)\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,sBAAwB,SAAO;AAAA,EAC1C,SACG,SAAO;AAAA,IACN,YACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,UACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,WACG;AAAA,MACG,SAAO;AAAA,QACP,SACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,aACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,QACZ,MACG,SAAO,EACP,SAAS,YAAY,EACrB,IAAI,GAAG,EACP,SAAS,EACT,SAAS;A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
|
1
|
+
{"version":3,"sources":["../../schemas.ts","../../src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.ts"],"sourcesContent":["export * from './src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.js';\n","import * as z from 'zod';\n\nexport const CalculateTaxRequest = /*#__PURE__*/ z.object({\n options: z\n .object({\n externalId: z\n .string()\n .describe(\n 'Optional ID of the entity that tax is being calculated for. For example, a cart ID.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n currency: z\n .string()\n .describe(\n '3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.'\n )\n .optional(),\n addresses: z\n .array(\n z.object({\n country: z\n .string()\n .describe(\n '2-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.'\n )\n .optional()\n .nullable(),\n subdivision: z\n .string()\n .describe(\n 'Subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.'\n )\n .max(50)\n .optional()\n .nullable(),\n city: z\n .string()\n .describe('City name.')\n .max(100)\n .optional()\n .nullable(),\n postalCode: z\n .string()\n .describe('Postal or zip code.')\n .max(50)\n .optional()\n .nullable(),\n addressLine: z\n .string()\n .describe(\n 'Main address line, usually street and number as free text.'\n )\n .max(200)\n .optional()\n .nullable(),\n addressLine2: z\n .string()\n .describe(\n 'Free text providing more detailed address information, such as apartment, suite, or floor.'\n )\n .max(200)\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3),\n lineItems: z\n .array(\n z.object({\n _id: z.string().describe('Line item ID.').min(1).max(100),\n itemName: z\n .string()\n .describe('Line item name to display.')\n .min(0)\n .max(250)\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Line item quantity.')\n .min(1)\n .max(100000)\n .optional(),\n price: z.string().describe('Line item price.'),\n itemCode: z\n .string()\n .describe(\n 'Stock keeping unit for this line item. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).'\n )\n .max(40)\n .optional()\n .nullable(),\n taxGroupId: z\n .string()\n .describe(\n 'Tax group ID for this line item. If not provided, the default tax group applies.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app providing the catalog for this line item.\\n\\nYou can get your app\\'s ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\\n\\nFor items from Wix catalogs, the following values always apply:\\n+ Wix Stores: `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`\\n+ Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n+ Wix Restaurants: `\"9a5d83fd-8570-482e-81ab-cfa88942ee60\"`'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n taxIncludedInPrice: z\n .boolean()\n .describe('Whether tax is included in the price.')\n .optional()\n .nullable(),\n addressIndex: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z.never().optional(),\n }),\n z.object({\n multipleAddresses: z.never().optional(),\n singleAddress: z\n .number()\n .int()\n .describe(\n 'Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based.'\n ),\n }),\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z\n .object({\n origin: z\n .number()\n .int()\n .describe('Index of the origin address.')\n .optional(),\n destination: z\n .number()\n .int()\n .describe('Index of the destination address.')\n .optional(),\n })\n .describe(\n 'Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\\nas well as the address the item is shipped to.'\n ),\n }),\n ])\n )\n .describe(\n 'Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based.'\n ),\n })\n )\n .min(1)\n .max(300),\n })\n .describe('Calculate tax options.'),\n});\nexport const CalculateTaxResponse = /*#__PURE__*/ z.object({\n externalId: z\n .string()\n .describe(\n 'Optional ID of the entity that tax is being calculated for. For example, a cart ID.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n currency: z\n .string()\n .describe(\n '3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.'\n )\n .optional(),\n addresses: z\n .array(\n z.object({\n city: z.string().optional().nullable(),\n subdivision: z.string().optional().nullable(),\n country: z.string().optional().nullable(),\n postalCode: z.string().optional().nullable(),\n addressLine2: z.string().optional().nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n taxSummary: z\n .object({\n totalAmount: z\n .string()\n .describe('Total price for all line items.')\n .optional(),\n totalTax: z\n .string()\n .describe(\n 'Total amount of tax calculated for all line items.\\nNote that due to rounding, `totalTax` may not equal the sum of `lineItemTaxDetails.taxSummary.taxAmount`.'\n )\n .optional(),\n totalTaxableAmount: z\n .string()\n .describe('Total taxable amount for all line items.')\n .optional(),\n totalTaxIncludedInPrice: z\n .string()\n .describe(\n 'Total amount of `totalTax` that is included in price. Applies to line items with `taxIncludedInPrice` set to `true`.'\n )\n .optional(),\n aggregatedTaxBreakdown: z\n .array(\n z.object({\n taxName: z\n .string()\n .describe('Name of the tax that was calculated.')\n .max(200)\n .optional(),\n taxType: z\n .string()\n .describe('Type of tax that was calculated.')\n .max(200)\n .optional(),\n jurisdiction: z\n .string()\n .describe('Jurisdiction that taxes were calculated for.')\n .max(200)\n .optional(),\n jurisdictionType: z\n .enum([\n 'UNDEFINED',\n 'COUNTRY',\n 'STATE',\n 'COUNTY',\n 'CITY',\n 'SPECIAL',\n ])\n .describe('Type of jurisdiction that taxes were calculated for.')\n .optional(),\n rate: z\n .string()\n .describe(\n 'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `\"0.1000\"` and 200% tax is `\"2.0000\"`.'\n )\n .optional(),\n aggregatedTaxAmount: z\n .string()\n .describe('Total amount of this tax for this jurisdiction.')\n .optional(),\n })\n )\n .min(0)\n .max(50)\n .optional(),\n })\n .describe('Summary of the tax calculated.')\n .optional(),\n lineItemTaxDetails: z\n .array(\n z.object({\n _id: z.string().describe('Line item ID.').min(1).max(100).optional(),\n itemName: z\n .string()\n .describe('Line item name to display.')\n .min(0)\n .max(250)\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Line item quantity.')\n .min(1)\n .max(100000)\n .optional(),\n taxBreakdown: z\n .array(\n z.object({\n jurisdiction: z\n .string()\n .describe('Jurisdiction that taxes were calculated for.')\n .max(200)\n .optional()\n .nullable(),\n nonTaxableAmount: z\n .string()\n .describe('Non-taxable amount of the price.')\n .optional()\n .nullable(),\n rate: z\n .string()\n .describe(\n 'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `\"0.1000\"` and 200% tax is `\"2.0000\"`.'\n )\n .optional()\n .nullable(),\n taxAmount: z\n .string()\n .describe(\n 'Amount of this tax calculated for this jurisdiction.'\n )\n .optional()\n .nullable(),\n taxableAmount: z\n .string()\n .describe('Taxable amount of the price.')\n .optional()\n .nullable(),\n taxType: z\n .string()\n .describe(\n 'Type of tax that was calculated. For example, `\"Sales Tax\"`, `\"Income Tax\"`, `\"Value Added Tax\"`, etc.'\n )\n .max(200)\n .optional()\n .nullable(),\n taxName: z\n .string()\n .describe(\n 'Name of the tax that was calculated. For example, `\"NY State Sales Tax\"`, `\"Quebec GST\"`, etc.'\n )\n .max(200)\n .optional()\n .nullable(),\n jurisdictionType: z\n .enum([\n 'UNDEFINED',\n 'COUNTRY',\n 'STATE',\n 'COUNTY',\n 'CITY',\n 'SPECIAL',\n ])\n .describe(\n 'Type of jurisdiction that taxes were calculated for. For example, `\"State\"`, `\"Çounty\"`, `\"City\"`, `\"Special\"`, etc.'\n )\n .optional(),\n })\n )\n .max(7)\n .optional(),\n taxSummary: z\n .object({\n fullPrice: z\n .string()\n .describe(\n 'Total price for this line item.\\nTo determine the price for each individual unit of this line item, divide by `quantity`.'\n )\n .optional()\n .nullable(),\n taxAmount: z\n .string()\n .describe('Total amount of tax calculated for this line item.')\n .optional(),\n taxableAmount: z\n .string()\n .describe('Total taxable amount for this line item.')\n .optional(),\n appId: z\n .string()\n .describe(\n 'ID of the calculator app that calculated tax for this line item.'\n )\n .max(50)\n .optional()\n .nullable(),\n })\n .describe(\"Summary of this line item's total price and tax.\")\n .optional(),\n addressIndex: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z.never().optional(),\n }),\n z.object({\n multipleAddresses: z.never().optional(),\n singleAddress: z\n .number()\n .int()\n .describe(\n 'Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based.'\n ),\n }),\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z\n .object({\n origin: z\n .number()\n .int()\n .describe('Index of the origin address.')\n .optional(),\n destination: z\n .number()\n .int()\n .describe('Index of the destination address.')\n .optional(),\n })\n .describe(\n 'Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\\nas well as the address the item is shipped to.'\n ),\n }),\n ])\n )\n .describe(\n 'Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based.'\n )\n .optional(),\n taxIncludedInPrice: z\n .boolean()\n .describe('Whether tax is included in the price.')\n .optional(),\n })\n )\n .min(1)\n .max(300)\n .optional(),\n errors: z\n .array(\n z.object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n )\n .min(0)\n .max(100)\n .optional(),\n});\nexport const ListTaxCalculatorsRequest = /*#__PURE__*/ z.object({});\nexport const ListTaxCalculatorsResponse = /*#__PURE__*/ z.object({\n taxCalculatorDetails: z\n .array(\n z.object({\n appId: z\n .string()\n .describe('ID of the tax calculator.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n displayName: z\n .string()\n .describe('Display name of the tax calculator.')\n .min(1)\n .max(200)\n .optional(),\n unsupportedCountries: z.array(z.string()).max(195).optional(),\n })\n )\n .max(10)\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,sBAAoC,gBAAE,SAAO;AAAA,EACxD,SACG,SAAO;AAAA,IACN,YACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,UACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,WACG;AAAA,MACG,SAAO;AAAA,QACP,SACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,aACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,QACZ,MACG,SAAO,EACP,SAAS,YAAY,EACrB,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,QACZ,YACG,SAAO,EACP,SAAS,qBAAqB,EAC9B,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,QACZ,aACG,SAAO,EACP;AAAA,UACC;A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,SAAO,EACP,IAAI,EACJ,SAAS,8BAA8B,EACvC,SAAS;AAAA,cACZ,aACG,SAAO,EACP,IAAI,EACJ,SAAS,mCAAmC,EAC5C,SAAS;AAAA,YACd,CAAC,EACA;AAAA,cACC;AAAA,YACF;AAAA,UACJ,CAAC;AAAA,QACH,CAAC;AAAA,MACH,EACC;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,oBACG,UAAQ,EACR,SAAS,uCAAuC,EAChD,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AAAA,EACZ,QACG;AAAA,IACG,SAAO;AAAA,MACP,MAAQ,SAAO,EAAE,SAAS,aAAa,EAAE,SAAS;AAAA,MAClD,aACG,SAAO,EACP,SAAS,2BAA2B,EACpC,SAAS;AAAA,MACZ,MACG,SAAS,SAAO,GAAK,MAAI,CAAC,EAC1B,SAAS,4BAA4B,EACrC,SAAS,EACT,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AACd,CAAC;AACM,IAAM,4BAA0C,gBAAE,SAAO,CAAC,CAAC;AAC3D,IAAM,6BAA2C,gBAAE,SAAO;AAAA,EAC/D,sBACG;AAAA,IACG,SAAO;AAAA,MACP,OACG,SAAO,EACP,SAAS,2BAA2B,EACpC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS;AAAA,MACZ,aACG,SAAO,EACP,SAAS,qCAAqC,EAC9C,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AAAA,MACZ,sBAAwB,QAAQ,SAAO,CAAC,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,IAC9D,CAAC;AAAA,EACH,EACC,IAAI,EAAE,EACN,SAAS;AACd,CAAC;","names":[]}
|
package/build/es/schemas.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.ts
|
|
2
2
|
import * as z from "zod";
|
|
3
|
-
var CalculateTaxRequest = z.object({
|
|
3
|
+
var CalculateTaxRequest = /* @__PURE__ */ z.object({
|
|
4
4
|
options: z.object({
|
|
5
5
|
externalId: z.string().describe(
|
|
6
6
|
"Optional ID of the entity that tax is being calculated for. For example, a cart ID."
|
|
@@ -81,7 +81,7 @@ var CalculateTaxRequest = z.object({
|
|
|
81
81
|
).min(1).max(300)
|
|
82
82
|
}).describe("Calculate tax options.")
|
|
83
83
|
});
|
|
84
|
-
var CalculateTaxResponse = z.object({
|
|
84
|
+
var CalculateTaxResponse = /* @__PURE__ */ z.object({
|
|
85
85
|
externalId: z.string().describe(
|
|
86
86
|
"Optional ID of the entity that tax is being calculated for. For example, a cart ID."
|
|
87
87
|
).regex(
|
|
@@ -210,8 +210,8 @@ var CalculateTaxResponse = z.object({
|
|
|
210
210
|
})
|
|
211
211
|
).min(0).max(100).optional()
|
|
212
212
|
});
|
|
213
|
-
var ListTaxCalculatorsRequest = z.object({});
|
|
214
|
-
var ListTaxCalculatorsResponse = z.object({
|
|
213
|
+
var ListTaxCalculatorsRequest = /* @__PURE__ */ z.object({});
|
|
214
|
+
var ListTaxCalculatorsResponse = /* @__PURE__ */ z.object({
|
|
215
215
|
taxCalculatorDetails: z.array(
|
|
216
216
|
z.object({
|
|
217
217
|
appId: z.string().describe("ID of the tax calculator.").regex(
|
package/build/es/schemas.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const CalculateTaxRequest = z.object({\n options: z\n .object({\n externalId: z\n .string()\n .describe(\n 'Optional ID of the entity that tax is being calculated for. For example, a cart ID.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n currency: z\n .string()\n .describe(\n '3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.'\n )\n .optional(),\n addresses: z\n .array(\n z.object({\n country: z\n .string()\n .describe(\n '2-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.'\n )\n .optional()\n .nullable(),\n subdivision: z\n .string()\n .describe(\n 'Subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.'\n )\n .max(50)\n .optional()\n .nullable(),\n city: z\n .string()\n .describe('City name.')\n .max(100)\n .optional()\n .nullable(),\n postalCode: z\n .string()\n .describe('Postal or zip code.')\n .max(50)\n .optional()\n .nullable(),\n addressLine: z\n .string()\n .describe(\n 'Main address line, usually street and number as free text.'\n )\n .max(200)\n .optional()\n .nullable(),\n addressLine2: z\n .string()\n .describe(\n 'Free text providing more detailed address information, such as apartment, suite, or floor.'\n )\n .max(200)\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3),\n lineItems: z\n .array(\n z.object({\n _id: z.string().describe('Line item ID.').min(1).max(100),\n itemName: z\n .string()\n .describe('Line item name to display.')\n .min(0)\n .max(250)\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Line item quantity.')\n .min(1)\n .max(100000)\n .optional(),\n price: z.string().describe('Line item price.'),\n itemCode: z\n .string()\n .describe(\n 'Stock keeping unit for this line item. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).'\n )\n .max(40)\n .optional()\n .nullable(),\n taxGroupId: z\n .string()\n .describe(\n 'Tax group ID for this line item. If not provided, the default tax group applies.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app providing the catalog for this line item.\\n\\nYou can get your app\\'s ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\\n\\nFor items from Wix catalogs, the following values always apply:\\n+ Wix Stores: `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`\\n+ Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n+ Wix Restaurants: `\"9a5d83fd-8570-482e-81ab-cfa88942ee60\"`'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n taxIncludedInPrice: z\n .boolean()\n .describe('Whether tax is included in the price.')\n .optional()\n .nullable(),\n addressIndex: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z.never().optional(),\n }),\n z.object({\n multipleAddresses: z.never().optional(),\n singleAddress: z\n .number()\n .int()\n .describe(\n 'Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based.'\n ),\n }),\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z\n .object({\n origin: z\n .number()\n .int()\n .describe('Index of the origin address.')\n .optional(),\n destination: z\n .number()\n .int()\n .describe('Index of the destination address.')\n .optional(),\n })\n .describe(\n 'Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\\nas well as the address the item is shipped to.'\n ),\n }),\n ])\n )\n .describe(\n 'Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based.'\n ),\n })\n )\n .min(1)\n .max(300),\n })\n .describe('Calculate tax options.'),\n});\nexport const CalculateTaxResponse = z.object({\n externalId: z\n .string()\n .describe(\n 'Optional ID of the entity that tax is being calculated for. For example, a cart ID.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n currency: z\n .string()\n .describe(\n '3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.'\n )\n .optional(),\n addresses: z\n .array(\n z.object({\n city: z.string().optional().nullable(),\n subdivision: z.string().optional().nullable(),\n country: z.string().optional().nullable(),\n postalCode: z.string().optional().nullable(),\n addressLine2: z.string().optional().nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n taxSummary: z\n .object({\n totalAmount: z\n .string()\n .describe('Total price for all line items.')\n .optional(),\n totalTax: z\n .string()\n .describe(\n 'Total amount of tax calculated for all line items.\\nNote that due to rounding, `totalTax` may not equal the sum of `lineItemTaxDetails.taxSummary.taxAmount`.'\n )\n .optional(),\n totalTaxableAmount: z\n .string()\n .describe('Total taxable amount for all line items.')\n .optional(),\n totalTaxIncludedInPrice: z\n .string()\n .describe(\n 'Total amount of `totalTax` that is included in price. Applies to line items with `taxIncludedInPrice` set to `true`.'\n )\n .optional(),\n aggregatedTaxBreakdown: z\n .array(\n z.object({\n taxName: z\n .string()\n .describe('Name of the tax that was calculated.')\n .max(200)\n .optional(),\n taxType: z\n .string()\n .describe('Type of tax that was calculated.')\n .max(200)\n .optional(),\n jurisdiction: z\n .string()\n .describe('Jurisdiction that taxes were calculated for.')\n .max(200)\n .optional(),\n jurisdictionType: z\n .enum([\n 'UNDEFINED',\n 'COUNTRY',\n 'STATE',\n 'COUNTY',\n 'CITY',\n 'SPECIAL',\n ])\n .describe('Type of jurisdiction that taxes were calculated for.')\n .optional(),\n rate: z\n .string()\n .describe(\n 'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `\"0.1000\"` and 200% tax is `\"2.0000\"`.'\n )\n .optional(),\n aggregatedTaxAmount: z\n .string()\n .describe('Total amount of this tax for this jurisdiction.')\n .optional(),\n })\n )\n .min(0)\n .max(50)\n .optional(),\n })\n .describe('Summary of the tax calculated.')\n .optional(),\n lineItemTaxDetails: z\n .array(\n z.object({\n _id: z.string().describe('Line item ID.').min(1).max(100).optional(),\n itemName: z\n .string()\n .describe('Line item name to display.')\n .min(0)\n .max(250)\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Line item quantity.')\n .min(1)\n .max(100000)\n .optional(),\n taxBreakdown: z\n .array(\n z.object({\n jurisdiction: z\n .string()\n .describe('Jurisdiction that taxes were calculated for.')\n .max(200)\n .optional()\n .nullable(),\n nonTaxableAmount: z\n .string()\n .describe('Non-taxable amount of the price.')\n .optional()\n .nullable(),\n rate: z\n .string()\n .describe(\n 'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `\"0.1000\"` and 200% tax is `\"2.0000\"`.'\n )\n .optional()\n .nullable(),\n taxAmount: z\n .string()\n .describe(\n 'Amount of this tax calculated for this jurisdiction.'\n )\n .optional()\n .nullable(),\n taxableAmount: z\n .string()\n .describe('Taxable amount of the price.')\n .optional()\n .nullable(),\n taxType: z\n .string()\n .describe(\n 'Type of tax that was calculated. For example, `\"Sales Tax\"`, `\"Income Tax\"`, `\"Value Added Tax\"`, etc.'\n )\n .max(200)\n .optional()\n .nullable(),\n taxName: z\n .string()\n .describe(\n 'Name of the tax that was calculated. For example, `\"NY State Sales Tax\"`, `\"Quebec GST\"`, etc.'\n )\n .max(200)\n .optional()\n .nullable(),\n jurisdictionType: z\n .enum([\n 'UNDEFINED',\n 'COUNTRY',\n 'STATE',\n 'COUNTY',\n 'CITY',\n 'SPECIAL',\n ])\n .describe(\n 'Type of jurisdiction that taxes were calculated for. For example, `\"State\"`, `\"Çounty\"`, `\"City\"`, `\"Special\"`, etc.'\n )\n .optional(),\n })\n )\n .max(7)\n .optional(),\n taxSummary: z\n .object({\n fullPrice: z\n .string()\n .describe(\n 'Total price for this line item.\\nTo determine the price for each individual unit of this line item, divide by `quantity`.'\n )\n .optional()\n .nullable(),\n taxAmount: z\n .string()\n .describe('Total amount of tax calculated for this line item.')\n .optional(),\n taxableAmount: z\n .string()\n .describe('Total taxable amount for this line item.')\n .optional(),\n appId: z\n .string()\n .describe(\n 'ID of the calculator app that calculated tax for this line item.'\n )\n .max(50)\n .optional()\n .nullable(),\n })\n .describe(\"Summary of this line item's total price and tax.\")\n .optional(),\n addressIndex: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z.never().optional(),\n }),\n z.object({\n multipleAddresses: z.never().optional(),\n singleAddress: z\n .number()\n .int()\n .describe(\n 'Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based.'\n ),\n }),\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z\n .object({\n origin: z\n .number()\n .int()\n .describe('Index of the origin address.')\n .optional(),\n destination: z\n .number()\n .int()\n .describe('Index of the destination address.')\n .optional(),\n })\n .describe(\n 'Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\\nas well as the address the item is shipped to.'\n ),\n }),\n ])\n )\n .describe(\n 'Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based.'\n )\n .optional(),\n taxIncludedInPrice: z\n .boolean()\n .describe('Whether tax is included in the price.')\n .optional(),\n })\n )\n .min(1)\n .max(300)\n .optional(),\n errors: z\n .array(\n z.object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n )\n .min(0)\n .max(100)\n .optional(),\n});\nexport const ListTaxCalculatorsRequest = z.object({});\nexport const ListTaxCalculatorsResponse = z.object({\n taxCalculatorDetails: z\n .array(\n z.object({\n appId: z\n .string()\n .describe('ID of the tax calculator.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n displayName: z\n .string()\n .describe('Display name of the tax calculator.')\n .min(1)\n .max(200)\n .optional(),\n unsupportedCountries: z.array(z.string()).max(195).optional(),\n })\n )\n .max(10)\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,sBAAwB,SAAO;AAAA,EAC1C,SACG,SAAO;AAAA,IACN,YACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,UACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,WACG;AAAA,MACG,SAAO;AAAA,QACP,SACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,aACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,QACZ,MACG,SAAO,EACP,SAAS,YAAY,EACrB,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,QACZ,YACG,SAAO,EACP,SAAS,qBAAqB,EAC9B,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,QACZ,aACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,QACZ,cACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,MACd,CAAC;AAAA,IACH,EACC,IAAI,CAAC,EACL,IAAI,CAAC;AAAA,IACR,WACG;AAAA,MACG,SAAO;AAAA,QACP,KAAO,SAAO,EAAE,SAAS,eAAe,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG;AAAA,QACxD,UACG,SAAO,EACP,SAAS,4BAA4B,EACrC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,QACZ,UACG,SAAO,EACP,IAAI,EACJ,SAAS,qBAAqB,EAC9B,IAAI,CAAC,EACL,IAAI,GAAM,EACV,SAAS;AAAA,QACZ,OA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MACG,SAAS,SAAO,GAAK,MAAI,CAAC,EAC1B,SAAS,4BAA4B,EACrC,SAAS,EACT,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AACd,CAAC;AACM,IAAM,4BAA8B,SAAO,CAAC,CAAC;AAC7C,IAAM,6BAA+B,SAAO;AAAA,EACjD,sBACG;AAAA,IACG,SAAO;AAAA,MACP,OACG,SAAO,EACP,SAAS,2BAA2B,EACpC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS;AAAA,MACZ,aACG,SAAO,EACP,SAAS,qCAAqC,EAC9C,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AAAA,MACZ,sBAAwB,QAAQ,SAAO,CAAC,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,IAC9D,CAAC;AAAA,EACH,EACC,IAAI,EAAE,EACN,SAAS;AACd,CAAC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const CalculateTaxRequest = /*#__PURE__*/ z.object({\n options: z\n .object({\n externalId: z\n .string()\n .describe(\n 'Optional ID of the entity that tax is being calculated for. For example, a cart ID.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n currency: z\n .string()\n .describe(\n '3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.'\n )\n .optional(),\n addresses: z\n .array(\n z.object({\n country: z\n .string()\n .describe(\n '2-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.'\n )\n .optional()\n .nullable(),\n subdivision: z\n .string()\n .describe(\n 'Subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.'\n )\n .max(50)\n .optional()\n .nullable(),\n city: z\n .string()\n .describe('City name.')\n .max(100)\n .optional()\n .nullable(),\n postalCode: z\n .string()\n .describe('Postal or zip code.')\n .max(50)\n .optional()\n .nullable(),\n addressLine: z\n .string()\n .describe(\n 'Main address line, usually street and number as free text.'\n )\n .max(200)\n .optional()\n .nullable(),\n addressLine2: z\n .string()\n .describe(\n 'Free text providing more detailed address information, such as apartment, suite, or floor.'\n )\n .max(200)\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3),\n lineItems: z\n .array(\n z.object({\n _id: z.string().describe('Line item ID.').min(1).max(100),\n itemName: z\n .string()\n .describe('Line item name to display.')\n .min(0)\n .max(250)\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Line item quantity.')\n .min(1)\n .max(100000)\n .optional(),\n price: z.string().describe('Line item price.'),\n itemCode: z\n .string()\n .describe(\n 'Stock keeping unit for this line item. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).'\n )\n .max(40)\n .optional()\n .nullable(),\n taxGroupId: z\n .string()\n .describe(\n 'Tax group ID for this line item. If not provided, the default tax group applies.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app providing the catalog for this line item.\\n\\nYou can get your app\\'s ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\\n\\nFor items from Wix catalogs, the following values always apply:\\n+ Wix Stores: `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`\\n+ Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n+ Wix Restaurants: `\"9a5d83fd-8570-482e-81ab-cfa88942ee60\"`'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n taxIncludedInPrice: z\n .boolean()\n .describe('Whether tax is included in the price.')\n .optional()\n .nullable(),\n addressIndex: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z.never().optional(),\n }),\n z.object({\n multipleAddresses: z.never().optional(),\n singleAddress: z\n .number()\n .int()\n .describe(\n 'Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based.'\n ),\n }),\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z\n .object({\n origin: z\n .number()\n .int()\n .describe('Index of the origin address.')\n .optional(),\n destination: z\n .number()\n .int()\n .describe('Index of the destination address.')\n .optional(),\n })\n .describe(\n 'Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\\nas well as the address the item is shipped to.'\n ),\n }),\n ])\n )\n .describe(\n 'Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based.'\n ),\n })\n )\n .min(1)\n .max(300),\n })\n .describe('Calculate tax options.'),\n});\nexport const CalculateTaxResponse = /*#__PURE__*/ z.object({\n externalId: z\n .string()\n .describe(\n 'Optional ID of the entity that tax is being calculated for. For example, a cart ID.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n currency: z\n .string()\n .describe(\n '3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.'\n )\n .optional(),\n addresses: z\n .array(\n z.object({\n city: z.string().optional().nullable(),\n subdivision: z.string().optional().nullable(),\n country: z.string().optional().nullable(),\n postalCode: z.string().optional().nullable(),\n addressLine2: z.string().optional().nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n taxSummary: z\n .object({\n totalAmount: z\n .string()\n .describe('Total price for all line items.')\n .optional(),\n totalTax: z\n .string()\n .describe(\n 'Total amount of tax calculated for all line items.\\nNote that due to rounding, `totalTax` may not equal the sum of `lineItemTaxDetails.taxSummary.taxAmount`.'\n )\n .optional(),\n totalTaxableAmount: z\n .string()\n .describe('Total taxable amount for all line items.')\n .optional(),\n totalTaxIncludedInPrice: z\n .string()\n .describe(\n 'Total amount of `totalTax` that is included in price. Applies to line items with `taxIncludedInPrice` set to `true`.'\n )\n .optional(),\n aggregatedTaxBreakdown: z\n .array(\n z.object({\n taxName: z\n .string()\n .describe('Name of the tax that was calculated.')\n .max(200)\n .optional(),\n taxType: z\n .string()\n .describe('Type of tax that was calculated.')\n .max(200)\n .optional(),\n jurisdiction: z\n .string()\n .describe('Jurisdiction that taxes were calculated for.')\n .max(200)\n .optional(),\n jurisdictionType: z\n .enum([\n 'UNDEFINED',\n 'COUNTRY',\n 'STATE',\n 'COUNTY',\n 'CITY',\n 'SPECIAL',\n ])\n .describe('Type of jurisdiction that taxes were calculated for.')\n .optional(),\n rate: z\n .string()\n .describe(\n 'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `\"0.1000\"` and 200% tax is `\"2.0000\"`.'\n )\n .optional(),\n aggregatedTaxAmount: z\n .string()\n .describe('Total amount of this tax for this jurisdiction.')\n .optional(),\n })\n )\n .min(0)\n .max(50)\n .optional(),\n })\n .describe('Summary of the tax calculated.')\n .optional(),\n lineItemTaxDetails: z\n .array(\n z.object({\n _id: z.string().describe('Line item ID.').min(1).max(100).optional(),\n itemName: z\n .string()\n .describe('Line item name to display.')\n .min(0)\n .max(250)\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Line item quantity.')\n .min(1)\n .max(100000)\n .optional(),\n taxBreakdown: z\n .array(\n z.object({\n jurisdiction: z\n .string()\n .describe('Jurisdiction that taxes were calculated for.')\n .max(200)\n .optional()\n .nullable(),\n nonTaxableAmount: z\n .string()\n .describe('Non-taxable amount of the price.')\n .optional()\n .nullable(),\n rate: z\n .string()\n .describe(\n 'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `\"0.1000\"` and 200% tax is `\"2.0000\"`.'\n )\n .optional()\n .nullable(),\n taxAmount: z\n .string()\n .describe(\n 'Amount of this tax calculated for this jurisdiction.'\n )\n .optional()\n .nullable(),\n taxableAmount: z\n .string()\n .describe('Taxable amount of the price.')\n .optional()\n .nullable(),\n taxType: z\n .string()\n .describe(\n 'Type of tax that was calculated. For example, `\"Sales Tax\"`, `\"Income Tax\"`, `\"Value Added Tax\"`, etc.'\n )\n .max(200)\n .optional()\n .nullable(),\n taxName: z\n .string()\n .describe(\n 'Name of the tax that was calculated. For example, `\"NY State Sales Tax\"`, `\"Quebec GST\"`, etc.'\n )\n .max(200)\n .optional()\n .nullable(),\n jurisdictionType: z\n .enum([\n 'UNDEFINED',\n 'COUNTRY',\n 'STATE',\n 'COUNTY',\n 'CITY',\n 'SPECIAL',\n ])\n .describe(\n 'Type of jurisdiction that taxes were calculated for. For example, `\"State\"`, `\"Çounty\"`, `\"City\"`, `\"Special\"`, etc.'\n )\n .optional(),\n })\n )\n .max(7)\n .optional(),\n taxSummary: z\n .object({\n fullPrice: z\n .string()\n .describe(\n 'Total price for this line item.\\nTo determine the price for each individual unit of this line item, divide by `quantity`.'\n )\n .optional()\n .nullable(),\n taxAmount: z\n .string()\n .describe('Total amount of tax calculated for this line item.')\n .optional(),\n taxableAmount: z\n .string()\n .describe('Total taxable amount for this line item.')\n .optional(),\n appId: z\n .string()\n .describe(\n 'ID of the calculator app that calculated tax for this line item.'\n )\n .max(50)\n .optional()\n .nullable(),\n })\n .describe(\"Summary of this line item's total price and tax.\")\n .optional(),\n addressIndex: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z.never().optional(),\n }),\n z.object({\n multipleAddresses: z.never().optional(),\n singleAddress: z\n .number()\n .int()\n .describe(\n 'Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based.'\n ),\n }),\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z\n .object({\n origin: z\n .number()\n .int()\n .describe('Index of the origin address.')\n .optional(),\n destination: z\n .number()\n .int()\n .describe('Index of the destination address.')\n .optional(),\n })\n .describe(\n 'Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\\nas well as the address the item is shipped to.'\n ),\n }),\n ])\n )\n .describe(\n 'Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based.'\n )\n .optional(),\n taxIncludedInPrice: z\n .boolean()\n .describe('Whether tax is included in the price.')\n .optional(),\n })\n )\n .min(1)\n .max(300)\n .optional(),\n errors: z\n .array(\n z.object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n )\n .min(0)\n .max(100)\n .optional(),\n});\nexport const ListTaxCalculatorsRequest = /*#__PURE__*/ z.object({});\nexport const ListTaxCalculatorsResponse = /*#__PURE__*/ z.object({\n taxCalculatorDetails: z\n .array(\n z.object({\n appId: z\n .string()\n .describe('ID of the tax calculator.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n displayName: z\n .string()\n .describe('Display name of the tax calculator.')\n .min(1)\n .max(200)\n .optional(),\n unsupportedCountries: z.array(z.string()).max(195).optional(),\n })\n )\n .max(10)\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,sBAAoC,gBAAE,SAAO;AAAA,EACxD,SACG,SAAO;AAAA,IACN,YACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,I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G;AAAA,IACG,SAAO;AAAA,MACP,OACG,SAAO,EACP,SAAS,2BAA2B,EACpC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS;AAAA,MACZ,aACG,SAAO,EACP,SAAS,qCAAqC,EAC9C,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AAAA,MACZ,sBAAwB,QAAQ,SAAO,CAAC,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,IAC9D,CAAC;AAAA,EACH,EACC,IAAI,EAAE,EACN,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -39,7 +39,7 @@ module.exports = __toCommonJS(schemas_exports);
|
|
|
39
39
|
|
|
40
40
|
// src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.ts
|
|
41
41
|
var z = __toESM(require("zod"));
|
|
42
|
-
var CalculateTaxRequest = z.object({
|
|
42
|
+
var CalculateTaxRequest = /* @__PURE__ */ z.object({
|
|
43
43
|
options: z.object({
|
|
44
44
|
externalId: z.string().describe(
|
|
45
45
|
"Optional ID of the entity that tax is being calculated for. For example, a cart ID."
|
|
@@ -120,7 +120,7 @@ var CalculateTaxRequest = z.object({
|
|
|
120
120
|
).min(1).max(300)
|
|
121
121
|
}).describe("Calculate tax options.")
|
|
122
122
|
});
|
|
123
|
-
var CalculateTaxResponse = z.object({
|
|
123
|
+
var CalculateTaxResponse = /* @__PURE__ */ z.object({
|
|
124
124
|
externalId: z.string().describe(
|
|
125
125
|
"Optional ID of the entity that tax is being calculated for. For example, a cart ID."
|
|
126
126
|
).regex(
|
|
@@ -249,8 +249,8 @@ var CalculateTaxResponse = z.object({
|
|
|
249
249
|
})
|
|
250
250
|
).min(0).max(100).optional()
|
|
251
251
|
});
|
|
252
|
-
var ListTaxCalculatorsRequest = z.object({});
|
|
253
|
-
var ListTaxCalculatorsResponse = z.object({
|
|
252
|
+
var ListTaxCalculatorsRequest = /* @__PURE__ */ z.object({});
|
|
253
|
+
var ListTaxCalculatorsResponse = /* @__PURE__ */ z.object({
|
|
254
254
|
taxCalculatorDetails: z.array(
|
|
255
255
|
z.object({
|
|
256
256
|
appId: z.string().describe("ID of the tax calculator.").regex(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../schemas.ts","../../../src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.ts"],"sourcesContent":["export * from './src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.js';\n","import * as z from 'zod';\n\nexport const CalculateTaxRequest = z.object({\n options: z\n .object({\n externalId: z\n .string()\n .describe(\n 'Optional ID of the entity that tax is being calculated for. For example, a cart ID.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n currency: z\n .string()\n .describe(\n '3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.'\n )\n .optional(),\n addresses: z\n .array(\n z.object({\n country: z\n .string()\n .describe(\n '2-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.'\n )\n .optional()\n .nullable(),\n subdivision: z\n .string()\n .describe(\n 'Subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.'\n )\n .max(50)\n .optional()\n .nullable(),\n city: z\n .string()\n .describe('City name.')\n .max(100)\n .optional()\n .nullable(),\n postalCode: z\n .string()\n .describe('Postal or zip code.')\n .max(50)\n .optional()\n .nullable(),\n addressLine: z\n .string()\n .describe(\n 'Main address line, usually street and number as free text.'\n )\n .max(200)\n .optional()\n .nullable(),\n addressLine2: z\n .string()\n .describe(\n 'Free text providing more detailed address information, such as apartment, suite, or floor.'\n )\n .max(200)\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3),\n lineItems: z\n .array(\n z.object({\n _id: z.string().describe('Line item ID.').min(1).max(100),\n itemName: z\n .string()\n .describe('Line item name to display.')\n .min(0)\n .max(250)\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Line item quantity.')\n .min(1)\n .max(100000)\n .optional(),\n price: z.string().describe('Line item price.'),\n itemCode: z\n .string()\n .describe(\n 'Stock keeping unit for this line item. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).'\n )\n .max(40)\n .optional()\n .nullable(),\n taxGroupId: z\n .string()\n .describe(\n 'Tax group ID for this line item. If not provided, the default tax group applies.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app providing the catalog for this line item.\\n\\nYou can get your app\\'s ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\\n\\nFor items from Wix catalogs, the following values always apply:\\n+ Wix Stores: `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`\\n+ Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n+ Wix Restaurants: `\"9a5d83fd-8570-482e-81ab-cfa88942ee60\"`'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n taxIncludedInPrice: z\n .boolean()\n .describe('Whether tax is included in the price.')\n .optional()\n .nullable(),\n addressIndex: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z.never().optional(),\n }),\n z.object({\n multipleAddresses: z.never().optional(),\n singleAddress: z\n .number()\n .int()\n .describe(\n 'Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based.'\n ),\n }),\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z\n .object({\n origin: z\n .number()\n .int()\n .describe('Index of the origin address.')\n .optional(),\n destination: z\n .number()\n .int()\n .describe('Index of the destination address.')\n .optional(),\n })\n .describe(\n 'Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\\nas well as the address the item is shipped to.'\n ),\n }),\n ])\n )\n .describe(\n 'Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based.'\n ),\n })\n )\n .min(1)\n .max(300),\n })\n .describe('Calculate tax options.'),\n});\nexport const CalculateTaxResponse = z.object({\n externalId: z\n .string()\n .describe(\n 'Optional ID of the entity that tax is being calculated for. For example, a cart ID.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n currency: z\n .string()\n .describe(\n '3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.'\n )\n .optional(),\n addresses: z\n .array(\n z.object({\n city: z.string().optional().nullable(),\n subdivision: z.string().optional().nullable(),\n country: z.string().optional().nullable(),\n postalCode: z.string().optional().nullable(),\n addressLine2: z.string().optional().nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n taxSummary: z\n .object({\n totalAmount: z\n .string()\n .describe('Total price for all line items.')\n .optional(),\n totalTax: z\n .string()\n .describe(\n 'Total amount of tax calculated for all line items.\\nNote that due to rounding, `totalTax` may not equal the sum of `lineItemTaxDetails.taxSummary.taxAmount`.'\n )\n .optional(),\n totalTaxableAmount: z\n .string()\n .describe('Total taxable amount for all line items.')\n .optional(),\n totalTaxIncludedInPrice: z\n .string()\n .describe(\n 'Total amount of `totalTax` that is included in price. Applies to line items with `taxIncludedInPrice` set to `true`.'\n )\n .optional(),\n aggregatedTaxBreakdown: z\n .array(\n z.object({\n taxName: z\n .string()\n .describe('Name of the tax that was calculated.')\n .max(200)\n .optional(),\n taxType: z\n .string()\n .describe('Type of tax that was calculated.')\n .max(200)\n .optional(),\n jurisdiction: z\n .string()\n .describe('Jurisdiction that taxes were calculated for.')\n .max(200)\n .optional(),\n jurisdictionType: z\n .enum([\n 'UNDEFINED',\n 'COUNTRY',\n 'STATE',\n 'COUNTY',\n 'CITY',\n 'SPECIAL',\n ])\n .describe('Type of jurisdiction that taxes were calculated for.')\n .optional(),\n rate: z\n .string()\n .describe(\n 'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `\"0.1000\"` and 200% tax is `\"2.0000\"`.'\n )\n .optional(),\n aggregatedTaxAmount: z\n .string()\n .describe('Total amount of this tax for this jurisdiction.')\n .optional(),\n })\n )\n .min(0)\n .max(50)\n .optional(),\n })\n .describe('Summary of the tax calculated.')\n .optional(),\n lineItemTaxDetails: z\n .array(\n z.object({\n _id: z.string().describe('Line item ID.').min(1).max(100).optional(),\n itemName: z\n .string()\n .describe('Line item name to display.')\n .min(0)\n .max(250)\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Line item quantity.')\n .min(1)\n .max(100000)\n .optional(),\n taxBreakdown: z\n .array(\n z.object({\n jurisdiction: z\n .string()\n .describe('Jurisdiction that taxes were calculated for.')\n .max(200)\n .optional()\n .nullable(),\n nonTaxableAmount: z\n .string()\n .describe('Non-taxable amount of the price.')\n .optional()\n .nullable(),\n rate: z\n .string()\n .describe(\n 'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `\"0.1000\"` and 200% tax is `\"2.0000\"`.'\n )\n .optional()\n .nullable(),\n taxAmount: z\n .string()\n .describe(\n 'Amount of this tax calculated for this jurisdiction.'\n )\n .optional()\n .nullable(),\n taxableAmount: z\n .string()\n .describe('Taxable amount of the price.')\n .optional()\n .nullable(),\n taxType: z\n .string()\n .describe(\n 'Type of tax that was calculated. For example, `\"Sales Tax\"`, `\"Income Tax\"`, `\"Value Added Tax\"`, etc.'\n )\n .max(200)\n .optional()\n .nullable(),\n taxName: z\n .string()\n .describe(\n 'Name of the tax that was calculated. For example, `\"NY State Sales Tax\"`, `\"Quebec GST\"`, etc.'\n )\n .max(200)\n .optional()\n .nullable(),\n jurisdictionType: z\n .enum([\n 'UNDEFINED',\n 'COUNTRY',\n 'STATE',\n 'COUNTY',\n 'CITY',\n 'SPECIAL',\n ])\n .describe(\n 'Type of jurisdiction that taxes were calculated for. For example, `\"State\"`, `\"Çounty\"`, `\"City\"`, `\"Special\"`, etc.'\n )\n .optional(),\n })\n )\n .max(7)\n .optional(),\n taxSummary: z\n .object({\n fullPrice: z\n .string()\n .describe(\n 'Total price for this line item.\\nTo determine the price for each individual unit of this line item, divide by `quantity`.'\n )\n .optional()\n .nullable(),\n taxAmount: z\n .string()\n .describe('Total amount of tax calculated for this line item.')\n .optional(),\n taxableAmount: z\n .string()\n .describe('Total taxable amount for this line item.')\n .optional(),\n appId: z\n .string()\n .describe(\n 'ID of the calculator app that calculated tax for this line item.'\n )\n .max(50)\n .optional()\n .nullable(),\n })\n .describe(\"Summary of this line item's total price and tax.\")\n .optional(),\n addressIndex: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z.never().optional(),\n }),\n z.object({\n multipleAddresses: z.never().optional(),\n singleAddress: z\n .number()\n .int()\n .describe(\n 'Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based.'\n ),\n }),\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z\n .object({\n origin: z\n .number()\n .int()\n .describe('Index of the origin address.')\n .optional(),\n destination: z\n .number()\n .int()\n .describe('Index of the destination address.')\n .optional(),\n })\n .describe(\n 'Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\\nas well as the address the item is shipped to.'\n ),\n }),\n ])\n )\n .describe(\n 'Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based.'\n )\n .optional(),\n taxIncludedInPrice: z\n .boolean()\n .describe('Whether tax is included in the price.')\n .optional(),\n })\n )\n .min(1)\n .max(300)\n .optional(),\n errors: z\n .array(\n z.object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n )\n .min(0)\n .max(100)\n .optional(),\n});\nexport const ListTaxCalculatorsRequest = z.object({});\nexport const ListTaxCalculatorsResponse = z.object({\n taxCalculatorDetails: z\n .array(\n z.object({\n appId: z\n .string()\n .describe('ID of the tax calculator.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n displayName: z\n .string()\n .describe('Display name of the tax calculator.')\n .min(1)\n .max(200)\n .optional(),\n unsupportedCountries: z.array(z.string()).max(195).optional(),\n })\n )\n .max(10)\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,sBAAwB,SAAO;AAAA,EAC1C,SACG,SAAO;AAAA,IACN,YACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,UACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,WACG;AAAA,MACG,SAAO;AAAA,QACP,SACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,aACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,QACZ,MACG,SAAO,EACP,SAAS,YAAY,EACrB,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,QACZ,YACG,SAAO,EACP,SAAS,qBAAqB,EAC9B,IAAI,EAA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,QAAM,EAAE,SAAS;AAAA,YAClC,mBACG,SAAO;AAAA,cACN,QACG,SAAO,EACP,IAAI,EACJ,SAAS,8BAA8B,EACvC,SAAS;AAAA,cACZ,aACG,SAAO,EACP,IAAI,EACJ,SAAS,mCAAmC,EAC5C,SAAS;AAAA,YACd,CAAC,EACA;AAAA,cACC;AAAA,YACF;AAAA,UACJ,CAAC;AAAA,QACH,CAAC;AAAA,MACH,EACC;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,oBACG,UAAQ,EACR,SAAS,uCAAuC,EAChD,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AAAA,EACZ,QACG;AAAA,IACG,SAAO;AAAA,MACP,MAAQ,SAAO,EAAE,SAAS,aAAa,EAAE,SAAS;AAAA,MAClD,aACG,SAAO,EACP,SAAS,2BAA2B,EACpC,SAAS;AAAA,MACZ,MACG,SAAS,SAAO,GAAK,MAAI,CAAC,EAC1B,SAAS,4BAA4B,EACrC,SAAS,EACT,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AACd,CAAC;AACM,IAAM,4BAA8B,SAAO,CAAC,CAAC;AAC7C,IAAM,6BAA+B,SAAO;AAAA,EACjD,sBACG;AAAA,IACG,SAAO;AAAA,MACP,OACG,SAAO,EACP,SAAS,2BAA2B,EACpC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS;AAAA,MACZ,aACG,SAAO,EACP,SAAS,qCAAqC,EAC9C,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AAAA,MACZ,sBAAwB,QAAQ,SAAO,CAAC,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,IAC9D,CAAC;AAAA,EACH,EACC,IAAI,EAAE,EACN,SAAS;AACd,CAAC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../schemas.ts","../../../src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.ts"],"sourcesContent":["export * from './src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.js';\n","import * as z from 'zod';\n\nexport const CalculateTaxRequest = /*#__PURE__*/ z.object({\n options: z\n .object({\n externalId: z\n .string()\n .describe(\n 'Optional ID of the entity that tax is being calculated for. For example, a cart ID.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n currency: z\n .string()\n .describe(\n '3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.'\n )\n .optional(),\n addresses: z\n .array(\n z.object({\n country: z\n .string()\n .describe(\n '2-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.'\n )\n .optional()\n .nullable(),\n subdivision: z\n .string()\n .describe(\n 'Subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.'\n )\n .max(50)\n .optional()\n .nullable(),\n city: z\n .string()\n .describe('City name.')\n .max(100)\n .optional()\n .nullable(),\n postalCode: z\n .string()\n .describe('Postal or zip code.')\n .max(50)\n .optional()\n .nullable(),\n addressLine: z\n .string()\n .describe(\n 'Main address line, usually street and number as free text.'\n )\n .max(200)\n .optional()\n .nullable(),\n addressLine2: z\n .string()\n .describe(\n 'Free text providing more detailed address information, such as apartment, suite, or floor.'\n )\n .max(200)\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3),\n lineItems: z\n .array(\n z.object({\n _id: z.string().describe('Line item ID.').min(1).max(100),\n itemName: z\n .string()\n .describe('Line item name to display.')\n .min(0)\n .max(250)\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Line item quantity.')\n .min(1)\n .max(100000)\n .optional(),\n price: z.string().describe('Line item price.'),\n itemCode: z\n .string()\n .describe(\n 'Stock keeping unit for this line item. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).'\n )\n .max(40)\n .optional()\n .nullable(),\n taxGroupId: z\n .string()\n .describe(\n 'Tax group ID for this line item. If not provided, the default tax group applies.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app providing the catalog for this line item.\\n\\nYou can get your app\\'s ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\\n\\nFor items from Wix catalogs, the following values always apply:\\n+ Wix Stores: `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`\\n+ Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n+ Wix Restaurants: `\"9a5d83fd-8570-482e-81ab-cfa88942ee60\"`'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n taxIncludedInPrice: z\n .boolean()\n .describe('Whether tax is included in the price.')\n .optional()\n .nullable(),\n addressIndex: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z.never().optional(),\n }),\n z.object({\n multipleAddresses: z.never().optional(),\n singleAddress: z\n .number()\n .int()\n .describe(\n 'Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based.'\n ),\n }),\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z\n .object({\n origin: z\n .number()\n .int()\n .describe('Index of the origin address.')\n .optional(),\n destination: z\n .number()\n .int()\n .describe('Index of the destination address.')\n .optional(),\n })\n .describe(\n 'Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\\nas well as the address the item is shipped to.'\n ),\n }),\n ])\n )\n .describe(\n 'Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based.'\n ),\n })\n )\n .min(1)\n .max(300),\n })\n .describe('Calculate tax options.'),\n});\nexport const CalculateTaxResponse = /*#__PURE__*/ z.object({\n externalId: z\n .string()\n .describe(\n 'Optional ID of the entity that tax is being calculated for. For example, a cart ID.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n currency: z\n .string()\n .describe(\n '3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.'\n )\n .optional(),\n addresses: z\n .array(\n z.object({\n city: z.string().optional().nullable(),\n subdivision: z.string().optional().nullable(),\n country: z.string().optional().nullable(),\n postalCode: z.string().optional().nullable(),\n addressLine2: z.string().optional().nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n taxSummary: z\n .object({\n totalAmount: z\n .string()\n .describe('Total price for all line items.')\n .optional(),\n totalTax: z\n .string()\n .describe(\n 'Total amount of tax calculated for all line items.\\nNote that due to rounding, `totalTax` may not equal the sum of `lineItemTaxDetails.taxSummary.taxAmount`.'\n )\n .optional(),\n totalTaxableAmount: z\n .string()\n .describe('Total taxable amount for all line items.')\n .optional(),\n totalTaxIncludedInPrice: z\n .string()\n .describe(\n 'Total amount of `totalTax` that is included in price. Applies to line items with `taxIncludedInPrice` set to `true`.'\n )\n .optional(),\n aggregatedTaxBreakdown: z\n .array(\n z.object({\n taxName: z\n .string()\n .describe('Name of the tax that was calculated.')\n .max(200)\n .optional(),\n taxType: z\n .string()\n .describe('Type of tax that was calculated.')\n .max(200)\n .optional(),\n jurisdiction: z\n .string()\n .describe('Jurisdiction that taxes were calculated for.')\n .max(200)\n .optional(),\n jurisdictionType: z\n .enum([\n 'UNDEFINED',\n 'COUNTRY',\n 'STATE',\n 'COUNTY',\n 'CITY',\n 'SPECIAL',\n ])\n .describe('Type of jurisdiction that taxes were calculated for.')\n .optional(),\n rate: z\n .string()\n .describe(\n 'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `\"0.1000\"` and 200% tax is `\"2.0000\"`.'\n )\n .optional(),\n aggregatedTaxAmount: z\n .string()\n .describe('Total amount of this tax for this jurisdiction.')\n .optional(),\n })\n )\n .min(0)\n .max(50)\n .optional(),\n })\n .describe('Summary of the tax calculated.')\n .optional(),\n lineItemTaxDetails: z\n .array(\n z.object({\n _id: z.string().describe('Line item ID.').min(1).max(100).optional(),\n itemName: z\n .string()\n .describe('Line item name to display.')\n .min(0)\n .max(250)\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Line item quantity.')\n .min(1)\n .max(100000)\n .optional(),\n taxBreakdown: z\n .array(\n z.object({\n jurisdiction: z\n .string()\n .describe('Jurisdiction that taxes were calculated for.')\n .max(200)\n .optional()\n .nullable(),\n nonTaxableAmount: z\n .string()\n .describe('Non-taxable amount of the price.')\n .optional()\n .nullable(),\n rate: z\n .string()\n .describe(\n 'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `\"0.1000\"` and 200% tax is `\"2.0000\"`.'\n )\n .optional()\n .nullable(),\n taxAmount: z\n .string()\n .describe(\n 'Amount of this tax calculated for this jurisdiction.'\n )\n .optional()\n .nullable(),\n taxableAmount: z\n .string()\n .describe('Taxable amount of the price.')\n .optional()\n .nullable(),\n taxType: z\n .string()\n .describe(\n 'Type of tax that was calculated. For example, `\"Sales Tax\"`, `\"Income Tax\"`, `\"Value Added Tax\"`, etc.'\n )\n .max(200)\n .optional()\n .nullable(),\n taxName: z\n .string()\n .describe(\n 'Name of the tax that was calculated. For example, `\"NY State Sales Tax\"`, `\"Quebec GST\"`, etc.'\n )\n .max(200)\n .optional()\n .nullable(),\n jurisdictionType: z\n .enum([\n 'UNDEFINED',\n 'COUNTRY',\n 'STATE',\n 'COUNTY',\n 'CITY',\n 'SPECIAL',\n ])\n .describe(\n 'Type of jurisdiction that taxes were calculated for. For example, `\"State\"`, `\"Çounty\"`, `\"City\"`, `\"Special\"`, etc.'\n )\n .optional(),\n })\n )\n .max(7)\n .optional(),\n taxSummary: z\n .object({\n fullPrice: z\n .string()\n .describe(\n 'Total price for this line item.\\nTo determine the price for each individual unit of this line item, divide by `quantity`.'\n )\n .optional()\n .nullable(),\n taxAmount: z\n .string()\n .describe('Total amount of tax calculated for this line item.')\n .optional(),\n taxableAmount: z\n .string()\n .describe('Total taxable amount for this line item.')\n .optional(),\n appId: z\n .string()\n .describe(\n 'ID of the calculator app that calculated tax for this line item.'\n )\n .max(50)\n .optional()\n .nullable(),\n })\n .describe(\"Summary of this line item's total price and tax.\")\n .optional(),\n addressIndex: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z.never().optional(),\n }),\n z.object({\n multipleAddresses: z.never().optional(),\n singleAddress: z\n .number()\n .int()\n .describe(\n 'Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based.'\n ),\n }),\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z\n .object({\n origin: z\n .number()\n .int()\n .describe('Index of the origin address.')\n .optional(),\n destination: z\n .number()\n .int()\n .describe('Index of the destination address.')\n .optional(),\n })\n .describe(\n 'Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\\nas well as the address the item is shipped to.'\n ),\n }),\n ])\n )\n .describe(\n 'Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based.'\n )\n .optional(),\n taxIncludedInPrice: z\n .boolean()\n .describe('Whether tax is included in the price.')\n .optional(),\n })\n )\n .min(1)\n .max(300)\n .optional(),\n errors: z\n .array(\n z.object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n )\n .min(0)\n .max(100)\n .optional(),\n});\nexport const ListTaxCalculatorsRequest = /*#__PURE__*/ z.object({});\nexport const ListTaxCalculatorsResponse = /*#__PURE__*/ z.object({\n taxCalculatorDetails: z\n .array(\n z.object({\n appId: z\n .string()\n .describe('ID of the tax calculator.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n displayName: z\n .string()\n .describe('Display name of the tax calculator.')\n .min(1)\n .max(200)\n .optional(),\n unsupportedCountries: z.array(z.string()).max(195).optional(),\n })\n )\n .max(10)\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,sBAAoC,gBAAE,SAAO;AAAA,EACxD,SACG,SAAO;AAAA,IACN,YACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,UACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,WACG;AAAA,MACG,SAAO;AAAA,QACP,SACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,SAAS,EACT,SAAS;AAAA,QACZ,aACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,QACZ,MACG,SAAO,EACP,SAAS,YAAY,EACrB,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,QACZ,YACG,SAAO,EACP,SAAS,qBAAqB,EAC9B,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,QACZ,aACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,Q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,cACZ,aACG,SAAO,EACP,IAAI,EACJ,SAAS,mCAAmC,EAC5C,SAAS;AAAA,YACd,CAAC,EACA;AAAA,cACC;AAAA,YACF;AAAA,UACJ,CAAC;AAAA,QACH,CAAC;AAAA,MACH,EACC;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,oBACG,UAAQ,EACR,SAAS,uCAAuC,EAChD,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AAAA,EACZ,QACG;AAAA,IACG,SAAO;AAAA,MACP,MAAQ,SAAO,EAAE,SAAS,aAAa,EAAE,SAAS;AAAA,MAClD,aACG,SAAO,EACP,SAAS,2BAA2B,EACpC,SAAS;AAAA,MACZ,MACG,SAAS,SAAO,GAAK,MAAI,CAAC,EAC1B,SAAS,4BAA4B,EACrC,SAAS,EACT,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AACd,CAAC;AACM,IAAM,4BAA0C,gBAAE,SAAO,CAAC,CAAC;AAC3D,IAAM,6BAA2C,gBAAE,SAAO;AAAA,EAC/D,sBACG;AAAA,IACG,SAAO;AAAA,MACP,OACG,SAAO,EACP,SAAS,2BAA2B,EACpC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS;AAAA,MACZ,aACG,SAAO,EACP,SAAS,qCAAqC,EAC9C,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AAAA,MACZ,sBAAwB,QAAQ,SAAO,CAAC,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,IAC9D,CAAC;AAAA,EACH,EACC,IAAI,EAAE,EACN,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.ts
|
|
2
2
|
import * as z from "zod";
|
|
3
|
-
var CalculateTaxRequest = z.object({
|
|
3
|
+
var CalculateTaxRequest = /* @__PURE__ */ z.object({
|
|
4
4
|
options: z.object({
|
|
5
5
|
externalId: z.string().describe(
|
|
6
6
|
"Optional ID of the entity that tax is being calculated for. For example, a cart ID."
|
|
@@ -81,7 +81,7 @@ var CalculateTaxRequest = z.object({
|
|
|
81
81
|
).min(1).max(300)
|
|
82
82
|
}).describe("Calculate tax options.")
|
|
83
83
|
});
|
|
84
|
-
var CalculateTaxResponse = z.object({
|
|
84
|
+
var CalculateTaxResponse = /* @__PURE__ */ z.object({
|
|
85
85
|
externalId: z.string().describe(
|
|
86
86
|
"Optional ID of the entity that tax is being calculated for. For example, a cart ID."
|
|
87
87
|
).regex(
|
|
@@ -210,8 +210,8 @@ var CalculateTaxResponse = z.object({
|
|
|
210
210
|
})
|
|
211
211
|
).min(0).max(100).optional()
|
|
212
212
|
});
|
|
213
|
-
var ListTaxCalculatorsRequest = z.object({});
|
|
214
|
-
var ListTaxCalculatorsResponse = z.object({
|
|
213
|
+
var ListTaxCalculatorsRequest = /* @__PURE__ */ z.object({});
|
|
214
|
+
var ListTaxCalculatorsResponse = /* @__PURE__ */ z.object({
|
|
215
215
|
taxCalculatorDetails: z.array(
|
|
216
216
|
z.object({
|
|
217
217
|
appId: z.string().describe("ID of the tax calculator.").regex(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const CalculateTaxRequest = z.object({\n options: z\n .object({\n externalId: z\n .string()\n .describe(\n 'Optional ID of the entity that tax is being calculated for. For example, a cart ID.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n currency: z\n .string()\n .describe(\n '3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.'\n )\n .optional(),\n addresses: z\n .array(\n z.object({\n country: z\n .string()\n .describe(\n '2-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.'\n )\n .optional()\n .nullable(),\n subdivision: z\n .string()\n .describe(\n 'Subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.'\n )\n .max(50)\n .optional()\n .nullable(),\n city: z\n .string()\n .describe('City name.')\n .max(100)\n .optional()\n .nullable(),\n postalCode: z\n .string()\n .describe('Postal or zip code.')\n .max(50)\n .optional()\n .nullable(),\n addressLine: z\n .string()\n .describe(\n 'Main address line, usually street and number as free text.'\n )\n .max(200)\n .optional()\n .nullable(),\n addressLine2: z\n .string()\n .describe(\n 'Free text providing more detailed address information, such as apartment, suite, or floor.'\n )\n .max(200)\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3),\n lineItems: z\n .array(\n z.object({\n _id: z.string().describe('Line item ID.').min(1).max(100),\n itemName: z\n .string()\n .describe('Line item name to display.')\n .min(0)\n .max(250)\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Line item quantity.')\n .min(1)\n .max(100000)\n .optional(),\n price: z.string().describe('Line item price.'),\n itemCode: z\n .string()\n .describe(\n 'Stock keeping unit for this line item. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).'\n )\n .max(40)\n .optional()\n .nullable(),\n taxGroupId: z\n .string()\n .describe(\n 'Tax group ID for this line item. If not provided, the default tax group applies.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app providing the catalog for this line item.\\n\\nYou can get your app\\'s ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\\n\\nFor items from Wix catalogs, the following values always apply:\\n+ Wix Stores: `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`\\n+ Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n+ Wix Restaurants: `\"9a5d83fd-8570-482e-81ab-cfa88942ee60\"`'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n taxIncludedInPrice: z\n .boolean()\n .describe('Whether tax is included in the price.')\n .optional()\n .nullable(),\n addressIndex: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z.never().optional(),\n }),\n z.object({\n multipleAddresses: z.never().optional(),\n singleAddress: z\n .number()\n .int()\n .describe(\n 'Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based.'\n ),\n }),\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z\n .object({\n origin: z\n .number()\n .int()\n .describe('Index of the origin address.')\n .optional(),\n destination: z\n .number()\n .int()\n .describe('Index of the destination address.')\n .optional(),\n })\n .describe(\n 'Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\\nas well as the address the item is shipped to.'\n ),\n }),\n ])\n )\n .describe(\n 'Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based.'\n ),\n })\n )\n .min(1)\n .max(300),\n })\n .describe('Calculate tax options.'),\n});\nexport const CalculateTaxResponse = z.object({\n externalId: z\n .string()\n .describe(\n 'Optional ID of the entity that tax is being calculated for. For example, a cart ID.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n currency: z\n .string()\n .describe(\n '3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.'\n )\n .optional(),\n addresses: z\n .array(\n z.object({\n city: z.string().optional().nullable(),\n subdivision: z.string().optional().nullable(),\n country: z.string().optional().nullable(),\n postalCode: z.string().optional().nullable(),\n addressLine2: z.string().optional().nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n taxSummary: z\n .object({\n totalAmount: z\n .string()\n .describe('Total price for all line items.')\n .optional(),\n totalTax: z\n .string()\n .describe(\n 'Total amount of tax calculated for all line items.\\nNote that due to rounding, `totalTax` may not equal the sum of `lineItemTaxDetails.taxSummary.taxAmount`.'\n )\n .optional(),\n totalTaxableAmount: z\n .string()\n .describe('Total taxable amount for all line items.')\n .optional(),\n totalTaxIncludedInPrice: z\n .string()\n .describe(\n 'Total amount of `totalTax` that is included in price. Applies to line items with `taxIncludedInPrice` set to `true`.'\n )\n .optional(),\n aggregatedTaxBreakdown: z\n .array(\n z.object({\n taxName: z\n .string()\n .describe('Name of the tax that was calculated.')\n .max(200)\n .optional(),\n taxType: z\n .string()\n .describe('Type of tax that was calculated.')\n .max(200)\n .optional(),\n jurisdiction: z\n .string()\n .describe('Jurisdiction that taxes were calculated for.')\n .max(200)\n .optional(),\n jurisdictionType: z\n .enum([\n 'UNDEFINED',\n 'COUNTRY',\n 'STATE',\n 'COUNTY',\n 'CITY',\n 'SPECIAL',\n ])\n .describe('Type of jurisdiction that taxes were calculated for.')\n .optional(),\n rate: z\n .string()\n .describe(\n 'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `\"0.1000\"` and 200% tax is `\"2.0000\"`.'\n )\n .optional(),\n aggregatedTaxAmount: z\n .string()\n .describe('Total amount of this tax for this jurisdiction.')\n .optional(),\n })\n )\n .min(0)\n .max(50)\n .optional(),\n })\n .describe('Summary of the tax calculated.')\n .optional(),\n lineItemTaxDetails: z\n .array(\n z.object({\n _id: z.string().describe('Line item ID.').min(1).max(100).optional(),\n itemName: z\n .string()\n .describe('Line item name to display.')\n .min(0)\n .max(250)\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Line item quantity.')\n .min(1)\n .max(100000)\n .optional(),\n taxBreakdown: z\n .array(\n z.object({\n jurisdiction: z\n .string()\n .describe('Jurisdiction that taxes were calculated for.')\n .max(200)\n .optional()\n .nullable(),\n nonTaxableAmount: z\n .string()\n .describe('Non-taxable amount of the price.')\n .optional()\n .nullable(),\n rate: z\n .string()\n .describe(\n 'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `\"0.1000\"` and 200% tax is `\"2.0000\"`.'\n )\n .optional()\n .nullable(),\n taxAmount: z\n .string()\n .describe(\n 'Amount of this tax calculated for this jurisdiction.'\n )\n .optional()\n .nullable(),\n taxableAmount: z\n .string()\n .describe('Taxable amount of the price.')\n .optional()\n .nullable(),\n taxType: z\n .string()\n .describe(\n 'Type of tax that was calculated. For example, `\"Sales Tax\"`, `\"Income Tax\"`, `\"Value Added Tax\"`, etc.'\n )\n .max(200)\n .optional()\n .nullable(),\n taxName: z\n .string()\n .describe(\n 'Name of the tax that was calculated. For example, `\"NY State Sales Tax\"`, `\"Quebec GST\"`, etc.'\n )\n .max(200)\n .optional()\n .nullable(),\n jurisdictionType: z\n .enum([\n 'UNDEFINED',\n 'COUNTRY',\n 'STATE',\n 'COUNTY',\n 'CITY',\n 'SPECIAL',\n ])\n .describe(\n 'Type of jurisdiction that taxes were calculated for. For example, `\"State\"`, `\"Çounty\"`, `\"City\"`, `\"Special\"`, etc.'\n )\n .optional(),\n })\n )\n .max(7)\n .optional(),\n taxSummary: z\n .object({\n fullPrice: z\n .string()\n .describe(\n 'Total price for this line item.\\nTo determine the price for each individual unit of this line item, divide by `quantity`.'\n )\n .optional()\n .nullable(),\n taxAmount: z\n .string()\n .describe('Total amount of tax calculated for this line item.')\n .optional(),\n taxableAmount: z\n .string()\n .describe('Total taxable amount for this line item.')\n .optional(),\n appId: z\n .string()\n .describe(\n 'ID of the calculator app that calculated tax for this line item.'\n )\n .max(50)\n .optional()\n .nullable(),\n })\n .describe(\"Summary of this line item's total price and tax.\")\n .optional(),\n addressIndex: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z.never().optional(),\n }),\n z.object({\n multipleAddresses: z.never().optional(),\n singleAddress: z\n .number()\n .int()\n .describe(\n 'Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based.'\n ),\n }),\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z\n .object({\n origin: z\n .number()\n .int()\n .describe('Index of the origin address.')\n .optional(),\n destination: z\n .number()\n .int()\n .describe('Index of the destination address.')\n .optional(),\n })\n .describe(\n 'Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\\nas well as the address the item is shipped to.'\n ),\n }),\n ])\n )\n .describe(\n 'Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based.'\n )\n .optional(),\n taxIncludedInPrice: z\n .boolean()\n .describe('Whether tax is included in the price.')\n .optional(),\n })\n )\n .min(1)\n .max(300)\n .optional(),\n errors: z\n .array(\n z.object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n )\n .min(0)\n .max(100)\n .optional(),\n});\nexport const ListTaxCalculatorsRequest = z.object({});\nexport const ListTaxCalculatorsResponse = z.object({\n taxCalculatorDetails: z\n .array(\n z.object({\n appId: z\n .string()\n .describe('ID of the tax calculator.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n displayName: z\n .string()\n .describe('Display name of the tax calculator.')\n .min(1)\n .max(200)\n .optional(),\n unsupportedCountries: z.array(z.string()).max(195).optional(),\n })\n )\n .max(10)\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ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H,EACC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AACd,CAAC;AACM,IAAM,4BAA8B,SAAO,CAAC,CAAC;AAC7C,IAAM,6BAA+B,SAAO;AAAA,EACjD,sBACG;AAAA,IACG,SAAO;AAAA,MACP,OACG,SAAO,EACP,SAAS,2BAA2B,EACpC;AAAA,QACC;AAAA,QACA;AAAA,MACF,EACC,SAAS;AAAA,MACZ,aACG,SAAO,EACP,SAAS,qCAAqC,EAC9C,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AAAA,MACZ,sBAAwB,QAAQ,SAAO,CAAC,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,IAC9D,CAAC;AAAA,EACH,EACC,IAAI,EAAE,EACN,SAAS;AACd,CAAC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../../src/gateways-billing-v1-tax-calculation-gateway-tax-calculation.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const CalculateTaxRequest = /*#__PURE__*/ z.object({\n options: z\n .object({\n externalId: z\n .string()\n .describe(\n 'Optional ID of the entity that tax is being calculated for. For example, a cart ID.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n currency: z\n .string()\n .describe(\n '3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.'\n )\n .optional(),\n addresses: z\n .array(\n z.object({\n country: z\n .string()\n .describe(\n '2-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.'\n )\n .optional()\n .nullable(),\n subdivision: z\n .string()\n .describe(\n 'Subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) format.'\n )\n .max(50)\n .optional()\n .nullable(),\n city: z\n .string()\n .describe('City name.')\n .max(100)\n .optional()\n .nullable(),\n postalCode: z\n .string()\n .describe('Postal or zip code.')\n .max(50)\n .optional()\n .nullable(),\n addressLine: z\n .string()\n .describe(\n 'Main address line, usually street and number as free text.'\n )\n .max(200)\n .optional()\n .nullable(),\n addressLine2: z\n .string()\n .describe(\n 'Free text providing more detailed address information, such as apartment, suite, or floor.'\n )\n .max(200)\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(3),\n lineItems: z\n .array(\n z.object({\n _id: z.string().describe('Line item ID.').min(1).max(100),\n itemName: z\n .string()\n .describe('Line item name to display.')\n .min(0)\n .max(250)\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Line item quantity.')\n .min(1)\n .max(100000)\n .optional(),\n price: z.string().describe('Line item price.'),\n itemCode: z\n .string()\n .describe(\n 'Stock keeping unit for this line item. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).'\n )\n .max(40)\n .optional()\n .nullable(),\n taxGroupId: z\n .string()\n .describe(\n 'Tax group ID for this line item. If not provided, the default tax group applies.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n appId: z\n .string()\n .describe(\n 'ID of the app providing the catalog for this line item.\\n\\nYou can get your app\\'s ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\\n\\nFor items from Wix catalogs, the following values always apply:\\n+ Wix Stores: `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`\\n+ Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\\n+ Wix Restaurants: `\"9a5d83fd-8570-482e-81ab-cfa88942ee60\"`'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n taxIncludedInPrice: z\n .boolean()\n .describe('Whether tax is included in the price.')\n .optional()\n .nullable(),\n addressIndex: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z.never().optional(),\n }),\n z.object({\n multipleAddresses: z.never().optional(),\n singleAddress: z\n .number()\n .int()\n .describe(\n 'Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based.'\n ),\n }),\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z\n .object({\n origin: z\n .number()\n .int()\n .describe('Index of the origin address.')\n .optional(),\n destination: z\n .number()\n .int()\n .describe('Index of the destination address.')\n .optional(),\n })\n .describe(\n 'Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\\nas well as the address the item is shipped to.'\n ),\n }),\n ])\n )\n .describe(\n 'Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based.'\n ),\n })\n )\n .min(1)\n .max(300),\n })\n .describe('Calculate tax options.'),\n});\nexport const CalculateTaxResponse = /*#__PURE__*/ z.object({\n externalId: z\n .string()\n .describe(\n 'Optional ID of the entity that tax is being calculated for. For example, a cart ID.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n currency: z\n .string()\n .describe(\n '3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.'\n )\n .optional(),\n addresses: z\n .array(\n z.object({\n city: z.string().optional().nullable(),\n subdivision: z.string().optional().nullable(),\n country: z.string().optional().nullable(),\n postalCode: z.string().optional().nullable(),\n addressLine2: z.string().optional().nullable(),\n })\n )\n .min(1)\n .max(3)\n .optional(),\n taxSummary: z\n .object({\n totalAmount: z\n .string()\n .describe('Total price for all line items.')\n .optional(),\n totalTax: z\n .string()\n .describe(\n 'Total amount of tax calculated for all line items.\\nNote that due to rounding, `totalTax` may not equal the sum of `lineItemTaxDetails.taxSummary.taxAmount`.'\n )\n .optional(),\n totalTaxableAmount: z\n .string()\n .describe('Total taxable amount for all line items.')\n .optional(),\n totalTaxIncludedInPrice: z\n .string()\n .describe(\n 'Total amount of `totalTax` that is included in price. Applies to line items with `taxIncludedInPrice` set to `true`.'\n )\n .optional(),\n aggregatedTaxBreakdown: z\n .array(\n z.object({\n taxName: z\n .string()\n .describe('Name of the tax that was calculated.')\n .max(200)\n .optional(),\n taxType: z\n .string()\n .describe('Type of tax that was calculated.')\n .max(200)\n .optional(),\n jurisdiction: z\n .string()\n .describe('Jurisdiction that taxes were calculated for.')\n .max(200)\n .optional(),\n jurisdictionType: z\n .enum([\n 'UNDEFINED',\n 'COUNTRY',\n 'STATE',\n 'COUNTY',\n 'CITY',\n 'SPECIAL',\n ])\n .describe('Type of jurisdiction that taxes were calculated for.')\n .optional(),\n rate: z\n .string()\n .describe(\n 'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `\"0.1000\"` and 200% tax is `\"2.0000\"`.'\n )\n .optional(),\n aggregatedTaxAmount: z\n .string()\n .describe('Total amount of this tax for this jurisdiction.')\n .optional(),\n })\n )\n .min(0)\n .max(50)\n .optional(),\n })\n .describe('Summary of the tax calculated.')\n .optional(),\n lineItemTaxDetails: z\n .array(\n z.object({\n _id: z.string().describe('Line item ID.').min(1).max(100).optional(),\n itemName: z\n .string()\n .describe('Line item name to display.')\n .min(0)\n .max(250)\n .optional()\n .nullable(),\n quantity: z\n .number()\n .int()\n .describe('Line item quantity.')\n .min(1)\n .max(100000)\n .optional(),\n taxBreakdown: z\n .array(\n z.object({\n jurisdiction: z\n .string()\n .describe('Jurisdiction that taxes were calculated for.')\n .max(200)\n .optional()\n .nullable(),\n nonTaxableAmount: z\n .string()\n .describe('Non-taxable amount of the price.')\n .optional()\n .nullable(),\n rate: z\n .string()\n .describe(\n 'Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is `\"0.1000\"` and 200% tax is `\"2.0000\"`.'\n )\n .optional()\n .nullable(),\n taxAmount: z\n .string()\n .describe(\n 'Amount of this tax calculated for this jurisdiction.'\n )\n .optional()\n .nullable(),\n taxableAmount: z\n .string()\n .describe('Taxable amount of the price.')\n .optional()\n .nullable(),\n taxType: z\n .string()\n .describe(\n 'Type of tax that was calculated. For example, `\"Sales Tax\"`, `\"Income Tax\"`, `\"Value Added Tax\"`, etc.'\n )\n .max(200)\n .optional()\n .nullable(),\n taxName: z\n .string()\n .describe(\n 'Name of the tax that was calculated. For example, `\"NY State Sales Tax\"`, `\"Quebec GST\"`, etc.'\n )\n .max(200)\n .optional()\n .nullable(),\n jurisdictionType: z\n .enum([\n 'UNDEFINED',\n 'COUNTRY',\n 'STATE',\n 'COUNTY',\n 'CITY',\n 'SPECIAL',\n ])\n .describe(\n 'Type of jurisdiction that taxes were calculated for. For example, `\"State\"`, `\"Çounty\"`, `\"City\"`, `\"Special\"`, etc.'\n )\n .optional(),\n })\n )\n .max(7)\n .optional(),\n taxSummary: z\n .object({\n fullPrice: z\n .string()\n .describe(\n 'Total price for this line item.\\nTo determine the price for each individual unit of this line item, divide by `quantity`.'\n )\n .optional()\n .nullable(),\n taxAmount: z\n .string()\n .describe('Total amount of tax calculated for this line item.')\n .optional(),\n taxableAmount: z\n .string()\n .describe('Total taxable amount for this line item.')\n .optional(),\n appId: z\n .string()\n .describe(\n 'ID of the calculator app that calculated tax for this line item.'\n )\n .max(50)\n .optional()\n .nullable(),\n })\n .describe(\"Summary of this line item's total price and tax.\")\n .optional(),\n addressIndex: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z.never().optional(),\n }),\n z.object({\n multipleAddresses: z.never().optional(),\n singleAddress: z\n .number()\n .int()\n .describe(\n 'Single address to use for a sale location when only one address is required for tax calculations. The index is zero-based.'\n ),\n }),\n z.object({\n singleAddress: z.never().optional(),\n multipleAddresses: z\n .object({\n origin: z\n .number()\n .int()\n .describe('Index of the origin address.')\n .optional(),\n destination: z\n .number()\n .int()\n .describe('Index of the destination address.')\n .optional(),\n })\n .describe(\n 'Multiple addresses to use for a sale. For example, some tax calculations may require both the address where an item is shipped from,\\nas well as the address the item is shipped to.'\n ),\n }),\n ])\n )\n .describe(\n 'Index of the address from `addresses` to use to calculate tax for this specific line item. The index is zero-based.'\n )\n .optional(),\n taxIncludedInPrice: z\n .boolean()\n .describe('Whether tax is included in the price.')\n .optional(),\n })\n )\n .min(1)\n .max(300)\n .optional(),\n errors: z\n .array(\n z.object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n )\n .min(0)\n .max(100)\n .optional(),\n});\nexport const ListTaxCalculatorsRequest = /*#__PURE__*/ z.object({});\nexport const ListTaxCalculatorsResponse = /*#__PURE__*/ z.object({\n taxCalculatorDetails: z\n .array(\n z.object({\n appId: z\n .string()\n .describe('ID of the tax calculator.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n displayName: z\n .string()\n .describe('Display name of the tax calculator.')\n .min(1)\n .max(200)\n .optional(),\n unsupportedCountries: z.array(z.string()).max(195).optional(),\n })\n )\n .max(10)\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,sBAAoC,gBAAE,SAAO;AAAA,EACxD,SACG,SAAO;AAAA,IACN,YACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,UACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,WACG;AAAA,MACG,SAAO;AAAA,QACP,SACG,S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SAAS;AAAA,MACZ,aACG,SAAO,EACP,SAAS,qCAAqC,EAC9C,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AAAA,MACZ,sBAAwB,QAAQ,SAAO,CAAC,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,IAC9D,CAAC;AAAA,EACH,EACC,IAAI,EAAE,EACN,SAAS;AACd,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_ecom_tax-calculation",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.53",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"fqdn": "wix.gateways.billing.v1.tax_calculation_gateway"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
|
-
"falconPackageHash": "
|
|
60
|
+
"falconPackageHash": "0b80ae06f28ae014aca28e833a08c7101cb79cff75c9f781247598fe"
|
|
61
61
|
}
|