@wix/auto_sdk_ecom_subscription-contracts 1.0.106 → 1.0.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +10 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +28 -8
- package/build/cjs/index.typings.js +10 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +27 -2
- package/build/cjs/meta.js +10 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +60 -0
- package/build/cjs/schemas.js +88 -2
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +9 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +28 -8
- package/build/es/index.typings.mjs +9 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +27 -2
- package/build/es/meta.mjs +9 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +60 -0
- package/build/es/schemas.mjs +88 -2
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +10 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +27 -12
- package/build/internal/cjs/index.typings.js +10 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +27 -2
- package/build/internal/cjs/meta.js +10 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +60 -0
- package/build/internal/cjs/schemas.js +88 -2
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +9 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +27 -12
- package/build/internal/es/index.typings.mjs +9 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +27 -2
- package/build/internal/es/meta.mjs +9 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +60 -0
- package/build/internal/es/schemas.mjs +88 -2
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/schemas.js
CHANGED
|
@@ -540,6 +540,46 @@ var GetSubscriptionContractResponse = z.object({
|
|
|
540
540
|
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
541
541
|
}).describe("Total additional fees before tax.").optional()
|
|
542
542
|
}).describe("Order price summary.").optional(),
|
|
543
|
+
platformFeeSummary: z.object({
|
|
544
|
+
total: z.object({
|
|
545
|
+
amount: z.string().describe("Amount.").optional(),
|
|
546
|
+
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
547
|
+
}).describe("Total sum of all platform fees.").optional(),
|
|
548
|
+
totalPassOn: z.object({
|
|
549
|
+
amount: z.string().describe("Amount.").optional(),
|
|
550
|
+
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
551
|
+
}).describe("Total amount of platform fees with `PASS_ON` charge type.").optional(),
|
|
552
|
+
totalAbsorbed: z.object({
|
|
553
|
+
amount: z.string().describe("Amount.").optional(),
|
|
554
|
+
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
555
|
+
}).describe("Total amount of platform fees with `ABSORBED` charge type.").optional(),
|
|
556
|
+
fees: z.array(
|
|
557
|
+
z.object({
|
|
558
|
+
name: z.object({
|
|
559
|
+
original: z.string().describe(
|
|
560
|
+
"__Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
|
|
561
|
+
).min(1).max(200).optional(),
|
|
562
|
+
translated: z.string().describe(
|
|
563
|
+
"String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
|
|
564
|
+
).min(1).max(400).optional().nullable()
|
|
565
|
+
}).describe("Platform fee name.").optional(),
|
|
566
|
+
amount: z.object({
|
|
567
|
+
amount: z.string().describe("Amount.").optional(),
|
|
568
|
+
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
569
|
+
}).describe("Platform fee amount.").optional(),
|
|
570
|
+
lineItemId: z.string().describe("ID of the line item the platform fee applies to.").regex(
|
|
571
|
+
/^[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}$/,
|
|
572
|
+
"Must be a valid GUID"
|
|
573
|
+
).optional(),
|
|
574
|
+
chargeType: z.enum(["PASS_ON", "ABSORBED"]).describe("Platform fee charge type.").optional(),
|
|
575
|
+
percentageRate: z.string().describe(
|
|
576
|
+
"Percentage rate charged as platform fee.\nThe fee rate percentage expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%."
|
|
577
|
+
).optional()
|
|
578
|
+
})
|
|
579
|
+
).max(300).optional()
|
|
580
|
+
}).describe(
|
|
581
|
+
"Summary of platform fees for this subscription contract, including totals by charge type and a breakdown of individual fees."
|
|
582
|
+
).optional(),
|
|
543
583
|
billingInfo: z.object({
|
|
544
584
|
address: z.object({
|
|
545
585
|
streetAddress: z.object({
|
|
@@ -754,7 +794,7 @@ var GetSubscriptionContractResponse = z.object({
|
|
|
754
794
|
z.intersection(
|
|
755
795
|
z.object({
|
|
756
796
|
discountType: z.enum(["GLOBAL", "SPECIFIC_ITEMS", "SHIPPING"]).optional(),
|
|
757
|
-
lineItemIds: z.array(z.string()).min(0).max(
|
|
797
|
+
lineItemIds: z.array(z.string()).min(0).max(300).optional(),
|
|
758
798
|
_id: z.string().describe("Discount ID.").regex(
|
|
759
799
|
/^[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}$/,
|
|
760
800
|
"Must be a valid GUID"
|
|
@@ -1576,6 +1616,52 @@ var QuerySubscriptionContractsResponse = z.object({
|
|
|
1576
1616
|
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
1577
1617
|
}).describe("Total additional fees before tax.").optional()
|
|
1578
1618
|
}).describe("Order price summary.").optional(),
|
|
1619
|
+
platformFeeSummary: z.object({
|
|
1620
|
+
total: z.object({
|
|
1621
|
+
amount: z.string().describe("Amount.").optional(),
|
|
1622
|
+
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
1623
|
+
}).describe("Total sum of all platform fees.").optional(),
|
|
1624
|
+
totalPassOn: z.object({
|
|
1625
|
+
amount: z.string().describe("Amount.").optional(),
|
|
1626
|
+
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
1627
|
+
}).describe(
|
|
1628
|
+
"Total amount of platform fees with `PASS_ON` charge type."
|
|
1629
|
+
).optional(),
|
|
1630
|
+
totalAbsorbed: z.object({
|
|
1631
|
+
amount: z.string().describe("Amount.").optional(),
|
|
1632
|
+
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
1633
|
+
}).describe(
|
|
1634
|
+
"Total amount of platform fees with `ABSORBED` charge type."
|
|
1635
|
+
).optional(),
|
|
1636
|
+
fees: z.array(
|
|
1637
|
+
z.object({
|
|
1638
|
+
name: z.object({
|
|
1639
|
+
original: z.string().describe(
|
|
1640
|
+
"__Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n\nMin: 1 character.\nMax: 200 characters."
|
|
1641
|
+
).min(1).max(200).optional(),
|
|
1642
|
+
translated: z.string().describe(
|
|
1643
|
+
"String translated into the buyer's language.\n\nMin: 1 character.\nMax: 400 characters.\nDefault: Same as `original`."
|
|
1644
|
+
).min(1).max(400).optional().nullable()
|
|
1645
|
+
}).describe("Platform fee name.").optional(),
|
|
1646
|
+
amount: z.object({
|
|
1647
|
+
amount: z.string().describe("Amount.").optional(),
|
|
1648
|
+
formattedAmount: z.string().describe("Amount formatted with currency symbol.").optional()
|
|
1649
|
+
}).describe("Platform fee amount.").optional(),
|
|
1650
|
+
lineItemId: z.string().describe(
|
|
1651
|
+
"ID of the line item the platform fee applies to."
|
|
1652
|
+
).regex(
|
|
1653
|
+
/^[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}$/,
|
|
1654
|
+
"Must be a valid GUID"
|
|
1655
|
+
).optional(),
|
|
1656
|
+
chargeType: z.enum(["PASS_ON", "ABSORBED"]).describe("Platform fee charge type.").optional(),
|
|
1657
|
+
percentageRate: z.string().describe(
|
|
1658
|
+
"Percentage rate charged as platform fee.\nThe fee rate percentage expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%."
|
|
1659
|
+
).optional()
|
|
1660
|
+
})
|
|
1661
|
+
).max(300).optional()
|
|
1662
|
+
}).describe(
|
|
1663
|
+
"Summary of platform fees for this subscription contract, including totals by charge type and a breakdown of individual fees."
|
|
1664
|
+
).optional(),
|
|
1579
1665
|
billingInfo: z.object({
|
|
1580
1666
|
address: z.object({
|
|
1581
1667
|
streetAddress: z.object({
|
|
@@ -1806,7 +1892,7 @@ var QuerySubscriptionContractsResponse = z.object({
|
|
|
1806
1892
|
z.intersection(
|
|
1807
1893
|
z.object({
|
|
1808
1894
|
discountType: z.enum(["GLOBAL", "SPECIFIC_ITEMS", "SHIPPING"]).optional(),
|
|
1809
|
-
lineItemIds: z.array(z.string()).min(0).max(
|
|
1895
|
+
lineItemIds: z.array(z.string()).min(0).max(300).optional(),
|
|
1810
1896
|
_id: z.string().describe("Discount ID.").regex(
|
|
1811
1897
|
/^[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}$/,
|
|
1812
1898
|
"Must be a valid GUID"
|