@polar-sh/sdk 0.33.2 → 0.34.1
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/README.md +9 -8
- package/bin/mcp-server.js +104 -94
- package/bin/mcp-server.js.map +17 -17
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/security.d.ts +2 -2
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/benefitgrant.d.ts +4 -4
- package/dist/commonjs/models/components/benefitgrant.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitgrant.js +12 -12
- package/dist/commonjs/models/components/benefitgrant.js.map +1 -1
- package/dist/commonjs/models/components/benefitgrantwebhook.d.ts +8 -8
- package/dist/commonjs/models/components/benefitgrantwebhook.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitgrantwebhook.js +24 -24
- package/dist/commonjs/models/components/benefitgrantwebhook.js.map +1 -1
- package/dist/commonjs/models/components/checkout.d.ts +11 -6
- package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkout.js +16 -12
- package/dist/commonjs/models/components/checkout.js.map +1 -1
- package/dist/commonjs/models/components/checkoutcreate.d.ts +2 -2
- package/dist/commonjs/models/components/checkoutcreate.js +4 -4
- package/dist/commonjs/models/components/checkoutlink.d.ts +4 -4
- package/dist/commonjs/models/components/checkoutlink.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutlink.js +8 -8
- package/dist/commonjs/models/components/checkoutlink.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.d.ts +6 -6
- package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.js +12 -12
- package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +6 -6
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js +12 -12
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/commonjs/models/components/customerbenefitgrantupdate.d.ts +10 -10
- package/dist/commonjs/models/components/customerbenefitgrantupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerbenefitgrantupdate.js +8 -8
- package/dist/commonjs/models/components/customerbenefitgrantupdate.js.map +1 -1
- package/dist/commonjs/models/components/customersessioncustomerexternalidcreate.d.ts +2 -2
- package/dist/commonjs/models/components/customersessioncustomerexternalidcreate.js +4 -4
- package/dist/commonjs/models/components/customerstatebenefitgrant.d.ts +34 -4
- package/dist/commonjs/models/components/customerstatebenefitgrant.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerstatebenefitgrant.js +40 -13
- package/dist/commonjs/models/components/customerstatebenefitgrant.js.map +1 -1
- package/dist/commonjs/models/components/discount.d.ts +2 -2
- package/dist/commonjs/models/components/discount.d.ts.map +1 -1
- package/dist/commonjs/models/components/discount.js +4 -4
- package/dist/commonjs/models/components/discount.js.map +1 -1
- package/dist/commonjs/models/components/discountcreate.d.ts +2 -2
- package/dist/commonjs/models/components/discountcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/discountcreate.js +6 -6
- package/dist/commonjs/models/components/discountcreate.js.map +1 -1
- package/dist/commonjs/models/components/filter.d.ts +4 -4
- package/dist/commonjs/models/components/filter.d.ts.map +1 -1
- package/dist/commonjs/models/components/filter.js +4 -4
- package/dist/commonjs/models/components/filter.js.map +1 -1
- package/dist/commonjs/models/components/legacyrecurringproductprice.d.ts +8 -8
- package/dist/commonjs/models/components/legacyrecurringproductprice.d.ts.map +1 -1
- package/dist/commonjs/models/components/legacyrecurringproductprice.js +4 -4
- package/dist/commonjs/models/components/legacyrecurringproductprice.js.map +1 -1
- package/dist/commonjs/models/components/listresourcefileread.d.ts +12 -12
- package/dist/commonjs/models/components/listresourcefileread.d.ts.map +1 -1
- package/dist/commonjs/models/components/listresourcefileread.js +12 -12
- package/dist/commonjs/models/components/listresourcefileread.js.map +1 -1
- package/dist/commonjs/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.d.ts +4 -4
- package/dist/commonjs/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.d.ts.map +1 -1
- package/dist/commonjs/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.js +4 -4
- package/dist/commonjs/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.js.map +1 -1
- package/dist/commonjs/models/components/meter.d.ts +24 -24
- package/dist/commonjs/models/components/meter.d.ts.map +1 -1
- package/dist/commonjs/models/components/meter.js +16 -16
- package/dist/commonjs/models/components/meter.js.map +1 -1
- package/dist/commonjs/models/components/metercreate.d.ts +24 -24
- package/dist/commonjs/models/components/metercreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/metercreate.js +16 -16
- package/dist/commonjs/models/components/metercreate.js.map +1 -1
- package/dist/commonjs/models/components/meterupdate.d.ts +24 -24
- package/dist/commonjs/models/components/meterupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/meterupdate.js +16 -16
- package/dist/commonjs/models/components/meterupdate.js.map +1 -1
- package/dist/commonjs/models/components/order.d.ts +4 -4
- package/dist/commonjs/models/components/order.d.ts.map +1 -1
- package/dist/commonjs/models/components/order.js +8 -8
- package/dist/commonjs/models/components/order.js.map +1 -1
- package/dist/commonjs/models/components/payment.d.ts +2 -2
- package/dist/commonjs/models/components/payment.d.ts.map +1 -1
- package/dist/commonjs/models/components/payment.js +2 -2
- package/dist/commonjs/models/components/payment.js.map +1 -1
- package/dist/commonjs/models/components/productcreate.d.ts +4 -4
- package/dist/commonjs/models/components/productcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/productcreate.js +8 -8
- package/dist/commonjs/models/components/productcreate.js.map +1 -1
- package/dist/commonjs/models/components/productprice.d.ts +12 -12
- package/dist/commonjs/models/components/productprice.d.ts.map +1 -1
- package/dist/commonjs/models/components/productprice.js +8 -8
- package/dist/commonjs/models/components/productprice.js.map +1 -1
- package/dist/commonjs/models/components/productupdate.d.ts +4 -4
- package/dist/commonjs/models/components/productupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/productupdate.js +12 -12
- package/dist/commonjs/models/components/productupdate.js.map +1 -1
- package/dist/commonjs/models/components/subscription.d.ts +4 -4
- package/dist/commonjs/models/components/subscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscription.js +8 -8
- package/dist/commonjs/models/components/subscription.js.map +1 -1
- package/dist/commonjs/models/components/subscriptionupdate.d.ts +2 -2
- package/dist/commonjs/models/components/subscriptionupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscriptionupdate.js +2 -2
- package/dist/commonjs/models/components/subscriptionupdate.js.map +1 -1
- package/dist/commonjs/models/operations/customerportalcustomersaddpaymentmethod.d.ts +2 -2
- package/dist/commonjs/models/operations/customerportalcustomersaddpaymentmethod.d.ts.map +1 -1
- package/dist/commonjs/models/operations/customerportalcustomersaddpaymentmethod.js +2 -2
- package/dist/commonjs/models/operations/customerportalcustomersaddpaymentmethod.js.map +1 -1
- package/dist/commonjs/models/operations/filesupdate.d.ts +6 -6
- package/dist/commonjs/models/operations/filesupdate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/filesupdate.js +6 -6
- package/dist/commonjs/models/operations/filesupdate.js.map +1 -1
- package/dist/commonjs/models/operations/filesuploaded.d.ts +6 -6
- package/dist/commonjs/models/operations/filesuploaded.d.ts.map +1 -1
- package/dist/commonjs/models/operations/filesuploaded.js +6 -6
- package/dist/commonjs/models/operations/filesuploaded.js.map +1 -1
- package/dist/commonjs/models/operations/oauth2authorize.d.ts +6 -6
- package/dist/commonjs/models/operations/oauth2authorize.d.ts.map +1 -1
- package/dist/commonjs/models/operations/oauth2authorize.js +4 -4
- package/dist/commonjs/models/operations/oauth2authorize.js.map +1 -1
- package/dist/commonjs/models/operations/oauth2requesttoken.d.ts +2 -2
- package/dist/commonjs/models/operations/oauth2requesttoken.d.ts.map +1 -1
- package/dist/commonjs/models/operations/oauth2requesttoken.js +2 -2
- package/dist/commonjs/models/operations/oauth2requesttoken.js.map +1 -1
- package/dist/commonjs/models/operations/oauth2userinfo.d.ts +2 -2
- package/dist/commonjs/models/operations/oauth2userinfo.d.ts.map +1 -1
- package/dist/commonjs/models/operations/oauth2userinfo.js +2 -2
- package/dist/commonjs/models/operations/oauth2userinfo.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/security.d.ts +2 -2
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/benefitgrant.d.ts +4 -4
- package/dist/esm/models/components/benefitgrant.d.ts.map +1 -1
- package/dist/esm/models/components/benefitgrant.js +12 -12
- package/dist/esm/models/components/benefitgrant.js.map +1 -1
- package/dist/esm/models/components/benefitgrantwebhook.d.ts +8 -8
- package/dist/esm/models/components/benefitgrantwebhook.d.ts.map +1 -1
- package/dist/esm/models/components/benefitgrantwebhook.js +24 -24
- package/dist/esm/models/components/benefitgrantwebhook.js.map +1 -1
- package/dist/esm/models/components/checkout.d.ts +11 -6
- package/dist/esm/models/components/checkout.d.ts.map +1 -1
- package/dist/esm/models/components/checkout.js +16 -12
- package/dist/esm/models/components/checkout.js.map +1 -1
- package/dist/esm/models/components/checkoutcreate.d.ts +2 -2
- package/dist/esm/models/components/checkoutcreate.js +4 -4
- package/dist/esm/models/components/checkoutlink.d.ts +4 -4
- package/dist/esm/models/components/checkoutlink.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutlink.js +8 -8
- package/dist/esm/models/components/checkoutlink.js.map +1 -1
- package/dist/esm/models/components/checkoutpublic.d.ts +6 -6
- package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublic.js +12 -12
- package/dist/esm/models/components/checkoutpublic.js.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +6 -6
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.js +12 -12
- package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/esm/models/components/customerbenefitgrantupdate.d.ts +10 -10
- package/dist/esm/models/components/customerbenefitgrantupdate.d.ts.map +1 -1
- package/dist/esm/models/components/customerbenefitgrantupdate.js +8 -8
- package/dist/esm/models/components/customerbenefitgrantupdate.js.map +1 -1
- package/dist/esm/models/components/customersessioncustomerexternalidcreate.d.ts +2 -2
- package/dist/esm/models/components/customersessioncustomerexternalidcreate.js +4 -4
- package/dist/esm/models/components/customerstatebenefitgrant.d.ts +34 -4
- package/dist/esm/models/components/customerstatebenefitgrant.d.ts.map +1 -1
- package/dist/esm/models/components/customerstatebenefitgrant.js +37 -12
- package/dist/esm/models/components/customerstatebenefitgrant.js.map +1 -1
- package/dist/esm/models/components/discount.d.ts +2 -2
- package/dist/esm/models/components/discount.d.ts.map +1 -1
- package/dist/esm/models/components/discount.js +4 -4
- package/dist/esm/models/components/discount.js.map +1 -1
- package/dist/esm/models/components/discountcreate.d.ts +2 -2
- package/dist/esm/models/components/discountcreate.d.ts.map +1 -1
- package/dist/esm/models/components/discountcreate.js +6 -6
- package/dist/esm/models/components/discountcreate.js.map +1 -1
- package/dist/esm/models/components/filter.d.ts +4 -4
- package/dist/esm/models/components/filter.d.ts.map +1 -1
- package/dist/esm/models/components/filter.js +4 -4
- package/dist/esm/models/components/filter.js.map +1 -1
- package/dist/esm/models/components/legacyrecurringproductprice.d.ts +8 -8
- package/dist/esm/models/components/legacyrecurringproductprice.d.ts.map +1 -1
- package/dist/esm/models/components/legacyrecurringproductprice.js +4 -4
- package/dist/esm/models/components/legacyrecurringproductprice.js.map +1 -1
- package/dist/esm/models/components/listresourcefileread.d.ts +12 -12
- package/dist/esm/models/components/listresourcefileread.d.ts.map +1 -1
- package/dist/esm/models/components/listresourcefileread.js +12 -12
- package/dist/esm/models/components/listresourcefileread.js.map +1 -1
- package/dist/esm/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.d.ts +4 -4
- package/dist/esm/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.d.ts.map +1 -1
- package/dist/esm/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.js +4 -4
- package/dist/esm/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.js.map +1 -1
- package/dist/esm/models/components/meter.d.ts +24 -24
- package/dist/esm/models/components/meter.d.ts.map +1 -1
- package/dist/esm/models/components/meter.js +16 -16
- package/dist/esm/models/components/meter.js.map +1 -1
- package/dist/esm/models/components/metercreate.d.ts +24 -24
- package/dist/esm/models/components/metercreate.d.ts.map +1 -1
- package/dist/esm/models/components/metercreate.js +16 -16
- package/dist/esm/models/components/metercreate.js.map +1 -1
- package/dist/esm/models/components/meterupdate.d.ts +24 -24
- package/dist/esm/models/components/meterupdate.d.ts.map +1 -1
- package/dist/esm/models/components/meterupdate.js +16 -16
- package/dist/esm/models/components/meterupdate.js.map +1 -1
- package/dist/esm/models/components/order.d.ts +4 -4
- package/dist/esm/models/components/order.d.ts.map +1 -1
- package/dist/esm/models/components/order.js +8 -8
- package/dist/esm/models/components/order.js.map +1 -1
- package/dist/esm/models/components/payment.d.ts +2 -2
- package/dist/esm/models/components/payment.d.ts.map +1 -1
- package/dist/esm/models/components/payment.js +2 -2
- package/dist/esm/models/components/payment.js.map +1 -1
- package/dist/esm/models/components/productcreate.d.ts +4 -4
- package/dist/esm/models/components/productcreate.d.ts.map +1 -1
- package/dist/esm/models/components/productcreate.js +8 -8
- package/dist/esm/models/components/productcreate.js.map +1 -1
- package/dist/esm/models/components/productprice.d.ts +12 -12
- package/dist/esm/models/components/productprice.d.ts.map +1 -1
- package/dist/esm/models/components/productprice.js +8 -8
- package/dist/esm/models/components/productprice.js.map +1 -1
- package/dist/esm/models/components/productupdate.d.ts +4 -4
- package/dist/esm/models/components/productupdate.d.ts.map +1 -1
- package/dist/esm/models/components/productupdate.js +12 -12
- package/dist/esm/models/components/productupdate.js.map +1 -1
- package/dist/esm/models/components/subscription.d.ts +4 -4
- package/dist/esm/models/components/subscription.d.ts.map +1 -1
- package/dist/esm/models/components/subscription.js +8 -8
- package/dist/esm/models/components/subscription.js.map +1 -1
- package/dist/esm/models/components/subscriptionupdate.d.ts +2 -2
- package/dist/esm/models/components/subscriptionupdate.d.ts.map +1 -1
- package/dist/esm/models/components/subscriptionupdate.js +2 -2
- package/dist/esm/models/components/subscriptionupdate.js.map +1 -1
- package/dist/esm/models/operations/customerportalcustomersaddpaymentmethod.d.ts +2 -2
- package/dist/esm/models/operations/customerportalcustomersaddpaymentmethod.d.ts.map +1 -1
- package/dist/esm/models/operations/customerportalcustomersaddpaymentmethod.js +2 -2
- package/dist/esm/models/operations/customerportalcustomersaddpaymentmethod.js.map +1 -1
- package/dist/esm/models/operations/filesupdate.d.ts +6 -6
- package/dist/esm/models/operations/filesupdate.d.ts.map +1 -1
- package/dist/esm/models/operations/filesupdate.js +6 -6
- package/dist/esm/models/operations/filesupdate.js.map +1 -1
- package/dist/esm/models/operations/filesuploaded.d.ts +6 -6
- package/dist/esm/models/operations/filesuploaded.d.ts.map +1 -1
- package/dist/esm/models/operations/filesuploaded.js +6 -6
- package/dist/esm/models/operations/filesuploaded.js.map +1 -1
- package/dist/esm/models/operations/oauth2authorize.d.ts +6 -6
- package/dist/esm/models/operations/oauth2authorize.d.ts.map +1 -1
- package/dist/esm/models/operations/oauth2authorize.js +4 -4
- package/dist/esm/models/operations/oauth2authorize.js.map +1 -1
- package/dist/esm/models/operations/oauth2requesttoken.d.ts +2 -2
- package/dist/esm/models/operations/oauth2requesttoken.d.ts.map +1 -1
- package/dist/esm/models/operations/oauth2requesttoken.js +2 -2
- package/dist/esm/models/operations/oauth2requesttoken.js.map +1 -1
- package/dist/esm/models/operations/oauth2userinfo.d.ts +2 -2
- package/dist/esm/models/operations/oauth2userinfo.d.ts.map +1 -1
- package/dist/esm/models/operations/oauth2userinfo.js +2 -2
- package/dist/esm/models/operations/oauth2userinfo.js.map +1 -1
- package/docs/sdks/customersessions/README.md +2 -2
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/benefitgrant.ts +24 -24
- package/src/models/components/benefitgrantwebhook.ts +48 -48
- package/src/models/components/checkout.ts +34 -25
- package/src/models/components/checkoutcreate.ts +6 -6
- package/src/models/components/checkoutlink.ts +16 -16
- package/src/models/components/checkoutpublic.ts +25 -25
- package/src/models/components/checkoutpublicconfirmed.ts +25 -25
- package/src/models/components/customerbenefitgrantupdate.ts +29 -29
- package/src/models/components/customersessioncustomerexternalidcreate.ts +6 -6
- package/src/models/components/customerstatebenefitgrant.ts +85 -24
- package/src/models/components/discount.ts +8 -8
- package/src/models/components/discountcreate.ts +12 -12
- package/src/models/components/filter.ts +8 -8
- package/src/models/components/legacyrecurringproductprice.ts +12 -12
- package/src/models/components/listresourcefileread.ts +26 -26
- package/src/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.ts +9 -9
- package/src/models/components/meter.ts +42 -42
- package/src/models/components/metercreate.ts +44 -44
- package/src/models/components/meterupdate.ts +40 -40
- package/src/models/components/order.ts +16 -16
- package/src/models/components/payment.ts +4 -4
- package/src/models/components/productcreate.ts +16 -16
- package/src/models/components/productprice.ts +22 -22
- package/src/models/components/productupdate.ts +24 -24
- package/src/models/components/subscription.ts +16 -16
- package/src/models/components/subscriptionupdate.ts +4 -4
- package/src/models/operations/customerportalcustomersaddpaymentmethod.ts +6 -6
- package/src/models/operations/filesupdate.ts +14 -14
- package/src/models/operations/filesuploaded.ts +14 -14
- package/src/models/operations/oauth2authorize.ts +12 -12
- package/src/models/operations/oauth2requesttoken.ts +6 -6
- package/src/models/operations/oauth2userinfo.ts +6 -6
|
@@ -57,18 +57,18 @@ import {
|
|
|
57
57
|
} from "./customer.js";
|
|
58
58
|
|
|
59
59
|
export type BenefitGrantWebhookProperties =
|
|
60
|
-
|
|
|
61
|
-
| BenefitGrantGitHubRepositoryProperties
|
|
60
|
+
| BenefitGrantCustomProperties
|
|
62
61
|
| BenefitGrantDownloadablesProperties
|
|
63
62
|
| BenefitGrantLicenseKeysProperties
|
|
64
|
-
|
|
|
63
|
+
| BenefitGrantDiscordProperties
|
|
64
|
+
| BenefitGrantGitHubRepositoryProperties;
|
|
65
65
|
|
|
66
66
|
export type PreviousProperties =
|
|
67
|
-
|
|
|
68
|
-
| BenefitGrantGitHubRepositoryProperties
|
|
67
|
+
| BenefitGrantCustomProperties
|
|
69
68
|
| BenefitGrantDownloadablesProperties
|
|
70
69
|
| BenefitGrantLicenseKeysProperties
|
|
71
|
-
|
|
|
70
|
+
| BenefitGrantDiscordProperties
|
|
71
|
+
| BenefitGrantGitHubRepositoryProperties;
|
|
72
72
|
|
|
73
73
|
export type BenefitGrantWebhook = {
|
|
74
74
|
/**
|
|
@@ -124,18 +124,18 @@ export type BenefitGrantWebhook = {
|
|
|
124
124
|
*/
|
|
125
125
|
customer: Customer;
|
|
126
126
|
properties:
|
|
127
|
-
|
|
|
128
|
-
| BenefitGrantGitHubRepositoryProperties
|
|
127
|
+
| BenefitGrantCustomProperties
|
|
129
128
|
| BenefitGrantDownloadablesProperties
|
|
130
129
|
| BenefitGrantLicenseKeysProperties
|
|
131
|
-
|
|
|
130
|
+
| BenefitGrantDiscordProperties
|
|
131
|
+
| BenefitGrantGitHubRepositoryProperties;
|
|
132
132
|
benefit: Benefit;
|
|
133
133
|
previousProperties?:
|
|
134
|
-
|
|
|
135
|
-
| BenefitGrantGitHubRepositoryProperties
|
|
134
|
+
| BenefitGrantCustomProperties
|
|
136
135
|
| BenefitGrantDownloadablesProperties
|
|
137
136
|
| BenefitGrantLicenseKeysProperties
|
|
138
|
-
|
|
|
137
|
+
| BenefitGrantDiscordProperties
|
|
138
|
+
| BenefitGrantGitHubRepositoryProperties
|
|
139
139
|
| null
|
|
140
140
|
| undefined;
|
|
141
141
|
};
|
|
@@ -146,20 +146,20 @@ export const BenefitGrantWebhookProperties$inboundSchema: z.ZodType<
|
|
|
146
146
|
z.ZodTypeDef,
|
|
147
147
|
unknown
|
|
148
148
|
> = z.union([
|
|
149
|
-
|
|
150
|
-
BenefitGrantGitHubRepositoryProperties$inboundSchema,
|
|
149
|
+
BenefitGrantCustomProperties$inboundSchema,
|
|
151
150
|
BenefitGrantDownloadablesProperties$inboundSchema,
|
|
152
151
|
BenefitGrantLicenseKeysProperties$inboundSchema,
|
|
153
|
-
|
|
152
|
+
BenefitGrantDiscordProperties$inboundSchema,
|
|
153
|
+
BenefitGrantGitHubRepositoryProperties$inboundSchema,
|
|
154
154
|
]);
|
|
155
155
|
|
|
156
156
|
/** @internal */
|
|
157
157
|
export type BenefitGrantWebhookProperties$Outbound =
|
|
158
|
-
|
|
|
159
|
-
| BenefitGrantGitHubRepositoryProperties$Outbound
|
|
158
|
+
| BenefitGrantCustomProperties$Outbound
|
|
160
159
|
| BenefitGrantDownloadablesProperties$Outbound
|
|
161
160
|
| BenefitGrantLicenseKeysProperties$Outbound
|
|
162
|
-
|
|
|
161
|
+
| BenefitGrantDiscordProperties$Outbound
|
|
162
|
+
| BenefitGrantGitHubRepositoryProperties$Outbound;
|
|
163
163
|
|
|
164
164
|
/** @internal */
|
|
165
165
|
export const BenefitGrantWebhookProperties$outboundSchema: z.ZodType<
|
|
@@ -167,11 +167,11 @@ export const BenefitGrantWebhookProperties$outboundSchema: z.ZodType<
|
|
|
167
167
|
z.ZodTypeDef,
|
|
168
168
|
BenefitGrantWebhookProperties
|
|
169
169
|
> = z.union([
|
|
170
|
-
|
|
171
|
-
BenefitGrantGitHubRepositoryProperties$outboundSchema,
|
|
170
|
+
BenefitGrantCustomProperties$outboundSchema,
|
|
172
171
|
BenefitGrantDownloadablesProperties$outboundSchema,
|
|
173
172
|
BenefitGrantLicenseKeysProperties$outboundSchema,
|
|
174
|
-
|
|
173
|
+
BenefitGrantDiscordProperties$outboundSchema,
|
|
174
|
+
BenefitGrantGitHubRepositoryProperties$outboundSchema,
|
|
175
175
|
]);
|
|
176
176
|
|
|
177
177
|
/**
|
|
@@ -213,20 +213,20 @@ export const PreviousProperties$inboundSchema: z.ZodType<
|
|
|
213
213
|
z.ZodTypeDef,
|
|
214
214
|
unknown
|
|
215
215
|
> = z.union([
|
|
216
|
-
|
|
217
|
-
BenefitGrantGitHubRepositoryProperties$inboundSchema,
|
|
216
|
+
BenefitGrantCustomProperties$inboundSchema,
|
|
218
217
|
BenefitGrantDownloadablesProperties$inboundSchema,
|
|
219
218
|
BenefitGrantLicenseKeysProperties$inboundSchema,
|
|
220
|
-
|
|
219
|
+
BenefitGrantDiscordProperties$inboundSchema,
|
|
220
|
+
BenefitGrantGitHubRepositoryProperties$inboundSchema,
|
|
221
221
|
]);
|
|
222
222
|
|
|
223
223
|
/** @internal */
|
|
224
224
|
export type PreviousProperties$Outbound =
|
|
225
|
-
|
|
|
226
|
-
| BenefitGrantGitHubRepositoryProperties$Outbound
|
|
225
|
+
| BenefitGrantCustomProperties$Outbound
|
|
227
226
|
| BenefitGrantDownloadablesProperties$Outbound
|
|
228
227
|
| BenefitGrantLicenseKeysProperties$Outbound
|
|
229
|
-
|
|
|
228
|
+
| BenefitGrantDiscordProperties$Outbound
|
|
229
|
+
| BenefitGrantGitHubRepositoryProperties$Outbound;
|
|
230
230
|
|
|
231
231
|
/** @internal */
|
|
232
232
|
export const PreviousProperties$outboundSchema: z.ZodType<
|
|
@@ -234,11 +234,11 @@ export const PreviousProperties$outboundSchema: z.ZodType<
|
|
|
234
234
|
z.ZodTypeDef,
|
|
235
235
|
PreviousProperties
|
|
236
236
|
> = z.union([
|
|
237
|
-
|
|
238
|
-
BenefitGrantGitHubRepositoryProperties$outboundSchema,
|
|
237
|
+
BenefitGrantCustomProperties$outboundSchema,
|
|
239
238
|
BenefitGrantDownloadablesProperties$outboundSchema,
|
|
240
239
|
BenefitGrantLicenseKeysProperties$outboundSchema,
|
|
241
|
-
|
|
240
|
+
BenefitGrantDiscordProperties$outboundSchema,
|
|
241
|
+
BenefitGrantGitHubRepositoryProperties$outboundSchema,
|
|
242
242
|
]);
|
|
243
243
|
|
|
244
244
|
/**
|
|
@@ -298,20 +298,20 @@ export const BenefitGrantWebhook$inboundSchema: z.ZodType<
|
|
|
298
298
|
error: z.nullable(BenefitGrantError$inboundSchema).optional(),
|
|
299
299
|
customer: Customer$inboundSchema,
|
|
300
300
|
properties: z.union([
|
|
301
|
-
|
|
302
|
-
BenefitGrantGitHubRepositoryProperties$inboundSchema,
|
|
301
|
+
BenefitGrantCustomProperties$inboundSchema,
|
|
303
302
|
BenefitGrantDownloadablesProperties$inboundSchema,
|
|
304
303
|
BenefitGrantLicenseKeysProperties$inboundSchema,
|
|
305
|
-
|
|
304
|
+
BenefitGrantDiscordProperties$inboundSchema,
|
|
305
|
+
BenefitGrantGitHubRepositoryProperties$inboundSchema,
|
|
306
306
|
]),
|
|
307
307
|
benefit: Benefit$inboundSchema,
|
|
308
308
|
previous_properties: z.nullable(
|
|
309
309
|
z.union([
|
|
310
|
-
|
|
311
|
-
BenefitGrantGitHubRepositoryProperties$inboundSchema,
|
|
310
|
+
BenefitGrantCustomProperties$inboundSchema,
|
|
312
311
|
BenefitGrantDownloadablesProperties$inboundSchema,
|
|
313
312
|
BenefitGrantLicenseKeysProperties$inboundSchema,
|
|
314
|
-
|
|
313
|
+
BenefitGrantDiscordProperties$inboundSchema,
|
|
314
|
+
BenefitGrantGitHubRepositoryProperties$inboundSchema,
|
|
315
315
|
]),
|
|
316
316
|
).optional(),
|
|
317
317
|
}).transform((v) => {
|
|
@@ -346,18 +346,18 @@ export type BenefitGrantWebhook$Outbound = {
|
|
|
346
346
|
error?: BenefitGrantError$Outbound | null | undefined;
|
|
347
347
|
customer: Customer$Outbound;
|
|
348
348
|
properties:
|
|
349
|
-
|
|
|
350
|
-
| BenefitGrantGitHubRepositoryProperties$Outbound
|
|
349
|
+
| BenefitGrantCustomProperties$Outbound
|
|
351
350
|
| BenefitGrantDownloadablesProperties$Outbound
|
|
352
351
|
| BenefitGrantLicenseKeysProperties$Outbound
|
|
353
|
-
|
|
|
352
|
+
| BenefitGrantDiscordProperties$Outbound
|
|
353
|
+
| BenefitGrantGitHubRepositoryProperties$Outbound;
|
|
354
354
|
benefit: Benefit$Outbound;
|
|
355
355
|
previous_properties?:
|
|
356
|
-
|
|
|
357
|
-
| BenefitGrantGitHubRepositoryProperties$Outbound
|
|
356
|
+
| BenefitGrantCustomProperties$Outbound
|
|
358
357
|
| BenefitGrantDownloadablesProperties$Outbound
|
|
359
358
|
| BenefitGrantLicenseKeysProperties$Outbound
|
|
360
|
-
|
|
|
359
|
+
| BenefitGrantDiscordProperties$Outbound
|
|
360
|
+
| BenefitGrantGitHubRepositoryProperties$Outbound
|
|
361
361
|
| null
|
|
362
362
|
| undefined;
|
|
363
363
|
};
|
|
@@ -382,20 +382,20 @@ export const BenefitGrantWebhook$outboundSchema: z.ZodType<
|
|
|
382
382
|
error: z.nullable(BenefitGrantError$outboundSchema).optional(),
|
|
383
383
|
customer: Customer$outboundSchema,
|
|
384
384
|
properties: z.union([
|
|
385
|
-
|
|
386
|
-
BenefitGrantGitHubRepositoryProperties$outboundSchema,
|
|
385
|
+
BenefitGrantCustomProperties$outboundSchema,
|
|
387
386
|
BenefitGrantDownloadablesProperties$outboundSchema,
|
|
388
387
|
BenefitGrantLicenseKeysProperties$outboundSchema,
|
|
389
|
-
|
|
388
|
+
BenefitGrantDiscordProperties$outboundSchema,
|
|
389
|
+
BenefitGrantGitHubRepositoryProperties$outboundSchema,
|
|
390
390
|
]),
|
|
391
391
|
benefit: Benefit$outboundSchema,
|
|
392
392
|
previousProperties: z.nullable(
|
|
393
393
|
z.union([
|
|
394
|
-
|
|
395
|
-
BenefitGrantGitHubRepositoryProperties$outboundSchema,
|
|
394
|
+
BenefitGrantCustomProperties$outboundSchema,
|
|
396
395
|
BenefitGrantDownloadablesProperties$outboundSchema,
|
|
397
396
|
BenefitGrantLicenseKeysProperties$outboundSchema,
|
|
398
|
-
|
|
397
|
+
BenefitGrantDiscordProperties$outboundSchema,
|
|
398
|
+
BenefitGrantGitHubRepositoryProperties$outboundSchema,
|
|
399
399
|
]),
|
|
400
400
|
).optional(),
|
|
401
401
|
}).transform((v) => {
|
|
@@ -88,10 +88,10 @@ export type CheckoutMetadata = string | number | number | boolean;
|
|
|
88
88
|
export type CheckoutProductPrice = LegacyRecurringProductPrice | ProductPrice;
|
|
89
89
|
|
|
90
90
|
export type CheckoutDiscount =
|
|
91
|
-
|
|
|
91
|
+
| CheckoutDiscountPercentageOnceForeverDuration
|
|
92
92
|
| CheckoutDiscountFixedOnceForeverDuration
|
|
93
93
|
| CheckoutDiscountPercentageRepeatDuration
|
|
94
|
-
|
|
|
94
|
+
| CheckoutDiscountFixedRepeatDuration;
|
|
95
95
|
|
|
96
96
|
export type CustomerMetadata = string | number | boolean;
|
|
97
97
|
|
|
@@ -221,10 +221,15 @@ export type Checkout = {
|
|
|
221
221
|
customerBillingAddress: Address | null;
|
|
222
222
|
customerTaxId: string | null;
|
|
223
223
|
paymentProcessorMetadata: { [k: string]: string };
|
|
224
|
+
customerBillingAddressFields: CheckoutCustomerBillingAddressFields;
|
|
224
225
|
metadata: { [k: string]: string | number | number | boolean };
|
|
225
226
|
/**
|
|
226
227
|
* ID of the customer in your system. If a matching customer exists on Polar, the resulting order will be linked to this customer. Otherwise, a new customer will be created with this external ID set.
|
|
227
228
|
*/
|
|
229
|
+
externalCustomerId: string | null;
|
|
230
|
+
/**
|
|
231
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
232
|
+
*/
|
|
228
233
|
customerExternalId: string | null;
|
|
229
234
|
/**
|
|
230
235
|
* List of products available to select.
|
|
@@ -239,15 +244,14 @@ export type Checkout = {
|
|
|
239
244
|
*/
|
|
240
245
|
productPrice: LegacyRecurringProductPrice | ProductPrice;
|
|
241
246
|
discount:
|
|
242
|
-
|
|
|
247
|
+
| CheckoutDiscountPercentageOnceForeverDuration
|
|
243
248
|
| CheckoutDiscountFixedOnceForeverDuration
|
|
244
249
|
| CheckoutDiscountPercentageRepeatDuration
|
|
245
|
-
|
|
|
250
|
+
| CheckoutDiscountFixedRepeatDuration
|
|
246
251
|
| null;
|
|
247
252
|
subscriptionId: string | null;
|
|
248
253
|
attachedCustomFields: Array<AttachedCustomField>;
|
|
249
254
|
customerMetadata: { [k: string]: string | number | boolean };
|
|
250
|
-
customerBillingAddressFields: CheckoutCustomerBillingAddressFields;
|
|
251
255
|
};
|
|
252
256
|
|
|
253
257
|
/** @internal */
|
|
@@ -422,18 +426,18 @@ export const CheckoutDiscount$inboundSchema: z.ZodType<
|
|
|
422
426
|
z.ZodTypeDef,
|
|
423
427
|
unknown
|
|
424
428
|
> = z.union([
|
|
425
|
-
|
|
429
|
+
CheckoutDiscountPercentageOnceForeverDuration$inboundSchema,
|
|
426
430
|
CheckoutDiscountFixedOnceForeverDuration$inboundSchema,
|
|
427
431
|
CheckoutDiscountPercentageRepeatDuration$inboundSchema,
|
|
428
|
-
|
|
432
|
+
CheckoutDiscountFixedRepeatDuration$inboundSchema,
|
|
429
433
|
]);
|
|
430
434
|
|
|
431
435
|
/** @internal */
|
|
432
436
|
export type CheckoutDiscount$Outbound =
|
|
433
|
-
|
|
|
437
|
+
| CheckoutDiscountPercentageOnceForeverDuration$Outbound
|
|
434
438
|
| CheckoutDiscountFixedOnceForeverDuration$Outbound
|
|
435
439
|
| CheckoutDiscountPercentageRepeatDuration$Outbound
|
|
436
|
-
|
|
|
440
|
+
| CheckoutDiscountFixedRepeatDuration$Outbound;
|
|
437
441
|
|
|
438
442
|
/** @internal */
|
|
439
443
|
export const CheckoutDiscount$outboundSchema: z.ZodType<
|
|
@@ -441,10 +445,10 @@ export const CheckoutDiscount$outboundSchema: z.ZodType<
|
|
|
441
445
|
z.ZodTypeDef,
|
|
442
446
|
CheckoutDiscount
|
|
443
447
|
> = z.union([
|
|
444
|
-
|
|
448
|
+
CheckoutDiscountPercentageOnceForeverDuration$outboundSchema,
|
|
445
449
|
CheckoutDiscountFixedOnceForeverDuration$outboundSchema,
|
|
446
450
|
CheckoutDiscountPercentageRepeatDuration$outboundSchema,
|
|
447
|
-
|
|
451
|
+
CheckoutDiscountFixedRepeatDuration$outboundSchema,
|
|
448
452
|
]);
|
|
449
453
|
|
|
450
454
|
/**
|
|
@@ -579,9 +583,12 @@ export const Checkout$inboundSchema: z.ZodType<
|
|
|
579
583
|
customer_billing_address: z.nullable(Address$inboundSchema),
|
|
580
584
|
customer_tax_id: z.nullable(z.string()),
|
|
581
585
|
payment_processor_metadata: z.record(z.string()),
|
|
586
|
+
customer_billing_address_fields:
|
|
587
|
+
CheckoutCustomerBillingAddressFields$inboundSchema,
|
|
582
588
|
metadata: z.record(
|
|
583
589
|
z.union([z.string(), z.number().int(), z.number(), z.boolean()]),
|
|
584
590
|
),
|
|
591
|
+
external_customer_id: z.nullable(z.string()),
|
|
585
592
|
customer_external_id: z.nullable(z.string()),
|
|
586
593
|
products: z.array(CheckoutProduct$inboundSchema),
|
|
587
594
|
product: CheckoutProduct$inboundSchema,
|
|
@@ -591,10 +598,10 @@ export const Checkout$inboundSchema: z.ZodType<
|
|
|
591
598
|
]),
|
|
592
599
|
discount: z.nullable(
|
|
593
600
|
z.union([
|
|
594
|
-
|
|
601
|
+
CheckoutDiscountPercentageOnceForeverDuration$inboundSchema,
|
|
595
602
|
CheckoutDiscountFixedOnceForeverDuration$inboundSchema,
|
|
596
603
|
CheckoutDiscountPercentageRepeatDuration$inboundSchema,
|
|
597
|
-
|
|
604
|
+
CheckoutDiscountFixedRepeatDuration$inboundSchema,
|
|
598
605
|
]),
|
|
599
606
|
),
|
|
600
607
|
subscription_id: z.nullable(z.string()),
|
|
@@ -602,8 +609,6 @@ export const Checkout$inboundSchema: z.ZodType<
|
|
|
602
609
|
customer_metadata: z.record(
|
|
603
610
|
z.union([z.string(), z.number().int(), z.boolean()]),
|
|
604
611
|
),
|
|
605
|
-
customer_billing_address_fields:
|
|
606
|
-
CheckoutCustomerBillingAddressFields$inboundSchema,
|
|
607
612
|
}).transform((v) => {
|
|
608
613
|
return remap$(v, {
|
|
609
614
|
"created_at": "createdAt",
|
|
@@ -637,12 +642,13 @@ export const Checkout$inboundSchema: z.ZodType<
|
|
|
637
642
|
"customer_billing_address": "customerBillingAddress",
|
|
638
643
|
"customer_tax_id": "customerTaxId",
|
|
639
644
|
"payment_processor_metadata": "paymentProcessorMetadata",
|
|
645
|
+
"customer_billing_address_fields": "customerBillingAddressFields",
|
|
646
|
+
"external_customer_id": "externalCustomerId",
|
|
640
647
|
"customer_external_id": "customerExternalId",
|
|
641
648
|
"product_price": "productPrice",
|
|
642
649
|
"subscription_id": "subscriptionId",
|
|
643
650
|
"attached_custom_fields": "attachedCustomFields",
|
|
644
651
|
"customer_metadata": "customerMetadata",
|
|
645
|
-
"customer_billing_address_fields": "customerBillingAddressFields",
|
|
646
652
|
});
|
|
647
653
|
});
|
|
648
654
|
|
|
@@ -686,22 +692,23 @@ export type Checkout$Outbound = {
|
|
|
686
692
|
customer_billing_address: Address$Outbound | null;
|
|
687
693
|
customer_tax_id: string | null;
|
|
688
694
|
payment_processor_metadata: { [k: string]: string };
|
|
695
|
+
customer_billing_address_fields:
|
|
696
|
+
CheckoutCustomerBillingAddressFields$Outbound;
|
|
689
697
|
metadata: { [k: string]: string | number | number | boolean };
|
|
698
|
+
external_customer_id: string | null;
|
|
690
699
|
customer_external_id: string | null;
|
|
691
700
|
products: Array<CheckoutProduct$Outbound>;
|
|
692
701
|
product: CheckoutProduct$Outbound;
|
|
693
702
|
product_price: LegacyRecurringProductPrice$Outbound | ProductPrice$Outbound;
|
|
694
703
|
discount:
|
|
695
|
-
|
|
|
704
|
+
| CheckoutDiscountPercentageOnceForeverDuration$Outbound
|
|
696
705
|
| CheckoutDiscountFixedOnceForeverDuration$Outbound
|
|
697
706
|
| CheckoutDiscountPercentageRepeatDuration$Outbound
|
|
698
|
-
|
|
|
707
|
+
| CheckoutDiscountFixedRepeatDuration$Outbound
|
|
699
708
|
| null;
|
|
700
709
|
subscription_id: string | null;
|
|
701
710
|
attached_custom_fields: Array<AttachedCustomField$Outbound>;
|
|
702
711
|
customer_metadata: { [k: string]: string | number | boolean };
|
|
703
|
-
customer_billing_address_fields:
|
|
704
|
-
CheckoutCustomerBillingAddressFields$Outbound;
|
|
705
712
|
};
|
|
706
713
|
|
|
707
714
|
/** @internal */
|
|
@@ -755,9 +762,12 @@ export const Checkout$outboundSchema: z.ZodType<
|
|
|
755
762
|
customerBillingAddress: z.nullable(Address$outboundSchema),
|
|
756
763
|
customerTaxId: z.nullable(z.string()),
|
|
757
764
|
paymentProcessorMetadata: z.record(z.string()),
|
|
765
|
+
customerBillingAddressFields:
|
|
766
|
+
CheckoutCustomerBillingAddressFields$outboundSchema,
|
|
758
767
|
metadata: z.record(
|
|
759
768
|
z.union([z.string(), z.number().int(), z.number(), z.boolean()]),
|
|
760
769
|
),
|
|
770
|
+
externalCustomerId: z.nullable(z.string()),
|
|
761
771
|
customerExternalId: z.nullable(z.string()),
|
|
762
772
|
products: z.array(CheckoutProduct$outboundSchema),
|
|
763
773
|
product: CheckoutProduct$outboundSchema,
|
|
@@ -767,10 +777,10 @@ export const Checkout$outboundSchema: z.ZodType<
|
|
|
767
777
|
]),
|
|
768
778
|
discount: z.nullable(
|
|
769
779
|
z.union([
|
|
770
|
-
|
|
780
|
+
CheckoutDiscountPercentageOnceForeverDuration$outboundSchema,
|
|
771
781
|
CheckoutDiscountFixedOnceForeverDuration$outboundSchema,
|
|
772
782
|
CheckoutDiscountPercentageRepeatDuration$outboundSchema,
|
|
773
|
-
|
|
783
|
+
CheckoutDiscountFixedRepeatDuration$outboundSchema,
|
|
774
784
|
]),
|
|
775
785
|
),
|
|
776
786
|
subscriptionId: z.nullable(z.string()),
|
|
@@ -778,8 +788,6 @@ export const Checkout$outboundSchema: z.ZodType<
|
|
|
778
788
|
customerMetadata: z.record(
|
|
779
789
|
z.union([z.string(), z.number().int(), z.boolean()]),
|
|
780
790
|
),
|
|
781
|
-
customerBillingAddressFields:
|
|
782
|
-
CheckoutCustomerBillingAddressFields$outboundSchema,
|
|
783
791
|
}).transform((v) => {
|
|
784
792
|
return remap$(v, {
|
|
785
793
|
createdAt: "created_at",
|
|
@@ -813,12 +821,13 @@ export const Checkout$outboundSchema: z.ZodType<
|
|
|
813
821
|
customerBillingAddress: "customer_billing_address",
|
|
814
822
|
customerTaxId: "customer_tax_id",
|
|
815
823
|
paymentProcessorMetadata: "payment_processor_metadata",
|
|
824
|
+
customerBillingAddressFields: "customer_billing_address_fields",
|
|
825
|
+
externalCustomerId: "external_customer_id",
|
|
816
826
|
customerExternalId: "customer_external_id",
|
|
817
827
|
productPrice: "product_price",
|
|
818
828
|
subscriptionId: "subscription_id",
|
|
819
829
|
attachedCustomFields: "attached_custom_fields",
|
|
820
830
|
customerMetadata: "customer_metadata",
|
|
821
|
-
customerBillingAddressFields: "customer_billing_address_fields",
|
|
822
831
|
});
|
|
823
832
|
});
|
|
824
833
|
|
|
@@ -76,7 +76,7 @@ export type CheckoutCreate = {
|
|
|
76
76
|
/**
|
|
77
77
|
* ID of the customer in your system. If a matching customer exists on Polar, the resulting order will be linked to this customer. Otherwise, a new customer will be created with this external ID set.
|
|
78
78
|
*/
|
|
79
|
-
|
|
79
|
+
externalCustomerId?: string | null | undefined;
|
|
80
80
|
customerName?: string | null | undefined;
|
|
81
81
|
customerEmail?: string | null | undefined;
|
|
82
82
|
customerIpAddress?: string | null | undefined;
|
|
@@ -314,7 +314,7 @@ export const CheckoutCreate$inboundSchema: z.ZodType<
|
|
|
314
314
|
amount: z.nullable(z.number().int()).optional(),
|
|
315
315
|
customer_id: z.nullable(z.string()).optional(),
|
|
316
316
|
is_business_customer: z.boolean().default(false),
|
|
317
|
-
|
|
317
|
+
external_customer_id: z.nullable(z.string()).optional(),
|
|
318
318
|
customer_name: z.nullable(z.string()).optional(),
|
|
319
319
|
customer_email: z.nullable(z.string()).optional(),
|
|
320
320
|
customer_ip_address: z.nullable(z.string()).optional(),
|
|
@@ -336,7 +336,7 @@ export const CheckoutCreate$inboundSchema: z.ZodType<
|
|
|
336
336
|
"require_billing_address": "requireBillingAddress",
|
|
337
337
|
"customer_id": "customerId",
|
|
338
338
|
"is_business_customer": "isBusinessCustomer",
|
|
339
|
-
"
|
|
339
|
+
"external_customer_id": "externalCustomerId",
|
|
340
340
|
"customer_name": "customerName",
|
|
341
341
|
"customer_email": "customerEmail",
|
|
342
342
|
"customer_ip_address": "customerIpAddress",
|
|
@@ -362,7 +362,7 @@ export type CheckoutCreate$Outbound = {
|
|
|
362
362
|
amount?: number | null | undefined;
|
|
363
363
|
customer_id?: string | null | undefined;
|
|
364
364
|
is_business_customer: boolean;
|
|
365
|
-
|
|
365
|
+
external_customer_id?: string | null | undefined;
|
|
366
366
|
customer_name?: string | null | undefined;
|
|
367
367
|
customer_email?: string | null | undefined;
|
|
368
368
|
customer_ip_address?: string | null | undefined;
|
|
@@ -403,7 +403,7 @@ export const CheckoutCreate$outboundSchema: z.ZodType<
|
|
|
403
403
|
amount: z.nullable(z.number().int()).optional(),
|
|
404
404
|
customerId: z.nullable(z.string()).optional(),
|
|
405
405
|
isBusinessCustomer: z.boolean().default(false),
|
|
406
|
-
|
|
406
|
+
externalCustomerId: z.nullable(z.string()).optional(),
|
|
407
407
|
customerName: z.nullable(z.string()).optional(),
|
|
408
408
|
customerEmail: z.nullable(z.string()).optional(),
|
|
409
409
|
customerIpAddress: z.nullable(z.string()).optional(),
|
|
@@ -425,7 +425,7 @@ export const CheckoutCreate$outboundSchema: z.ZodType<
|
|
|
425
425
|
requireBillingAddress: "require_billing_address",
|
|
426
426
|
customerId: "customer_id",
|
|
427
427
|
isBusinessCustomer: "is_business_customer",
|
|
428
|
-
|
|
428
|
+
externalCustomerId: "external_customer_id",
|
|
429
429
|
customerName: "customer_name",
|
|
430
430
|
customerEmail: "customer_email",
|
|
431
431
|
customerIpAddress: "customer_ip_address",
|
|
@@ -46,10 +46,10 @@ import {
|
|
|
46
46
|
export type CheckoutLinkMetadata = string | number | number | boolean;
|
|
47
47
|
|
|
48
48
|
export type CheckoutLinkDiscount =
|
|
49
|
-
|
|
|
49
|
+
| DiscountPercentageOnceForeverDurationBase
|
|
50
50
|
| DiscountFixedOnceForeverDurationBase
|
|
51
51
|
| DiscountPercentageRepeatDurationBase
|
|
52
|
-
|
|
|
52
|
+
| DiscountFixedRepeatDurationBase;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* Checkout link data.
|
|
@@ -99,10 +99,10 @@ export type CheckoutLink = {
|
|
|
99
99
|
organizationId: string;
|
|
100
100
|
products: Array<CheckoutLinkProduct>;
|
|
101
101
|
discount:
|
|
102
|
-
|
|
|
102
|
+
| DiscountPercentageOnceForeverDurationBase
|
|
103
103
|
| DiscountFixedOnceForeverDurationBase
|
|
104
104
|
| DiscountPercentageRepeatDurationBase
|
|
105
|
-
|
|
|
105
|
+
| DiscountFixedRepeatDurationBase
|
|
106
106
|
| null;
|
|
107
107
|
url: string;
|
|
108
108
|
};
|
|
@@ -161,18 +161,18 @@ export const CheckoutLinkDiscount$inboundSchema: z.ZodType<
|
|
|
161
161
|
z.ZodTypeDef,
|
|
162
162
|
unknown
|
|
163
163
|
> = z.union([
|
|
164
|
-
|
|
164
|
+
DiscountPercentageOnceForeverDurationBase$inboundSchema,
|
|
165
165
|
DiscountFixedOnceForeverDurationBase$inboundSchema,
|
|
166
166
|
DiscountPercentageRepeatDurationBase$inboundSchema,
|
|
167
|
-
|
|
167
|
+
DiscountFixedRepeatDurationBase$inboundSchema,
|
|
168
168
|
]);
|
|
169
169
|
|
|
170
170
|
/** @internal */
|
|
171
171
|
export type CheckoutLinkDiscount$Outbound =
|
|
172
|
-
|
|
|
172
|
+
| DiscountPercentageOnceForeverDurationBase$Outbound
|
|
173
173
|
| DiscountFixedOnceForeverDurationBase$Outbound
|
|
174
174
|
| DiscountPercentageRepeatDurationBase$Outbound
|
|
175
|
-
|
|
|
175
|
+
| DiscountFixedRepeatDurationBase$Outbound;
|
|
176
176
|
|
|
177
177
|
/** @internal */
|
|
178
178
|
export const CheckoutLinkDiscount$outboundSchema: z.ZodType<
|
|
@@ -180,10 +180,10 @@ export const CheckoutLinkDiscount$outboundSchema: z.ZodType<
|
|
|
180
180
|
z.ZodTypeDef,
|
|
181
181
|
CheckoutLinkDiscount
|
|
182
182
|
> = z.union([
|
|
183
|
-
|
|
183
|
+
DiscountPercentageOnceForeverDurationBase$outboundSchema,
|
|
184
184
|
DiscountFixedOnceForeverDurationBase$outboundSchema,
|
|
185
185
|
DiscountPercentageRepeatDurationBase$outboundSchema,
|
|
186
|
-
|
|
186
|
+
DiscountFixedRepeatDurationBase$outboundSchema,
|
|
187
187
|
]);
|
|
188
188
|
|
|
189
189
|
/**
|
|
@@ -242,10 +242,10 @@ export const CheckoutLink$inboundSchema: z.ZodType<
|
|
|
242
242
|
products: z.array(CheckoutLinkProduct$inboundSchema),
|
|
243
243
|
discount: z.nullable(
|
|
244
244
|
z.union([
|
|
245
|
-
|
|
245
|
+
DiscountPercentageOnceForeverDurationBase$inboundSchema,
|
|
246
246
|
DiscountFixedOnceForeverDurationBase$inboundSchema,
|
|
247
247
|
DiscountPercentageRepeatDurationBase$inboundSchema,
|
|
248
|
-
|
|
248
|
+
DiscountFixedRepeatDurationBase$inboundSchema,
|
|
249
249
|
]),
|
|
250
250
|
),
|
|
251
251
|
url: z.string(),
|
|
@@ -279,10 +279,10 @@ export type CheckoutLink$Outbound = {
|
|
|
279
279
|
organization_id: string;
|
|
280
280
|
products: Array<CheckoutLinkProduct$Outbound>;
|
|
281
281
|
discount:
|
|
282
|
-
|
|
|
282
|
+
| DiscountPercentageOnceForeverDurationBase$Outbound
|
|
283
283
|
| DiscountFixedOnceForeverDurationBase$Outbound
|
|
284
284
|
| DiscountPercentageRepeatDurationBase$Outbound
|
|
285
|
-
|
|
|
285
|
+
| DiscountFixedRepeatDurationBase$Outbound
|
|
286
286
|
| null;
|
|
287
287
|
url: string;
|
|
288
288
|
};
|
|
@@ -310,10 +310,10 @@ export const CheckoutLink$outboundSchema: z.ZodType<
|
|
|
310
310
|
products: z.array(CheckoutLinkProduct$outboundSchema),
|
|
311
311
|
discount: z.nullable(
|
|
312
312
|
z.union([
|
|
313
|
-
|
|
313
|
+
DiscountPercentageOnceForeverDurationBase$outboundSchema,
|
|
314
314
|
DiscountFixedOnceForeverDurationBase$outboundSchema,
|
|
315
315
|
DiscountPercentageRepeatDurationBase$outboundSchema,
|
|
316
|
-
|
|
316
|
+
DiscountFixedRepeatDurationBase$outboundSchema,
|
|
317
317
|
]),
|
|
318
318
|
),
|
|
319
319
|
url: z.string(),
|