@polar-sh/sdk 0.46.5 → 0.46.7
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/dist/commonjs/funcs/benefitsDelete.js.map +1 -1
- package/dist/commonjs/funcs/benefitsGet.js.map +1 -1
- package/dist/commonjs/funcs/benefitsGrants.js.map +1 -1
- package/dist/commonjs/funcs/benefitsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/checkoutLinksDelete.js.map +1 -1
- package/dist/commonjs/funcs/checkoutLinksGet.js.map +1 -1
- package/dist/commonjs/funcs/checkoutLinksUpdate.js.map +1 -1
- package/dist/commonjs/funcs/checkoutsClientConfirm.js.map +1 -1
- package/dist/commonjs/funcs/checkoutsClientGet.js.map +1 -1
- package/dist/commonjs/funcs/checkoutsClientUpdate.js.map +1 -1
- package/dist/commonjs/funcs/checkoutsGet.js.map +1 -1
- package/dist/commonjs/funcs/checkoutsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/customFieldsDelete.js.map +1 -1
- package/dist/commonjs/funcs/customFieldsGet.js.map +1 -1
- package/dist/commonjs/funcs/customFieldsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/customerMetersGet.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalBenefitGrantsGet.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalBenefitGrantsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalCustomerMetersGet.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalCustomersDeletePaymentMethod.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalLicenseKeysGet.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalMembersRemoveMember.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalMembersUpdateMember.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalOrdersConfirmRetryPayment.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalOrdersGenerateInvoice.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalOrdersGet.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalOrdersGetPaymentStatus.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalOrdersInvoice.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalOrdersUpdate.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalOrganizationsGet.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalSeatsResendInvitation.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalSeatsRevokeSeat.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalSubscriptionsCancel.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalSubscriptionsGet.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalSubscriptionsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalWalletsGet.js.map +1 -1
- package/dist/commonjs/funcs/customerSeatsGetClaimInfo.js.map +1 -1
- package/dist/commonjs/funcs/customerSeatsResendInvitation.js.map +1 -1
- package/dist/commonjs/funcs/customerSeatsRevokeSeat.js.map +1 -1
- package/dist/commonjs/funcs/customersDelete.js.map +1 -1
- package/dist/commonjs/funcs/customersDeleteExternal.js.map +1 -1
- package/dist/commonjs/funcs/customersGet.js.map +1 -1
- package/dist/commonjs/funcs/customersGetExternal.js.map +1 -1
- package/dist/commonjs/funcs/customersGetState.js.map +1 -1
- package/dist/commonjs/funcs/customersGetStateExternal.js.map +1 -1
- package/dist/commonjs/funcs/customersUpdate.js.map +1 -1
- package/dist/commonjs/funcs/customersUpdateExternal.js.map +1 -1
- package/dist/commonjs/funcs/discountsDelete.js.map +1 -1
- package/dist/commonjs/funcs/discountsGet.js.map +1 -1
- package/dist/commonjs/funcs/discountsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/disputesGet.js.map +1 -1
- package/dist/commonjs/funcs/eventTypesUpdate.js.map +1 -1
- package/dist/commonjs/funcs/eventsGet.js.map +1 -1
- package/dist/commonjs/funcs/filesDelete.js.map +1 -1
- package/dist/commonjs/funcs/filesUpdate.js.map +1 -1
- package/dist/commonjs/funcs/filesUploaded.js.map +1 -1
- package/dist/commonjs/funcs/licenseKeysGet.js.map +1 -1
- package/dist/commonjs/funcs/licenseKeysGetActivation.js.map +1 -1
- package/dist/commonjs/funcs/licenseKeysUpdate.js.map +1 -1
- package/dist/commonjs/funcs/membersDeleteMember.js.map +1 -1
- package/dist/commonjs/funcs/membersGetMember.js.map +1 -1
- package/dist/commonjs/funcs/membersUpdateMember.js.map +1 -1
- package/dist/commonjs/funcs/metersGet.js.map +1 -1
- package/dist/commonjs/funcs/metersQuantities.js.map +1 -1
- package/dist/commonjs/funcs/metersUpdate.js.map +1 -1
- package/dist/commonjs/funcs/oauth2ClientsDelete.js.map +1 -1
- package/dist/commonjs/funcs/oauth2ClientsGet.js.map +1 -1
- package/dist/commonjs/funcs/oauth2ClientsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/ordersGenerateInvoice.js.map +1 -1
- package/dist/commonjs/funcs/ordersGet.js.map +1 -1
- package/dist/commonjs/funcs/ordersInvoice.js.map +1 -1
- package/dist/commonjs/funcs/ordersUpdate.js.map +1 -1
- package/dist/commonjs/funcs/organizationAccessTokensDelete.js.map +1 -1
- package/dist/commonjs/funcs/organizationAccessTokensUpdate.js.map +1 -1
- package/dist/commonjs/funcs/organizationsGet.js.map +1 -1
- package/dist/commonjs/funcs/organizationsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/paymentsGet.js.map +1 -1
- package/dist/commonjs/funcs/productsGet.js.map +1 -1
- package/dist/commonjs/funcs/productsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/productsUpdateBenefits.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsGet.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsRevoke.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/webhooksDeleteWebhookEndpoint.js.map +1 -1
- package/dist/commonjs/funcs/webhooksGetWebhookEndpoint.js.map +1 -1
- package/dist/commonjs/funcs/webhooksRedeliverWebhookEvent.js.map +1 -1
- package/dist/commonjs/funcs/webhooksResetWebhookEndpointSecret.js.map +1 -1
- package/dist/commonjs/funcs/webhooksUpdateWebhookEndpoint.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/encodings.d.ts.map +1 -1
- package/dist/commonjs/lib/encodings.js +20 -5
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +8 -4
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/lib/url.d.ts.map +1 -1
- package/dist/commonjs/lib/url.js +4 -2
- package/dist/commonjs/lib/url.js.map +1 -1
- package/dist/commonjs/models/components/checkout.d.ts +0 -5
- package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkout.js +0 -4
- package/dist/commonjs/models/components/checkout.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.d.ts +0 -4
- package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.js +0 -2
- package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +0 -4
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js +0 -2
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/commonjs/models/components/legacyrecurringproductpricecustom.d.ts +6 -0
- package/dist/commonjs/models/components/legacyrecurringproductpricecustom.d.ts.map +1 -1
- package/dist/commonjs/models/components/legacyrecurringproductpricecustom.js +5 -0
- package/dist/commonjs/models/components/legacyrecurringproductpricecustom.js.map +1 -1
- package/dist/commonjs/models/components/legacyrecurringproductpricefixed.d.ts +6 -0
- package/dist/commonjs/models/components/legacyrecurringproductpricefixed.d.ts.map +1 -1
- package/dist/commonjs/models/components/legacyrecurringproductpricefixed.js +5 -0
- package/dist/commonjs/models/components/legacyrecurringproductpricefixed.js.map +1 -1
- package/dist/commonjs/models/components/legacyrecurringproductpricefree.d.ts +6 -0
- package/dist/commonjs/models/components/legacyrecurringproductpricefree.d.ts.map +1 -1
- package/dist/commonjs/models/components/legacyrecurringproductpricefree.js +5 -0
- package/dist/commonjs/models/components/legacyrecurringproductpricefree.js.map +1 -1
- package/dist/commonjs/models/components/organization.d.ts +4 -1
- package/dist/commonjs/models/components/organization.d.ts.map +1 -1
- package/dist/commonjs/models/components/organization.js +5 -0
- package/dist/commonjs/models/components/organization.js.map +1 -1
- package/dist/commonjs/models/components/organizationcreate.d.ts +3 -0
- package/dist/commonjs/models/components/organizationcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationcreate.js +3 -0
- package/dist/commonjs/models/components/organizationcreate.js.map +1 -1
- package/dist/commonjs/models/components/organizationdetails.d.ts +26 -6
- package/dist/commonjs/models/components/organizationdetails.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationdetails.js +8 -4
- package/dist/commonjs/models/components/organizationdetails.js.map +1 -1
- package/dist/commonjs/models/components/organizationupdate.d.ts +6 -0
- package/dist/commonjs/models/components/organizationupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationupdate.js +3 -0
- package/dist/commonjs/models/components/organizationupdate.js.map +1 -1
- package/dist/commonjs/models/components/productpricecustom.d.ts +6 -0
- package/dist/commonjs/models/components/productpricecustom.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpricecustom.js +5 -0
- package/dist/commonjs/models/components/productpricecustom.js.map +1 -1
- package/dist/commonjs/models/components/productpricecustomcreate.d.ts +6 -0
- package/dist/commonjs/models/components/productpricecustomcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpricecustomcreate.js +3 -0
- package/dist/commonjs/models/components/productpricecustomcreate.js.map +1 -1
- package/dist/commonjs/models/components/productpricefixed.d.ts +6 -0
- package/dist/commonjs/models/components/productpricefixed.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpricefixed.js +5 -0
- package/dist/commonjs/models/components/productpricefixed.js.map +1 -1
- package/dist/commonjs/models/components/productpricefixedcreate.d.ts +6 -0
- package/dist/commonjs/models/components/productpricefixedcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpricefixedcreate.js +3 -0
- package/dist/commonjs/models/components/productpricefixedcreate.js.map +1 -1
- package/dist/commonjs/models/components/productpricefree.d.ts +6 -0
- package/dist/commonjs/models/components/productpricefree.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpricefree.js +5 -0
- package/dist/commonjs/models/components/productpricefree.js.map +1 -1
- package/dist/commonjs/models/components/productpricefreecreate.d.ts +6 -0
- package/dist/commonjs/models/components/productpricefreecreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpricefreecreate.js +3 -0
- package/dist/commonjs/models/components/productpricefreecreate.js.map +1 -1
- package/dist/commonjs/models/components/productpricemeteredunit.d.ts +6 -0
- package/dist/commonjs/models/components/productpricemeteredunit.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpricemeteredunit.js +5 -0
- package/dist/commonjs/models/components/productpricemeteredunit.js.map +1 -1
- package/dist/commonjs/models/components/productpricemeteredunitcreate.d.ts +6 -0
- package/dist/commonjs/models/components/productpricemeteredunitcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpricemeteredunitcreate.js +3 -0
- package/dist/commonjs/models/components/productpricemeteredunitcreate.js.map +1 -1
- package/dist/commonjs/models/components/productpriceseatbased.d.ts +6 -0
- package/dist/commonjs/models/components/productpriceseatbased.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpriceseatbased.js +5 -0
- package/dist/commonjs/models/components/productpriceseatbased.js.map +1 -1
- package/dist/commonjs/models/components/productpriceseatbasedcreate.d.ts +6 -0
- package/dist/commonjs/models/components/productpriceseatbasedcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpriceseatbasedcreate.js +3 -0
- package/dist/commonjs/models/components/productpriceseatbasedcreate.js.map +1 -1
- package/dist/commonjs/models/components/productpriceseattiersinput.d.ts +3 -0
- package/dist/commonjs/models/components/productpriceseattiersinput.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpriceseattiersinput.js +9 -2
- package/dist/commonjs/models/components/productpriceseattiersinput.js.map +1 -1
- package/dist/commonjs/models/components/productpriceseattiersoutput.d.ts +3 -0
- package/dist/commonjs/models/components/productpriceseattiersoutput.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpriceseattiersoutput.js +5 -0
- package/dist/commonjs/models/components/productpriceseattiersoutput.js.map +1 -1
- package/dist/commonjs/models/components/seattiertype.d.ts +12 -0
- package/dist/commonjs/models/components/seattiertype.d.ts.map +1 -0
- package/dist/commonjs/models/components/seattiertype.js +49 -0
- package/dist/commonjs/models/components/seattiertype.js.map +1 -0
- package/dist/commonjs/models/components/taxbehavioroption.d.ts +13 -0
- package/dist/commonjs/models/components/taxbehavioroption.d.ts.map +1 -0
- package/dist/commonjs/models/components/taxbehavioroption.js +50 -0
- package/dist/commonjs/models/components/taxbehavioroption.js.map +1 -0
- package/dist/esm/funcs/benefitsDelete.js.map +1 -1
- package/dist/esm/funcs/benefitsGet.js.map +1 -1
- package/dist/esm/funcs/benefitsGrants.js.map +1 -1
- package/dist/esm/funcs/benefitsUpdate.js.map +1 -1
- package/dist/esm/funcs/checkoutLinksDelete.js.map +1 -1
- package/dist/esm/funcs/checkoutLinksGet.js.map +1 -1
- package/dist/esm/funcs/checkoutLinksUpdate.js.map +1 -1
- package/dist/esm/funcs/checkoutsClientConfirm.js.map +1 -1
- package/dist/esm/funcs/checkoutsClientGet.js.map +1 -1
- package/dist/esm/funcs/checkoutsClientUpdate.js.map +1 -1
- package/dist/esm/funcs/checkoutsGet.js.map +1 -1
- package/dist/esm/funcs/checkoutsUpdate.js.map +1 -1
- package/dist/esm/funcs/customFieldsDelete.js.map +1 -1
- package/dist/esm/funcs/customFieldsGet.js.map +1 -1
- package/dist/esm/funcs/customFieldsUpdate.js.map +1 -1
- package/dist/esm/funcs/customerMetersGet.js.map +1 -1
- package/dist/esm/funcs/customerPortalBenefitGrantsGet.js.map +1 -1
- package/dist/esm/funcs/customerPortalBenefitGrantsUpdate.js.map +1 -1
- package/dist/esm/funcs/customerPortalCustomerMetersGet.js.map +1 -1
- package/dist/esm/funcs/customerPortalCustomersDeletePaymentMethod.js.map +1 -1
- package/dist/esm/funcs/customerPortalLicenseKeysGet.js.map +1 -1
- package/dist/esm/funcs/customerPortalMembersRemoveMember.js.map +1 -1
- package/dist/esm/funcs/customerPortalMembersUpdateMember.js.map +1 -1
- package/dist/esm/funcs/customerPortalOrdersConfirmRetryPayment.js.map +1 -1
- package/dist/esm/funcs/customerPortalOrdersGenerateInvoice.js.map +1 -1
- package/dist/esm/funcs/customerPortalOrdersGet.js.map +1 -1
- package/dist/esm/funcs/customerPortalOrdersGetPaymentStatus.js.map +1 -1
- package/dist/esm/funcs/customerPortalOrdersInvoice.js.map +1 -1
- package/dist/esm/funcs/customerPortalOrdersUpdate.js.map +1 -1
- package/dist/esm/funcs/customerPortalOrganizationsGet.js.map +1 -1
- package/dist/esm/funcs/customerPortalSeatsResendInvitation.js.map +1 -1
- package/dist/esm/funcs/customerPortalSeatsRevokeSeat.js.map +1 -1
- package/dist/esm/funcs/customerPortalSubscriptionsCancel.js.map +1 -1
- package/dist/esm/funcs/customerPortalSubscriptionsGet.js.map +1 -1
- package/dist/esm/funcs/customerPortalSubscriptionsUpdate.js.map +1 -1
- package/dist/esm/funcs/customerPortalWalletsGet.js.map +1 -1
- package/dist/esm/funcs/customerSeatsGetClaimInfo.js.map +1 -1
- package/dist/esm/funcs/customerSeatsResendInvitation.js.map +1 -1
- package/dist/esm/funcs/customerSeatsRevokeSeat.js.map +1 -1
- package/dist/esm/funcs/customersDelete.js.map +1 -1
- package/dist/esm/funcs/customersDeleteExternal.js.map +1 -1
- package/dist/esm/funcs/customersGet.js.map +1 -1
- package/dist/esm/funcs/customersGetExternal.js.map +1 -1
- package/dist/esm/funcs/customersGetState.js.map +1 -1
- package/dist/esm/funcs/customersGetStateExternal.js.map +1 -1
- package/dist/esm/funcs/customersUpdate.js.map +1 -1
- package/dist/esm/funcs/customersUpdateExternal.js.map +1 -1
- package/dist/esm/funcs/discountsDelete.js.map +1 -1
- package/dist/esm/funcs/discountsGet.js.map +1 -1
- package/dist/esm/funcs/discountsUpdate.js.map +1 -1
- package/dist/esm/funcs/disputesGet.js.map +1 -1
- package/dist/esm/funcs/eventTypesUpdate.js.map +1 -1
- package/dist/esm/funcs/eventsGet.js.map +1 -1
- package/dist/esm/funcs/filesDelete.js.map +1 -1
- package/dist/esm/funcs/filesUpdate.js.map +1 -1
- package/dist/esm/funcs/filesUploaded.js.map +1 -1
- package/dist/esm/funcs/licenseKeysGet.js.map +1 -1
- package/dist/esm/funcs/licenseKeysGetActivation.js.map +1 -1
- package/dist/esm/funcs/licenseKeysUpdate.js.map +1 -1
- package/dist/esm/funcs/membersDeleteMember.js.map +1 -1
- package/dist/esm/funcs/membersGetMember.js.map +1 -1
- package/dist/esm/funcs/membersUpdateMember.js.map +1 -1
- package/dist/esm/funcs/metersGet.js.map +1 -1
- package/dist/esm/funcs/metersQuantities.js.map +1 -1
- package/dist/esm/funcs/metersUpdate.js.map +1 -1
- package/dist/esm/funcs/oauth2ClientsDelete.js.map +1 -1
- package/dist/esm/funcs/oauth2ClientsGet.js.map +1 -1
- package/dist/esm/funcs/oauth2ClientsUpdate.js.map +1 -1
- package/dist/esm/funcs/ordersGenerateInvoice.js.map +1 -1
- package/dist/esm/funcs/ordersGet.js.map +1 -1
- package/dist/esm/funcs/ordersInvoice.js.map +1 -1
- package/dist/esm/funcs/ordersUpdate.js.map +1 -1
- package/dist/esm/funcs/organizationAccessTokensDelete.js.map +1 -1
- package/dist/esm/funcs/organizationAccessTokensUpdate.js.map +1 -1
- package/dist/esm/funcs/organizationsGet.js.map +1 -1
- package/dist/esm/funcs/organizationsUpdate.js.map +1 -1
- package/dist/esm/funcs/paymentsGet.js.map +1 -1
- package/dist/esm/funcs/productsGet.js.map +1 -1
- package/dist/esm/funcs/productsUpdate.js.map +1 -1
- package/dist/esm/funcs/productsUpdateBenefits.js.map +1 -1
- package/dist/esm/funcs/subscriptionsGet.js.map +1 -1
- package/dist/esm/funcs/subscriptionsRevoke.js.map +1 -1
- package/dist/esm/funcs/subscriptionsUpdate.js.map +1 -1
- package/dist/esm/funcs/webhooksDeleteWebhookEndpoint.js.map +1 -1
- package/dist/esm/funcs/webhooksGetWebhookEndpoint.js.map +1 -1
- package/dist/esm/funcs/webhooksRedeliverWebhookEvent.js.map +1 -1
- package/dist/esm/funcs/webhooksResetWebhookEndpointSecret.js.map +1 -1
- package/dist/esm/funcs/webhooksUpdateWebhookEndpoint.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/encodings.d.ts.map +1 -1
- package/dist/esm/lib/encodings.js +20 -5
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +8 -4
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/lib/url.d.ts.map +1 -1
- package/dist/esm/lib/url.js +4 -2
- package/dist/esm/lib/url.js.map +1 -1
- package/dist/esm/models/components/checkout.d.ts +0 -5
- package/dist/esm/models/components/checkout.d.ts.map +1 -1
- package/dist/esm/models/components/checkout.js +0 -4
- package/dist/esm/models/components/checkout.js.map +1 -1
- package/dist/esm/models/components/checkoutpublic.d.ts +0 -4
- package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublic.js +0 -2
- package/dist/esm/models/components/checkoutpublic.js.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +0 -4
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.js +0 -2
- package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/esm/models/components/legacyrecurringproductpricecustom.d.ts +6 -0
- package/dist/esm/models/components/legacyrecurringproductpricecustom.d.ts.map +1 -1
- package/dist/esm/models/components/legacyrecurringproductpricecustom.js +5 -0
- package/dist/esm/models/components/legacyrecurringproductpricecustom.js.map +1 -1
- package/dist/esm/models/components/legacyrecurringproductpricefixed.d.ts +6 -0
- package/dist/esm/models/components/legacyrecurringproductpricefixed.d.ts.map +1 -1
- package/dist/esm/models/components/legacyrecurringproductpricefixed.js +5 -0
- package/dist/esm/models/components/legacyrecurringproductpricefixed.js.map +1 -1
- package/dist/esm/models/components/legacyrecurringproductpricefree.d.ts +6 -0
- package/dist/esm/models/components/legacyrecurringproductpricefree.d.ts.map +1 -1
- package/dist/esm/models/components/legacyrecurringproductpricefree.js +5 -0
- package/dist/esm/models/components/legacyrecurringproductpricefree.js.map +1 -1
- package/dist/esm/models/components/organization.d.ts +4 -1
- package/dist/esm/models/components/organization.d.ts.map +1 -1
- package/dist/esm/models/components/organization.js +5 -0
- package/dist/esm/models/components/organization.js.map +1 -1
- package/dist/esm/models/components/organizationcreate.d.ts +3 -0
- package/dist/esm/models/components/organizationcreate.d.ts.map +1 -1
- package/dist/esm/models/components/organizationcreate.js +3 -0
- package/dist/esm/models/components/organizationcreate.js.map +1 -1
- package/dist/esm/models/components/organizationdetails.d.ts +26 -6
- package/dist/esm/models/components/organizationdetails.d.ts.map +1 -1
- package/dist/esm/models/components/organizationdetails.js +8 -4
- package/dist/esm/models/components/organizationdetails.js.map +1 -1
- package/dist/esm/models/components/organizationupdate.d.ts +6 -0
- package/dist/esm/models/components/organizationupdate.d.ts.map +1 -1
- package/dist/esm/models/components/organizationupdate.js +3 -0
- package/dist/esm/models/components/organizationupdate.js.map +1 -1
- package/dist/esm/models/components/productpricecustom.d.ts +6 -0
- package/dist/esm/models/components/productpricecustom.d.ts.map +1 -1
- package/dist/esm/models/components/productpricecustom.js +5 -0
- package/dist/esm/models/components/productpricecustom.js.map +1 -1
- package/dist/esm/models/components/productpricecustomcreate.d.ts +6 -0
- package/dist/esm/models/components/productpricecustomcreate.d.ts.map +1 -1
- package/dist/esm/models/components/productpricecustomcreate.js +3 -0
- package/dist/esm/models/components/productpricecustomcreate.js.map +1 -1
- package/dist/esm/models/components/productpricefixed.d.ts +6 -0
- package/dist/esm/models/components/productpricefixed.d.ts.map +1 -1
- package/dist/esm/models/components/productpricefixed.js +5 -0
- package/dist/esm/models/components/productpricefixed.js.map +1 -1
- package/dist/esm/models/components/productpricefixedcreate.d.ts +6 -0
- package/dist/esm/models/components/productpricefixedcreate.d.ts.map +1 -1
- package/dist/esm/models/components/productpricefixedcreate.js +3 -0
- package/dist/esm/models/components/productpricefixedcreate.js.map +1 -1
- package/dist/esm/models/components/productpricefree.d.ts +6 -0
- package/dist/esm/models/components/productpricefree.d.ts.map +1 -1
- package/dist/esm/models/components/productpricefree.js +5 -0
- package/dist/esm/models/components/productpricefree.js.map +1 -1
- package/dist/esm/models/components/productpricefreecreate.d.ts +6 -0
- package/dist/esm/models/components/productpricefreecreate.d.ts.map +1 -1
- package/dist/esm/models/components/productpricefreecreate.js +3 -0
- package/dist/esm/models/components/productpricefreecreate.js.map +1 -1
- package/dist/esm/models/components/productpricemeteredunit.d.ts +6 -0
- package/dist/esm/models/components/productpricemeteredunit.d.ts.map +1 -1
- package/dist/esm/models/components/productpricemeteredunit.js +5 -0
- package/dist/esm/models/components/productpricemeteredunit.js.map +1 -1
- package/dist/esm/models/components/productpricemeteredunitcreate.d.ts +6 -0
- package/dist/esm/models/components/productpricemeteredunitcreate.d.ts.map +1 -1
- package/dist/esm/models/components/productpricemeteredunitcreate.js +3 -0
- package/dist/esm/models/components/productpricemeteredunitcreate.js.map +1 -1
- package/dist/esm/models/components/productpriceseatbased.d.ts +6 -0
- package/dist/esm/models/components/productpriceseatbased.d.ts.map +1 -1
- package/dist/esm/models/components/productpriceseatbased.js +5 -0
- package/dist/esm/models/components/productpriceseatbased.js.map +1 -1
- package/dist/esm/models/components/productpriceseatbasedcreate.d.ts +6 -0
- package/dist/esm/models/components/productpriceseatbasedcreate.d.ts.map +1 -1
- package/dist/esm/models/components/productpriceseatbasedcreate.js +3 -0
- package/dist/esm/models/components/productpriceseatbasedcreate.js.map +1 -1
- package/dist/esm/models/components/productpriceseattiersinput.d.ts +3 -0
- package/dist/esm/models/components/productpriceseattiersinput.d.ts.map +1 -1
- package/dist/esm/models/components/productpriceseattiersinput.js +9 -2
- package/dist/esm/models/components/productpriceseattiersinput.js.map +1 -1
- package/dist/esm/models/components/productpriceseattiersoutput.d.ts +3 -0
- package/dist/esm/models/components/productpriceseattiersoutput.d.ts.map +1 -1
- package/dist/esm/models/components/productpriceseattiersoutput.js +5 -0
- package/dist/esm/models/components/productpriceseattiersoutput.js.map +1 -1
- package/dist/esm/models/components/seattiertype.d.ts +12 -0
- package/dist/esm/models/components/seattiertype.d.ts.map +1 -0
- package/dist/esm/models/components/seattiertype.js +13 -0
- package/dist/esm/models/components/seattiertype.js.map +1 -0
- package/dist/esm/models/components/taxbehavioroption.d.ts +13 -0
- package/dist/esm/models/components/taxbehavioroption.d.ts.map +1 -0
- package/dist/esm/models/components/taxbehavioroption.js +14 -0
- package/dist/esm/models/components/taxbehavioroption.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/benefitsDelete.ts +0 -1
- package/src/funcs/benefitsGet.ts +0 -1
- package/src/funcs/benefitsGrants.ts +0 -1
- package/src/funcs/benefitsUpdate.ts +0 -1
- package/src/funcs/checkoutLinksDelete.ts +0 -1
- package/src/funcs/checkoutLinksGet.ts +0 -1
- package/src/funcs/checkoutLinksUpdate.ts +0 -1
- package/src/funcs/checkoutsClientConfirm.ts +0 -1
- package/src/funcs/checkoutsClientGet.ts +0 -1
- package/src/funcs/checkoutsClientUpdate.ts +0 -1
- package/src/funcs/checkoutsGet.ts +0 -1
- package/src/funcs/checkoutsUpdate.ts +0 -1
- package/src/funcs/customFieldsDelete.ts +0 -1
- package/src/funcs/customFieldsGet.ts +0 -1
- package/src/funcs/customFieldsUpdate.ts +0 -1
- package/src/funcs/customerMetersGet.ts +0 -1
- package/src/funcs/customerPortalBenefitGrantsGet.ts +0 -1
- package/src/funcs/customerPortalBenefitGrantsUpdate.ts +0 -1
- package/src/funcs/customerPortalCustomerMetersGet.ts +0 -1
- package/src/funcs/customerPortalCustomersDeletePaymentMethod.ts +0 -1
- package/src/funcs/customerPortalLicenseKeysGet.ts +0 -1
- package/src/funcs/customerPortalMembersRemoveMember.ts +0 -1
- package/src/funcs/customerPortalMembersUpdateMember.ts +0 -1
- package/src/funcs/customerPortalOrdersConfirmRetryPayment.ts +0 -1
- package/src/funcs/customerPortalOrdersGenerateInvoice.ts +0 -1
- package/src/funcs/customerPortalOrdersGet.ts +0 -1
- package/src/funcs/customerPortalOrdersGetPaymentStatus.ts +0 -1
- package/src/funcs/customerPortalOrdersInvoice.ts +0 -1
- package/src/funcs/customerPortalOrdersUpdate.ts +0 -1
- package/src/funcs/customerPortalOrganizationsGet.ts +0 -1
- package/src/funcs/customerPortalSeatsResendInvitation.ts +0 -1
- package/src/funcs/customerPortalSeatsRevokeSeat.ts +0 -1
- package/src/funcs/customerPortalSubscriptionsCancel.ts +0 -1
- package/src/funcs/customerPortalSubscriptionsGet.ts +0 -1
- package/src/funcs/customerPortalSubscriptionsUpdate.ts +0 -1
- package/src/funcs/customerPortalWalletsGet.ts +0 -1
- package/src/funcs/customerSeatsGetClaimInfo.ts +0 -1
- package/src/funcs/customerSeatsResendInvitation.ts +0 -1
- package/src/funcs/customerSeatsRevokeSeat.ts +0 -1
- package/src/funcs/customersDelete.ts +0 -1
- package/src/funcs/customersDeleteExternal.ts +0 -1
- package/src/funcs/customersGet.ts +0 -1
- package/src/funcs/customersGetExternal.ts +0 -1
- package/src/funcs/customersGetState.ts +0 -1
- package/src/funcs/customersGetStateExternal.ts +0 -1
- package/src/funcs/customersUpdate.ts +0 -1
- package/src/funcs/customersUpdateExternal.ts +0 -1
- package/src/funcs/discountsDelete.ts +0 -1
- package/src/funcs/discountsGet.ts +0 -1
- package/src/funcs/discountsUpdate.ts +0 -1
- package/src/funcs/disputesGet.ts +0 -1
- package/src/funcs/eventTypesUpdate.ts +0 -1
- package/src/funcs/eventsGet.ts +0 -1
- package/src/funcs/filesDelete.ts +0 -1
- package/src/funcs/filesUpdate.ts +0 -1
- package/src/funcs/filesUploaded.ts +0 -1
- package/src/funcs/licenseKeysGet.ts +0 -1
- package/src/funcs/licenseKeysGetActivation.ts +0 -1
- package/src/funcs/licenseKeysUpdate.ts +0 -1
- package/src/funcs/membersDeleteMember.ts +0 -1
- package/src/funcs/membersGetMember.ts +0 -1
- package/src/funcs/membersUpdateMember.ts +0 -1
- package/src/funcs/metersGet.ts +0 -1
- package/src/funcs/metersQuantities.ts +0 -1
- package/src/funcs/metersUpdate.ts +0 -1
- package/src/funcs/oauth2ClientsDelete.ts +0 -1
- package/src/funcs/oauth2ClientsGet.ts +0 -1
- package/src/funcs/oauth2ClientsUpdate.ts +0 -1
- package/src/funcs/ordersGenerateInvoice.ts +0 -1
- package/src/funcs/ordersGet.ts +0 -1
- package/src/funcs/ordersInvoice.ts +0 -1
- package/src/funcs/ordersUpdate.ts +0 -1
- package/src/funcs/organizationAccessTokensDelete.ts +0 -1
- package/src/funcs/organizationAccessTokensUpdate.ts +0 -1
- package/src/funcs/organizationsGet.ts +0 -1
- package/src/funcs/organizationsUpdate.ts +0 -1
- package/src/funcs/paymentsGet.ts +0 -1
- package/src/funcs/productsGet.ts +0 -1
- package/src/funcs/productsUpdate.ts +0 -1
- package/src/funcs/productsUpdateBenefits.ts +0 -1
- package/src/funcs/subscriptionsGet.ts +0 -1
- package/src/funcs/subscriptionsRevoke.ts +0 -1
- package/src/funcs/subscriptionsUpdate.ts +0 -1
- package/src/funcs/webhooksDeleteWebhookEndpoint.ts +0 -1
- package/src/funcs/webhooksGetWebhookEndpoint.ts +0 -1
- package/src/funcs/webhooksRedeliverWebhookEvent.ts +0 -1
- package/src/funcs/webhooksResetWebhookEndpointSecret.ts +0 -1
- package/src/funcs/webhooksUpdateWebhookEndpoint.ts +0 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +23 -4
- package/src/lib/sdks.ts +7 -5
- package/src/lib/url.ts +16 -14
- package/src/models/components/checkout.ts +0 -9
- package/src/models/components/checkoutpublic.ts +0 -6
- package/src/models/components/checkoutpublicconfirmed.ts +0 -6
- package/src/models/components/legacyrecurringproductpricecustom.ts +14 -0
- package/src/models/components/legacyrecurringproductpricefixed.ts +14 -0
- package/src/models/components/legacyrecurringproductpricefree.ts +14 -0
- package/src/models/components/organization.ts +12 -1
- package/src/models/components/organizationcreate.ts +8 -0
- package/src/models/components/organizationdetails.ts +34 -10
- package/src/models/components/organizationupdate.ts +13 -0
- package/src/models/components/productpricecustom.ts +14 -0
- package/src/models/components/productpricecustomcreate.ts +11 -0
- package/src/models/components/productpricefixed.ts +14 -0
- package/src/models/components/productpricefixedcreate.ts +11 -0
- package/src/models/components/productpricefree.ts +14 -0
- package/src/models/components/productpricefreecreate.ts +11 -0
- package/src/models/components/productpricemeteredunit.ts +14 -0
- package/src/models/components/productpricemeteredunitcreate.ts +11 -0
- package/src/models/components/productpriceseatbased.ts +14 -0
- package/src/models/components/productpriceseatbasedcreate.ts +11 -0
- package/src/models/components/productpriceseattiersinput.ts +15 -3
- package/src/models/components/productpriceseattiersoutput.ts +11 -0
- package/src/models/components/seattiertype.ts +20 -0
- package/src/models/components/taxbehavioroption.ts +25 -0
|
@@ -12,6 +12,11 @@ import {
|
|
|
12
12
|
ProductPriceSource$inboundSchema,
|
|
13
13
|
ProductPriceSource$outboundSchema,
|
|
14
14
|
} from "./productpricesource.js";
|
|
15
|
+
import {
|
|
16
|
+
TaxBehaviorOption,
|
|
17
|
+
TaxBehaviorOption$inboundSchema,
|
|
18
|
+
TaxBehaviorOption$outboundSchema,
|
|
19
|
+
} from "./taxbehavioroption.js";
|
|
15
20
|
|
|
16
21
|
/**
|
|
17
22
|
* A free price for a product.
|
|
@@ -35,6 +40,10 @@ export type ProductPriceFree = {
|
|
|
35
40
|
* The currency in which the customer will be charged.
|
|
36
41
|
*/
|
|
37
42
|
priceCurrency: string;
|
|
43
|
+
/**
|
|
44
|
+
* The tax behavior of the price. If null, it defaults to the organization's default tax behavior.
|
|
45
|
+
*/
|
|
46
|
+
taxBehavior: TaxBehaviorOption | null;
|
|
38
47
|
/**
|
|
39
48
|
* Whether the price is archived and no longer available.
|
|
40
49
|
*/
|
|
@@ -62,6 +71,7 @@ export const ProductPriceFree$inboundSchema: z.ZodMiniType<
|
|
|
62
71
|
source: ProductPriceSource$inboundSchema,
|
|
63
72
|
amount_type: z.literal("free"),
|
|
64
73
|
price_currency: z.string(),
|
|
74
|
+
tax_behavior: z.nullable(TaxBehaviorOption$inboundSchema),
|
|
65
75
|
is_archived: z.boolean(),
|
|
66
76
|
product_id: z.string(),
|
|
67
77
|
}),
|
|
@@ -71,6 +81,7 @@ export const ProductPriceFree$inboundSchema: z.ZodMiniType<
|
|
|
71
81
|
"modified_at": "modifiedAt",
|
|
72
82
|
"amount_type": "amountType",
|
|
73
83
|
"price_currency": "priceCurrency",
|
|
84
|
+
"tax_behavior": "taxBehavior",
|
|
74
85
|
"is_archived": "isArchived",
|
|
75
86
|
"product_id": "productId",
|
|
76
87
|
});
|
|
@@ -84,6 +95,7 @@ export type ProductPriceFree$Outbound = {
|
|
|
84
95
|
source: string;
|
|
85
96
|
amount_type: "free";
|
|
86
97
|
price_currency: string;
|
|
98
|
+
tax_behavior: string | null;
|
|
87
99
|
is_archived: boolean;
|
|
88
100
|
product_id: string;
|
|
89
101
|
};
|
|
@@ -100,6 +112,7 @@ export const ProductPriceFree$outboundSchema: z.ZodMiniType<
|
|
|
100
112
|
source: ProductPriceSource$outboundSchema,
|
|
101
113
|
amountType: z.literal("free"),
|
|
102
114
|
priceCurrency: z.string(),
|
|
115
|
+
taxBehavior: z.nullable(TaxBehaviorOption$outboundSchema),
|
|
103
116
|
isArchived: z.boolean(),
|
|
104
117
|
productId: z.string(),
|
|
105
118
|
}),
|
|
@@ -109,6 +122,7 @@ export const ProductPriceFree$outboundSchema: z.ZodMiniType<
|
|
|
109
122
|
modifiedAt: "modified_at",
|
|
110
123
|
amountType: "amount_type",
|
|
111
124
|
priceCurrency: "price_currency",
|
|
125
|
+
taxBehavior: "tax_behavior",
|
|
112
126
|
isArchived: "is_archived",
|
|
113
127
|
productId: "product_id",
|
|
114
128
|
});
|
|
@@ -8,6 +8,10 @@ import {
|
|
|
8
8
|
PresentmentCurrency,
|
|
9
9
|
PresentmentCurrency$outboundSchema,
|
|
10
10
|
} from "./presentmentcurrency.js";
|
|
11
|
+
import {
|
|
12
|
+
TaxBehaviorOption,
|
|
13
|
+
TaxBehaviorOption$outboundSchema,
|
|
14
|
+
} from "./taxbehavioroption.js";
|
|
11
15
|
|
|
12
16
|
/**
|
|
13
17
|
* Schema to create a free price.
|
|
@@ -15,12 +19,17 @@ import {
|
|
|
15
19
|
export type ProductPriceFreeCreate = {
|
|
16
20
|
amountType: "free";
|
|
17
21
|
priceCurrency?: PresentmentCurrency | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* The tax behavior of the price. If not set, it will default to the organization's default tax behavior.
|
|
24
|
+
*/
|
|
25
|
+
taxBehavior?: TaxBehaviorOption | null | undefined;
|
|
18
26
|
};
|
|
19
27
|
|
|
20
28
|
/** @internal */
|
|
21
29
|
export type ProductPriceFreeCreate$Outbound = {
|
|
22
30
|
amount_type: "free";
|
|
23
31
|
price_currency?: string | undefined;
|
|
32
|
+
tax_behavior?: string | null | undefined;
|
|
24
33
|
};
|
|
25
34
|
|
|
26
35
|
/** @internal */
|
|
@@ -31,11 +40,13 @@ export const ProductPriceFreeCreate$outboundSchema: z.ZodMiniType<
|
|
|
31
40
|
z.object({
|
|
32
41
|
amountType: z.literal("free"),
|
|
33
42
|
priceCurrency: z.optional(PresentmentCurrency$outboundSchema),
|
|
43
|
+
taxBehavior: z.optional(z.nullable(TaxBehaviorOption$outboundSchema)),
|
|
34
44
|
}),
|
|
35
45
|
z.transform((v) => {
|
|
36
46
|
return remap$(v, {
|
|
37
47
|
amountType: "amount_type",
|
|
38
48
|
priceCurrency: "price_currency",
|
|
49
|
+
taxBehavior: "tax_behavior",
|
|
39
50
|
});
|
|
40
51
|
}),
|
|
41
52
|
);
|
|
@@ -18,6 +18,11 @@ import {
|
|
|
18
18
|
ProductPriceSource$inboundSchema,
|
|
19
19
|
ProductPriceSource$outboundSchema,
|
|
20
20
|
} from "./productpricesource.js";
|
|
21
|
+
import {
|
|
22
|
+
TaxBehaviorOption,
|
|
23
|
+
TaxBehaviorOption$inboundSchema,
|
|
24
|
+
TaxBehaviorOption$outboundSchema,
|
|
25
|
+
} from "./taxbehavioroption.js";
|
|
21
26
|
|
|
22
27
|
/**
|
|
23
28
|
* A metered, usage-based, price for a product, with a fixed unit price.
|
|
@@ -41,6 +46,10 @@ export type ProductPriceMeteredUnit = {
|
|
|
41
46
|
* The currency in which the customer will be charged.
|
|
42
47
|
*/
|
|
43
48
|
priceCurrency: string;
|
|
49
|
+
/**
|
|
50
|
+
* The tax behavior of the price. If null, it defaults to the organization's default tax behavior.
|
|
51
|
+
*/
|
|
52
|
+
taxBehavior: TaxBehaviorOption | null;
|
|
44
53
|
/**
|
|
45
54
|
* Whether the price is archived and no longer available.
|
|
46
55
|
*/
|
|
@@ -84,6 +93,7 @@ export const ProductPriceMeteredUnit$inboundSchema: z.ZodMiniType<
|
|
|
84
93
|
source: ProductPriceSource$inboundSchema,
|
|
85
94
|
amount_type: z.literal("metered_unit"),
|
|
86
95
|
price_currency: z.string(),
|
|
96
|
+
tax_behavior: z.nullable(TaxBehaviorOption$inboundSchema),
|
|
87
97
|
is_archived: z.boolean(),
|
|
88
98
|
product_id: z.string(),
|
|
89
99
|
unit_amount: z.string(),
|
|
@@ -97,6 +107,7 @@ export const ProductPriceMeteredUnit$inboundSchema: z.ZodMiniType<
|
|
|
97
107
|
"modified_at": "modifiedAt",
|
|
98
108
|
"amount_type": "amountType",
|
|
99
109
|
"price_currency": "priceCurrency",
|
|
110
|
+
"tax_behavior": "taxBehavior",
|
|
100
111
|
"is_archived": "isArchived",
|
|
101
112
|
"product_id": "productId",
|
|
102
113
|
"unit_amount": "unitAmount",
|
|
@@ -113,6 +124,7 @@ export type ProductPriceMeteredUnit$Outbound = {
|
|
|
113
124
|
source: string;
|
|
114
125
|
amount_type: "metered_unit";
|
|
115
126
|
price_currency: string;
|
|
127
|
+
tax_behavior: string | null;
|
|
116
128
|
is_archived: boolean;
|
|
117
129
|
product_id: string;
|
|
118
130
|
unit_amount: string;
|
|
@@ -133,6 +145,7 @@ export const ProductPriceMeteredUnit$outboundSchema: z.ZodMiniType<
|
|
|
133
145
|
source: ProductPriceSource$outboundSchema,
|
|
134
146
|
amountType: z.literal("metered_unit"),
|
|
135
147
|
priceCurrency: z.string(),
|
|
148
|
+
taxBehavior: z.nullable(TaxBehaviorOption$outboundSchema),
|
|
136
149
|
isArchived: z.boolean(),
|
|
137
150
|
productId: z.string(),
|
|
138
151
|
unitAmount: z.string(),
|
|
@@ -146,6 +159,7 @@ export const ProductPriceMeteredUnit$outboundSchema: z.ZodMiniType<
|
|
|
146
159
|
modifiedAt: "modified_at",
|
|
147
160
|
amountType: "amount_type",
|
|
148
161
|
priceCurrency: "price_currency",
|
|
162
|
+
taxBehavior: "tax_behavior",
|
|
149
163
|
isArchived: "is_archived",
|
|
150
164
|
productId: "product_id",
|
|
151
165
|
unitAmount: "unit_amount",
|
|
@@ -9,6 +9,10 @@ import {
|
|
|
9
9
|
PresentmentCurrency,
|
|
10
10
|
PresentmentCurrency$outboundSchema,
|
|
11
11
|
} from "./presentmentcurrency.js";
|
|
12
|
+
import {
|
|
13
|
+
TaxBehaviorOption,
|
|
14
|
+
TaxBehaviorOption$outboundSchema,
|
|
15
|
+
} from "./taxbehavioroption.js";
|
|
12
16
|
|
|
13
17
|
/**
|
|
14
18
|
* The price per unit in cents. Supports up to 12 decimal places.
|
|
@@ -21,6 +25,10 @@ export type UnitAmount = number | string;
|
|
|
21
25
|
export type ProductPriceMeteredUnitCreate = {
|
|
22
26
|
amountType: "metered_unit";
|
|
23
27
|
priceCurrency?: PresentmentCurrency | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The tax behavior of the price. If not set, it will default to the organization's default tax behavior.
|
|
30
|
+
*/
|
|
31
|
+
taxBehavior?: TaxBehaviorOption | null | undefined;
|
|
24
32
|
/**
|
|
25
33
|
* The ID of the meter associated to the price.
|
|
26
34
|
*/
|
|
@@ -52,6 +60,7 @@ export function unitAmountToJSON(unitAmount: UnitAmount): string {
|
|
|
52
60
|
export type ProductPriceMeteredUnitCreate$Outbound = {
|
|
53
61
|
amount_type: "metered_unit";
|
|
54
62
|
price_currency?: string | undefined;
|
|
63
|
+
tax_behavior?: string | null | undefined;
|
|
55
64
|
meter_id: string;
|
|
56
65
|
unit_amount: number | string;
|
|
57
66
|
cap_amount?: number | null | undefined;
|
|
@@ -65,6 +74,7 @@ export const ProductPriceMeteredUnitCreate$outboundSchema: z.ZodMiniType<
|
|
|
65
74
|
z.object({
|
|
66
75
|
amountType: z.literal("metered_unit"),
|
|
67
76
|
priceCurrency: z.optional(PresentmentCurrency$outboundSchema),
|
|
77
|
+
taxBehavior: z.optional(z.nullable(TaxBehaviorOption$outboundSchema)),
|
|
68
78
|
meterId: z.string(),
|
|
69
79
|
unitAmount: smartUnion([z.number(), z.string()]),
|
|
70
80
|
capAmount: z.optional(z.nullable(z.int())),
|
|
@@ -73,6 +83,7 @@ export const ProductPriceMeteredUnitCreate$outboundSchema: z.ZodMiniType<
|
|
|
73
83
|
return remap$(v, {
|
|
74
84
|
amountType: "amount_type",
|
|
75
85
|
priceCurrency: "price_currency",
|
|
86
|
+
taxBehavior: "tax_behavior",
|
|
76
87
|
meterId: "meter_id",
|
|
77
88
|
unitAmount: "unit_amount",
|
|
78
89
|
capAmount: "cap_amount",
|
|
@@ -18,6 +18,11 @@ import {
|
|
|
18
18
|
ProductPriceSource$inboundSchema,
|
|
19
19
|
ProductPriceSource$outboundSchema,
|
|
20
20
|
} from "./productpricesource.js";
|
|
21
|
+
import {
|
|
22
|
+
TaxBehaviorOption,
|
|
23
|
+
TaxBehaviorOption$inboundSchema,
|
|
24
|
+
TaxBehaviorOption$outboundSchema,
|
|
25
|
+
} from "./taxbehavioroption.js";
|
|
21
26
|
|
|
22
27
|
/**
|
|
23
28
|
* A seat-based price for a product.
|
|
@@ -41,6 +46,10 @@ export type ProductPriceSeatBased = {
|
|
|
41
46
|
* The currency in which the customer will be charged.
|
|
42
47
|
*/
|
|
43
48
|
priceCurrency: string;
|
|
49
|
+
/**
|
|
50
|
+
* The tax behavior of the price. If null, it defaults to the organization's default tax behavior.
|
|
51
|
+
*/
|
|
52
|
+
taxBehavior: TaxBehaviorOption | null;
|
|
44
53
|
/**
|
|
45
54
|
* Whether the price is archived and no longer available.
|
|
46
55
|
*/
|
|
@@ -78,6 +87,7 @@ export const ProductPriceSeatBased$inboundSchema: z.ZodMiniType<
|
|
|
78
87
|
source: ProductPriceSource$inboundSchema,
|
|
79
88
|
amount_type: z.literal("seat_based"),
|
|
80
89
|
price_currency: z.string(),
|
|
90
|
+
tax_behavior: z.nullable(TaxBehaviorOption$inboundSchema),
|
|
81
91
|
is_archived: z.boolean(),
|
|
82
92
|
product_id: z.string(),
|
|
83
93
|
seat_tiers: ProductPriceSeatTiersOutput$inboundSchema,
|
|
@@ -88,6 +98,7 @@ export const ProductPriceSeatBased$inboundSchema: z.ZodMiniType<
|
|
|
88
98
|
"modified_at": "modifiedAt",
|
|
89
99
|
"amount_type": "amountType",
|
|
90
100
|
"price_currency": "priceCurrency",
|
|
101
|
+
"tax_behavior": "taxBehavior",
|
|
91
102
|
"is_archived": "isArchived",
|
|
92
103
|
"product_id": "productId",
|
|
93
104
|
"seat_tiers": "seatTiers",
|
|
@@ -102,6 +113,7 @@ export type ProductPriceSeatBased$Outbound = {
|
|
|
102
113
|
source: string;
|
|
103
114
|
amount_type: "seat_based";
|
|
104
115
|
price_currency: string;
|
|
116
|
+
tax_behavior: string | null;
|
|
105
117
|
is_archived: boolean;
|
|
106
118
|
product_id: string;
|
|
107
119
|
seat_tiers: ProductPriceSeatTiersOutput$Outbound;
|
|
@@ -119,6 +131,7 @@ export const ProductPriceSeatBased$outboundSchema: z.ZodMiniType<
|
|
|
119
131
|
source: ProductPriceSource$outboundSchema,
|
|
120
132
|
amountType: z.literal("seat_based"),
|
|
121
133
|
priceCurrency: z.string(),
|
|
134
|
+
taxBehavior: z.nullable(TaxBehaviorOption$outboundSchema),
|
|
122
135
|
isArchived: z.boolean(),
|
|
123
136
|
productId: z.string(),
|
|
124
137
|
seatTiers: ProductPriceSeatTiersOutput$outboundSchema,
|
|
@@ -129,6 +142,7 @@ export const ProductPriceSeatBased$outboundSchema: z.ZodMiniType<
|
|
|
129
142
|
modifiedAt: "modified_at",
|
|
130
143
|
amountType: "amount_type",
|
|
131
144
|
priceCurrency: "price_currency",
|
|
145
|
+
taxBehavior: "tax_behavior",
|
|
132
146
|
isArchived: "is_archived",
|
|
133
147
|
productId: "product_id",
|
|
134
148
|
seatTiers: "seat_tiers",
|
|
@@ -13,6 +13,10 @@ import {
|
|
|
13
13
|
ProductPriceSeatTiersInput$Outbound,
|
|
14
14
|
ProductPriceSeatTiersInput$outboundSchema,
|
|
15
15
|
} from "./productpriceseattiersinput.js";
|
|
16
|
+
import {
|
|
17
|
+
TaxBehaviorOption,
|
|
18
|
+
TaxBehaviorOption$outboundSchema,
|
|
19
|
+
} from "./taxbehavioroption.js";
|
|
16
20
|
|
|
17
21
|
/**
|
|
18
22
|
* Schema to create a seat-based price with volume-based tiers.
|
|
@@ -20,6 +24,10 @@ import {
|
|
|
20
24
|
export type ProductPriceSeatBasedCreate = {
|
|
21
25
|
amountType: "seat_based";
|
|
22
26
|
priceCurrency?: PresentmentCurrency | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* The tax behavior of the price. If not set, it will default to the organization's default tax behavior.
|
|
29
|
+
*/
|
|
30
|
+
taxBehavior?: TaxBehaviorOption | null | undefined;
|
|
23
31
|
/**
|
|
24
32
|
* List of pricing tiers for seat-based pricing.
|
|
25
33
|
*
|
|
@@ -36,6 +44,7 @@ export type ProductPriceSeatBasedCreate = {
|
|
|
36
44
|
export type ProductPriceSeatBasedCreate$Outbound = {
|
|
37
45
|
amount_type: "seat_based";
|
|
38
46
|
price_currency?: string | undefined;
|
|
47
|
+
tax_behavior?: string | null | undefined;
|
|
39
48
|
seat_tiers: ProductPriceSeatTiersInput$Outbound;
|
|
40
49
|
};
|
|
41
50
|
|
|
@@ -47,12 +56,14 @@ export const ProductPriceSeatBasedCreate$outboundSchema: z.ZodMiniType<
|
|
|
47
56
|
z.object({
|
|
48
57
|
amountType: z.literal("seat_based"),
|
|
49
58
|
priceCurrency: z.optional(PresentmentCurrency$outboundSchema),
|
|
59
|
+
taxBehavior: z.optional(z.nullable(TaxBehaviorOption$outboundSchema)),
|
|
50
60
|
seatTiers: ProductPriceSeatTiersInput$outboundSchema,
|
|
51
61
|
}),
|
|
52
62
|
z.transform((v) => {
|
|
53
63
|
return remap$(v, {
|
|
54
64
|
amountType: "amount_type",
|
|
55
65
|
priceCurrency: "price_currency",
|
|
66
|
+
taxBehavior: "tax_behavior",
|
|
56
67
|
seatTiers: "seat_tiers",
|
|
57
68
|
});
|
|
58
69
|
}),
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import {
|
|
7
8
|
ProductPriceSeatTier,
|
|
8
9
|
ProductPriceSeatTier$Outbound,
|
|
9
10
|
ProductPriceSeatTier$outboundSchema,
|
|
10
11
|
} from "./productpriceseattier.js";
|
|
12
|
+
import { SeatTierType, SeatTierType$outboundSchema } from "./seattiertype.js";
|
|
11
13
|
|
|
12
14
|
/**
|
|
13
15
|
* List of pricing tiers for seat-based pricing.
|
|
@@ -19,6 +21,7 @@ import {
|
|
|
19
21
|
* - maximum_seats = last tier's max_seats (None for unlimited)
|
|
20
22
|
*/
|
|
21
23
|
export type ProductPriceSeatTiersInput = {
|
|
24
|
+
seatTierType?: SeatTierType | undefined;
|
|
22
25
|
/**
|
|
23
26
|
* List of pricing tiers
|
|
24
27
|
*/
|
|
@@ -27,6 +30,7 @@ export type ProductPriceSeatTiersInput = {
|
|
|
27
30
|
|
|
28
31
|
/** @internal */
|
|
29
32
|
export type ProductPriceSeatTiersInput$Outbound = {
|
|
33
|
+
seat_tier_type?: string | undefined;
|
|
30
34
|
tiers: Array<ProductPriceSeatTier$Outbound>;
|
|
31
35
|
};
|
|
32
36
|
|
|
@@ -34,9 +38,17 @@ export type ProductPriceSeatTiersInput$Outbound = {
|
|
|
34
38
|
export const ProductPriceSeatTiersInput$outboundSchema: z.ZodMiniType<
|
|
35
39
|
ProductPriceSeatTiersInput$Outbound,
|
|
36
40
|
ProductPriceSeatTiersInput
|
|
37
|
-
> = z.
|
|
38
|
-
|
|
39
|
-
|
|
41
|
+
> = z.pipe(
|
|
42
|
+
z.object({
|
|
43
|
+
seatTierType: z.optional(SeatTierType$outboundSchema),
|
|
44
|
+
tiers: z.array(ProductPriceSeatTier$outboundSchema),
|
|
45
|
+
}),
|
|
46
|
+
z.transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
seatTierType: "seat_tier_type",
|
|
49
|
+
});
|
|
50
|
+
}),
|
|
51
|
+
);
|
|
40
52
|
|
|
41
53
|
export function productPriceSeatTiersInputToJSON(
|
|
42
54
|
productPriceSeatTiersInput: ProductPriceSeatTiersInput,
|
|
@@ -13,6 +13,11 @@ import {
|
|
|
13
13
|
ProductPriceSeatTier$Outbound,
|
|
14
14
|
ProductPriceSeatTier$outboundSchema,
|
|
15
15
|
} from "./productpriceseattier.js";
|
|
16
|
+
import {
|
|
17
|
+
SeatTierType,
|
|
18
|
+
SeatTierType$inboundSchema,
|
|
19
|
+
SeatTierType$outboundSchema,
|
|
20
|
+
} from "./seattiertype.js";
|
|
16
21
|
|
|
17
22
|
/**
|
|
18
23
|
* List of pricing tiers for seat-based pricing.
|
|
@@ -24,6 +29,7 @@ import {
|
|
|
24
29
|
* - maximum_seats = last tier's max_seats (None for unlimited)
|
|
25
30
|
*/
|
|
26
31
|
export type ProductPriceSeatTiersOutput = {
|
|
32
|
+
seatTierType?: SeatTierType | undefined;
|
|
27
33
|
/**
|
|
28
34
|
* List of pricing tiers
|
|
29
35
|
*/
|
|
@@ -44,12 +50,14 @@ export const ProductPriceSeatTiersOutput$inboundSchema: z.ZodMiniType<
|
|
|
44
50
|
unknown
|
|
45
51
|
> = z.pipe(
|
|
46
52
|
z.object({
|
|
53
|
+
seat_tier_type: z.optional(SeatTierType$inboundSchema),
|
|
47
54
|
tiers: z.array(ProductPriceSeatTier$inboundSchema),
|
|
48
55
|
minimum_seats: z.int(),
|
|
49
56
|
maximum_seats: z.nullable(z.int()),
|
|
50
57
|
}),
|
|
51
58
|
z.transform((v) => {
|
|
52
59
|
return remap$(v, {
|
|
60
|
+
"seat_tier_type": "seatTierType",
|
|
53
61
|
"minimum_seats": "minimumSeats",
|
|
54
62
|
"maximum_seats": "maximumSeats",
|
|
55
63
|
});
|
|
@@ -57,6 +65,7 @@ export const ProductPriceSeatTiersOutput$inboundSchema: z.ZodMiniType<
|
|
|
57
65
|
);
|
|
58
66
|
/** @internal */
|
|
59
67
|
export type ProductPriceSeatTiersOutput$Outbound = {
|
|
68
|
+
seat_tier_type?: string | undefined;
|
|
60
69
|
tiers: Array<ProductPriceSeatTier$Outbound>;
|
|
61
70
|
minimum_seats: number;
|
|
62
71
|
maximum_seats: number | null;
|
|
@@ -68,12 +77,14 @@ export const ProductPriceSeatTiersOutput$outboundSchema: z.ZodMiniType<
|
|
|
68
77
|
ProductPriceSeatTiersOutput
|
|
69
78
|
> = z.pipe(
|
|
70
79
|
z.object({
|
|
80
|
+
seatTierType: z.optional(SeatTierType$outboundSchema),
|
|
71
81
|
tiers: z.array(ProductPriceSeatTier$outboundSchema),
|
|
72
82
|
minimumSeats: z.int(),
|
|
73
83
|
maximumSeats: z.nullable(z.int()),
|
|
74
84
|
}),
|
|
75
85
|
z.transform((v) => {
|
|
76
86
|
return remap$(v, {
|
|
87
|
+
seatTierType: "seat_tier_type",
|
|
77
88
|
minimumSeats: "minimum_seats",
|
|
78
89
|
maximumSeats: "maximum_seats",
|
|
79
90
|
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const SeatTierType = {
|
|
10
|
+
Volume: "volume",
|
|
11
|
+
Graduated: "graduated",
|
|
12
|
+
} as const;
|
|
13
|
+
export type SeatTierType = OpenEnum<typeof SeatTierType>;
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const SeatTierType$inboundSchema: z.ZodMiniType<SeatTierType, unknown> =
|
|
17
|
+
openEnums.inboundSchema(SeatTierType);
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const SeatTierType$outboundSchema: z.ZodMiniType<string, SeatTierType> =
|
|
20
|
+
openEnums.outboundSchema(SeatTierType);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
|
+
|
|
9
|
+
export const TaxBehaviorOption = {
|
|
10
|
+
Location: "location",
|
|
11
|
+
Inclusive: "inclusive",
|
|
12
|
+
Exclusive: "exclusive",
|
|
13
|
+
} as const;
|
|
14
|
+
export type TaxBehaviorOption = OpenEnum<typeof TaxBehaviorOption>;
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const TaxBehaviorOption$inboundSchema: z.ZodMiniType<
|
|
18
|
+
TaxBehaviorOption,
|
|
19
|
+
unknown
|
|
20
|
+
> = openEnums.inboundSchema(TaxBehaviorOption);
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const TaxBehaviorOption$outboundSchema: z.ZodMiniType<
|
|
23
|
+
string,
|
|
24
|
+
TaxBehaviorOption
|
|
25
|
+
> = openEnums.outboundSchema(TaxBehaviorOption);
|