@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
|
@@ -17,6 +17,11 @@ import {
|
|
|
17
17
|
SubscriptionRecurringInterval$inboundSchema,
|
|
18
18
|
SubscriptionRecurringInterval$outboundSchema,
|
|
19
19
|
} from "./subscriptionrecurringinterval.js";
|
|
20
|
+
import {
|
|
21
|
+
TaxBehaviorOption,
|
|
22
|
+
TaxBehaviorOption$inboundSchema,
|
|
23
|
+
TaxBehaviorOption$outboundSchema,
|
|
24
|
+
} from "./taxbehavioroption.js";
|
|
20
25
|
|
|
21
26
|
/**
|
|
22
27
|
* A pay-what-you-want recurring price for a product, i.e. a subscription.
|
|
@@ -44,6 +49,10 @@ export type LegacyRecurringProductPriceCustom = {
|
|
|
44
49
|
* The currency in which the customer will be charged.
|
|
45
50
|
*/
|
|
46
51
|
priceCurrency: string;
|
|
52
|
+
/**
|
|
53
|
+
* The tax behavior of the price. If null, it defaults to the organization's default tax behavior.
|
|
54
|
+
*/
|
|
55
|
+
taxBehavior: TaxBehaviorOption | null;
|
|
47
56
|
/**
|
|
48
57
|
* Whether the price is archived and no longer available.
|
|
49
58
|
*/
|
|
@@ -89,6 +98,7 @@ export const LegacyRecurringProductPriceCustom$inboundSchema: z.ZodMiniType<
|
|
|
89
98
|
source: ProductPriceSource$inboundSchema,
|
|
90
99
|
amount_type: z.literal("custom"),
|
|
91
100
|
price_currency: z.string(),
|
|
101
|
+
tax_behavior: z.nullable(TaxBehaviorOption$inboundSchema),
|
|
92
102
|
is_archived: z.boolean(),
|
|
93
103
|
product_id: z.string(),
|
|
94
104
|
type: z.literal("recurring"),
|
|
@@ -104,6 +114,7 @@ export const LegacyRecurringProductPriceCustom$inboundSchema: z.ZodMiniType<
|
|
|
104
114
|
"modified_at": "modifiedAt",
|
|
105
115
|
"amount_type": "amountType",
|
|
106
116
|
"price_currency": "priceCurrency",
|
|
117
|
+
"tax_behavior": "taxBehavior",
|
|
107
118
|
"is_archived": "isArchived",
|
|
108
119
|
"product_id": "productId",
|
|
109
120
|
"recurring_interval": "recurringInterval",
|
|
@@ -121,6 +132,7 @@ export type LegacyRecurringProductPriceCustom$Outbound = {
|
|
|
121
132
|
source: string;
|
|
122
133
|
amount_type: "custom";
|
|
123
134
|
price_currency: string;
|
|
135
|
+
tax_behavior: string | null;
|
|
124
136
|
is_archived: boolean;
|
|
125
137
|
product_id: string;
|
|
126
138
|
type: "recurring";
|
|
@@ -143,6 +155,7 @@ export const LegacyRecurringProductPriceCustom$outboundSchema: z.ZodMiniType<
|
|
|
143
155
|
source: ProductPriceSource$outboundSchema,
|
|
144
156
|
amountType: z.literal("custom"),
|
|
145
157
|
priceCurrency: z.string(),
|
|
158
|
+
taxBehavior: z.nullable(TaxBehaviorOption$outboundSchema),
|
|
146
159
|
isArchived: z.boolean(),
|
|
147
160
|
productId: z.string(),
|
|
148
161
|
type: z.literal("recurring"),
|
|
@@ -158,6 +171,7 @@ export const LegacyRecurringProductPriceCustom$outboundSchema: z.ZodMiniType<
|
|
|
158
171
|
modifiedAt: "modified_at",
|
|
159
172
|
amountType: "amount_type",
|
|
160
173
|
priceCurrency: "price_currency",
|
|
174
|
+
taxBehavior: "tax_behavior",
|
|
161
175
|
isArchived: "is_archived",
|
|
162
176
|
productId: "product_id",
|
|
163
177
|
recurringInterval: "recurring_interval",
|
|
@@ -17,6 +17,11 @@ import {
|
|
|
17
17
|
SubscriptionRecurringInterval$inboundSchema,
|
|
18
18
|
SubscriptionRecurringInterval$outboundSchema,
|
|
19
19
|
} from "./subscriptionrecurringinterval.js";
|
|
20
|
+
import {
|
|
21
|
+
TaxBehaviorOption,
|
|
22
|
+
TaxBehaviorOption$inboundSchema,
|
|
23
|
+
TaxBehaviorOption$outboundSchema,
|
|
24
|
+
} from "./taxbehavioroption.js";
|
|
20
25
|
|
|
21
26
|
/**
|
|
22
27
|
* A recurring price for a product, i.e. a subscription.
|
|
@@ -44,6 +49,10 @@ export type LegacyRecurringProductPriceFixed = {
|
|
|
44
49
|
* The currency in which the customer will be charged.
|
|
45
50
|
*/
|
|
46
51
|
priceCurrency: string;
|
|
52
|
+
/**
|
|
53
|
+
* The tax behavior of the price. If null, it defaults to the organization's default tax behavior.
|
|
54
|
+
*/
|
|
55
|
+
taxBehavior: TaxBehaviorOption | null;
|
|
47
56
|
/**
|
|
48
57
|
* Whether the price is archived and no longer available.
|
|
49
58
|
*/
|
|
@@ -81,6 +90,7 @@ export const LegacyRecurringProductPriceFixed$inboundSchema: z.ZodMiniType<
|
|
|
81
90
|
source: ProductPriceSource$inboundSchema,
|
|
82
91
|
amount_type: z.literal("fixed"),
|
|
83
92
|
price_currency: z.string(),
|
|
93
|
+
tax_behavior: z.nullable(TaxBehaviorOption$inboundSchema),
|
|
84
94
|
is_archived: z.boolean(),
|
|
85
95
|
product_id: z.string(),
|
|
86
96
|
type: z.literal("recurring"),
|
|
@@ -94,6 +104,7 @@ export const LegacyRecurringProductPriceFixed$inboundSchema: z.ZodMiniType<
|
|
|
94
104
|
"modified_at": "modifiedAt",
|
|
95
105
|
"amount_type": "amountType",
|
|
96
106
|
"price_currency": "priceCurrency",
|
|
107
|
+
"tax_behavior": "taxBehavior",
|
|
97
108
|
"is_archived": "isArchived",
|
|
98
109
|
"product_id": "productId",
|
|
99
110
|
"recurring_interval": "recurringInterval",
|
|
@@ -109,6 +120,7 @@ export type LegacyRecurringProductPriceFixed$Outbound = {
|
|
|
109
120
|
source: string;
|
|
110
121
|
amount_type: "fixed";
|
|
111
122
|
price_currency: string;
|
|
123
|
+
tax_behavior: string | null;
|
|
112
124
|
is_archived: boolean;
|
|
113
125
|
product_id: string;
|
|
114
126
|
type: "recurring";
|
|
@@ -129,6 +141,7 @@ export const LegacyRecurringProductPriceFixed$outboundSchema: z.ZodMiniType<
|
|
|
129
141
|
source: ProductPriceSource$outboundSchema,
|
|
130
142
|
amountType: z.literal("fixed"),
|
|
131
143
|
priceCurrency: z.string(),
|
|
144
|
+
taxBehavior: z.nullable(TaxBehaviorOption$outboundSchema),
|
|
132
145
|
isArchived: z.boolean(),
|
|
133
146
|
productId: z.string(),
|
|
134
147
|
type: z.literal("recurring"),
|
|
@@ -142,6 +155,7 @@ export const LegacyRecurringProductPriceFixed$outboundSchema: z.ZodMiniType<
|
|
|
142
155
|
modifiedAt: "modified_at",
|
|
143
156
|
amountType: "amount_type",
|
|
144
157
|
priceCurrency: "price_currency",
|
|
158
|
+
taxBehavior: "tax_behavior",
|
|
145
159
|
isArchived: "is_archived",
|
|
146
160
|
productId: "product_id",
|
|
147
161
|
recurringInterval: "recurring_interval",
|
|
@@ -17,6 +17,11 @@ import {
|
|
|
17
17
|
SubscriptionRecurringInterval$inboundSchema,
|
|
18
18
|
SubscriptionRecurringInterval$outboundSchema,
|
|
19
19
|
} from "./subscriptionrecurringinterval.js";
|
|
20
|
+
import {
|
|
21
|
+
TaxBehaviorOption,
|
|
22
|
+
TaxBehaviorOption$inboundSchema,
|
|
23
|
+
TaxBehaviorOption$outboundSchema,
|
|
24
|
+
} from "./taxbehavioroption.js";
|
|
20
25
|
|
|
21
26
|
/**
|
|
22
27
|
* A free recurring price for a product, i.e. a subscription.
|
|
@@ -44,6 +49,10 @@ export type LegacyRecurringProductPriceFree = {
|
|
|
44
49
|
* The currency in which the customer will be charged.
|
|
45
50
|
*/
|
|
46
51
|
priceCurrency: string;
|
|
52
|
+
/**
|
|
53
|
+
* The tax behavior of the price. If null, it defaults to the organization's default tax behavior.
|
|
54
|
+
*/
|
|
55
|
+
taxBehavior: TaxBehaviorOption | null;
|
|
47
56
|
/**
|
|
48
57
|
* Whether the price is archived and no longer available.
|
|
49
58
|
*/
|
|
@@ -77,6 +86,7 @@ export const LegacyRecurringProductPriceFree$inboundSchema: z.ZodMiniType<
|
|
|
77
86
|
source: ProductPriceSource$inboundSchema,
|
|
78
87
|
amount_type: z.literal("free"),
|
|
79
88
|
price_currency: z.string(),
|
|
89
|
+
tax_behavior: z.nullable(TaxBehaviorOption$inboundSchema),
|
|
80
90
|
is_archived: z.boolean(),
|
|
81
91
|
product_id: z.string(),
|
|
82
92
|
type: z.literal("recurring"),
|
|
@@ -89,6 +99,7 @@ export const LegacyRecurringProductPriceFree$inboundSchema: z.ZodMiniType<
|
|
|
89
99
|
"modified_at": "modifiedAt",
|
|
90
100
|
"amount_type": "amountType",
|
|
91
101
|
"price_currency": "priceCurrency",
|
|
102
|
+
"tax_behavior": "taxBehavior",
|
|
92
103
|
"is_archived": "isArchived",
|
|
93
104
|
"product_id": "productId",
|
|
94
105
|
"recurring_interval": "recurringInterval",
|
|
@@ -103,6 +114,7 @@ export type LegacyRecurringProductPriceFree$Outbound = {
|
|
|
103
114
|
source: string;
|
|
104
115
|
amount_type: "free";
|
|
105
116
|
price_currency: string;
|
|
117
|
+
tax_behavior: string | null;
|
|
106
118
|
is_archived: boolean;
|
|
107
119
|
product_id: string;
|
|
108
120
|
type: "recurring";
|
|
@@ -122,6 +134,7 @@ export const LegacyRecurringProductPriceFree$outboundSchema: z.ZodMiniType<
|
|
|
122
134
|
source: ProductPriceSource$outboundSchema,
|
|
123
135
|
amountType: z.literal("free"),
|
|
124
136
|
priceCurrency: z.string(),
|
|
137
|
+
taxBehavior: z.nullable(TaxBehaviorOption$outboundSchema),
|
|
125
138
|
isArchived: z.boolean(),
|
|
126
139
|
productId: z.string(),
|
|
127
140
|
type: z.literal("recurring"),
|
|
@@ -134,6 +147,7 @@ export const LegacyRecurringProductPriceFree$outboundSchema: z.ZodMiniType<
|
|
|
134
147
|
modifiedAt: "modified_at",
|
|
135
148
|
amountType: "amount_type",
|
|
136
149
|
priceCurrency: "price_currency",
|
|
150
|
+
taxBehavior: "tax_behavior",
|
|
137
151
|
isArchived: "is_archived",
|
|
138
152
|
productId: "product_id",
|
|
139
153
|
recurringInterval: "recurring_interval",
|
|
@@ -55,6 +55,11 @@ import {
|
|
|
55
55
|
SubscriptionProrationBehavior$inboundSchema,
|
|
56
56
|
SubscriptionProrationBehavior$outboundSchema,
|
|
57
57
|
} from "./subscriptionprorationbehavior.js";
|
|
58
|
+
import {
|
|
59
|
+
TaxBehaviorOption,
|
|
60
|
+
TaxBehaviorOption$inboundSchema,
|
|
61
|
+
TaxBehaviorOption$outboundSchema,
|
|
62
|
+
} from "./taxbehavioroption.js";
|
|
58
63
|
|
|
59
64
|
export const CountryAlpha2 = {
|
|
60
65
|
Ad: "AD",
|
|
@@ -353,13 +358,14 @@ export type Organization = {
|
|
|
353
358
|
socials: Array<OrganizationSocialLink>;
|
|
354
359
|
status: OrganizationStatus;
|
|
355
360
|
/**
|
|
356
|
-
* When the business details were submitted.
|
|
361
|
+
* When the business details were submitted for review.
|
|
357
362
|
*/
|
|
358
363
|
detailsSubmittedAt: Date | null;
|
|
359
364
|
/**
|
|
360
365
|
* Default presentment currency. Used as fallback in checkout and customer portal, if the customer's local currency is not available.
|
|
361
366
|
*/
|
|
362
367
|
defaultPresentmentCurrency: string;
|
|
368
|
+
defaultTaxBehavior: TaxBehaviorOption;
|
|
363
369
|
/**
|
|
364
370
|
* Organization feature settings
|
|
365
371
|
*/
|
|
@@ -410,6 +416,7 @@ export const Organization$inboundSchema: z.ZodMiniType<Organization, unknown> =
|
|
|
410
416
|
z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v))),
|
|
411
417
|
),
|
|
412
418
|
default_presentment_currency: z.string(),
|
|
419
|
+
default_tax_behavior: TaxBehaviorOption$inboundSchema,
|
|
413
420
|
feature_settings: z.nullable(OrganizationFeatureSettings$inboundSchema),
|
|
414
421
|
subscription_settings: OrganizationSubscriptionSettings$inboundSchema,
|
|
415
422
|
notification_settings: OrganizationNotificationSettings$inboundSchema,
|
|
@@ -427,6 +434,7 @@ export const Organization$inboundSchema: z.ZodMiniType<Organization, unknown> =
|
|
|
427
434
|
"allow_customer_updates": "allowCustomerUpdates",
|
|
428
435
|
"details_submitted_at": "detailsSubmittedAt",
|
|
429
436
|
"default_presentment_currency": "defaultPresentmentCurrency",
|
|
437
|
+
"default_tax_behavior": "defaultTaxBehavior",
|
|
430
438
|
"feature_settings": "featureSettings",
|
|
431
439
|
"subscription_settings": "subscriptionSettings",
|
|
432
440
|
"notification_settings": "notificationSettings",
|
|
@@ -451,6 +459,7 @@ export type Organization$Outbound = {
|
|
|
451
459
|
status: string;
|
|
452
460
|
details_submitted_at: string | null;
|
|
453
461
|
default_presentment_currency: string;
|
|
462
|
+
default_tax_behavior: string;
|
|
454
463
|
feature_settings: OrganizationFeatureSettings$Outbound | null;
|
|
455
464
|
subscription_settings: OrganizationSubscriptionSettings$Outbound;
|
|
456
465
|
notification_settings: OrganizationNotificationSettings$Outbound;
|
|
@@ -481,6 +490,7 @@ export const Organization$outboundSchema: z.ZodMiniType<
|
|
|
481
490
|
z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
482
491
|
),
|
|
483
492
|
defaultPresentmentCurrency: z.string(),
|
|
493
|
+
defaultTaxBehavior: TaxBehaviorOption$outboundSchema,
|
|
484
494
|
featureSettings: z.nullable(OrganizationFeatureSettings$outboundSchema),
|
|
485
495
|
subscriptionSettings: OrganizationSubscriptionSettings$outboundSchema,
|
|
486
496
|
notificationSettings: OrganizationNotificationSettings$outboundSchema,
|
|
@@ -497,6 +507,7 @@ export const Organization$outboundSchema: z.ZodMiniType<
|
|
|
497
507
|
allowCustomerUpdates: "allow_customer_updates",
|
|
498
508
|
detailsSubmittedAt: "details_submitted_at",
|
|
499
509
|
defaultPresentmentCurrency: "default_presentment_currency",
|
|
510
|
+
defaultTaxBehavior: "default_tax_behavior",
|
|
500
511
|
featureSettings: "feature_settings",
|
|
501
512
|
subscriptionSettings: "subscription_settings",
|
|
502
513
|
notificationSettings: "notification_settings",
|
|
@@ -54,6 +54,10 @@ import {
|
|
|
54
54
|
PresentmentCurrency,
|
|
55
55
|
PresentmentCurrency$outboundSchema,
|
|
56
56
|
} from "./presentmentcurrency.js";
|
|
57
|
+
import {
|
|
58
|
+
TaxBehaviorOption,
|
|
59
|
+
TaxBehaviorOption$outboundSchema,
|
|
60
|
+
} from "./taxbehavioroption.js";
|
|
57
61
|
|
|
58
62
|
export type LegalEntity =
|
|
59
63
|
| OrganizationCompanyLegalEntitySchema
|
|
@@ -345,6 +349,7 @@ export type OrganizationCreate = {
|
|
|
345
349
|
| null
|
|
346
350
|
| undefined;
|
|
347
351
|
defaultPresentmentCurrency?: PresentmentCurrency | undefined;
|
|
352
|
+
defaultTaxBehavior?: TaxBehaviorOption | undefined;
|
|
348
353
|
};
|
|
349
354
|
|
|
350
355
|
/** @internal */
|
|
@@ -403,6 +408,7 @@ export type OrganizationCreate$Outbound = {
|
|
|
403
408
|
| null
|
|
404
409
|
| undefined;
|
|
405
410
|
default_presentment_currency?: string | undefined;
|
|
411
|
+
default_tax_behavior?: string | undefined;
|
|
406
412
|
};
|
|
407
413
|
|
|
408
414
|
/** @internal */
|
|
@@ -445,6 +451,7 @@ export const OrganizationCreate$outboundSchema: z.ZodMiniType<
|
|
|
445
451
|
z.nullable(OrganizationCustomerPortalSettings$outboundSchema),
|
|
446
452
|
),
|
|
447
453
|
defaultPresentmentCurrency: z.optional(PresentmentCurrency$outboundSchema),
|
|
454
|
+
defaultTaxBehavior: z.optional(TaxBehaviorOption$outboundSchema),
|
|
448
455
|
}),
|
|
449
456
|
z.transform((v) => {
|
|
450
457
|
return remap$(v, {
|
|
@@ -456,6 +463,7 @@ export const OrganizationCreate$outboundSchema: z.ZodMiniType<
|
|
|
456
463
|
customerEmailSettings: "customer_email_settings",
|
|
457
464
|
customerPortalSettings: "customer_portal_settings",
|
|
458
465
|
defaultPresentmentCurrency: "default_presentment_currency",
|
|
466
|
+
defaultTaxBehavior: "default_tax_behavior",
|
|
459
467
|
});
|
|
460
468
|
}),
|
|
461
469
|
);
|
|
@@ -18,24 +18,40 @@ export type SwitchingFrom = ClosedEnum<typeof SwitchingFrom>;
|
|
|
18
18
|
export type OrganizationDetails = {
|
|
19
19
|
/**
|
|
20
20
|
* Brief information about you and your business.
|
|
21
|
+
*
|
|
22
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
21
23
|
*/
|
|
22
24
|
about?: string | null | undefined;
|
|
23
25
|
/**
|
|
24
26
|
* Description of digital products being sold.
|
|
25
27
|
*/
|
|
26
|
-
productDescription
|
|
28
|
+
productDescription?: string | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Categories of products being sold.
|
|
31
|
+
*/
|
|
32
|
+
sellingCategories?: Array<string> | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Pricing models used by the organization.
|
|
35
|
+
*/
|
|
36
|
+
pricingModels?: Array<string> | undefined;
|
|
27
37
|
/**
|
|
28
38
|
* How the organization will integrate and use Polar.
|
|
39
|
+
*
|
|
40
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
29
41
|
*/
|
|
30
42
|
intendedUse?: string | null | undefined;
|
|
31
43
|
/**
|
|
32
44
|
* Main customer acquisition channels.
|
|
45
|
+
*
|
|
46
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
33
47
|
*/
|
|
34
48
|
customerAcquisition?: Array<string> | undefined;
|
|
35
49
|
/**
|
|
36
50
|
* Estimated revenue in the next 12 months
|
|
51
|
+
*
|
|
52
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
37
53
|
*/
|
|
38
|
-
futureAnnualRevenue?: number | undefined;
|
|
54
|
+
futureAnnualRevenue?: number | null | undefined;
|
|
39
55
|
/**
|
|
40
56
|
* Switching from another platform?
|
|
41
57
|
*/
|
|
@@ -46,8 +62,10 @@ export type OrganizationDetails = {
|
|
|
46
62
|
switchingFrom?: SwitchingFrom | null | undefined;
|
|
47
63
|
/**
|
|
48
64
|
* Revenue from last year if applicable.
|
|
65
|
+
*
|
|
66
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
49
67
|
*/
|
|
50
|
-
previousAnnualRevenue?: number | undefined;
|
|
68
|
+
previousAnnualRevenue?: number | null | undefined;
|
|
51
69
|
};
|
|
52
70
|
|
|
53
71
|
/** @internal */
|
|
@@ -57,13 +75,15 @@ export const SwitchingFrom$outboundSchema: z.ZodMiniEnum<typeof SwitchingFrom> =
|
|
|
57
75
|
/** @internal */
|
|
58
76
|
export type OrganizationDetails$Outbound = {
|
|
59
77
|
about?: string | null | undefined;
|
|
60
|
-
product_description
|
|
78
|
+
product_description?: string | null | undefined;
|
|
79
|
+
selling_categories?: Array<string> | undefined;
|
|
80
|
+
pricing_models?: Array<string> | undefined;
|
|
61
81
|
intended_use?: string | null | undefined;
|
|
62
82
|
customer_acquisition?: Array<string> | undefined;
|
|
63
|
-
future_annual_revenue
|
|
83
|
+
future_annual_revenue?: number | null | undefined;
|
|
64
84
|
switching: boolean;
|
|
65
85
|
switching_from?: string | null | undefined;
|
|
66
|
-
previous_annual_revenue
|
|
86
|
+
previous_annual_revenue?: number | null | undefined;
|
|
67
87
|
};
|
|
68
88
|
|
|
69
89
|
/** @internal */
|
|
@@ -73,17 +93,21 @@ export const OrganizationDetails$outboundSchema: z.ZodMiniType<
|
|
|
73
93
|
> = z.pipe(
|
|
74
94
|
z.object({
|
|
75
95
|
about: z.optional(z.nullable(z.string())),
|
|
76
|
-
productDescription: z.string(),
|
|
96
|
+
productDescription: z.optional(z.nullable(z.string())),
|
|
97
|
+
sellingCategories: z.optional(z.array(z.string())),
|
|
98
|
+
pricingModels: z.optional(z.array(z.string())),
|
|
77
99
|
intendedUse: z.optional(z.nullable(z.string())),
|
|
78
100
|
customerAcquisition: z.optional(z.array(z.string())),
|
|
79
|
-
futureAnnualRevenue: z.
|
|
80
|
-
switching: z._default(z.boolean(),
|
|
101
|
+
futureAnnualRevenue: z.optional(z.nullable(z.int())),
|
|
102
|
+
switching: z._default(z.boolean(), false),
|
|
81
103
|
switchingFrom: z.optional(z.nullable(SwitchingFrom$outboundSchema)),
|
|
82
|
-
previousAnnualRevenue: z.
|
|
104
|
+
previousAnnualRevenue: z.optional(z.nullable(z.int())),
|
|
83
105
|
}),
|
|
84
106
|
z.transform((v) => {
|
|
85
107
|
return remap$(v, {
|
|
86
108
|
productDescription: "product_description",
|
|
109
|
+
sellingCategories: "selling_categories",
|
|
110
|
+
pricingModels: "pricing_models",
|
|
87
111
|
intendedUse: "intended_use",
|
|
88
112
|
customerAcquisition: "customer_acquisition",
|
|
89
113
|
futureAnnualRevenue: "future_annual_revenue",
|
|
@@ -44,6 +44,10 @@ import {
|
|
|
44
44
|
PresentmentCurrency,
|
|
45
45
|
PresentmentCurrency$outboundSchema,
|
|
46
46
|
} from "./presentmentcurrency.js";
|
|
47
|
+
import {
|
|
48
|
+
TaxBehaviorOption,
|
|
49
|
+
TaxBehaviorOption$outboundSchema,
|
|
50
|
+
} from "./taxbehavioroption.js";
|
|
47
51
|
|
|
48
52
|
export const CountryCountryAlpha2Input = {
|
|
49
53
|
Ad: "AD",
|
|
@@ -330,6 +334,10 @@ export type OrganizationUpdate = {
|
|
|
330
334
|
* Default presentment currency for the organization
|
|
331
335
|
*/
|
|
332
336
|
defaultPresentmentCurrency?: PresentmentCurrency | null | undefined;
|
|
337
|
+
/**
|
|
338
|
+
* Default tax behavior applied on products.
|
|
339
|
+
*/
|
|
340
|
+
defaultTaxBehavior?: TaxBehaviorOption | null | undefined;
|
|
333
341
|
};
|
|
334
342
|
|
|
335
343
|
/** @internal */
|
|
@@ -364,6 +372,7 @@ export type OrganizationUpdate$Outbound = {
|
|
|
364
372
|
| null
|
|
365
373
|
| undefined;
|
|
366
374
|
default_presentment_currency?: string | null | undefined;
|
|
375
|
+
default_tax_behavior?: string | null | undefined;
|
|
367
376
|
};
|
|
368
377
|
|
|
369
378
|
/** @internal */
|
|
@@ -399,6 +408,9 @@ export const OrganizationUpdate$outboundSchema: z.ZodMiniType<
|
|
|
399
408
|
defaultPresentmentCurrency: z.optional(
|
|
400
409
|
z.nullable(PresentmentCurrency$outboundSchema),
|
|
401
410
|
),
|
|
411
|
+
defaultTaxBehavior: z.optional(
|
|
412
|
+
z.nullable(TaxBehaviorOption$outboundSchema),
|
|
413
|
+
),
|
|
402
414
|
}),
|
|
403
415
|
z.transform((v) => {
|
|
404
416
|
return remap$(v, {
|
|
@@ -409,6 +421,7 @@ export const OrganizationUpdate$outboundSchema: z.ZodMiniType<
|
|
|
409
421
|
customerEmailSettings: "customer_email_settings",
|
|
410
422
|
customerPortalSettings: "customer_portal_settings",
|
|
411
423
|
defaultPresentmentCurrency: "default_presentment_currency",
|
|
424
|
+
defaultTaxBehavior: "default_tax_behavior",
|
|
412
425
|
});
|
|
413
426
|
}),
|
|
414
427
|
);
|
|
@@ -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 pay-what-you-want price for a product.
|
|
@@ -35,6 +40,10 @@ export type ProductPriceCustom = {
|
|
|
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
|
*/
|
|
@@ -74,6 +83,7 @@ export const ProductPriceCustom$inboundSchema: z.ZodMiniType<
|
|
|
74
83
|
source: ProductPriceSource$inboundSchema,
|
|
75
84
|
amount_type: z.literal("custom"),
|
|
76
85
|
price_currency: z.string(),
|
|
86
|
+
tax_behavior: z.nullable(TaxBehaviorOption$inboundSchema),
|
|
77
87
|
is_archived: z.boolean(),
|
|
78
88
|
product_id: z.string(),
|
|
79
89
|
minimum_amount: z.int(),
|
|
@@ -86,6 +96,7 @@ export const ProductPriceCustom$inboundSchema: z.ZodMiniType<
|
|
|
86
96
|
"modified_at": "modifiedAt",
|
|
87
97
|
"amount_type": "amountType",
|
|
88
98
|
"price_currency": "priceCurrency",
|
|
99
|
+
"tax_behavior": "taxBehavior",
|
|
89
100
|
"is_archived": "isArchived",
|
|
90
101
|
"product_id": "productId",
|
|
91
102
|
"minimum_amount": "minimumAmount",
|
|
@@ -102,6 +113,7 @@ export type ProductPriceCustom$Outbound = {
|
|
|
102
113
|
source: string;
|
|
103
114
|
amount_type: "custom";
|
|
104
115
|
price_currency: string;
|
|
116
|
+
tax_behavior: string | null;
|
|
105
117
|
is_archived: boolean;
|
|
106
118
|
product_id: string;
|
|
107
119
|
minimum_amount: number;
|
|
@@ -121,6 +133,7 @@ export const ProductPriceCustom$outboundSchema: z.ZodMiniType<
|
|
|
121
133
|
source: ProductPriceSource$outboundSchema,
|
|
122
134
|
amountType: z.literal("custom"),
|
|
123
135
|
priceCurrency: z.string(),
|
|
136
|
+
taxBehavior: z.nullable(TaxBehaviorOption$outboundSchema),
|
|
124
137
|
isArchived: z.boolean(),
|
|
125
138
|
productId: z.string(),
|
|
126
139
|
minimumAmount: z.int(),
|
|
@@ -133,6 +146,7 @@ export const ProductPriceCustom$outboundSchema: z.ZodMiniType<
|
|
|
133
146
|
modifiedAt: "modified_at",
|
|
134
147
|
amountType: "amount_type",
|
|
135
148
|
priceCurrency: "price_currency",
|
|
149
|
+
taxBehavior: "tax_behavior",
|
|
136
150
|
isArchived: "is_archived",
|
|
137
151
|
productId: "product_id",
|
|
138
152
|
minimumAmount: "minimum_amount",
|
|
@@ -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 pay-what-you-want price.
|
|
@@ -15,6 +19,10 @@ import {
|
|
|
15
19
|
export type ProductPriceCustomCreate = {
|
|
16
20
|
amountType: "custom";
|
|
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
|
* The minimum amount the customer can pay. If set to 0, the price is 'free or pay what you want' and $0 is accepted. If set to a value between 1-49, it will be rejected. Defaults to 50 cents.
|
|
20
28
|
*/
|
|
@@ -33,6 +41,7 @@ export type ProductPriceCustomCreate = {
|
|
|
33
41
|
export type ProductPriceCustomCreate$Outbound = {
|
|
34
42
|
amount_type: "custom";
|
|
35
43
|
price_currency?: string | undefined;
|
|
44
|
+
tax_behavior?: string | null | undefined;
|
|
36
45
|
minimum_amount: number;
|
|
37
46
|
maximum_amount?: number | null | undefined;
|
|
38
47
|
preset_amount?: number | null | undefined;
|
|
@@ -46,6 +55,7 @@ export const ProductPriceCustomCreate$outboundSchema: z.ZodMiniType<
|
|
|
46
55
|
z.object({
|
|
47
56
|
amountType: z.literal("custom"),
|
|
48
57
|
priceCurrency: z.optional(PresentmentCurrency$outboundSchema),
|
|
58
|
+
taxBehavior: z.optional(z.nullable(TaxBehaviorOption$outboundSchema)),
|
|
49
59
|
minimumAmount: z._default(z.int(), 50),
|
|
50
60
|
maximumAmount: z.optional(z.nullable(z.int())),
|
|
51
61
|
presetAmount: z.optional(z.nullable(z.int())),
|
|
@@ -54,6 +64,7 @@ export const ProductPriceCustomCreate$outboundSchema: z.ZodMiniType<
|
|
|
54
64
|
return remap$(v, {
|
|
55
65
|
amountType: "amount_type",
|
|
56
66
|
priceCurrency: "price_currency",
|
|
67
|
+
taxBehavior: "tax_behavior",
|
|
57
68
|
minimumAmount: "minimum_amount",
|
|
58
69
|
maximumAmount: "maximum_amount",
|
|
59
70
|
presetAmount: "preset_amount",
|
|
@@ -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 fixed price for a product.
|
|
@@ -35,6 +40,10 @@ export type ProductPriceFixed = {
|
|
|
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
|
*/
|
|
@@ -66,6 +75,7 @@ export const ProductPriceFixed$inboundSchema: z.ZodMiniType<
|
|
|
66
75
|
source: ProductPriceSource$inboundSchema,
|
|
67
76
|
amount_type: z.literal("fixed"),
|
|
68
77
|
price_currency: z.string(),
|
|
78
|
+
tax_behavior: z.nullable(TaxBehaviorOption$inboundSchema),
|
|
69
79
|
is_archived: z.boolean(),
|
|
70
80
|
product_id: z.string(),
|
|
71
81
|
price_amount: z.int(),
|
|
@@ -76,6 +86,7 @@ export const ProductPriceFixed$inboundSchema: z.ZodMiniType<
|
|
|
76
86
|
"modified_at": "modifiedAt",
|
|
77
87
|
"amount_type": "amountType",
|
|
78
88
|
"price_currency": "priceCurrency",
|
|
89
|
+
"tax_behavior": "taxBehavior",
|
|
79
90
|
"is_archived": "isArchived",
|
|
80
91
|
"product_id": "productId",
|
|
81
92
|
"price_amount": "priceAmount",
|
|
@@ -90,6 +101,7 @@ export type ProductPriceFixed$Outbound = {
|
|
|
90
101
|
source: string;
|
|
91
102
|
amount_type: "fixed";
|
|
92
103
|
price_currency: string;
|
|
104
|
+
tax_behavior: string | null;
|
|
93
105
|
is_archived: boolean;
|
|
94
106
|
product_id: string;
|
|
95
107
|
price_amount: number;
|
|
@@ -107,6 +119,7 @@ export const ProductPriceFixed$outboundSchema: z.ZodMiniType<
|
|
|
107
119
|
source: ProductPriceSource$outboundSchema,
|
|
108
120
|
amountType: z.literal("fixed"),
|
|
109
121
|
priceCurrency: z.string(),
|
|
122
|
+
taxBehavior: z.nullable(TaxBehaviorOption$outboundSchema),
|
|
110
123
|
isArchived: z.boolean(),
|
|
111
124
|
productId: z.string(),
|
|
112
125
|
priceAmount: z.int(),
|
|
@@ -117,6 +130,7 @@ export const ProductPriceFixed$outboundSchema: z.ZodMiniType<
|
|
|
117
130
|
modifiedAt: "modified_at",
|
|
118
131
|
amountType: "amount_type",
|
|
119
132
|
priceCurrency: "price_currency",
|
|
133
|
+
taxBehavior: "tax_behavior",
|
|
120
134
|
isArchived: "is_archived",
|
|
121
135
|
productId: "product_id",
|
|
122
136
|
priceAmount: "price_amount",
|
|
@@ -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 fixed price.
|
|
@@ -15,6 +19,10 @@ import {
|
|
|
15
19
|
export type ProductPriceFixedCreate = {
|
|
16
20
|
amountType: "fixed";
|
|
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
|
* The price in cents.
|
|
20
28
|
*
|
|
@@ -59,6 +67,7 @@ export type ProductPriceFixedCreate = {
|
|
|
59
67
|
export type ProductPriceFixedCreate$Outbound = {
|
|
60
68
|
amount_type: "fixed";
|
|
61
69
|
price_currency?: string | undefined;
|
|
70
|
+
tax_behavior?: string | null | undefined;
|
|
62
71
|
price_amount: number;
|
|
63
72
|
};
|
|
64
73
|
|
|
@@ -70,12 +79,14 @@ export const ProductPriceFixedCreate$outboundSchema: z.ZodMiniType<
|
|
|
70
79
|
z.object({
|
|
71
80
|
amountType: z.literal("fixed"),
|
|
72
81
|
priceCurrency: z.optional(PresentmentCurrency$outboundSchema),
|
|
82
|
+
taxBehavior: z.optional(z.nullable(TaxBehaviorOption$outboundSchema)),
|
|
73
83
|
priceAmount: z.int(),
|
|
74
84
|
}),
|
|
75
85
|
z.transform((v) => {
|
|
76
86
|
return remap$(v, {
|
|
77
87
|
amountType: "amount_type",
|
|
78
88
|
priceCurrency: "price_currency",
|
|
89
|
+
taxBehavior: "tax_behavior",
|
|
79
90
|
priceAmount: "price_amount",
|
|
80
91
|
});
|
|
81
92
|
}),
|