@polar-sh/sdk 0.35.2 → 0.35.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 +25 -23
- package/bin/mcp-server.js +1078 -811
- package/bin/mcp-server.js.map +20 -14
- package/dist/commonjs/funcs/customerPortalCustomersAddPaymentMethod.d.ts +2 -2
- package/dist/commonjs/funcs/customerPortalCustomersAddPaymentMethod.d.ts.map +1 -1
- package/dist/commonjs/funcs/customerPortalCustomersAddPaymentMethod.js +2 -2
- package/dist/commonjs/funcs/customerPortalCustomersAddPaymentMethod.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalCustomersConfirmPaymentMethod.d.ts +23 -0
- package/dist/commonjs/funcs/customerPortalCustomersConfirmPaymentMethod.d.ts.map +1 -0
- package/dist/commonjs/funcs/customerPortalCustomersConfirmPaymentMethod.js +126 -0
- package/dist/commonjs/funcs/customerPortalCustomersConfirmPaymentMethod.js.map +1 -0
- package/dist/commonjs/funcs/customersGetBalance.d.ts +22 -0
- package/dist/commonjs/funcs/customersGetBalance.d.ts.map +1 -0
- package/dist/commonjs/funcs/customersGetBalance.js +127 -0
- package/dist/commonjs/funcs/customersGetBalance.js.map +1 -0
- package/dist/commonjs/funcs/metersQuantities.js +1 -0
- package/dist/commonjs/funcs/metersQuantities.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/url.js +1 -1
- package/dist/commonjs/lib/url.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/customersGetBalance.d.ts +7 -0
- package/dist/commonjs/mcp-server/tools/customersGetBalance.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/customersGetBalance.js +34 -0
- package/dist/commonjs/mcp-server/tools/customersGetBalance.js.map +1 -0
- package/dist/commonjs/models/components/address.d.ts +669 -669
- package/dist/commonjs/models/components/address.js +223 -223
- package/dist/commonjs/models/components/addressinput.d.ts +652 -652
- package/dist/commonjs/models/components/addressinput.js +218 -218
- package/dist/commonjs/models/components/aggregationfunction.d.ts +40 -0
- package/dist/commonjs/models/components/aggregationfunction.d.ts.map +1 -0
- package/dist/commonjs/models/components/aggregationfunction.js +64 -0
- package/dist/commonjs/models/components/aggregationfunction.js.map +1 -0
- package/dist/commonjs/models/components/checkout.d.ts +5 -0
- package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkout.js +2 -0
- package/dist/commonjs/models/components/checkout.js.map +1 -1
- package/dist/commonjs/models/components/checkoutconfirmstripe.d.ts +5 -0
- package/dist/commonjs/models/components/checkoutconfirmstripe.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutconfirmstripe.js +2 -0
- package/dist/commonjs/models/components/checkoutconfirmstripe.js.map +1 -1
- package/dist/commonjs/models/components/checkoutcreate.d.ts +5 -0
- package/dist/commonjs/models/components/checkoutcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutcreate.js +2 -0
- package/dist/commonjs/models/components/checkoutcreate.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.d.ts +5 -0
- package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.js +2 -0
- package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +5 -0
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js +2 -0
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/commonjs/models/components/checkoutupdate.d.ts +5 -0
- package/dist/commonjs/models/components/checkoutupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutupdate.js +2 -0
- package/dist/commonjs/models/components/checkoutupdate.js.map +1 -1
- package/dist/commonjs/models/components/checkoutupdatepublic.d.ts +5 -0
- package/dist/commonjs/models/components/checkoutupdatepublic.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutupdatepublic.js +2 -0
- package/dist/commonjs/models/components/checkoutupdatepublic.js.map +1 -1
- package/dist/commonjs/models/components/customerbalance.d.ts +40 -0
- package/dist/commonjs/models/components/customerbalance.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerbalance.js +71 -0
- package/dist/commonjs/models/components/customerbalance.js.map +1 -0
- package/dist/commonjs/models/components/customerorder.d.ts +5 -0
- package/dist/commonjs/models/components/customerorder.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerorder.js +4 -0
- package/dist/commonjs/models/components/customerorder.js.map +1 -1
- package/dist/commonjs/models/components/customerpaymentmethodconfirm.d.ts +31 -0
- package/dist/commonjs/models/components/customerpaymentmethodconfirm.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerpaymentmethodconfirm.js +82 -0
- package/dist/commonjs/models/components/customerpaymentmethodconfirm.js.map +1 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreaterequiresactionresponse.d.ts +31 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreaterequiresactionresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreaterequiresactionresponse.js +80 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreaterequiresactionresponse.js.map +1 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreateresponse.d.ts +35 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreateresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreateresponse.js +81 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreateresponse.js.map +1 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreatesucceededresponse.d.ts +32 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreatesucceededresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreatesucceededresponse.js +81 -0
- package/dist/commonjs/models/components/customerpaymentmethodcreatesucceededresponse.js.map +1 -0
- package/dist/commonjs/models/components/customersubscription.d.ts +5 -0
- package/dist/commonjs/models/components/customersubscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/customersubscription.js +4 -0
- package/dist/commonjs/models/components/customersubscription.js.map +1 -1
- package/dist/commonjs/models/components/order.d.ts +5 -0
- package/dist/commonjs/models/components/order.d.ts.map +1 -1
- package/dist/commonjs/models/components/order.js +4 -0
- package/dist/commonjs/models/components/order.js.map +1 -1
- package/dist/commonjs/models/components/organizationfeaturesettings.d.ts +5 -0
- package/dist/commonjs/models/components/organizationfeaturesettings.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationfeaturesettings.js +4 -0
- package/dist/commonjs/models/components/organizationfeaturesettings.js.map +1 -1
- package/dist/commonjs/models/components/productcreateonetime.d.ts +5 -4
- package/dist/commonjs/models/components/productcreateonetime.d.ts.map +1 -1
- package/dist/commonjs/models/components/productcreateonetime.js +5 -0
- package/dist/commonjs/models/components/productcreateonetime.js.map +1 -1
- package/dist/commonjs/models/components/productcreaterecurring.d.ts +5 -4
- package/dist/commonjs/models/components/productcreaterecurring.d.ts.map +1 -1
- package/dist/commonjs/models/components/productcreaterecurring.js +5 -0
- package/dist/commonjs/models/components/productcreaterecurring.js.map +1 -1
- package/dist/commonjs/models/components/productprice.d.ts +5 -0
- package/dist/commonjs/models/components/productprice.d.ts.map +1 -1
- package/dist/commonjs/models/components/productprice.js +7 -0
- package/dist/commonjs/models/components/productprice.js.map +1 -1
- package/dist/commonjs/models/components/productpriceseatbased.d.ts +76 -0
- package/dist/commonjs/models/components/productpriceseatbased.d.ts.map +1 -0
- package/dist/commonjs/models/components/productpriceseatbased.js +112 -0
- package/dist/commonjs/models/components/productpriceseatbased.js.map +1 -0
- package/dist/commonjs/models/components/productpriceseatbasedcreate.d.ts +42 -0
- package/dist/commonjs/models/components/productpriceseatbasedcreate.d.ts.map +1 -0
- package/dist/commonjs/models/components/productpriceseatbasedcreate.js +86 -0
- package/dist/commonjs/models/components/productpriceseatbasedcreate.js.map +1 -0
- package/dist/commonjs/models/components/productupdate.d.ts +5 -4
- package/dist/commonjs/models/components/productupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/productupdate.js +5 -0
- package/dist/commonjs/models/components/productupdate.js.map +1 -1
- package/dist/commonjs/models/errors/customernotready.d.ts +39 -0
- package/dist/commonjs/models/errors/customernotready.d.ts.map +1 -0
- package/dist/commonjs/models/errors/customernotready.js +88 -0
- package/dist/commonjs/models/errors/customernotready.js.map +1 -0
- package/dist/commonjs/models/operations/customerportalcustomersconfirmpaymentmethod.d.ts +29 -0
- package/dist/commonjs/models/operations/customerportalcustomersconfirmpaymentmethod.d.ts.map +1 -0
- package/dist/commonjs/models/operations/customerportalcustomersconfirmpaymentmethod.js +78 -0
- package/dist/commonjs/models/operations/customerportalcustomersconfirmpaymentmethod.js.map +1 -0
- package/dist/commonjs/models/operations/customersgetbalance.d.ts +32 -0
- package/dist/commonjs/models/operations/customersgetbalance.d.ts.map +1 -0
- package/dist/commonjs/models/operations/customersgetbalance.js +69 -0
- package/dist/commonjs/models/operations/customersgetbalance.js.map +1 -0
- package/dist/commonjs/models/operations/metersquantities.d.ts +6 -0
- package/dist/commonjs/models/operations/metersquantities.d.ts.map +1 -1
- package/dist/commonjs/models/operations/metersquantities.js +7 -0
- package/dist/commonjs/models/operations/metersquantities.js.map +1 -1
- package/dist/commonjs/sdk/customers.d.ts +11 -0
- package/dist/commonjs/sdk/customers.d.ts.map +1 -1
- package/dist/commonjs/sdk/customers.js +12 -0
- package/dist/commonjs/sdk/customers.js.map +1 -1
- package/dist/commonjs/sdk/polarcustomers.d.ts +13 -2
- package/dist/commonjs/sdk/polarcustomers.d.ts.map +1 -1
- package/dist/commonjs/sdk/polarcustomers.js +12 -0
- package/dist/commonjs/sdk/polarcustomers.js.map +1 -1
- package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.d.ts +2 -2
- package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.d.ts.map +1 -1
- package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.js +2 -2
- package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.js.map +1 -1
- package/dist/esm/funcs/customerPortalCustomersConfirmPaymentMethod.d.ts +23 -0
- package/dist/esm/funcs/customerPortalCustomersConfirmPaymentMethod.d.ts.map +1 -0
- package/dist/esm/funcs/customerPortalCustomersConfirmPaymentMethod.js +90 -0
- package/dist/esm/funcs/customerPortalCustomersConfirmPaymentMethod.js.map +1 -0
- package/dist/esm/funcs/customersGetBalance.d.ts +22 -0
- package/dist/esm/funcs/customersGetBalance.d.ts.map +1 -0
- package/dist/esm/funcs/customersGetBalance.js +91 -0
- package/dist/esm/funcs/customersGetBalance.js.map +1 -0
- package/dist/esm/funcs/metersQuantities.js +1 -0
- package/dist/esm/funcs/metersQuantities.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/config.js.map +1 -1
- package/dist/esm/lib/url.js +1 -1
- package/dist/esm/lib/url.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/customersGetBalance.d.ts +7 -0
- package/dist/esm/mcp-server/tools/customersGetBalance.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/customersGetBalance.js +31 -0
- package/dist/esm/mcp-server/tools/customersGetBalance.js.map +1 -0
- package/dist/esm/models/components/address.d.ts +669 -669
- package/dist/esm/models/components/address.js +223 -223
- package/dist/esm/models/components/addressinput.d.ts +652 -652
- package/dist/esm/models/components/addressinput.js +218 -218
- package/dist/esm/models/components/aggregationfunction.d.ts +40 -0
- package/dist/esm/models/components/aggregationfunction.d.ts.map +1 -0
- package/dist/esm/models/components/aggregationfunction.js +28 -0
- package/dist/esm/models/components/aggregationfunction.js.map +1 -0
- package/dist/esm/models/components/checkout.d.ts +5 -0
- package/dist/esm/models/components/checkout.d.ts.map +1 -1
- package/dist/esm/models/components/checkout.js +2 -0
- package/dist/esm/models/components/checkout.js.map +1 -1
- package/dist/esm/models/components/checkoutconfirmstripe.d.ts +5 -0
- package/dist/esm/models/components/checkoutconfirmstripe.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutconfirmstripe.js +2 -0
- package/dist/esm/models/components/checkoutconfirmstripe.js.map +1 -1
- package/dist/esm/models/components/checkoutcreate.d.ts +5 -0
- package/dist/esm/models/components/checkoutcreate.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutcreate.js +2 -0
- package/dist/esm/models/components/checkoutcreate.js.map +1 -1
- package/dist/esm/models/components/checkoutpublic.d.ts +5 -0
- package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublic.js +2 -0
- package/dist/esm/models/components/checkoutpublic.js.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +5 -0
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.js +2 -0
- package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/esm/models/components/checkoutupdate.d.ts +5 -0
- package/dist/esm/models/components/checkoutupdate.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutupdate.js +2 -0
- package/dist/esm/models/components/checkoutupdate.js.map +1 -1
- package/dist/esm/models/components/checkoutupdatepublic.d.ts +5 -0
- package/dist/esm/models/components/checkoutupdatepublic.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutupdatepublic.js +2 -0
- package/dist/esm/models/components/checkoutupdatepublic.js.map +1 -1
- package/dist/esm/models/components/customerbalance.d.ts +40 -0
- package/dist/esm/models/components/customerbalance.d.ts.map +1 -0
- package/dist/esm/models/components/customerbalance.js +33 -0
- package/dist/esm/models/components/customerbalance.js.map +1 -0
- package/dist/esm/models/components/customerorder.d.ts +5 -0
- package/dist/esm/models/components/customerorder.d.ts.map +1 -1
- package/dist/esm/models/components/customerorder.js +4 -0
- package/dist/esm/models/components/customerorder.js.map +1 -1
- package/dist/esm/models/components/customerpaymentmethodconfirm.d.ts +31 -0
- package/dist/esm/models/components/customerpaymentmethodconfirm.d.ts.map +1 -0
- package/dist/esm/models/components/customerpaymentmethodconfirm.js +44 -0
- package/dist/esm/models/components/customerpaymentmethodconfirm.js.map +1 -0
- package/dist/esm/models/components/customerpaymentmethodcreaterequiresactionresponse.d.ts +31 -0
- package/dist/esm/models/components/customerpaymentmethodcreaterequiresactionresponse.d.ts.map +1 -0
- package/dist/esm/models/components/customerpaymentmethodcreaterequiresactionresponse.js +42 -0
- package/dist/esm/models/components/customerpaymentmethodcreaterequiresactionresponse.js.map +1 -0
- package/dist/esm/models/components/customerpaymentmethodcreateresponse.d.ts +35 -0
- package/dist/esm/models/components/customerpaymentmethodcreateresponse.d.ts.map +1 -0
- package/dist/esm/models/components/customerpaymentmethodcreateresponse.js +43 -0
- package/dist/esm/models/components/customerpaymentmethodcreateresponse.js.map +1 -0
- package/dist/esm/models/components/customerpaymentmethodcreatesucceededresponse.d.ts +32 -0
- package/dist/esm/models/components/customerpaymentmethodcreatesucceededresponse.d.ts.map +1 -0
- package/dist/esm/models/components/customerpaymentmethodcreatesucceededresponse.js +43 -0
- package/dist/esm/models/components/customerpaymentmethodcreatesucceededresponse.js.map +1 -0
- package/dist/esm/models/components/customersubscription.d.ts +5 -0
- package/dist/esm/models/components/customersubscription.d.ts.map +1 -1
- package/dist/esm/models/components/customersubscription.js +4 -0
- package/dist/esm/models/components/customersubscription.js.map +1 -1
- package/dist/esm/models/components/order.d.ts +5 -0
- package/dist/esm/models/components/order.d.ts.map +1 -1
- package/dist/esm/models/components/order.js +4 -0
- package/dist/esm/models/components/order.js.map +1 -1
- package/dist/esm/models/components/organizationfeaturesettings.d.ts +5 -0
- package/dist/esm/models/components/organizationfeaturesettings.d.ts.map +1 -1
- package/dist/esm/models/components/organizationfeaturesettings.js +4 -0
- package/dist/esm/models/components/organizationfeaturesettings.js.map +1 -1
- package/dist/esm/models/components/productcreateonetime.d.ts +5 -4
- package/dist/esm/models/components/productcreateonetime.d.ts.map +1 -1
- package/dist/esm/models/components/productcreateonetime.js +5 -0
- package/dist/esm/models/components/productcreateonetime.js.map +1 -1
- package/dist/esm/models/components/productcreaterecurring.d.ts +5 -4
- package/dist/esm/models/components/productcreaterecurring.d.ts.map +1 -1
- package/dist/esm/models/components/productcreaterecurring.js +5 -0
- package/dist/esm/models/components/productcreaterecurring.js.map +1 -1
- package/dist/esm/models/components/productprice.d.ts +5 -0
- package/dist/esm/models/components/productprice.d.ts.map +1 -1
- package/dist/esm/models/components/productprice.js +7 -0
- package/dist/esm/models/components/productprice.js.map +1 -1
- package/dist/esm/models/components/productpriceseatbased.d.ts +76 -0
- package/dist/esm/models/components/productpriceseatbased.d.ts.map +1 -0
- package/dist/esm/models/components/productpriceseatbased.js +74 -0
- package/dist/esm/models/components/productpriceseatbased.js.map +1 -0
- package/dist/esm/models/components/productpriceseatbasedcreate.d.ts +42 -0
- package/dist/esm/models/components/productpriceseatbasedcreate.d.ts.map +1 -0
- package/dist/esm/models/components/productpriceseatbasedcreate.js +48 -0
- package/dist/esm/models/components/productpriceseatbasedcreate.js.map +1 -0
- package/dist/esm/models/components/productupdate.d.ts +5 -4
- package/dist/esm/models/components/productupdate.d.ts.map +1 -1
- package/dist/esm/models/components/productupdate.js +5 -0
- package/dist/esm/models/components/productupdate.js.map +1 -1
- package/dist/esm/models/errors/customernotready.d.ts +39 -0
- package/dist/esm/models/errors/customernotready.d.ts.map +1 -0
- package/dist/esm/models/errors/customernotready.js +51 -0
- package/dist/esm/models/errors/customernotready.js.map +1 -0
- package/dist/esm/models/operations/customerportalcustomersconfirmpaymentmethod.d.ts +29 -0
- package/dist/esm/models/operations/customerportalcustomersconfirmpaymentmethod.d.ts.map +1 -0
- package/dist/esm/models/operations/customerportalcustomersconfirmpaymentmethod.js +40 -0
- package/dist/esm/models/operations/customerportalcustomersconfirmpaymentmethod.js.map +1 -0
- package/dist/esm/models/operations/customersgetbalance.d.ts +32 -0
- package/dist/esm/models/operations/customersgetbalance.d.ts.map +1 -0
- package/dist/esm/models/operations/customersgetbalance.js +31 -0
- package/dist/esm/models/operations/customersgetbalance.js.map +1 -0
- package/dist/esm/models/operations/metersquantities.d.ts +6 -0
- package/dist/esm/models/operations/metersquantities.d.ts.map +1 -1
- package/dist/esm/models/operations/metersquantities.js +7 -0
- package/dist/esm/models/operations/metersquantities.js.map +1 -1
- package/dist/esm/sdk/customers.d.ts +11 -0
- package/dist/esm/sdk/customers.d.ts.map +1 -1
- package/dist/esm/sdk/customers.js +12 -0
- package/dist/esm/sdk/customers.js.map +1 -1
- package/dist/esm/sdk/polarcustomers.d.ts +13 -2
- package/dist/esm/sdk/polarcustomers.d.ts.map +1 -1
- package/dist/esm/sdk/polarcustomers.js +12 -0
- package/dist/esm/sdk/polarcustomers.js.map +1 -1
- package/docs/sdks/customers/README.md +78 -0
- package/docs/sdks/polarcustomers/README.md +82 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/customerPortalCustomersAddPaymentMethod.ts +8 -8
- package/src/funcs/customerPortalCustomersConfirmPaymentMethod.ts +201 -0
- package/src/funcs/customersGetBalance.ts +195 -0
- package/src/funcs/metersQuantities.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/url.ts +1 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/customersGetBalance.ts +40 -0
- package/src/models/components/address.ts +223 -223
- package/src/models/components/addressinput.ts +218 -218
- package/src/models/components/aggregationfunction.ts +37 -0
- package/src/models/components/checkout.ts +7 -0
- package/src/models/components/checkoutconfirmstripe.ts +7 -0
- package/src/models/components/checkoutcreate.ts +7 -0
- package/src/models/components/checkoutpublic.ts +7 -0
- package/src/models/components/checkoutpublicconfirmed.ts +7 -0
- package/src/models/components/checkoutupdate.ts +7 -0
- package/src/models/components/checkoutupdatepublic.ts +7 -0
- package/src/models/components/customerbalance.ts +77 -0
- package/src/models/components/customerorder.ts +9 -0
- package/src/models/components/customerpaymentmethodconfirm.ts +83 -0
- package/src/models/components/customerpaymentmethodcreaterequiresactionresponse.ts +93 -0
- package/src/models/components/customerpaymentmethodcreateresponse.ts +107 -0
- package/src/models/components/customerpaymentmethodcreatesucceededresponse.ts +98 -0
- package/src/models/components/customersubscription.ts +9 -0
- package/src/models/components/order.ts +9 -0
- package/src/models/components/organizationfeaturesettings.ts +9 -0
- package/src/models/components/productcreateonetime.ts +14 -0
- package/src/models/components/productcreaterecurring.ts +14 -0
- package/src/models/components/productprice.ts +18 -0
- package/src/models/components/productpriceseatbased.ts +164 -0
- package/src/models/components/productpriceseatbasedcreate.ts +98 -0
- package/src/models/components/productupdate.ts +14 -0
- package/src/models/errors/customernotready.ts +85 -0
- package/src/models/operations/customerportalcustomersconfirmpaymentmethod.ts +89 -0
- package/src/models/operations/customersgetbalance.ts +69 -0
- package/src/models/operations/metersquantities.ts +16 -0
- package/src/sdk/customers.ts +22 -0
- package/src/sdk/polarcustomers.ts +26 -2
|
@@ -10,250 +10,250 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export const CountryAlpha2Input = {
|
|
13
|
-
|
|
14
|
-
Ms: "MS",
|
|
15
|
-
Ph: "PH",
|
|
16
|
-
Gw: "GW",
|
|
17
|
-
Tf: "TF",
|
|
18
|
-
Jm: "JM",
|
|
19
|
-
Ly: "LY",
|
|
20
|
-
Tw: "TW",
|
|
21
|
-
Gy: "GY",
|
|
22
|
-
Um: "UM",
|
|
23
|
-
Er: "ER",
|
|
24
|
-
Mv: "MV",
|
|
25
|
-
At: "AT",
|
|
26
|
-
In: "IN",
|
|
27
|
-
Sd: "SD",
|
|
28
|
-
Vc: "VC",
|
|
29
|
-
Us: "US",
|
|
30
|
-
Aq: "AQ",
|
|
13
|
+
Ad: "AD",
|
|
31
14
|
Ae: "AE",
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
Tn: "TN",
|
|
41
|
-
Bm: "BM",
|
|
42
|
-
Ht: "HT",
|
|
43
|
-
Je: "JE",
|
|
44
|
-
Lc: "LC",
|
|
45
|
-
Cy: "CY",
|
|
46
|
-
Lv: "LV",
|
|
47
|
-
Ml: "ML",
|
|
48
|
-
Dz: "DZ",
|
|
49
|
-
Ps: "PS",
|
|
50
|
-
Ve: "VE",
|
|
51
|
-
Bh: "BH",
|
|
52
|
-
Et: "ET",
|
|
53
|
-
By: "BY",
|
|
54
|
-
Mp: "MP",
|
|
55
|
-
Bo: "BO",
|
|
56
|
-
Sh: "SH",
|
|
57
|
-
Kw: "KW",
|
|
58
|
-
Sg: "SG",
|
|
59
|
-
Mx: "MX",
|
|
60
|
-
Pa: "PA",
|
|
61
|
-
Zm: "ZM",
|
|
62
|
-
To: "TO",
|
|
63
|
-
Kn: "KN",
|
|
64
|
-
Pt: "PT",
|
|
65
|
-
Ws: "WS",
|
|
66
|
-
Bs: "BS",
|
|
67
|
-
Za: "ZA",
|
|
68
|
-
Mo: "MO",
|
|
69
|
-
Ie: "IE",
|
|
70
|
-
Br: "BR",
|
|
15
|
+
Af: "AF",
|
|
16
|
+
Ag: "AG",
|
|
17
|
+
Ai: "AI",
|
|
18
|
+
Al: "AL",
|
|
19
|
+
Am: "AM",
|
|
20
|
+
Ao: "AO",
|
|
21
|
+
Aq: "AQ",
|
|
22
|
+
Ar: "AR",
|
|
71
23
|
As: "AS",
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
24
|
+
At: "AT",
|
|
25
|
+
Au: "AU",
|
|
26
|
+
Aw: "AW",
|
|
27
|
+
Ax: "AX",
|
|
28
|
+
Az: "AZ",
|
|
29
|
+
Ba: "BA",
|
|
75
30
|
Bb: "BB",
|
|
76
|
-
|
|
77
|
-
Tv: "TV",
|
|
78
|
-
Gh: "GH",
|
|
79
|
-
Tz: "TZ",
|
|
80
|
-
Kz: "KZ",
|
|
81
|
-
Sx: "SX",
|
|
82
|
-
Cx: "CX",
|
|
83
|
-
Mm: "MM",
|
|
84
|
-
Pk: "PK",
|
|
85
|
-
Na: "NA",
|
|
31
|
+
Bd: "BD",
|
|
86
32
|
Be: "BE",
|
|
87
|
-
|
|
88
|
-
Lr: "LR",
|
|
89
|
-
Ua: "UA",
|
|
90
|
-
Me: "ME",
|
|
91
|
-
Mw: "MW",
|
|
92
|
-
Vn: "VN",
|
|
93
|
-
Lu: "LU",
|
|
94
|
-
Mu: "MU",
|
|
95
|
-
Is: "IS",
|
|
96
|
-
Nu: "NU",
|
|
97
|
-
Pm: "PM",
|
|
98
|
-
Bw: "BW",
|
|
99
|
-
Td: "TD",
|
|
100
|
-
Yt: "YT",
|
|
101
|
-
Fo: "FO",
|
|
102
|
-
Tr: "TR",
|
|
103
|
-
Rw: "RW",
|
|
104
|
-
Id: "ID",
|
|
105
|
-
No: "NO",
|
|
106
|
-
Ck: "CK",
|
|
107
|
-
Ss: "SS",
|
|
108
|
-
De: "DE",
|
|
109
|
-
Mk: "MK",
|
|
110
|
-
La: "LA",
|
|
111
|
-
Ee: "EE",
|
|
112
|
-
Mn: "MN",
|
|
113
|
-
Gi: "GI",
|
|
114
|
-
Vu: "VU",
|
|
115
|
-
Ro: "RO",
|
|
116
|
-
Ao: "AO",
|
|
117
|
-
Ar: "AR",
|
|
118
|
-
Tk: "TK",
|
|
119
|
-
Uy: "UY",
|
|
120
|
-
Kh: "KH",
|
|
33
|
+
Bf: "BF",
|
|
121
34
|
Bg: "BG",
|
|
122
|
-
|
|
123
|
-
|
|
35
|
+
Bh: "BH",
|
|
36
|
+
Bi: "BI",
|
|
37
|
+
Bj: "BJ",
|
|
38
|
+
Bl: "BL",
|
|
39
|
+
Bm: "BM",
|
|
40
|
+
Bn: "BN",
|
|
41
|
+
Bo: "BO",
|
|
42
|
+
Bq: "BQ",
|
|
43
|
+
Br: "BR",
|
|
44
|
+
Bs: "BS",
|
|
45
|
+
Bt: "BT",
|
|
46
|
+
Bv: "BV",
|
|
47
|
+
Bw: "BW",
|
|
48
|
+
By: "BY",
|
|
49
|
+
Bz: "BZ",
|
|
50
|
+
Ca: "CA",
|
|
124
51
|
Cc: "CC",
|
|
125
52
|
Cd: "CD",
|
|
126
|
-
|
|
53
|
+
Cf: "CF",
|
|
54
|
+
Cg: "CG",
|
|
55
|
+
Ch: "CH",
|
|
56
|
+
Ci: "CI",
|
|
57
|
+
Ck: "CK",
|
|
127
58
|
Cl: "CL",
|
|
128
|
-
Gu: "GU",
|
|
129
|
-
Il: "IL",
|
|
130
|
-
Kr: "KR",
|
|
131
|
-
Pe: "PE",
|
|
132
|
-
Sn: "SN",
|
|
133
|
-
Sm: "SM",
|
|
134
|
-
Nl: "NL",
|
|
135
|
-
Sk: "SK",
|
|
136
|
-
Hm: "HM",
|
|
137
|
-
Mq: "MQ",
|
|
138
|
-
Mr: "MR",
|
|
139
|
-
It: "IT",
|
|
140
59
|
Cm: "CM",
|
|
141
|
-
|
|
142
|
-
|
|
60
|
+
Cn: "CN",
|
|
61
|
+
Co: "CO",
|
|
62
|
+
Cr: "CR",
|
|
63
|
+
Cv: "CV",
|
|
64
|
+
Cw: "CW",
|
|
65
|
+
Cx: "CX",
|
|
66
|
+
Cy: "CY",
|
|
67
|
+
Cz: "CZ",
|
|
68
|
+
De: "DE",
|
|
69
|
+
Dj: "DJ",
|
|
143
70
|
Dk: "DK",
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
Tg: "TG",
|
|
150
|
-
Pw: "PW",
|
|
151
|
-
Ye: "YE",
|
|
152
|
-
Iq: "IQ",
|
|
153
|
-
Ma: "MA",
|
|
154
|
-
Cg: "CG",
|
|
155
|
-
Mf: "MF",
|
|
156
|
-
St: "ST",
|
|
157
|
-
Bi: "BI",
|
|
71
|
+
Dm: "DM",
|
|
72
|
+
Do: "DO",
|
|
73
|
+
Dz: "DZ",
|
|
74
|
+
Ec: "EC",
|
|
75
|
+
Ee: "EE",
|
|
158
76
|
Eg: "EG",
|
|
159
|
-
Ax: "AX",
|
|
160
|
-
Gm: "GM",
|
|
161
|
-
Gr: "GR",
|
|
162
|
-
Az: "AZ",
|
|
163
77
|
Eh: "EH",
|
|
78
|
+
Er: "ER",
|
|
79
|
+
Es: "ES",
|
|
80
|
+
Et: "ET",
|
|
81
|
+
Fi: "FI",
|
|
82
|
+
Fj: "FJ",
|
|
83
|
+
Fk: "FK",
|
|
84
|
+
Fm: "FM",
|
|
85
|
+
Fo: "FO",
|
|
86
|
+
Fr: "FR",
|
|
87
|
+
Ga: "GA",
|
|
88
|
+
Gb: "GB",
|
|
89
|
+
Gd: "GD",
|
|
164
90
|
Ge: "GE",
|
|
165
|
-
Gt: "GT",
|
|
166
|
-
Cf: "CF",
|
|
167
|
-
Ng: "NG",
|
|
168
|
-
Kg: "KG",
|
|
169
|
-
Ag: "AG",
|
|
170
|
-
Ai: "AI",
|
|
171
|
-
Dj: "DJ",
|
|
172
|
-
Sr: "SR",
|
|
173
|
-
Np: "NP",
|
|
174
|
-
Hu: "HU",
|
|
175
|
-
Io: "IO",
|
|
176
|
-
Mc: "MC",
|
|
177
91
|
Gf: "GF",
|
|
178
|
-
Sj: "SJ",
|
|
179
|
-
Hr: "HR",
|
|
180
|
-
Bj: "BJ",
|
|
181
|
-
Fm: "FM",
|
|
182
|
-
Bl: "BL",
|
|
183
|
-
Ls: "LS",
|
|
184
|
-
Mg: "MG",
|
|
185
|
-
Sc: "SC",
|
|
186
|
-
Vg: "VG",
|
|
187
|
-
Ci: "CI",
|
|
188
92
|
Gg: "GG",
|
|
189
|
-
|
|
190
|
-
|
|
93
|
+
Gh: "GH",
|
|
94
|
+
Gi: "GI",
|
|
95
|
+
Gl: "GL",
|
|
96
|
+
Gm: "GM",
|
|
97
|
+
Gn: "GN",
|
|
191
98
|
Gp: "GP",
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
Fr: "FR",
|
|
99
|
+
Gq: "GQ",
|
|
100
|
+
Gr: "GR",
|
|
195
101
|
Gs: "GS",
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
102
|
+
Gt: "GT",
|
|
103
|
+
Gu: "GU",
|
|
104
|
+
Gw: "GW",
|
|
105
|
+
Gy: "GY",
|
|
106
|
+
Hk: "HK",
|
|
107
|
+
Hm: "HM",
|
|
108
|
+
Hn: "HN",
|
|
109
|
+
Hr: "HR",
|
|
110
|
+
Ht: "HT",
|
|
111
|
+
Hu: "HU",
|
|
112
|
+
Id: "ID",
|
|
113
|
+
Ie: "IE",
|
|
114
|
+
Il: "IL",
|
|
207
115
|
Im: "IM",
|
|
116
|
+
In: "IN",
|
|
117
|
+
Io: "IO",
|
|
118
|
+
Iq: "IQ",
|
|
119
|
+
Is: "IS",
|
|
120
|
+
It: "IT",
|
|
121
|
+
Je: "JE",
|
|
122
|
+
Jm: "JM",
|
|
123
|
+
Jo: "JO",
|
|
208
124
|
Jp: "JP",
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
Ga: "GA",
|
|
213
|
-
Nc: "NC",
|
|
214
|
-
Bv: "BV",
|
|
215
|
-
Fk: "FK",
|
|
216
|
-
Af: "AF",
|
|
125
|
+
Ke: "KE",
|
|
126
|
+
Kg: "KG",
|
|
127
|
+
Kh: "KH",
|
|
217
128
|
Ki: "KI",
|
|
129
|
+
Km: "KM",
|
|
130
|
+
Kn: "KN",
|
|
131
|
+
Kr: "KR",
|
|
132
|
+
Kw: "KW",
|
|
133
|
+
Ky: "KY",
|
|
134
|
+
Kz: "KZ",
|
|
135
|
+
La: "LA",
|
|
136
|
+
Lb: "LB",
|
|
137
|
+
Lc: "LC",
|
|
138
|
+
Li: "LI",
|
|
139
|
+
Lk: "LK",
|
|
140
|
+
Lr: "LR",
|
|
141
|
+
Ls: "LS",
|
|
142
|
+
Lt: "LT",
|
|
143
|
+
Lu: "LU",
|
|
144
|
+
Lv: "LV",
|
|
145
|
+
Ly: "LY",
|
|
146
|
+
Ma: "MA",
|
|
147
|
+
Mc: "MC",
|
|
218
148
|
Md: "MD",
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
149
|
+
Me: "ME",
|
|
150
|
+
Mf: "MF",
|
|
151
|
+
Mg: "MG",
|
|
152
|
+
Mh: "MH",
|
|
153
|
+
Mk: "MK",
|
|
154
|
+
Ml: "ML",
|
|
155
|
+
Mm: "MM",
|
|
156
|
+
Mn: "MN",
|
|
157
|
+
Mo: "MO",
|
|
158
|
+
Mp: "MP",
|
|
159
|
+
Mq: "MQ",
|
|
160
|
+
Mr: "MR",
|
|
161
|
+
Ms: "MS",
|
|
162
|
+
Mt: "MT",
|
|
163
|
+
Mu: "MU",
|
|
164
|
+
Mv: "MV",
|
|
165
|
+
Mw: "MW",
|
|
166
|
+
Mx: "MX",
|
|
167
|
+
My: "MY",
|
|
168
|
+
Mz: "MZ",
|
|
169
|
+
Na: "NA",
|
|
170
|
+
Nc: "NC",
|
|
227
171
|
Ne: "NE",
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
172
|
+
Nf: "NF",
|
|
173
|
+
Ng: "NG",
|
|
174
|
+
Ni: "NI",
|
|
175
|
+
Nl: "NL",
|
|
176
|
+
No: "NO",
|
|
177
|
+
Np: "NP",
|
|
178
|
+
Nr: "NR",
|
|
179
|
+
Nu: "NU",
|
|
180
|
+
Nz: "NZ",
|
|
181
|
+
Om: "OM",
|
|
182
|
+
Pa: "PA",
|
|
183
|
+
Pe: "PE",
|
|
184
|
+
Pf: "PF",
|
|
237
185
|
Pg: "PG",
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
186
|
+
Ph: "PH",
|
|
187
|
+
Pk: "PK",
|
|
188
|
+
Pl: "PL",
|
|
189
|
+
Pm: "PM",
|
|
241
190
|
Pn: "PN",
|
|
191
|
+
Pr: "PR",
|
|
192
|
+
Ps: "PS",
|
|
193
|
+
Pt: "PT",
|
|
194
|
+
Pw: "PW",
|
|
195
|
+
Py: "PY",
|
|
196
|
+
Qa: "QA",
|
|
197
|
+
Re: "RE",
|
|
198
|
+
Ro: "RO",
|
|
199
|
+
Rs: "RS",
|
|
200
|
+
Rw: "RW",
|
|
242
201
|
Sa: "SA",
|
|
243
|
-
|
|
202
|
+
Sb: "SB",
|
|
203
|
+
Sc: "SC",
|
|
204
|
+
Sd: "SD",
|
|
205
|
+
Se: "SE",
|
|
206
|
+
Sg: "SG",
|
|
207
|
+
Sh: "SH",
|
|
208
|
+
Si: "SI",
|
|
209
|
+
Sj: "SJ",
|
|
210
|
+
Sk: "SK",
|
|
211
|
+
Sl: "SL",
|
|
212
|
+
Sm: "SM",
|
|
213
|
+
Sn: "SN",
|
|
214
|
+
So: "SO",
|
|
215
|
+
Sr: "SR",
|
|
216
|
+
Ss: "SS",
|
|
217
|
+
St: "ST",
|
|
218
|
+
Sv: "SV",
|
|
219
|
+
Sx: "SX",
|
|
220
|
+
Sz: "SZ",
|
|
221
|
+
Tc: "TC",
|
|
222
|
+
Td: "TD",
|
|
223
|
+
Tf: "TF",
|
|
224
|
+
Tg: "TG",
|
|
225
|
+
Th: "TH",
|
|
226
|
+
Tj: "TJ",
|
|
227
|
+
Tk: "TK",
|
|
228
|
+
Tl: "TL",
|
|
229
|
+
Tm: "TM",
|
|
230
|
+
Tn: "TN",
|
|
231
|
+
To: "TO",
|
|
232
|
+
Tr: "TR",
|
|
233
|
+
Tt: "TT",
|
|
234
|
+
Tv: "TV",
|
|
235
|
+
Tw: "TW",
|
|
236
|
+
Tz: "TZ",
|
|
237
|
+
Ua: "UA",
|
|
238
|
+
Ug: "UG",
|
|
239
|
+
Um: "UM",
|
|
240
|
+
Us: "US",
|
|
241
|
+
Uy: "UY",
|
|
242
|
+
Uz: "UZ",
|
|
244
243
|
Va: "VA",
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
244
|
+
Vc: "VC",
|
|
245
|
+
Ve: "VE",
|
|
246
|
+
Vg: "VG",
|
|
247
|
+
Vi: "VI",
|
|
248
|
+
Vn: "VN",
|
|
249
|
+
Vu: "VU",
|
|
250
|
+
Wf: "WF",
|
|
251
|
+
Ws: "WS",
|
|
252
|
+
Ye: "YE",
|
|
253
|
+
Yt: "YT",
|
|
254
|
+
Za: "ZA",
|
|
255
|
+
Zm: "ZM",
|
|
256
|
+
Zw: "ZW",
|
|
257
257
|
} as const;
|
|
258
258
|
export type CountryAlpha2Input = ClosedEnum<typeof CountryAlpha2Input>;
|
|
259
259
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const AggregationFunction = {
|
|
9
|
+
Count: "count",
|
|
10
|
+
Sum: "sum",
|
|
11
|
+
Max: "max",
|
|
12
|
+
Min: "min",
|
|
13
|
+
Avg: "avg",
|
|
14
|
+
Unique: "unique",
|
|
15
|
+
} as const;
|
|
16
|
+
export type AggregationFunction = ClosedEnum<typeof AggregationFunction>;
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const AggregationFunction$inboundSchema: z.ZodNativeEnum<
|
|
20
|
+
typeof AggregationFunction
|
|
21
|
+
> = z.nativeEnum(AggregationFunction);
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const AggregationFunction$outboundSchema: z.ZodNativeEnum<
|
|
25
|
+
typeof AggregationFunction
|
|
26
|
+
> = AggregationFunction$inboundSchema;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
31
|
+
*/
|
|
32
|
+
export namespace AggregationFunction$ {
|
|
33
|
+
/** @deprecated use `AggregationFunction$inboundSchema` instead. */
|
|
34
|
+
export const inboundSchema = AggregationFunction$inboundSchema;
|
|
35
|
+
/** @deprecated use `AggregationFunction$outboundSchema` instead. */
|
|
36
|
+
export const outboundSchema = AggregationFunction$outboundSchema;
|
|
37
|
+
}
|
|
@@ -148,6 +148,10 @@ export type Checkout = {
|
|
|
148
148
|
* Amount in cents, before discounts and taxes.
|
|
149
149
|
*/
|
|
150
150
|
amount: number;
|
|
151
|
+
/**
|
|
152
|
+
* Number of seats for seat-based pricing.
|
|
153
|
+
*/
|
|
154
|
+
seats?: number | null | undefined;
|
|
151
155
|
/**
|
|
152
156
|
* Discount amount in cents.
|
|
153
157
|
*/
|
|
@@ -584,6 +588,7 @@ export const Checkout$inboundSchema: z.ZodType<
|
|
|
584
588
|
success_url: z.string(),
|
|
585
589
|
embed_origin: z.nullable(z.string()),
|
|
586
590
|
amount: z.number().int(),
|
|
591
|
+
seats: z.nullable(z.number().int()).optional(),
|
|
587
592
|
discount_amount: z.number().int(),
|
|
588
593
|
net_amount: z.number().int(),
|
|
589
594
|
tax_amount: z.nullable(z.number().int()),
|
|
@@ -704,6 +709,7 @@ export type Checkout$Outbound = {
|
|
|
704
709
|
success_url: string;
|
|
705
710
|
embed_origin: string | null;
|
|
706
711
|
amount: number;
|
|
712
|
+
seats?: number | null | undefined;
|
|
707
713
|
discount_amount: number;
|
|
708
714
|
net_amount: number;
|
|
709
715
|
tax_amount: number | null;
|
|
@@ -778,6 +784,7 @@ export const Checkout$outboundSchema: z.ZodType<
|
|
|
778
784
|
successUrl: z.string(),
|
|
779
785
|
embedOrigin: z.nullable(z.string()),
|
|
780
786
|
amount: z.number().int(),
|
|
787
|
+
seats: z.nullable(z.number().int()).optional(),
|
|
781
788
|
discountAmount: z.number().int(),
|
|
782
789
|
netAmount: z.number().int(),
|
|
783
790
|
taxAmount: z.nullable(z.number().int()),
|
|
@@ -41,6 +41,10 @@ export type CheckoutConfirmStripe = {
|
|
|
41
41
|
*/
|
|
42
42
|
productPriceId?: string | null | undefined;
|
|
43
43
|
amount?: number | null | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Number of seats for seat-based pricing.
|
|
46
|
+
*/
|
|
47
|
+
seats?: number | null | undefined;
|
|
44
48
|
isBusinessCustomer?: boolean | null | undefined;
|
|
45
49
|
customerName?: string | null | undefined;
|
|
46
50
|
customerEmail?: string | null | undefined;
|
|
@@ -143,6 +147,7 @@ export const CheckoutConfirmStripe$inboundSchema: z.ZodType<
|
|
|
143
147
|
product_id: z.nullable(z.string()).optional(),
|
|
144
148
|
product_price_id: z.nullable(z.string()).optional(),
|
|
145
149
|
amount: z.nullable(z.number().int()).optional(),
|
|
150
|
+
seats: z.nullable(z.number().int()).optional(),
|
|
146
151
|
is_business_customer: z.nullable(z.boolean()).optional(),
|
|
147
152
|
customer_name: z.nullable(z.string()).optional(),
|
|
148
153
|
customer_email: z.nullable(z.string()).optional(),
|
|
@@ -175,6 +180,7 @@ export type CheckoutConfirmStripe$Outbound = {
|
|
|
175
180
|
product_id?: string | null | undefined;
|
|
176
181
|
product_price_id?: string | null | undefined;
|
|
177
182
|
amount?: number | null | undefined;
|
|
183
|
+
seats?: number | null | undefined;
|
|
178
184
|
is_business_customer?: boolean | null | undefined;
|
|
179
185
|
customer_name?: string | null | undefined;
|
|
180
186
|
customer_email?: string | null | undefined;
|
|
@@ -204,6 +210,7 @@ export const CheckoutConfirmStripe$outboundSchema: z.ZodType<
|
|
|
204
210
|
productId: z.nullable(z.string()).optional(),
|
|
205
211
|
productPriceId: z.nullable(z.string()).optional(),
|
|
206
212
|
amount: z.nullable(z.number().int()).optional(),
|
|
213
|
+
seats: z.nullable(z.number().int()).optional(),
|
|
207
214
|
isBusinessCustomer: z.nullable(z.boolean()).optional(),
|
|
208
215
|
customerName: z.nullable(z.string()).optional(),
|
|
209
216
|
customerEmail: z.nullable(z.string()).optional(),
|
|
@@ -78,6 +78,10 @@ export type CheckoutCreate = {
|
|
|
78
78
|
*/
|
|
79
79
|
requireBillingAddress?: boolean | undefined;
|
|
80
80
|
amount?: number | null | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* Number of seats for seat-based pricing. Required for seat-based products.
|
|
83
|
+
*/
|
|
84
|
+
seats?: number | null | undefined;
|
|
81
85
|
/**
|
|
82
86
|
* ID of an existing customer in the organization. The customer data will be pre-filled in the checkout form. The resulting order will be linked to this customer.
|
|
83
87
|
*/
|
|
@@ -327,6 +331,7 @@ export const CheckoutCreate$inboundSchema: z.ZodType<
|
|
|
327
331
|
allow_discount_codes: z.boolean().default(true),
|
|
328
332
|
require_billing_address: z.boolean().default(false),
|
|
329
333
|
amount: z.nullable(z.number().int()).optional(),
|
|
334
|
+
seats: z.nullable(z.number().int()).optional(),
|
|
330
335
|
customer_id: z.nullable(z.string()).optional(),
|
|
331
336
|
is_business_customer: z.boolean().default(false),
|
|
332
337
|
external_customer_id: z.nullable(z.string()).optional(),
|
|
@@ -379,6 +384,7 @@ export type CheckoutCreate$Outbound = {
|
|
|
379
384
|
allow_discount_codes: boolean;
|
|
380
385
|
require_billing_address: boolean;
|
|
381
386
|
amount?: number | null | undefined;
|
|
387
|
+
seats?: number | null | undefined;
|
|
382
388
|
customer_id?: string | null | undefined;
|
|
383
389
|
is_business_customer: boolean;
|
|
384
390
|
external_customer_id?: string | null | undefined;
|
|
@@ -422,6 +428,7 @@ export const CheckoutCreate$outboundSchema: z.ZodType<
|
|
|
422
428
|
allowDiscountCodes: z.boolean().default(true),
|
|
423
429
|
requireBillingAddress: z.boolean().default(false),
|
|
424
430
|
amount: z.nullable(z.number().int()).optional(),
|
|
431
|
+
seats: z.nullable(z.number().int()).optional(),
|
|
425
432
|
customerId: z.nullable(z.string()).optional(),
|
|
426
433
|
isBusinessCustomer: z.boolean().default(false),
|
|
427
434
|
externalCustomerId: z.nullable(z.string()).optional(),
|
|
@@ -152,6 +152,10 @@ export type CheckoutPublic = {
|
|
|
152
152
|
* Amount in cents, before discounts and taxes.
|
|
153
153
|
*/
|
|
154
154
|
amount: number;
|
|
155
|
+
/**
|
|
156
|
+
* Number of seats for seat-based pricing.
|
|
157
|
+
*/
|
|
158
|
+
seats?: number | null | undefined;
|
|
155
159
|
/**
|
|
156
160
|
* Discount amount in cents.
|
|
157
161
|
*/
|
|
@@ -476,6 +480,7 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
|
|
|
476
480
|
success_url: z.string(),
|
|
477
481
|
embed_origin: z.nullable(z.string()),
|
|
478
482
|
amount: z.number().int(),
|
|
483
|
+
seats: z.nullable(z.number().int()).optional(),
|
|
479
484
|
discount_amount: z.number().int(),
|
|
480
485
|
net_amount: z.number().int(),
|
|
481
486
|
tax_amount: z.nullable(z.number().int()),
|
|
@@ -580,6 +585,7 @@ export type CheckoutPublic$Outbound = {
|
|
|
580
585
|
success_url: string;
|
|
581
586
|
embed_origin: string | null;
|
|
582
587
|
amount: number;
|
|
588
|
+
seats?: number | null | undefined;
|
|
583
589
|
discount_amount: number;
|
|
584
590
|
net_amount: number;
|
|
585
591
|
tax_amount: number | null;
|
|
@@ -648,6 +654,7 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
|
|
|
648
654
|
successUrl: z.string(),
|
|
649
655
|
embedOrigin: z.nullable(z.string()),
|
|
650
656
|
amount: z.number().int(),
|
|
657
|
+
seats: z.nullable(z.number().int()).optional(),
|
|
651
658
|
discountAmount: z.number().int(),
|
|
652
659
|
netAmount: z.number().int(),
|
|
653
660
|
taxAmount: z.nullable(z.number().int()),
|
|
@@ -156,6 +156,10 @@ export type CheckoutPublicConfirmed = {
|
|
|
156
156
|
* Amount in cents, before discounts and taxes.
|
|
157
157
|
*/
|
|
158
158
|
amount: number;
|
|
159
|
+
/**
|
|
160
|
+
* Number of seats for seat-based pricing.
|
|
161
|
+
*/
|
|
162
|
+
seats?: number | null | undefined;
|
|
159
163
|
/**
|
|
160
164
|
* Discount amount in cents.
|
|
161
165
|
*/
|
|
@@ -492,6 +496,7 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
|
|
|
492
496
|
success_url: z.string(),
|
|
493
497
|
embed_origin: z.nullable(z.string()),
|
|
494
498
|
amount: z.number().int(),
|
|
499
|
+
seats: z.nullable(z.number().int()).optional(),
|
|
495
500
|
discount_amount: z.number().int(),
|
|
496
501
|
net_amount: z.number().int(),
|
|
497
502
|
tax_amount: z.nullable(z.number().int()),
|
|
@@ -598,6 +603,7 @@ export type CheckoutPublicConfirmed$Outbound = {
|
|
|
598
603
|
success_url: string;
|
|
599
604
|
embed_origin: string | null;
|
|
600
605
|
amount: number;
|
|
606
|
+
seats?: number | null | undefined;
|
|
601
607
|
discount_amount: number;
|
|
602
608
|
net_amount: number;
|
|
603
609
|
tax_amount: number | null;
|
|
@@ -667,6 +673,7 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
|
|
|
667
673
|
successUrl: z.string(),
|
|
668
674
|
embedOrigin: z.nullable(z.string()),
|
|
669
675
|
amount: z.number().int(),
|
|
676
|
+
seats: z.nullable(z.number().int()).optional(),
|
|
670
677
|
discountAmount: z.number().int(),
|
|
671
678
|
netAmount: z.number().int(),
|
|
672
679
|
taxAmount: z.nullable(z.number().int()),
|