@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
package/README.md
CHANGED
|
@@ -68,10 +68,7 @@ bun add @polar-sh/sdk
|
|
|
68
68
|
### Yarn
|
|
69
69
|
|
|
70
70
|
```bash
|
|
71
|
-
yarn add @polar-sh/sdk
|
|
72
|
-
|
|
73
|
-
# Note that Yarn does not install peer dependencies automatically. You will need
|
|
74
|
-
# to install zod as shown above.
|
|
71
|
+
yarn add @polar-sh/sdk
|
|
75
72
|
```
|
|
76
73
|
|
|
77
74
|
> [!NOTE]
|
|
@@ -281,6 +278,7 @@ app.post("/webhook", express.raw({ type: "application/json" }), (req: Request, r
|
|
|
281
278
|
* [update](docs/sdks/polarcustomers/README.md#update) - Update Customer
|
|
282
279
|
* [listPaymentMethods](docs/sdks/polarcustomers/README.md#listpaymentmethods) - List Customer Payment Methods
|
|
283
280
|
* [addPaymentMethod](docs/sdks/polarcustomers/README.md#addpaymentmethod) - Add Customer Payment Method
|
|
281
|
+
* [confirmPaymentMethod](docs/sdks/polarcustomers/README.md#confirmpaymentmethod) - Confirm Customer Payment Method
|
|
284
282
|
* [deletePaymentMethod](docs/sdks/polarcustomers/README.md#deletepaymentmethod) - Delete Customer Payment Method
|
|
285
283
|
|
|
286
284
|
#### [customerPortal.downloadables](docs/sdks/downloadables/README.md)
|
|
@@ -329,6 +327,7 @@ app.post("/webhook", express.raw({ type: "application/json" }), (req: Request, r
|
|
|
329
327
|
* [deleteExternal](docs/sdks/customers/README.md#deleteexternal) - Delete Customer by External ID
|
|
330
328
|
* [getState](docs/sdks/customers/README.md#getstate) - Get Customer State
|
|
331
329
|
* [getStateExternal](docs/sdks/customers/README.md#getstateexternal) - Get Customer State by External ID
|
|
330
|
+
* [getBalance](docs/sdks/customers/README.md#getbalance) - Get Customer Balance
|
|
332
331
|
|
|
333
332
|
### [customerSessions](docs/sdks/customersessions/README.md)
|
|
334
333
|
|
|
@@ -494,6 +493,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
494
493
|
- [`customerPortalCustomerMetersGet`](docs/sdks/polarcustomermeters/README.md#get) - Get Customer Meter
|
|
495
494
|
- [`customerPortalCustomerMetersList`](docs/sdks/polarcustomermeters/README.md#list) - List Meters
|
|
496
495
|
- [`customerPortalCustomersAddPaymentMethod`](docs/sdks/polarcustomers/README.md#addpaymentmethod) - Add Customer Payment Method
|
|
496
|
+
- [`customerPortalCustomersConfirmPaymentMethod`](docs/sdks/polarcustomers/README.md#confirmpaymentmethod) - Confirm Customer Payment Method
|
|
497
497
|
- [`customerPortalCustomersDeletePaymentMethod`](docs/sdks/polarcustomers/README.md#deletepaymentmethod) - Delete Customer Payment Method
|
|
498
498
|
- [`customerPortalCustomersGet`](docs/sdks/polarcustomers/README.md#get) - Get Customer
|
|
499
499
|
- [`customerPortalCustomersListPaymentMethods`](docs/sdks/polarcustomers/README.md#listpaymentmethods) - List Customer Payment Methods
|
|
@@ -522,6 +522,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
522
522
|
- [`customerSessionsCreate`](docs/sdks/customersessions/README.md#create) - Create Customer Session
|
|
523
523
|
- [`customersExport`](docs/sdks/customers/README.md#export) - Export Customers
|
|
524
524
|
- [`customersGet`](docs/sdks/customers/README.md#get) - Get Customer
|
|
525
|
+
- [`customersGetBalance`](docs/sdks/customers/README.md#getbalance) - Get Customer Balance
|
|
525
526
|
- [`customersGetExternal`](docs/sdks/customers/README.md#getexternal) - Get Customer by External ID
|
|
526
527
|
- [`customersGetState`](docs/sdks/customers/README.md#getstate) - Get Customer State
|
|
527
528
|
- [`customersGetStateExternal`](docs/sdks/customers/README.md#getstateexternal) - Get Customer State by External ID
|
|
@@ -756,7 +757,7 @@ run();
|
|
|
756
757
|
* [`PolarError`](./src/models/errors/polarerror.ts): The base class for HTTP error responses.
|
|
757
758
|
* [`HTTPValidationError`](./src/models/errors/httpvalidationerror.ts): Validation Error. Status code `422`. *
|
|
758
759
|
|
|
759
|
-
<details><summary>Less common errors (
|
|
760
|
+
<details><summary>Less common errors (25)</summary>
|
|
760
761
|
|
|
761
762
|
<br />
|
|
762
763
|
|
|
@@ -769,24 +770,25 @@ run();
|
|
|
769
770
|
|
|
770
771
|
|
|
771
772
|
**Inherit from [`PolarError`](./src/models/errors/polarerror.ts)**:
|
|
772
|
-
* [`ResourceNotFound`](./src/models/errors/resourcenotfound.ts): Status code `404`. Applicable to
|
|
773
|
-
* [`NotPermitted`](./src/models/errors/notpermitted.ts): Status code `403`. Applicable to 10 of
|
|
774
|
-
* [`Unauthorized`](./src/models/errors/unauthorized.ts): Not authorized to manage license key. Status code `401`. Applicable to 5 of
|
|
775
|
-
* [`AlreadyCanceledSubscription`](./src/models/errors/alreadycanceledsubscription.ts): Status code `403`. Applicable to 4 of
|
|
776
|
-
* [`AlreadyActiveSubscriptionError`](./src/models/errors/alreadyactivesubscriptionerror.ts): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of
|
|
777
|
-
* [`NotOpenCheckout`](./src/models/errors/notopencheckout.ts): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of
|
|
778
|
-
* [`PaymentNotReady`](./src/models/errors/paymentnotready.ts): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of
|
|
779
|
-
* [`ExpiredCheckoutError`](./src/models/errors/expiredcheckouterror.ts): The checkout session is expired. Status code `410`. Applicable to 3 of
|
|
780
|
-
* [`SubscriptionLocked`](./src/models/errors/subscriptionlocked.ts): Subscription is pending an update. Status code `409`. Applicable to 2 of
|
|
781
|
-
* [`InvoiceAlreadyExists`](./src/models/errors/invoicealreadyexists.ts): Order already has an invoice. Status code `409`. Applicable to 2 of
|
|
782
|
-
* [`MissingInvoiceBillingDetails`](./src/models/errors/missinginvoicebillingdetails.ts): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of
|
|
783
|
-
* [`NotPaidOrder`](./src/models/errors/notpaidorder.ts): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of
|
|
784
|
-
* [`RefundAmountTooHigh`](./src/models/errors/refundamounttoohigh.ts): Refund amount exceeds remaining order balance. Status code `400`. Applicable to 1 of
|
|
785
|
-
* [`PaymentError`](./src/models/errors/paymenterror.ts): The payment failed. Status code `400`. Applicable to 1 of
|
|
786
|
-
* [`
|
|
787
|
-
* [`
|
|
788
|
-
* [`
|
|
789
|
-
* [`
|
|
773
|
+
* [`ResourceNotFound`](./src/models/errors/resourcenotfound.ts): Status code `404`. Applicable to 77 of 132 methods.*
|
|
774
|
+
* [`NotPermitted`](./src/models/errors/notpermitted.ts): Status code `403`. Applicable to 10 of 132 methods.*
|
|
775
|
+
* [`Unauthorized`](./src/models/errors/unauthorized.ts): Not authorized to manage license key. Status code `401`. Applicable to 5 of 132 methods.*
|
|
776
|
+
* [`AlreadyCanceledSubscription`](./src/models/errors/alreadycanceledsubscription.ts): Status code `403`. Applicable to 4 of 132 methods.*
|
|
777
|
+
* [`AlreadyActiveSubscriptionError`](./src/models/errors/alreadyactivesubscriptionerror.ts): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 132 methods.*
|
|
778
|
+
* [`NotOpenCheckout`](./src/models/errors/notopencheckout.ts): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 132 methods.*
|
|
779
|
+
* [`PaymentNotReady`](./src/models/errors/paymentnotready.ts): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 132 methods.*
|
|
780
|
+
* [`ExpiredCheckoutError`](./src/models/errors/expiredcheckouterror.ts): The checkout session is expired. Status code `410`. Applicable to 3 of 132 methods.*
|
|
781
|
+
* [`SubscriptionLocked`](./src/models/errors/subscriptionlocked.ts): Subscription is pending an update. Status code `409`. Applicable to 2 of 132 methods.*
|
|
782
|
+
* [`InvoiceAlreadyExists`](./src/models/errors/invoicealreadyexists.ts): Order already has an invoice. Status code `409`. Applicable to 2 of 132 methods.*
|
|
783
|
+
* [`MissingInvoiceBillingDetails`](./src/models/errors/missinginvoicebillingdetails.ts): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 132 methods.*
|
|
784
|
+
* [`NotPaidOrder`](./src/models/errors/notpaidorder.ts): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 132 methods.*
|
|
785
|
+
* [`RefundAmountTooHigh`](./src/models/errors/refundamounttoohigh.ts): Refund amount exceeds remaining order balance. Status code `400`. Applicable to 1 of 132 methods.*
|
|
786
|
+
* [`PaymentError`](./src/models/errors/paymenterror.ts): The payment failed. Status code `400`. Applicable to 1 of 132 methods.*
|
|
787
|
+
* [`CustomerNotReady`](./src/models/errors/customernotready.ts): Customer is not ready to confirm a payment method. Status code `400`. Applicable to 1 of 132 methods.*
|
|
788
|
+
* [`PaymentMethodInUseByActiveSubscription`](./src/models/errors/paymentmethodinusebyactivesubscription.ts): Payment method is used by active subscription(s). Status code `400`. Applicable to 1 of 132 methods.*
|
|
789
|
+
* [`RefundedAlready`](./src/models/errors/refundedalready.ts): Order is already fully refunded. Status code `403`. Applicable to 1 of 132 methods.*
|
|
790
|
+
* [`PaymentAlreadyInProgress`](./src/models/errors/paymentalreadyinprogress.ts): Payment already in progress. Status code `409`. Applicable to 1 of 132 methods.*
|
|
791
|
+
* [`OrderNotEligibleForRetry`](./src/models/errors/ordernoteligibleforretry.ts): Order not eligible for retry or payment confirmation failed. Status code `422`. Applicable to 1 of 132 methods.*
|
|
790
792
|
* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
|
|
791
793
|
|
|
792
794
|
</details>
|