@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
|
@@ -94,10 +94,10 @@ export type CheckoutPublicProductPrice =
|
|
|
94
94
|
| ProductPrice;
|
|
95
95
|
|
|
96
96
|
export type CheckoutPublicDiscount =
|
|
97
|
-
|
|
|
97
|
+
| CheckoutDiscountPercentageOnceForeverDuration
|
|
98
98
|
| CheckoutDiscountFixedOnceForeverDuration
|
|
99
99
|
| CheckoutDiscountPercentageRepeatDuration
|
|
100
|
-
|
|
|
100
|
+
| CheckoutDiscountFixedRepeatDuration;
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
103
|
* Checkout session data retrieved using the client secret.
|
|
@@ -225,6 +225,7 @@ export type CheckoutPublic = {
|
|
|
225
225
|
customerBillingAddress: Address | null;
|
|
226
226
|
customerTaxId: string | null;
|
|
227
227
|
paymentProcessorMetadata: { [k: string]: string };
|
|
228
|
+
customerBillingAddressFields: CheckoutCustomerBillingAddressFields;
|
|
228
229
|
/**
|
|
229
230
|
* List of products available to select.
|
|
230
231
|
*/
|
|
@@ -238,14 +239,13 @@ export type CheckoutPublic = {
|
|
|
238
239
|
*/
|
|
239
240
|
productPrice: LegacyRecurringProductPrice | ProductPrice;
|
|
240
241
|
discount:
|
|
241
|
-
|
|
|
242
|
+
| CheckoutDiscountPercentageOnceForeverDuration
|
|
242
243
|
| CheckoutDiscountFixedOnceForeverDuration
|
|
243
244
|
| CheckoutDiscountPercentageRepeatDuration
|
|
244
|
-
|
|
|
245
|
+
| CheckoutDiscountFixedRepeatDuration
|
|
245
246
|
| null;
|
|
246
247
|
organization: Organization;
|
|
247
248
|
attachedCustomFields: Array<AttachedCustomField>;
|
|
248
|
-
customerBillingAddressFields: CheckoutCustomerBillingAddressFields;
|
|
249
249
|
};
|
|
250
250
|
|
|
251
251
|
/** @internal */
|
|
@@ -374,18 +374,18 @@ export const CheckoutPublicDiscount$inboundSchema: z.ZodType<
|
|
|
374
374
|
z.ZodTypeDef,
|
|
375
375
|
unknown
|
|
376
376
|
> = z.union([
|
|
377
|
-
|
|
377
|
+
CheckoutDiscountPercentageOnceForeverDuration$inboundSchema,
|
|
378
378
|
CheckoutDiscountFixedOnceForeverDuration$inboundSchema,
|
|
379
379
|
CheckoutDiscountPercentageRepeatDuration$inboundSchema,
|
|
380
|
-
|
|
380
|
+
CheckoutDiscountFixedRepeatDuration$inboundSchema,
|
|
381
381
|
]);
|
|
382
382
|
|
|
383
383
|
/** @internal */
|
|
384
384
|
export type CheckoutPublicDiscount$Outbound =
|
|
385
|
-
|
|
|
385
|
+
| CheckoutDiscountPercentageOnceForeverDuration$Outbound
|
|
386
386
|
| CheckoutDiscountFixedOnceForeverDuration$Outbound
|
|
387
387
|
| CheckoutDiscountPercentageRepeatDuration$Outbound
|
|
388
|
-
|
|
|
388
|
+
| CheckoutDiscountFixedRepeatDuration$Outbound;
|
|
389
389
|
|
|
390
390
|
/** @internal */
|
|
391
391
|
export const CheckoutPublicDiscount$outboundSchema: z.ZodType<
|
|
@@ -393,10 +393,10 @@ export const CheckoutPublicDiscount$outboundSchema: z.ZodType<
|
|
|
393
393
|
z.ZodTypeDef,
|
|
394
394
|
CheckoutPublicDiscount
|
|
395
395
|
> = z.union([
|
|
396
|
-
|
|
396
|
+
CheckoutDiscountPercentageOnceForeverDuration$outboundSchema,
|
|
397
397
|
CheckoutDiscountFixedOnceForeverDuration$outboundSchema,
|
|
398
398
|
CheckoutDiscountPercentageRepeatDuration$outboundSchema,
|
|
399
|
-
|
|
399
|
+
CheckoutDiscountFixedRepeatDuration$outboundSchema,
|
|
400
400
|
]);
|
|
401
401
|
|
|
402
402
|
/**
|
|
@@ -483,6 +483,8 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
|
|
|
483
483
|
customer_billing_address: z.nullable(Address$inboundSchema),
|
|
484
484
|
customer_tax_id: z.nullable(z.string()),
|
|
485
485
|
payment_processor_metadata: z.record(z.string()),
|
|
486
|
+
customer_billing_address_fields:
|
|
487
|
+
CheckoutCustomerBillingAddressFields$inboundSchema,
|
|
486
488
|
products: z.array(CheckoutProduct$inboundSchema),
|
|
487
489
|
product: CheckoutProduct$inboundSchema,
|
|
488
490
|
product_price: z.union([
|
|
@@ -491,16 +493,14 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
|
|
|
491
493
|
]),
|
|
492
494
|
discount: z.nullable(
|
|
493
495
|
z.union([
|
|
494
|
-
|
|
496
|
+
CheckoutDiscountPercentageOnceForeverDuration$inboundSchema,
|
|
495
497
|
CheckoutDiscountFixedOnceForeverDuration$inboundSchema,
|
|
496
498
|
CheckoutDiscountPercentageRepeatDuration$inboundSchema,
|
|
497
|
-
|
|
499
|
+
CheckoutDiscountFixedRepeatDuration$inboundSchema,
|
|
498
500
|
]),
|
|
499
501
|
),
|
|
500
502
|
organization: Organization$inboundSchema,
|
|
501
503
|
attached_custom_fields: z.array(AttachedCustomField$inboundSchema),
|
|
502
|
-
customer_billing_address_fields:
|
|
503
|
-
CheckoutCustomerBillingAddressFields$inboundSchema,
|
|
504
504
|
}).transform((v) => {
|
|
505
505
|
return remap$(v, {
|
|
506
506
|
"created_at": "createdAt",
|
|
@@ -534,9 +534,9 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
|
|
|
534
534
|
"customer_billing_address": "customerBillingAddress",
|
|
535
535
|
"customer_tax_id": "customerTaxId",
|
|
536
536
|
"payment_processor_metadata": "paymentProcessorMetadata",
|
|
537
|
+
"customer_billing_address_fields": "customerBillingAddressFields",
|
|
537
538
|
"product_price": "productPrice",
|
|
538
539
|
"attached_custom_fields": "attachedCustomFields",
|
|
539
|
-
"customer_billing_address_fields": "customerBillingAddressFields",
|
|
540
540
|
});
|
|
541
541
|
});
|
|
542
542
|
|
|
@@ -580,19 +580,19 @@ export type CheckoutPublic$Outbound = {
|
|
|
580
580
|
customer_billing_address: Address$Outbound | null;
|
|
581
581
|
customer_tax_id: string | null;
|
|
582
582
|
payment_processor_metadata: { [k: string]: string };
|
|
583
|
+
customer_billing_address_fields:
|
|
584
|
+
CheckoutCustomerBillingAddressFields$Outbound;
|
|
583
585
|
products: Array<CheckoutProduct$Outbound>;
|
|
584
586
|
product: CheckoutProduct$Outbound;
|
|
585
587
|
product_price: LegacyRecurringProductPrice$Outbound | ProductPrice$Outbound;
|
|
586
588
|
discount:
|
|
587
|
-
|
|
|
589
|
+
| CheckoutDiscountPercentageOnceForeverDuration$Outbound
|
|
588
590
|
| CheckoutDiscountFixedOnceForeverDuration$Outbound
|
|
589
591
|
| CheckoutDiscountPercentageRepeatDuration$Outbound
|
|
590
|
-
|
|
|
592
|
+
| CheckoutDiscountFixedRepeatDuration$Outbound
|
|
591
593
|
| null;
|
|
592
594
|
organization: Organization$Outbound;
|
|
593
595
|
attached_custom_fields: Array<AttachedCustomField$Outbound>;
|
|
594
|
-
customer_billing_address_fields:
|
|
595
|
-
CheckoutCustomerBillingAddressFields$Outbound;
|
|
596
596
|
};
|
|
597
597
|
|
|
598
598
|
/** @internal */
|
|
@@ -646,6 +646,8 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
|
|
|
646
646
|
customerBillingAddress: z.nullable(Address$outboundSchema),
|
|
647
647
|
customerTaxId: z.nullable(z.string()),
|
|
648
648
|
paymentProcessorMetadata: z.record(z.string()),
|
|
649
|
+
customerBillingAddressFields:
|
|
650
|
+
CheckoutCustomerBillingAddressFields$outboundSchema,
|
|
649
651
|
products: z.array(CheckoutProduct$outboundSchema),
|
|
650
652
|
product: CheckoutProduct$outboundSchema,
|
|
651
653
|
productPrice: z.union([
|
|
@@ -654,16 +656,14 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
|
|
|
654
656
|
]),
|
|
655
657
|
discount: z.nullable(
|
|
656
658
|
z.union([
|
|
657
|
-
|
|
659
|
+
CheckoutDiscountPercentageOnceForeverDuration$outboundSchema,
|
|
658
660
|
CheckoutDiscountFixedOnceForeverDuration$outboundSchema,
|
|
659
661
|
CheckoutDiscountPercentageRepeatDuration$outboundSchema,
|
|
660
|
-
|
|
662
|
+
CheckoutDiscountFixedRepeatDuration$outboundSchema,
|
|
661
663
|
]),
|
|
662
664
|
),
|
|
663
665
|
organization: Organization$outboundSchema,
|
|
664
666
|
attachedCustomFields: z.array(AttachedCustomField$outboundSchema),
|
|
665
|
-
customerBillingAddressFields:
|
|
666
|
-
CheckoutCustomerBillingAddressFields$outboundSchema,
|
|
667
667
|
}).transform((v) => {
|
|
668
668
|
return remap$(v, {
|
|
669
669
|
createdAt: "created_at",
|
|
@@ -697,9 +697,9 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
|
|
|
697
697
|
customerBillingAddress: "customer_billing_address",
|
|
698
698
|
customerTaxId: "customer_tax_id",
|
|
699
699
|
paymentProcessorMetadata: "payment_processor_metadata",
|
|
700
|
+
customerBillingAddressFields: "customer_billing_address_fields",
|
|
700
701
|
productPrice: "product_price",
|
|
701
702
|
attachedCustomFields: "attached_custom_fields",
|
|
702
|
-
customerBillingAddressFields: "customer_billing_address_fields",
|
|
703
703
|
});
|
|
704
704
|
});
|
|
705
705
|
|
|
@@ -93,10 +93,10 @@ export type CheckoutPublicConfirmedProductPrice =
|
|
|
93
93
|
| ProductPrice;
|
|
94
94
|
|
|
95
95
|
export type CheckoutPublicConfirmedDiscount =
|
|
96
|
-
|
|
|
96
|
+
| CheckoutDiscountPercentageOnceForeverDuration
|
|
97
97
|
| CheckoutDiscountFixedOnceForeverDuration
|
|
98
98
|
| CheckoutDiscountPercentageRepeatDuration
|
|
99
|
-
|
|
|
99
|
+
| CheckoutDiscountFixedRepeatDuration;
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
* Checkout session data retrieved using the client secret after confirmation.
|
|
@@ -229,6 +229,7 @@ export type CheckoutPublicConfirmed = {
|
|
|
229
229
|
customerBillingAddress: Address | null;
|
|
230
230
|
customerTaxId: string | null;
|
|
231
231
|
paymentProcessorMetadata: { [k: string]: string };
|
|
232
|
+
customerBillingAddressFields: CheckoutCustomerBillingAddressFields;
|
|
232
233
|
/**
|
|
233
234
|
* List of products available to select.
|
|
234
235
|
*/
|
|
@@ -242,15 +243,14 @@ export type CheckoutPublicConfirmed = {
|
|
|
242
243
|
*/
|
|
243
244
|
productPrice: LegacyRecurringProductPrice | ProductPrice;
|
|
244
245
|
discount:
|
|
245
|
-
|
|
|
246
|
+
| CheckoutDiscountPercentageOnceForeverDuration
|
|
246
247
|
| CheckoutDiscountFixedOnceForeverDuration
|
|
247
248
|
| CheckoutDiscountPercentageRepeatDuration
|
|
248
|
-
|
|
|
249
|
+
| CheckoutDiscountFixedRepeatDuration
|
|
249
250
|
| null;
|
|
250
251
|
organization: Organization;
|
|
251
252
|
attachedCustomFields: Array<AttachedCustomField>;
|
|
252
253
|
customerSessionToken: string;
|
|
253
|
-
customerBillingAddressFields: CheckoutCustomerBillingAddressFields;
|
|
254
254
|
};
|
|
255
255
|
|
|
256
256
|
/** @internal */
|
|
@@ -388,18 +388,18 @@ export const CheckoutPublicConfirmedDiscount$inboundSchema: z.ZodType<
|
|
|
388
388
|
z.ZodTypeDef,
|
|
389
389
|
unknown
|
|
390
390
|
> = z.union([
|
|
391
|
-
|
|
391
|
+
CheckoutDiscountPercentageOnceForeverDuration$inboundSchema,
|
|
392
392
|
CheckoutDiscountFixedOnceForeverDuration$inboundSchema,
|
|
393
393
|
CheckoutDiscountPercentageRepeatDuration$inboundSchema,
|
|
394
|
-
|
|
394
|
+
CheckoutDiscountFixedRepeatDuration$inboundSchema,
|
|
395
395
|
]);
|
|
396
396
|
|
|
397
397
|
/** @internal */
|
|
398
398
|
export type CheckoutPublicConfirmedDiscount$Outbound =
|
|
399
|
-
|
|
|
399
|
+
| CheckoutDiscountPercentageOnceForeverDuration$Outbound
|
|
400
400
|
| CheckoutDiscountFixedOnceForeverDuration$Outbound
|
|
401
401
|
| CheckoutDiscountPercentageRepeatDuration$Outbound
|
|
402
|
-
|
|
|
402
|
+
| CheckoutDiscountFixedRepeatDuration$Outbound;
|
|
403
403
|
|
|
404
404
|
/** @internal */
|
|
405
405
|
export const CheckoutPublicConfirmedDiscount$outboundSchema: z.ZodType<
|
|
@@ -407,10 +407,10 @@ export const CheckoutPublicConfirmedDiscount$outboundSchema: z.ZodType<
|
|
|
407
407
|
z.ZodTypeDef,
|
|
408
408
|
CheckoutPublicConfirmedDiscount
|
|
409
409
|
> = z.union([
|
|
410
|
-
|
|
410
|
+
CheckoutDiscountPercentageOnceForeverDuration$outboundSchema,
|
|
411
411
|
CheckoutDiscountFixedOnceForeverDuration$outboundSchema,
|
|
412
412
|
CheckoutDiscountPercentageRepeatDuration$outboundSchema,
|
|
413
|
-
|
|
413
|
+
CheckoutDiscountFixedRepeatDuration$outboundSchema,
|
|
414
414
|
]);
|
|
415
415
|
|
|
416
416
|
/**
|
|
@@ -499,6 +499,8 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
|
|
|
499
499
|
customer_billing_address: z.nullable(Address$inboundSchema),
|
|
500
500
|
customer_tax_id: z.nullable(z.string()),
|
|
501
501
|
payment_processor_metadata: z.record(z.string()),
|
|
502
|
+
customer_billing_address_fields:
|
|
503
|
+
CheckoutCustomerBillingAddressFields$inboundSchema,
|
|
502
504
|
products: z.array(CheckoutProduct$inboundSchema),
|
|
503
505
|
product: CheckoutProduct$inboundSchema,
|
|
504
506
|
product_price: z.union([
|
|
@@ -507,17 +509,15 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
|
|
|
507
509
|
]),
|
|
508
510
|
discount: z.nullable(
|
|
509
511
|
z.union([
|
|
510
|
-
|
|
512
|
+
CheckoutDiscountPercentageOnceForeverDuration$inboundSchema,
|
|
511
513
|
CheckoutDiscountFixedOnceForeverDuration$inboundSchema,
|
|
512
514
|
CheckoutDiscountPercentageRepeatDuration$inboundSchema,
|
|
513
|
-
|
|
515
|
+
CheckoutDiscountFixedRepeatDuration$inboundSchema,
|
|
514
516
|
]),
|
|
515
517
|
),
|
|
516
518
|
organization: Organization$inboundSchema,
|
|
517
519
|
attached_custom_fields: z.array(AttachedCustomField$inboundSchema),
|
|
518
520
|
customer_session_token: z.string(),
|
|
519
|
-
customer_billing_address_fields:
|
|
520
|
-
CheckoutCustomerBillingAddressFields$inboundSchema,
|
|
521
521
|
}).transform((v) => {
|
|
522
522
|
return remap$(v, {
|
|
523
523
|
"created_at": "createdAt",
|
|
@@ -551,10 +551,10 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
|
|
|
551
551
|
"customer_billing_address": "customerBillingAddress",
|
|
552
552
|
"customer_tax_id": "customerTaxId",
|
|
553
553
|
"payment_processor_metadata": "paymentProcessorMetadata",
|
|
554
|
+
"customer_billing_address_fields": "customerBillingAddressFields",
|
|
554
555
|
"product_price": "productPrice",
|
|
555
556
|
"attached_custom_fields": "attachedCustomFields",
|
|
556
557
|
"customer_session_token": "customerSessionToken",
|
|
557
|
-
"customer_billing_address_fields": "customerBillingAddressFields",
|
|
558
558
|
});
|
|
559
559
|
});
|
|
560
560
|
|
|
@@ -598,20 +598,20 @@ export type CheckoutPublicConfirmed$Outbound = {
|
|
|
598
598
|
customer_billing_address: Address$Outbound | null;
|
|
599
599
|
customer_tax_id: string | null;
|
|
600
600
|
payment_processor_metadata: { [k: string]: string };
|
|
601
|
+
customer_billing_address_fields:
|
|
602
|
+
CheckoutCustomerBillingAddressFields$Outbound;
|
|
601
603
|
products: Array<CheckoutProduct$Outbound>;
|
|
602
604
|
product: CheckoutProduct$Outbound;
|
|
603
605
|
product_price: LegacyRecurringProductPrice$Outbound | ProductPrice$Outbound;
|
|
604
606
|
discount:
|
|
605
|
-
|
|
|
607
|
+
| CheckoutDiscountPercentageOnceForeverDuration$Outbound
|
|
606
608
|
| CheckoutDiscountFixedOnceForeverDuration$Outbound
|
|
607
609
|
| CheckoutDiscountPercentageRepeatDuration$Outbound
|
|
608
|
-
|
|
|
610
|
+
| CheckoutDiscountFixedRepeatDuration$Outbound
|
|
609
611
|
| null;
|
|
610
612
|
organization: Organization$Outbound;
|
|
611
613
|
attached_custom_fields: Array<AttachedCustomField$Outbound>;
|
|
612
614
|
customer_session_token: string;
|
|
613
|
-
customer_billing_address_fields:
|
|
614
|
-
CheckoutCustomerBillingAddressFields$Outbound;
|
|
615
615
|
};
|
|
616
616
|
|
|
617
617
|
/** @internal */
|
|
@@ -665,6 +665,8 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
|
|
|
665
665
|
customerBillingAddress: z.nullable(Address$outboundSchema),
|
|
666
666
|
customerTaxId: z.nullable(z.string()),
|
|
667
667
|
paymentProcessorMetadata: z.record(z.string()),
|
|
668
|
+
customerBillingAddressFields:
|
|
669
|
+
CheckoutCustomerBillingAddressFields$outboundSchema,
|
|
668
670
|
products: z.array(CheckoutProduct$outboundSchema),
|
|
669
671
|
product: CheckoutProduct$outboundSchema,
|
|
670
672
|
productPrice: z.union([
|
|
@@ -673,17 +675,15 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
|
|
|
673
675
|
]),
|
|
674
676
|
discount: z.nullable(
|
|
675
677
|
z.union([
|
|
676
|
-
|
|
678
|
+
CheckoutDiscountPercentageOnceForeverDuration$outboundSchema,
|
|
677
679
|
CheckoutDiscountFixedOnceForeverDuration$outboundSchema,
|
|
678
680
|
CheckoutDiscountPercentageRepeatDuration$outboundSchema,
|
|
679
|
-
|
|
681
|
+
CheckoutDiscountFixedRepeatDuration$outboundSchema,
|
|
680
682
|
]),
|
|
681
683
|
),
|
|
682
684
|
organization: Organization$outboundSchema,
|
|
683
685
|
attachedCustomFields: z.array(AttachedCustomField$outboundSchema),
|
|
684
686
|
customerSessionToken: z.string(),
|
|
685
|
-
customerBillingAddressFields:
|
|
686
|
-
CheckoutCustomerBillingAddressFields$outboundSchema,
|
|
687
687
|
}).transform((v) => {
|
|
688
688
|
return remap$(v, {
|
|
689
689
|
createdAt: "created_at",
|
|
@@ -717,10 +717,10 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
|
|
|
717
717
|
customerBillingAddress: "customer_billing_address",
|
|
718
718
|
customerTaxId: "customer_tax_id",
|
|
719
719
|
paymentProcessorMetadata: "payment_processor_metadata",
|
|
720
|
+
customerBillingAddressFields: "customer_billing_address_fields",
|
|
720
721
|
productPrice: "product_price",
|
|
721
722
|
attachedCustomFields: "attached_custom_fields",
|
|
722
723
|
customerSessionToken: "customer_session_token",
|
|
723
|
-
customerBillingAddressFields: "customer_billing_address_fields",
|
|
724
724
|
});
|
|
725
725
|
});
|
|
726
726
|
|
|
@@ -44,14 +44,14 @@ import {
|
|
|
44
44
|
} from "./customerbenefitgrantmetercreditupdate.js";
|
|
45
45
|
|
|
46
46
|
export type CustomerBenefitGrantUpdate =
|
|
47
|
-
| (CustomerBenefitGrantDiscordUpdate & { benefitType: "discord" })
|
|
48
|
-
| (CustomerBenefitGrantGitHubRepositoryUpdate & {
|
|
49
|
-
benefitType: "github_repository";
|
|
50
|
-
})
|
|
51
47
|
| (CustomerBenefitGrantCustomUpdate & { benefitType: "custom" })
|
|
52
48
|
| (CustomerBenefitGrantDownloadablesUpdate & { benefitType: "downloadables" })
|
|
53
49
|
| (CustomerBenefitGrantLicenseKeysUpdate & { benefitType: "license_keys" })
|
|
54
|
-
| (CustomerBenefitGrantMeterCreditUpdate & { benefitType: "meter_credit" })
|
|
50
|
+
| (CustomerBenefitGrantMeterCreditUpdate & { benefitType: "meter_credit" })
|
|
51
|
+
| (CustomerBenefitGrantDiscordUpdate & { benefitType: "discord" })
|
|
52
|
+
| (CustomerBenefitGrantGitHubRepositoryUpdate & {
|
|
53
|
+
benefitType: "github_repository";
|
|
54
|
+
});
|
|
55
55
|
|
|
56
56
|
/** @internal */
|
|
57
57
|
export const CustomerBenefitGrantUpdate$inboundSchema: z.ZodType<
|
|
@@ -59,16 +59,6 @@ export const CustomerBenefitGrantUpdate$inboundSchema: z.ZodType<
|
|
|
59
59
|
z.ZodTypeDef,
|
|
60
60
|
unknown
|
|
61
61
|
> = z.union([
|
|
62
|
-
CustomerBenefitGrantDiscordUpdate$inboundSchema.and(
|
|
63
|
-
z.object({ benefit_type: z.literal("discord") }).transform((v) => ({
|
|
64
|
-
benefitType: v.benefit_type,
|
|
65
|
-
})),
|
|
66
|
-
),
|
|
67
|
-
CustomerBenefitGrantGitHubRepositoryUpdate$inboundSchema.and(
|
|
68
|
-
z.object({ benefit_type: z.literal("github_repository") }).transform((
|
|
69
|
-
v,
|
|
70
|
-
) => ({ benefitType: v.benefit_type })),
|
|
71
|
-
),
|
|
72
62
|
CustomerBenefitGrantCustomUpdate$inboundSchema.and(
|
|
73
63
|
z.object({ benefit_type: z.literal("custom") }).transform((v) => ({
|
|
74
64
|
benefitType: v.benefit_type,
|
|
@@ -89,14 +79,20 @@ export const CustomerBenefitGrantUpdate$inboundSchema: z.ZodType<
|
|
|
89
79
|
benefitType: v.benefit_type,
|
|
90
80
|
})),
|
|
91
81
|
),
|
|
82
|
+
CustomerBenefitGrantDiscordUpdate$inboundSchema.and(
|
|
83
|
+
z.object({ benefit_type: z.literal("discord") }).transform((v) => ({
|
|
84
|
+
benefitType: v.benefit_type,
|
|
85
|
+
})),
|
|
86
|
+
),
|
|
87
|
+
CustomerBenefitGrantGitHubRepositoryUpdate$inboundSchema.and(
|
|
88
|
+
z.object({ benefit_type: z.literal("github_repository") }).transform((
|
|
89
|
+
v,
|
|
90
|
+
) => ({ benefitType: v.benefit_type })),
|
|
91
|
+
),
|
|
92
92
|
]);
|
|
93
93
|
|
|
94
94
|
/** @internal */
|
|
95
95
|
export type CustomerBenefitGrantUpdate$Outbound =
|
|
96
|
-
| (CustomerBenefitGrantDiscordUpdate$Outbound & { benefit_type: "discord" })
|
|
97
|
-
| (CustomerBenefitGrantGitHubRepositoryUpdate$Outbound & {
|
|
98
|
-
benefit_type: "github_repository";
|
|
99
|
-
})
|
|
100
96
|
| (CustomerBenefitGrantCustomUpdate$Outbound & { benefit_type: "custom" })
|
|
101
97
|
| (CustomerBenefitGrantDownloadablesUpdate$Outbound & {
|
|
102
98
|
benefit_type: "downloadables";
|
|
@@ -106,6 +102,10 @@ export type CustomerBenefitGrantUpdate$Outbound =
|
|
|
106
102
|
})
|
|
107
103
|
| (CustomerBenefitGrantMeterCreditUpdate$Outbound & {
|
|
108
104
|
benefit_type: "meter_credit";
|
|
105
|
+
})
|
|
106
|
+
| (CustomerBenefitGrantDiscordUpdate$Outbound & { benefit_type: "discord" })
|
|
107
|
+
| (CustomerBenefitGrantGitHubRepositoryUpdate$Outbound & {
|
|
108
|
+
benefit_type: "github_repository";
|
|
109
109
|
});
|
|
110
110
|
|
|
111
111
|
/** @internal */
|
|
@@ -114,16 +114,6 @@ export const CustomerBenefitGrantUpdate$outboundSchema: z.ZodType<
|
|
|
114
114
|
z.ZodTypeDef,
|
|
115
115
|
CustomerBenefitGrantUpdate
|
|
116
116
|
> = z.union([
|
|
117
|
-
CustomerBenefitGrantDiscordUpdate$outboundSchema.and(
|
|
118
|
-
z.object({ benefitType: z.literal("discord") }).transform((v) => ({
|
|
119
|
-
benefit_type: v.benefitType,
|
|
120
|
-
})),
|
|
121
|
-
),
|
|
122
|
-
CustomerBenefitGrantGitHubRepositoryUpdate$outboundSchema.and(
|
|
123
|
-
z.object({ benefitType: z.literal("github_repository") }).transform((
|
|
124
|
-
v,
|
|
125
|
-
) => ({ benefit_type: v.benefitType })),
|
|
126
|
-
),
|
|
127
117
|
CustomerBenefitGrantCustomUpdate$outboundSchema.and(
|
|
128
118
|
z.object({ benefitType: z.literal("custom") }).transform((v) => ({
|
|
129
119
|
benefit_type: v.benefitType,
|
|
@@ -144,6 +134,16 @@ export const CustomerBenefitGrantUpdate$outboundSchema: z.ZodType<
|
|
|
144
134
|
benefit_type: v.benefitType,
|
|
145
135
|
})),
|
|
146
136
|
),
|
|
137
|
+
CustomerBenefitGrantDiscordUpdate$outboundSchema.and(
|
|
138
|
+
z.object({ benefitType: z.literal("discord") }).transform((v) => ({
|
|
139
|
+
benefit_type: v.benefitType,
|
|
140
|
+
})),
|
|
141
|
+
),
|
|
142
|
+
CustomerBenefitGrantGitHubRepositoryUpdate$outboundSchema.and(
|
|
143
|
+
z.object({ benefitType: z.literal("github_repository") }).transform((
|
|
144
|
+
v,
|
|
145
|
+
) => ({ benefit_type: v.benefitType })),
|
|
146
|
+
),
|
|
147
147
|
]);
|
|
148
148
|
|
|
149
149
|
/**
|
|
@@ -15,7 +15,7 @@ export type CustomerSessionCustomerExternalIDCreate = {
|
|
|
15
15
|
/**
|
|
16
16
|
* External ID of the customer to create a session for.
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
externalCustomerId: string;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
/** @internal */
|
|
@@ -24,16 +24,16 @@ export const CustomerSessionCustomerExternalIDCreate$inboundSchema: z.ZodType<
|
|
|
24
24
|
z.ZodTypeDef,
|
|
25
25
|
unknown
|
|
26
26
|
> = z.object({
|
|
27
|
-
|
|
27
|
+
external_customer_id: z.string(),
|
|
28
28
|
}).transform((v) => {
|
|
29
29
|
return remap$(v, {
|
|
30
|
-
"
|
|
30
|
+
"external_customer_id": "externalCustomerId",
|
|
31
31
|
});
|
|
32
32
|
});
|
|
33
33
|
|
|
34
34
|
/** @internal */
|
|
35
35
|
export type CustomerSessionCustomerExternalIDCreate$Outbound = {
|
|
36
|
-
|
|
36
|
+
external_customer_id: string;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
/** @internal */
|
|
@@ -42,10 +42,10 @@ export const CustomerSessionCustomerExternalIDCreate$outboundSchema: z.ZodType<
|
|
|
42
42
|
z.ZodTypeDef,
|
|
43
43
|
CustomerSessionCustomerExternalIDCreate
|
|
44
44
|
> = z.object({
|
|
45
|
-
|
|
45
|
+
externalCustomerId: z.string(),
|
|
46
46
|
}).transform((v) => {
|
|
47
47
|
return remap$(v, {
|
|
48
|
-
|
|
48
|
+
externalCustomerId: "external_customer_id",
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
51
|
|