@polar-sh/sdk 0.19.2 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -10
- package/RUNTIMES.md +27 -1
- package/docs/sdks/polarsubscriptions/README.md +6 -5
- package/docs/sdks/subscriptions/README.md +165 -1
- package/funcs/advertisementsGet.js +4 -4
- package/funcs/advertisementsGet.js.map +1 -1
- package/funcs/advertisementsList.js +6 -6
- package/funcs/advertisementsList.js.map +1 -1
- package/funcs/benefitsCreate.js +4 -4
- package/funcs/benefitsCreate.js.map +1 -1
- package/funcs/benefitsDelete.js +4 -4
- package/funcs/benefitsDelete.js.map +1 -1
- package/funcs/benefitsGet.js +4 -4
- package/funcs/benefitsGet.js.map +1 -1
- package/funcs/benefitsGrants.js +6 -6
- package/funcs/benefitsGrants.js.map +1 -1
- package/funcs/benefitsList.js +6 -6
- package/funcs/benefitsList.js.map +1 -1
- package/funcs/benefitsUpdate.js +4 -4
- package/funcs/benefitsUpdate.js.map +1 -1
- package/funcs/checkoutLinksCreate.js +4 -4
- package/funcs/checkoutLinksCreate.js.map +1 -1
- package/funcs/checkoutLinksDelete.js +4 -4
- package/funcs/checkoutLinksDelete.js.map +1 -1
- package/funcs/checkoutLinksGet.js +4 -4
- package/funcs/checkoutLinksGet.js.map +1 -1
- package/funcs/checkoutLinksList.js +6 -6
- package/funcs/checkoutLinksList.js.map +1 -1
- package/funcs/checkoutLinksUpdate.js +4 -4
- package/funcs/checkoutLinksUpdate.js.map +1 -1
- package/funcs/checkoutsCreate.js +4 -4
- package/funcs/checkoutsCreate.js.map +1 -1
- package/funcs/checkoutsCustomClientConfirm.js +4 -4
- package/funcs/checkoutsCustomClientConfirm.js.map +1 -1
- package/funcs/checkoutsCustomClientGet.js +4 -4
- package/funcs/checkoutsCustomClientGet.js.map +1 -1
- package/funcs/checkoutsCustomClientUpdate.js +4 -4
- package/funcs/checkoutsCustomClientUpdate.js.map +1 -1
- package/funcs/checkoutsCustomCreate.js +4 -4
- package/funcs/checkoutsCustomCreate.js.map +1 -1
- package/funcs/checkoutsCustomGet.js +4 -4
- package/funcs/checkoutsCustomGet.js.map +1 -1
- package/funcs/checkoutsCustomList.js +6 -6
- package/funcs/checkoutsCustomList.js.map +1 -1
- package/funcs/checkoutsCustomUpdate.js +4 -4
- package/funcs/checkoutsCustomUpdate.js.map +1 -1
- package/funcs/checkoutsGet.js +4 -4
- package/funcs/checkoutsGet.js.map +1 -1
- package/funcs/customFieldsCreate.js +4 -4
- package/funcs/customFieldsCreate.js.map +1 -1
- package/funcs/customFieldsDelete.js +4 -4
- package/funcs/customFieldsDelete.js.map +1 -1
- package/funcs/customFieldsGet.js +4 -4
- package/funcs/customFieldsGet.js.map +1 -1
- package/funcs/customFieldsList.js +6 -6
- package/funcs/customFieldsList.js.map +1 -1
- package/funcs/customFieldsUpdate.js +4 -4
- package/funcs/customFieldsUpdate.js.map +1 -1
- package/funcs/customerPortalBenefitGrantsGet.js +4 -4
- package/funcs/customerPortalBenefitGrantsGet.js.map +1 -1
- package/funcs/customerPortalBenefitGrantsList.js +6 -6
- package/funcs/customerPortalBenefitGrantsList.js.map +1 -1
- package/funcs/customerPortalBenefitGrantsUpdate.js +4 -4
- package/funcs/customerPortalBenefitGrantsUpdate.js.map +1 -1
- package/funcs/customerPortalCustomersGet.js +4 -4
- package/funcs/customerPortalCustomersGet.js.map +1 -1
- package/funcs/customerPortalDownloadablesGet.js +4 -4
- package/funcs/customerPortalDownloadablesGet.js.map +1 -1
- package/funcs/customerPortalDownloadablesList.js +6 -6
- package/funcs/customerPortalDownloadablesList.js.map +1 -1
- package/funcs/customerPortalLicenseKeysActivate.js +4 -4
- package/funcs/customerPortalLicenseKeysActivate.js.map +1 -1
- package/funcs/customerPortalLicenseKeysDeactivate.js +4 -4
- package/funcs/customerPortalLicenseKeysDeactivate.js.map +1 -1
- package/funcs/customerPortalLicenseKeysGet.js +4 -4
- package/funcs/customerPortalLicenseKeysGet.js.map +1 -1
- package/funcs/customerPortalLicenseKeysList.js +6 -6
- package/funcs/customerPortalLicenseKeysList.js.map +1 -1
- package/funcs/customerPortalLicenseKeysValidate.js +4 -4
- package/funcs/customerPortalLicenseKeysValidate.js.map +1 -1
- package/funcs/customerPortalOrdersGet.js +4 -4
- package/funcs/customerPortalOrdersGet.js.map +1 -1
- package/funcs/customerPortalOrdersInvoice.js +4 -4
- package/funcs/customerPortalOrdersInvoice.js.map +1 -1
- package/funcs/customerPortalOrdersList.js +6 -6
- package/funcs/customerPortalOrdersList.js.map +1 -1
- package/funcs/customerPortalOrganizationsGet.js +4 -4
- package/funcs/customerPortalOrganizationsGet.js.map +1 -1
- package/funcs/customerPortalSubscriptionsCancel.js +4 -4
- package/funcs/customerPortalSubscriptionsCancel.js.map +1 -1
- package/funcs/customerPortalSubscriptionsGet.js +4 -4
- package/funcs/customerPortalSubscriptionsGet.js.map +1 -1
- package/funcs/customerPortalSubscriptionsList.js +6 -6
- package/funcs/customerPortalSubscriptionsList.js.map +1 -1
- package/funcs/customerPortalSubscriptionsUpdate.d.ts +1 -1
- package/funcs/customerPortalSubscriptionsUpdate.d.ts.map +1 -1
- package/funcs/customerPortalSubscriptionsUpdate.js +6 -6
- package/funcs/customerPortalSubscriptionsUpdate.js.map +1 -1
- package/funcs/customerSessionsCreate.js +4 -4
- package/funcs/customerSessionsCreate.js.map +1 -1
- package/funcs/customersCreate.js +4 -4
- package/funcs/customersCreate.js.map +1 -1
- package/funcs/customersDelete.js +4 -4
- package/funcs/customersDelete.js.map +1 -1
- package/funcs/customersGet.js +4 -4
- package/funcs/customersGet.js.map +1 -1
- package/funcs/customersList.js +6 -6
- package/funcs/customersList.js.map +1 -1
- package/funcs/customersUpdate.js +4 -4
- package/funcs/customersUpdate.js.map +1 -1
- package/funcs/discountsCreate.js +4 -4
- package/funcs/discountsCreate.js.map +1 -1
- package/funcs/discountsDelete.js +4 -4
- package/funcs/discountsDelete.js.map +1 -1
- package/funcs/discountsGet.js +4 -4
- package/funcs/discountsGet.js.map +1 -1
- package/funcs/discountsList.js +6 -6
- package/funcs/discountsList.js.map +1 -1
- package/funcs/discountsUpdate.js +4 -4
- package/funcs/discountsUpdate.js.map +1 -1
- package/funcs/externalOrganizationsList.js +6 -6
- package/funcs/externalOrganizationsList.js.map +1 -1
- package/funcs/filesCreate.js +4 -4
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/filesDelete.js +4 -4
- package/funcs/filesDelete.js.map +1 -1
- package/funcs/filesList.js +6 -6
- package/funcs/filesList.js.map +1 -1
- package/funcs/filesUpdate.js +4 -4
- package/funcs/filesUpdate.js.map +1 -1
- package/funcs/filesUploaded.js +4 -4
- package/funcs/filesUploaded.js.map +1 -1
- package/funcs/licenseKeysGet.js +4 -4
- package/funcs/licenseKeysGet.js.map +1 -1
- package/funcs/licenseKeysGetActivation.js +4 -4
- package/funcs/licenseKeysGetActivation.js.map +1 -1
- package/funcs/licenseKeysList.js +6 -6
- package/funcs/licenseKeysList.js.map +1 -1
- package/funcs/licenseKeysUpdate.js +4 -4
- package/funcs/licenseKeysUpdate.js.map +1 -1
- package/funcs/metricsGet.js +4 -4
- package/funcs/metricsGet.js.map +1 -1
- package/funcs/metricsLimits.js +4 -4
- package/funcs/metricsLimits.js.map +1 -1
- package/funcs/oauth2Authorize.js +4 -4
- package/funcs/oauth2Authorize.js.map +1 -1
- package/funcs/oauth2ClientsCreate.js +4 -4
- package/funcs/oauth2ClientsCreate.js.map +1 -1
- package/funcs/oauth2ClientsDelete.js +4 -4
- package/funcs/oauth2ClientsDelete.js.map +1 -1
- package/funcs/oauth2ClientsGet.js +4 -4
- package/funcs/oauth2ClientsGet.js.map +1 -1
- package/funcs/oauth2ClientsList.js +6 -6
- package/funcs/oauth2ClientsList.js.map +1 -1
- package/funcs/oauth2ClientsUpdate.js +4 -4
- package/funcs/oauth2ClientsUpdate.js.map +1 -1
- package/funcs/oauth2Introspect.js +4 -4
- package/funcs/oauth2Introspect.js.map +1 -1
- package/funcs/oauth2Revoke.js +4 -4
- package/funcs/oauth2Revoke.js.map +1 -1
- package/funcs/oauth2Token.js +4 -4
- package/funcs/oauth2Token.js.map +1 -1
- package/funcs/oauth2Userinfo.js +4 -4
- package/funcs/oauth2Userinfo.js.map +1 -1
- package/funcs/ordersGet.js +4 -4
- package/funcs/ordersGet.js.map +1 -1
- package/funcs/ordersInvoice.js +4 -4
- package/funcs/ordersInvoice.js.map +1 -1
- package/funcs/ordersList.js +6 -6
- package/funcs/ordersList.js.map +1 -1
- package/funcs/organizationsCreate.js +4 -4
- package/funcs/organizationsCreate.js.map +1 -1
- package/funcs/organizationsGet.js +4 -4
- package/funcs/organizationsGet.js.map +1 -1
- package/funcs/organizationsList.js +6 -6
- package/funcs/organizationsList.js.map +1 -1
- package/funcs/organizationsUpdate.js +4 -4
- package/funcs/organizationsUpdate.js.map +1 -1
- package/funcs/productsCreate.js +4 -4
- package/funcs/productsCreate.js.map +1 -1
- package/funcs/productsGet.js +4 -4
- package/funcs/productsGet.js.map +1 -1
- package/funcs/productsList.js +6 -6
- package/funcs/productsList.js.map +1 -1
- package/funcs/productsUpdate.js +4 -4
- package/funcs/productsUpdate.js.map +1 -1
- package/funcs/productsUpdateBenefits.js +4 -4
- package/funcs/productsUpdateBenefits.js.map +1 -1
- package/funcs/repositoriesGet.js +4 -4
- package/funcs/repositoriesGet.js.map +1 -1
- package/funcs/repositoriesList.js +6 -6
- package/funcs/repositoriesList.js.map +1 -1
- package/funcs/repositoriesUpdate.js +4 -4
- package/funcs/repositoriesUpdate.js.map +1 -1
- package/funcs/subscriptionsExport.js +4 -4
- package/funcs/subscriptionsExport.js.map +1 -1
- package/funcs/subscriptionsList.js +6 -6
- package/funcs/subscriptionsList.js.map +1 -1
- package/funcs/subscriptionsRevoke.d.ts +17 -0
- package/funcs/subscriptionsRevoke.d.ts.map +1 -0
- package/funcs/subscriptionsRevoke.js +106 -0
- package/funcs/subscriptionsRevoke.js.map +1 -0
- package/funcs/subscriptionsUpdate.d.ts +17 -0
- package/funcs/subscriptionsUpdate.d.ts.map +1 -0
- package/funcs/subscriptionsUpdate.js +109 -0
- package/funcs/subscriptionsUpdate.js.map +1 -0
- package/lib/config.d.ts +3 -3
- package/lib/config.js +4 -5
- package/lib/config.js.map +1 -1
- package/lib/encodings.js +18 -19
- package/lib/encodings.js.map +1 -1
- package/lib/env.js +1 -2
- package/lib/env.js.map +1 -1
- package/lib/http.js +1 -2
- package/lib/http.js.map +1 -1
- package/lib/matchers.js +5 -6
- package/lib/matchers.js.map +1 -1
- package/lib/primitives.js +1 -1
- package/lib/primitives.js.map +1 -1
- package/lib/retries.js +3 -4
- package/lib/retries.js.map +1 -1
- package/lib/sdks.js +15 -16
- package/lib/sdks.js.map +1 -1
- package/lib/security.js +2 -3
- package/lib/security.js.map +1 -1
- package/lib/url.js +1 -1
- package/lib/url.js.map +1 -1
- package/models/components/authorizeresponseorganization.d.ts +0 -23
- package/models/components/authorizeresponseorganization.d.ts.map +1 -1
- package/models/components/authorizeresponseorganization.js +1 -19
- package/models/components/authorizeresponseorganization.js.map +1 -1
- package/models/components/authorizeresponseuser.d.ts +0 -23
- package/models/components/authorizeresponseuser.d.ts.map +1 -1
- package/models/components/authorizeresponseuser.js +1 -19
- package/models/components/authorizeresponseuser.js.map +1 -1
- package/models/components/benefitads.d.ts +0 -23
- package/models/components/benefitads.d.ts.map +1 -1
- package/models/components/benefitads.js +1 -19
- package/models/components/benefitads.js.map +1 -1
- package/models/components/benefitadscreate.d.ts +0 -23
- package/models/components/benefitadscreate.d.ts.map +1 -1
- package/models/components/benefitadscreate.js +1 -19
- package/models/components/benefitadscreate.js.map +1 -1
- package/models/components/benefitadssubscriber.d.ts +0 -23
- package/models/components/benefitadssubscriber.d.ts.map +1 -1
- package/models/components/benefitadssubscriber.js +1 -19
- package/models/components/benefitadssubscriber.js.map +1 -1
- package/models/components/benefitadsupdate.d.ts +0 -23
- package/models/components/benefitadsupdate.d.ts.map +1 -1
- package/models/components/benefitadsupdate.js +1 -19
- package/models/components/benefitadsupdate.js.map +1 -1
- package/models/components/benefitcustom.d.ts +0 -23
- package/models/components/benefitcustom.d.ts.map +1 -1
- package/models/components/benefitcustom.js +1 -19
- package/models/components/benefitcustom.js.map +1 -1
- package/models/components/benefitcustomcreate.d.ts +0 -23
- package/models/components/benefitcustomcreate.d.ts.map +1 -1
- package/models/components/benefitcustomcreate.js +1 -19
- package/models/components/benefitcustomcreate.js.map +1 -1
- package/models/components/benefitcustomsubscriber.d.ts +0 -23
- package/models/components/benefitcustomsubscriber.d.ts.map +1 -1
- package/models/components/benefitcustomsubscriber.js +1 -19
- package/models/components/benefitcustomsubscriber.js.map +1 -1
- package/models/components/benefitcustomupdate.d.ts +0 -23
- package/models/components/benefitcustomupdate.d.ts.map +1 -1
- package/models/components/benefitcustomupdate.js +1 -19
- package/models/components/benefitcustomupdate.js.map +1 -1
- package/models/components/benefitdiscord.d.ts +0 -23
- package/models/components/benefitdiscord.d.ts.map +1 -1
- package/models/components/benefitdiscord.js +1 -19
- package/models/components/benefitdiscord.js.map +1 -1
- package/models/components/benefitdiscordcreate.d.ts +0 -23
- package/models/components/benefitdiscordcreate.d.ts.map +1 -1
- package/models/components/benefitdiscordcreate.js +1 -19
- package/models/components/benefitdiscordcreate.js.map +1 -1
- package/models/components/benefitdiscordsubscriber.d.ts +0 -23
- package/models/components/benefitdiscordsubscriber.d.ts.map +1 -1
- package/models/components/benefitdiscordsubscriber.js +1 -19
- package/models/components/benefitdiscordsubscriber.js.map +1 -1
- package/models/components/benefitdiscordupdate.d.ts +0 -23
- package/models/components/benefitdiscordupdate.d.ts.map +1 -1
- package/models/components/benefitdiscordupdate.js +1 -19
- package/models/components/benefitdiscordupdate.js.map +1 -1
- package/models/components/benefitdownloadables.d.ts +0 -23
- package/models/components/benefitdownloadables.d.ts.map +1 -1
- package/models/components/benefitdownloadables.js +1 -19
- package/models/components/benefitdownloadables.js.map +1 -1
- package/models/components/benefitdownloadablescreate.d.ts +0 -23
- package/models/components/benefitdownloadablescreate.d.ts.map +1 -1
- package/models/components/benefitdownloadablescreate.js +1 -19
- package/models/components/benefitdownloadablescreate.js.map +1 -1
- package/models/components/benefitdownloadablessubscriber.d.ts +0 -23
- package/models/components/benefitdownloadablessubscriber.d.ts.map +1 -1
- package/models/components/benefitdownloadablessubscriber.js +1 -19
- package/models/components/benefitdownloadablessubscriber.js.map +1 -1
- package/models/components/benefitdownloadablesupdate.d.ts +0 -23
- package/models/components/benefitdownloadablesupdate.d.ts.map +1 -1
- package/models/components/benefitdownloadablesupdate.js +1 -19
- package/models/components/benefitdownloadablesupdate.js.map +1 -1
- package/models/components/benefitgithubrepository.d.ts +0 -23
- package/models/components/benefitgithubrepository.d.ts.map +1 -1
- package/models/components/benefitgithubrepository.js +1 -19
- package/models/components/benefitgithubrepository.js.map +1 -1
- package/models/components/benefitgithubrepositorycreate.d.ts +0 -23
- package/models/components/benefitgithubrepositorycreate.d.ts.map +1 -1
- package/models/components/benefitgithubrepositorycreate.js +1 -19
- package/models/components/benefitgithubrepositorycreate.js.map +1 -1
- package/models/components/benefitgithubrepositorysubscriber.d.ts +0 -23
- package/models/components/benefitgithubrepositorysubscriber.d.ts.map +1 -1
- package/models/components/benefitgithubrepositorysubscriber.js +1 -19
- package/models/components/benefitgithubrepositorysubscriber.js.map +1 -1
- package/models/components/benefitgithubrepositoryupdate.d.ts +0 -23
- package/models/components/benefitgithubrepositoryupdate.d.ts.map +1 -1
- package/models/components/benefitgithubrepositoryupdate.js +1 -19
- package/models/components/benefitgithubrepositoryupdate.js.map +1 -1
- package/models/components/benefitgrant.d.ts +6 -0
- package/models/components/benefitgrant.d.ts.map +1 -1
- package/models/components/benefitgrant.js +3 -0
- package/models/components/benefitgrant.js.map +1 -1
- package/models/components/benefitgrantwebhook.d.ts +6 -0
- package/models/components/benefitgrantwebhook.d.ts.map +1 -1
- package/models/components/benefitgrantwebhook.js +3 -0
- package/models/components/benefitgrantwebhook.js.map +1 -1
- package/models/components/benefitlicensekeys.d.ts +0 -23
- package/models/components/benefitlicensekeys.d.ts.map +1 -1
- package/models/components/benefitlicensekeys.js +1 -19
- package/models/components/benefitlicensekeys.js.map +1 -1
- package/models/components/benefitlicensekeyscreate.d.ts +0 -23
- package/models/components/benefitlicensekeyscreate.d.ts.map +1 -1
- package/models/components/benefitlicensekeyscreate.js +1 -19
- package/models/components/benefitlicensekeyscreate.js.map +1 -1
- package/models/components/benefitlicensekeyssubscriber.d.ts +0 -23
- package/models/components/benefitlicensekeyssubscriber.d.ts.map +1 -1
- package/models/components/benefitlicensekeyssubscriber.js +1 -19
- package/models/components/benefitlicensekeyssubscriber.js.map +1 -1
- package/models/components/benefitlicensekeysupdate.d.ts +0 -23
- package/models/components/benefitlicensekeysupdate.d.ts.map +1 -1
- package/models/components/benefitlicensekeysupdate.js +1 -19
- package/models/components/benefitlicensekeysupdate.js.map +1 -1
- package/models/components/checkout.d.ts +3 -2
- package/models/components/checkout.d.ts.map +1 -1
- package/models/components/checkout.js +3 -2
- package/models/components/checkout.js.map +1 -1
- package/models/components/checkoutlink.d.ts +3 -2
- package/models/components/checkoutlink.d.ts.map +1 -1
- package/models/components/checkoutlink.js +3 -2
- package/models/components/checkoutlink.js.map +1 -1
- package/models/components/checkoutlinkpricecreate.d.ts +0 -29
- package/models/components/checkoutlinkpricecreate.d.ts.map +1 -1
- package/models/components/checkoutlinkpricecreate.js +1 -23
- package/models/components/checkoutlinkpricecreate.js.map +1 -1
- package/models/components/checkoutlinkproductcreate.d.ts +0 -29
- package/models/components/checkoutlinkproductcreate.d.ts.map +1 -1
- package/models/components/checkoutlinkproductcreate.js +1 -23
- package/models/components/checkoutlinkproductcreate.js.map +1 -1
- package/models/components/checkoutpricecreate.d.ts +0 -34
- package/models/components/checkoutpricecreate.d.ts.map +1 -1
- package/models/components/checkoutpricecreate.js +1 -26
- package/models/components/checkoutpricecreate.js.map +1 -1
- package/models/components/checkoutproductcreate.d.ts +0 -34
- package/models/components/checkoutproductcreate.d.ts.map +1 -1
- package/models/components/checkoutproductcreate.js +1 -26
- package/models/components/checkoutproductcreate.js.map +1 -1
- package/models/components/checkoutpublic.d.ts +3 -2
- package/models/components/checkoutpublic.d.ts.map +1 -1
- package/models/components/checkoutpublic.js +3 -2
- package/models/components/checkoutpublic.js.map +1 -1
- package/models/components/checkoutpublicconfirmed.d.ts +3 -25
- package/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/models/components/checkoutpublicconfirmed.js +4 -22
- package/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/models/components/customerbenefitgrantads.d.ts +3 -0
- package/models/components/customerbenefitgrantads.d.ts.map +1 -1
- package/models/components/customerbenefitgrantads.js +3 -0
- package/models/components/customerbenefitgrantads.js.map +1 -1
- package/models/components/customerbenefitgrantadsupdate.d.ts +0 -23
- package/models/components/customerbenefitgrantadsupdate.d.ts.map +1 -1
- package/models/components/customerbenefitgrantadsupdate.js +1 -20
- package/models/components/customerbenefitgrantadsupdate.js.map +1 -1
- package/models/components/customerbenefitgrantcustom.d.ts +3 -0
- package/models/components/customerbenefitgrantcustom.d.ts.map +1 -1
- package/models/components/customerbenefitgrantcustom.js +3 -0
- package/models/components/customerbenefitgrantcustom.js.map +1 -1
- package/models/components/customerbenefitgrantcustomupdate.d.ts +0 -23
- package/models/components/customerbenefitgrantcustomupdate.d.ts.map +1 -1
- package/models/components/customerbenefitgrantcustomupdate.js +1 -20
- package/models/components/customerbenefitgrantcustomupdate.js.map +1 -1
- package/models/components/customerbenefitgrantdiscord.d.ts +3 -0
- package/models/components/customerbenefitgrantdiscord.d.ts.map +1 -1
- package/models/components/customerbenefitgrantdiscord.js +3 -0
- package/models/components/customerbenefitgrantdiscord.js.map +1 -1
- package/models/components/customerbenefitgrantdiscordupdate.d.ts +0 -23
- package/models/components/customerbenefitgrantdiscordupdate.d.ts.map +1 -1
- package/models/components/customerbenefitgrantdiscordupdate.js +1 -20
- package/models/components/customerbenefitgrantdiscordupdate.js.map +1 -1
- package/models/components/customerbenefitgrantdownloadables.d.ts +3 -0
- package/models/components/customerbenefitgrantdownloadables.d.ts.map +1 -1
- package/models/components/customerbenefitgrantdownloadables.js +3 -0
- package/models/components/customerbenefitgrantdownloadables.js.map +1 -1
- package/models/components/customerbenefitgrantdownloadablesupdate.d.ts +0 -23
- package/models/components/customerbenefitgrantdownloadablesupdate.d.ts.map +1 -1
- package/models/components/customerbenefitgrantdownloadablesupdate.js +1 -20
- package/models/components/customerbenefitgrantdownloadablesupdate.js.map +1 -1
- package/models/components/customerbenefitgrantgithubrepository.d.ts +3 -0
- package/models/components/customerbenefitgrantgithubrepository.d.ts.map +1 -1
- package/models/components/customerbenefitgrantgithubrepository.js +3 -0
- package/models/components/customerbenefitgrantgithubrepository.js.map +1 -1
- package/models/components/customerbenefitgrantgithubrepositoryupdate.d.ts +0 -23
- package/models/components/customerbenefitgrantgithubrepositoryupdate.d.ts.map +1 -1
- package/models/components/customerbenefitgrantgithubrepositoryupdate.js +1 -19
- package/models/components/customerbenefitgrantgithubrepositoryupdate.js.map +1 -1
- package/models/components/customerbenefitgrantlicensekeys.d.ts +3 -0
- package/models/components/customerbenefitgrantlicensekeys.d.ts.map +1 -1
- package/models/components/customerbenefitgrantlicensekeys.js +3 -0
- package/models/components/customerbenefitgrantlicensekeys.js.map +1 -1
- package/models/components/customerbenefitgrantlicensekeysupdate.d.ts +0 -23
- package/models/components/customerbenefitgrantlicensekeysupdate.d.ts.map +1 -1
- package/models/components/customerbenefitgrantlicensekeysupdate.js +1 -20
- package/models/components/customerbenefitgrantlicensekeysupdate.js.map +1 -1
- package/models/components/customercancellationreason.d.ts +46 -0
- package/models/components/customercancellationreason.d.ts.map +1 -0
- package/models/components/customercancellationreason.js +56 -0
- package/models/components/customercancellationreason.js.map +1 -0
- package/models/components/customerordersubscription.d.ts +9 -0
- package/models/components/customerordersubscription.d.ts.map +1 -1
- package/models/components/customerordersubscription.js +17 -0
- package/models/components/customerordersubscription.js.map +1 -1
- package/models/components/customersession.d.ts +2 -0
- package/models/components/customersession.d.ts.map +1 -1
- package/models/components/customersession.js +4 -0
- package/models/components/customersession.js.map +1 -1
- package/models/components/customersubscription.d.ts +9 -0
- package/models/components/customersubscription.d.ts.map +1 -1
- package/models/components/customersubscription.js +17 -0
- package/models/components/customersubscription.js.map +1 -1
- package/models/components/customersubscriptioncancel.d.ts +58 -0
- package/models/components/customersubscriptioncancel.d.ts.map +1 -0
- package/models/components/customersubscriptioncancel.js +79 -0
- package/models/components/customersubscriptioncancel.js.map +1 -0
- package/models/components/customersubscriptionupdate.d.ts +4 -6
- package/models/components/customersubscriptionupdate.d.ts.map +1 -1
- package/models/components/customersubscriptionupdate.js +10 -15
- package/models/components/customersubscriptionupdate.js.map +1 -1
- package/models/components/customersubscriptionupdateprice.d.ts +32 -0
- package/models/components/customersubscriptionupdateprice.d.ts.map +1 -0
- package/models/components/customersubscriptionupdateprice.js +68 -0
- package/models/components/customersubscriptionupdateprice.js.map +1 -0
- package/models/components/customfieldcheckbox.d.ts +0 -23
- package/models/components/customfieldcheckbox.d.ts.map +1 -1
- package/models/components/customfieldcheckbox.js +1 -19
- package/models/components/customfieldcheckbox.js.map +1 -1
- package/models/components/customfieldcreatecheckbox.d.ts +0 -23
- package/models/components/customfieldcreatecheckbox.d.ts.map +1 -1
- package/models/components/customfieldcreatecheckbox.js +1 -19
- package/models/components/customfieldcreatecheckbox.js.map +1 -1
- package/models/components/customfieldcreatedate.d.ts +0 -23
- package/models/components/customfieldcreatedate.d.ts.map +1 -1
- package/models/components/customfieldcreatedate.js +1 -19
- package/models/components/customfieldcreatedate.js.map +1 -1
- package/models/components/customfieldcreatenumber.d.ts +0 -23
- package/models/components/customfieldcreatenumber.d.ts.map +1 -1
- package/models/components/customfieldcreatenumber.js +1 -19
- package/models/components/customfieldcreatenumber.js.map +1 -1
- package/models/components/customfieldcreateselect.d.ts +0 -23
- package/models/components/customfieldcreateselect.d.ts.map +1 -1
- package/models/components/customfieldcreateselect.js +1 -19
- package/models/components/customfieldcreateselect.js.map +1 -1
- package/models/components/customfieldcreatetext.d.ts +0 -23
- package/models/components/customfieldcreatetext.d.ts.map +1 -1
- package/models/components/customfieldcreatetext.js +1 -19
- package/models/components/customfieldcreatetext.js.map +1 -1
- package/models/components/customfielddate.d.ts +0 -23
- package/models/components/customfielddate.d.ts.map +1 -1
- package/models/components/customfielddate.js +1 -19
- package/models/components/customfielddate.js.map +1 -1
- package/models/components/customfieldnumber.d.ts +0 -23
- package/models/components/customfieldnumber.d.ts.map +1 -1
- package/models/components/customfieldnumber.js +1 -19
- package/models/components/customfieldnumber.js.map +1 -1
- package/models/components/customfieldselect.d.ts +0 -23
- package/models/components/customfieldselect.d.ts.map +1 -1
- package/models/components/customfieldselect.js +1 -19
- package/models/components/customfieldselect.js.map +1 -1
- package/models/components/customfieldtext.d.ts +0 -23
- package/models/components/customfieldtext.d.ts.map +1 -1
- package/models/components/customfieldtext.js +1 -19
- package/models/components/customfieldtext.js.map +1 -1
- package/models/components/customfieldupdatecheckbox.d.ts +0 -23
- package/models/components/customfieldupdatecheckbox.d.ts.map +1 -1
- package/models/components/customfieldupdatecheckbox.js +1 -19
- package/models/components/customfieldupdatecheckbox.js.map +1 -1
- package/models/components/customfieldupdatedate.d.ts +0 -23
- package/models/components/customfieldupdatedate.d.ts.map +1 -1
- package/models/components/customfieldupdatedate.js +1 -19
- package/models/components/customfieldupdatedate.js.map +1 -1
- package/models/components/customfieldupdatenumber.d.ts +0 -23
- package/models/components/customfieldupdatenumber.d.ts.map +1 -1
- package/models/components/customfieldupdatenumber.js +1 -19
- package/models/components/customfieldupdatenumber.js.map +1 -1
- package/models/components/customfieldupdateselect.d.ts +0 -23
- package/models/components/customfieldupdateselect.d.ts.map +1 -1
- package/models/components/customfieldupdateselect.js +1 -19
- package/models/components/customfieldupdateselect.js.map +1 -1
- package/models/components/customfieldupdatetext.d.ts +0 -23
- package/models/components/customfieldupdatetext.d.ts.map +1 -1
- package/models/components/customfieldupdatetext.js +1 -19
- package/models/components/customfieldupdatetext.js.map +1 -1
- package/models/components/downloadablefilecreate.d.ts +0 -23
- package/models/components/downloadablefilecreate.d.ts.map +1 -1
- package/models/components/downloadablefilecreate.js +1 -19
- package/models/components/downloadablefilecreate.js.map +1 -1
- package/models/components/downloadablefileread.d.ts +0 -23
- package/models/components/downloadablefileread.d.ts.map +1 -1
- package/models/components/downloadablefileread.js +1 -19
- package/models/components/downloadablefileread.js.map +1 -1
- package/models/components/externalorganization.d.ts +3 -2
- package/models/components/externalorganization.d.ts.map +1 -1
- package/models/components/externalorganization.js +3 -2
- package/models/components/externalorganization.js.map +1 -1
- package/models/components/index.d.ts +7 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +7 -0
- package/models/components/index.js.map +1 -1
- package/models/components/introspecttokenresponse.d.ts +8 -8
- package/models/components/introspecttokenresponse.d.ts.map +1 -1
- package/models/components/introspecttokenresponse.js +14 -13
- package/models/components/introspecttokenresponse.js.map +1 -1
- package/models/components/issue.d.ts +3 -2
- package/models/components/issue.d.ts.map +1 -1
- package/models/components/issue.js +3 -2
- package/models/components/issue.js.map +1 -1
- package/models/components/oauth2client.d.ts +1 -23
- package/models/components/oauth2client.d.ts.map +1 -1
- package/models/components/oauth2client.js +3 -21
- package/models/components/oauth2client.js.map +1 -1
- package/models/components/oauth2clientconfiguration.d.ts +1 -23
- package/models/components/oauth2clientconfiguration.d.ts.map +1 -1
- package/models/components/oauth2clientconfiguration.js +3 -23
- package/models/components/oauth2clientconfiguration.js.map +1 -1
- package/models/components/oauth2clientconfigurationupdate.d.ts +1 -23
- package/models/components/oauth2clientconfigurationupdate.d.ts.map +1 -1
- package/models/components/oauth2clientconfigurationupdate.js +3 -22
- package/models/components/oauth2clientconfigurationupdate.js.map +1 -1
- package/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.d.ts +0 -23
- package/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.d.ts.map +1 -1
- package/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.js +1 -20
- package/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.js.map +1 -1
- package/models/components/onev11oauth21tokenpostxcomponentsrefreshtokenrequest.d.ts +0 -23
- package/models/components/onev11oauth21tokenpostxcomponentsrefreshtokenrequest.d.ts.map +1 -1
- package/models/components/onev11oauth21tokenpostxcomponentsrefreshtokenrequest.js +1 -19
- package/models/components/onev11oauth21tokenpostxcomponentsrefreshtokenrequest.js.map +1 -1
- package/models/components/ordersubscription.d.ts +9 -0
- package/models/components/ordersubscription.d.ts.map +1 -1
- package/models/components/ordersubscription.js +17 -0
- package/models/components/ordersubscription.js.map +1 -1
- package/models/components/organizationavatarfilecreate.d.ts +0 -23
- package/models/components/organizationavatarfilecreate.d.ts.map +1 -1
- package/models/components/organizationavatarfilecreate.js +1 -19
- package/models/components/organizationavatarfilecreate.js.map +1 -1
- package/models/components/organizationavatarfileread.d.ts +0 -23
- package/models/components/organizationavatarfileread.d.ts.map +1 -1
- package/models/components/organizationavatarfileread.js +1 -19
- package/models/components/organizationavatarfileread.js.map +1 -1
- package/models/components/productmediafilecreate.d.ts +0 -23
- package/models/components/productmediafilecreate.d.ts.map +1 -1
- package/models/components/productmediafilecreate.js +1 -19
- package/models/components/productmediafilecreate.js.map +1 -1
- package/models/components/productmediafileread.d.ts +0 -23
- package/models/components/productmediafileread.d.ts.map +1 -1
- package/models/components/productmediafileread.js +1 -20
- package/models/components/productmediafileread.js.map +1 -1
- package/models/components/productpriceonetimecustom.d.ts +0 -51
- package/models/components/productpriceonetimecustom.d.ts.map +1 -1
- package/models/components/productpriceonetimecustom.js +1 -40
- package/models/components/productpriceonetimecustom.js.map +1 -1
- package/models/components/productpriceonetimecustomcreate.d.ts +0 -45
- package/models/components/productpriceonetimecustomcreate.d.ts.map +1 -1
- package/models/components/productpriceonetimecustomcreate.js +1 -38
- package/models/components/productpriceonetimecustomcreate.js.map +1 -1
- package/models/components/productpriceonetimefixed.d.ts +0 -51
- package/models/components/productpriceonetimefixed.d.ts.map +1 -1
- package/models/components/productpriceonetimefixed.js +1 -40
- package/models/components/productpriceonetimefixed.js.map +1 -1
- package/models/components/productpriceonetimefixedcreate.d.ts +0 -45
- package/models/components/productpriceonetimefixedcreate.d.ts.map +1 -1
- package/models/components/productpriceonetimefixedcreate.js +1 -38
- package/models/components/productpriceonetimefixedcreate.js.map +1 -1
- package/models/components/productpriceonetimefree.d.ts +0 -51
- package/models/components/productpriceonetimefree.d.ts.map +1 -1
- package/models/components/productpriceonetimefree.js +1 -40
- package/models/components/productpriceonetimefree.js.map +1 -1
- package/models/components/productpriceonetimefreecreate.d.ts +0 -45
- package/models/components/productpriceonetimefreecreate.d.ts.map +1 -1
- package/models/components/productpriceonetimefreecreate.js +1 -38
- package/models/components/productpriceonetimefreecreate.js.map +1 -1
- package/models/components/productpricerecurringcustom.d.ts +0 -51
- package/models/components/productpricerecurringcustom.d.ts.map +1 -1
- package/models/components/productpricerecurringcustom.js +1 -40
- package/models/components/productpricerecurringcustom.js.map +1 -1
- package/models/components/productpricerecurringfixed.d.ts +0 -51
- package/models/components/productpricerecurringfixed.d.ts.map +1 -1
- package/models/components/productpricerecurringfixed.js +1 -41
- package/models/components/productpricerecurringfixed.js.map +1 -1
- package/models/components/productpricerecurringfixedcreate.d.ts +0 -45
- package/models/components/productpricerecurringfixedcreate.d.ts.map +1 -1
- package/models/components/productpricerecurringfixedcreate.js +1 -38
- package/models/components/productpricerecurringfixedcreate.js.map +1 -1
- package/models/components/productpricerecurringfree.d.ts +0 -51
- package/models/components/productpricerecurringfree.d.ts.map +1 -1
- package/models/components/productpricerecurringfree.js +1 -40
- package/models/components/productpricerecurringfree.js.map +1 -1
- package/models/components/productpricerecurringfreecreate.d.ts +0 -45
- package/models/components/productpricerecurringfreecreate.d.ts.map +1 -1
- package/models/components/productpricerecurringfreecreate.js +1 -38
- package/models/components/productpricerecurringfreecreate.js.map +1 -1
- package/models/components/repository.d.ts +3 -2
- package/models/components/repository.d.ts.map +1 -1
- package/models/components/repository.js +3 -2
- package/models/components/repository.js.map +1 -1
- package/models/components/subscription.d.ts +9 -0
- package/models/components/subscription.d.ts.map +1 -1
- package/models/components/subscription.js +17 -0
- package/models/components/subscription.js.map +1 -1
- package/models/components/subscriptioncancel.d.ts +80 -0
- package/models/components/subscriptioncancel.d.ts.map +1 -0
- package/models/components/subscriptioncancel.js +79 -0
- package/models/components/subscriptioncancel.js.map +1 -0
- package/models/components/subscriptionupdate.d.ts +27 -0
- package/models/components/subscriptionupdate.d.ts.map +1 -0
- package/models/components/subscriptionupdate.js +63 -0
- package/models/components/subscriptionupdate.js.map +1 -0
- package/models/components/subscriptionupdateprice.d.ts +32 -0
- package/models/components/subscriptionupdateprice.d.ts.map +1 -0
- package/models/components/subscriptionupdateprice.js +68 -0
- package/models/components/subscriptionupdateprice.js.map +1 -0
- package/models/components/tokenresponse.d.ts +0 -23
- package/models/components/tokenresponse.d.ts.map +1 -1
- package/models/components/tokenresponse.js +1 -20
- package/models/components/tokenresponse.js.map +1 -1
- package/models/components/webhookbenefitcreatedpayload.d.ts +0 -23
- package/models/components/webhookbenefitcreatedpayload.d.ts.map +1 -1
- package/models/components/webhookbenefitcreatedpayload.js +1 -19
- package/models/components/webhookbenefitcreatedpayload.js.map +1 -1
- package/models/components/webhookbenefitgrantcreatedpayload.d.ts +0 -23
- package/models/components/webhookbenefitgrantcreatedpayload.d.ts.map +1 -1
- package/models/components/webhookbenefitgrantcreatedpayload.js +1 -19
- package/models/components/webhookbenefitgrantcreatedpayload.js.map +1 -1
- package/models/components/webhookbenefitgrantrevokedpayload.d.ts +0 -23
- package/models/components/webhookbenefitgrantrevokedpayload.d.ts.map +1 -1
- package/models/components/webhookbenefitgrantrevokedpayload.js +1 -19
- package/models/components/webhookbenefitgrantrevokedpayload.js.map +1 -1
- package/models/components/webhookbenefitgrantupdatedpayload.d.ts +0 -23
- package/models/components/webhookbenefitgrantupdatedpayload.d.ts.map +1 -1
- package/models/components/webhookbenefitgrantupdatedpayload.js +1 -19
- package/models/components/webhookbenefitgrantupdatedpayload.js.map +1 -1
- package/models/components/webhookbenefitupdatedpayload.d.ts +0 -23
- package/models/components/webhookbenefitupdatedpayload.d.ts.map +1 -1
- package/models/components/webhookbenefitupdatedpayload.js +1 -19
- package/models/components/webhookbenefitupdatedpayload.js.map +1 -1
- package/models/components/webhookcheckoutcreatedpayload.d.ts +0 -23
- package/models/components/webhookcheckoutcreatedpayload.d.ts.map +1 -1
- package/models/components/webhookcheckoutcreatedpayload.js +1 -19
- package/models/components/webhookcheckoutcreatedpayload.js.map +1 -1
- package/models/components/webhookcheckoutupdatedpayload.d.ts +0 -23
- package/models/components/webhookcheckoutupdatedpayload.d.ts.map +1 -1
- package/models/components/webhookcheckoutupdatedpayload.js +1 -19
- package/models/components/webhookcheckoutupdatedpayload.js.map +1 -1
- package/models/components/webhookordercreatedpayload.d.ts +0 -23
- package/models/components/webhookordercreatedpayload.d.ts.map +1 -1
- package/models/components/webhookordercreatedpayload.js +1 -19
- package/models/components/webhookordercreatedpayload.js.map +1 -1
- package/models/components/webhookorganizationupdatedpayload.d.ts +0 -23
- package/models/components/webhookorganizationupdatedpayload.d.ts.map +1 -1
- package/models/components/webhookorganizationupdatedpayload.js +1 -19
- package/models/components/webhookorganizationupdatedpayload.js.map +1 -1
- package/models/components/webhookpledgecreatedpayload.d.ts +0 -23
- package/models/components/webhookpledgecreatedpayload.d.ts.map +1 -1
- package/models/components/webhookpledgecreatedpayload.js +1 -19
- package/models/components/webhookpledgecreatedpayload.js.map +1 -1
- package/models/components/webhookpledgeupdatedpayload.d.ts +0 -23
- package/models/components/webhookpledgeupdatedpayload.d.ts.map +1 -1
- package/models/components/webhookpledgeupdatedpayload.js +1 -19
- package/models/components/webhookpledgeupdatedpayload.js.map +1 -1
- package/models/components/webhookproductcreatedpayload.d.ts +0 -23
- package/models/components/webhookproductcreatedpayload.d.ts.map +1 -1
- package/models/components/webhookproductcreatedpayload.js +1 -19
- package/models/components/webhookproductcreatedpayload.js.map +1 -1
- package/models/components/webhookproductupdatedpayload.d.ts +0 -23
- package/models/components/webhookproductupdatedpayload.d.ts.map +1 -1
- package/models/components/webhookproductupdatedpayload.js +1 -19
- package/models/components/webhookproductupdatedpayload.js.map +1 -1
- package/models/components/webhooksubscriptionactivepayload.d.ts +0 -23
- package/models/components/webhooksubscriptionactivepayload.d.ts.map +1 -1
- package/models/components/webhooksubscriptionactivepayload.js +1 -19
- package/models/components/webhooksubscriptionactivepayload.js.map +1 -1
- package/models/components/webhooksubscriptioncanceledpayload.d.ts +2 -25
- package/models/components/webhooksubscriptioncanceledpayload.d.ts.map +1 -1
- package/models/components/webhooksubscriptioncanceledpayload.js +1 -19
- package/models/components/webhooksubscriptioncanceledpayload.js.map +1 -1
- package/models/components/webhooksubscriptioncreatedpayload.d.ts +0 -23
- package/models/components/webhooksubscriptioncreatedpayload.d.ts.map +1 -1
- package/models/components/webhooksubscriptioncreatedpayload.js +1 -19
- package/models/components/webhooksubscriptioncreatedpayload.js.map +1 -1
- package/models/components/webhooksubscriptionrevokedpayload.d.ts +0 -23
- package/models/components/webhooksubscriptionrevokedpayload.d.ts.map +1 -1
- package/models/components/webhooksubscriptionrevokedpayload.js +1 -19
- package/models/components/webhooksubscriptionrevokedpayload.js.map +1 -1
- package/models/components/webhooksubscriptionuncanceledpayload.d.ts +39 -0
- package/models/components/webhooksubscriptionuncanceledpayload.d.ts.map +1 -0
- package/models/components/webhooksubscriptionuncanceledpayload.js +62 -0
- package/models/components/webhooksubscriptionuncanceledpayload.js.map +1 -0
- package/models/components/webhooksubscriptionupdatedpayload.d.ts +0 -23
- package/models/components/webhooksubscriptionupdatedpayload.d.ts.map +1 -1
- package/models/components/webhooksubscriptionupdatedpayload.js +1 -19
- package/models/components/webhooksubscriptionupdatedpayload.js.map +1 -1
- package/models/errors/alreadycanceledsubscription.d.ts +0 -23
- package/models/errors/alreadycanceledsubscription.d.ts.map +1 -1
- package/models/errors/alreadycanceledsubscription.js +1 -19
- package/models/errors/alreadycanceledsubscription.js.map +1 -1
- package/models/errors/httpclienterrors.js +2 -2
- package/models/errors/httpclienterrors.js.map +1 -1
- package/models/errors/notpermitted.d.ts +0 -23
- package/models/errors/notpermitted.d.ts.map +1 -1
- package/models/errors/notpermitted.js +1 -19
- package/models/errors/notpermitted.js.map +1 -1
- package/models/errors/resourcenotfound.d.ts +0 -23
- package/models/errors/resourcenotfound.d.ts.map +1 -1
- package/models/errors/resourcenotfound.js +1 -20
- package/models/errors/resourcenotfound.js.map +1 -1
- package/models/errors/unauthorized.d.ts +0 -23
- package/models/errors/unauthorized.d.ts.map +1 -1
- package/models/errors/unauthorized.js +1 -19
- package/models/errors/unauthorized.js.map +1 -1
- package/models/operations/customerportalsubscriptionscancel.d.ts +1 -1
- package/models/operations/customerportalsubscriptionsget.d.ts +1 -1
- package/models/operations/customerportalsubscriptionsupdate.d.ts +1 -1
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/subscriptionsrevoke.d.ts +32 -0
- package/models/operations/subscriptionsrevoke.d.ts.map +1 -0
- package/models/operations/subscriptionsrevoke.js +59 -0
- package/models/operations/subscriptionsrevoke.js.map +1 -0
- package/models/operations/subscriptionsupdate.d.ts +35 -0
- package/models/operations/subscriptionsupdate.d.ts.map +1 -0
- package/models/operations/subscriptionsupdate.js +71 -0
- package/models/operations/subscriptionsupdate.js.map +1 -0
- package/package.json +1 -1
- package/sdk/checkouts.js +1 -2
- package/sdk/checkouts.js.map +1 -1
- package/sdk/customerportal.js +7 -14
- package/sdk/customerportal.js.map +1 -1
- package/sdk/oauth2.js +1 -2
- package/sdk/oauth2.js.map +1 -1
- package/sdk/sdk.js +19 -38
- package/sdk/sdk.js.map +1 -1
- package/sdk/subscriptions.d.ts +15 -0
- package/sdk/subscriptions.d.ts.map +1 -1
- package/sdk/subscriptions.js +20 -0
- package/sdk/subscriptions.js.map +1 -1
- package/src/funcs/advertisementsList.ts +2 -2
- package/src/funcs/benefitsGrants.ts +2 -2
- package/src/funcs/benefitsList.ts +2 -2
- package/src/funcs/checkoutLinksList.ts +2 -2
- package/src/funcs/checkoutsCustomList.ts +2 -2
- package/src/funcs/customFieldsList.ts +2 -2
- package/src/funcs/customerPortalBenefitGrantsList.ts +2 -2
- package/src/funcs/customerPortalDownloadablesList.ts +2 -2
- package/src/funcs/customerPortalLicenseKeysList.ts +2 -2
- package/src/funcs/customerPortalOrdersList.ts +2 -2
- package/src/funcs/customerPortalSubscriptionsList.ts +2 -2
- package/src/funcs/customerPortalSubscriptionsUpdate.ts +4 -1
- package/src/funcs/customersList.ts +2 -2
- package/src/funcs/discountsList.ts +2 -2
- package/src/funcs/externalOrganizationsList.ts +2 -2
- package/src/funcs/filesList.ts +2 -2
- package/src/funcs/licenseKeysList.ts +2 -2
- package/src/funcs/oauth2ClientsList.ts +2 -2
- package/src/funcs/ordersList.ts +2 -2
- package/src/funcs/organizationsList.ts +2 -2
- package/src/funcs/productsList.ts +2 -2
- package/src/funcs/repositoriesList.ts +2 -2
- package/src/funcs/subscriptionsList.ts +2 -2
- package/src/funcs/subscriptionsRevoke.ts +146 -0
- package/src/funcs/subscriptionsUpdate.ts +149 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +1 -1
- package/src/models/components/authorizeresponseorganization.ts +1 -33
- package/src/models/components/authorizeresponseuser.ts +1 -30
- package/src/models/components/benefitads.ts +1 -28
- package/src/models/components/benefitadscreate.ts +1 -28
- package/src/models/components/benefitadssubscriber.ts +1 -30
- package/src/models/components/benefitadsupdate.ts +1 -28
- package/src/models/components/benefitcustom.ts +1 -28
- package/src/models/components/benefitcustomcreate.ts +1 -30
- package/src/models/components/benefitcustomsubscriber.ts +1 -30
- package/src/models/components/benefitcustomupdate.ts +1 -30
- package/src/models/components/benefitdiscord.ts +1 -28
- package/src/models/components/benefitdiscordcreate.ts +1 -30
- package/src/models/components/benefitdiscordsubscriber.ts +1 -30
- package/src/models/components/benefitdiscordupdate.ts +1 -30
- package/src/models/components/benefitdownloadables.ts +1 -30
- package/src/models/components/benefitdownloadablescreate.ts +1 -30
- package/src/models/components/benefitdownloadablessubscriber.ts +1 -31
- package/src/models/components/benefitdownloadablesupdate.ts +1 -30
- package/src/models/components/benefitgithubrepository.ts +1 -30
- package/src/models/components/benefitgithubrepositorycreate.ts +1 -31
- package/src/models/components/benefitgithubrepositorysubscriber.ts +1 -33
- package/src/models/components/benefitgithubrepositoryupdate.ts +1 -31
- package/src/models/components/benefitgrant.ts +13 -0
- package/src/models/components/benefitgrantwebhook.ts +13 -0
- package/src/models/components/benefitlicensekeys.ts +1 -28
- package/src/models/components/benefitlicensekeyscreate.ts +1 -30
- package/src/models/components/benefitlicensekeyssubscriber.ts +1 -30
- package/src/models/components/benefitlicensekeysupdate.ts +1 -30
- package/src/models/components/checkout.ts +9 -4
- package/src/models/components/checkoutlink.ts +9 -4
- package/src/models/components/checkoutlinkpricecreate.ts +1 -38
- package/src/models/components/checkoutlinkproductcreate.ts +1 -38
- package/src/models/components/checkoutpricecreate.ts +0 -46
- package/src/models/components/checkoutproductcreate.ts +0 -47
- package/src/models/components/checkoutpublic.ts +9 -4
- package/src/models/components/checkoutpublicconfirmed.ts +10 -30
- package/src/models/components/customerbenefitgrantads.ts +10 -0
- package/src/models/components/customerbenefitgrantadsupdate.ts +1 -32
- package/src/models/components/customerbenefitgrantcustom.ts +10 -0
- package/src/models/components/customerbenefitgrantcustomupdate.ts +1 -32
- package/src/models/components/customerbenefitgrantdiscord.ts +10 -0
- package/src/models/components/customerbenefitgrantdiscordupdate.ts +1 -32
- package/src/models/components/customerbenefitgrantdownloadables.ts +10 -0
- package/src/models/components/customerbenefitgrantdownloadablesupdate.ts +1 -32
- package/src/models/components/customerbenefitgrantgithubrepository.ts +10 -0
- package/src/models/components/customerbenefitgrantgithubrepositoryupdate.ts +3 -34
- package/src/models/components/customerbenefitgrantlicensekeys.ts +10 -0
- package/src/models/components/customerbenefitgrantlicensekeysupdate.ts +1 -32
- package/src/models/components/customercancellationreason.ts +41 -0
- package/src/models/components/customerordersubscription.ts +37 -0
- package/src/models/components/customersession.ts +6 -0
- package/src/models/components/customersubscription.ts +37 -0
- package/src/models/components/customersubscriptioncancel.ts +118 -0
- package/src/models/components/customersubscriptionupdate.ts +26 -21
- package/src/models/components/customersubscriptionupdateprice.ts +80 -0
- package/src/models/components/customfieldcheckbox.ts +1 -30
- package/src/models/components/customfieldcreatecheckbox.ts +1 -30
- package/src/models/components/customfieldcreatedate.ts +1 -30
- package/src/models/components/customfieldcreatenumber.ts +1 -30
- package/src/models/components/customfieldcreateselect.ts +1 -30
- package/src/models/components/customfieldcreatetext.ts +1 -30
- package/src/models/components/customfielddate.ts +1 -28
- package/src/models/components/customfieldnumber.ts +1 -28
- package/src/models/components/customfieldselect.ts +1 -28
- package/src/models/components/customfieldtext.ts +1 -28
- package/src/models/components/customfieldupdatecheckbox.ts +1 -30
- package/src/models/components/customfieldupdatedate.ts +1 -30
- package/src/models/components/customfieldupdatenumber.ts +1 -30
- package/src/models/components/customfieldupdateselect.ts +1 -30
- package/src/models/components/customfieldupdatetext.ts +1 -30
- package/src/models/components/downloadablefilecreate.ts +1 -30
- package/src/models/components/downloadablefileread.ts +1 -30
- package/src/models/components/externalorganization.ts +9 -4
- package/src/models/components/index.ts +7 -0
- package/src/models/components/introspecttokenresponse.ts +14 -18
- package/src/models/components/issue.ts +9 -4
- package/src/models/components/oauth2client.ts +3 -29
- package/src/models/components/oauth2clientconfiguration.ts +3 -36
- package/src/models/components/oauth2clientconfigurationupdate.ts +3 -39
- package/src/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.ts +3 -26
- package/src/models/components/onev11oauth21tokenpostxcomponentsrefreshtokenrequest.ts +1 -38
- package/src/models/components/ordersubscription.ts +37 -0
- package/src/models/components/organizationavatarfilecreate.ts +3 -32
- package/src/models/components/organizationavatarfileread.ts +3 -31
- package/src/models/components/productmediafilecreate.ts +1 -30
- package/src/models/components/productmediafileread.ts +1 -26
- package/src/models/components/productpriceonetimecustom.ts +2 -67
- package/src/models/components/productpriceonetimecustomcreate.ts +2 -63
- package/src/models/components/productpriceonetimefixed.ts +2 -66
- package/src/models/components/productpriceonetimefixedcreate.ts +2 -62
- package/src/models/components/productpriceonetimefree.ts +2 -66
- package/src/models/components/productpriceonetimefreecreate.ts +2 -62
- package/src/models/components/productpricerecurringcustom.ts +2 -68
- package/src/models/components/productpricerecurringfixed.ts +2 -58
- package/src/models/components/productpricerecurringfixedcreate.ts +2 -64
- package/src/models/components/productpricerecurringfree.ts +2 -67
- package/src/models/components/productpricerecurringfreecreate.ts +2 -63
- package/src/models/components/repository.ts +9 -4
- package/src/models/components/subscription.ts +37 -0
- package/src/models/components/subscriptioncancel.ts +144 -0
- package/src/models/components/subscriptionupdate.ts +78 -0
- package/src/models/components/subscriptionupdateprice.ts +78 -0
- package/src/models/components/tokenresponse.ts +1 -26
- package/src/models/components/webhookbenefitcreatedpayload.ts +1 -30
- package/src/models/components/webhookbenefitgrantcreatedpayload.ts +3 -33
- package/src/models/components/webhookbenefitgrantrevokedpayload.ts +3 -33
- package/src/models/components/webhookbenefitgrantupdatedpayload.ts +3 -33
- package/src/models/components/webhookbenefitupdatedpayload.ts +1 -30
- package/src/models/components/webhookcheckoutcreatedpayload.ts +1 -31
- package/src/models/components/webhookcheckoutupdatedpayload.ts +1 -31
- package/src/models/components/webhookordercreatedpayload.ts +1 -30
- package/src/models/components/webhookorganizationupdatedpayload.ts +3 -33
- package/src/models/components/webhookpledgecreatedpayload.ts +1 -30
- package/src/models/components/webhookpledgeupdatedpayload.ts +1 -30
- package/src/models/components/webhookproductcreatedpayload.ts +1 -30
- package/src/models/components/webhookproductupdatedpayload.ts +1 -30
- package/src/models/components/webhooksubscriptionactivepayload.ts +3 -33
- package/src/models/components/webhooksubscriptioncanceledpayload.ts +5 -35
- package/src/models/components/webhooksubscriptioncreatedpayload.ts +3 -33
- package/src/models/components/webhooksubscriptionrevokedpayload.ts +3 -33
- package/src/models/components/webhooksubscriptionuncanceledpayload.ts +90 -0
- package/src/models/components/webhooksubscriptionupdatedpayload.ts +3 -33
- package/src/models/errors/alreadycanceledsubscription.ts +1 -30
- package/src/models/errors/notpermitted.ts +1 -28
- package/src/models/errors/resourcenotfound.ts +1 -26
- package/src/models/errors/unauthorized.ts +1 -28
- package/src/models/operations/customerportalsubscriptionscancel.ts +1 -1
- package/src/models/operations/customerportalsubscriptionsget.ts +1 -1
- package/src/models/operations/customerportalsubscriptionsupdate.ts +1 -1
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/subscriptionsrevoke.ts +69 -0
- package/src/models/operations/subscriptionsupdate.ts +83 -0
- package/src/sdk/subscriptions.ts +37 -0
|
@@ -43,6 +43,12 @@ import {
|
|
|
43
43
|
BenefitGrantLicenseKeysProperties$Outbound,
|
|
44
44
|
BenefitGrantLicenseKeysProperties$outboundSchema,
|
|
45
45
|
} from "./benefitgrantlicensekeysproperties.js";
|
|
46
|
+
import {
|
|
47
|
+
Customer,
|
|
48
|
+
Customer$inboundSchema,
|
|
49
|
+
Customer$Outbound,
|
|
50
|
+
Customer$outboundSchema,
|
|
51
|
+
} from "./customer.js";
|
|
46
52
|
|
|
47
53
|
export type Properties =
|
|
48
54
|
| BenefitGrantCustomProperties
|
|
@@ -101,6 +107,10 @@ export type BenefitGrant = {
|
|
|
101
107
|
* The ID of the benefit concerned by this grant.
|
|
102
108
|
*/
|
|
103
109
|
benefitId: string;
|
|
110
|
+
/**
|
|
111
|
+
* A customer in an organization.
|
|
112
|
+
*/
|
|
113
|
+
customer: Customer;
|
|
104
114
|
properties:
|
|
105
115
|
| BenefitGrantCustomProperties
|
|
106
116
|
| BenefitGrantDownloadablesProperties
|
|
@@ -198,6 +208,7 @@ export const BenefitGrant$inboundSchema: z.ZodType<
|
|
|
198
208
|
customer_id: z.string(),
|
|
199
209
|
user_id: z.string(),
|
|
200
210
|
benefit_id: z.string(),
|
|
211
|
+
customer: Customer$inboundSchema,
|
|
201
212
|
properties: z.union([
|
|
202
213
|
BenefitGrantCustomProperties$inboundSchema,
|
|
203
214
|
BenefitGrantDownloadablesProperties$inboundSchema,
|
|
@@ -236,6 +247,7 @@ export type BenefitGrant$Outbound = {
|
|
|
236
247
|
customer_id: string;
|
|
237
248
|
user_id: string;
|
|
238
249
|
benefit_id: string;
|
|
250
|
+
customer: Customer$Outbound;
|
|
239
251
|
properties:
|
|
240
252
|
| BenefitGrantCustomProperties$Outbound
|
|
241
253
|
| BenefitGrantDownloadablesProperties$Outbound
|
|
@@ -263,6 +275,7 @@ export const BenefitGrant$outboundSchema: z.ZodType<
|
|
|
263
275
|
customerId: z.string(),
|
|
264
276
|
userId: z.string(),
|
|
265
277
|
benefitId: z.string(),
|
|
278
|
+
customer: Customer$outboundSchema,
|
|
266
279
|
properties: z.union([
|
|
267
280
|
BenefitGrantCustomProperties$outboundSchema,
|
|
268
281
|
BenefitGrantDownloadablesProperties$outboundSchema,
|
|
@@ -49,6 +49,12 @@ import {
|
|
|
49
49
|
BenefitGrantLicenseKeysProperties$Outbound,
|
|
50
50
|
BenefitGrantLicenseKeysProperties$outboundSchema,
|
|
51
51
|
} from "./benefitgrantlicensekeysproperties.js";
|
|
52
|
+
import {
|
|
53
|
+
Customer,
|
|
54
|
+
Customer$inboundSchema,
|
|
55
|
+
Customer$Outbound,
|
|
56
|
+
Customer$outboundSchema,
|
|
57
|
+
} from "./customer.js";
|
|
52
58
|
|
|
53
59
|
export type BenefitGrantWebhookProperties =
|
|
54
60
|
| BenefitGrantCustomProperties
|
|
@@ -115,6 +121,10 @@ export type BenefitGrantWebhook = {
|
|
|
115
121
|
* The ID of the benefit concerned by this grant.
|
|
116
122
|
*/
|
|
117
123
|
benefitId: string;
|
|
124
|
+
/**
|
|
125
|
+
* A customer in an organization.
|
|
126
|
+
*/
|
|
127
|
+
customer: Customer;
|
|
118
128
|
properties:
|
|
119
129
|
| BenefitGrantCustomProperties
|
|
120
130
|
| BenefitGrantDownloadablesProperties
|
|
@@ -296,6 +306,7 @@ export const BenefitGrantWebhook$inboundSchema: z.ZodType<
|
|
|
296
306
|
customer_id: z.string(),
|
|
297
307
|
user_id: z.string(),
|
|
298
308
|
benefit_id: z.string(),
|
|
309
|
+
customer: Customer$inboundSchema,
|
|
299
310
|
properties: z.union([
|
|
300
311
|
BenefitGrantCustomProperties$inboundSchema,
|
|
301
312
|
BenefitGrantDownloadablesProperties$inboundSchema,
|
|
@@ -346,6 +357,7 @@ export type BenefitGrantWebhook$Outbound = {
|
|
|
346
357
|
customer_id: string;
|
|
347
358
|
user_id: string;
|
|
348
359
|
benefit_id: string;
|
|
360
|
+
customer: Customer$Outbound;
|
|
349
361
|
properties:
|
|
350
362
|
| BenefitGrantCustomProperties$Outbound
|
|
351
363
|
| BenefitGrantDownloadablesProperties$Outbound
|
|
@@ -383,6 +395,7 @@ export const BenefitGrantWebhook$outboundSchema: z.ZodType<
|
|
|
383
395
|
customerId: z.string(),
|
|
384
396
|
userId: z.string(),
|
|
385
397
|
benefitId: z.string(),
|
|
398
|
+
customer: Customer$outboundSchema,
|
|
386
399
|
properties: z.union([
|
|
387
400
|
BenefitGrantCustomProperties$outboundSchema,
|
|
388
401
|
BenefitGrantDownloadablesProperties$outboundSchema,
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
import {
|
|
@@ -15,11 +14,6 @@ import {
|
|
|
15
14
|
BenefitLicenseKeysProperties$outboundSchema,
|
|
16
15
|
} from "./benefitlicensekeysproperties.js";
|
|
17
16
|
|
|
18
|
-
export const BenefitLicenseKeysType = {
|
|
19
|
-
LicenseKeys: "license_keys",
|
|
20
|
-
} as const;
|
|
21
|
-
export type BenefitLicenseKeysType = ClosedEnum<typeof BenefitLicenseKeysType>;
|
|
22
|
-
|
|
23
17
|
export type BenefitLicenseKeys = {
|
|
24
18
|
/**
|
|
25
19
|
* Creation timestamp of the object.
|
|
@@ -53,27 +47,6 @@ export type BenefitLicenseKeys = {
|
|
|
53
47
|
properties: BenefitLicenseKeysProperties;
|
|
54
48
|
};
|
|
55
49
|
|
|
56
|
-
/** @internal */
|
|
57
|
-
export const BenefitLicenseKeysType$inboundSchema: z.ZodNativeEnum<
|
|
58
|
-
typeof BenefitLicenseKeysType
|
|
59
|
-
> = z.nativeEnum(BenefitLicenseKeysType);
|
|
60
|
-
|
|
61
|
-
/** @internal */
|
|
62
|
-
export const BenefitLicenseKeysType$outboundSchema: z.ZodNativeEnum<
|
|
63
|
-
typeof BenefitLicenseKeysType
|
|
64
|
-
> = BenefitLicenseKeysType$inboundSchema;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @internal
|
|
68
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
69
|
-
*/
|
|
70
|
-
export namespace BenefitLicenseKeysType$ {
|
|
71
|
-
/** @deprecated use `BenefitLicenseKeysType$inboundSchema` instead. */
|
|
72
|
-
export const inboundSchema = BenefitLicenseKeysType$inboundSchema;
|
|
73
|
-
/** @deprecated use `BenefitLicenseKeysType$outboundSchema` instead. */
|
|
74
|
-
export const outboundSchema = BenefitLicenseKeysType$outboundSchema;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
50
|
/** @internal */
|
|
78
51
|
export const BenefitLicenseKeys$inboundSchema: z.ZodType<
|
|
79
52
|
BenefitLicenseKeys,
|
|
@@ -121,7 +94,7 @@ export const BenefitLicenseKeys$outboundSchema: z.ZodType<
|
|
|
121
94
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
122
95
|
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
123
96
|
id: z.string(),
|
|
124
|
-
type: z.literal("license_keys").default("license_keys"),
|
|
97
|
+
type: z.literal("license_keys").default("license_keys" as const),
|
|
125
98
|
description: z.string(),
|
|
126
99
|
selectable: z.boolean(),
|
|
127
100
|
deletable: z.boolean(),
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
import {
|
|
@@ -15,13 +14,6 @@ import {
|
|
|
15
14
|
BenefitLicenseKeysCreateProperties$outboundSchema,
|
|
16
15
|
} from "./benefitlicensekeyscreateproperties.js";
|
|
17
16
|
|
|
18
|
-
export const BenefitLicenseKeysCreateType = {
|
|
19
|
-
LicenseKeys: "license_keys",
|
|
20
|
-
} as const;
|
|
21
|
-
export type BenefitLicenseKeysCreateType = ClosedEnum<
|
|
22
|
-
typeof BenefitLicenseKeysCreateType
|
|
23
|
-
>;
|
|
24
|
-
|
|
25
17
|
export type BenefitLicenseKeysCreate = {
|
|
26
18
|
type?: "license_keys" | undefined;
|
|
27
19
|
/**
|
|
@@ -35,27 +27,6 @@ export type BenefitLicenseKeysCreate = {
|
|
|
35
27
|
properties: BenefitLicenseKeysCreateProperties;
|
|
36
28
|
};
|
|
37
29
|
|
|
38
|
-
/** @internal */
|
|
39
|
-
export const BenefitLicenseKeysCreateType$inboundSchema: z.ZodNativeEnum<
|
|
40
|
-
typeof BenefitLicenseKeysCreateType
|
|
41
|
-
> = z.nativeEnum(BenefitLicenseKeysCreateType);
|
|
42
|
-
|
|
43
|
-
/** @internal */
|
|
44
|
-
export const BenefitLicenseKeysCreateType$outboundSchema: z.ZodNativeEnum<
|
|
45
|
-
typeof BenefitLicenseKeysCreateType
|
|
46
|
-
> = BenefitLicenseKeysCreateType$inboundSchema;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @internal
|
|
50
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
|
-
*/
|
|
52
|
-
export namespace BenefitLicenseKeysCreateType$ {
|
|
53
|
-
/** @deprecated use `BenefitLicenseKeysCreateType$inboundSchema` instead. */
|
|
54
|
-
export const inboundSchema = BenefitLicenseKeysCreateType$inboundSchema;
|
|
55
|
-
/** @deprecated use `BenefitLicenseKeysCreateType$outboundSchema` instead. */
|
|
56
|
-
export const outboundSchema = BenefitLicenseKeysCreateType$outboundSchema;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
30
|
/** @internal */
|
|
60
31
|
export const BenefitLicenseKeysCreate$inboundSchema: z.ZodType<
|
|
61
32
|
BenefitLicenseKeysCreate,
|
|
@@ -86,7 +57,7 @@ export const BenefitLicenseKeysCreate$outboundSchema: z.ZodType<
|
|
|
86
57
|
z.ZodTypeDef,
|
|
87
58
|
BenefitLicenseKeysCreate
|
|
88
59
|
> = z.object({
|
|
89
|
-
type: z.literal("license_keys").default("license_keys"),
|
|
60
|
+
type: z.literal("license_keys").default("license_keys" as const),
|
|
90
61
|
description: z.string(),
|
|
91
62
|
organizationId: z.nullable(z.string()).optional(),
|
|
92
63
|
properties: BenefitLicenseKeysCreateProperties$outboundSchema,
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
import {
|
|
@@ -21,13 +20,6 @@ import {
|
|
|
21
20
|
Organization$outboundSchema,
|
|
22
21
|
} from "./organization.js";
|
|
23
22
|
|
|
24
|
-
export const BenefitLicenseKeysSubscriberType = {
|
|
25
|
-
LicenseKeys: "license_keys",
|
|
26
|
-
} as const;
|
|
27
|
-
export type BenefitLicenseKeysSubscriberType = ClosedEnum<
|
|
28
|
-
typeof BenefitLicenseKeysSubscriberType
|
|
29
|
-
>;
|
|
30
|
-
|
|
31
23
|
export type BenefitLicenseKeysSubscriber = {
|
|
32
24
|
/**
|
|
33
25
|
* Creation timestamp of the object.
|
|
@@ -62,27 +54,6 @@ export type BenefitLicenseKeysSubscriber = {
|
|
|
62
54
|
properties: BenefitLicenseKeysSubscriberProperties;
|
|
63
55
|
};
|
|
64
56
|
|
|
65
|
-
/** @internal */
|
|
66
|
-
export const BenefitLicenseKeysSubscriberType$inboundSchema: z.ZodNativeEnum<
|
|
67
|
-
typeof BenefitLicenseKeysSubscriberType
|
|
68
|
-
> = z.nativeEnum(BenefitLicenseKeysSubscriberType);
|
|
69
|
-
|
|
70
|
-
/** @internal */
|
|
71
|
-
export const BenefitLicenseKeysSubscriberType$outboundSchema: z.ZodNativeEnum<
|
|
72
|
-
typeof BenefitLicenseKeysSubscriberType
|
|
73
|
-
> = BenefitLicenseKeysSubscriberType$inboundSchema;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @internal
|
|
77
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
78
|
-
*/
|
|
79
|
-
export namespace BenefitLicenseKeysSubscriberType$ {
|
|
80
|
-
/** @deprecated use `BenefitLicenseKeysSubscriberType$inboundSchema` instead. */
|
|
81
|
-
export const inboundSchema = BenefitLicenseKeysSubscriberType$inboundSchema;
|
|
82
|
-
/** @deprecated use `BenefitLicenseKeysSubscriberType$outboundSchema` instead. */
|
|
83
|
-
export const outboundSchema = BenefitLicenseKeysSubscriberType$outboundSchema;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
57
|
/** @internal */
|
|
87
58
|
export const BenefitLicenseKeysSubscriber$inboundSchema: z.ZodType<
|
|
88
59
|
BenefitLicenseKeysSubscriber,
|
|
@@ -132,7 +103,7 @@ export const BenefitLicenseKeysSubscriber$outboundSchema: z.ZodType<
|
|
|
132
103
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
133
104
|
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
134
105
|
id: z.string(),
|
|
135
|
-
type: z.literal("license_keys").default("license_keys"),
|
|
106
|
+
type: z.literal("license_keys").default("license_keys" as const),
|
|
136
107
|
description: z.string(),
|
|
137
108
|
selectable: z.boolean(),
|
|
138
109
|
deletable: z.boolean(),
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
9
|
import {
|
|
@@ -14,13 +13,6 @@ import {
|
|
|
14
13
|
BenefitLicenseKeysCreateProperties$outboundSchema,
|
|
15
14
|
} from "./benefitlicensekeyscreateproperties.js";
|
|
16
15
|
|
|
17
|
-
export const BenefitLicenseKeysUpdateType = {
|
|
18
|
-
LicenseKeys: "license_keys",
|
|
19
|
-
} as const;
|
|
20
|
-
export type BenefitLicenseKeysUpdateType = ClosedEnum<
|
|
21
|
-
typeof BenefitLicenseKeysUpdateType
|
|
22
|
-
>;
|
|
23
|
-
|
|
24
16
|
export type BenefitLicenseKeysUpdate = {
|
|
25
17
|
/**
|
|
26
18
|
* The description of the benefit. Will be displayed on products having this benefit.
|
|
@@ -30,27 +22,6 @@ export type BenefitLicenseKeysUpdate = {
|
|
|
30
22
|
properties?: BenefitLicenseKeysCreateProperties | null | undefined;
|
|
31
23
|
};
|
|
32
24
|
|
|
33
|
-
/** @internal */
|
|
34
|
-
export const BenefitLicenseKeysUpdateType$inboundSchema: z.ZodNativeEnum<
|
|
35
|
-
typeof BenefitLicenseKeysUpdateType
|
|
36
|
-
> = z.nativeEnum(BenefitLicenseKeysUpdateType);
|
|
37
|
-
|
|
38
|
-
/** @internal */
|
|
39
|
-
export const BenefitLicenseKeysUpdateType$outboundSchema: z.ZodNativeEnum<
|
|
40
|
-
typeof BenefitLicenseKeysUpdateType
|
|
41
|
-
> = BenefitLicenseKeysUpdateType$inboundSchema;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
-
*/
|
|
47
|
-
export namespace BenefitLicenseKeysUpdateType$ {
|
|
48
|
-
/** @deprecated use `BenefitLicenseKeysUpdateType$inboundSchema` instead. */
|
|
49
|
-
export const inboundSchema = BenefitLicenseKeysUpdateType$inboundSchema;
|
|
50
|
-
/** @deprecated use `BenefitLicenseKeysUpdateType$outboundSchema` instead. */
|
|
51
|
-
export const outboundSchema = BenefitLicenseKeysUpdateType$outboundSchema;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
25
|
/** @internal */
|
|
55
26
|
export const BenefitLicenseKeysUpdate$inboundSchema: z.ZodType<
|
|
56
27
|
BenefitLicenseKeysUpdate,
|
|
@@ -77,7 +48,7 @@ export const BenefitLicenseKeysUpdate$outboundSchema: z.ZodType<
|
|
|
77
48
|
BenefitLicenseKeysUpdate
|
|
78
49
|
> = z.object({
|
|
79
50
|
description: z.nullable(z.string()).optional(),
|
|
80
|
-
type: z.literal("license_keys").default("license_keys"),
|
|
51
|
+
type: z.literal("license_keys").default("license_keys" as const),
|
|
81
52
|
properties: z.nullable(BenefitLicenseKeysCreateProperties$outboundSchema)
|
|
82
53
|
.optional(),
|
|
83
54
|
});
|
|
@@ -54,6 +54,11 @@ import {
|
|
|
54
54
|
CheckoutStatus$inboundSchema,
|
|
55
55
|
CheckoutStatus$outboundSchema,
|
|
56
56
|
} from "./checkoutstatus.js";
|
|
57
|
+
import {
|
|
58
|
+
PaymentProcessor,
|
|
59
|
+
PaymentProcessor$inboundSchema,
|
|
60
|
+
PaymentProcessor$outboundSchema,
|
|
61
|
+
} from "./paymentprocessor.js";
|
|
57
62
|
import {
|
|
58
63
|
ProductPrice,
|
|
59
64
|
ProductPrice$inboundSchema,
|
|
@@ -98,7 +103,7 @@ export type Checkout = {
|
|
|
98
103
|
* Key-value object storing custom field values.
|
|
99
104
|
*/
|
|
100
105
|
customFieldData?: CheckoutCustomFieldData | undefined;
|
|
101
|
-
paymentProcessor
|
|
106
|
+
paymentProcessor: PaymentProcessor;
|
|
102
107
|
status: CheckoutStatus;
|
|
103
108
|
/**
|
|
104
109
|
* Client secret used to update and complete the checkout session from the client.
|
|
@@ -464,7 +469,7 @@ export const Checkout$inboundSchema: z.ZodType<
|
|
|
464
469
|
id: z.string(),
|
|
465
470
|
custom_field_data: z.lazy(() => CheckoutCustomFieldData$inboundSchema)
|
|
466
471
|
.optional(),
|
|
467
|
-
payment_processor:
|
|
472
|
+
payment_processor: PaymentProcessor$inboundSchema,
|
|
468
473
|
status: CheckoutStatus$inboundSchema,
|
|
469
474
|
client_secret: z.string(),
|
|
470
475
|
url: z.string(),
|
|
@@ -552,7 +557,7 @@ export type Checkout$Outbound = {
|
|
|
552
557
|
modified_at: string | null;
|
|
553
558
|
id: string;
|
|
554
559
|
custom_field_data?: CheckoutCustomFieldData$Outbound | undefined;
|
|
555
|
-
payment_processor:
|
|
560
|
+
payment_processor: string;
|
|
556
561
|
status: string;
|
|
557
562
|
client_secret: string;
|
|
558
563
|
url: string;
|
|
@@ -605,7 +610,7 @@ export const Checkout$outboundSchema: z.ZodType<
|
|
|
605
610
|
id: z.string(),
|
|
606
611
|
customFieldData: z.lazy(() => CheckoutCustomFieldData$outboundSchema)
|
|
607
612
|
.optional(),
|
|
608
|
-
paymentProcessor:
|
|
613
|
+
paymentProcessor: PaymentProcessor$outboundSchema,
|
|
609
614
|
status: CheckoutStatus$outboundSchema,
|
|
610
615
|
clientSecret: z.string(),
|
|
611
616
|
url: z.string(),
|
|
@@ -37,6 +37,11 @@ import {
|
|
|
37
37
|
DiscountPercentageRepeatDurationBase$Outbound,
|
|
38
38
|
DiscountPercentageRepeatDurationBase$outboundSchema,
|
|
39
39
|
} from "./discountpercentagerepeatdurationbase.js";
|
|
40
|
+
import {
|
|
41
|
+
PaymentProcessor,
|
|
42
|
+
PaymentProcessor$inboundSchema,
|
|
43
|
+
PaymentProcessor$outboundSchema,
|
|
44
|
+
} from "./paymentprocessor.js";
|
|
40
45
|
import {
|
|
41
46
|
ProductPrice,
|
|
42
47
|
ProductPrice$inboundSchema,
|
|
@@ -69,7 +74,7 @@ export type CheckoutLink = {
|
|
|
69
74
|
*/
|
|
70
75
|
id: string;
|
|
71
76
|
metadata: { [k: string]: string | number | boolean };
|
|
72
|
-
paymentProcessor
|
|
77
|
+
paymentProcessor: PaymentProcessor;
|
|
73
78
|
/**
|
|
74
79
|
* Client secret used to access the checkout link.
|
|
75
80
|
*/
|
|
@@ -234,7 +239,7 @@ export const CheckoutLink$inboundSchema: z.ZodType<
|
|
|
234
239
|
),
|
|
235
240
|
id: z.string(),
|
|
236
241
|
metadata: z.record(z.union([z.string(), z.number().int(), z.boolean()])),
|
|
237
|
-
payment_processor:
|
|
242
|
+
payment_processor: PaymentProcessor$inboundSchema,
|
|
238
243
|
client_secret: z.string(),
|
|
239
244
|
success_url: z.nullable(z.string()),
|
|
240
245
|
label: z.nullable(z.string()),
|
|
@@ -274,7 +279,7 @@ export type CheckoutLink$Outbound = {
|
|
|
274
279
|
modified_at: string | null;
|
|
275
280
|
id: string;
|
|
276
281
|
metadata: { [k: string]: string | number | boolean };
|
|
277
|
-
payment_processor:
|
|
282
|
+
payment_processor: string;
|
|
278
283
|
client_secret: string;
|
|
279
284
|
success_url: string | null;
|
|
280
285
|
label: string | null;
|
|
@@ -303,7 +308,7 @@ export const CheckoutLink$outboundSchema: z.ZodType<
|
|
|
303
308
|
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
304
309
|
id: z.string(),
|
|
305
310
|
metadata: z.record(z.union([z.string(), z.number().int(), z.boolean()])),
|
|
306
|
-
paymentProcessor:
|
|
311
|
+
paymentProcessor: PaymentProcessor$outboundSchema,
|
|
307
312
|
clientSecret: z.string(),
|
|
308
313
|
successUrl: z.nullable(z.string()),
|
|
309
314
|
label: z.nullable(z.string()),
|
|
@@ -5,25 +5,11 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
|
|
12
11
|
export type CheckoutLinkPriceCreateMetadata = string | number | boolean;
|
|
13
12
|
|
|
14
|
-
/**
|
|
15
|
-
* Payment processor to use. Currently only Stripe is supported.
|
|
16
|
-
*/
|
|
17
|
-
export const CheckoutLinkPriceCreatePaymentProcessor = {
|
|
18
|
-
Stripe: "stripe",
|
|
19
|
-
} as const;
|
|
20
|
-
/**
|
|
21
|
-
* Payment processor to use. Currently only Stripe is supported.
|
|
22
|
-
*/
|
|
23
|
-
export type CheckoutLinkPriceCreatePaymentProcessor = ClosedEnum<
|
|
24
|
-
typeof CheckoutLinkPriceCreatePaymentProcessor
|
|
25
|
-
>;
|
|
26
|
-
|
|
27
13
|
export type CheckoutLinkPriceCreate = {
|
|
28
14
|
/**
|
|
29
15
|
* Key-value object allowing you to store additional information.
|
|
@@ -119,29 +105,6 @@ export function checkoutLinkPriceCreateMetadataFromJSON(
|
|
|
119
105
|
);
|
|
120
106
|
}
|
|
121
107
|
|
|
122
|
-
/** @internal */
|
|
123
|
-
export const CheckoutLinkPriceCreatePaymentProcessor$inboundSchema:
|
|
124
|
-
z.ZodNativeEnum<typeof CheckoutLinkPriceCreatePaymentProcessor> = z
|
|
125
|
-
.nativeEnum(CheckoutLinkPriceCreatePaymentProcessor);
|
|
126
|
-
|
|
127
|
-
/** @internal */
|
|
128
|
-
export const CheckoutLinkPriceCreatePaymentProcessor$outboundSchema:
|
|
129
|
-
z.ZodNativeEnum<typeof CheckoutLinkPriceCreatePaymentProcessor> =
|
|
130
|
-
CheckoutLinkPriceCreatePaymentProcessor$inboundSchema;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* @internal
|
|
134
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
135
|
-
*/
|
|
136
|
-
export namespace CheckoutLinkPriceCreatePaymentProcessor$ {
|
|
137
|
-
/** @deprecated use `CheckoutLinkPriceCreatePaymentProcessor$inboundSchema` instead. */
|
|
138
|
-
export const inboundSchema =
|
|
139
|
-
CheckoutLinkPriceCreatePaymentProcessor$inboundSchema;
|
|
140
|
-
/** @deprecated use `CheckoutLinkPriceCreatePaymentProcessor$outboundSchema` instead. */
|
|
141
|
-
export const outboundSchema =
|
|
142
|
-
CheckoutLinkPriceCreatePaymentProcessor$outboundSchema;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
108
|
/** @internal */
|
|
146
109
|
export const CheckoutLinkPriceCreate$inboundSchema: z.ZodType<
|
|
147
110
|
CheckoutLinkPriceCreate,
|
|
@@ -185,7 +148,7 @@ export const CheckoutLinkPriceCreate$outboundSchema: z.ZodType<
|
|
|
185
148
|
> = z.object({
|
|
186
149
|
metadata: z.record(z.union([z.string(), z.number().int(), z.boolean()]))
|
|
187
150
|
.optional(),
|
|
188
|
-
paymentProcessor: z.literal("stripe").default("stripe"),
|
|
151
|
+
paymentProcessor: z.literal("stripe").default("stripe" as const),
|
|
189
152
|
label: z.nullable(z.string()).optional(),
|
|
190
153
|
allowDiscountCodes: z.boolean().default(true),
|
|
191
154
|
discountId: z.nullable(z.string()).optional(),
|
|
@@ -5,25 +5,11 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
|
|
12
11
|
export type CheckoutLinkProductCreateMetadata = string | number | boolean;
|
|
13
12
|
|
|
14
|
-
/**
|
|
15
|
-
* Payment processor to use. Currently only Stripe is supported.
|
|
16
|
-
*/
|
|
17
|
-
export const CheckoutLinkProductCreatePaymentProcessor = {
|
|
18
|
-
Stripe: "stripe",
|
|
19
|
-
} as const;
|
|
20
|
-
/**
|
|
21
|
-
* Payment processor to use. Currently only Stripe is supported.
|
|
22
|
-
*/
|
|
23
|
-
export type CheckoutLinkProductCreatePaymentProcessor = ClosedEnum<
|
|
24
|
-
typeof CheckoutLinkProductCreatePaymentProcessor
|
|
25
|
-
>;
|
|
26
|
-
|
|
27
13
|
export type CheckoutLinkProductCreate = {
|
|
28
14
|
/**
|
|
29
15
|
* Key-value object allowing you to store additional information.
|
|
@@ -120,29 +106,6 @@ export function checkoutLinkProductCreateMetadataFromJSON(
|
|
|
120
106
|
);
|
|
121
107
|
}
|
|
122
108
|
|
|
123
|
-
/** @internal */
|
|
124
|
-
export const CheckoutLinkProductCreatePaymentProcessor$inboundSchema:
|
|
125
|
-
z.ZodNativeEnum<typeof CheckoutLinkProductCreatePaymentProcessor> = z
|
|
126
|
-
.nativeEnum(CheckoutLinkProductCreatePaymentProcessor);
|
|
127
|
-
|
|
128
|
-
/** @internal */
|
|
129
|
-
export const CheckoutLinkProductCreatePaymentProcessor$outboundSchema:
|
|
130
|
-
z.ZodNativeEnum<typeof CheckoutLinkProductCreatePaymentProcessor> =
|
|
131
|
-
CheckoutLinkProductCreatePaymentProcessor$inboundSchema;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @internal
|
|
135
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
136
|
-
*/
|
|
137
|
-
export namespace CheckoutLinkProductCreatePaymentProcessor$ {
|
|
138
|
-
/** @deprecated use `CheckoutLinkProductCreatePaymentProcessor$inboundSchema` instead. */
|
|
139
|
-
export const inboundSchema =
|
|
140
|
-
CheckoutLinkProductCreatePaymentProcessor$inboundSchema;
|
|
141
|
-
/** @deprecated use `CheckoutLinkProductCreatePaymentProcessor$outboundSchema` instead. */
|
|
142
|
-
export const outboundSchema =
|
|
143
|
-
CheckoutLinkProductCreatePaymentProcessor$outboundSchema;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
109
|
/** @internal */
|
|
147
110
|
export const CheckoutLinkProductCreate$inboundSchema: z.ZodType<
|
|
148
111
|
CheckoutLinkProductCreate,
|
|
@@ -186,7 +149,7 @@ export const CheckoutLinkProductCreate$outboundSchema: z.ZodType<
|
|
|
186
149
|
> = z.object({
|
|
187
150
|
metadata: z.record(z.union([z.string(), z.number().int(), z.boolean()]))
|
|
188
151
|
.optional(),
|
|
189
|
-
paymentProcessor: z.literal("stripe").default("stripe"),
|
|
152
|
+
paymentProcessor: z.literal("stripe").default("stripe" as const),
|
|
190
153
|
label: z.nullable(z.string()).optional(),
|
|
191
154
|
allowDiscountCodes: z.boolean().default(true),
|
|
192
155
|
discountId: z.nullable(z.string()).optional(),
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
import {
|
|
@@ -22,19 +21,6 @@ export type CheckoutPriceCreateMetadata = string | number | boolean;
|
|
|
22
21
|
*/
|
|
23
22
|
export type CheckoutPriceCreateCustomFieldData = {};
|
|
24
23
|
|
|
25
|
-
/**
|
|
26
|
-
* Payment processor to use. Currently only Stripe is supported.
|
|
27
|
-
*/
|
|
28
|
-
export const CheckoutPriceCreatePaymentProcessor = {
|
|
29
|
-
Stripe: "stripe",
|
|
30
|
-
} as const;
|
|
31
|
-
/**
|
|
32
|
-
* Payment processor to use. Currently only Stripe is supported.
|
|
33
|
-
*/
|
|
34
|
-
export type CheckoutPriceCreatePaymentProcessor = ClosedEnum<
|
|
35
|
-
typeof CheckoutPriceCreatePaymentProcessor
|
|
36
|
-
>;
|
|
37
|
-
|
|
38
24
|
export type CheckoutPriceCreateCustomerMetadata = string | number | boolean;
|
|
39
25
|
|
|
40
26
|
/**
|
|
@@ -65,10 +51,6 @@ export type CheckoutPriceCreate = {
|
|
|
65
51
|
* Key-value object storing custom field values.
|
|
66
52
|
*/
|
|
67
53
|
customFieldData?: CheckoutPriceCreateCustomFieldData | undefined;
|
|
68
|
-
/**
|
|
69
|
-
* Payment processor to use. Currently only Stripe is supported.
|
|
70
|
-
*/
|
|
71
|
-
paymentProcessor?: "stripe" | undefined;
|
|
72
54
|
/**
|
|
73
55
|
* ID of the discount to apply to the checkout.
|
|
74
56
|
*/
|
|
@@ -222,29 +204,6 @@ export function checkoutPriceCreateCustomFieldDataFromJSON(
|
|
|
222
204
|
);
|
|
223
205
|
}
|
|
224
206
|
|
|
225
|
-
/** @internal */
|
|
226
|
-
export const CheckoutPriceCreatePaymentProcessor$inboundSchema: z.ZodNativeEnum<
|
|
227
|
-
typeof CheckoutPriceCreatePaymentProcessor
|
|
228
|
-
> = z.nativeEnum(CheckoutPriceCreatePaymentProcessor);
|
|
229
|
-
|
|
230
|
-
/** @internal */
|
|
231
|
-
export const CheckoutPriceCreatePaymentProcessor$outboundSchema:
|
|
232
|
-
z.ZodNativeEnum<typeof CheckoutPriceCreatePaymentProcessor> =
|
|
233
|
-
CheckoutPriceCreatePaymentProcessor$inboundSchema;
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* @internal
|
|
237
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
238
|
-
*/
|
|
239
|
-
export namespace CheckoutPriceCreatePaymentProcessor$ {
|
|
240
|
-
/** @deprecated use `CheckoutPriceCreatePaymentProcessor$inboundSchema` instead. */
|
|
241
|
-
export const inboundSchema =
|
|
242
|
-
CheckoutPriceCreatePaymentProcessor$inboundSchema;
|
|
243
|
-
/** @deprecated use `CheckoutPriceCreatePaymentProcessor$outboundSchema` instead. */
|
|
244
|
-
export const outboundSchema =
|
|
245
|
-
CheckoutPriceCreatePaymentProcessor$outboundSchema;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
207
|
/** @internal */
|
|
249
208
|
export const CheckoutPriceCreateCustomerMetadata$inboundSchema: z.ZodType<
|
|
250
209
|
CheckoutPriceCreateCustomerMetadata,
|
|
@@ -312,7 +271,6 @@ export const CheckoutPriceCreate$inboundSchema: z.ZodType<
|
|
|
312
271
|
custom_field_data: z.lazy(() =>
|
|
313
272
|
CheckoutPriceCreateCustomFieldData$inboundSchema
|
|
314
273
|
).optional(),
|
|
315
|
-
payment_processor: z.literal("stripe").optional(),
|
|
316
274
|
discount_id: z.nullable(z.string()).optional(),
|
|
317
275
|
allow_discount_codes: z.boolean().default(true),
|
|
318
276
|
amount: z.nullable(z.number().int()).optional(),
|
|
@@ -332,7 +290,6 @@ export const CheckoutPriceCreate$inboundSchema: z.ZodType<
|
|
|
332
290
|
}).transform((v) => {
|
|
333
291
|
return remap$(v, {
|
|
334
292
|
"custom_field_data": "customFieldData",
|
|
335
|
-
"payment_processor": "paymentProcessor",
|
|
336
293
|
"discount_id": "discountId",
|
|
337
294
|
"allow_discount_codes": "allowDiscountCodes",
|
|
338
295
|
"customer_id": "customerId",
|
|
@@ -353,7 +310,6 @@ export const CheckoutPriceCreate$inboundSchema: z.ZodType<
|
|
|
353
310
|
export type CheckoutPriceCreate$Outbound = {
|
|
354
311
|
metadata?: { [k: string]: string | number | boolean } | undefined;
|
|
355
312
|
custom_field_data?: CheckoutPriceCreateCustomFieldData$Outbound | undefined;
|
|
356
|
-
payment_processor: "stripe";
|
|
357
313
|
discount_id?: string | null | undefined;
|
|
358
314
|
allow_discount_codes: boolean;
|
|
359
315
|
amount?: number | null | undefined;
|
|
@@ -381,7 +337,6 @@ export const CheckoutPriceCreate$outboundSchema: z.ZodType<
|
|
|
381
337
|
customFieldData: z.lazy(() =>
|
|
382
338
|
CheckoutPriceCreateCustomFieldData$outboundSchema
|
|
383
339
|
).optional(),
|
|
384
|
-
paymentProcessor: z.literal("stripe").default("stripe"),
|
|
385
340
|
discountId: z.nullable(z.string()).optional(),
|
|
386
341
|
allowDiscountCodes: z.boolean().default(true),
|
|
387
342
|
amount: z.nullable(z.number().int()).optional(),
|
|
@@ -401,7 +356,6 @@ export const CheckoutPriceCreate$outboundSchema: z.ZodType<
|
|
|
401
356
|
}).transform((v) => {
|
|
402
357
|
return remap$(v, {
|
|
403
358
|
customFieldData: "custom_field_data",
|
|
404
|
-
paymentProcessor: "payment_processor",
|
|
405
359
|
discountId: "discount_id",
|
|
406
360
|
allowDiscountCodes: "allow_discount_codes",
|
|
407
361
|
customerId: "customer_id",
|