@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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { customerPortalCustomersAddPaymentMethod } from "../funcs/customerPortalCustomersAddPaymentMethod.js";
|
|
5
5
|
import { customerPortalCustomersDeletePaymentMethod } from "../funcs/customerPortalCustomersDeletePaymentMethod.js";
|
|
6
6
|
import { customerPortalCustomersGet } from "../funcs/customerPortalCustomersGet.js";
|
|
7
|
-
import {
|
|
7
|
+
import { customerPortalCustomersListPaymentMethods } from "../funcs/customerPortalCustomersListPaymentMethods.js";
|
|
8
8
|
import { customerPortalCustomersUpdate } from "../funcs/customerPortalCustomersUpdate.js";
|
|
9
9
|
import { ClientSDK } from "../lib/sdks.js";
|
|
10
10
|
import { unwrapAsync } from "../types/fp.js";
|
|
@@ -33,15 +33,15 @@ export class PolarCustomers extends ClientSDK {
|
|
|
33
33
|
return unwrapAsync(customerPortalCustomersUpdate(this, security, request, options));
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* List Customer Payment Methods
|
|
37
37
|
*
|
|
38
38
|
* @remarks
|
|
39
39
|
* Get saved payment methods of the authenticated customer.
|
|
40
40
|
*
|
|
41
41
|
* **Scopes**: `customer_portal:read` `customer_portal:write`
|
|
42
42
|
*/
|
|
43
|
-
async
|
|
44
|
-
return unwrapResultIterator(
|
|
43
|
+
async listPaymentMethods(security, request, options) {
|
|
44
|
+
return unwrapResultIterator(customerPortalCustomersListPaymentMethods(this, security, request, options));
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* Add Customer Payment Method
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polarcustomers.js","sourceRoot":"","sources":["../../../src/sdk/polarcustomers.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,uCAAuC,EAAE,MAAM,qDAAqD,CAAC;AAC9G,OAAO,EAAE,0CAA0C,EAAE,MAAM,wDAAwD,CAAC;AACpH,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"polarcustomers.js","sourceRoot":"","sources":["../../../src/sdk/polarcustomers.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,uCAAuC,EAAE,MAAM,qDAAqD,CAAC;AAC9G,OAAO,EAAE,0CAA0C,EAAE,MAAM,wDAAwD,CAAC;AACpH,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,yCAAyC,EAAE,MAAM,uDAAuD,CAAC;AAClH,OAAO,EAAE,6BAA6B,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAmB3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAgB,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE5E,MAAM,OAAO,cAAe,SAAQ,SAAS;IAC3C;;;;;;;OAOG;IACH,KAAK,CAAC,GAAG,CACP,QAA4C,EAC5C,OAAwB;QAExB,OAAO,WAAW,CAAC,0BAA0B,CAC3C,IAAI,EACJ,QAAQ,EACR,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CACV,QAA+C,EAC/C,OAAqC,EACrC,OAAwB;QAExB,OAAO,WAAW,CAAC,6BAA6B,CAC9C,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,kBAAkB,CACtB,QAA2D,EAC3D,OAAyD,EACzD,OAAwB;QAOxB,OAAO,oBAAoB,CAAC,yCAAyC,CACnE,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,gBAAgB,CACpB,QAAyD,EACzD,OAAoC,EACpC,OAAwB;QAIxB,OAAO,WAAW,CAAC,uCAAuC,CACxD,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,mBAAmB,CACvB,QAA4D,EAC5D,OAA0D,EAC1D,OAAwB;QAExB,OAAO,WAAW,CAAC,0CAA0C,CAC3D,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
8
|
* [list](#list) - List Downloadables
|
|
9
|
-
* [get](#get) - Get Downloadable
|
|
10
9
|
|
|
11
10
|
## list
|
|
12
11
|
|
|
@@ -81,75 +80,6 @@ run();
|
|
|
81
80
|
|
|
82
81
|
### Errors
|
|
83
82
|
|
|
84
|
-
| Error Type | Status Code | Content Type |
|
|
85
|
-
| -------------------------- | -------------------------- | -------------------------- |
|
|
86
|
-
| errors.HTTPValidationError | 422 | application/json |
|
|
87
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
88
|
-
|
|
89
|
-
## get
|
|
90
|
-
|
|
91
|
-
Get Downloadable
|
|
92
|
-
|
|
93
|
-
### Example Usage
|
|
94
|
-
|
|
95
|
-
```typescript
|
|
96
|
-
import { Polar } from "@polar-sh/sdk";
|
|
97
|
-
|
|
98
|
-
const polar = new Polar();
|
|
99
|
-
|
|
100
|
-
async function run() {
|
|
101
|
-
const result = await polar.customerPortal.downloadables.get({
|
|
102
|
-
token: "<value>",
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
console.log(result);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
run();
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
### Standalone function
|
|
112
|
-
|
|
113
|
-
The standalone function version of this method:
|
|
114
|
-
|
|
115
|
-
```typescript
|
|
116
|
-
import { PolarCore } from "@polar-sh/sdk/core.js";
|
|
117
|
-
import { customerPortalDownloadablesGet } from "@polar-sh/sdk/funcs/customerPortalDownloadablesGet.js";
|
|
118
|
-
|
|
119
|
-
// Use `PolarCore` for best tree-shaking performance.
|
|
120
|
-
// You can create one instance of it to use across an application.
|
|
121
|
-
const polar = new PolarCore();
|
|
122
|
-
|
|
123
|
-
async function run() {
|
|
124
|
-
const res = await customerPortalDownloadablesGet(polar, {
|
|
125
|
-
token: "<value>",
|
|
126
|
-
});
|
|
127
|
-
if (res.ok) {
|
|
128
|
-
const { value: result } = res;
|
|
129
|
-
console.log(result);
|
|
130
|
-
} else {
|
|
131
|
-
console.log("customerPortalDownloadablesGet failed:", res.error);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
run();
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
### Parameters
|
|
139
|
-
|
|
140
|
-
| Parameter | Type | Required | Description |
|
|
141
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
142
|
-
| `request` | [operations.CustomerPortalDownloadablesCustomerPortalDownloadablesGetRequest](../../models/operations/customerportaldownloadablescustomerportaldownloadablesgetrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
143
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
144
|
-
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
145
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
146
|
-
|
|
147
|
-
### Response
|
|
148
|
-
|
|
149
|
-
**Promise\<[any](../../models/.md)\>**
|
|
150
|
-
|
|
151
|
-
### Errors
|
|
152
|
-
|
|
153
83
|
| Error Type | Status Code | Content Type |
|
|
154
84
|
| -------------------------- | -------------------------- | -------------------------- |
|
|
155
85
|
| errors.HTTPValidationError | 422 | application/json |
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
* [get](#get) - Get Customer
|
|
9
9
|
* [update](#update) - Update Customer
|
|
10
|
-
* [
|
|
10
|
+
* [listPaymentMethods](#listpaymentmethods) - List Customer Payment Methods
|
|
11
11
|
* [addPaymentMethod](#addpaymentmethod) - Add Customer Payment Method
|
|
12
12
|
* [deletePaymentMethod](#deletepaymentmethod) - Delete Customer Payment Method
|
|
13
13
|
|
|
@@ -161,7 +161,7 @@ run();
|
|
|
161
161
|
| errors.HTTPValidationError | 422 | application/json |
|
|
162
162
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
163
163
|
|
|
164
|
-
##
|
|
164
|
+
## listPaymentMethods
|
|
165
165
|
|
|
166
166
|
Get saved payment methods of the authenticated customer.
|
|
167
167
|
|
|
@@ -175,7 +175,7 @@ import { Polar } from "@polar-sh/sdk";
|
|
|
175
175
|
const polar = new Polar();
|
|
176
176
|
|
|
177
177
|
async function run() {
|
|
178
|
-
const result = await polar.customerPortal.customers.
|
|
178
|
+
const result = await polar.customerPortal.customers.listPaymentMethods({
|
|
179
179
|
customerSession: process.env["POLAR_CUSTOMER_SESSION"] ?? "",
|
|
180
180
|
}, {});
|
|
181
181
|
|
|
@@ -193,14 +193,14 @@ The standalone function version of this method:
|
|
|
193
193
|
|
|
194
194
|
```typescript
|
|
195
195
|
import { PolarCore } from "@polar-sh/sdk/core.js";
|
|
196
|
-
import {
|
|
196
|
+
import { customerPortalCustomersListPaymentMethods } from "@polar-sh/sdk/funcs/customerPortalCustomersListPaymentMethods.js";
|
|
197
197
|
|
|
198
198
|
// Use `PolarCore` for best tree-shaking performance.
|
|
199
199
|
// You can create one instance of it to use across an application.
|
|
200
200
|
const polar = new PolarCore();
|
|
201
201
|
|
|
202
202
|
async function run() {
|
|
203
|
-
const res = await
|
|
203
|
+
const res = await customerPortalCustomersListPaymentMethods(polar, {
|
|
204
204
|
customerSession: process.env["POLAR_CUSTOMER_SESSION"] ?? "",
|
|
205
205
|
}, {});
|
|
206
206
|
if (res.ok) {
|
|
@@ -209,7 +209,7 @@ async function run() {
|
|
|
209
209
|
console.log(page);
|
|
210
210
|
}
|
|
211
211
|
} else {
|
|
212
|
-
console.log("
|
|
212
|
+
console.log("customerPortalCustomersListPaymentMethods failed:", res.error);
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
|
|
@@ -220,15 +220,15 @@ run();
|
|
|
220
220
|
|
|
221
221
|
| Parameter | Type | Required | Description |
|
|
222
222
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
223
|
-
| `request` | [operations.
|
|
224
|
-
| `security` | [operations.
|
|
223
|
+
| `request` | [operations.CustomerPortalCustomersListPaymentMethodsRequest](../../models/operations/customerportalcustomerslistpaymentmethodsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
224
|
+
| `security` | [operations.CustomerPortalCustomersListPaymentMethodsSecurity](../../models/operations/customerportalcustomerslistpaymentmethodssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. |
|
|
225
225
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
226
226
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
227
227
|
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
228
228
|
|
|
229
229
|
### Response
|
|
230
230
|
|
|
231
|
-
**Promise\<[operations.
|
|
231
|
+
**Promise\<[operations.CustomerPortalCustomersListPaymentMethodsResponse](../../models/operations/customerportalcustomerslistpaymentmethodsresponse.md)\>**
|
|
232
232
|
|
|
233
233
|
### Errors
|
|
234
234
|
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -26,12 +26,12 @@ import { PolarError } from "../models/errors/polarerror.js";
|
|
|
26
26
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
27
27
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
} from "../models/operations/
|
|
29
|
+
CustomerPortalCustomersListPaymentMethodsRequest,
|
|
30
|
+
CustomerPortalCustomersListPaymentMethodsRequest$outboundSchema,
|
|
31
|
+
CustomerPortalCustomersListPaymentMethodsResponse,
|
|
32
|
+
CustomerPortalCustomersListPaymentMethodsResponse$inboundSchema,
|
|
33
|
+
CustomerPortalCustomersListPaymentMethodsSecurity,
|
|
34
|
+
} from "../models/operations/customerportalcustomerslistpaymentmethods.js";
|
|
35
35
|
import { APICall, APIPromise } from "../types/async.js";
|
|
36
36
|
import { Result } from "../types/fp.js";
|
|
37
37
|
import {
|
|
@@ -42,22 +42,22 @@ import {
|
|
|
42
42
|
} from "../types/operations.js";
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* List Customer Payment Methods
|
|
46
46
|
*
|
|
47
47
|
* @remarks
|
|
48
48
|
* Get saved payment methods of the authenticated customer.
|
|
49
49
|
*
|
|
50
50
|
* **Scopes**: `customer_portal:read` `customer_portal:write`
|
|
51
51
|
*/
|
|
52
|
-
export function
|
|
52
|
+
export function customerPortalCustomersListPaymentMethods(
|
|
53
53
|
client: PolarCore,
|
|
54
|
-
security:
|
|
55
|
-
request:
|
|
54
|
+
security: CustomerPortalCustomersListPaymentMethodsSecurity,
|
|
55
|
+
request: CustomerPortalCustomersListPaymentMethodsRequest,
|
|
56
56
|
options?: RequestOptions,
|
|
57
57
|
): APIPromise<
|
|
58
58
|
PageIterator<
|
|
59
59
|
Result<
|
|
60
|
-
|
|
60
|
+
CustomerPortalCustomersListPaymentMethodsResponse,
|
|
61
61
|
| HTTPValidationError
|
|
62
62
|
| PolarError
|
|
63
63
|
| ResponseValidationError
|
|
@@ -81,14 +81,14 @@ export function customerPortalCustomersGetPaymentMethods(
|
|
|
81
81
|
|
|
82
82
|
async function $do(
|
|
83
83
|
client: PolarCore,
|
|
84
|
-
security:
|
|
85
|
-
request:
|
|
84
|
+
security: CustomerPortalCustomersListPaymentMethodsSecurity,
|
|
85
|
+
request: CustomerPortalCustomersListPaymentMethodsRequest,
|
|
86
86
|
options?: RequestOptions,
|
|
87
87
|
): Promise<
|
|
88
88
|
[
|
|
89
89
|
PageIterator<
|
|
90
90
|
Result<
|
|
91
|
-
|
|
91
|
+
CustomerPortalCustomersListPaymentMethodsResponse,
|
|
92
92
|
| HTTPValidationError
|
|
93
93
|
| PolarError
|
|
94
94
|
| ResponseValidationError
|
|
@@ -107,7 +107,7 @@ async function $do(
|
|
|
107
107
|
const parsed = safeParse(
|
|
108
108
|
request,
|
|
109
109
|
(value) =>
|
|
110
|
-
|
|
110
|
+
CustomerPortalCustomersListPaymentMethodsRequest$outboundSchema.parse(
|
|
111
111
|
value,
|
|
112
112
|
),
|
|
113
113
|
"Input validation failed",
|
|
@@ -142,7 +142,7 @@ async function $do(
|
|
|
142
142
|
const context = {
|
|
143
143
|
options: client._options,
|
|
144
144
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
145
|
-
operationID: "customer_portal:customers:
|
|
145
|
+
operationID: "customer_portal:customers:list_payment_methods",
|
|
146
146
|
oAuth2Scopes: null,
|
|
147
147
|
|
|
148
148
|
resolvedSecurity: requestSecurity,
|
|
@@ -186,7 +186,7 @@ async function $do(
|
|
|
186
186
|
};
|
|
187
187
|
|
|
188
188
|
const [result, raw] = await M.match<
|
|
189
|
-
|
|
189
|
+
CustomerPortalCustomersListPaymentMethodsResponse,
|
|
190
190
|
| HTTPValidationError
|
|
191
191
|
| PolarError
|
|
192
192
|
| ResponseValidationError
|
|
@@ -199,7 +199,7 @@ async function $do(
|
|
|
199
199
|
>(
|
|
200
200
|
M.json(
|
|
201
201
|
200,
|
|
202
|
-
|
|
202
|
+
CustomerPortalCustomersListPaymentMethodsResponse$inboundSchema,
|
|
203
203
|
{ key: "Result" },
|
|
204
204
|
),
|
|
205
205
|
M.jsonErr(422, HTTPValidationError$inboundSchema),
|
|
@@ -219,7 +219,7 @@ async function $do(
|
|
|
219
219
|
): {
|
|
220
220
|
next: Paginator<
|
|
221
221
|
Result<
|
|
222
|
-
|
|
222
|
+
CustomerPortalCustomersListPaymentMethodsResponse,
|
|
223
223
|
| HTTPValidationError
|
|
224
224
|
| PolarError
|
|
225
225
|
| ResponseValidationError
|
|
@@ -253,7 +253,7 @@ async function $do(
|
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
const nextVal = () =>
|
|
256
|
-
|
|
256
|
+
customerPortalCustomersListPaymentMethods(
|
|
257
257
|
client,
|
|
258
258
|
security,
|
|
259
259
|
{
|
package/src/funcs/metricsGet.ts
CHANGED
|
@@ -125,6 +125,7 @@ async function $do(
|
|
|
125
125
|
"active": payload.active,
|
|
126
126
|
"customer_id": payload.customer_id,
|
|
127
127
|
"discount_id": payload.discount_id,
|
|
128
|
+
"external_customer_id": payload.external_customer_id,
|
|
128
129
|
"limit": payload.limit,
|
|
129
130
|
"organization_id": payload.organization_id,
|
|
130
131
|
"page": payload.page,
|
package/src/lib/config.ts
CHANGED
|
@@ -64,7 +64,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
64
64
|
export const SDK_METADATA = {
|
|
65
65
|
language: "typescript",
|
|
66
66
|
openapiDocVersion: "0.1.0",
|
|
67
|
-
sdkVersion: "0.34.
|
|
67
|
+
sdkVersion: "0.34.4",
|
|
68
68
|
genVersion: "2.628.0",
|
|
69
|
-
userAgent: "speakeasy-sdk/typescript 0.34.
|
|
69
|
+
userAgent: "speakeasy-sdk/typescript 0.34.4 2.628.0 0.1.0 @polar-sh/sdk",
|
|
70
70
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -17,6 +17,10 @@ export type BenefitDiscordCreateProperties = {
|
|
|
17
17
|
* The ID of the Discord role to grant.
|
|
18
18
|
*/
|
|
19
19
|
roleId: string;
|
|
20
|
+
/**
|
|
21
|
+
* Whether to kick the member from the Discord server on revocation.
|
|
22
|
+
*/
|
|
23
|
+
kickMember: boolean;
|
|
20
24
|
};
|
|
21
25
|
|
|
22
26
|
/** @internal */
|
|
@@ -27,10 +31,12 @@ export const BenefitDiscordCreateProperties$inboundSchema: z.ZodType<
|
|
|
27
31
|
> = z.object({
|
|
28
32
|
guild_token: z.string(),
|
|
29
33
|
role_id: z.string(),
|
|
34
|
+
kick_member: z.boolean(),
|
|
30
35
|
}).transform((v) => {
|
|
31
36
|
return remap$(v, {
|
|
32
37
|
"guild_token": "guildToken",
|
|
33
38
|
"role_id": "roleId",
|
|
39
|
+
"kick_member": "kickMember",
|
|
34
40
|
});
|
|
35
41
|
});
|
|
36
42
|
|
|
@@ -38,6 +44,7 @@ export const BenefitDiscordCreateProperties$inboundSchema: z.ZodType<
|
|
|
38
44
|
export type BenefitDiscordCreateProperties$Outbound = {
|
|
39
45
|
guild_token: string;
|
|
40
46
|
role_id: string;
|
|
47
|
+
kick_member: boolean;
|
|
41
48
|
};
|
|
42
49
|
|
|
43
50
|
/** @internal */
|
|
@@ -48,10 +55,12 @@ export const BenefitDiscordCreateProperties$outboundSchema: z.ZodType<
|
|
|
48
55
|
> = z.object({
|
|
49
56
|
guildToken: z.string(),
|
|
50
57
|
roleId: z.string(),
|
|
58
|
+
kickMember: z.boolean(),
|
|
51
59
|
}).transform((v) => {
|
|
52
60
|
return remap$(v, {
|
|
53
61
|
guildToken: "guild_token",
|
|
54
62
|
roleId: "role_id",
|
|
63
|
+
kickMember: "kick_member",
|
|
55
64
|
});
|
|
56
65
|
});
|
|
57
66
|
|
|
@@ -20,6 +20,10 @@ export type BenefitDiscordProperties = {
|
|
|
20
20
|
* The ID of the Discord role to grant.
|
|
21
21
|
*/
|
|
22
22
|
roleId: string;
|
|
23
|
+
/**
|
|
24
|
+
* Whether to kick the member from the Discord server on revocation.
|
|
25
|
+
*/
|
|
26
|
+
kickMember: boolean;
|
|
23
27
|
guildToken: string;
|
|
24
28
|
};
|
|
25
29
|
|
|
@@ -31,11 +35,13 @@ export const BenefitDiscordProperties$inboundSchema: z.ZodType<
|
|
|
31
35
|
> = z.object({
|
|
32
36
|
guild_id: z.string(),
|
|
33
37
|
role_id: z.string(),
|
|
38
|
+
kick_member: z.boolean(),
|
|
34
39
|
guild_token: z.string(),
|
|
35
40
|
}).transform((v) => {
|
|
36
41
|
return remap$(v, {
|
|
37
42
|
"guild_id": "guildId",
|
|
38
43
|
"role_id": "roleId",
|
|
44
|
+
"kick_member": "kickMember",
|
|
39
45
|
"guild_token": "guildToken",
|
|
40
46
|
});
|
|
41
47
|
});
|
|
@@ -44,6 +50,7 @@ export const BenefitDiscordProperties$inboundSchema: z.ZodType<
|
|
|
44
50
|
export type BenefitDiscordProperties$Outbound = {
|
|
45
51
|
guild_id: string;
|
|
46
52
|
role_id: string;
|
|
53
|
+
kick_member: boolean;
|
|
47
54
|
guild_token: string;
|
|
48
55
|
};
|
|
49
56
|
|
|
@@ -55,11 +62,13 @@ export const BenefitDiscordProperties$outboundSchema: z.ZodType<
|
|
|
55
62
|
> = z.object({
|
|
56
63
|
guildId: z.string(),
|
|
57
64
|
roleId: z.string(),
|
|
65
|
+
kickMember: z.boolean(),
|
|
58
66
|
guildToken: z.string(),
|
|
59
67
|
}).transform((v) => {
|
|
60
68
|
return remap$(v, {
|
|
61
69
|
guildId: "guild_id",
|
|
62
70
|
roleId: "role_id",
|
|
71
|
+
kickMember: "kick_member",
|
|
63
72
|
guildToken: "guild_token",
|
|
64
73
|
});
|
|
65
74
|
});
|
|
@@ -0,0 +1,36 @@
|
|
|
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 BillingAddressFieldMode = {
|
|
9
|
+
Required: "required",
|
|
10
|
+
Optional: "optional",
|
|
11
|
+
Disabled: "disabled",
|
|
12
|
+
} as const;
|
|
13
|
+
export type BillingAddressFieldMode = ClosedEnum<
|
|
14
|
+
typeof BillingAddressFieldMode
|
|
15
|
+
>;
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const BillingAddressFieldMode$inboundSchema: z.ZodNativeEnum<
|
|
19
|
+
typeof BillingAddressFieldMode
|
|
20
|
+
> = z.nativeEnum(BillingAddressFieldMode);
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const BillingAddressFieldMode$outboundSchema: z.ZodNativeEnum<
|
|
24
|
+
typeof BillingAddressFieldMode
|
|
25
|
+
> = BillingAddressFieldMode$inboundSchema;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
30
|
+
*/
|
|
31
|
+
export namespace BillingAddressFieldMode$ {
|
|
32
|
+
/** @deprecated use `BillingAddressFieldMode$inboundSchema` instead. */
|
|
33
|
+
export const inboundSchema = BillingAddressFieldMode$inboundSchema;
|
|
34
|
+
/** @deprecated use `BillingAddressFieldMode$outboundSchema` instead. */
|
|
35
|
+
export const outboundSchema = BillingAddressFieldMode$outboundSchema;
|
|
36
|
+
}
|
|
@@ -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,
|
|
@@ -221,7 +221,7 @@ export type Checkout = {
|
|
|
221
221
|
customerBillingAddress: Address | null;
|
|
222
222
|
customerTaxId: string | null;
|
|
223
223
|
paymentProcessorMetadata: { [k: string]: string };
|
|
224
|
-
|
|
224
|
+
billingAddressFields: CheckoutBillingAddressFields;
|
|
225
225
|
metadata: { [k: string]: string | number | number | boolean };
|
|
226
226
|
/**
|
|
227
227
|
* ID of the customer in your system. If a matching customer exists on Polar, the resulting order will be linked to this customer. Otherwise, a new customer will be created with this external ID set.
|
|
@@ -583,8 +583,7 @@ export const Checkout$inboundSchema: z.ZodType<
|
|
|
583
583
|
customer_billing_address: z.nullable(Address$inboundSchema),
|
|
584
584
|
customer_tax_id: z.nullable(z.string()),
|
|
585
585
|
payment_processor_metadata: z.record(z.string()),
|
|
586
|
-
|
|
587
|
-
CheckoutCustomerBillingAddressFields$inboundSchema,
|
|
586
|
+
billing_address_fields: CheckoutBillingAddressFields$inboundSchema,
|
|
588
587
|
metadata: z.record(
|
|
589
588
|
z.union([z.string(), z.number().int(), z.number(), z.boolean()]),
|
|
590
589
|
),
|
|
@@ -642,7 +641,7 @@ export const Checkout$inboundSchema: z.ZodType<
|
|
|
642
641
|
"customer_billing_address": "customerBillingAddress",
|
|
643
642
|
"customer_tax_id": "customerTaxId",
|
|
644
643
|
"payment_processor_metadata": "paymentProcessorMetadata",
|
|
645
|
-
"
|
|
644
|
+
"billing_address_fields": "billingAddressFields",
|
|
646
645
|
"external_customer_id": "externalCustomerId",
|
|
647
646
|
"customer_external_id": "customerExternalId",
|
|
648
647
|
"product_price": "productPrice",
|
|
@@ -692,8 +691,7 @@ export type Checkout$Outbound = {
|
|
|
692
691
|
customer_billing_address: Address$Outbound | null;
|
|
693
692
|
customer_tax_id: string | null;
|
|
694
693
|
payment_processor_metadata: { [k: string]: string };
|
|
695
|
-
|
|
696
|
-
CheckoutCustomerBillingAddressFields$Outbound;
|
|
694
|
+
billing_address_fields: CheckoutBillingAddressFields$Outbound;
|
|
697
695
|
metadata: { [k: string]: string | number | number | boolean };
|
|
698
696
|
external_customer_id: string | null;
|
|
699
697
|
customer_external_id: string | null;
|
|
@@ -762,8 +760,7 @@ export const Checkout$outboundSchema: z.ZodType<
|
|
|
762
760
|
customerBillingAddress: z.nullable(Address$outboundSchema),
|
|
763
761
|
customerTaxId: z.nullable(z.string()),
|
|
764
762
|
paymentProcessorMetadata: z.record(z.string()),
|
|
765
|
-
|
|
766
|
-
CheckoutCustomerBillingAddressFields$outboundSchema,
|
|
763
|
+
billingAddressFields: CheckoutBillingAddressFields$outboundSchema,
|
|
767
764
|
metadata: z.record(
|
|
768
765
|
z.union([z.string(), z.number().int(), z.number(), z.boolean()]),
|
|
769
766
|
),
|
|
@@ -821,7 +818,7 @@ export const Checkout$outboundSchema: z.ZodType<
|
|
|
821
818
|
customerBillingAddress: "customer_billing_address",
|
|
822
819
|
customerTaxId: "customer_tax_id",
|
|
823
820
|
paymentProcessorMetadata: "payment_processor_metadata",
|
|
824
|
-
|
|
821
|
+
billingAddressFields: "billing_address_fields",
|
|
825
822
|
externalCustomerId: "external_customer_id",
|
|
826
823
|
customerExternalId: "customer_external_id",
|
|
827
824
|
productPrice: "product_price",
|