@polar-sh/sdk 0.34.2 → 0.34.4
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 +22 -37
- package/bin/mcp-server.js +25 -7
- package/bin/mcp-server.js.map +10 -10
- package/dist/commonjs/funcs/{customerPortalCustomersGetPaymentMethods.d.ts → customerPortalCustomersListPaymentMethods.d.ts} +4 -4
- package/dist/commonjs/funcs/customerPortalCustomersListPaymentMethods.d.ts.map +1 -0
- package/dist/commonjs/funcs/{customerPortalCustomersGetPaymentMethods.js → customerPortalCustomersListPaymentMethods.js} +9 -9
- package/dist/commonjs/funcs/customerPortalCustomersListPaymentMethods.js.map +1 -0
- package/dist/commonjs/funcs/metricsGet.js +1 -0
- package/dist/commonjs/funcs/metricsGet.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsList.js +1 -0
- package/dist/commonjs/funcs/subscriptionsList.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/benefitdiscordcreateproperties.d.ts +5 -0
- package/dist/commonjs/models/components/benefitdiscordcreateproperties.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitdiscordcreateproperties.js +4 -0
- package/dist/commonjs/models/components/benefitdiscordcreateproperties.js.map +1 -1
- package/dist/commonjs/models/components/benefitdiscordproperties.d.ts +5 -0
- package/dist/commonjs/models/components/benefitdiscordproperties.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitdiscordproperties.js +4 -0
- package/dist/commonjs/models/components/benefitdiscordproperties.js.map +1 -1
- package/dist/commonjs/models/components/billingaddressfieldmode.d.ts +31 -0
- package/dist/commonjs/models/components/billingaddressfieldmode.d.ts.map +1 -0
- package/dist/commonjs/models/components/billingaddressfieldmode.js +51 -0
- package/dist/commonjs/models/components/billingaddressfieldmode.js.map +1 -0
- package/dist/commonjs/models/components/checkout.d.ts +3 -3
- package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkout.js +5 -5
- package/dist/commonjs/models/components/checkout.js.map +1 -1
- package/dist/commonjs/models/components/checkoutbillingaddressfields.d.ts +40 -0
- package/dist/commonjs/models/components/checkoutbillingaddressfields.d.ts.map +1 -0
- package/dist/commonjs/models/components/checkoutbillingaddressfields.js +79 -0
- package/dist/commonjs/models/components/checkoutbillingaddressfields.js.map +1 -0
- package/dist/commonjs/models/components/checkoutpublic.d.ts +3 -3
- package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.js +5 -5
- package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +3 -3
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js +5 -5
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/commonjs/models/components/customerportalcustomer.d.ts +2 -0
- package/dist/commonjs/models/components/customerportalcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerportalcustomer.js +4 -0
- package/dist/commonjs/models/components/customerportalcustomer.js.map +1 -1
- package/dist/commonjs/models/components/organization.d.ts +3 -0
- package/dist/commonjs/models/components/organization.d.ts.map +1 -1
- package/dist/commonjs/models/components/organization.js +5 -0
- package/dist/commonjs/models/components/organization.js.map +1 -1
- package/dist/commonjs/models/components/organizationcreate.d.ts +3 -0
- package/dist/commonjs/models/components/organizationcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationcreate.js +5 -0
- package/dist/commonjs/models/components/organizationcreate.js.map +1 -1
- package/dist/commonjs/models/components/organizationfeaturesettings.d.ts +0 -5
- package/dist/commonjs/models/components/organizationfeaturesettings.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationfeaturesettings.js +0 -4
- package/dist/commonjs/models/components/organizationfeaturesettings.js.map +1 -1
- package/dist/commonjs/models/components/organizationnotificationsettings.d.ts +31 -0
- package/dist/commonjs/models/components/organizationnotificationsettings.d.ts.map +1 -0
- package/dist/commonjs/models/components/organizationnotificationsettings.js +72 -0
- package/dist/commonjs/models/components/organizationnotificationsettings.js.map +1 -0
- package/dist/commonjs/models/components/organizationupdate.d.ts +3 -0
- package/dist/commonjs/models/components/organizationupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationupdate.js +5 -0
- package/dist/commonjs/models/components/organizationupdate.js.map +1 -1
- package/dist/commonjs/models/components/paymentmethodcard.d.ts +21 -7
- package/dist/commonjs/models/components/paymentmethodcard.d.ts.map +1 -1
- package/dist/commonjs/models/components/paymentmethodcard.js +18 -7
- package/dist/commonjs/models/components/paymentmethodcard.js.map +1 -1
- package/dist/commonjs/models/components/paymentmethodcardmetadata.d.ts +37 -0
- package/dist/commonjs/models/components/paymentmethodcardmetadata.d.ts.map +1 -0
- package/dist/commonjs/models/components/{paymentmethodcarddata.js → paymentmethodcardmetadata.js} +17 -17
- package/dist/commonjs/models/components/paymentmethodcardmetadata.js.map +1 -0
- package/dist/commonjs/models/components/paymentmethodgeneric.d.ts +18 -4
- package/dist/commonjs/models/components/paymentmethodgeneric.d.ts.map +1 -1
- package/dist/commonjs/models/components/paymentmethodgeneric.js +13 -4
- package/dist/commonjs/models/components/paymentmethodgeneric.js.map +1 -1
- package/dist/commonjs/models/operations/customerportalcustomerslistpaymentmethods.d.ts +88 -0
- package/dist/commonjs/models/operations/customerportalcustomerslistpaymentmethods.d.ts.map +1 -0
- package/dist/commonjs/models/operations/customerportalcustomerslistpaymentmethods.js +133 -0
- package/dist/commonjs/models/operations/customerportalcustomerslistpaymentmethods.js.map +1 -0
- package/dist/commonjs/models/operations/eventslist.d.ts +13 -13
- package/dist/commonjs/models/operations/eventslist.d.ts.map +1 -1
- package/dist/commonjs/models/operations/eventslist.js +16 -16
- package/dist/commonjs/models/operations/eventslist.js.map +1 -1
- package/dist/commonjs/models/operations/eventslistnames.d.ts +13 -13
- package/dist/commonjs/models/operations/eventslistnames.d.ts.map +1 -1
- package/dist/commonjs/models/operations/eventslistnames.js +16 -16
- package/dist/commonjs/models/operations/eventslistnames.js.map +1 -1
- package/dist/commonjs/models/operations/metricsget.d.ts +5 -0
- package/dist/commonjs/models/operations/metricsget.d.ts.map +1 -1
- package/dist/commonjs/models/operations/metricsget.js +2 -0
- package/dist/commonjs/models/operations/metricsget.js.map +1 -1
- package/dist/commonjs/models/operations/subscriptionslist.d.ts +29 -0
- package/dist/commonjs/models/operations/subscriptionslist.d.ts.map +1 -1
- package/dist/commonjs/models/operations/subscriptionslist.js +30 -1
- package/dist/commonjs/models/operations/subscriptionslist.js.map +1 -1
- package/dist/commonjs/sdk/downloadables.d.ts +0 -5
- package/dist/commonjs/sdk/downloadables.d.ts.map +1 -1
- package/dist/commonjs/sdk/downloadables.js +0 -8
- package/dist/commonjs/sdk/downloadables.js.map +1 -1
- package/dist/commonjs/sdk/oauth2.d.ts +0 -3
- package/dist/commonjs/sdk/oauth2.d.ts.map +1 -1
- package/dist/commonjs/sdk/oauth2.js +0 -4
- package/dist/commonjs/sdk/oauth2.js.map +1 -1
- package/dist/commonjs/sdk/polarcustomers.d.ts +3 -3
- package/dist/commonjs/sdk/polarcustomers.d.ts.map +1 -1
- package/dist/commonjs/sdk/polarcustomers.js +4 -4
- package/dist/commonjs/sdk/polarcustomers.js.map +1 -1
- package/dist/esm/funcs/{customerPortalCustomersGetPaymentMethods.d.ts → customerPortalCustomersListPaymentMethods.d.ts} +4 -4
- package/dist/esm/funcs/customerPortalCustomersListPaymentMethods.d.ts.map +1 -0
- package/dist/esm/funcs/{customerPortalCustomersGetPaymentMethods.js → customerPortalCustomersListPaymentMethods.js} +8 -8
- package/dist/esm/funcs/customerPortalCustomersListPaymentMethods.js.map +1 -0
- package/dist/esm/funcs/metricsGet.js +1 -0
- package/dist/esm/funcs/metricsGet.js.map +1 -1
- package/dist/esm/funcs/subscriptionsList.js +1 -0
- package/dist/esm/funcs/subscriptionsList.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/benefitdiscordcreateproperties.d.ts +5 -0
- package/dist/esm/models/components/benefitdiscordcreateproperties.d.ts.map +1 -1
- package/dist/esm/models/components/benefitdiscordcreateproperties.js +4 -0
- package/dist/esm/models/components/benefitdiscordcreateproperties.js.map +1 -1
- package/dist/esm/models/components/benefitdiscordproperties.d.ts +5 -0
- package/dist/esm/models/components/benefitdiscordproperties.d.ts.map +1 -1
- package/dist/esm/models/components/benefitdiscordproperties.js +4 -0
- package/dist/esm/models/components/benefitdiscordproperties.js.map +1 -1
- package/dist/esm/models/components/billingaddressfieldmode.d.ts +31 -0
- package/dist/esm/models/components/billingaddressfieldmode.d.ts.map +1 -0
- package/dist/esm/models/components/billingaddressfieldmode.js +25 -0
- package/dist/esm/models/components/billingaddressfieldmode.js.map +1 -0
- package/dist/esm/models/components/checkout.d.ts +3 -3
- package/dist/esm/models/components/checkout.d.ts.map +1 -1
- package/dist/esm/models/components/checkout.js +5 -5
- package/dist/esm/models/components/checkout.js.map +1 -1
- package/dist/esm/models/components/checkoutbillingaddressfields.d.ts +40 -0
- package/dist/esm/models/components/checkoutbillingaddressfields.d.ts.map +1 -0
- package/dist/esm/models/components/checkoutbillingaddressfields.js +51 -0
- package/dist/esm/models/components/checkoutbillingaddressfields.js.map +1 -0
- package/dist/esm/models/components/checkoutpublic.d.ts +3 -3
- package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublic.js +5 -5
- package/dist/esm/models/components/checkoutpublic.js.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +3 -3
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.js +5 -5
- package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/esm/models/components/customerportalcustomer.d.ts +2 -0
- package/dist/esm/models/components/customerportalcustomer.d.ts.map +1 -1
- package/dist/esm/models/components/customerportalcustomer.js +4 -0
- package/dist/esm/models/components/customerportalcustomer.js.map +1 -1
- package/dist/esm/models/components/organization.d.ts +3 -0
- package/dist/esm/models/components/organization.d.ts.map +1 -1
- package/dist/esm/models/components/organization.js +5 -0
- package/dist/esm/models/components/organization.js.map +1 -1
- package/dist/esm/models/components/organizationcreate.d.ts +3 -0
- package/dist/esm/models/components/organizationcreate.d.ts.map +1 -1
- package/dist/esm/models/components/organizationcreate.js +5 -0
- package/dist/esm/models/components/organizationcreate.js.map +1 -1
- package/dist/esm/models/components/organizationfeaturesettings.d.ts +0 -5
- package/dist/esm/models/components/organizationfeaturesettings.d.ts.map +1 -1
- package/dist/esm/models/components/organizationfeaturesettings.js +0 -4
- package/dist/esm/models/components/organizationfeaturesettings.js.map +1 -1
- package/dist/esm/models/components/organizationnotificationsettings.d.ts +31 -0
- package/dist/esm/models/components/organizationnotificationsettings.d.ts.map +1 -0
- package/dist/esm/models/components/organizationnotificationsettings.js +44 -0
- package/dist/esm/models/components/organizationnotificationsettings.js.map +1 -0
- package/dist/esm/models/components/organizationupdate.d.ts +3 -0
- package/dist/esm/models/components/organizationupdate.d.ts.map +1 -1
- package/dist/esm/models/components/organizationupdate.js +5 -0
- package/dist/esm/models/components/organizationupdate.js.map +1 -1
- package/dist/esm/models/components/paymentmethodcard.d.ts +21 -7
- package/dist/esm/models/components/paymentmethodcard.d.ts.map +1 -1
- package/dist/esm/models/components/paymentmethodcard.js +18 -7
- package/dist/esm/models/components/paymentmethodcard.js.map +1 -1
- package/dist/esm/models/components/paymentmethodcardmetadata.d.ts +37 -0
- package/dist/esm/models/components/paymentmethodcardmetadata.d.ts.map +1 -0
- package/dist/esm/models/components/paymentmethodcardmetadata.js +50 -0
- package/dist/esm/models/components/paymentmethodcardmetadata.js.map +1 -0
- package/dist/esm/models/components/paymentmethodgeneric.d.ts +18 -4
- package/dist/esm/models/components/paymentmethodgeneric.d.ts.map +1 -1
- package/dist/esm/models/components/paymentmethodgeneric.js +13 -4
- package/dist/esm/models/components/paymentmethodgeneric.js.map +1 -1
- package/dist/esm/models/operations/customerportalcustomerslistpaymentmethods.d.ts +88 -0
- package/dist/esm/models/operations/customerportalcustomerslistpaymentmethods.d.ts.map +1 -0
- package/dist/esm/models/operations/customerportalcustomerslistpaymentmethods.js +101 -0
- package/dist/esm/models/operations/customerportalcustomerslistpaymentmethods.js.map +1 -0
- package/dist/esm/models/operations/eventslist.d.ts +13 -13
- package/dist/esm/models/operations/eventslist.d.ts.map +1 -1
- package/dist/esm/models/operations/eventslist.js +13 -13
- package/dist/esm/models/operations/eventslist.js.map +1 -1
- package/dist/esm/models/operations/eventslistnames.d.ts +13 -13
- package/dist/esm/models/operations/eventslistnames.d.ts.map +1 -1
- package/dist/esm/models/operations/eventslistnames.js +13 -13
- package/dist/esm/models/operations/eventslistnames.js.map +1 -1
- package/dist/esm/models/operations/metricsget.d.ts +5 -0
- package/dist/esm/models/operations/metricsget.d.ts.map +1 -1
- package/dist/esm/models/operations/metricsget.js +2 -0
- package/dist/esm/models/operations/metricsget.js.map +1 -1
- package/dist/esm/models/operations/subscriptionslist.d.ts +29 -0
- package/dist/esm/models/operations/subscriptionslist.d.ts.map +1 -1
- package/dist/esm/models/operations/subscriptionslist.js +27 -0
- package/dist/esm/models/operations/subscriptionslist.js.map +1 -1
- package/dist/esm/sdk/downloadables.d.ts +0 -5
- package/dist/esm/sdk/downloadables.d.ts.map +1 -1
- package/dist/esm/sdk/downloadables.js +0 -8
- package/dist/esm/sdk/downloadables.js.map +1 -1
- package/dist/esm/sdk/oauth2.d.ts +0 -3
- package/dist/esm/sdk/oauth2.d.ts.map +1 -1
- package/dist/esm/sdk/oauth2.js +0 -4
- package/dist/esm/sdk/oauth2.js.map +1 -1
- package/dist/esm/sdk/polarcustomers.d.ts +3 -3
- package/dist/esm/sdk/polarcustomers.d.ts.map +1 -1
- package/dist/esm/sdk/polarcustomers.js +4 -4
- package/dist/esm/sdk/polarcustomers.js.map +1 -1
- package/docs/sdks/downloadables/README.md +0 -70
- package/docs/sdks/polarcustomers/README.md +9 -9
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/{customerPortalCustomersGetPaymentMethods.ts → customerPortalCustomersListPaymentMethods.ts} +20 -20
- package/src/funcs/metricsGet.ts +1 -0
- package/src/funcs/subscriptionsList.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/benefitdiscordcreateproperties.ts +9 -0
- package/src/models/components/benefitdiscordproperties.ts +9 -0
- package/src/models/components/billingaddressfieldmode.ts +36 -0
- package/src/models/components/checkout.ts +11 -14
- package/src/models/components/checkoutbillingaddressfields.ts +102 -0
- package/src/models/components/checkoutpublic.ts +11 -14
- package/src/models/components/checkoutpublicconfirmed.ts +11 -14
- package/src/models/components/customerportalcustomer.ts +6 -0
- package/src/models/components/organization.ts +12 -0
- package/src/models/components/organizationcreate.ts +19 -0
- package/src/models/components/organizationfeaturesettings.ts +0 -9
- package/src/models/components/organizationnotificationsettings.ts +83 -0
- package/src/models/components/organizationupdate.ts +19 -0
- package/src/models/components/paymentmethodcard.ts +47 -17
- package/src/models/components/{paymentmethodcarddata.ts → paymentmethodcardmetadata.ts} +21 -21
- package/src/models/components/paymentmethodgeneric.ts +36 -8
- package/src/models/operations/customerportalcustomerslistpaymentmethods.ts +259 -0
- package/src/models/operations/eventslist.ts +27 -21
- package/src/models/operations/eventslistnames.ts +39 -27
- package/src/models/operations/metricsget.ts +7 -0
- package/src/models/operations/subscriptionslist.ts +64 -0
- package/src/sdk/downloadables.ts +0 -17
- package/src/sdk/oauth2.ts +0 -6
- package/src/sdk/polarcustomers.ts +11 -11
- package/dist/commonjs/funcs/customerPortalCustomersGetPaymentMethods.d.ts.map +0 -1
- package/dist/commonjs/funcs/customerPortalCustomersGetPaymentMethods.js.map +0 -1
- package/dist/commonjs/funcs/customerPortalDownloadablesGet.d.ts +0 -15
- package/dist/commonjs/funcs/customerPortalDownloadablesGet.d.ts.map +0 -1
- package/dist/commonjs/funcs/customerPortalDownloadablesGet.js +0 -107
- package/dist/commonjs/funcs/customerPortalDownloadablesGet.js.map +0 -1
- package/dist/commonjs/funcs/oauth2ClientsCreate.d.ts +0 -18
- package/dist/commonjs/funcs/oauth2ClientsCreate.d.ts.map +0 -1
- package/dist/commonjs/funcs/oauth2ClientsCreate.js +0 -109
- package/dist/commonjs/funcs/oauth2ClientsCreate.js.map +0 -1
- package/dist/commonjs/funcs/oauth2ClientsDelete.d.ts +0 -18
- package/dist/commonjs/funcs/oauth2ClientsDelete.d.ts.map +0 -1
- package/dist/commonjs/funcs/oauth2ClientsDelete.js +0 -114
- package/dist/commonjs/funcs/oauth2ClientsDelete.js.map +0 -1
- package/dist/commonjs/funcs/oauth2ClientsGet.d.ts +0 -18
- package/dist/commonjs/funcs/oauth2ClientsGet.d.ts.map +0 -1
- package/dist/commonjs/funcs/oauth2ClientsGet.js +0 -114
- package/dist/commonjs/funcs/oauth2ClientsGet.js.map +0 -1
- package/dist/commonjs/funcs/oauth2ClientsList.d.ts +0 -21
- package/dist/commonjs/funcs/oauth2ClientsList.d.ts.map +0 -1
- package/dist/commonjs/funcs/oauth2ClientsList.js +0 -147
- package/dist/commonjs/funcs/oauth2ClientsList.js.map +0 -1
- package/dist/commonjs/funcs/oauth2ClientsUpdate.d.ts +0 -18
- package/dist/commonjs/funcs/oauth2ClientsUpdate.d.ts.map +0 -1
- package/dist/commonjs/funcs/oauth2ClientsUpdate.js +0 -117
- package/dist/commonjs/funcs/oauth2ClientsUpdate.js.map +0 -1
- package/dist/commonjs/models/components/checkoutcustomerbillingaddressfields.d.ts +0 -39
- package/dist/commonjs/models/components/checkoutcustomerbillingaddressfields.d.ts.map +0 -1
- package/dist/commonjs/models/components/checkoutcustomerbillingaddressfields.js +0 -78
- package/dist/commonjs/models/components/checkoutcustomerbillingaddressfields.js.map +0 -1
- package/dist/commonjs/models/components/listresourceoauth2client.d.ts +0 -33
- package/dist/commonjs/models/components/listresourceoauth2client.d.ts.map +0 -1
- package/dist/commonjs/models/components/listresourceoauth2client.js +0 -63
- package/dist/commonjs/models/components/listresourceoauth2client.js.map +0 -1
- package/dist/commonjs/models/components/oauth2client.d.ts +0 -119
- package/dist/commonjs/models/components/oauth2client.d.ts.map +0 -1
- package/dist/commonjs/models/components/oauth2client.js +0 -166
- package/dist/commonjs/models/components/oauth2client.js.map +0 -1
- package/dist/commonjs/models/components/oauth2clientconfiguration.d.ts +0 -101
- package/dist/commonjs/models/components/oauth2clientconfiguration.d.ts.map +0 -1
- package/dist/commonjs/models/components/oauth2clientconfiguration.js +0 -144
- package/dist/commonjs/models/components/oauth2clientconfiguration.js.map +0 -1
- package/dist/commonjs/models/components/oauth2clientconfigurationupdate.d.ts +0 -103
- package/dist/commonjs/models/components/oauth2clientconfigurationupdate.d.ts.map +0 -1
- package/dist/commonjs/models/components/oauth2clientconfigurationupdate.js +0 -150
- package/dist/commonjs/models/components/oauth2clientconfigurationupdate.js.map +0 -1
- package/dist/commonjs/models/components/paymentmethodcarddata.d.ts +0 -37
- package/dist/commonjs/models/components/paymentmethodcarddata.d.ts.map +0 -1
- package/dist/commonjs/models/components/paymentmethodcarddata.js.map +0 -1
- package/dist/commonjs/models/operations/customerportalcustomersgetpaymentmethods.d.ts +0 -88
- package/dist/commonjs/models/operations/customerportalcustomersgetpaymentmethods.d.ts.map +0 -1
- package/dist/commonjs/models/operations/customerportalcustomersgetpaymentmethods.js +0 -133
- package/dist/commonjs/models/operations/customerportalcustomersgetpaymentmethods.js.map +0 -1
- package/dist/commonjs/models/operations/customerportaldownloadablescustomerportaldownloadablesget.d.ts +0 -29
- package/dist/commonjs/models/operations/customerportaldownloadablescustomerportaldownloadablesget.d.ts.map +0 -1
- package/dist/commonjs/models/operations/customerportaldownloadablescustomerportaldownloadablesget.js +0 -61
- package/dist/commonjs/models/operations/customerportaldownloadablescustomerportaldownloadablesget.js.map +0 -1
- package/dist/commonjs/models/operations/oauth2clientslist.d.ts +0 -63
- package/dist/commonjs/models/operations/oauth2clientslist.d.ts.map +0 -1
- package/dist/commonjs/models/operations/oauth2clientslist.js +0 -98
- package/dist/commonjs/models/operations/oauth2clientslist.js.map +0 -1
- package/dist/commonjs/models/operations/oauth2clientsoauth2deleteclient.d.ts +0 -29
- package/dist/commonjs/models/operations/oauth2clientsoauth2deleteclient.d.ts.map +0 -1
- package/dist/commonjs/models/operations/oauth2clientsoauth2deleteclient.js +0 -68
- package/dist/commonjs/models/operations/oauth2clientsoauth2deleteclient.js.map +0 -1
- package/dist/commonjs/models/operations/oauth2clientsoauth2getclient.d.ts +0 -29
- package/dist/commonjs/models/operations/oauth2clientsoauth2getclient.d.ts.map +0 -1
- package/dist/commonjs/models/operations/oauth2clientsoauth2getclient.js +0 -68
- package/dist/commonjs/models/operations/oauth2clientsoauth2getclient.js.map +0 -1
- package/dist/commonjs/models/operations/oauth2clientsoauth2updateclient.d.ts +0 -32
- package/dist/commonjs/models/operations/oauth2clientsoauth2updateclient.d.ts.map +0 -1
- package/dist/commonjs/models/operations/oauth2clientsoauth2updateclient.js +0 -73
- package/dist/commonjs/models/operations/oauth2clientsoauth2updateclient.js.map +0 -1
- package/dist/commonjs/sdk/clients.d.ts +0 -47
- package/dist/commonjs/sdk/clients.d.ts.map +0 -1
- package/dist/commonjs/sdk/clients.js +0 -63
- package/dist/commonjs/sdk/clients.js.map +0 -1
- package/dist/esm/funcs/customerPortalCustomersGetPaymentMethods.d.ts.map +0 -1
- package/dist/esm/funcs/customerPortalCustomersGetPaymentMethods.js.map +0 -1
- package/dist/esm/funcs/customerPortalDownloadablesGet.d.ts +0 -15
- package/dist/esm/funcs/customerPortalDownloadablesGet.d.ts.map +0 -1
- package/dist/esm/funcs/customerPortalDownloadablesGet.js +0 -81
- package/dist/esm/funcs/customerPortalDownloadablesGet.js.map +0 -1
- package/dist/esm/funcs/oauth2ClientsCreate.d.ts +0 -18
- package/dist/esm/funcs/oauth2ClientsCreate.d.ts.map +0 -1
- package/dist/esm/funcs/oauth2ClientsCreate.js +0 -83
- package/dist/esm/funcs/oauth2ClientsCreate.js.map +0 -1
- package/dist/esm/funcs/oauth2ClientsDelete.d.ts +0 -18
- package/dist/esm/funcs/oauth2ClientsDelete.d.ts.map +0 -1
- package/dist/esm/funcs/oauth2ClientsDelete.js +0 -88
- package/dist/esm/funcs/oauth2ClientsDelete.js.map +0 -1
- package/dist/esm/funcs/oauth2ClientsGet.d.ts +0 -18
- package/dist/esm/funcs/oauth2ClientsGet.d.ts.map +0 -1
- package/dist/esm/funcs/oauth2ClientsGet.js +0 -88
- package/dist/esm/funcs/oauth2ClientsGet.js.map +0 -1
- package/dist/esm/funcs/oauth2ClientsList.d.ts +0 -21
- package/dist/esm/funcs/oauth2ClientsList.d.ts.map +0 -1
- package/dist/esm/funcs/oauth2ClientsList.js +0 -121
- package/dist/esm/funcs/oauth2ClientsList.js.map +0 -1
- package/dist/esm/funcs/oauth2ClientsUpdate.d.ts +0 -18
- package/dist/esm/funcs/oauth2ClientsUpdate.d.ts.map +0 -1
- package/dist/esm/funcs/oauth2ClientsUpdate.js +0 -91
- package/dist/esm/funcs/oauth2ClientsUpdate.js.map +0 -1
- package/dist/esm/models/components/checkoutcustomerbillingaddressfields.d.ts +0 -39
- package/dist/esm/models/components/checkoutcustomerbillingaddressfields.d.ts.map +0 -1
- package/dist/esm/models/components/checkoutcustomerbillingaddressfields.js +0 -50
- package/dist/esm/models/components/checkoutcustomerbillingaddressfields.js.map +0 -1
- package/dist/esm/models/components/listresourceoauth2client.d.ts +0 -33
- package/dist/esm/models/components/listresourceoauth2client.d.ts.map +0 -1
- package/dist/esm/models/components/listresourceoauth2client.js +0 -35
- package/dist/esm/models/components/listresourceoauth2client.js.map +0 -1
- package/dist/esm/models/components/oauth2client.d.ts +0 -119
- package/dist/esm/models/components/oauth2client.d.ts.map +0 -1
- package/dist/esm/models/components/oauth2client.js +0 -138
- package/dist/esm/models/components/oauth2client.js.map +0 -1
- package/dist/esm/models/components/oauth2clientconfiguration.d.ts +0 -101
- package/dist/esm/models/components/oauth2clientconfiguration.d.ts.map +0 -1
- package/dist/esm/models/components/oauth2clientconfiguration.js +0 -116
- package/dist/esm/models/components/oauth2clientconfiguration.js.map +0 -1
- package/dist/esm/models/components/oauth2clientconfigurationupdate.d.ts +0 -103
- package/dist/esm/models/components/oauth2clientconfigurationupdate.d.ts.map +0 -1
- package/dist/esm/models/components/oauth2clientconfigurationupdate.js +0 -122
- package/dist/esm/models/components/oauth2clientconfigurationupdate.js.map +0 -1
- package/dist/esm/models/components/paymentmethodcarddata.d.ts +0 -37
- package/dist/esm/models/components/paymentmethodcarddata.d.ts.map +0 -1
- package/dist/esm/models/components/paymentmethodcarddata.js +0 -50
- package/dist/esm/models/components/paymentmethodcarddata.js.map +0 -1
- package/dist/esm/models/operations/customerportalcustomersgetpaymentmethods.d.ts +0 -88
- package/dist/esm/models/operations/customerportalcustomersgetpaymentmethods.d.ts.map +0 -1
- package/dist/esm/models/operations/customerportalcustomersgetpaymentmethods.js +0 -101
- package/dist/esm/models/operations/customerportalcustomersgetpaymentmethods.js.map +0 -1
- package/dist/esm/models/operations/customerportaldownloadablescustomerportaldownloadablesget.d.ts +0 -29
- package/dist/esm/models/operations/customerportaldownloadablescustomerportaldownloadablesget.d.ts.map +0 -1
- package/dist/esm/models/operations/customerportaldownloadablescustomerportaldownloadablesget.js +0 -33
- package/dist/esm/models/operations/customerportaldownloadablescustomerportaldownloadablesget.js.map +0 -1
- package/dist/esm/models/operations/oauth2clientslist.d.ts +0 -63
- package/dist/esm/models/operations/oauth2clientslist.d.ts.map +0 -1
- package/dist/esm/models/operations/oauth2clientslist.js +0 -68
- package/dist/esm/models/operations/oauth2clientslist.js.map +0 -1
- package/dist/esm/models/operations/oauth2clientsoauth2deleteclient.d.ts +0 -29
- package/dist/esm/models/operations/oauth2clientsoauth2deleteclient.d.ts.map +0 -1
- package/dist/esm/models/operations/oauth2clientsoauth2deleteclient.js +0 -40
- package/dist/esm/models/operations/oauth2clientsoauth2deleteclient.js.map +0 -1
- package/dist/esm/models/operations/oauth2clientsoauth2getclient.d.ts +0 -29
- package/dist/esm/models/operations/oauth2clientsoauth2getclient.d.ts.map +0 -1
- package/dist/esm/models/operations/oauth2clientsoauth2getclient.js +0 -40
- package/dist/esm/models/operations/oauth2clientsoauth2getclient.js.map +0 -1
- package/dist/esm/models/operations/oauth2clientsoauth2updateclient.d.ts +0 -32
- package/dist/esm/models/operations/oauth2clientsoauth2updateclient.d.ts.map +0 -1
- package/dist/esm/models/operations/oauth2clientsoauth2updateclient.js +0 -45
- package/dist/esm/models/operations/oauth2clientsoauth2updateclient.js.map +0 -1
- package/dist/esm/sdk/clients.d.ts +0 -47
- package/dist/esm/sdk/clients.d.ts.map +0 -1
- package/dist/esm/sdk/clients.js +0 -59
- package/dist/esm/sdk/clients.js.map +0 -1
- package/docs/sdks/clients/README.md +0 -401
- package/src/funcs/customerPortalDownloadablesGet.ts +0 -179
- package/src/funcs/oauth2ClientsCreate.ts +0 -176
- package/src/funcs/oauth2ClientsDelete.ts +0 -183
- package/src/funcs/oauth2ClientsGet.ts +0 -182
- package/src/funcs/oauth2ClientsList.ts +0 -255
- package/src/funcs/oauth2ClientsUpdate.ts +0 -186
- package/src/models/components/checkoutcustomerbillingaddressfields.ts +0 -100
- package/src/models/components/listresourceoauth2client.ts +0 -82
- package/src/models/components/oauth2client.ts +0 -231
- package/src/models/components/oauth2clientconfiguration.ts +0 -205
- package/src/models/components/oauth2clientconfigurationupdate.ts +0 -213
- package/src/models/operations/customerportalcustomersgetpaymentmethods.ts +0 -259
- package/src/models/operations/customerportaldownloadablescustomerportaldownloadablesget.ts +0 -79
- package/src/models/operations/oauth2clientslist.ts +0 -149
- package/src/models/operations/oauth2clientsoauth2deleteclient.ts +0 -81
- package/src/models/operations/oauth2clientsoauth2getclient.ts +0 -80
- package/src/models/operations/oauth2clientsoauth2updateclient.ts +0 -95
- package/src/sdk/clients.ts +0 -107
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
BillingAddressFieldMode,
|
|
12
|
+
BillingAddressFieldMode$inboundSchema,
|
|
13
|
+
BillingAddressFieldMode$outboundSchema,
|
|
14
|
+
} from "./billingaddressfieldmode.js";
|
|
15
|
+
|
|
16
|
+
export type CheckoutBillingAddressFields = {
|
|
17
|
+
country: BillingAddressFieldMode;
|
|
18
|
+
state: BillingAddressFieldMode;
|
|
19
|
+
city: BillingAddressFieldMode;
|
|
20
|
+
postalCode: BillingAddressFieldMode;
|
|
21
|
+
line1: BillingAddressFieldMode;
|
|
22
|
+
line2: BillingAddressFieldMode;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const CheckoutBillingAddressFields$inboundSchema: z.ZodType<
|
|
27
|
+
CheckoutBillingAddressFields,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
country: BillingAddressFieldMode$inboundSchema,
|
|
32
|
+
state: BillingAddressFieldMode$inboundSchema,
|
|
33
|
+
city: BillingAddressFieldMode$inboundSchema,
|
|
34
|
+
postal_code: BillingAddressFieldMode$inboundSchema,
|
|
35
|
+
line1: BillingAddressFieldMode$inboundSchema,
|
|
36
|
+
line2: BillingAddressFieldMode$inboundSchema,
|
|
37
|
+
}).transform((v) => {
|
|
38
|
+
return remap$(v, {
|
|
39
|
+
"postal_code": "postalCode",
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type CheckoutBillingAddressFields$Outbound = {
|
|
45
|
+
country: string;
|
|
46
|
+
state: string;
|
|
47
|
+
city: string;
|
|
48
|
+
postal_code: string;
|
|
49
|
+
line1: string;
|
|
50
|
+
line2: string;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const CheckoutBillingAddressFields$outboundSchema: z.ZodType<
|
|
55
|
+
CheckoutBillingAddressFields$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
CheckoutBillingAddressFields
|
|
58
|
+
> = z.object({
|
|
59
|
+
country: BillingAddressFieldMode$outboundSchema,
|
|
60
|
+
state: BillingAddressFieldMode$outboundSchema,
|
|
61
|
+
city: BillingAddressFieldMode$outboundSchema,
|
|
62
|
+
postalCode: BillingAddressFieldMode$outboundSchema,
|
|
63
|
+
line1: BillingAddressFieldMode$outboundSchema,
|
|
64
|
+
line2: BillingAddressFieldMode$outboundSchema,
|
|
65
|
+
}).transform((v) => {
|
|
66
|
+
return remap$(v, {
|
|
67
|
+
postalCode: "postal_code",
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @internal
|
|
73
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
74
|
+
*/
|
|
75
|
+
export namespace CheckoutBillingAddressFields$ {
|
|
76
|
+
/** @deprecated use `CheckoutBillingAddressFields$inboundSchema` instead. */
|
|
77
|
+
export const inboundSchema = CheckoutBillingAddressFields$inboundSchema;
|
|
78
|
+
/** @deprecated use `CheckoutBillingAddressFields$outboundSchema` instead. */
|
|
79
|
+
export const outboundSchema = CheckoutBillingAddressFields$outboundSchema;
|
|
80
|
+
/** @deprecated use `CheckoutBillingAddressFields$Outbound` instead. */
|
|
81
|
+
export type Outbound = CheckoutBillingAddressFields$Outbound;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function checkoutBillingAddressFieldsToJSON(
|
|
85
|
+
checkoutBillingAddressFields: CheckoutBillingAddressFields,
|
|
86
|
+
): string {
|
|
87
|
+
return JSON.stringify(
|
|
88
|
+
CheckoutBillingAddressFields$outboundSchema.parse(
|
|
89
|
+
checkoutBillingAddressFields,
|
|
90
|
+
),
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function checkoutBillingAddressFieldsFromJSON(
|
|
95
|
+
jsonString: string,
|
|
96
|
+
): SafeParseResult<CheckoutBillingAddressFields, SDKValidationError> {
|
|
97
|
+
return safeParse(
|
|
98
|
+
jsonString,
|
|
99
|
+
(x) => CheckoutBillingAddressFields$inboundSchema.parse(JSON.parse(x)),
|
|
100
|
+
`Failed to parse 'CheckoutBillingAddressFields' from JSON`,
|
|
101
|
+
);
|
|
102
|
+
}
|
|
@@ -20,11 +20,11 @@ import {
|
|
|
20
20
|
AttachedCustomField$outboundSchema,
|
|
21
21
|
} from "./attachedcustomfield.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
23
|
+
CheckoutBillingAddressFields,
|
|
24
|
+
CheckoutBillingAddressFields$inboundSchema,
|
|
25
|
+
CheckoutBillingAddressFields$Outbound,
|
|
26
|
+
CheckoutBillingAddressFields$outboundSchema,
|
|
27
|
+
} from "./checkoutbillingaddressfields.js";
|
|
28
28
|
import {
|
|
29
29
|
CheckoutDiscountFixedOnceForeverDuration,
|
|
30
30
|
CheckoutDiscountFixedOnceForeverDuration$inboundSchema,
|
|
@@ -225,7 +225,7 @@ export type CheckoutPublic = {
|
|
|
225
225
|
customerBillingAddress: Address | null;
|
|
226
226
|
customerTaxId: string | null;
|
|
227
227
|
paymentProcessorMetadata: { [k: string]: string };
|
|
228
|
-
|
|
228
|
+
billingAddressFields: CheckoutBillingAddressFields;
|
|
229
229
|
/**
|
|
230
230
|
* List of products available to select.
|
|
231
231
|
*/
|
|
@@ -483,8 +483,7 @@ 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
|
-
|
|
487
|
-
CheckoutCustomerBillingAddressFields$inboundSchema,
|
|
486
|
+
billing_address_fields: CheckoutBillingAddressFields$inboundSchema,
|
|
488
487
|
products: z.array(CheckoutProduct$inboundSchema),
|
|
489
488
|
product: CheckoutProduct$inboundSchema,
|
|
490
489
|
product_price: z.union([
|
|
@@ -534,7 +533,7 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
|
|
|
534
533
|
"customer_billing_address": "customerBillingAddress",
|
|
535
534
|
"customer_tax_id": "customerTaxId",
|
|
536
535
|
"payment_processor_metadata": "paymentProcessorMetadata",
|
|
537
|
-
"
|
|
536
|
+
"billing_address_fields": "billingAddressFields",
|
|
538
537
|
"product_price": "productPrice",
|
|
539
538
|
"attached_custom_fields": "attachedCustomFields",
|
|
540
539
|
});
|
|
@@ -580,8 +579,7 @@ export type CheckoutPublic$Outbound = {
|
|
|
580
579
|
customer_billing_address: Address$Outbound | null;
|
|
581
580
|
customer_tax_id: string | null;
|
|
582
581
|
payment_processor_metadata: { [k: string]: string };
|
|
583
|
-
|
|
584
|
-
CheckoutCustomerBillingAddressFields$Outbound;
|
|
582
|
+
billing_address_fields: CheckoutBillingAddressFields$Outbound;
|
|
585
583
|
products: Array<CheckoutProduct$Outbound>;
|
|
586
584
|
product: CheckoutProduct$Outbound;
|
|
587
585
|
product_price: LegacyRecurringProductPrice$Outbound | ProductPrice$Outbound;
|
|
@@ -646,8 +644,7 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
|
|
|
646
644
|
customerBillingAddress: z.nullable(Address$outboundSchema),
|
|
647
645
|
customerTaxId: z.nullable(z.string()),
|
|
648
646
|
paymentProcessorMetadata: z.record(z.string()),
|
|
649
|
-
|
|
650
|
-
CheckoutCustomerBillingAddressFields$outboundSchema,
|
|
647
|
+
billingAddressFields: CheckoutBillingAddressFields$outboundSchema,
|
|
651
648
|
products: z.array(CheckoutProduct$outboundSchema),
|
|
652
649
|
product: CheckoutProduct$outboundSchema,
|
|
653
650
|
productPrice: z.union([
|
|
@@ -697,7 +694,7 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
|
|
|
697
694
|
customerBillingAddress: "customer_billing_address",
|
|
698
695
|
customerTaxId: "customer_tax_id",
|
|
699
696
|
paymentProcessorMetadata: "payment_processor_metadata",
|
|
700
|
-
|
|
697
|
+
billingAddressFields: "billing_address_fields",
|
|
701
698
|
productPrice: "product_price",
|
|
702
699
|
attachedCustomFields: "attached_custom_fields",
|
|
703
700
|
});
|
|
@@ -20,11 +20,11 @@ import {
|
|
|
20
20
|
AttachedCustomField$outboundSchema,
|
|
21
21
|
} from "./attachedcustomfield.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
23
|
+
CheckoutBillingAddressFields,
|
|
24
|
+
CheckoutBillingAddressFields$inboundSchema,
|
|
25
|
+
CheckoutBillingAddressFields$Outbound,
|
|
26
|
+
CheckoutBillingAddressFields$outboundSchema,
|
|
27
|
+
} from "./checkoutbillingaddressfields.js";
|
|
28
28
|
import {
|
|
29
29
|
CheckoutDiscountFixedOnceForeverDuration,
|
|
30
30
|
CheckoutDiscountFixedOnceForeverDuration$inboundSchema,
|
|
@@ -229,7 +229,7 @@ export type CheckoutPublicConfirmed = {
|
|
|
229
229
|
customerBillingAddress: Address | null;
|
|
230
230
|
customerTaxId: string | null;
|
|
231
231
|
paymentProcessorMetadata: { [k: string]: string };
|
|
232
|
-
|
|
232
|
+
billingAddressFields: CheckoutBillingAddressFields;
|
|
233
233
|
/**
|
|
234
234
|
* List of products available to select.
|
|
235
235
|
*/
|
|
@@ -499,8 +499,7 @@ 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
|
-
|
|
503
|
-
CheckoutCustomerBillingAddressFields$inboundSchema,
|
|
502
|
+
billing_address_fields: CheckoutBillingAddressFields$inboundSchema,
|
|
504
503
|
products: z.array(CheckoutProduct$inboundSchema),
|
|
505
504
|
product: CheckoutProduct$inboundSchema,
|
|
506
505
|
product_price: z.union([
|
|
@@ -551,7 +550,7 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
|
|
|
551
550
|
"customer_billing_address": "customerBillingAddress",
|
|
552
551
|
"customer_tax_id": "customerTaxId",
|
|
553
552
|
"payment_processor_metadata": "paymentProcessorMetadata",
|
|
554
|
-
"
|
|
553
|
+
"billing_address_fields": "billingAddressFields",
|
|
555
554
|
"product_price": "productPrice",
|
|
556
555
|
"attached_custom_fields": "attachedCustomFields",
|
|
557
556
|
"customer_session_token": "customerSessionToken",
|
|
@@ -598,8 +597,7 @@ export type CheckoutPublicConfirmed$Outbound = {
|
|
|
598
597
|
customer_billing_address: Address$Outbound | null;
|
|
599
598
|
customer_tax_id: string | null;
|
|
600
599
|
payment_processor_metadata: { [k: string]: string };
|
|
601
|
-
|
|
602
|
-
CheckoutCustomerBillingAddressFields$Outbound;
|
|
600
|
+
billing_address_fields: CheckoutBillingAddressFields$Outbound;
|
|
603
601
|
products: Array<CheckoutProduct$Outbound>;
|
|
604
602
|
product: CheckoutProduct$Outbound;
|
|
605
603
|
product_price: LegacyRecurringProductPrice$Outbound | ProductPrice$Outbound;
|
|
@@ -665,8 +663,7 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
|
|
|
665
663
|
customerBillingAddress: z.nullable(Address$outboundSchema),
|
|
666
664
|
customerTaxId: z.nullable(z.string()),
|
|
667
665
|
paymentProcessorMetadata: z.record(z.string()),
|
|
668
|
-
|
|
669
|
-
CheckoutCustomerBillingAddressFields$outboundSchema,
|
|
666
|
+
billingAddressFields: CheckoutBillingAddressFields$outboundSchema,
|
|
670
667
|
products: z.array(CheckoutProduct$outboundSchema),
|
|
671
668
|
product: CheckoutProduct$outboundSchema,
|
|
672
669
|
productPrice: z.union([
|
|
@@ -717,7 +714,7 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
|
|
|
717
714
|
customerBillingAddress: "customer_billing_address",
|
|
718
715
|
customerTaxId: "customer_tax_id",
|
|
719
716
|
paymentProcessorMetadata: "payment_processor_metadata",
|
|
720
|
-
|
|
717
|
+
billingAddressFields: "billing_address_fields",
|
|
721
718
|
productPrice: "product_price",
|
|
722
719
|
attachedCustomFields: "attached_custom_fields",
|
|
723
720
|
customerSessionToken: "customer_session_token",
|
|
@@ -46,6 +46,7 @@ export type CustomerPortalCustomer = {
|
|
|
46
46
|
billingAddress: Address | null;
|
|
47
47
|
taxId: Array<string | TaxIDFormat | null> | null;
|
|
48
48
|
oauthAccounts: { [k: string]: CustomerPortalOAuthAccount };
|
|
49
|
+
defaultPaymentMethodId?: string | null | undefined;
|
|
49
50
|
};
|
|
50
51
|
|
|
51
52
|
/** @internal */
|
|
@@ -117,6 +118,7 @@ export const CustomerPortalCustomer$inboundSchema: z.ZodType<
|
|
|
117
118
|
z.array(z.nullable(z.union([z.string(), TaxIDFormat$inboundSchema]))),
|
|
118
119
|
),
|
|
119
120
|
oauth_accounts: z.record(CustomerPortalOAuthAccount$inboundSchema),
|
|
121
|
+
default_payment_method_id: z.nullable(z.string()).optional(),
|
|
120
122
|
}).transform((v) => {
|
|
121
123
|
return remap$(v, {
|
|
122
124
|
"created_at": "createdAt",
|
|
@@ -125,6 +127,7 @@ export const CustomerPortalCustomer$inboundSchema: z.ZodType<
|
|
|
125
127
|
"billing_address": "billingAddress",
|
|
126
128
|
"tax_id": "taxId",
|
|
127
129
|
"oauth_accounts": "oauthAccounts",
|
|
130
|
+
"default_payment_method_id": "defaultPaymentMethodId",
|
|
128
131
|
});
|
|
129
132
|
});
|
|
130
133
|
|
|
@@ -139,6 +142,7 @@ export type CustomerPortalCustomer$Outbound = {
|
|
|
139
142
|
billing_address: Address$Outbound | null;
|
|
140
143
|
tax_id: Array<string | string | null> | null;
|
|
141
144
|
oauth_accounts: { [k: string]: CustomerPortalOAuthAccount$Outbound };
|
|
145
|
+
default_payment_method_id?: string | null | undefined;
|
|
142
146
|
};
|
|
143
147
|
|
|
144
148
|
/** @internal */
|
|
@@ -158,6 +162,7 @@ export const CustomerPortalCustomer$outboundSchema: z.ZodType<
|
|
|
158
162
|
z.array(z.nullable(z.union([z.string(), TaxIDFormat$outboundSchema]))),
|
|
159
163
|
),
|
|
160
164
|
oauthAccounts: z.record(CustomerPortalOAuthAccount$outboundSchema),
|
|
165
|
+
defaultPaymentMethodId: z.nullable(z.string()).optional(),
|
|
161
166
|
}).transform((v) => {
|
|
162
167
|
return remap$(v, {
|
|
163
168
|
createdAt: "created_at",
|
|
@@ -166,6 +171,7 @@ export const CustomerPortalCustomer$outboundSchema: z.ZodType<
|
|
|
166
171
|
billingAddress: "billing_address",
|
|
167
172
|
taxId: "tax_id",
|
|
168
173
|
oauthAccounts: "oauth_accounts",
|
|
174
|
+
defaultPaymentMethodId: "default_payment_method_id",
|
|
169
175
|
});
|
|
170
176
|
});
|
|
171
177
|
|
|
@@ -13,6 +13,12 @@ import {
|
|
|
13
13
|
OrganizationFeatureSettings$Outbound,
|
|
14
14
|
OrganizationFeatureSettings$outboundSchema,
|
|
15
15
|
} from "./organizationfeaturesettings.js";
|
|
16
|
+
import {
|
|
17
|
+
OrganizationNotificationSettings,
|
|
18
|
+
OrganizationNotificationSettings$inboundSchema,
|
|
19
|
+
OrganizationNotificationSettings$Outbound,
|
|
20
|
+
OrganizationNotificationSettings$outboundSchema,
|
|
21
|
+
} from "./organizationnotificationsettings.js";
|
|
16
22
|
import {
|
|
17
23
|
OrganizationSocialLink,
|
|
18
24
|
OrganizationSocialLink$inboundSchema,
|
|
@@ -72,6 +78,7 @@ export type Organization = {
|
|
|
72
78
|
*/
|
|
73
79
|
featureSettings: OrganizationFeatureSettings | null;
|
|
74
80
|
subscriptionSettings: OrganizationSubscriptionSettings;
|
|
81
|
+
notificationSettings: OrganizationNotificationSettings;
|
|
75
82
|
};
|
|
76
83
|
|
|
77
84
|
/** @internal */
|
|
@@ -96,6 +103,7 @@ export const Organization$inboundSchema: z.ZodType<
|
|
|
96
103
|
),
|
|
97
104
|
feature_settings: z.nullable(OrganizationFeatureSettings$inboundSchema),
|
|
98
105
|
subscription_settings: OrganizationSubscriptionSettings$inboundSchema,
|
|
106
|
+
notification_settings: OrganizationNotificationSettings$inboundSchema,
|
|
99
107
|
}).transform((v) => {
|
|
100
108
|
return remap$(v, {
|
|
101
109
|
"created_at": "createdAt",
|
|
@@ -104,6 +112,7 @@ export const Organization$inboundSchema: z.ZodType<
|
|
|
104
112
|
"details_submitted_at": "detailsSubmittedAt",
|
|
105
113
|
"feature_settings": "featureSettings",
|
|
106
114
|
"subscription_settings": "subscriptionSettings",
|
|
115
|
+
"notification_settings": "notificationSettings",
|
|
107
116
|
});
|
|
108
117
|
});
|
|
109
118
|
|
|
@@ -121,6 +130,7 @@ export type Organization$Outbound = {
|
|
|
121
130
|
details_submitted_at: string | null;
|
|
122
131
|
feature_settings: OrganizationFeatureSettings$Outbound | null;
|
|
123
132
|
subscription_settings: OrganizationSubscriptionSettings$Outbound;
|
|
133
|
+
notification_settings: OrganizationNotificationSettings$Outbound;
|
|
124
134
|
};
|
|
125
135
|
|
|
126
136
|
/** @internal */
|
|
@@ -141,6 +151,7 @@ export const Organization$outboundSchema: z.ZodType<
|
|
|
141
151
|
detailsSubmittedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
142
152
|
featureSettings: z.nullable(OrganizationFeatureSettings$outboundSchema),
|
|
143
153
|
subscriptionSettings: OrganizationSubscriptionSettings$outboundSchema,
|
|
154
|
+
notificationSettings: OrganizationNotificationSettings$outboundSchema,
|
|
144
155
|
}).transform((v) => {
|
|
145
156
|
return remap$(v, {
|
|
146
157
|
createdAt: "created_at",
|
|
@@ -149,6 +160,7 @@ export const Organization$outboundSchema: z.ZodType<
|
|
|
149
160
|
detailsSubmittedAt: "details_submitted_at",
|
|
150
161
|
featureSettings: "feature_settings",
|
|
151
162
|
subscriptionSettings: "subscription_settings",
|
|
163
|
+
notificationSettings: "notification_settings",
|
|
152
164
|
});
|
|
153
165
|
});
|
|
154
166
|
|
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
OrganizationFeatureSettings$Outbound,
|
|
20
20
|
OrganizationFeatureSettings$outboundSchema,
|
|
21
21
|
} from "./organizationfeaturesettings.js";
|
|
22
|
+
import {
|
|
23
|
+
OrganizationNotificationSettings,
|
|
24
|
+
OrganizationNotificationSettings$inboundSchema,
|
|
25
|
+
OrganizationNotificationSettings$Outbound,
|
|
26
|
+
OrganizationNotificationSettings$outboundSchema,
|
|
27
|
+
} from "./organizationnotificationsettings.js";
|
|
22
28
|
import {
|
|
23
29
|
OrganizationSocialLink,
|
|
24
30
|
OrganizationSocialLink$inboundSchema,
|
|
@@ -54,6 +60,7 @@ export type OrganizationCreate = {
|
|
|
54
60
|
details?: OrganizationDetails | null | undefined;
|
|
55
61
|
featureSettings?: OrganizationFeatureSettings | null | undefined;
|
|
56
62
|
subscriptionSettings?: OrganizationSubscriptionSettings | null | undefined;
|
|
63
|
+
notificationSettings?: OrganizationNotificationSettings | null | undefined;
|
|
57
64
|
};
|
|
58
65
|
|
|
59
66
|
/** @internal */
|
|
@@ -74,11 +81,15 @@ export const OrganizationCreate$inboundSchema: z.ZodType<
|
|
|
74
81
|
subscription_settings: z.nullable(
|
|
75
82
|
OrganizationSubscriptionSettings$inboundSchema,
|
|
76
83
|
).optional(),
|
|
84
|
+
notification_settings: z.nullable(
|
|
85
|
+
OrganizationNotificationSettings$inboundSchema,
|
|
86
|
+
).optional(),
|
|
77
87
|
}).transform((v) => {
|
|
78
88
|
return remap$(v, {
|
|
79
89
|
"avatar_url": "avatarUrl",
|
|
80
90
|
"feature_settings": "featureSettings",
|
|
81
91
|
"subscription_settings": "subscriptionSettings",
|
|
92
|
+
"notification_settings": "notificationSettings",
|
|
82
93
|
});
|
|
83
94
|
});
|
|
84
95
|
|
|
@@ -96,6 +107,10 @@ export type OrganizationCreate$Outbound = {
|
|
|
96
107
|
| OrganizationSubscriptionSettings$Outbound
|
|
97
108
|
| null
|
|
98
109
|
| undefined;
|
|
110
|
+
notification_settings?:
|
|
111
|
+
| OrganizationNotificationSettings$Outbound
|
|
112
|
+
| null
|
|
113
|
+
| undefined;
|
|
99
114
|
};
|
|
100
115
|
|
|
101
116
|
/** @internal */
|
|
@@ -117,11 +132,15 @@ export const OrganizationCreate$outboundSchema: z.ZodType<
|
|
|
117
132
|
subscriptionSettings: z.nullable(
|
|
118
133
|
OrganizationSubscriptionSettings$outboundSchema,
|
|
119
134
|
).optional(),
|
|
135
|
+
notificationSettings: z.nullable(
|
|
136
|
+
OrganizationNotificationSettings$outboundSchema,
|
|
137
|
+
).optional(),
|
|
120
138
|
}).transform((v) => {
|
|
121
139
|
return remap$(v, {
|
|
122
140
|
avatarUrl: "avatar_url",
|
|
123
141
|
featureSettings: "feature_settings",
|
|
124
142
|
subscriptionSettings: "subscription_settings",
|
|
143
|
+
notificationSettings: "notification_settings",
|
|
125
144
|
});
|
|
126
145
|
});
|
|
127
146
|
|
|
@@ -13,10 +13,6 @@ export type OrganizationFeatureSettings = {
|
|
|
13
13
|
* If this organization has issue funding enabled
|
|
14
14
|
*/
|
|
15
15
|
issueFundingEnabled?: boolean | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* If this organization has usage-based billing enabled
|
|
18
|
-
*/
|
|
19
|
-
usageBasedBillingEnabled?: boolean | undefined;
|
|
20
16
|
};
|
|
21
17
|
|
|
22
18
|
/** @internal */
|
|
@@ -26,18 +22,15 @@ export const OrganizationFeatureSettings$inboundSchema: z.ZodType<
|
|
|
26
22
|
unknown
|
|
27
23
|
> = z.object({
|
|
28
24
|
issue_funding_enabled: z.boolean().default(false),
|
|
29
|
-
usage_based_billing_enabled: z.boolean().default(false),
|
|
30
25
|
}).transform((v) => {
|
|
31
26
|
return remap$(v, {
|
|
32
27
|
"issue_funding_enabled": "issueFundingEnabled",
|
|
33
|
-
"usage_based_billing_enabled": "usageBasedBillingEnabled",
|
|
34
28
|
});
|
|
35
29
|
});
|
|
36
30
|
|
|
37
31
|
/** @internal */
|
|
38
32
|
export type OrganizationFeatureSettings$Outbound = {
|
|
39
33
|
issue_funding_enabled: boolean;
|
|
40
|
-
usage_based_billing_enabled: boolean;
|
|
41
34
|
};
|
|
42
35
|
|
|
43
36
|
/** @internal */
|
|
@@ -47,11 +40,9 @@ export const OrganizationFeatureSettings$outboundSchema: z.ZodType<
|
|
|
47
40
|
OrganizationFeatureSettings
|
|
48
41
|
> = z.object({
|
|
49
42
|
issueFundingEnabled: z.boolean().default(false),
|
|
50
|
-
usageBasedBillingEnabled: z.boolean().default(false),
|
|
51
43
|
}).transform((v) => {
|
|
52
44
|
return remap$(v, {
|
|
53
45
|
issueFundingEnabled: "issue_funding_enabled",
|
|
54
|
-
usageBasedBillingEnabled: "usage_based_billing_enabled",
|
|
55
46
|
});
|
|
56
47
|
});
|
|
57
48
|
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type OrganizationNotificationSettings = {
|
|
12
|
+
newOrder: boolean;
|
|
13
|
+
newSubscription: boolean;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const OrganizationNotificationSettings$inboundSchema: z.ZodType<
|
|
18
|
+
OrganizationNotificationSettings,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
new_order: z.boolean(),
|
|
23
|
+
new_subscription: z.boolean(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"new_order": "newOrder",
|
|
27
|
+
"new_subscription": "newSubscription",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type OrganizationNotificationSettings$Outbound = {
|
|
33
|
+
new_order: boolean;
|
|
34
|
+
new_subscription: boolean;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const OrganizationNotificationSettings$outboundSchema: z.ZodType<
|
|
39
|
+
OrganizationNotificationSettings$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
OrganizationNotificationSettings
|
|
42
|
+
> = z.object({
|
|
43
|
+
newOrder: z.boolean(),
|
|
44
|
+
newSubscription: z.boolean(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
newOrder: "new_order",
|
|
48
|
+
newSubscription: "new_subscription",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
export namespace OrganizationNotificationSettings$ {
|
|
57
|
+
/** @deprecated use `OrganizationNotificationSettings$inboundSchema` instead. */
|
|
58
|
+
export const inboundSchema = OrganizationNotificationSettings$inboundSchema;
|
|
59
|
+
/** @deprecated use `OrganizationNotificationSettings$outboundSchema` instead. */
|
|
60
|
+
export const outboundSchema = OrganizationNotificationSettings$outboundSchema;
|
|
61
|
+
/** @deprecated use `OrganizationNotificationSettings$Outbound` instead. */
|
|
62
|
+
export type Outbound = OrganizationNotificationSettings$Outbound;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function organizationNotificationSettingsToJSON(
|
|
66
|
+
organizationNotificationSettings: OrganizationNotificationSettings,
|
|
67
|
+
): string {
|
|
68
|
+
return JSON.stringify(
|
|
69
|
+
OrganizationNotificationSettings$outboundSchema.parse(
|
|
70
|
+
organizationNotificationSettings,
|
|
71
|
+
),
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function organizationNotificationSettingsFromJSON(
|
|
76
|
+
jsonString: string,
|
|
77
|
+
): SafeParseResult<OrganizationNotificationSettings, SDKValidationError> {
|
|
78
|
+
return safeParse(
|
|
79
|
+
jsonString,
|
|
80
|
+
(x) => OrganizationNotificationSettings$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
+
`Failed to parse 'OrganizationNotificationSettings' from JSON`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
OrganizationFeatureSettings$Outbound,
|
|
20
20
|
OrganizationFeatureSettings$outboundSchema,
|
|
21
21
|
} from "./organizationfeaturesettings.js";
|
|
22
|
+
import {
|
|
23
|
+
OrganizationNotificationSettings,
|
|
24
|
+
OrganizationNotificationSettings$inboundSchema,
|
|
25
|
+
OrganizationNotificationSettings$Outbound,
|
|
26
|
+
OrganizationNotificationSettings$outboundSchema,
|
|
27
|
+
} from "./organizationnotificationsettings.js";
|
|
22
28
|
import {
|
|
23
29
|
OrganizationSocialLink,
|
|
24
30
|
OrganizationSocialLink$inboundSchema,
|
|
@@ -53,6 +59,7 @@ export type OrganizationUpdate = {
|
|
|
53
59
|
details?: OrganizationDetails | null | undefined;
|
|
54
60
|
featureSettings?: OrganizationFeatureSettings | null | undefined;
|
|
55
61
|
subscriptionSettings?: OrganizationSubscriptionSettings | null | undefined;
|
|
62
|
+
notificationSettings?: OrganizationNotificationSettings | null | undefined;
|
|
56
63
|
};
|
|
57
64
|
|
|
58
65
|
/** @internal */
|
|
@@ -72,11 +79,15 @@ export const OrganizationUpdate$inboundSchema: z.ZodType<
|
|
|
72
79
|
subscription_settings: z.nullable(
|
|
73
80
|
OrganizationSubscriptionSettings$inboundSchema,
|
|
74
81
|
).optional(),
|
|
82
|
+
notification_settings: z.nullable(
|
|
83
|
+
OrganizationNotificationSettings$inboundSchema,
|
|
84
|
+
).optional(),
|
|
75
85
|
}).transform((v) => {
|
|
76
86
|
return remap$(v, {
|
|
77
87
|
"avatar_url": "avatarUrl",
|
|
78
88
|
"feature_settings": "featureSettings",
|
|
79
89
|
"subscription_settings": "subscriptionSettings",
|
|
90
|
+
"notification_settings": "notificationSettings",
|
|
80
91
|
});
|
|
81
92
|
});
|
|
82
93
|
|
|
@@ -93,6 +104,10 @@ export type OrganizationUpdate$Outbound = {
|
|
|
93
104
|
| OrganizationSubscriptionSettings$Outbound
|
|
94
105
|
| null
|
|
95
106
|
| undefined;
|
|
107
|
+
notification_settings?:
|
|
108
|
+
| OrganizationNotificationSettings$Outbound
|
|
109
|
+
| null
|
|
110
|
+
| undefined;
|
|
96
111
|
};
|
|
97
112
|
|
|
98
113
|
/** @internal */
|
|
@@ -113,11 +128,15 @@ export const OrganizationUpdate$outboundSchema: z.ZodType<
|
|
|
113
128
|
subscriptionSettings: z.nullable(
|
|
114
129
|
OrganizationSubscriptionSettings$outboundSchema,
|
|
115
130
|
).optional(),
|
|
131
|
+
notificationSettings: z.nullable(
|
|
132
|
+
OrganizationNotificationSettings$outboundSchema,
|
|
133
|
+
).optional(),
|
|
116
134
|
}).transform((v) => {
|
|
117
135
|
return remap$(v, {
|
|
118
136
|
avatarUrl: "avatar_url",
|
|
119
137
|
featureSettings: "feature_settings",
|
|
120
138
|
subscriptionSettings: "subscription_settings",
|
|
139
|
+
notificationSettings: "notification_settings",
|
|
121
140
|
});
|
|
122
141
|
});
|
|
123
142
|
|