@polar-sh/sdk 0.46.3 → 0.46.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/commonjs/funcs/customerPortalSubscriptionsUpdate.d.ts +2 -1
- package/dist/commonjs/funcs/customerPortalSubscriptionsUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/customerPortalSubscriptionsUpdate.js +3 -2
- package/dist/commonjs/funcs/customerPortalSubscriptionsUpdate.js.map +1 -1
- package/dist/commonjs/funcs/membersListMembers.js +1 -0
- package/dist/commonjs/funcs/membersListMembers.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsUpdate.d.ts +2 -1
- package/dist/commonjs/funcs/subscriptionsUpdate.d.ts.map +1 -1
- package/dist/commonjs/funcs/subscriptionsUpdate.js +3 -2
- package/dist/commonjs/funcs/subscriptionsUpdate.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/files.d.ts +13 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -1
- package/dist/commonjs/lib/files.js +19 -0
- package/dist/commonjs/lib/files.js.map +1 -1
- package/dist/commonjs/models/components/address.d.ts +5 -5
- package/dist/commonjs/models/components/address.d.ts.map +1 -1
- package/dist/commonjs/models/components/address.js +6 -6
- package/dist/commonjs/models/components/address.js.map +1 -1
- package/dist/commonjs/models/components/addressinput.d.ts +4 -4
- package/dist/commonjs/models/components/addressinput.d.ts.map +1 -1
- package/dist/commonjs/models/components/addressinput.js +4 -4
- package/dist/commonjs/models/components/addressinput.js.map +1 -1
- package/dist/commonjs/models/components/checkoutdiscountfixedonceforeverduration.d.ts +15 -0
- package/dist/commonjs/models/components/checkoutdiscountfixedonceforeverduration.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutdiscountfixedonceforeverduration.js +2 -0
- package/dist/commonjs/models/components/checkoutdiscountfixedonceforeverduration.js.map +1 -1
- package/dist/commonjs/models/components/checkoutdiscountfixedrepeatduration.d.ts +15 -0
- package/dist/commonjs/models/components/checkoutdiscountfixedrepeatduration.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutdiscountfixedrepeatduration.js +2 -0
- package/dist/commonjs/models/components/checkoutdiscountfixedrepeatduration.js.map +1 -1
- package/dist/commonjs/models/components/customersubscription.d.ts +5 -0
- package/dist/commonjs/models/components/customersubscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/customersubscription.js +3 -0
- package/dist/commonjs/models/components/customersubscription.js.map +1 -1
- package/dist/commonjs/models/components/discountcreate.d.ts +2 -2
- package/dist/commonjs/models/components/discountcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/discountcreate.js +2 -2
- package/dist/commonjs/models/components/discountcreate.js.map +1 -1
- package/dist/commonjs/models/components/discountfixedonceforeverduration.d.ts +12 -0
- package/dist/commonjs/models/components/discountfixedonceforeverduration.d.ts.map +1 -1
- package/dist/commonjs/models/components/discountfixedonceforeverduration.js +1 -0
- package/dist/commonjs/models/components/discountfixedonceforeverduration.js.map +1 -1
- package/dist/commonjs/models/components/discountfixedonceforeverdurationbase.d.ts +15 -0
- package/dist/commonjs/models/components/discountfixedonceforeverdurationbase.d.ts.map +1 -1
- package/dist/commonjs/models/components/discountfixedonceforeverdurationbase.js +2 -0
- package/dist/commonjs/models/components/discountfixedonceforeverdurationbase.js.map +1 -1
- package/dist/commonjs/models/components/discountfixedonceforeverdurationcreate.d.ts +14 -5
- package/dist/commonjs/models/components/discountfixedonceforeverdurationcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/discountfixedonceforeverdurationcreate.js +3 -2
- package/dist/commonjs/models/components/discountfixedonceforeverdurationcreate.js.map +1 -1
- package/dist/commonjs/models/components/discountfixedrepeatduration.d.ts +12 -0
- package/dist/commonjs/models/components/discountfixedrepeatduration.d.ts.map +1 -1
- package/dist/commonjs/models/components/discountfixedrepeatduration.js +1 -0
- package/dist/commonjs/models/components/discountfixedrepeatduration.js.map +1 -1
- package/dist/commonjs/models/components/discountfixedrepeatdurationbase.d.ts +15 -0
- package/dist/commonjs/models/components/discountfixedrepeatdurationbase.d.ts.map +1 -1
- package/dist/commonjs/models/components/discountfixedrepeatdurationbase.js +2 -0
- package/dist/commonjs/models/components/discountfixedrepeatdurationbase.js.map +1 -1
- package/dist/commonjs/models/components/discountfixedrepeatdurationcreate.d.ts +14 -5
- package/dist/commonjs/models/components/discountfixedrepeatdurationcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/discountfixedrepeatdurationcreate.js +3 -2
- package/dist/commonjs/models/components/discountfixedrepeatdurationcreate.js.map +1 -1
- package/dist/commonjs/models/components/discountupdate.d.ts +12 -0
- package/dist/commonjs/models/components/discountupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/discountupdate.js +1 -0
- package/dist/commonjs/models/components/discountupdate.js.map +1 -1
- package/dist/commonjs/models/components/metricperiod.d.ts +9 -9
- package/dist/commonjs/models/components/metricperiod.d.ts.map +1 -1
- package/dist/commonjs/models/components/metricperiod.js +15 -15
- package/dist/commonjs/models/components/metricperiod.js.map +1 -1
- package/dist/commonjs/models/components/metrics.d.ts +2 -2
- package/dist/commonjs/models/components/metrics.d.ts.map +1 -1
- package/dist/commonjs/models/components/metrics.js +4 -4
- package/dist/commonjs/models/components/metrics.js.map +1 -1
- package/dist/commonjs/models/components/metricstotals.d.ts +9 -9
- package/dist/commonjs/models/components/metricstotals.d.ts.map +1 -1
- package/dist/commonjs/models/components/metricstotals.js +15 -15
- package/dist/commonjs/models/components/metricstotals.js.map +1 -1
- package/dist/commonjs/models/components/organization.d.ts +262 -0
- package/dist/commonjs/models/components/organization.d.ts.map +1 -1
- package/dist/commonjs/models/components/organization.js +259 -1
- package/dist/commonjs/models/components/organization.js.map +1 -1
- package/dist/commonjs/models/components/organizationcompanylegalentityschema.d.ts +14 -0
- package/dist/commonjs/models/components/organizationcompanylegalentityschema.d.ts.map +1 -0
- package/dist/commonjs/models/components/organizationcompanylegalentityschema.js +55 -0
- package/dist/commonjs/models/components/organizationcompanylegalentityschema.js.map +1 -0
- package/dist/commonjs/models/components/organizationcreate.d.ts +265 -0
- package/dist/commonjs/models/components/organizationcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationcreate.js +266 -1
- package/dist/commonjs/models/components/organizationcreate.js.map +1 -1
- package/dist/commonjs/models/components/organizationcustomeremailsettings.d.ts +4 -0
- package/dist/commonjs/models/components/organizationcustomeremailsettings.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationcustomeremailsettings.js +8 -0
- package/dist/commonjs/models/components/organizationcustomeremailsettings.js.map +1 -1
- package/dist/commonjs/models/components/organizationdetails.d.ts +7 -7
- package/dist/commonjs/models/components/organizationdetails.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationdetails.js +4 -4
- package/dist/commonjs/models/components/organizationdetails.js.map +1 -1
- package/dist/commonjs/models/components/organizationindividuallegalentityschema.d.ts +12 -0
- package/dist/commonjs/models/components/organizationindividuallegalentityschema.d.ts.map +1 -0
- package/dist/commonjs/models/components/organizationindividuallegalentityschema.js +49 -0
- package/dist/commonjs/models/components/organizationindividuallegalentityschema.js.map +1 -0
- package/dist/commonjs/models/components/organizationupdate.d.ts +255 -0
- package/dist/commonjs/models/components/organizationupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationupdate.js +250 -1
- package/dist/commonjs/models/components/organizationupdate.js.map +1 -1
- package/dist/commonjs/models/components/pendingsubscriptionupdate.d.ts +48 -0
- package/dist/commonjs/models/components/pendingsubscriptionupdate.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendingsubscriptionupdate.js +83 -0
- package/dist/commonjs/models/components/pendingsubscriptionupdate.js.map +1 -0
- package/dist/commonjs/models/components/presentmentcurrency.d.ts +27 -1
- package/dist/commonjs/models/components/presentmentcurrency.d.ts.map +1 -1
- package/dist/commonjs/models/components/presentmentcurrency.js +27 -1
- package/dist/commonjs/models/components/presentmentcurrency.js.map +1 -1
- package/dist/commonjs/models/components/productpricefixedcreate.d.ts +34 -0
- package/dist/commonjs/models/components/productpricefixedcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/productpricefixedcreate.js.map +1 -1
- package/dist/commonjs/models/components/seatassign.d.ts +2 -2
- package/dist/commonjs/models/components/subscription.d.ts +6 -0
- package/dist/commonjs/models/components/subscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscription.js +5 -0
- package/dist/commonjs/models/components/subscription.js.map +1 -1
- package/dist/commonjs/models/components/subscriptionprorationbehavior.d.ts +1 -0
- package/dist/commonjs/models/components/subscriptionprorationbehavior.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscriptionprorationbehavior.js +1 -0
- package/dist/commonjs/models/components/subscriptionprorationbehavior.js.map +1 -1
- package/dist/commonjs/models/components/subscriptionupdatedbillingperiodmetadata.d.ts +11 -0
- package/dist/commonjs/models/components/subscriptionupdatedbillingperiodmetadata.d.ts.map +1 -0
- package/dist/commonjs/models/components/subscriptionupdatedbillingperiodmetadata.js +57 -0
- package/dist/commonjs/models/components/subscriptionupdatedbillingperiodmetadata.js.map +1 -0
- package/dist/commonjs/models/components/subscriptionupdateddiscountmetadata.d.ts +11 -0
- package/dist/commonjs/models/components/subscriptionupdateddiscountmetadata.d.ts.map +1 -0
- package/dist/commonjs/models/components/subscriptionupdateddiscountmetadata.js +57 -0
- package/dist/commonjs/models/components/subscriptionupdateddiscountmetadata.js.map +1 -0
- package/dist/commonjs/models/components/subscriptionupdatedevent.d.ts +75 -0
- package/dist/commonjs/models/components/subscriptionupdatedevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/subscriptionupdatedevent.js +99 -0
- package/dist/commonjs/models/components/subscriptionupdatedevent.js.map +1 -0
- package/dist/commonjs/models/components/subscriptionupdatedproductmetadata.d.ts +13 -0
- package/dist/commonjs/models/components/subscriptionupdatedproductmetadata.d.ts.map +1 -0
- package/dist/commonjs/models/components/subscriptionupdatedproductmetadata.js +60 -0
- package/dist/commonjs/models/components/subscriptionupdatedproductmetadata.js.map +1 -0
- package/dist/commonjs/models/components/subscriptionupdatedseatsmetadata.d.ts +13 -0
- package/dist/commonjs/models/components/subscriptionupdatedseatsmetadata.d.ts.map +1 -0
- package/dist/commonjs/models/components/subscriptionupdatedseatsmetadata.js +59 -0
- package/dist/commonjs/models/components/subscriptionupdatedseatsmetadata.js.map +1 -0
- package/dist/commonjs/models/components/subscriptionupdatedtrialmetadata.d.ts +11 -0
- package/dist/commonjs/models/components/subscriptionupdatedtrialmetadata.d.ts.map +1 -0
- package/dist/commonjs/models/components/subscriptionupdatedtrialmetadata.js +57 -0
- package/dist/commonjs/models/components/subscriptionupdatedtrialmetadata.js.map +1 -0
- package/dist/commonjs/models/components/systemevent.d.ts +2 -1
- package/dist/commonjs/models/components/systemevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/systemevent.js +2 -0
- package/dist/commonjs/models/components/systemevent.js.map +1 -1
- package/dist/commonjs/models/errors/paymentfailed.d.ts +20 -0
- package/dist/commonjs/models/errors/paymentfailed.d.ts.map +1 -0
- package/dist/commonjs/models/errors/paymentfailed.js +69 -0
- package/dist/commonjs/models/errors/paymentfailed.js.map +1 -0
- package/dist/commonjs/models/operations/memberslistmembers.d.ts +6 -0
- package/dist/commonjs/models/operations/memberslistmembers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/memberslistmembers.js +2 -0
- package/dist/commonjs/models/operations/memberslistmembers.js.map +1 -1
- package/dist/commonjs/webhooks.d.ts +1 -1
- package/dist/commonjs/webhooks.d.ts.map +1 -1
- package/dist/commonjs/webhooks.js +15 -0
- package/dist/commonjs/webhooks.js.map +1 -1
- package/dist/esm/funcs/customerPortalSubscriptionsUpdate.d.ts +2 -1
- package/dist/esm/funcs/customerPortalSubscriptionsUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/customerPortalSubscriptionsUpdate.js +3 -2
- package/dist/esm/funcs/customerPortalSubscriptionsUpdate.js.map +1 -1
- package/dist/esm/funcs/membersListMembers.js +1 -0
- package/dist/esm/funcs/membersListMembers.js.map +1 -1
- package/dist/esm/funcs/subscriptionsUpdate.d.ts +2 -1
- package/dist/esm/funcs/subscriptionsUpdate.d.ts.map +1 -1
- package/dist/esm/funcs/subscriptionsUpdate.js +3 -2
- package/dist/esm/funcs/subscriptionsUpdate.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/files.d.ts +13 -0
- package/dist/esm/lib/files.d.ts.map +1 -1
- package/dist/esm/lib/files.js +18 -0
- package/dist/esm/lib/files.js.map +1 -1
- package/dist/esm/models/components/address.d.ts +5 -5
- package/dist/esm/models/components/address.d.ts.map +1 -1
- package/dist/esm/models/components/address.js +5 -5
- package/dist/esm/models/components/address.js.map +1 -1
- package/dist/esm/models/components/addressinput.d.ts +4 -4
- package/dist/esm/models/components/addressinput.d.ts.map +1 -1
- package/dist/esm/models/components/addressinput.js +3 -3
- package/dist/esm/models/components/addressinput.js.map +1 -1
- package/dist/esm/models/components/checkoutdiscountfixedonceforeverduration.d.ts +15 -0
- package/dist/esm/models/components/checkoutdiscountfixedonceforeverduration.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutdiscountfixedonceforeverduration.js +2 -0
- package/dist/esm/models/components/checkoutdiscountfixedonceforeverduration.js.map +1 -1
- package/dist/esm/models/components/checkoutdiscountfixedrepeatduration.d.ts +15 -0
- package/dist/esm/models/components/checkoutdiscountfixedrepeatduration.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutdiscountfixedrepeatduration.js +2 -0
- package/dist/esm/models/components/checkoutdiscountfixedrepeatduration.js.map +1 -1
- package/dist/esm/models/components/customersubscription.d.ts +5 -0
- package/dist/esm/models/components/customersubscription.d.ts.map +1 -1
- package/dist/esm/models/components/customersubscription.js +3 -0
- package/dist/esm/models/components/customersubscription.js.map +1 -1
- package/dist/esm/models/components/discountcreate.d.ts +2 -2
- package/dist/esm/models/components/discountcreate.d.ts.map +1 -1
- package/dist/esm/models/components/discountcreate.js +2 -2
- package/dist/esm/models/components/discountcreate.js.map +1 -1
- package/dist/esm/models/components/discountfixedonceforeverduration.d.ts +12 -0
- package/dist/esm/models/components/discountfixedonceforeverduration.d.ts.map +1 -1
- package/dist/esm/models/components/discountfixedonceforeverduration.js +1 -0
- package/dist/esm/models/components/discountfixedonceforeverduration.js.map +1 -1
- package/dist/esm/models/components/discountfixedonceforeverdurationbase.d.ts +15 -0
- package/dist/esm/models/components/discountfixedonceforeverdurationbase.d.ts.map +1 -1
- package/dist/esm/models/components/discountfixedonceforeverdurationbase.js +2 -0
- package/dist/esm/models/components/discountfixedonceforeverdurationbase.js.map +1 -1
- package/dist/esm/models/components/discountfixedonceforeverdurationcreate.d.ts +14 -5
- package/dist/esm/models/components/discountfixedonceforeverdurationcreate.d.ts.map +1 -1
- package/dist/esm/models/components/discountfixedonceforeverdurationcreate.js +3 -2
- package/dist/esm/models/components/discountfixedonceforeverdurationcreate.js.map +1 -1
- package/dist/esm/models/components/discountfixedrepeatduration.d.ts +12 -0
- package/dist/esm/models/components/discountfixedrepeatduration.d.ts.map +1 -1
- package/dist/esm/models/components/discountfixedrepeatduration.js +1 -0
- package/dist/esm/models/components/discountfixedrepeatduration.js.map +1 -1
- package/dist/esm/models/components/discountfixedrepeatdurationbase.d.ts +15 -0
- package/dist/esm/models/components/discountfixedrepeatdurationbase.d.ts.map +1 -1
- package/dist/esm/models/components/discountfixedrepeatdurationbase.js +2 -0
- package/dist/esm/models/components/discountfixedrepeatdurationbase.js.map +1 -1
- package/dist/esm/models/components/discountfixedrepeatdurationcreate.d.ts +14 -5
- package/dist/esm/models/components/discountfixedrepeatdurationcreate.d.ts.map +1 -1
- package/dist/esm/models/components/discountfixedrepeatdurationcreate.js +3 -2
- package/dist/esm/models/components/discountfixedrepeatdurationcreate.js.map +1 -1
- package/dist/esm/models/components/discountupdate.d.ts +12 -0
- package/dist/esm/models/components/discountupdate.d.ts.map +1 -1
- package/dist/esm/models/components/discountupdate.js +1 -0
- package/dist/esm/models/components/discountupdate.js.map +1 -1
- package/dist/esm/models/components/metricperiod.d.ts +9 -9
- package/dist/esm/models/components/metricperiod.d.ts.map +1 -1
- package/dist/esm/models/components/metricperiod.js +12 -12
- package/dist/esm/models/components/metricperiod.js.map +1 -1
- package/dist/esm/models/components/metrics.d.ts +2 -2
- package/dist/esm/models/components/metrics.d.ts.map +1 -1
- package/dist/esm/models/components/metrics.js +4 -4
- package/dist/esm/models/components/metrics.js.map +1 -1
- package/dist/esm/models/components/metricstotals.d.ts +9 -9
- package/dist/esm/models/components/metricstotals.d.ts.map +1 -1
- package/dist/esm/models/components/metricstotals.js +12 -12
- package/dist/esm/models/components/metricstotals.js.map +1 -1
- package/dist/esm/models/components/organization.d.ts +262 -0
- package/dist/esm/models/components/organization.d.ts.map +1 -1
- package/dist/esm/models/components/organization.js +258 -0
- package/dist/esm/models/components/organization.js.map +1 -1
- package/dist/esm/models/components/organizationcompanylegalentityschema.d.ts +14 -0
- package/dist/esm/models/components/organizationcompanylegalentityschema.d.ts.map +1 -0
- package/dist/esm/models/components/organizationcompanylegalentityschema.js +18 -0
- package/dist/esm/models/components/organizationcompanylegalentityschema.js.map +1 -0
- package/dist/esm/models/components/organizationcreate.d.ts +265 -0
- package/dist/esm/models/components/organizationcreate.d.ts.map +1 -1
- package/dist/esm/models/components/organizationcreate.js +264 -0
- package/dist/esm/models/components/organizationcreate.js.map +1 -1
- package/dist/esm/models/components/organizationcustomeremailsettings.d.ts +4 -0
- package/dist/esm/models/components/organizationcustomeremailsettings.d.ts.map +1 -1
- package/dist/esm/models/components/organizationcustomeremailsettings.js +8 -0
- package/dist/esm/models/components/organizationcustomeremailsettings.js.map +1 -1
- package/dist/esm/models/components/organizationdetails.d.ts +7 -7
- package/dist/esm/models/components/organizationdetails.d.ts.map +1 -1
- package/dist/esm/models/components/organizationdetails.js +4 -4
- package/dist/esm/models/components/organizationdetails.js.map +1 -1
- package/dist/esm/models/components/organizationindividuallegalentityschema.d.ts +12 -0
- package/dist/esm/models/components/organizationindividuallegalentityschema.d.ts.map +1 -0
- package/dist/esm/models/components/organizationindividuallegalentityschema.js +12 -0
- package/dist/esm/models/components/organizationindividuallegalentityschema.js.map +1 -0
- package/dist/esm/models/components/organizationupdate.d.ts +255 -0
- package/dist/esm/models/components/organizationupdate.d.ts.map +1 -1
- package/dist/esm/models/components/organizationupdate.js +249 -0
- package/dist/esm/models/components/organizationupdate.js.map +1 -1
- package/dist/esm/models/components/pendingsubscriptionupdate.d.ts +48 -0
- package/dist/esm/models/components/pendingsubscriptionupdate.d.ts.map +1 -0
- package/dist/esm/models/components/pendingsubscriptionupdate.js +45 -0
- package/dist/esm/models/components/pendingsubscriptionupdate.js.map +1 -0
- package/dist/esm/models/components/presentmentcurrency.d.ts +27 -1
- package/dist/esm/models/components/presentmentcurrency.d.ts.map +1 -1
- package/dist/esm/models/components/presentmentcurrency.js +27 -1
- package/dist/esm/models/components/presentmentcurrency.js.map +1 -1
- package/dist/esm/models/components/productpricefixedcreate.d.ts +34 -0
- package/dist/esm/models/components/productpricefixedcreate.d.ts.map +1 -1
- package/dist/esm/models/components/productpricefixedcreate.js.map +1 -1
- package/dist/esm/models/components/seatassign.d.ts +2 -2
- package/dist/esm/models/components/subscription.d.ts +6 -0
- package/dist/esm/models/components/subscription.d.ts.map +1 -1
- package/dist/esm/models/components/subscription.js +5 -0
- package/dist/esm/models/components/subscription.js.map +1 -1
- package/dist/esm/models/components/subscriptionprorationbehavior.d.ts +1 -0
- package/dist/esm/models/components/subscriptionprorationbehavior.d.ts.map +1 -1
- package/dist/esm/models/components/subscriptionprorationbehavior.js +1 -0
- package/dist/esm/models/components/subscriptionprorationbehavior.js.map +1 -1
- package/dist/esm/models/components/subscriptionupdatedbillingperiodmetadata.d.ts +11 -0
- package/dist/esm/models/components/subscriptionupdatedbillingperiodmetadata.d.ts.map +1 -0
- package/dist/esm/models/components/subscriptionupdatedbillingperiodmetadata.js +20 -0
- package/dist/esm/models/components/subscriptionupdatedbillingperiodmetadata.js.map +1 -0
- package/dist/esm/models/components/subscriptionupdateddiscountmetadata.d.ts +11 -0
- package/dist/esm/models/components/subscriptionupdateddiscountmetadata.d.ts.map +1 -0
- package/dist/esm/models/components/subscriptionupdateddiscountmetadata.js +20 -0
- package/dist/esm/models/components/subscriptionupdateddiscountmetadata.js.map +1 -0
- package/dist/esm/models/components/subscriptionupdatedevent.d.ts +75 -0
- package/dist/esm/models/components/subscriptionupdatedevent.d.ts.map +1 -0
- package/dist/esm/models/components/subscriptionupdatedevent.js +61 -0
- package/dist/esm/models/components/subscriptionupdatedevent.js.map +1 -0
- package/dist/esm/models/components/subscriptionupdatedproductmetadata.d.ts +13 -0
- package/dist/esm/models/components/subscriptionupdatedproductmetadata.d.ts.map +1 -0
- package/dist/esm/models/components/subscriptionupdatedproductmetadata.js +23 -0
- package/dist/esm/models/components/subscriptionupdatedproductmetadata.js.map +1 -0
- package/dist/esm/models/components/subscriptionupdatedseatsmetadata.d.ts +13 -0
- package/dist/esm/models/components/subscriptionupdatedseatsmetadata.d.ts.map +1 -0
- package/dist/esm/models/components/subscriptionupdatedseatsmetadata.js +22 -0
- package/dist/esm/models/components/subscriptionupdatedseatsmetadata.js.map +1 -0
- package/dist/esm/models/components/subscriptionupdatedtrialmetadata.d.ts +11 -0
- package/dist/esm/models/components/subscriptionupdatedtrialmetadata.d.ts.map +1 -0
- package/dist/esm/models/components/subscriptionupdatedtrialmetadata.js +20 -0
- package/dist/esm/models/components/subscriptionupdatedtrialmetadata.js.map +1 -0
- package/dist/esm/models/components/systemevent.d.ts +2 -1
- package/dist/esm/models/components/systemevent.d.ts.map +1 -1
- package/dist/esm/models/components/systemevent.js +2 -0
- package/dist/esm/models/components/systemevent.js.map +1 -1
- package/dist/esm/models/errors/paymentfailed.d.ts +20 -0
- package/dist/esm/models/errors/paymentfailed.d.ts.map +1 -0
- package/dist/esm/models/errors/paymentfailed.js +32 -0
- package/dist/esm/models/errors/paymentfailed.js.map +1 -0
- package/dist/esm/models/operations/memberslistmembers.d.ts +6 -0
- package/dist/esm/models/operations/memberslistmembers.d.ts.map +1 -1
- package/dist/esm/models/operations/memberslistmembers.js +2 -0
- package/dist/esm/models/operations/memberslistmembers.js.map +1 -1
- package/dist/esm/webhooks.d.ts +1 -1
- package/dist/esm/webhooks.d.ts.map +1 -1
- package/dist/esm/webhooks.js +15 -0
- package/dist/esm/webhooks.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/customerPortalSubscriptionsUpdate.ts +9 -1
- package/src/funcs/membersListMembers.ts +1 -0
- package/src/funcs/subscriptionsUpdate.ts +9 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/files.ts +22 -0
- package/src/models/components/address.ts +11 -11
- package/src/models/components/addressinput.ts +9 -7
- package/src/models/components/checkoutdiscountfixedonceforeverduration.ts +13 -0
- package/src/models/components/checkoutdiscountfixedrepeatduration.ts +13 -0
- package/src/models/components/customersubscription.ts +10 -0
- package/src/models/components/discountcreate.ts +8 -8
- package/src/models/components/discountfixedonceforeverduration.ts +11 -0
- package/src/models/components/discountfixedonceforeverdurationbase.ts +13 -0
- package/src/models/components/discountfixedonceforeverdurationcreate.ts +13 -7
- package/src/models/components/discountfixedrepeatduration.ts +11 -0
- package/src/models/components/discountfixedrepeatdurationbase.ts +13 -0
- package/src/models/components/discountfixedrepeatdurationcreate.ts +13 -7
- package/src/models/components/discountupdate.ts +9 -0
- package/src/models/components/metricperiod.ts +31 -31
- package/src/models/components/metrics.ts +6 -6
- package/src/models/components/metricstotals.ts +29 -29
- package/src/models/components/organization.ts +273 -0
- package/src/models/components/organizationcompanylegalentityschema.ts +43 -0
- package/src/models/components/organizationcreate.ts +311 -0
- package/src/models/components/organizationcustomeremailsettings.ts +14 -0
- package/src/models/components/organizationdetails.ts +11 -11
- package/src/models/components/organizationindividuallegalentityschema.ts +34 -0
- package/src/models/components/organizationupdate.ts +262 -0
- package/src/models/components/pendingsubscriptionupdate.ts +119 -0
- package/src/models/components/presentmentcurrency.ts +27 -1
- package/src/models/components/productpricefixedcreate.ts +34 -0
- package/src/models/components/seatassign.ts +2 -2
- package/src/models/components/subscription.ts +15 -0
- package/src/models/components/subscriptionprorationbehavior.ts +1 -0
- package/src/models/components/subscriptionupdatedbillingperiodmetadata.ts +45 -0
- package/src/models/components/subscriptionupdateddiscountmetadata.ts +42 -0
- package/src/models/components/subscriptionupdatedevent.ts +177 -0
- package/src/models/components/subscriptionupdatedproductmetadata.ts +49 -0
- package/src/models/components/subscriptionupdatedseatsmetadata.ts +47 -0
- package/src/models/components/subscriptionupdatedtrialmetadata.ts +41 -0
- package/src/models/components/systemevent.ts +7 -1
- package/src/models/errors/paymentfailed.ts +55 -0
- package/src/models/operations/memberslistmembers.ts +10 -0
- package/src/webhooks.ts +15 -0
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import {
|
|
9
|
+
OrganizationCompanyLegalEntitySchema,
|
|
10
|
+
OrganizationCompanyLegalEntitySchema$Outbound,
|
|
11
|
+
OrganizationCompanyLegalEntitySchema$outboundSchema,
|
|
12
|
+
} from "./organizationcompanylegalentityschema.js";
|
|
7
13
|
import {
|
|
8
14
|
OrganizationCustomerEmailSettings,
|
|
9
15
|
OrganizationCustomerEmailSettings$Outbound,
|
|
@@ -24,6 +30,11 @@ import {
|
|
|
24
30
|
OrganizationFeatureSettings$Outbound,
|
|
25
31
|
OrganizationFeatureSettings$outboundSchema,
|
|
26
32
|
} from "./organizationfeaturesettings.js";
|
|
33
|
+
import {
|
|
34
|
+
OrganizationIndividualLegalEntitySchema,
|
|
35
|
+
OrganizationIndividualLegalEntitySchema$Outbound,
|
|
36
|
+
OrganizationIndividualLegalEntitySchema$outboundSchema,
|
|
37
|
+
} from "./organizationindividuallegalentityschema.js";
|
|
27
38
|
import {
|
|
28
39
|
OrganizationNotificationSettings,
|
|
29
40
|
OrganizationNotificationSettings$Outbound,
|
|
@@ -44,10 +55,267 @@ import {
|
|
|
44
55
|
PresentmentCurrency$outboundSchema,
|
|
45
56
|
} from "./presentmentcurrency.js";
|
|
46
57
|
|
|
58
|
+
export type LegalEntity =
|
|
59
|
+
| OrganizationCompanyLegalEntitySchema
|
|
60
|
+
| OrganizationIndividualLegalEntitySchema;
|
|
61
|
+
|
|
62
|
+
export const CountryAlpha2Input = {
|
|
63
|
+
Ad: "AD",
|
|
64
|
+
Ae: "AE",
|
|
65
|
+
Af: "AF",
|
|
66
|
+
Ag: "AG",
|
|
67
|
+
Ai: "AI",
|
|
68
|
+
Al: "AL",
|
|
69
|
+
Am: "AM",
|
|
70
|
+
Ao: "AO",
|
|
71
|
+
Aq: "AQ",
|
|
72
|
+
Ar: "AR",
|
|
73
|
+
As: "AS",
|
|
74
|
+
At: "AT",
|
|
75
|
+
Au: "AU",
|
|
76
|
+
Aw: "AW",
|
|
77
|
+
Ax: "AX",
|
|
78
|
+
Az: "AZ",
|
|
79
|
+
Ba: "BA",
|
|
80
|
+
Bb: "BB",
|
|
81
|
+
Bd: "BD",
|
|
82
|
+
Be: "BE",
|
|
83
|
+
Bf: "BF",
|
|
84
|
+
Bg: "BG",
|
|
85
|
+
Bh: "BH",
|
|
86
|
+
Bi: "BI",
|
|
87
|
+
Bj: "BJ",
|
|
88
|
+
Bl: "BL",
|
|
89
|
+
Bm: "BM",
|
|
90
|
+
Bn: "BN",
|
|
91
|
+
Bo: "BO",
|
|
92
|
+
Bq: "BQ",
|
|
93
|
+
Br: "BR",
|
|
94
|
+
Bs: "BS",
|
|
95
|
+
Bt: "BT",
|
|
96
|
+
Bv: "BV",
|
|
97
|
+
Bw: "BW",
|
|
98
|
+
By: "BY",
|
|
99
|
+
Bz: "BZ",
|
|
100
|
+
Ca: "CA",
|
|
101
|
+
Cc: "CC",
|
|
102
|
+
Cd: "CD",
|
|
103
|
+
Cf: "CF",
|
|
104
|
+
Cg: "CG",
|
|
105
|
+
Ch: "CH",
|
|
106
|
+
Ci: "CI",
|
|
107
|
+
Ck: "CK",
|
|
108
|
+
Cl: "CL",
|
|
109
|
+
Cm: "CM",
|
|
110
|
+
Cn: "CN",
|
|
111
|
+
Co: "CO",
|
|
112
|
+
Cr: "CR",
|
|
113
|
+
Cv: "CV",
|
|
114
|
+
Cw: "CW",
|
|
115
|
+
Cx: "CX",
|
|
116
|
+
Cy: "CY",
|
|
117
|
+
Cz: "CZ",
|
|
118
|
+
De: "DE",
|
|
119
|
+
Dj: "DJ",
|
|
120
|
+
Dk: "DK",
|
|
121
|
+
Dm: "DM",
|
|
122
|
+
Do: "DO",
|
|
123
|
+
Dz: "DZ",
|
|
124
|
+
Ec: "EC",
|
|
125
|
+
Ee: "EE",
|
|
126
|
+
Eg: "EG",
|
|
127
|
+
Eh: "EH",
|
|
128
|
+
Er: "ER",
|
|
129
|
+
Es: "ES",
|
|
130
|
+
Et: "ET",
|
|
131
|
+
Fi: "FI",
|
|
132
|
+
Fj: "FJ",
|
|
133
|
+
Fk: "FK",
|
|
134
|
+
Fm: "FM",
|
|
135
|
+
Fo: "FO",
|
|
136
|
+
Fr: "FR",
|
|
137
|
+
Ga: "GA",
|
|
138
|
+
Gb: "GB",
|
|
139
|
+
Gd: "GD",
|
|
140
|
+
Ge: "GE",
|
|
141
|
+
Gf: "GF",
|
|
142
|
+
Gg: "GG",
|
|
143
|
+
Gh: "GH",
|
|
144
|
+
Gi: "GI",
|
|
145
|
+
Gl: "GL",
|
|
146
|
+
Gm: "GM",
|
|
147
|
+
Gn: "GN",
|
|
148
|
+
Gp: "GP",
|
|
149
|
+
Gq: "GQ",
|
|
150
|
+
Gr: "GR",
|
|
151
|
+
Gs: "GS",
|
|
152
|
+
Gt: "GT",
|
|
153
|
+
Gu: "GU",
|
|
154
|
+
Gw: "GW",
|
|
155
|
+
Gy: "GY",
|
|
156
|
+
Hk: "HK",
|
|
157
|
+
Hm: "HM",
|
|
158
|
+
Hn: "HN",
|
|
159
|
+
Hr: "HR",
|
|
160
|
+
Ht: "HT",
|
|
161
|
+
Hu: "HU",
|
|
162
|
+
Id: "ID",
|
|
163
|
+
Ie: "IE",
|
|
164
|
+
Il: "IL",
|
|
165
|
+
Im: "IM",
|
|
166
|
+
In: "IN",
|
|
167
|
+
Io: "IO",
|
|
168
|
+
Iq: "IQ",
|
|
169
|
+
Is: "IS",
|
|
170
|
+
It: "IT",
|
|
171
|
+
Je: "JE",
|
|
172
|
+
Jm: "JM",
|
|
173
|
+
Jo: "JO",
|
|
174
|
+
Jp: "JP",
|
|
175
|
+
Ke: "KE",
|
|
176
|
+
Kg: "KG",
|
|
177
|
+
Kh: "KH",
|
|
178
|
+
Ki: "KI",
|
|
179
|
+
Km: "KM",
|
|
180
|
+
Kn: "KN",
|
|
181
|
+
Kr: "KR",
|
|
182
|
+
Kw: "KW",
|
|
183
|
+
Ky: "KY",
|
|
184
|
+
Kz: "KZ",
|
|
185
|
+
La: "LA",
|
|
186
|
+
Lb: "LB",
|
|
187
|
+
Lc: "LC",
|
|
188
|
+
Li: "LI",
|
|
189
|
+
Lk: "LK",
|
|
190
|
+
Lr: "LR",
|
|
191
|
+
Ls: "LS",
|
|
192
|
+
Lt: "LT",
|
|
193
|
+
Lu: "LU",
|
|
194
|
+
Lv: "LV",
|
|
195
|
+
Ly: "LY",
|
|
196
|
+
Ma: "MA",
|
|
197
|
+
Mc: "MC",
|
|
198
|
+
Md: "MD",
|
|
199
|
+
Me: "ME",
|
|
200
|
+
Mf: "MF",
|
|
201
|
+
Mg: "MG",
|
|
202
|
+
Mh: "MH",
|
|
203
|
+
Mk: "MK",
|
|
204
|
+
Ml: "ML",
|
|
205
|
+
Mm: "MM",
|
|
206
|
+
Mn: "MN",
|
|
207
|
+
Mo: "MO",
|
|
208
|
+
Mp: "MP",
|
|
209
|
+
Mq: "MQ",
|
|
210
|
+
Mr: "MR",
|
|
211
|
+
Ms: "MS",
|
|
212
|
+
Mt: "MT",
|
|
213
|
+
Mu: "MU",
|
|
214
|
+
Mv: "MV",
|
|
215
|
+
Mw: "MW",
|
|
216
|
+
Mx: "MX",
|
|
217
|
+
My: "MY",
|
|
218
|
+
Mz: "MZ",
|
|
219
|
+
Na: "NA",
|
|
220
|
+
Nc: "NC",
|
|
221
|
+
Ne: "NE",
|
|
222
|
+
Nf: "NF",
|
|
223
|
+
Ng: "NG",
|
|
224
|
+
Ni: "NI",
|
|
225
|
+
Nl: "NL",
|
|
226
|
+
No: "NO",
|
|
227
|
+
Np: "NP",
|
|
228
|
+
Nr: "NR",
|
|
229
|
+
Nu: "NU",
|
|
230
|
+
Nz: "NZ",
|
|
231
|
+
Om: "OM",
|
|
232
|
+
Pa: "PA",
|
|
233
|
+
Pe: "PE",
|
|
234
|
+
Pf: "PF",
|
|
235
|
+
Pg: "PG",
|
|
236
|
+
Ph: "PH",
|
|
237
|
+
Pk: "PK",
|
|
238
|
+
Pl: "PL",
|
|
239
|
+
Pm: "PM",
|
|
240
|
+
Pn: "PN",
|
|
241
|
+
Pr: "PR",
|
|
242
|
+
Ps: "PS",
|
|
243
|
+
Pt: "PT",
|
|
244
|
+
Pw: "PW",
|
|
245
|
+
Py: "PY",
|
|
246
|
+
Qa: "QA",
|
|
247
|
+
Re: "RE",
|
|
248
|
+
Ro: "RO",
|
|
249
|
+
Rs: "RS",
|
|
250
|
+
Rw: "RW",
|
|
251
|
+
Sa: "SA",
|
|
252
|
+
Sb: "SB",
|
|
253
|
+
Sc: "SC",
|
|
254
|
+
Sd: "SD",
|
|
255
|
+
Se: "SE",
|
|
256
|
+
Sg: "SG",
|
|
257
|
+
Sh: "SH",
|
|
258
|
+
Si: "SI",
|
|
259
|
+
Sj: "SJ",
|
|
260
|
+
Sk: "SK",
|
|
261
|
+
Sl: "SL",
|
|
262
|
+
Sm: "SM",
|
|
263
|
+
Sn: "SN",
|
|
264
|
+
So: "SO",
|
|
265
|
+
Sr: "SR",
|
|
266
|
+
Ss: "SS",
|
|
267
|
+
St: "ST",
|
|
268
|
+
Sv: "SV",
|
|
269
|
+
Sx: "SX",
|
|
270
|
+
Sz: "SZ",
|
|
271
|
+
Tc: "TC",
|
|
272
|
+
Td: "TD",
|
|
273
|
+
Tf: "TF",
|
|
274
|
+
Tg: "TG",
|
|
275
|
+
Th: "TH",
|
|
276
|
+
Tj: "TJ",
|
|
277
|
+
Tk: "TK",
|
|
278
|
+
Tl: "TL",
|
|
279
|
+
Tm: "TM",
|
|
280
|
+
Tn: "TN",
|
|
281
|
+
To: "TO",
|
|
282
|
+
Tr: "TR",
|
|
283
|
+
Tt: "TT",
|
|
284
|
+
Tv: "TV",
|
|
285
|
+
Tw: "TW",
|
|
286
|
+
Tz: "TZ",
|
|
287
|
+
Ua: "UA",
|
|
288
|
+
Ug: "UG",
|
|
289
|
+
Um: "UM",
|
|
290
|
+
Us: "US",
|
|
291
|
+
Uy: "UY",
|
|
292
|
+
Uz: "UZ",
|
|
293
|
+
Va: "VA",
|
|
294
|
+
Vc: "VC",
|
|
295
|
+
Ve: "VE",
|
|
296
|
+
Vg: "VG",
|
|
297
|
+
Vi: "VI",
|
|
298
|
+
Vn: "VN",
|
|
299
|
+
Vu: "VU",
|
|
300
|
+
Wf: "WF",
|
|
301
|
+
Ws: "WS",
|
|
302
|
+
Ye: "YE",
|
|
303
|
+
Yt: "YT",
|
|
304
|
+
Za: "ZA",
|
|
305
|
+
Zm: "ZM",
|
|
306
|
+
Zw: "ZW",
|
|
307
|
+
} as const;
|
|
308
|
+
export type CountryAlpha2Input = ClosedEnum<typeof CountryAlpha2Input>;
|
|
309
|
+
|
|
47
310
|
export type OrganizationCreate = {
|
|
48
311
|
name: string;
|
|
49
312
|
slug: string;
|
|
50
313
|
avatarUrl?: string | null | undefined;
|
|
314
|
+
legalEntity?:
|
|
315
|
+
| OrganizationCompanyLegalEntitySchema
|
|
316
|
+
| OrganizationIndividualLegalEntitySchema
|
|
317
|
+
| null
|
|
318
|
+
| undefined;
|
|
51
319
|
/**
|
|
52
320
|
* Public support email.
|
|
53
321
|
*/
|
|
@@ -64,6 +332,10 @@ export type OrganizationCreate = {
|
|
|
64
332
|
* Additional, private, business details Polar needs about active organizations for compliance (KYC).
|
|
65
333
|
*/
|
|
66
334
|
details?: OrganizationDetails | null | undefined;
|
|
335
|
+
/**
|
|
336
|
+
* Two-letter country code (ISO 3166-1 alpha-2).
|
|
337
|
+
*/
|
|
338
|
+
country?: CountryAlpha2Input | null | undefined;
|
|
67
339
|
featureSettings?: OrganizationFeatureSettings | null | undefined;
|
|
68
340
|
subscriptionSettings?: OrganizationSubscriptionSettings | null | undefined;
|
|
69
341
|
notificationSettings?: OrganizationNotificationSettings | null | undefined;
|
|
@@ -75,15 +347,44 @@ export type OrganizationCreate = {
|
|
|
75
347
|
defaultPresentmentCurrency?: PresentmentCurrency | undefined;
|
|
76
348
|
};
|
|
77
349
|
|
|
350
|
+
/** @internal */
|
|
351
|
+
export type LegalEntity$Outbound =
|
|
352
|
+
| OrganizationCompanyLegalEntitySchema$Outbound
|
|
353
|
+
| OrganizationIndividualLegalEntitySchema$Outbound;
|
|
354
|
+
|
|
355
|
+
/** @internal */
|
|
356
|
+
export const LegalEntity$outboundSchema: z.ZodMiniType<
|
|
357
|
+
LegalEntity$Outbound,
|
|
358
|
+
LegalEntity
|
|
359
|
+
> = z.union([
|
|
360
|
+
OrganizationCompanyLegalEntitySchema$outboundSchema,
|
|
361
|
+
OrganizationIndividualLegalEntitySchema$outboundSchema,
|
|
362
|
+
]);
|
|
363
|
+
|
|
364
|
+
export function legalEntityToJSON(legalEntity: LegalEntity): string {
|
|
365
|
+
return JSON.stringify(LegalEntity$outboundSchema.parse(legalEntity));
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/** @internal */
|
|
369
|
+
export const CountryAlpha2Input$outboundSchema: z.ZodMiniEnum<
|
|
370
|
+
typeof CountryAlpha2Input
|
|
371
|
+
> = z.enum(CountryAlpha2Input);
|
|
372
|
+
|
|
78
373
|
/** @internal */
|
|
79
374
|
export type OrganizationCreate$Outbound = {
|
|
80
375
|
name: string;
|
|
81
376
|
slug: string;
|
|
82
377
|
avatar_url?: string | null | undefined;
|
|
378
|
+
legal_entity?:
|
|
379
|
+
| OrganizationCompanyLegalEntitySchema$Outbound
|
|
380
|
+
| OrganizationIndividualLegalEntitySchema$Outbound
|
|
381
|
+
| null
|
|
382
|
+
| undefined;
|
|
83
383
|
email?: string | null | undefined;
|
|
84
384
|
website?: string | null | undefined;
|
|
85
385
|
socials?: Array<OrganizationSocialLink$Outbound> | null | undefined;
|
|
86
386
|
details?: OrganizationDetails$Outbound | null | undefined;
|
|
387
|
+
country?: string | null | undefined;
|
|
87
388
|
feature_settings?: OrganizationFeatureSettings$Outbound | null | undefined;
|
|
88
389
|
subscription_settings?:
|
|
89
390
|
| OrganizationSubscriptionSettings$Outbound
|
|
@@ -113,12 +414,21 @@ export const OrganizationCreate$outboundSchema: z.ZodMiniType<
|
|
|
113
414
|
name: z.string(),
|
|
114
415
|
slug: z.string(),
|
|
115
416
|
avatarUrl: z.optional(z.nullable(z.string())),
|
|
417
|
+
legalEntity: z.optional(
|
|
418
|
+
z.nullable(
|
|
419
|
+
z.union([
|
|
420
|
+
OrganizationCompanyLegalEntitySchema$outboundSchema,
|
|
421
|
+
OrganizationIndividualLegalEntitySchema$outboundSchema,
|
|
422
|
+
]),
|
|
423
|
+
),
|
|
424
|
+
),
|
|
116
425
|
email: z.optional(z.nullable(z.string())),
|
|
117
426
|
website: z.optional(z.nullable(z.string())),
|
|
118
427
|
socials: z.optional(
|
|
119
428
|
z.nullable(z.array(OrganizationSocialLink$outboundSchema)),
|
|
120
429
|
),
|
|
121
430
|
details: z.optional(z.nullable(OrganizationDetails$outboundSchema)),
|
|
431
|
+
country: z.optional(z.nullable(CountryAlpha2Input$outboundSchema)),
|
|
122
432
|
featureSettings: z.optional(
|
|
123
433
|
z.nullable(OrganizationFeatureSettings$outboundSchema),
|
|
124
434
|
),
|
|
@@ -139,6 +449,7 @@ export const OrganizationCreate$outboundSchema: z.ZodMiniType<
|
|
|
139
449
|
z.transform((v) => {
|
|
140
450
|
return remap$(v, {
|
|
141
451
|
avatarUrl: "avatar_url",
|
|
452
|
+
legalEntity: "legal_entity",
|
|
142
453
|
featureSettings: "feature_settings",
|
|
143
454
|
subscriptionSettings: "subscription_settings",
|
|
144
455
|
notificationSettings: "notification_settings",
|
|
@@ -15,7 +15,9 @@ export type OrganizationCustomerEmailSettings = {
|
|
|
15
15
|
subscriptionCycled: boolean;
|
|
16
16
|
subscriptionCycledAfterTrial: boolean;
|
|
17
17
|
subscriptionPastDue: boolean;
|
|
18
|
+
subscriptionRenewalReminder: boolean;
|
|
18
19
|
subscriptionRevoked: boolean;
|
|
20
|
+
subscriptionTrialConversionReminder: boolean;
|
|
19
21
|
subscriptionUncanceled: boolean;
|
|
20
22
|
subscriptionUpdated: boolean;
|
|
21
23
|
};
|
|
@@ -32,7 +34,9 @@ export const OrganizationCustomerEmailSettings$inboundSchema: z.ZodMiniType<
|
|
|
32
34
|
subscription_cycled: z.boolean(),
|
|
33
35
|
subscription_cycled_after_trial: z.boolean(),
|
|
34
36
|
subscription_past_due: z.boolean(),
|
|
37
|
+
subscription_renewal_reminder: z.boolean(),
|
|
35
38
|
subscription_revoked: z.boolean(),
|
|
39
|
+
subscription_trial_conversion_reminder: z.boolean(),
|
|
36
40
|
subscription_uncanceled: z.boolean(),
|
|
37
41
|
subscription_updated: z.boolean(),
|
|
38
42
|
}),
|
|
@@ -44,7 +48,10 @@ export const OrganizationCustomerEmailSettings$inboundSchema: z.ZodMiniType<
|
|
|
44
48
|
"subscription_cycled": "subscriptionCycled",
|
|
45
49
|
"subscription_cycled_after_trial": "subscriptionCycledAfterTrial",
|
|
46
50
|
"subscription_past_due": "subscriptionPastDue",
|
|
51
|
+
"subscription_renewal_reminder": "subscriptionRenewalReminder",
|
|
47
52
|
"subscription_revoked": "subscriptionRevoked",
|
|
53
|
+
"subscription_trial_conversion_reminder":
|
|
54
|
+
"subscriptionTrialConversionReminder",
|
|
48
55
|
"subscription_uncanceled": "subscriptionUncanceled",
|
|
49
56
|
"subscription_updated": "subscriptionUpdated",
|
|
50
57
|
});
|
|
@@ -58,7 +65,9 @@ export type OrganizationCustomerEmailSettings$Outbound = {
|
|
|
58
65
|
subscription_cycled: boolean;
|
|
59
66
|
subscription_cycled_after_trial: boolean;
|
|
60
67
|
subscription_past_due: boolean;
|
|
68
|
+
subscription_renewal_reminder: boolean;
|
|
61
69
|
subscription_revoked: boolean;
|
|
70
|
+
subscription_trial_conversion_reminder: boolean;
|
|
62
71
|
subscription_uncanceled: boolean;
|
|
63
72
|
subscription_updated: boolean;
|
|
64
73
|
};
|
|
@@ -75,7 +84,9 @@ export const OrganizationCustomerEmailSettings$outboundSchema: z.ZodMiniType<
|
|
|
75
84
|
subscriptionCycled: z.boolean(),
|
|
76
85
|
subscriptionCycledAfterTrial: z.boolean(),
|
|
77
86
|
subscriptionPastDue: z.boolean(),
|
|
87
|
+
subscriptionRenewalReminder: z.boolean(),
|
|
78
88
|
subscriptionRevoked: z.boolean(),
|
|
89
|
+
subscriptionTrialConversionReminder: z.boolean(),
|
|
79
90
|
subscriptionUncanceled: z.boolean(),
|
|
80
91
|
subscriptionUpdated: z.boolean(),
|
|
81
92
|
}),
|
|
@@ -87,7 +98,10 @@ export const OrganizationCustomerEmailSettings$outboundSchema: z.ZodMiniType<
|
|
|
87
98
|
subscriptionCycled: "subscription_cycled",
|
|
88
99
|
subscriptionCycledAfterTrial: "subscription_cycled_after_trial",
|
|
89
100
|
subscriptionPastDue: "subscription_past_due",
|
|
101
|
+
subscriptionRenewalReminder: "subscription_renewal_reminder",
|
|
90
102
|
subscriptionRevoked: "subscription_revoked",
|
|
103
|
+
subscriptionTrialConversionReminder:
|
|
104
|
+
"subscription_trial_conversion_reminder",
|
|
91
105
|
subscriptionUncanceled: "subscription_uncanceled",
|
|
92
106
|
subscriptionUpdated: "subscription_updated",
|
|
93
107
|
});
|
|
@@ -19,7 +19,7 @@ export type OrganizationDetails = {
|
|
|
19
19
|
/**
|
|
20
20
|
* Brief information about you and your business.
|
|
21
21
|
*/
|
|
22
|
-
about
|
|
22
|
+
about?: string | null | undefined;
|
|
23
23
|
/**
|
|
24
24
|
* Description of digital products being sold.
|
|
25
25
|
*/
|
|
@@ -27,15 +27,15 @@ export type OrganizationDetails = {
|
|
|
27
27
|
/**
|
|
28
28
|
* How the organization will integrate and use Polar.
|
|
29
29
|
*/
|
|
30
|
-
intendedUse
|
|
30
|
+
intendedUse?: string | null | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* Main customer acquisition channels.
|
|
33
33
|
*/
|
|
34
|
-
customerAcquisition
|
|
34
|
+
customerAcquisition?: Array<string> | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* Estimated revenue in the next 12 months
|
|
37
37
|
*/
|
|
38
|
-
futureAnnualRevenue
|
|
38
|
+
futureAnnualRevenue?: number | undefined;
|
|
39
39
|
/**
|
|
40
40
|
* Switching from another platform?
|
|
41
41
|
*/
|
|
@@ -56,10 +56,10 @@ export const SwitchingFrom$outboundSchema: z.ZodMiniEnum<typeof SwitchingFrom> =
|
|
|
56
56
|
|
|
57
57
|
/** @internal */
|
|
58
58
|
export type OrganizationDetails$Outbound = {
|
|
59
|
-
about
|
|
59
|
+
about?: string | null | undefined;
|
|
60
60
|
product_description: string;
|
|
61
|
-
intended_use
|
|
62
|
-
customer_acquisition
|
|
61
|
+
intended_use?: string | null | undefined;
|
|
62
|
+
customer_acquisition?: Array<string> | undefined;
|
|
63
63
|
future_annual_revenue: number;
|
|
64
64
|
switching: boolean;
|
|
65
65
|
switching_from?: string | null | undefined;
|
|
@@ -72,11 +72,11 @@ export const OrganizationDetails$outboundSchema: z.ZodMiniType<
|
|
|
72
72
|
OrganizationDetails
|
|
73
73
|
> = z.pipe(
|
|
74
74
|
z.object({
|
|
75
|
-
about: z.string(),
|
|
75
|
+
about: z.optional(z.nullable(z.string())),
|
|
76
76
|
productDescription: z.string(),
|
|
77
|
-
intendedUse: z.string(),
|
|
78
|
-
customerAcquisition: z.array(z.string()),
|
|
79
|
-
futureAnnualRevenue: z.int(),
|
|
77
|
+
intendedUse: z.optional(z.nullable(z.string())),
|
|
78
|
+
customerAcquisition: z.optional(z.array(z.string())),
|
|
79
|
+
futureAnnualRevenue: z._default(z.int(), 0),
|
|
80
80
|
switching: z._default(z.boolean(), true),
|
|
81
81
|
switchingFrom: z.optional(z.nullable(SwitchingFrom$outboundSchema)),
|
|
82
82
|
previousAnnualRevenue: z._default(z.int(), 0),
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type OrganizationIndividualLegalEntitySchema = {
|
|
8
|
+
type: "individual";
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/** @internal */
|
|
12
|
+
export type OrganizationIndividualLegalEntitySchema$Outbound = {
|
|
13
|
+
type: "individual";
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const OrganizationIndividualLegalEntitySchema$outboundSchema:
|
|
18
|
+
z.ZodMiniType<
|
|
19
|
+
OrganizationIndividualLegalEntitySchema$Outbound,
|
|
20
|
+
OrganizationIndividualLegalEntitySchema
|
|
21
|
+
> = z.object({
|
|
22
|
+
type: z.literal("individual"),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export function organizationIndividualLegalEntitySchemaToJSON(
|
|
26
|
+
organizationIndividualLegalEntitySchema:
|
|
27
|
+
OrganizationIndividualLegalEntitySchema,
|
|
28
|
+
): string {
|
|
29
|
+
return JSON.stringify(
|
|
30
|
+
OrganizationIndividualLegalEntitySchema$outboundSchema.parse(
|
|
31
|
+
organizationIndividualLegalEntitySchema,
|
|
32
|
+
),
|
|
33
|
+
);
|
|
34
|
+
}
|