@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
|
@@ -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 {
|
|
@@ -14,26 +13,6 @@ import {
|
|
|
14
13
|
SubscriptionRecurringInterval$outboundSchema,
|
|
15
14
|
} from "./subscriptionrecurringinterval.js";
|
|
16
15
|
|
|
17
|
-
export const ProductPriceRecurringCustomAmountType = {
|
|
18
|
-
Custom: "custom",
|
|
19
|
-
} as const;
|
|
20
|
-
export type ProductPriceRecurringCustomAmountType = ClosedEnum<
|
|
21
|
-
typeof ProductPriceRecurringCustomAmountType
|
|
22
|
-
>;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* The type of the price.
|
|
26
|
-
*/
|
|
27
|
-
export const ProductPriceRecurringCustomType = {
|
|
28
|
-
Recurring: "recurring",
|
|
29
|
-
} as const;
|
|
30
|
-
/**
|
|
31
|
-
* The type of the price.
|
|
32
|
-
*/
|
|
33
|
-
export type ProductPriceRecurringCustomType = ClosedEnum<
|
|
34
|
-
typeof ProductPriceRecurringCustomType
|
|
35
|
-
>;
|
|
36
|
-
|
|
37
16
|
/**
|
|
38
17
|
* A pay-what-you-want recurring price for a product, i.e. a subscription.
|
|
39
18
|
*/
|
|
@@ -82,51 +61,6 @@ export type ProductPriceRecurringCustom = {
|
|
|
82
61
|
recurringInterval: SubscriptionRecurringInterval;
|
|
83
62
|
};
|
|
84
63
|
|
|
85
|
-
/** @internal */
|
|
86
|
-
export const ProductPriceRecurringCustomAmountType$inboundSchema:
|
|
87
|
-
z.ZodNativeEnum<typeof ProductPriceRecurringCustomAmountType> = z.nativeEnum(
|
|
88
|
-
ProductPriceRecurringCustomAmountType,
|
|
89
|
-
);
|
|
90
|
-
|
|
91
|
-
/** @internal */
|
|
92
|
-
export const ProductPriceRecurringCustomAmountType$outboundSchema:
|
|
93
|
-
z.ZodNativeEnum<typeof ProductPriceRecurringCustomAmountType> =
|
|
94
|
-
ProductPriceRecurringCustomAmountType$inboundSchema;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* @internal
|
|
98
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
99
|
-
*/
|
|
100
|
-
export namespace ProductPriceRecurringCustomAmountType$ {
|
|
101
|
-
/** @deprecated use `ProductPriceRecurringCustomAmountType$inboundSchema` instead. */
|
|
102
|
-
export const inboundSchema =
|
|
103
|
-
ProductPriceRecurringCustomAmountType$inboundSchema;
|
|
104
|
-
/** @deprecated use `ProductPriceRecurringCustomAmountType$outboundSchema` instead. */
|
|
105
|
-
export const outboundSchema =
|
|
106
|
-
ProductPriceRecurringCustomAmountType$outboundSchema;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/** @internal */
|
|
110
|
-
export const ProductPriceRecurringCustomType$inboundSchema: z.ZodNativeEnum<
|
|
111
|
-
typeof ProductPriceRecurringCustomType
|
|
112
|
-
> = z.nativeEnum(ProductPriceRecurringCustomType);
|
|
113
|
-
|
|
114
|
-
/** @internal */
|
|
115
|
-
export const ProductPriceRecurringCustomType$outboundSchema: z.ZodNativeEnum<
|
|
116
|
-
typeof ProductPriceRecurringCustomType
|
|
117
|
-
> = ProductPriceRecurringCustomType$inboundSchema;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @internal
|
|
121
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
122
|
-
*/
|
|
123
|
-
export namespace ProductPriceRecurringCustomType$ {
|
|
124
|
-
/** @deprecated use `ProductPriceRecurringCustomType$inboundSchema` instead. */
|
|
125
|
-
export const inboundSchema = ProductPriceRecurringCustomType$inboundSchema;
|
|
126
|
-
/** @deprecated use `ProductPriceRecurringCustomType$outboundSchema` instead. */
|
|
127
|
-
export const outboundSchema = ProductPriceRecurringCustomType$outboundSchema;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
64
|
/** @internal */
|
|
131
65
|
export const ProductPriceRecurringCustom$inboundSchema: z.ZodType<
|
|
132
66
|
ProductPriceRecurringCustom,
|
|
@@ -187,14 +121,14 @@ export const ProductPriceRecurringCustom$outboundSchema: z.ZodType<
|
|
|
187
121
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
188
122
|
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
189
123
|
id: z.string(),
|
|
190
|
-
amountType: z.literal("custom").default("custom"),
|
|
124
|
+
amountType: z.literal("custom").default("custom" as const),
|
|
191
125
|
isArchived: z.boolean(),
|
|
192
126
|
productId: z.string(),
|
|
193
127
|
priceCurrency: z.string(),
|
|
194
128
|
minimumAmount: z.nullable(z.number().int()),
|
|
195
129
|
maximumAmount: z.nullable(z.number().int()),
|
|
196
130
|
presetAmount: z.nullable(z.number().int()),
|
|
197
|
-
type: z.literal("recurring").default("recurring"),
|
|
131
|
+
type: z.literal("recurring").default("recurring" as const),
|
|
198
132
|
recurringInterval: SubscriptionRecurringInterval$outboundSchema,
|
|
199
133
|
}).transform((v) => {
|
|
200
134
|
return remap$(v, {
|
|
@@ -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 {
|
|
@@ -14,22 +13,6 @@ import {
|
|
|
14
13
|
SubscriptionRecurringInterval$outboundSchema,
|
|
15
14
|
} from "./subscriptionrecurringinterval.js";
|
|
16
15
|
|
|
17
|
-
export const AmountType = {
|
|
18
|
-
Fixed: "fixed",
|
|
19
|
-
} as const;
|
|
20
|
-
export type AmountType = ClosedEnum<typeof AmountType>;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* The type of the price.
|
|
24
|
-
*/
|
|
25
|
-
export const Type = {
|
|
26
|
-
Recurring: "recurring",
|
|
27
|
-
} as const;
|
|
28
|
-
/**
|
|
29
|
-
* The type of the price.
|
|
30
|
-
*/
|
|
31
|
-
export type Type = ClosedEnum<typeof Type>;
|
|
32
|
-
|
|
33
16
|
/**
|
|
34
17
|
* A recurring price for a product, i.e. a subscription.
|
|
35
18
|
*/
|
|
@@ -70,45 +53,6 @@ export type ProductPriceRecurringFixed = {
|
|
|
70
53
|
recurringInterval: SubscriptionRecurringInterval;
|
|
71
54
|
};
|
|
72
55
|
|
|
73
|
-
/** @internal */
|
|
74
|
-
export const AmountType$inboundSchema: z.ZodNativeEnum<typeof AmountType> = z
|
|
75
|
-
.nativeEnum(AmountType);
|
|
76
|
-
|
|
77
|
-
/** @internal */
|
|
78
|
-
export const AmountType$outboundSchema: z.ZodNativeEnum<typeof AmountType> =
|
|
79
|
-
AmountType$inboundSchema;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
-
*/
|
|
85
|
-
export namespace AmountType$ {
|
|
86
|
-
/** @deprecated use `AmountType$inboundSchema` instead. */
|
|
87
|
-
export const inboundSchema = AmountType$inboundSchema;
|
|
88
|
-
/** @deprecated use `AmountType$outboundSchema` instead. */
|
|
89
|
-
export const outboundSchema = AmountType$outboundSchema;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/** @internal */
|
|
93
|
-
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
94
|
-
Type,
|
|
95
|
-
);
|
|
96
|
-
|
|
97
|
-
/** @internal */
|
|
98
|
-
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
99
|
-
Type$inboundSchema;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* @internal
|
|
103
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
104
|
-
*/
|
|
105
|
-
export namespace Type$ {
|
|
106
|
-
/** @deprecated use `Type$inboundSchema` instead. */
|
|
107
|
-
export const inboundSchema = Type$inboundSchema;
|
|
108
|
-
/** @deprecated use `Type$outboundSchema` instead. */
|
|
109
|
-
export const outboundSchema = Type$outboundSchema;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
56
|
/** @internal */
|
|
113
57
|
export const ProductPriceRecurringFixed$inboundSchema: z.ZodType<
|
|
114
58
|
ProductPriceRecurringFixed,
|
|
@@ -163,12 +107,12 @@ export const ProductPriceRecurringFixed$outboundSchema: z.ZodType<
|
|
|
163
107
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
164
108
|
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
165
109
|
id: z.string(),
|
|
166
|
-
amountType: z.literal("fixed").default("fixed"),
|
|
110
|
+
amountType: z.literal("fixed").default("fixed" as const),
|
|
167
111
|
isArchived: z.boolean(),
|
|
168
112
|
productId: z.string(),
|
|
169
113
|
priceCurrency: z.string(),
|
|
170
114
|
priceAmount: z.number().int(),
|
|
171
|
-
type: z.literal("recurring").default("recurring"),
|
|
115
|
+
type: z.literal("recurring").default("recurring" as const),
|
|
172
116
|
recurringInterval: SubscriptionRecurringInterval$outboundSchema,
|
|
173
117
|
}).transform((v) => {
|
|
174
118
|
return remap$(v, {
|
|
@@ -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 {
|
|
@@ -14,20 +13,6 @@ import {
|
|
|
14
13
|
SubscriptionRecurringInterval$outboundSchema,
|
|
15
14
|
} from "./subscriptionrecurringinterval.js";
|
|
16
15
|
|
|
17
|
-
export const ProductPriceRecurringFixedCreateType = {
|
|
18
|
-
Recurring: "recurring",
|
|
19
|
-
} as const;
|
|
20
|
-
export type ProductPriceRecurringFixedCreateType = ClosedEnum<
|
|
21
|
-
typeof ProductPriceRecurringFixedCreateType
|
|
22
|
-
>;
|
|
23
|
-
|
|
24
|
-
export const ProductPriceRecurringFixedCreateAmountType = {
|
|
25
|
-
Fixed: "fixed",
|
|
26
|
-
} as const;
|
|
27
|
-
export type ProductPriceRecurringFixedCreateAmountType = ClosedEnum<
|
|
28
|
-
typeof ProductPriceRecurringFixedCreateAmountType
|
|
29
|
-
>;
|
|
30
|
-
|
|
31
16
|
/**
|
|
32
17
|
* Schema to create a recurring product price, i.e. a subscription.
|
|
33
18
|
*/
|
|
@@ -45,53 +30,6 @@ export type ProductPriceRecurringFixedCreate = {
|
|
|
45
30
|
recurringInterval: SubscriptionRecurringInterval;
|
|
46
31
|
};
|
|
47
32
|
|
|
48
|
-
/** @internal */
|
|
49
|
-
export const ProductPriceRecurringFixedCreateType$inboundSchema:
|
|
50
|
-
z.ZodNativeEnum<typeof ProductPriceRecurringFixedCreateType> = z.nativeEnum(
|
|
51
|
-
ProductPriceRecurringFixedCreateType,
|
|
52
|
-
);
|
|
53
|
-
|
|
54
|
-
/** @internal */
|
|
55
|
-
export const ProductPriceRecurringFixedCreateType$outboundSchema:
|
|
56
|
-
z.ZodNativeEnum<typeof ProductPriceRecurringFixedCreateType> =
|
|
57
|
-
ProductPriceRecurringFixedCreateType$inboundSchema;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
-
*/
|
|
63
|
-
export namespace ProductPriceRecurringFixedCreateType$ {
|
|
64
|
-
/** @deprecated use `ProductPriceRecurringFixedCreateType$inboundSchema` instead. */
|
|
65
|
-
export const inboundSchema =
|
|
66
|
-
ProductPriceRecurringFixedCreateType$inboundSchema;
|
|
67
|
-
/** @deprecated use `ProductPriceRecurringFixedCreateType$outboundSchema` instead. */
|
|
68
|
-
export const outboundSchema =
|
|
69
|
-
ProductPriceRecurringFixedCreateType$outboundSchema;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/** @internal */
|
|
73
|
-
export const ProductPriceRecurringFixedCreateAmountType$inboundSchema:
|
|
74
|
-
z.ZodNativeEnum<typeof ProductPriceRecurringFixedCreateAmountType> = z
|
|
75
|
-
.nativeEnum(ProductPriceRecurringFixedCreateAmountType);
|
|
76
|
-
|
|
77
|
-
/** @internal */
|
|
78
|
-
export const ProductPriceRecurringFixedCreateAmountType$outboundSchema:
|
|
79
|
-
z.ZodNativeEnum<typeof ProductPriceRecurringFixedCreateAmountType> =
|
|
80
|
-
ProductPriceRecurringFixedCreateAmountType$inboundSchema;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
85
|
-
*/
|
|
86
|
-
export namespace ProductPriceRecurringFixedCreateAmountType$ {
|
|
87
|
-
/** @deprecated use `ProductPriceRecurringFixedCreateAmountType$inboundSchema` instead. */
|
|
88
|
-
export const inboundSchema =
|
|
89
|
-
ProductPriceRecurringFixedCreateAmountType$inboundSchema;
|
|
90
|
-
/** @deprecated use `ProductPriceRecurringFixedCreateAmountType$outboundSchema` instead. */
|
|
91
|
-
export const outboundSchema =
|
|
92
|
-
ProductPriceRecurringFixedCreateAmountType$outboundSchema;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
33
|
/** @internal */
|
|
96
34
|
export const ProductPriceRecurringFixedCreate$inboundSchema: z.ZodType<
|
|
97
35
|
ProductPriceRecurringFixedCreate,
|
|
@@ -127,8 +65,8 @@ export const ProductPriceRecurringFixedCreate$outboundSchema: z.ZodType<
|
|
|
127
65
|
z.ZodTypeDef,
|
|
128
66
|
ProductPriceRecurringFixedCreate
|
|
129
67
|
> = z.object({
|
|
130
|
-
type: z.literal("recurring").default("recurring"),
|
|
131
|
-
amountType: z.literal("fixed").default("fixed"),
|
|
68
|
+
type: z.literal("recurring").default("recurring" as const),
|
|
69
|
+
amountType: z.literal("fixed").default("fixed" as const),
|
|
132
70
|
priceAmount: z.number().int(),
|
|
133
71
|
priceCurrency: z.string().default("usd"),
|
|
134
72
|
recurringInterval: SubscriptionRecurringInterval$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 {
|
|
@@ -14,26 +13,6 @@ import {
|
|
|
14
13
|
SubscriptionRecurringInterval$outboundSchema,
|
|
15
14
|
} from "./subscriptionrecurringinterval.js";
|
|
16
15
|
|
|
17
|
-
export const ProductPriceRecurringFreeAmountType = {
|
|
18
|
-
Free: "free",
|
|
19
|
-
} as const;
|
|
20
|
-
export type ProductPriceRecurringFreeAmountType = ClosedEnum<
|
|
21
|
-
typeof ProductPriceRecurringFreeAmountType
|
|
22
|
-
>;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* The type of the price.
|
|
26
|
-
*/
|
|
27
|
-
export const ProductPriceRecurringFreeType = {
|
|
28
|
-
Recurring: "recurring",
|
|
29
|
-
} as const;
|
|
30
|
-
/**
|
|
31
|
-
* The type of the price.
|
|
32
|
-
*/
|
|
33
|
-
export type ProductPriceRecurringFreeType = ClosedEnum<
|
|
34
|
-
typeof ProductPriceRecurringFreeType
|
|
35
|
-
>;
|
|
36
|
-
|
|
37
16
|
/**
|
|
38
17
|
* A free recurring price for a product, i.e. a subscription.
|
|
39
18
|
*/
|
|
@@ -66,50 +45,6 @@ export type ProductPriceRecurringFree = {
|
|
|
66
45
|
recurringInterval: SubscriptionRecurringInterval;
|
|
67
46
|
};
|
|
68
47
|
|
|
69
|
-
/** @internal */
|
|
70
|
-
export const ProductPriceRecurringFreeAmountType$inboundSchema: z.ZodNativeEnum<
|
|
71
|
-
typeof ProductPriceRecurringFreeAmountType
|
|
72
|
-
> = z.nativeEnum(ProductPriceRecurringFreeAmountType);
|
|
73
|
-
|
|
74
|
-
/** @internal */
|
|
75
|
-
export const ProductPriceRecurringFreeAmountType$outboundSchema:
|
|
76
|
-
z.ZodNativeEnum<typeof ProductPriceRecurringFreeAmountType> =
|
|
77
|
-
ProductPriceRecurringFreeAmountType$inboundSchema;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* @internal
|
|
81
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
82
|
-
*/
|
|
83
|
-
export namespace ProductPriceRecurringFreeAmountType$ {
|
|
84
|
-
/** @deprecated use `ProductPriceRecurringFreeAmountType$inboundSchema` instead. */
|
|
85
|
-
export const inboundSchema =
|
|
86
|
-
ProductPriceRecurringFreeAmountType$inboundSchema;
|
|
87
|
-
/** @deprecated use `ProductPriceRecurringFreeAmountType$outboundSchema` instead. */
|
|
88
|
-
export const outboundSchema =
|
|
89
|
-
ProductPriceRecurringFreeAmountType$outboundSchema;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/** @internal */
|
|
93
|
-
export const ProductPriceRecurringFreeType$inboundSchema: z.ZodNativeEnum<
|
|
94
|
-
typeof ProductPriceRecurringFreeType
|
|
95
|
-
> = z.nativeEnum(ProductPriceRecurringFreeType);
|
|
96
|
-
|
|
97
|
-
/** @internal */
|
|
98
|
-
export const ProductPriceRecurringFreeType$outboundSchema: z.ZodNativeEnum<
|
|
99
|
-
typeof ProductPriceRecurringFreeType
|
|
100
|
-
> = ProductPriceRecurringFreeType$inboundSchema;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* @internal
|
|
104
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
105
|
-
*/
|
|
106
|
-
export namespace ProductPriceRecurringFreeType$ {
|
|
107
|
-
/** @deprecated use `ProductPriceRecurringFreeType$inboundSchema` instead. */
|
|
108
|
-
export const inboundSchema = ProductPriceRecurringFreeType$inboundSchema;
|
|
109
|
-
/** @deprecated use `ProductPriceRecurringFreeType$outboundSchema` instead. */
|
|
110
|
-
export const outboundSchema = ProductPriceRecurringFreeType$outboundSchema;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
48
|
/** @internal */
|
|
114
49
|
export const ProductPriceRecurringFree$inboundSchema: z.ZodType<
|
|
115
50
|
ProductPriceRecurringFree,
|
|
@@ -158,10 +93,10 @@ export const ProductPriceRecurringFree$outboundSchema: z.ZodType<
|
|
|
158
93
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
159
94
|
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
160
95
|
id: z.string(),
|
|
161
|
-
amountType: z.literal("free").default("free"),
|
|
96
|
+
amountType: z.literal("free").default("free" as const),
|
|
162
97
|
isArchived: z.boolean(),
|
|
163
98
|
productId: z.string(),
|
|
164
|
-
type: z.literal("recurring").default("recurring"),
|
|
99
|
+
type: z.literal("recurring").default("recurring" as const),
|
|
165
100
|
recurringInterval: SubscriptionRecurringInterval$outboundSchema,
|
|
166
101
|
}).transform((v) => {
|
|
167
102
|
return remap$(v, {
|
|
@@ -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 {
|
|
@@ -14,20 +13,6 @@ import {
|
|
|
14
13
|
SubscriptionRecurringInterval$outboundSchema,
|
|
15
14
|
} from "./subscriptionrecurringinterval.js";
|
|
16
15
|
|
|
17
|
-
export const ProductPriceRecurringFreeCreateType = {
|
|
18
|
-
Recurring: "recurring",
|
|
19
|
-
} as const;
|
|
20
|
-
export type ProductPriceRecurringFreeCreateType = ClosedEnum<
|
|
21
|
-
typeof ProductPriceRecurringFreeCreateType
|
|
22
|
-
>;
|
|
23
|
-
|
|
24
|
-
export const ProductPriceRecurringFreeCreateAmountType = {
|
|
25
|
-
Free: "free",
|
|
26
|
-
} as const;
|
|
27
|
-
export type ProductPriceRecurringFreeCreateAmountType = ClosedEnum<
|
|
28
|
-
typeof ProductPriceRecurringFreeCreateAmountType
|
|
29
|
-
>;
|
|
30
|
-
|
|
31
16
|
/**
|
|
32
17
|
* Schema to create a free recurring product price, i.e. a subscription.
|
|
33
18
|
*/
|
|
@@ -37,52 +22,6 @@ export type ProductPriceRecurringFreeCreate = {
|
|
|
37
22
|
recurringInterval: SubscriptionRecurringInterval;
|
|
38
23
|
};
|
|
39
24
|
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const ProductPriceRecurringFreeCreateType$inboundSchema: z.ZodNativeEnum<
|
|
42
|
-
typeof ProductPriceRecurringFreeCreateType
|
|
43
|
-
> = z.nativeEnum(ProductPriceRecurringFreeCreateType);
|
|
44
|
-
|
|
45
|
-
/** @internal */
|
|
46
|
-
export const ProductPriceRecurringFreeCreateType$outboundSchema:
|
|
47
|
-
z.ZodNativeEnum<typeof ProductPriceRecurringFreeCreateType> =
|
|
48
|
-
ProductPriceRecurringFreeCreateType$inboundSchema;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
-
*/
|
|
54
|
-
export namespace ProductPriceRecurringFreeCreateType$ {
|
|
55
|
-
/** @deprecated use `ProductPriceRecurringFreeCreateType$inboundSchema` instead. */
|
|
56
|
-
export const inboundSchema =
|
|
57
|
-
ProductPriceRecurringFreeCreateType$inboundSchema;
|
|
58
|
-
/** @deprecated use `ProductPriceRecurringFreeCreateType$outboundSchema` instead. */
|
|
59
|
-
export const outboundSchema =
|
|
60
|
-
ProductPriceRecurringFreeCreateType$outboundSchema;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/** @internal */
|
|
64
|
-
export const ProductPriceRecurringFreeCreateAmountType$inboundSchema:
|
|
65
|
-
z.ZodNativeEnum<typeof ProductPriceRecurringFreeCreateAmountType> = z
|
|
66
|
-
.nativeEnum(ProductPriceRecurringFreeCreateAmountType);
|
|
67
|
-
|
|
68
|
-
/** @internal */
|
|
69
|
-
export const ProductPriceRecurringFreeCreateAmountType$outboundSchema:
|
|
70
|
-
z.ZodNativeEnum<typeof ProductPriceRecurringFreeCreateAmountType> =
|
|
71
|
-
ProductPriceRecurringFreeCreateAmountType$inboundSchema;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* @internal
|
|
75
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
76
|
-
*/
|
|
77
|
-
export namespace ProductPriceRecurringFreeCreateAmountType$ {
|
|
78
|
-
/** @deprecated use `ProductPriceRecurringFreeCreateAmountType$inboundSchema` instead. */
|
|
79
|
-
export const inboundSchema =
|
|
80
|
-
ProductPriceRecurringFreeCreateAmountType$inboundSchema;
|
|
81
|
-
/** @deprecated use `ProductPriceRecurringFreeCreateAmountType$outboundSchema` instead. */
|
|
82
|
-
export const outboundSchema =
|
|
83
|
-
ProductPriceRecurringFreeCreateAmountType$outboundSchema;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
25
|
/** @internal */
|
|
87
26
|
export const ProductPriceRecurringFreeCreate$inboundSchema: z.ZodType<
|
|
88
27
|
ProductPriceRecurringFreeCreate,
|
|
@@ -112,8 +51,8 @@ export const ProductPriceRecurringFreeCreate$outboundSchema: z.ZodType<
|
|
|
112
51
|
z.ZodTypeDef,
|
|
113
52
|
ProductPriceRecurringFreeCreate
|
|
114
53
|
> = z.object({
|
|
115
|
-
type: z.literal("recurring").default("recurring"),
|
|
116
|
-
amountType: z.literal("free").default("free"),
|
|
54
|
+
type: z.literal("recurring").default("recurring" as const),
|
|
55
|
+
amountType: z.literal("free").default("free" as const),
|
|
117
56
|
recurringInterval: SubscriptionRecurringInterval$outboundSchema,
|
|
118
57
|
}).transform((v) => {
|
|
119
58
|
return remap$(v, {
|
|
@@ -19,6 +19,11 @@ import {
|
|
|
19
19
|
Organization$Outbound,
|
|
20
20
|
Organization$outboundSchema,
|
|
21
21
|
} from "./organization.js";
|
|
22
|
+
import {
|
|
23
|
+
Platforms,
|
|
24
|
+
Platforms$inboundSchema,
|
|
25
|
+
Platforms$outboundSchema,
|
|
26
|
+
} from "./platforms.js";
|
|
22
27
|
import {
|
|
23
28
|
RepositoryProfileSettings,
|
|
24
29
|
RepositoryProfileSettings$inboundSchema,
|
|
@@ -28,7 +33,7 @@ import {
|
|
|
28
33
|
|
|
29
34
|
export type Repository = {
|
|
30
35
|
id: string;
|
|
31
|
-
platform
|
|
36
|
+
platform: Platforms;
|
|
32
37
|
isPrivate: boolean;
|
|
33
38
|
name: string;
|
|
34
39
|
description: string | null;
|
|
@@ -50,7 +55,7 @@ export const Repository$inboundSchema: z.ZodType<
|
|
|
50
55
|
unknown
|
|
51
56
|
> = z.object({
|
|
52
57
|
id: z.string(),
|
|
53
|
-
platform:
|
|
58
|
+
platform: Platforms$inboundSchema,
|
|
54
59
|
is_private: z.boolean(),
|
|
55
60
|
name: z.string(),
|
|
56
61
|
description: z.nullable(z.string()),
|
|
@@ -71,7 +76,7 @@ export const Repository$inboundSchema: z.ZodType<
|
|
|
71
76
|
/** @internal */
|
|
72
77
|
export type Repository$Outbound = {
|
|
73
78
|
id: string;
|
|
74
|
-
platform:
|
|
79
|
+
platform: string;
|
|
75
80
|
is_private: boolean;
|
|
76
81
|
name: string;
|
|
77
82
|
description: string | null;
|
|
@@ -90,7 +95,7 @@ export const Repository$outboundSchema: z.ZodType<
|
|
|
90
95
|
Repository
|
|
91
96
|
> = z.object({
|
|
92
97
|
id: z.string(),
|
|
93
|
-
platform:
|
|
98
|
+
platform: Platforms$outboundSchema,
|
|
94
99
|
isPrivate: z.boolean(),
|
|
95
100
|
name: z.string(),
|
|
96
101
|
description: z.nullable(z.string()),
|
|
@@ -7,6 +7,11 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
CustomerCancellationReason,
|
|
12
|
+
CustomerCancellationReason$inboundSchema,
|
|
13
|
+
CustomerCancellationReason$outboundSchema,
|
|
14
|
+
} from "./customercancellationreason.js";
|
|
10
15
|
import {
|
|
11
16
|
DiscountFixedOnceForeverDurationBase,
|
|
12
17
|
DiscountFixedOnceForeverDurationBase$inboundSchema,
|
|
@@ -99,13 +104,17 @@ export type Subscription = {
|
|
|
99
104
|
currentPeriodStart: Date;
|
|
100
105
|
currentPeriodEnd: Date | null;
|
|
101
106
|
cancelAtPeriodEnd: boolean;
|
|
107
|
+
canceledAt: Date | null;
|
|
102
108
|
startedAt: Date | null;
|
|
109
|
+
endsAt: Date | null;
|
|
103
110
|
endedAt: Date | null;
|
|
104
111
|
customerId: string;
|
|
105
112
|
productId: string;
|
|
106
113
|
priceId: string;
|
|
107
114
|
discountId: string | null;
|
|
108
115
|
checkoutId: string | null;
|
|
116
|
+
customerCancellationReason: CustomerCancellationReason | null;
|
|
117
|
+
customerCancellationComment: string | null;
|
|
109
118
|
metadata: { [k: string]: string | number | boolean };
|
|
110
119
|
/**
|
|
111
120
|
* Key-value object storing custom field values.
|
|
@@ -308,9 +317,15 @@ export const Subscription$inboundSchema: z.ZodType<
|
|
|
308
317
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
309
318
|
),
|
|
310
319
|
cancel_at_period_end: z.boolean(),
|
|
320
|
+
canceled_at: z.nullable(
|
|
321
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
322
|
+
),
|
|
311
323
|
started_at: z.nullable(
|
|
312
324
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
313
325
|
),
|
|
326
|
+
ends_at: z.nullable(
|
|
327
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
328
|
+
),
|
|
314
329
|
ended_at: z.nullable(
|
|
315
330
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
316
331
|
),
|
|
@@ -319,6 +334,10 @@ export const Subscription$inboundSchema: z.ZodType<
|
|
|
319
334
|
price_id: z.string(),
|
|
320
335
|
discount_id: z.nullable(z.string()),
|
|
321
336
|
checkout_id: z.nullable(z.string()),
|
|
337
|
+
customer_cancellation_reason: z.nullable(
|
|
338
|
+
CustomerCancellationReason$inboundSchema,
|
|
339
|
+
),
|
|
340
|
+
customer_cancellation_comment: z.nullable(z.string()),
|
|
322
341
|
metadata: z.record(z.union([z.string(), z.number().int(), z.boolean()])),
|
|
323
342
|
custom_field_data: z.lazy(() => SubscriptionCustomFieldData$inboundSchema)
|
|
324
343
|
.optional(),
|
|
@@ -343,13 +362,17 @@ export const Subscription$inboundSchema: z.ZodType<
|
|
|
343
362
|
"current_period_start": "currentPeriodStart",
|
|
344
363
|
"current_period_end": "currentPeriodEnd",
|
|
345
364
|
"cancel_at_period_end": "cancelAtPeriodEnd",
|
|
365
|
+
"canceled_at": "canceledAt",
|
|
346
366
|
"started_at": "startedAt",
|
|
367
|
+
"ends_at": "endsAt",
|
|
347
368
|
"ended_at": "endedAt",
|
|
348
369
|
"customer_id": "customerId",
|
|
349
370
|
"product_id": "productId",
|
|
350
371
|
"price_id": "priceId",
|
|
351
372
|
"discount_id": "discountId",
|
|
352
373
|
"checkout_id": "checkoutId",
|
|
374
|
+
"customer_cancellation_reason": "customerCancellationReason",
|
|
375
|
+
"customer_cancellation_comment": "customerCancellationComment",
|
|
353
376
|
"custom_field_data": "customFieldData",
|
|
354
377
|
"user_id": "userId",
|
|
355
378
|
});
|
|
@@ -367,13 +390,17 @@ export type Subscription$Outbound = {
|
|
|
367
390
|
current_period_start: string;
|
|
368
391
|
current_period_end: string | null;
|
|
369
392
|
cancel_at_period_end: boolean;
|
|
393
|
+
canceled_at: string | null;
|
|
370
394
|
started_at: string | null;
|
|
395
|
+
ends_at: string | null;
|
|
371
396
|
ended_at: string | null;
|
|
372
397
|
customer_id: string;
|
|
373
398
|
product_id: string;
|
|
374
399
|
price_id: string;
|
|
375
400
|
discount_id: string | null;
|
|
376
401
|
checkout_id: string | null;
|
|
402
|
+
customer_cancellation_reason: string | null;
|
|
403
|
+
customer_cancellation_comment: string | null;
|
|
377
404
|
metadata: { [k: string]: string | number | boolean };
|
|
378
405
|
custom_field_data?: SubscriptionCustomFieldData$Outbound | undefined;
|
|
379
406
|
customer: SubscriptionCustomer$Outbound;
|
|
@@ -405,13 +432,19 @@ export const Subscription$outboundSchema: z.ZodType<
|
|
|
405
432
|
currentPeriodStart: z.date().transform(v => v.toISOString()),
|
|
406
433
|
currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())),
|
|
407
434
|
cancelAtPeriodEnd: z.boolean(),
|
|
435
|
+
canceledAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
408
436
|
startedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
437
|
+
endsAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
409
438
|
endedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
410
439
|
customerId: z.string(),
|
|
411
440
|
productId: z.string(),
|
|
412
441
|
priceId: z.string(),
|
|
413
442
|
discountId: z.nullable(z.string()),
|
|
414
443
|
checkoutId: z.nullable(z.string()),
|
|
444
|
+
customerCancellationReason: z.nullable(
|
|
445
|
+
CustomerCancellationReason$outboundSchema,
|
|
446
|
+
),
|
|
447
|
+
customerCancellationComment: z.nullable(z.string()),
|
|
415
448
|
metadata: z.record(z.union([z.string(), z.number().int(), z.boolean()])),
|
|
416
449
|
customFieldData: z.lazy(() => SubscriptionCustomFieldData$outboundSchema)
|
|
417
450
|
.optional(),
|
|
@@ -436,13 +469,17 @@ export const Subscription$outboundSchema: z.ZodType<
|
|
|
436
469
|
currentPeriodStart: "current_period_start",
|
|
437
470
|
currentPeriodEnd: "current_period_end",
|
|
438
471
|
cancelAtPeriodEnd: "cancel_at_period_end",
|
|
472
|
+
canceledAt: "canceled_at",
|
|
439
473
|
startedAt: "started_at",
|
|
474
|
+
endsAt: "ends_at",
|
|
440
475
|
endedAt: "ended_at",
|
|
441
476
|
customerId: "customer_id",
|
|
442
477
|
productId: "product_id",
|
|
443
478
|
priceId: "price_id",
|
|
444
479
|
discountId: "discount_id",
|
|
445
480
|
checkoutId: "checkout_id",
|
|
481
|
+
customerCancellationReason: "customer_cancellation_reason",
|
|
482
|
+
customerCancellationComment: "customer_cancellation_comment",
|
|
446
483
|
customFieldData: "custom_field_data",
|
|
447
484
|
userId: "user_id",
|
|
448
485
|
});
|