@polar-sh/sdk 0.8.2 → 0.10.0
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 +7 -50
- package/docs/sdks/benefits/README.md +4 -13
- package/docs/sdks/clients/README.md +4 -4
- package/docs/sdks/files/README.md +9 -9
- package/docs/sdks/oauth2/README.md +2 -2
- package/docs/sdks/polarsubscriptions/README.md +5 -89
- package/docs/sdks/products/README.md +2 -5
- package/docs/sdks/subscriptions/README.md +0 -164
- package/funcs/advertisementsGet.d.ts +1 -1
- package/funcs/advertisementsGet.d.ts.map +1 -1
- package/funcs/advertisementsGet.js +32 -32
- package/funcs/advertisementsGet.js.map +1 -1
- package/funcs/advertisementsList.d.ts +1 -1
- package/funcs/advertisementsList.d.ts.map +1 -1
- package/funcs/advertisementsList.js +42 -42
- package/funcs/advertisementsList.js.map +1 -1
- package/funcs/articlesCreate.d.ts +1 -1
- package/funcs/articlesCreate.d.ts.map +1 -1
- package/funcs/articlesCreate.js +30 -30
- package/funcs/articlesCreate.js.map +1 -1
- package/funcs/articlesDelete.d.ts +1 -1
- package/funcs/articlesDelete.d.ts.map +1 -1
- package/funcs/articlesDelete.js +32 -32
- package/funcs/articlesDelete.js.map +1 -1
- package/funcs/articlesGet.d.ts +1 -1
- package/funcs/articlesGet.d.ts.map +1 -1
- package/funcs/articlesGet.js +32 -32
- package/funcs/articlesGet.js.map +1 -1
- package/funcs/articlesList.d.ts +1 -1
- package/funcs/articlesList.d.ts.map +1 -1
- package/funcs/articlesList.js +46 -46
- package/funcs/articlesList.js.map +1 -1
- package/funcs/articlesPreview.d.ts +1 -1
- package/funcs/articlesPreview.d.ts.map +1 -1
- package/funcs/articlesPreview.js +32 -32
- package/funcs/articlesPreview.js.map +1 -1
- package/funcs/articlesReceivers.d.ts +1 -1
- package/funcs/articlesReceivers.d.ts.map +1 -1
- package/funcs/articlesReceivers.js +32 -32
- package/funcs/articlesReceivers.js.map +1 -1
- package/funcs/articlesSend.d.ts +1 -1
- package/funcs/articlesSend.d.ts.map +1 -1
- package/funcs/articlesSend.js +32 -32
- package/funcs/articlesSend.js.map +1 -1
- package/funcs/articlesUpdate.d.ts +1 -1
- package/funcs/articlesUpdate.d.ts.map +1 -1
- package/funcs/articlesUpdate.js +32 -32
- package/funcs/articlesUpdate.js.map +1 -1
- package/funcs/benefitsCreate.d.ts +1 -1
- package/funcs/benefitsCreate.d.ts.map +1 -1
- package/funcs/benefitsCreate.js +30 -30
- package/funcs/benefitsCreate.js.map +1 -1
- package/funcs/benefitsDelete.d.ts +1 -1
- package/funcs/benefitsDelete.d.ts.map +1 -1
- package/funcs/benefitsDelete.js +32 -32
- package/funcs/benefitsDelete.js.map +1 -1
- package/funcs/benefitsGet.d.ts +1 -1
- package/funcs/benefitsGet.d.ts.map +1 -1
- package/funcs/benefitsGet.js +32 -32
- package/funcs/benefitsGet.js.map +1 -1
- package/funcs/benefitsGrants.d.ts +1 -1
- package/funcs/benefitsGrants.d.ts.map +1 -1
- package/funcs/benefitsGrants.js +45 -45
- package/funcs/benefitsGrants.js.map +1 -1
- package/funcs/benefitsList.d.ts +1 -1
- package/funcs/benefitsList.d.ts.map +1 -1
- package/funcs/benefitsList.js +42 -42
- package/funcs/benefitsList.js.map +1 -1
- package/funcs/benefitsUpdate.d.ts +1 -1
- package/funcs/benefitsUpdate.d.ts.map +1 -1
- package/funcs/benefitsUpdate.js +32 -32
- package/funcs/benefitsUpdate.js.map +1 -1
- package/funcs/checkoutsCreate.d.ts +1 -1
- package/funcs/checkoutsCreate.d.ts.map +1 -1
- package/funcs/checkoutsCreate.js +30 -30
- package/funcs/checkoutsCreate.js.map +1 -1
- package/funcs/checkoutsGet.d.ts +1 -1
- package/funcs/checkoutsGet.d.ts.map +1 -1
- package/funcs/checkoutsGet.js +32 -32
- package/funcs/checkoutsGet.js.map +1 -1
- package/funcs/externalOrganizationsList.d.ts +1 -1
- package/funcs/externalOrganizationsList.d.ts.map +1 -1
- package/funcs/externalOrganizationsList.js +44 -44
- package/funcs/externalOrganizationsList.js.map +1 -1
- package/funcs/filesCreate.d.ts +1 -1
- package/funcs/filesCreate.d.ts.map +1 -1
- package/funcs/filesCreate.js +30 -30
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/filesDelete.d.ts +1 -1
- package/funcs/filesDelete.d.ts.map +1 -1
- package/funcs/filesDelete.js +32 -32
- package/funcs/filesDelete.js.map +1 -1
- package/funcs/filesList.d.ts +1 -1
- package/funcs/filesList.d.ts.map +1 -1
- package/funcs/filesList.js +41 -41
- package/funcs/filesList.js.map +1 -1
- package/funcs/filesUpdate.d.ts +1 -1
- package/funcs/filesUpdate.d.ts.map +1 -1
- package/funcs/filesUpdate.js +32 -32
- package/funcs/filesUpdate.js.map +1 -1
- package/funcs/filesUploaded.d.ts +1 -1
- package/funcs/filesUploaded.d.ts.map +1 -1
- package/funcs/filesUploaded.js +32 -32
- package/funcs/filesUploaded.js.map +1 -1
- package/funcs/licenseKeysGet.d.ts +1 -1
- package/funcs/licenseKeysGet.d.ts.map +1 -1
- package/funcs/licenseKeysGet.js +32 -32
- package/funcs/licenseKeysGet.js.map +1 -1
- package/funcs/licenseKeysGetActivation.d.ts +1 -1
- package/funcs/licenseKeysGetActivation.d.ts.map +1 -1
- package/funcs/licenseKeysGetActivation.js +33 -33
- package/funcs/licenseKeysGetActivation.js.map +1 -1
- package/funcs/licenseKeysList.d.ts +1 -1
- package/funcs/licenseKeysList.d.ts.map +1 -1
- package/funcs/licenseKeysList.js +41 -41
- package/funcs/licenseKeysList.js.map +1 -1
- package/funcs/licenseKeysUpdate.d.ts +1 -1
- package/funcs/licenseKeysUpdate.d.ts.map +1 -1
- package/funcs/licenseKeysUpdate.js +32 -34
- package/funcs/licenseKeysUpdate.js.map +1 -1
- package/funcs/metricsGet.d.ts +1 -1
- package/funcs/metricsGet.d.ts.map +1 -1
- package/funcs/metricsGet.js +38 -38
- package/funcs/metricsGet.js.map +1 -1
- package/funcs/metricsLimits.d.ts +1 -1
- package/funcs/metricsLimits.d.ts.map +1 -1
- package/funcs/metricsLimits.js +20 -20
- package/funcs/metricsLimits.js.map +1 -1
- package/funcs/oauth2ClientsCreate.d.ts +1 -1
- package/funcs/oauth2ClientsCreate.d.ts.map +1 -1
- package/funcs/oauth2ClientsCreate.js +30 -30
- package/funcs/oauth2ClientsCreate.js.map +1 -1
- package/funcs/oauth2ClientsDelete.d.ts +1 -1
- package/funcs/oauth2ClientsDelete.d.ts.map +1 -1
- package/funcs/oauth2ClientsDelete.js +32 -32
- package/funcs/oauth2ClientsDelete.js.map +1 -1
- package/funcs/oauth2ClientsGet.d.ts +1 -1
- package/funcs/oauth2ClientsGet.d.ts.map +1 -1
- package/funcs/oauth2ClientsGet.js +32 -32
- package/funcs/oauth2ClientsGet.js.map +1 -1
- package/funcs/oauth2ClientsList.d.ts +1 -1
- package/funcs/oauth2ClientsList.d.ts.map +1 -1
- package/funcs/oauth2ClientsList.js +40 -40
- package/funcs/oauth2ClientsList.js.map +1 -1
- package/funcs/oauth2ClientsUpdate.d.ts +1 -1
- package/funcs/oauth2ClientsUpdate.d.ts.map +1 -1
- package/funcs/oauth2ClientsUpdate.js +32 -32
- package/funcs/oauth2ClientsUpdate.js.map +1 -1
- package/funcs/oauth2Introspect.d.ts +1 -1
- package/funcs/oauth2Introspect.d.ts.map +1 -1
- package/funcs/oauth2Introspect.js +29 -29
- package/funcs/oauth2Introspect.js.map +1 -1
- package/funcs/oauth2Revoke.d.ts +1 -1
- package/funcs/oauth2Revoke.d.ts.map +1 -1
- package/funcs/oauth2Revoke.js +28 -28
- package/funcs/oauth2Revoke.js.map +1 -1
- package/funcs/oauth2Token.d.ts +1 -1
- package/funcs/oauth2Token.d.ts.map +1 -1
- package/funcs/oauth2Token.js +28 -28
- package/funcs/oauth2Token.js.map +1 -1
- package/funcs/oauth2Userinfo.d.ts +1 -1
- package/funcs/oauth2Userinfo.d.ts.map +1 -1
- package/funcs/oauth2Userinfo.js +20 -20
- package/funcs/oauth2Userinfo.js.map +1 -1
- package/funcs/ordersGet.d.ts +1 -1
- package/funcs/ordersGet.d.ts.map +1 -1
- package/funcs/ordersGet.js +32 -32
- package/funcs/ordersGet.js.map +1 -1
- package/funcs/ordersInvoice.d.ts +1 -1
- package/funcs/ordersInvoice.d.ts.map +1 -1
- package/funcs/ordersInvoice.js +32 -32
- package/funcs/ordersInvoice.js.map +1 -1
- package/funcs/ordersList.d.ts +1 -1
- package/funcs/ordersList.d.ts.map +1 -1
- package/funcs/ordersList.js +44 -46
- package/funcs/ordersList.js.map +1 -1
- package/funcs/organizationsCreate.d.ts +1 -1
- package/funcs/organizationsCreate.d.ts.map +1 -1
- package/funcs/organizationsCreate.js +30 -30
- package/funcs/organizationsCreate.js.map +1 -1
- package/funcs/organizationsGet.d.ts +1 -1
- package/funcs/organizationsGet.d.ts.map +1 -1
- package/funcs/organizationsGet.js +32 -32
- package/funcs/organizationsGet.js.map +1 -1
- package/funcs/organizationsList.d.ts +1 -1
- package/funcs/organizationsList.d.ts.map +1 -1
- package/funcs/organizationsList.js +43 -43
- package/funcs/organizationsList.js.map +1 -1
- package/funcs/organizationsUpdate.d.ts +1 -1
- package/funcs/organizationsUpdate.d.ts.map +1 -1
- package/funcs/organizationsUpdate.js +32 -32
- package/funcs/organizationsUpdate.js.map +1 -1
- package/funcs/productsCreate.d.ts +1 -1
- package/funcs/productsCreate.d.ts.map +1 -1
- package/funcs/productsCreate.js +30 -30
- package/funcs/productsCreate.js.map +1 -1
- package/funcs/productsGet.d.ts +1 -1
- package/funcs/productsGet.d.ts.map +1 -1
- package/funcs/productsGet.js +32 -32
- package/funcs/productsGet.js.map +1 -1
- package/funcs/productsList.d.ts +1 -1
- package/funcs/productsList.d.ts.map +1 -1
- package/funcs/productsList.js +44 -45
- package/funcs/productsList.js.map +1 -1
- package/funcs/productsUpdate.d.ts +1 -1
- package/funcs/productsUpdate.d.ts.map +1 -1
- package/funcs/productsUpdate.js +32 -32
- package/funcs/productsUpdate.js.map +1 -1
- package/funcs/productsUpdateBenefits.d.ts +1 -1
- package/funcs/productsUpdateBenefits.d.ts.map +1 -1
- package/funcs/productsUpdateBenefits.js +32 -32
- package/funcs/productsUpdateBenefits.js.map +1 -1
- package/funcs/repositoriesGet.d.ts +1 -1
- package/funcs/repositoriesGet.d.ts.map +1 -1
- package/funcs/repositoriesGet.js +32 -32
- package/funcs/repositoriesGet.js.map +1 -1
- package/funcs/repositoriesList.d.ts +1 -1
- package/funcs/repositoriesList.d.ts.map +1 -1
- package/funcs/repositoriesList.js +46 -46
- package/funcs/repositoriesList.js.map +1 -1
- package/funcs/repositoriesUpdate.d.ts +1 -1
- package/funcs/repositoriesUpdate.d.ts.map +1 -1
- package/funcs/repositoriesUpdate.js +32 -34
- package/funcs/repositoriesUpdate.js.map +1 -1
- package/funcs/subscriptionsExport.d.ts +1 -1
- package/funcs/subscriptionsExport.d.ts.map +1 -1
- package/funcs/subscriptionsExport.js +33 -33
- package/funcs/subscriptionsExport.js.map +1 -1
- package/funcs/subscriptionsList.d.ts +1 -1
- package/funcs/subscriptionsList.d.ts.map +1 -1
- package/funcs/subscriptionsList.js +44 -45
- package/funcs/subscriptionsList.js.map +1 -1
- package/funcs/usersAdvertisementsCreate.d.ts +1 -1
- package/funcs/usersAdvertisementsCreate.d.ts.map +1 -1
- package/funcs/usersAdvertisementsCreate.js +30 -30
- package/funcs/usersAdvertisementsCreate.js.map +1 -1
- package/funcs/usersAdvertisementsDelete.d.ts +1 -1
- package/funcs/usersAdvertisementsDelete.d.ts.map +1 -1
- package/funcs/usersAdvertisementsDelete.js +32 -32
- package/funcs/usersAdvertisementsDelete.js.map +1 -1
- package/funcs/usersAdvertisementsEnable.d.ts +1 -1
- package/funcs/usersAdvertisementsEnable.d.ts.map +1 -1
- package/funcs/usersAdvertisementsEnable.js +32 -32
- package/funcs/usersAdvertisementsEnable.js.map +1 -1
- package/funcs/usersAdvertisementsGet.d.ts +1 -1
- package/funcs/usersAdvertisementsGet.d.ts.map +1 -1
- package/funcs/usersAdvertisementsGet.js +32 -32
- package/funcs/usersAdvertisementsGet.js.map +1 -1
- package/funcs/usersAdvertisementsList.d.ts +1 -1
- package/funcs/usersAdvertisementsList.d.ts.map +1 -1
- package/funcs/usersAdvertisementsList.js +41 -41
- package/funcs/usersAdvertisementsList.js.map +1 -1
- package/funcs/usersAdvertisementsUpdate.d.ts +1 -1
- package/funcs/usersAdvertisementsUpdate.d.ts.map +1 -1
- package/funcs/usersAdvertisementsUpdate.js +32 -32
- package/funcs/usersAdvertisementsUpdate.js.map +1 -1
- package/funcs/usersBenefitsGet.d.ts +1 -1
- package/funcs/usersBenefitsGet.d.ts.map +1 -1
- package/funcs/usersBenefitsGet.js +32 -32
- package/funcs/usersBenefitsGet.js.map +1 -1
- package/funcs/usersBenefitsList.d.ts +1 -1
- package/funcs/usersBenefitsList.d.ts.map +1 -1
- package/funcs/usersBenefitsList.js +45 -45
- package/funcs/usersBenefitsList.js.map +1 -1
- package/funcs/usersDownloadablesGet.d.ts +1 -1
- package/funcs/usersDownloadablesGet.d.ts.map +1 -1
- package/funcs/usersDownloadablesGet.js +32 -32
- package/funcs/usersDownloadablesGet.js.map +1 -1
- package/funcs/usersDownloadablesList.d.ts +1 -1
- package/funcs/usersDownloadablesList.d.ts.map +1 -1
- package/funcs/usersDownloadablesList.js +42 -42
- package/funcs/usersDownloadablesList.js.map +1 -1
- package/funcs/usersLicenseKeysActivate.d.ts +1 -1
- package/funcs/usersLicenseKeysActivate.d.ts.map +1 -1
- package/funcs/usersLicenseKeysActivate.js +30 -30
- package/funcs/usersLicenseKeysActivate.js.map +1 -1
- package/funcs/usersLicenseKeysDeactivate.d.ts +1 -1
- package/funcs/usersLicenseKeysDeactivate.d.ts.map +1 -1
- package/funcs/usersLicenseKeysDeactivate.js +30 -30
- package/funcs/usersLicenseKeysDeactivate.js.map +1 -1
- package/funcs/usersLicenseKeysGet.d.ts +1 -1
- package/funcs/usersLicenseKeysGet.d.ts.map +1 -1
- package/funcs/usersLicenseKeysGet.js +32 -32
- package/funcs/usersLicenseKeysGet.js.map +1 -1
- package/funcs/usersLicenseKeysList.d.ts +1 -1
- package/funcs/usersLicenseKeysList.d.ts.map +1 -1
- package/funcs/usersLicenseKeysList.js +42 -42
- package/funcs/usersLicenseKeysList.js.map +1 -1
- package/funcs/usersLicenseKeysValidate.d.ts +1 -1
- package/funcs/usersLicenseKeysValidate.d.ts.map +1 -1
- package/funcs/usersLicenseKeysValidate.js +30 -30
- package/funcs/usersLicenseKeysValidate.js.map +1 -1
- package/funcs/usersOrdersGet.d.ts +1 -1
- package/funcs/usersOrdersGet.d.ts.map +1 -1
- package/funcs/usersOrdersGet.js +32 -32
- package/funcs/usersOrdersGet.js.map +1 -1
- package/funcs/usersOrdersInvoice.d.ts +1 -1
- package/funcs/usersOrdersInvoice.d.ts.map +1 -1
- package/funcs/usersOrdersInvoice.js +32 -32
- package/funcs/usersOrdersInvoice.js.map +1 -1
- package/funcs/usersOrdersList.d.ts +1 -1
- package/funcs/usersOrdersList.d.ts.map +1 -1
- package/funcs/usersOrdersList.js +46 -46
- package/funcs/usersOrdersList.js.map +1 -1
- package/funcs/usersSubscriptionsCancel.d.ts +1 -1
- package/funcs/usersSubscriptionsCancel.d.ts.map +1 -1
- package/funcs/usersSubscriptionsCancel.js +32 -32
- package/funcs/usersSubscriptionsCancel.js.map +1 -1
- package/funcs/usersSubscriptionsGet.d.ts +1 -1
- package/funcs/usersSubscriptionsGet.d.ts.map +1 -1
- package/funcs/usersSubscriptionsGet.js +32 -32
- package/funcs/usersSubscriptionsGet.js.map +1 -1
- package/funcs/usersSubscriptionsList.d.ts +1 -1
- package/funcs/usersSubscriptionsList.d.ts.map +1 -1
- package/funcs/usersSubscriptionsList.js +45 -45
- package/funcs/usersSubscriptionsList.js.map +1 -1
- package/funcs/usersSubscriptionsUpdate.d.ts +1 -1
- package/funcs/usersSubscriptionsUpdate.d.ts.map +1 -1
- package/funcs/usersSubscriptionsUpdate.js +33 -33
- package/funcs/usersSubscriptionsUpdate.js.map +1 -1
- package/lib/config.d.ts +16 -5
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +18 -12
- package/lib/config.js.map +1 -1
- package/lib/sdks.d.ts +5 -8
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +36 -20
- package/lib/sdks.js.map +1 -1
- package/models/components/index.d.ts +14 -9
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +14 -9
- package/models/components/index.js.map +1 -1
- package/models/components/orderproduct.d.ts +0 -11
- package/models/components/orderproduct.d.ts.map +1 -1
- package/models/components/orderproduct.js +0 -7
- package/models/components/orderproduct.js.map +1 -1
- package/models/components/ordersubscription.d.ts +9 -2
- package/models/components/ordersubscription.d.ts.map +1 -1
- package/models/components/ordersubscription.js +11 -2
- package/models/components/ordersubscription.js.map +1 -1
- package/models/components/organizationfeaturesettings.d.ts +0 -5
- package/models/components/organizationfeaturesettings.d.ts.map +1 -1
- package/models/components/organizationfeaturesettings.js +0 -4
- package/models/components/organizationfeaturesettings.js.map +1 -1
- package/models/components/productinput.d.ts +0 -11
- package/models/components/productinput.d.ts.map +1 -1
- package/models/components/productinput.js +0 -7
- package/models/components/productinput.js.map +1 -1
- package/models/components/productonetimecreate.d.ts +24 -3
- package/models/components/productonetimecreate.d.ts.map +1 -1
- package/models/components/productonetimecreate.js +38 -4
- package/models/components/productonetimecreate.js.map +1 -1
- package/models/components/productoutput.d.ts +0 -11
- package/models/components/productoutput.d.ts.map +1 -1
- package/models/components/productoutput.js +0 -7
- package/models/components/productoutput.js.map +1 -1
- package/models/components/productpriceinput.d.ts +3 -11
- package/models/components/productpriceinput.d.ts.map +1 -1
- package/models/components/productpriceinput.js +5 -13
- package/models/components/productpriceinput.js.map +1 -1
- package/models/components/productpriceonetime.d.ts +5 -71
- package/models/components/productpriceonetime.d.ts.map +1 -1
- package/models/components/productpriceonetime.js +14 -57
- package/models/components/productpriceonetime.js.map +1 -1
- package/models/components/productpriceonetimecustom.d.ts +124 -0
- package/models/components/productpriceonetimecustom.d.ts.map +1 -0
- package/models/components/productpriceonetimecustom.js +130 -0
- package/models/components/productpriceonetimecustom.js.map +1 -0
- package/models/components/productpriceonetimecustomcreate.d.ts +95 -0
- package/models/components/productpriceonetimecustomcreate.d.ts.map +1 -0
- package/models/components/productpriceonetimecustomcreate.js +114 -0
- package/models/components/productpriceonetimecustomcreate.js.map +1 -0
- package/models/components/productpriceonetimefixed.d.ts +114 -0
- package/models/components/productpriceonetimefixed.d.ts.map +1 -0
- package/models/components/productpriceonetimefixed.js +122 -0
- package/models/components/productpriceonetimefixed.js.map +1 -0
- package/models/components/productpriceonetimefixedcreate.d.ts +85 -0
- package/models/components/productpriceonetimefixedcreate.d.ts.map +1 -0
- package/models/components/productpriceonetimefixedcreate.js +106 -0
- package/models/components/productpriceonetimefixedcreate.js.map +1 -0
- package/models/components/productpriceonetimefree.d.ts +104 -0
- package/models/components/productpriceonetimefree.d.ts.map +1 -0
- package/models/components/productpriceonetimefree.js +114 -0
- package/models/components/productpriceonetimefree.js.map +1 -0
- package/models/components/productpriceonetimefreecreate.d.ts +75 -0
- package/models/components/productpriceonetimefreecreate.d.ts.map +1 -0
- package/models/components/productpriceonetimefreecreate.js +98 -0
- package/models/components/productpriceonetimefreecreate.js.map +1 -0
- package/models/components/productpriceoutput.d.ts +3 -11
- package/models/components/productpriceoutput.d.ts.map +1 -1
- package/models/components/productpriceoutput.js +5 -13
- package/models/components/productpriceoutput.js.map +1 -1
- package/models/components/productpricerecurringcustom.d.ts +130 -0
- package/models/components/productpricerecurringcustom.d.ts.map +1 -0
- package/models/components/productpricerecurringcustom.js +135 -0
- package/models/components/productpricerecurringcustom.js.map +1 -0
- package/models/components/productpricerecurringfixed.d.ts +120 -0
- package/models/components/productpricerecurringfixed.d.ts.map +1 -0
- package/models/components/productpricerecurringfixed.js +128 -0
- package/models/components/productpricerecurringfixed.js.map +1 -0
- package/models/components/productpricerecurringfixedcreate.d.ts +91 -0
- package/models/components/productpricerecurringfixedcreate.d.ts.map +1 -0
- package/models/components/productpricerecurringfixedcreate.js +111 -0
- package/models/components/productpricerecurringfixedcreate.js.map +1 -0
- package/models/components/productpricerecurringfree.d.ts +110 -0
- package/models/components/productpricerecurringfree.d.ts.map +1 -0
- package/models/components/productpricerecurringfree.js +119 -0
- package/models/components/productpricerecurringfree.js.map +1 -0
- package/models/components/productpricerecurringfreecreate.d.ts +81 -0
- package/models/components/productpricerecurringfreecreate.d.ts.map +1 -0
- package/models/components/productpricerecurringfreecreate.js +103 -0
- package/models/components/productpricerecurringfreecreate.js.map +1 -0
- package/models/components/productpricerecurringinput.d.ts +36 -0
- package/models/components/productpricerecurringinput.d.ts.map +1 -0
- package/models/components/productpricerecurringinput.js +69 -0
- package/models/components/productpricerecurringinput.js.map +1 -0
- package/models/components/productpricerecurringoutput.d.ts +36 -0
- package/models/components/productpricerecurringoutput.d.ts.map +1 -0
- package/models/components/productpricerecurringoutput.js +69 -0
- package/models/components/productpricerecurringoutput.js.map +1 -0
- package/models/components/productrecurringcreate.d.ts +17 -36
- package/models/components/productrecurringcreate.d.ts.map +1 -1
- package/models/components/productrecurringcreate.js +26 -26
- package/models/components/productrecurringcreate.js.map +1 -1
- package/models/components/productupdate.d.ts +18 -20
- package/models/components/productupdate.d.ts.map +1 -1
- package/models/components/productupdate.js +35 -25
- package/models/components/productupdate.js.map +1 -1
- package/models/components/subscriptioninput.d.ts +11 -4
- package/models/components/subscriptioninput.d.ts.map +1 -1
- package/models/components/subscriptioninput.js +13 -4
- package/models/components/subscriptioninput.js.map +1 -1
- package/models/components/subscriptionoutput.d.ts +11 -4
- package/models/components/subscriptionoutput.d.ts.map +1 -1
- package/models/components/subscriptionoutput.js +13 -4
- package/models/components/subscriptionoutput.js.map +1 -1
- package/models/components/subscriptionrecurringinterval.d.ts +28 -0
- package/models/components/{productpricerecurringinterval.d.ts.map → subscriptionrecurringinterval.d.ts.map} +1 -1
- package/models/components/{productpricerecurringinterval.js → subscriptionrecurringinterval.js} +12 -12
- package/models/components/{productpricerecurringinterval.js.map → subscriptionrecurringinterval.js.map} +1 -1
- package/models/components/subscriptionsortproperty.d.ts +6 -12
- package/models/components/subscriptionsortproperty.d.ts.map +1 -1
- package/models/components/subscriptionsortproperty.js +2 -4
- package/models/components/subscriptionsortproperty.js.map +1 -1
- package/models/components/userorderproduct.d.ts +0 -11
- package/models/components/userorderproduct.d.ts.map +1 -1
- package/models/components/userorderproduct.js +0 -7
- package/models/components/userorderproduct.js.map +1 -1
- package/models/components/userordersubscription.d.ts +9 -2
- package/models/components/userordersubscription.d.ts.map +1 -1
- package/models/components/userordersubscription.js +11 -2
- package/models/components/userordersubscription.js.map +1 -1
- package/models/components/usersubscription.d.ts +14 -4
- package/models/components/usersubscription.d.ts.map +1 -1
- package/models/components/usersubscription.js +13 -4
- package/models/components/usersubscription.js.map +1 -1
- package/models/components/usersubscriptionproduct.d.ts +0 -11
- package/models/components/usersubscriptionproduct.d.ts.map +1 -1
- package/models/components/usersubscriptionproduct.js +0 -7
- package/models/components/usersubscriptionproduct.js.map +1 -1
- package/models/components/usersubscriptionsortproperty.d.ts +6 -6
- package/models/components/usersubscriptionsortproperty.js +2 -2
- package/models/components/usersubscriptionsortproperty.js.map +1 -1
- package/models/errors/index.d.ts +0 -2
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -2
- package/models/errors/index.js.map +1 -1
- package/models/operations/productscreate.d.ts +2 -2
- package/models/operations/productscreate.d.ts.map +1 -1
- package/models/operations/productscreate.js +2 -2
- package/models/operations/productscreate.js.map +1 -1
- package/models/operations/productslist.d.ts +0 -27
- package/models/operations/productslist.d.ts.map +1 -1
- package/models/operations/productslist.js +1 -32
- package/models/operations/productslist.js.map +1 -1
- package/models/operations/subscriptionslist.d.ts +0 -29
- package/models/operations/subscriptionslist.d.ts.map +1 -1
- package/models/operations/subscriptionslist.js +1 -32
- package/models/operations/subscriptionslist.js.map +1 -1
- package/package.json +1 -1
- package/sdk/oauth2.js +1 -1
- package/sdk/polarsubscriptions.d.ts +0 -9
- package/sdk/polarsubscriptions.d.ts.map +1 -1
- package/sdk/polarsubscriptions.js +0 -12
- package/sdk/polarsubscriptions.js.map +1 -1
- package/sdk/sdk.js +15 -15
- package/sdk/subscriptions.d.ts +0 -15
- package/sdk/subscriptions.d.ts.map +1 -1
- package/sdk/subscriptions.js +0 -20
- package/sdk/subscriptions.js.map +1 -1
- package/sdk/users.js +6 -6
- package/src/funcs/advertisementsGet.ts +40 -41
- package/src/funcs/advertisementsList.ts +48 -49
- package/src/funcs/articlesCreate.ts +37 -37
- package/src/funcs/articlesDelete.ts +41 -41
- package/src/funcs/articlesGet.ts +40 -40
- package/src/funcs/articlesList.ts +52 -52
- package/src/funcs/articlesPreview.ts +41 -44
- package/src/funcs/articlesReceivers.ts +39 -40
- package/src/funcs/articlesSend.ts +41 -41
- package/src/funcs/articlesUpdate.ts +41 -44
- package/src/funcs/benefitsCreate.ts +38 -38
- package/src/funcs/benefitsDelete.ts +41 -41
- package/src/funcs/benefitsGet.ts +40 -40
- package/src/funcs/benefitsGrants.ts +52 -55
- package/src/funcs/benefitsList.ts +48 -48
- package/src/funcs/benefitsUpdate.ts +41 -44
- package/src/funcs/checkoutsCreate.ts +37 -37
- package/src/funcs/checkoutsGet.ts +39 -39
- package/src/funcs/externalOrganizationsList.ts +51 -51
- package/src/funcs/filesCreate.ts +37 -37
- package/src/funcs/filesDelete.ts +41 -41
- package/src/funcs/filesList.ts +48 -48
- package/src/funcs/filesUpdate.ts +39 -42
- package/src/funcs/filesUploaded.ts +39 -42
- package/src/funcs/licenseKeysGet.ts +41 -41
- package/src/funcs/licenseKeysGetActivation.ts +44 -44
- package/src/funcs/licenseKeysList.ts +49 -49
- package/src/funcs/licenseKeysUpdate.ts +41 -47
- package/src/funcs/metricsGet.ts +45 -45
- package/src/funcs/metricsLimits.ts +22 -22
- package/src/funcs/oauth2ClientsCreate.ts +37 -38
- package/src/funcs/oauth2ClientsDelete.ts +40 -40
- package/src/funcs/oauth2ClientsGet.ts +40 -40
- package/src/funcs/oauth2ClientsList.ts +46 -47
- package/src/funcs/oauth2ClientsUpdate.ts +40 -43
- package/src/funcs/oauth2Introspect.ts +35 -35
- package/src/funcs/oauth2Revoke.ts +35 -35
- package/src/funcs/oauth2Token.ts +35 -35
- package/src/funcs/oauth2Userinfo.ts +22 -22
- package/src/funcs/ordersGet.ts +40 -40
- package/src/funcs/ordersInvoice.ts +40 -40
- package/src/funcs/ordersList.ts +51 -53
- package/src/funcs/organizationsCreate.ts +37 -37
- package/src/funcs/organizationsGet.ts +40 -40
- package/src/funcs/organizationsList.ts +49 -50
- package/src/funcs/organizationsUpdate.ts +42 -45
- package/src/funcs/productsCreate.ts +38 -38
- package/src/funcs/productsGet.ts +40 -40
- package/src/funcs/productsList.ts +50 -51
- package/src/funcs/productsUpdate.ts +41 -44
- package/src/funcs/productsUpdateBenefits.ts +42 -45
- package/src/funcs/repositoriesGet.ts +40 -40
- package/src/funcs/repositoriesList.ts +52 -52
- package/src/funcs/repositoriesUpdate.ts +41 -47
- package/src/funcs/subscriptionsExport.ts +41 -41
- package/src/funcs/subscriptionsList.ts +50 -52
- package/src/funcs/usersAdvertisementsCreate.ts +38 -38
- package/src/funcs/usersAdvertisementsDelete.ts +42 -42
- package/src/funcs/usersAdvertisementsEnable.ts +41 -44
- package/src/funcs/usersAdvertisementsGet.ts +41 -41
- package/src/funcs/usersAdvertisementsList.ts +48 -48
- package/src/funcs/usersAdvertisementsUpdate.ts +41 -44
- package/src/funcs/usersBenefitsGet.ts +40 -40
- package/src/funcs/usersBenefitsList.ts +51 -52
- package/src/funcs/usersDownloadablesGet.ts +41 -41
- package/src/funcs/usersDownloadablesList.ts +49 -49
- package/src/funcs/usersLicenseKeysActivate.ts +39 -39
- package/src/funcs/usersLicenseKeysDeactivate.ts +38 -38
- package/src/funcs/usersLicenseKeysGet.ts +42 -42
- package/src/funcs/usersLicenseKeysList.ts +51 -51
- package/src/funcs/usersLicenseKeysValidate.ts +38 -38
- package/src/funcs/usersOrdersGet.ts +40 -40
- package/src/funcs/usersOrdersInvoice.ts +40 -41
- package/src/funcs/usersOrdersList.ts +52 -52
- package/src/funcs/usersSubscriptionsCancel.ts +42 -42
- package/src/funcs/usersSubscriptionsGet.ts +41 -41
- package/src/funcs/usersSubscriptionsList.ts +52 -52
- package/src/funcs/usersSubscriptionsUpdate.ts +42 -48
- package/src/lib/config.ts +18 -12
- package/src/lib/sdks.ts +26 -26
- package/src/models/components/index.ts +14 -9
- package/src/models/components/orderproduct.ts +0 -21
- package/src/models/components/ordersubscription.ts +23 -4
- package/src/models/components/organizationfeaturesettings.ts +0 -9
- package/src/models/components/productinput.ts +0 -21
- package/src/models/components/productonetimecreate.ts +84 -9
- package/src/models/components/productoutput.ts +0 -21
- package/src/models/components/productpriceinput.ts +13 -29
- package/src/models/components/productpriceonetime.ts +36 -114
- package/src/models/components/productpriceonetimecustom.ts +201 -0
- package/src/models/components/productpriceonetimecustomcreate.ts +158 -0
- package/src/models/components/productpriceonetimefixed.ts +182 -0
- package/src/models/components/productpriceonetimefixedcreate.ts +139 -0
- package/src/models/components/productpriceonetimefree.ts +164 -0
- package/src/models/components/productpriceonetimefreecreate.ts +121 -0
- package/src/models/components/productpriceoutput.ts +13 -29
- package/src/models/components/productpricerecurringcustom.ts +216 -0
- package/src/models/components/productpricerecurringfixed.ts +191 -0
- package/src/models/components/productpricerecurringfixedcreate.ts +155 -0
- package/src/models/components/productpricerecurringfree.ts +179 -0
- package/src/models/components/productpricerecurringfreecreate.ts +136 -0
- package/src/models/components/productpricerecurringinput.ts +93 -0
- package/src/models/components/productpricerecurringoutput.ts +93 -0
- package/src/models/components/productrecurringcreate.ts +57 -48
- package/src/models/components/productupdate.ts +87 -51
- package/src/models/components/subscriptioninput.ts +27 -8
- package/src/models/components/subscriptionoutput.ts +27 -8
- package/src/models/components/subscriptionrecurringinterval.ts +35 -0
- package/src/models/components/subscriptionsortproperty.ts +2 -4
- package/src/models/components/userorderproduct.ts +0 -21
- package/src/models/components/userordersubscription.ts +23 -4
- package/src/models/components/usersubscription.ts +30 -8
- package/src/models/components/usersubscriptionproduct.ts +0 -21
- package/src/models/components/usersubscriptionsortproperty.ts +2 -2
- package/src/models/errors/index.ts +0 -2
- package/src/models/operations/productscreate.ts +6 -6
- package/src/models/operations/productslist.ts +0 -70
- package/src/models/operations/subscriptionslist.ts +0 -68
- package/src/sdk/oauth2.ts +1 -1
- package/src/sdk/polarsubscriptions.ts +0 -20
- package/src/sdk/sdk.ts +15 -15
- package/src/sdk/subscriptions.ts +0 -37
- package/src/sdk/users.ts +6 -6
- package/funcs/subscriptionsCreate.d.ts +0 -16
- package/funcs/subscriptionsCreate.d.ts.map +0 -1
- package/funcs/subscriptionsCreate.js +0 -96
- package/funcs/subscriptionsCreate.js.map +0 -1
- package/funcs/subscriptionsImportSubscriptions.d.ts +0 -16
- package/funcs/subscriptionsImportSubscriptions.d.ts.map +0 -1
- package/funcs/subscriptionsImportSubscriptions.js +0 -109
- package/funcs/subscriptionsImportSubscriptions.js.map +0 -1
- package/funcs/usersSubscriptionsCreate.d.ts +0 -18
- package/funcs/usersSubscriptionsCreate.d.ts.map +0 -1
- package/funcs/usersSubscriptionsCreate.js +0 -98
- package/funcs/usersSubscriptionsCreate.js.map +0 -1
- package/models/components/bodysubscriptionsimport.d.ts +0 -58
- package/models/components/bodysubscriptionsimport.d.ts.map +0 -1
- package/models/components/bodysubscriptionsimport.js +0 -92
- package/models/components/bodysubscriptionsimport.js.map +0 -1
- package/models/components/productpriceonetimecreate.d.ts +0 -61
- package/models/components/productpriceonetimecreate.d.ts.map +0 -1
- package/models/components/productpriceonetimecreate.js +0 -83
- package/models/components/productpriceonetimecreate.js.map +0 -1
- package/models/components/productpricerecurring.d.ts +0 -96
- package/models/components/productpricerecurring.d.ts.map +0 -1
- package/models/components/productpricerecurring.js +0 -105
- package/models/components/productpricerecurring.js.map +0 -1
- package/models/components/productpricerecurringcreate.d.ts +0 -67
- package/models/components/productpricerecurringcreate.d.ts.map +0 -1
- package/models/components/productpricerecurringcreate.js +0 -88
- package/models/components/productpricerecurringcreate.js.map +0 -1
- package/models/components/productpricerecurringinterval.d.ts +0 -28
- package/models/components/subscriptioncreateemail.d.ts +0 -36
- package/models/components/subscriptioncreateemail.d.ts.map +0 -1
- package/models/components/subscriptioncreateemail.js +0 -61
- package/models/components/subscriptioncreateemail.js.map +0 -1
- package/models/components/subscriptionsimported.d.ts +0 -28
- package/models/components/subscriptionsimported.d.ts.map +0 -1
- package/models/components/subscriptionsimported.js +0 -50
- package/models/components/subscriptionsimported.js.map +0 -1
- package/models/components/subscriptiontiertype.d.ts +0 -31
- package/models/components/subscriptiontiertype.d.ts.map +0 -1
- package/models/components/subscriptiontiertype.js +0 -51
- package/models/components/subscriptiontiertype.js.map +0 -1
- package/models/components/userfreesubscriptioncreate.d.ts +0 -33
- package/models/components/userfreesubscriptioncreate.d.ts.map +0 -1
- package/models/components/userfreesubscriptioncreate.js +0 -63
- package/models/components/userfreesubscriptioncreate.js.map +0 -1
- package/models/errors/alreadysubscribed.d.ts +0 -57
- package/models/errors/alreadysubscribed.d.ts.map +0 -1
- package/models/errors/alreadysubscribed.js +0 -88
- package/models/errors/alreadysubscribed.js.map +0 -1
- package/models/errors/freesubscriptionupgrade.d.ts +0 -57
- package/models/errors/freesubscriptionupgrade.d.ts.map +0 -1
- package/models/errors/freesubscriptionupgrade.js +0 -88
- package/models/errors/freesubscriptionupgrade.js.map +0 -1
- package/src/funcs/subscriptionsCreate.ts +0 -126
- package/src/funcs/subscriptionsImportSubscriptions.ts +0 -142
- package/src/funcs/usersSubscriptionsCreate.ts +0 -135
- package/src/models/components/bodysubscriptionsimport.ts +0 -114
- package/src/models/components/productpriceonetimecreate.ts +0 -102
- package/src/models/components/productpricerecurring.ts +0 -161
- package/src/models/components/productpricerecurringcreate.ts +0 -116
- package/src/models/components/productpricerecurringinterval.ts +0 -35
- package/src/models/components/subscriptioncreateemail.ts +0 -67
- package/src/models/components/subscriptionsimported.ts +0 -48
- package/src/models/components/subscriptiontiertype.ts +0 -34
- package/src/models/components/userfreesubscriptioncreate.ts +0 -66
- package/src/models/errors/alreadysubscribed.ts +0 -102
- package/src/models/errors/freesubscriptionupgrade.ts +0 -106
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
export declare const ProductPriceOneTimeCustomAmountType: {
|
|
4
|
+
readonly Custom: "custom";
|
|
5
|
+
};
|
|
6
|
+
export type ProductPriceOneTimeCustomAmountType = ClosedEnum<typeof ProductPriceOneTimeCustomAmountType>;
|
|
7
|
+
/**
|
|
8
|
+
* The type of the price.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ProductPriceOneTimeCustomType: {
|
|
11
|
+
readonly OneTime: "one_time";
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* The type of the price.
|
|
15
|
+
*/
|
|
16
|
+
export type ProductPriceOneTimeCustomType = ClosedEnum<typeof ProductPriceOneTimeCustomType>;
|
|
17
|
+
/**
|
|
18
|
+
* A pay-what-you-want price for a one-time product.
|
|
19
|
+
*/
|
|
20
|
+
export type ProductPriceOneTimeCustom = {
|
|
21
|
+
/**
|
|
22
|
+
* Creation timestamp of the object.
|
|
23
|
+
*/
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
/**
|
|
26
|
+
* Last modification timestamp of the object.
|
|
27
|
+
*/
|
|
28
|
+
modifiedAt: Date | null;
|
|
29
|
+
/**
|
|
30
|
+
* The ID of the price.
|
|
31
|
+
*/
|
|
32
|
+
id: string;
|
|
33
|
+
amountType?: "custom" | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the price is archived and no longer available.
|
|
36
|
+
*/
|
|
37
|
+
isArchived: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The currency.
|
|
40
|
+
*/
|
|
41
|
+
priceCurrency: string;
|
|
42
|
+
/**
|
|
43
|
+
* The minimum amount the customer can pay.
|
|
44
|
+
*/
|
|
45
|
+
minimumAmount: number | null;
|
|
46
|
+
/**
|
|
47
|
+
* The maximum amount the customer can pay.
|
|
48
|
+
*/
|
|
49
|
+
maximumAmount: number | null;
|
|
50
|
+
/**
|
|
51
|
+
* The initial amount shown to the customer.
|
|
52
|
+
*/
|
|
53
|
+
presetAmount: number | null;
|
|
54
|
+
/**
|
|
55
|
+
* The type of the price.
|
|
56
|
+
*/
|
|
57
|
+
type?: "one_time" | undefined;
|
|
58
|
+
};
|
|
59
|
+
/** @internal */
|
|
60
|
+
export declare const ProductPriceOneTimeCustomAmountType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCustomAmountType>;
|
|
61
|
+
/** @internal */
|
|
62
|
+
export declare const ProductPriceOneTimeCustomAmountType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCustomAmountType>;
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
+
*/
|
|
67
|
+
export declare namespace ProductPriceOneTimeCustomAmountType$ {
|
|
68
|
+
/** @deprecated use `ProductPriceOneTimeCustomAmountType$inboundSchema` instead. */
|
|
69
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
70
|
+
readonly Custom: "custom";
|
|
71
|
+
}>;
|
|
72
|
+
/** @deprecated use `ProductPriceOneTimeCustomAmountType$outboundSchema` instead. */
|
|
73
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
74
|
+
readonly Custom: "custom";
|
|
75
|
+
}>;
|
|
76
|
+
}
|
|
77
|
+
/** @internal */
|
|
78
|
+
export declare const ProductPriceOneTimeCustomType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCustomType>;
|
|
79
|
+
/** @internal */
|
|
80
|
+
export declare const ProductPriceOneTimeCustomType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCustomType>;
|
|
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 declare namespace ProductPriceOneTimeCustomType$ {
|
|
86
|
+
/** @deprecated use `ProductPriceOneTimeCustomType$inboundSchema` instead. */
|
|
87
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
88
|
+
readonly OneTime: "one_time";
|
|
89
|
+
}>;
|
|
90
|
+
/** @deprecated use `ProductPriceOneTimeCustomType$outboundSchema` instead. */
|
|
91
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
92
|
+
readonly OneTime: "one_time";
|
|
93
|
+
}>;
|
|
94
|
+
}
|
|
95
|
+
/** @internal */
|
|
96
|
+
export declare const ProductPriceOneTimeCustom$inboundSchema: z.ZodType<ProductPriceOneTimeCustom, z.ZodTypeDef, unknown>;
|
|
97
|
+
/** @internal */
|
|
98
|
+
export type ProductPriceOneTimeCustom$Outbound = {
|
|
99
|
+
created_at: string;
|
|
100
|
+
modified_at: string | null;
|
|
101
|
+
id: string;
|
|
102
|
+
amount_type: "custom";
|
|
103
|
+
is_archived: boolean;
|
|
104
|
+
price_currency: string;
|
|
105
|
+
minimum_amount: number | null;
|
|
106
|
+
maximum_amount: number | null;
|
|
107
|
+
preset_amount: number | null;
|
|
108
|
+
type: "one_time";
|
|
109
|
+
};
|
|
110
|
+
/** @internal */
|
|
111
|
+
export declare const ProductPriceOneTimeCustom$outboundSchema: z.ZodType<ProductPriceOneTimeCustom$Outbound, z.ZodTypeDef, ProductPriceOneTimeCustom>;
|
|
112
|
+
/**
|
|
113
|
+
* @internal
|
|
114
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
115
|
+
*/
|
|
116
|
+
export declare namespace ProductPriceOneTimeCustom$ {
|
|
117
|
+
/** @deprecated use `ProductPriceOneTimeCustom$inboundSchema` instead. */
|
|
118
|
+
const inboundSchema: z.ZodType<ProductPriceOneTimeCustom, z.ZodTypeDef, unknown>;
|
|
119
|
+
/** @deprecated use `ProductPriceOneTimeCustom$outboundSchema` instead. */
|
|
120
|
+
const outboundSchema: z.ZodType<ProductPriceOneTimeCustom$Outbound, z.ZodTypeDef, ProductPriceOneTimeCustom>;
|
|
121
|
+
/** @deprecated use `ProductPriceOneTimeCustom$Outbound` instead. */
|
|
122
|
+
type Outbound = ProductPriceOneTimeCustom$Outbound;
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=productpriceonetimecustom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productpriceonetimecustom.d.ts","sourceRoot":"","sources":["../../src/models/components/productpriceonetimecustom.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,mCAAmC;;CAEtC,CAAC;AACX,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAC1D,OAAO,mCAAmC,CAC3C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,6BAA6B;;CAEhC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,UAAU,CACpD,OAAO,6BAA6B,CACrC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;OAEG;IACH,YAAY,EAAE,MAA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9B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,yBAAyB,CAuBzB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,0BAA0B,CAAC;IAC1C,yEAAyE;IAClE,MAAM,aAAa,6DAA0C,CAAC;IACrE,0EAA0E;IACnE,MAAM,cAAc,wFAA2C,CAAC;IACvE,oEAAoE;IACpE,KAAY,QAAQ,GAAG,kCAAkC,CAAC;CAC3D"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ProductPriceOneTimeCustom$ = exports.ProductPriceOneTimeCustom$outboundSchema = exports.ProductPriceOneTimeCustom$inboundSchema = exports.ProductPriceOneTimeCustomType$ = exports.ProductPriceOneTimeCustomType$outboundSchema = exports.ProductPriceOneTimeCustomType$inboundSchema = exports.ProductPriceOneTimeCustomAmountType$ = exports.ProductPriceOneTimeCustomAmountType$outboundSchema = exports.ProductPriceOneTimeCustomAmountType$inboundSchema = exports.ProductPriceOneTimeCustomType = exports.ProductPriceOneTimeCustomAmountType = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
|
+
exports.ProductPriceOneTimeCustomAmountType = {
|
|
33
|
+
Custom: "custom",
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* The type of the price.
|
|
37
|
+
*/
|
|
38
|
+
exports.ProductPriceOneTimeCustomType = {
|
|
39
|
+
OneTime: "one_time",
|
|
40
|
+
};
|
|
41
|
+
/** @internal */
|
|
42
|
+
exports.ProductPriceOneTimeCustomAmountType$inboundSchema = z.nativeEnum(exports.ProductPriceOneTimeCustomAmountType);
|
|
43
|
+
/** @internal */
|
|
44
|
+
exports.ProductPriceOneTimeCustomAmountType$outboundSchema = exports.ProductPriceOneTimeCustomAmountType$inboundSchema;
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
+
*/
|
|
49
|
+
var ProductPriceOneTimeCustomAmountType$;
|
|
50
|
+
(function (ProductPriceOneTimeCustomAmountType$) {
|
|
51
|
+
/** @deprecated use `ProductPriceOneTimeCustomAmountType$inboundSchema` instead. */
|
|
52
|
+
ProductPriceOneTimeCustomAmountType$.inboundSchema = exports.ProductPriceOneTimeCustomAmountType$inboundSchema;
|
|
53
|
+
/** @deprecated use `ProductPriceOneTimeCustomAmountType$outboundSchema` instead. */
|
|
54
|
+
ProductPriceOneTimeCustomAmountType$.outboundSchema = exports.ProductPriceOneTimeCustomAmountType$outboundSchema;
|
|
55
|
+
})(ProductPriceOneTimeCustomAmountType$ || (exports.ProductPriceOneTimeCustomAmountType$ = ProductPriceOneTimeCustomAmountType$ = {}));
|
|
56
|
+
/** @internal */
|
|
57
|
+
exports.ProductPriceOneTimeCustomType$inboundSchema = z.nativeEnum(exports.ProductPriceOneTimeCustomType);
|
|
58
|
+
/** @internal */
|
|
59
|
+
exports.ProductPriceOneTimeCustomType$outboundSchema = exports.ProductPriceOneTimeCustomType$inboundSchema;
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
+
*/
|
|
64
|
+
var ProductPriceOneTimeCustomType$;
|
|
65
|
+
(function (ProductPriceOneTimeCustomType$) {
|
|
66
|
+
/** @deprecated use `ProductPriceOneTimeCustomType$inboundSchema` instead. */
|
|
67
|
+
ProductPriceOneTimeCustomType$.inboundSchema = exports.ProductPriceOneTimeCustomType$inboundSchema;
|
|
68
|
+
/** @deprecated use `ProductPriceOneTimeCustomType$outboundSchema` instead. */
|
|
69
|
+
ProductPriceOneTimeCustomType$.outboundSchema = exports.ProductPriceOneTimeCustomType$outboundSchema;
|
|
70
|
+
})(ProductPriceOneTimeCustomType$ || (exports.ProductPriceOneTimeCustomType$ = ProductPriceOneTimeCustomType$ = {}));
|
|
71
|
+
/** @internal */
|
|
72
|
+
exports.ProductPriceOneTimeCustom$inboundSchema = z.object({
|
|
73
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
74
|
+
modified_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
75
|
+
id: z.string(),
|
|
76
|
+
amount_type: z.literal("custom").optional(),
|
|
77
|
+
is_archived: z.boolean(),
|
|
78
|
+
price_currency: z.string(),
|
|
79
|
+
minimum_amount: z.nullable(z.number().int()),
|
|
80
|
+
maximum_amount: z.nullable(z.number().int()),
|
|
81
|
+
preset_amount: z.nullable(z.number().int()),
|
|
82
|
+
type: z.literal("one_time").optional(),
|
|
83
|
+
}).transform((v) => {
|
|
84
|
+
return (0, primitives_js_1.remap)(v, {
|
|
85
|
+
"created_at": "createdAt",
|
|
86
|
+
"modified_at": "modifiedAt",
|
|
87
|
+
"amount_type": "amountType",
|
|
88
|
+
"is_archived": "isArchived",
|
|
89
|
+
"price_currency": "priceCurrency",
|
|
90
|
+
"minimum_amount": "minimumAmount",
|
|
91
|
+
"maximum_amount": "maximumAmount",
|
|
92
|
+
"preset_amount": "presetAmount",
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
/** @internal */
|
|
96
|
+
exports.ProductPriceOneTimeCustom$outboundSchema = z.object({
|
|
97
|
+
createdAt: z.date().transform(v => v.toISOString()),
|
|
98
|
+
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
99
|
+
id: z.string(),
|
|
100
|
+
amountType: z.literal("custom").default("custom"),
|
|
101
|
+
isArchived: z.boolean(),
|
|
102
|
+
priceCurrency: z.string(),
|
|
103
|
+
minimumAmount: z.nullable(z.number().int()),
|
|
104
|
+
maximumAmount: z.nullable(z.number().int()),
|
|
105
|
+
presetAmount: z.nullable(z.number().int()),
|
|
106
|
+
type: z.literal("one_time").default("one_time"),
|
|
107
|
+
}).transform((v) => {
|
|
108
|
+
return (0, primitives_js_1.remap)(v, {
|
|
109
|
+
createdAt: "created_at",
|
|
110
|
+
modifiedAt: "modified_at",
|
|
111
|
+
amountType: "amount_type",
|
|
112
|
+
isArchived: "is_archived",
|
|
113
|
+
priceCurrency: "price_currency",
|
|
114
|
+
minimumAmount: "minimum_amount",
|
|
115
|
+
maximumAmount: "maximum_amount",
|
|
116
|
+
presetAmount: "preset_amount",
|
|
117
|
+
});
|
|
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
|
+
var ProductPriceOneTimeCustom$;
|
|
124
|
+
(function (ProductPriceOneTimeCustom$) {
|
|
125
|
+
/** @deprecated use `ProductPriceOneTimeCustom$inboundSchema` instead. */
|
|
126
|
+
ProductPriceOneTimeCustom$.inboundSchema = exports.ProductPriceOneTimeCustom$inboundSchema;
|
|
127
|
+
/** @deprecated use `ProductPriceOneTimeCustom$outboundSchema` instead. */
|
|
128
|
+
ProductPriceOneTimeCustom$.outboundSchema = exports.ProductPriceOneTimeCustom$outboundSchema;
|
|
129
|
+
})(ProductPriceOneTimeCustom$ || (exports.ProductPriceOneTimeCustom$ = ProductPriceOneTimeCustom$ = {}));
|
|
130
|
+
//# sourceMappingURL=productpriceonetimecustom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productpriceonetimecustom.js","sourceRoot":"","sources":["../../src/models/components/productpriceonetimecustom.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAG7C,QAAA,mCAAmC,GAAG;IACjD,MAAM,EAAE,QAAQ;CACR,CAAC;AAKX;;GAEG;AACU,QAAA,6BAA6B,GAAG;IAC3C,OAAO,EAAE,UAAU;CACX,CAAC;AAmDX,gBAAgB;AACH,QAAA,iDAAiD,GAE1D,CAAC,CAAC,UAAU,CAAC,2CAAmC,CAAC,CAAC;AAEtD,gBAAgB;AACH,QAAA,kDAAkD,GAE3D,yDAAiD,CAAC;AAEtD;;;GAGG;AACH,IAAiB,oCAAoC,CAOpD;AAPD,WAAiB,oCAAoC;IACnD,mFAAmF;IACtE,kDAAa,GACxB,yDAAiD,CAAC;IACpD,oFAAoF;IACvE,mDA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AAC,GAAG,EAAE,CAAC;IAC3C,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC;IAC1C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;CAChD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,aAAa;QACzB,aAAa,EAAE,gBAAgB;QAC/B,aAAa,EAAE,gBAAgB;QAC/B,aAAa,EAAE,gBAAgB;QAC/B,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,0BAA0B,CAO1C;AAPD,WAAiB,0BAA0B;IACzC,yEAAyE;IAC5D,wCAAa,GAAG,+CAAuC,CAAC;IACrE,0EAA0E;IAC7D,yCAAc,GAAG,gDAAwC,CAAC;AAGzE,CAAC,EAPgB,0BAA0B,0CAA1B,0BAA0B,QAO1C"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
export declare const ProductPriceOneTimeCustomCreateType: {
|
|
4
|
+
readonly OneTime: "one_time";
|
|
5
|
+
};
|
|
6
|
+
export type ProductPriceOneTimeCustomCreateType = ClosedEnum<typeof ProductPriceOneTimeCustomCreateType>;
|
|
7
|
+
export declare const ProductPriceOneTimeCustomCreateAmountType: {
|
|
8
|
+
readonly Custom: "custom";
|
|
9
|
+
};
|
|
10
|
+
export type ProductPriceOneTimeCustomCreateAmountType = ClosedEnum<typeof ProductPriceOneTimeCustomCreateAmountType>;
|
|
11
|
+
/**
|
|
12
|
+
* Schema to create a pay-what-you-want price for a one-time product.
|
|
13
|
+
*/
|
|
14
|
+
export type ProductPriceOneTimeCustomCreate = {
|
|
15
|
+
type?: "one_time" | undefined;
|
|
16
|
+
amountType?: "custom" | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The currency. Currently, only `usd` is supported.
|
|
19
|
+
*/
|
|
20
|
+
priceCurrency?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* The minimum amount the customer can pay.
|
|
23
|
+
*/
|
|
24
|
+
minimumAmount?: number | null | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* The maximum amount the customer can pay.
|
|
27
|
+
*/
|
|
28
|
+
maximumAmount?: number | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* The initial amount shown to the customer.
|
|
31
|
+
*/
|
|
32
|
+
presetAmount?: number | null | undefined;
|
|
33
|
+
};
|
|
34
|
+
/** @internal */
|
|
35
|
+
export declare const ProductPriceOneTimeCustomCreateType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCustomCreateType>;
|
|
36
|
+
/** @internal */
|
|
37
|
+
export declare const ProductPriceOneTimeCustomCreateType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCustomCreateType>;
|
|
38
|
+
/**
|
|
39
|
+
* @internal
|
|
40
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
41
|
+
*/
|
|
42
|
+
export declare namespace ProductPriceOneTimeCustomCreateType$ {
|
|
43
|
+
/** @deprecated use `ProductPriceOneTimeCustomCreateType$inboundSchema` instead. */
|
|
44
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
45
|
+
readonly OneTime: "one_time";
|
|
46
|
+
}>;
|
|
47
|
+
/** @deprecated use `ProductPriceOneTimeCustomCreateType$outboundSchema` instead. */
|
|
48
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
49
|
+
readonly OneTime: "one_time";
|
|
50
|
+
}>;
|
|
51
|
+
}
|
|
52
|
+
/** @internal */
|
|
53
|
+
export declare const ProductPriceOneTimeCustomCreateAmountType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCustomCreateAmountType>;
|
|
54
|
+
/** @internal */
|
|
55
|
+
export declare const ProductPriceOneTimeCustomCreateAmountType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCustomCreateAmountType>;
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
+
*/
|
|
60
|
+
export declare namespace ProductPriceOneTimeCustomCreateAmountType$ {
|
|
61
|
+
/** @deprecated use `ProductPriceOneTimeCustomCreateAmountType$inboundSchema` instead. */
|
|
62
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
63
|
+
readonly Custom: "custom";
|
|
64
|
+
}>;
|
|
65
|
+
/** @deprecated use `ProductPriceOneTimeCustomCreateAmountType$outboundSchema` instead. */
|
|
66
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
67
|
+
readonly Custom: "custom";
|
|
68
|
+
}>;
|
|
69
|
+
}
|
|
70
|
+
/** @internal */
|
|
71
|
+
export declare const ProductPriceOneTimeCustomCreate$inboundSchema: z.ZodType<ProductPriceOneTimeCustomCreate, z.ZodTypeDef, unknown>;
|
|
72
|
+
/** @internal */
|
|
73
|
+
export type ProductPriceOneTimeCustomCreate$Outbound = {
|
|
74
|
+
type: "one_time";
|
|
75
|
+
amount_type: "custom";
|
|
76
|
+
price_currency: string;
|
|
77
|
+
minimum_amount?: number | null | undefined;
|
|
78
|
+
maximum_amount?: number | null | undefined;
|
|
79
|
+
preset_amount?: number | null | undefined;
|
|
80
|
+
};
|
|
81
|
+
/** @internal */
|
|
82
|
+
export declare const ProductPriceOneTimeCustomCreate$outboundSchema: z.ZodType<ProductPriceOneTimeCustomCreate$Outbound, z.ZodTypeDef, ProductPriceOneTimeCustomCreate>;
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
86
|
+
*/
|
|
87
|
+
export declare namespace ProductPriceOneTimeCustomCreate$ {
|
|
88
|
+
/** @deprecated use `ProductPriceOneTimeCustomCreate$inboundSchema` instead. */
|
|
89
|
+
const inboundSchema: z.ZodType<ProductPriceOneTimeCustomCreate, z.ZodTypeDef, unknown>;
|
|
90
|
+
/** @deprecated use `ProductPriceOneTimeCustomCreate$outboundSchema` instead. */
|
|
91
|
+
const outboundSchema: z.ZodType<ProductPriceOneTimeCustomCreate$Outbound, z.ZodTypeDef, ProductPriceOneTimeCustomCreate>;
|
|
92
|
+
/** @deprecated use `ProductPriceOneTimeCustomCreate$Outbound` instead. */
|
|
93
|
+
type Outbound = ProductPriceOneTimeCustomCreate$Outbound;
|
|
94
|
+
}
|
|
95
|
+
//# sourceMappingURL=productpriceonetimecustomcreate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productpriceonetimecustomcreate.d.ts","sourceRoot":"","sources":["../../src/models/components/productpriceonetimecustomcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,mCAAmC;;CAEtC,CAAC;AACX,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAC1D,OAAO,mCAAmC,CAC3C,CAAC;AAEF,eAAO,MAAM,yCAAyC;;CAE5C,CAAC;AACX,MAAM,MAAM,yCAAyC,GAAG,UAAU,CAChE,OAAO,yCAAyC,CACjD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC9B,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IA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AAG,SAAS,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,wCAAwC,EACxC,CAAC,CAAC,UAAU,EACZ,+BAA+B,CAgB/B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gCAAgC,CAAC;IAChD,+EAA+E;IACxE,MAAM,aAAa,mEAAgD,CAAC;IAC3E,gFAAgF;IACzE,MAAM,cAAc,oGAAiD,CAAC;IAC7E,0EAA0E;IAC1E,KAAY,QAAQ,GAAG,wCAAwC,CAAC;CACjE"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ProductPriceOneTimeCustomCreate$ = exports.ProductPriceOneTimeCustomCreate$outboundSchema = exports.ProductPriceOneTimeCustomCreate$inboundSchema = exports.ProductPriceOneTimeCustomCreateAmountType$ = exports.ProductPriceOneTimeCustomCreateAmountType$outboundSchema = exports.ProductPriceOneTimeCustomCreateAmountType$inboundSchema = exports.ProductPriceOneTimeCustomCreateType$ = exports.ProductPriceOneTimeCustomCreateType$outboundSchema = exports.ProductPriceOneTimeCustomCreateType$inboundSchema = exports.ProductPriceOneTimeCustomCreateAmountType = exports.ProductPriceOneTimeCustomCreateType = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
|
+
exports.ProductPriceOneTimeCustomCreateType = {
|
|
33
|
+
OneTime: "one_time",
|
|
34
|
+
};
|
|
35
|
+
exports.ProductPriceOneTimeCustomCreateAmountType = {
|
|
36
|
+
Custom: "custom",
|
|
37
|
+
};
|
|
38
|
+
/** @internal */
|
|
39
|
+
exports.ProductPriceOneTimeCustomCreateType$inboundSchema = z.nativeEnum(exports.ProductPriceOneTimeCustomCreateType);
|
|
40
|
+
/** @internal */
|
|
41
|
+
exports.ProductPriceOneTimeCustomCreateType$outboundSchema = exports.ProductPriceOneTimeCustomCreateType$inboundSchema;
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
45
|
+
*/
|
|
46
|
+
var ProductPriceOneTimeCustomCreateType$;
|
|
47
|
+
(function (ProductPriceOneTimeCustomCreateType$) {
|
|
48
|
+
/** @deprecated use `ProductPriceOneTimeCustomCreateType$inboundSchema` instead. */
|
|
49
|
+
ProductPriceOneTimeCustomCreateType$.inboundSchema = exports.ProductPriceOneTimeCustomCreateType$inboundSchema;
|
|
50
|
+
/** @deprecated use `ProductPriceOneTimeCustomCreateType$outboundSchema` instead. */
|
|
51
|
+
ProductPriceOneTimeCustomCreateType$.outboundSchema = exports.ProductPriceOneTimeCustomCreateType$outboundSchema;
|
|
52
|
+
})(ProductPriceOneTimeCustomCreateType$ || (exports.ProductPriceOneTimeCustomCreateType$ = ProductPriceOneTimeCustomCreateType$ = {}));
|
|
53
|
+
/** @internal */
|
|
54
|
+
exports.ProductPriceOneTimeCustomCreateAmountType$inboundSchema = z
|
|
55
|
+
.nativeEnum(exports.ProductPriceOneTimeCustomCreateAmountType);
|
|
56
|
+
/** @internal */
|
|
57
|
+
exports.ProductPriceOneTimeCustomCreateAmountType$outboundSchema = exports.ProductPriceOneTimeCustomCreateAmountType$inboundSchema;
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
+
*/
|
|
62
|
+
var ProductPriceOneTimeCustomCreateAmountType$;
|
|
63
|
+
(function (ProductPriceOneTimeCustomCreateAmountType$) {
|
|
64
|
+
/** @deprecated use `ProductPriceOneTimeCustomCreateAmountType$inboundSchema` instead. */
|
|
65
|
+
ProductPriceOneTimeCustomCreateAmountType$.inboundSchema = exports.ProductPriceOneTimeCustomCreateAmountType$inboundSchema;
|
|
66
|
+
/** @deprecated use `ProductPriceOneTimeCustomCreateAmountType$outboundSchema` instead. */
|
|
67
|
+
ProductPriceOneTimeCustomCreateAmountType$.outboundSchema = exports.ProductPriceOneTimeCustomCreateAmountType$outboundSchema;
|
|
68
|
+
})(ProductPriceOneTimeCustomCreateAmountType$ || (exports.ProductPriceOneTimeCustomCreateAmountType$ = ProductPriceOneTimeCustomCreateAmountType$ = {}));
|
|
69
|
+
/** @internal */
|
|
70
|
+
exports.ProductPriceOneTimeCustomCreate$inboundSchema = z.object({
|
|
71
|
+
type: z.literal("one_time").optional(),
|
|
72
|
+
amount_type: z.literal("custom").optional(),
|
|
73
|
+
price_currency: z.string().default("usd"),
|
|
74
|
+
minimum_amount: z.nullable(z.number().int()).optional(),
|
|
75
|
+
maximum_amount: z.nullable(z.number().int()).optional(),
|
|
76
|
+
preset_amount: z.nullable(z.number().int()).optional(),
|
|
77
|
+
}).transform((v) => {
|
|
78
|
+
return (0, primitives_js_1.remap)(v, {
|
|
79
|
+
"amount_type": "amountType",
|
|
80
|
+
"price_currency": "priceCurrency",
|
|
81
|
+
"minimum_amount": "minimumAmount",
|
|
82
|
+
"maximum_amount": "maximumAmount",
|
|
83
|
+
"preset_amount": "presetAmount",
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
/** @internal */
|
|
87
|
+
exports.ProductPriceOneTimeCustomCreate$outboundSchema = z.object({
|
|
88
|
+
type: z.literal("one_time").default("one_time"),
|
|
89
|
+
amountType: z.literal("custom").default("custom"),
|
|
90
|
+
priceCurrency: z.string().default("usd"),
|
|
91
|
+
minimumAmount: z.nullable(z.number().int()).optional(),
|
|
92
|
+
maximumAmount: z.nullable(z.number().int()).optional(),
|
|
93
|
+
presetAmount: z.nullable(z.number().int()).optional(),
|
|
94
|
+
}).transform((v) => {
|
|
95
|
+
return (0, primitives_js_1.remap)(v, {
|
|
96
|
+
amountType: "amount_type",
|
|
97
|
+
priceCurrency: "price_currency",
|
|
98
|
+
minimumAmount: "minimum_amount",
|
|
99
|
+
maximumAmount: "maximum_amount",
|
|
100
|
+
presetAmount: "preset_amount",
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
/**
|
|
104
|
+
* @internal
|
|
105
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
106
|
+
*/
|
|
107
|
+
var ProductPriceOneTimeCustomCreate$;
|
|
108
|
+
(function (ProductPriceOneTimeCustomCreate$) {
|
|
109
|
+
/** @deprecated use `ProductPriceOneTimeCustomCreate$inboundSchema` instead. */
|
|
110
|
+
ProductPriceOneTimeCustomCreate$.inboundSchema = exports.ProductPriceOneTimeCustomCreate$inboundSchema;
|
|
111
|
+
/** @deprecated use `ProductPriceOneTimeCustomCreate$outboundSchema` instead. */
|
|
112
|
+
ProductPriceOneTimeCustomCreate$.outboundSchema = exports.ProductPriceOneTimeCustomCreate$outboundSchema;
|
|
113
|
+
})(ProductPriceOneTimeCustomCreate$ || (exports.ProductPriceOneTimeCustomCreate$ = ProductPriceOneTimeCustomCreate$ = {}));
|
|
114
|
+
//# sourceMappingURL=productpriceonetimecustomcreate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productpriceonetimecustomcreate.js","sourceRoot":"","sources":["../../src/models/components/productpriceonetimecustomcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAG7C,QAAA,mCAAmC,GAAG;IACjD,OAAO,EAAE,UAAU;CACX,CAAC;AAKE,QAAA,yCAAyC,GAAG;IACvD,MAAM,EAAE,QAAQ;CACR,CAAC;AA6BX,gBAAgB;AACH,QAAA,iDAAiD,GAE1D,CAAC,CAAC,UAAU,CAAC,2CAAmC,CAAC,CAAC;AAEtD,gBAAgB;AACH,QAAA,kDAAkD,GAE3D,yDAAiD,CAAC;AAEtD;;;GAGG;AACH,IAAiB,oCAAoC,CAOpD;AAPD,WAAiB,oCAAoC;IACnD,mFAAmF;IACtE,kDAAa,GACxB,yDAAiD,CAAC;IACpD,oFAAoF;IACvE,mDAAc,GACzB,0DAAkD,CAAC;AACvD,CAAC,EAPgB,oCAAoC,oDAApC,oCAAoC,QAOpD;AAED,gBAAgB;AACH,QAAA,uDAAuD,GACE,CAAC;KAClE,UAAU,CAAC,iDAAyC,CAAC,CAAC;AAE3D,gBAAgB;AACH,QAAA,wDAAwD,GAEjE,+DAAuD,CAAC;AAE5D;;;GAGG;AACH,IAAiB,0CAA0C,CAO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CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;IACjD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACxC,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtD,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtD,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACtD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;QACzB,aAAa,EAAE,gBAAgB;QAC/B,aAAa,EAAE,gBAAgB;QAC/B,aAAa,EAAE,gBAAgB;QAC/B,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,gCAAgC,CAOhD;AAPD,WAAiB,gCAAgC;IAC/C,+EAA+E;IAClE,8CAAa,GAAG,qDAA6C,CAAC;IAC3E,gFAAgF;IACnE,+CAAc,GAAG,sDAA8C,CAAC;AAG/E,CAAC,EAPgB,gCAAgC,gDAAhC,gCAAgC,QAOhD"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
export declare const ProductPriceOneTimeFixedAmountType: {
|
|
4
|
+
readonly Fixed: "fixed";
|
|
5
|
+
};
|
|
6
|
+
export type ProductPriceOneTimeFixedAmountType = ClosedEnum<typeof ProductPriceOneTimeFixedAmountType>;
|
|
7
|
+
/**
|
|
8
|
+
* The type of the price.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ProductPriceOneTimeFixedType: {
|
|
11
|
+
readonly OneTime: "one_time";
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* The type of the price.
|
|
15
|
+
*/
|
|
16
|
+
export type ProductPriceOneTimeFixedType = ClosedEnum<typeof ProductPriceOneTimeFixedType>;
|
|
17
|
+
/**
|
|
18
|
+
* A one-time price for a product.
|
|
19
|
+
*/
|
|
20
|
+
export type ProductPriceOneTimeFixed = {
|
|
21
|
+
/**
|
|
22
|
+
* Creation timestamp of the object.
|
|
23
|
+
*/
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
/**
|
|
26
|
+
* Last modification timestamp of the object.
|
|
27
|
+
*/
|
|
28
|
+
modifiedAt: Date | null;
|
|
29
|
+
/**
|
|
30
|
+
* The ID of the price.
|
|
31
|
+
*/
|
|
32
|
+
id: string;
|
|
33
|
+
amountType?: "fixed" | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the price is archived and no longer available.
|
|
36
|
+
*/
|
|
37
|
+
isArchived: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The currency.
|
|
40
|
+
*/
|
|
41
|
+
priceCurrency: string;
|
|
42
|
+
/**
|
|
43
|
+
* The price in cents.
|
|
44
|
+
*/
|
|
45
|
+
priceAmount: number;
|
|
46
|
+
/**
|
|
47
|
+
* The type of the price.
|
|
48
|
+
*/
|
|
49
|
+
type?: "one_time" | undefined;
|
|
50
|
+
};
|
|
51
|
+
/** @internal */
|
|
52
|
+
export declare const ProductPriceOneTimeFixedAmountType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeFixedAmountType>;
|
|
53
|
+
/** @internal */
|
|
54
|
+
export declare const ProductPriceOneTimeFixedAmountType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeFixedAmountType>;
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
58
|
+
*/
|
|
59
|
+
export declare namespace ProductPriceOneTimeFixedAmountType$ {
|
|
60
|
+
/** @deprecated use `ProductPriceOneTimeFixedAmountType$inboundSchema` instead. */
|
|
61
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
62
|
+
readonly Fixed: "fixed";
|
|
63
|
+
}>;
|
|
64
|
+
/** @deprecated use `ProductPriceOneTimeFixedAmountType$outboundSchema` instead. */
|
|
65
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
66
|
+
readonly Fixed: "fixed";
|
|
67
|
+
}>;
|
|
68
|
+
}
|
|
69
|
+
/** @internal */
|
|
70
|
+
export declare const ProductPriceOneTimeFixedType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeFixedType>;
|
|
71
|
+
/** @internal */
|
|
72
|
+
export declare const ProductPriceOneTimeFixedType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeFixedType>;
|
|
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 declare namespace ProductPriceOneTimeFixedType$ {
|
|
78
|
+
/** @deprecated use `ProductPriceOneTimeFixedType$inboundSchema` instead. */
|
|
79
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
80
|
+
readonly OneTime: "one_time";
|
|
81
|
+
}>;
|
|
82
|
+
/** @deprecated use `ProductPriceOneTimeFixedType$outboundSchema` instead. */
|
|
83
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
84
|
+
readonly OneTime: "one_time";
|
|
85
|
+
}>;
|
|
86
|
+
}
|
|
87
|
+
/** @internal */
|
|
88
|
+
export declare const ProductPriceOneTimeFixed$inboundSchema: z.ZodType<ProductPriceOneTimeFixed, z.ZodTypeDef, unknown>;
|
|
89
|
+
/** @internal */
|
|
90
|
+
export type ProductPriceOneTimeFixed$Outbound = {
|
|
91
|
+
created_at: string;
|
|
92
|
+
modified_at: string | null;
|
|
93
|
+
id: string;
|
|
94
|
+
amount_type: "fixed";
|
|
95
|
+
is_archived: boolean;
|
|
96
|
+
price_currency: string;
|
|
97
|
+
price_amount: number;
|
|
98
|
+
type: "one_time";
|
|
99
|
+
};
|
|
100
|
+
/** @internal */
|
|
101
|
+
export declare const ProductPriceOneTimeFixed$outboundSchema: z.ZodType<ProductPriceOneTimeFixed$Outbound, z.ZodTypeDef, ProductPriceOneTimeFixed>;
|
|
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 declare namespace ProductPriceOneTimeFixed$ {
|
|
107
|
+
/** @deprecated use `ProductPriceOneTimeFixed$inboundSchema` instead. */
|
|
108
|
+
const inboundSchema: z.ZodType<ProductPriceOneTimeFixed, z.ZodTypeDef, unknown>;
|
|
109
|
+
/** @deprecated use `ProductPriceOneTimeFixed$outboundSchema` instead. */
|
|
110
|
+
const outboundSchema: z.ZodType<ProductPriceOneTimeFixed$Outbound, z.ZodTypeDef, ProductPriceOneTimeFixed>;
|
|
111
|
+
/** @deprecated use `ProductPriceOneTimeFixed$Outbound` instead. */
|
|
112
|
+
type Outbound = ProductPriceOneTimeFixed$Outbound;
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=productpriceonetimefixed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productpriceonetimefixed.d.ts","sourceRoot":"","sources":["../../src/models/components/productpriceonetimefixed.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,kCAAkC;;CAErC,CAAC;AACX,MAAM,MAAM,kCAAkC,GAAG,UAAU,CACzD,OAAO,kCAAkC,CAC1C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B;;CAE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