@polar-sh/sdk 0.40.2 → 0.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -23
- package/dist/commonjs/funcs/customerPortalBenefitGrantsList.js +0 -1
- package/dist/commonjs/funcs/customerPortalBenefitGrantsList.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalDownloadablesList.js +0 -1
- package/dist/commonjs/funcs/customerPortalDownloadablesList.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalLicenseKeysList.js +0 -1
- package/dist/commonjs/funcs/customerPortalLicenseKeysList.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalOrdersList.js +0 -1
- package/dist/commonjs/funcs/customerPortalOrdersList.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalSubscriptionsList.js +0 -1
- package/dist/commonjs/funcs/customerPortalSubscriptionsList.js.map +1 -1
- package/dist/commonjs/funcs/customerPortalWalletsGet.d.ts +22 -0
- package/dist/commonjs/funcs/customerPortalWalletsGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/customerPortalWalletsGet.js +131 -0
- package/dist/commonjs/funcs/customerPortalWalletsGet.js.map +1 -0
- package/dist/commonjs/funcs/customerPortalWalletsList.d.ts +23 -0
- package/dist/commonjs/funcs/customerPortalWalletsList.d.ts.map +1 -0
- package/dist/commonjs/funcs/customerPortalWalletsList.js +166 -0
- package/dist/commonjs/funcs/customerPortalWalletsList.js.map +1 -0
- package/dist/commonjs/funcs/eventsList.js +1 -0
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/walletsGet.d.ts +22 -0
- package/dist/commonjs/funcs/walletsGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/walletsGet.js +127 -0
- package/dist/commonjs/funcs/walletsGet.js.map +1 -0
- package/dist/commonjs/funcs/walletsList.d.ts +23 -0
- package/dist/commonjs/funcs/walletsList.d.ts.map +1 -0
- package/dist/commonjs/funcs/walletsList.js +162 -0
- package/dist/commonjs/funcs/walletsList.js.map +1 -0
- package/dist/commonjs/funcs/walletsTopUp.d.ts +26 -0
- package/dist/commonjs/funcs/walletsTopUp.d.ts.map +1 -0
- package/dist/commonjs/funcs/walletsTopUp.js +132 -0
- package/dist/commonjs/funcs/walletsTopUp.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/components/addressdict.d.ts +39 -0
- package/dist/commonjs/models/components/addressdict.d.ts.map +1 -0
- package/dist/commonjs/models/components/addressdict.js +88 -0
- package/dist/commonjs/models/components/addressdict.js.map +1 -0
- package/dist/commonjs/models/components/benefitcycledevent.d.ts +5 -0
- package/dist/commonjs/models/components/benefitcycledevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitcycledevent.js +4 -0
- package/dist/commonjs/models/components/benefitcycledevent.js.map +1 -1
- package/dist/commonjs/models/components/benefitgrantedevent.d.ts +5 -0
- package/dist/commonjs/models/components/benefitgrantedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitgrantedevent.js +4 -0
- package/dist/commonjs/models/components/benefitgrantedevent.js.map +1 -1
- package/dist/commonjs/models/components/benefitrevokedevent.d.ts +5 -0
- package/dist/commonjs/models/components/benefitrevokedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitrevokedevent.js +4 -0
- package/dist/commonjs/models/components/benefitrevokedevent.js.map +1 -1
- package/dist/commonjs/models/components/benefitupdatedevent.d.ts +5 -0
- package/dist/commonjs/models/components/benefitupdatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitupdatedevent.js +4 -0
- package/dist/commonjs/models/components/benefitupdatedevent.js.map +1 -1
- package/dist/commonjs/models/components/checkout.d.ts +16 -14
- package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkout.js +16 -12
- package/dist/commonjs/models/components/checkout.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.d.ts +16 -14
- package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.js +16 -12
- package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +16 -14
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js +16 -12
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/commonjs/models/components/customercreate.d.ts +0 -3
- package/dist/commonjs/models/components/customercreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/customercreate.js.map +1 -1
- package/dist/commonjs/models/components/customercreatedevent.d.ts +79 -0
- package/dist/commonjs/models/components/customercreatedevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/customercreatedevent.js +104 -0
- package/dist/commonjs/models/components/customercreatedevent.js.map +1 -0
- package/dist/commonjs/models/components/customercreatedmetadata.d.ts +35 -0
- package/dist/commonjs/models/components/customercreatedmetadata.d.ts.map +1 -0
- package/dist/commonjs/models/components/customercreatedmetadata.js +90 -0
- package/dist/commonjs/models/components/customercreatedmetadata.js.map +1 -0
- package/dist/commonjs/models/components/customerdeletedevent.d.ts +79 -0
- package/dist/commonjs/models/components/customerdeletedevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerdeletedevent.js +104 -0
- package/dist/commonjs/models/components/customerdeletedevent.js.map +1 -0
- package/dist/commonjs/models/components/customerdeletedmetadata.d.ts +35 -0
- package/dist/commonjs/models/components/customerdeletedmetadata.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerdeletedmetadata.js +90 -0
- package/dist/commonjs/models/components/customerdeletedmetadata.js.map +1 -0
- package/dist/commonjs/models/components/customerstatesubscription.d.ts +8 -8
- package/dist/commonjs/models/components/customerstatesubscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerstatesubscription.js +14 -13
- package/dist/commonjs/models/components/customerstatesubscription.js.map +1 -1
- package/dist/commonjs/models/components/customerupdate.d.ts +0 -3
- package/dist/commonjs/models/components/customerupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerupdate.js.map +1 -1
- package/dist/commonjs/models/components/customerupdatedevent.d.ts +79 -0
- package/dist/commonjs/models/components/customerupdatedevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerupdatedevent.js +104 -0
- package/dist/commonjs/models/components/customerupdatedevent.js.map +1 -0
- package/dist/commonjs/models/components/customerupdatedfields.d.ts +63 -0
- package/dist/commonjs/models/components/customerupdatedfields.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerupdatedfields.js +112 -0
- package/dist/commonjs/models/components/customerupdatedfields.js.map +1 -0
- package/dist/commonjs/models/components/customerupdatedmetadata.d.ts +38 -0
- package/dist/commonjs/models/components/customerupdatedmetadata.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerupdatedmetadata.js +95 -0
- package/dist/commonjs/models/components/customerupdatedmetadata.js.map +1 -0
- package/dist/commonjs/models/components/customerupdateexternalid.d.ts +0 -3
- package/dist/commonjs/models/components/customerupdateexternalid.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerupdateexternalid.js.map +1 -1
- package/dist/commonjs/models/components/customerwallet.d.ts +64 -0
- package/dist/commonjs/models/components/customerwallet.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerwallet.js +92 -0
- package/dist/commonjs/models/components/customerwallet.js.map +1 -0
- package/dist/commonjs/models/components/customerwalletsortproperty.d.ts +34 -0
- package/dist/commonjs/models/components/customerwalletsortproperty.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerwalletsortproperty.js +62 -0
- package/dist/commonjs/models/components/customerwalletsortproperty.js.map +1 -0
- package/dist/commonjs/models/components/eventcreatecustomer.d.ts +10 -0
- package/dist/commonjs/models/components/eventcreatecustomer.d.ts.map +1 -1
- package/dist/commonjs/models/components/eventcreatecustomer.js +8 -0
- package/dist/commonjs/models/components/eventcreatecustomer.js.map +1 -1
- package/dist/commonjs/models/components/eventcreateexternalcustomer.d.ts +10 -0
- package/dist/commonjs/models/components/eventcreateexternalcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/components/eventcreateexternalcustomer.js +8 -0
- package/dist/commonjs/models/components/eventcreateexternalcustomer.js.map +1 -1
- package/dist/commonjs/models/components/eventsingestresponse.d.ts +5 -0
- package/dist/commonjs/models/components/eventsingestresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/eventsingestresponse.js +2 -0
- package/dist/commonjs/models/components/eventsingestresponse.js.map +1 -1
- package/dist/commonjs/models/components/listresourcecustomerwallet.d.ts +33 -0
- package/dist/commonjs/models/components/listresourcecustomerwallet.d.ts.map +1 -0
- package/dist/commonjs/models/components/listresourcecustomerwallet.js +73 -0
- package/dist/commonjs/models/components/listresourcecustomerwallet.js.map +1 -0
- package/dist/commonjs/models/components/listresourcewallet.d.ts +33 -0
- package/dist/commonjs/models/components/listresourcewallet.d.ts.map +1 -0
- package/dist/commonjs/models/components/listresourcewallet.js +73 -0
- package/dist/commonjs/models/components/listresourcewallet.js.map +1 -0
- package/dist/commonjs/models/components/metercreditevent.d.ts +5 -0
- package/dist/commonjs/models/components/metercreditevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/metercreditevent.js +4 -0
- package/dist/commonjs/models/components/metercreditevent.js.map +1 -1
- package/dist/commonjs/models/components/meterresetevent.d.ts +5 -0
- package/dist/commonjs/models/components/meterresetevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/meterresetevent.js +4 -0
- package/dist/commonjs/models/components/meterresetevent.js.map +1 -1
- package/dist/commonjs/models/components/metricperiod.d.ts +161 -0
- package/dist/commonjs/models/components/metricperiod.d.ts.map +1 -1
- package/dist/commonjs/models/components/metricperiod.js +190 -3
- package/dist/commonjs/models/components/metricperiod.js.map +1 -1
- package/dist/commonjs/models/components/metrics.d.ts +35 -0
- package/dist/commonjs/models/components/metrics.d.ts.map +1 -1
- package/dist/commonjs/models/components/metrics.js +26 -0
- package/dist/commonjs/models/components/metrics.js.map +1 -1
- package/dist/commonjs/models/components/metricstotals.d.ts +161 -0
- package/dist/commonjs/models/components/metricstotals.d.ts.map +1 -1
- package/dist/commonjs/models/components/metricstotals.js +190 -3
- package/dist/commonjs/models/components/metricstotals.js.map +1 -1
- package/dist/commonjs/models/components/metrictype.d.ts +3 -0
- package/dist/commonjs/models/components/metrictype.d.ts.map +1 -1
- package/dist/commonjs/models/components/metrictype.js +1 -0
- package/dist/commonjs/models/components/metrictype.js.map +1 -1
- package/dist/commonjs/models/components/oauth2clientconfiguration.js +2 -2
- package/dist/commonjs/models/components/oauth2clientconfiguration.js.map +1 -1
- package/dist/commonjs/models/components/oauth2clientconfigurationupdate.js +2 -2
- package/dist/commonjs/models/components/oauth2clientconfigurationupdate.js.map +1 -1
- package/dist/commonjs/models/components/orderpaidevent.d.ts +79 -0
- package/dist/commonjs/models/components/orderpaidevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/orderpaidevent.js +104 -0
- package/dist/commonjs/models/components/orderpaidevent.js.map +1 -0
- package/dist/commonjs/models/components/orderpaidmetadata.d.ts +35 -0
- package/dist/commonjs/models/components/orderpaidmetadata.d.ts.map +1 -0
- package/dist/commonjs/models/components/orderpaidmetadata.js +84 -0
- package/dist/commonjs/models/components/orderpaidmetadata.js.map +1 -0
- package/dist/commonjs/models/components/orderrefundedevent.d.ts +79 -0
- package/dist/commonjs/models/components/orderrefundedevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/orderrefundedevent.js +104 -0
- package/dist/commonjs/models/components/orderrefundedevent.js.map +1 -0
- package/dist/commonjs/models/components/orderrefundedmetadata.d.ts +35 -0
- package/dist/commonjs/models/components/orderrefundedmetadata.d.ts.map +1 -0
- package/dist/commonjs/models/components/orderrefundedmetadata.js +86 -0
- package/dist/commonjs/models/components/orderrefundedmetadata.js.map +1 -0
- package/dist/commonjs/models/components/organization.d.ts +2 -2
- package/dist/commonjs/models/components/organization.d.ts.map +1 -1
- package/dist/commonjs/models/components/organization.js +3 -3
- package/dist/commonjs/models/components/organization.js.map +1 -1
- package/dist/commonjs/models/components/organizationfeaturesettings.d.ts +5 -0
- package/dist/commonjs/models/components/organizationfeaturesettings.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationfeaturesettings.js +4 -0
- package/dist/commonjs/models/components/organizationfeaturesettings.js.map +1 -1
- package/dist/{esm/models/components/status.d.ts → commonjs/models/components/organizationstatus.d.ts} +8 -8
- package/dist/commonjs/models/components/organizationstatus.d.ts.map +1 -0
- package/dist/commonjs/models/components/{status.js → organizationstatus.js} +12 -13
- package/dist/commonjs/models/components/organizationstatus.js.map +1 -0
- package/dist/commonjs/models/components/organizationsubscriptionsettings.d.ts +2 -0
- package/dist/commonjs/models/components/organizationsubscriptionsettings.d.ts.map +1 -1
- package/dist/commonjs/models/components/organizationsubscriptionsettings.js +4 -0
- package/dist/commonjs/models/components/organizationsubscriptionsettings.js.map +1 -1
- package/dist/commonjs/models/components/scope.d.ts +6 -0
- package/dist/commonjs/models/components/scope.d.ts.map +1 -1
- package/dist/commonjs/models/components/scope.js +2 -0
- package/dist/commonjs/models/components/scope.js.map +1 -1
- package/dist/commonjs/models/components/seatassign.d.ts +5 -0
- package/dist/commonjs/models/components/seatassign.d.ts.map +1 -1
- package/dist/commonjs/models/components/seatassign.js +4 -0
- package/dist/commonjs/models/components/seatassign.js.map +1 -1
- package/dist/commonjs/models/components/subscriptioncycledevent.d.ts +5 -0
- package/dist/commonjs/models/components/subscriptioncycledevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscriptioncycledevent.js +4 -0
- package/dist/commonjs/models/components/subscriptioncycledevent.js.map +1 -1
- package/dist/commonjs/models/components/subscriptionproductupdatedevent.d.ts +5 -0
- package/dist/commonjs/models/components/subscriptionproductupdatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscriptionproductupdatedevent.js +4 -0
- package/dist/commonjs/models/components/subscriptionproductupdatedevent.js.map +1 -1
- package/dist/commonjs/models/components/subscriptionrevokedevent.d.ts +5 -0
- package/dist/commonjs/models/components/subscriptionrevokedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscriptionrevokedevent.js +4 -0
- package/dist/commonjs/models/components/subscriptionrevokedevent.js.map +1 -1
- package/dist/commonjs/models/components/systemevent.d.ts +25 -0
- package/dist/commonjs/models/components/systemevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/systemevent.js +35 -0
- package/dist/commonjs/models/components/systemevent.js.map +1 -1
- package/dist/commonjs/models/components/userevent.d.ts +5 -0
- package/dist/commonjs/models/components/userevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/userevent.js +4 -0
- package/dist/commonjs/models/components/userevent.js.map +1 -1
- package/dist/commonjs/models/components/wallet.d.ts +64 -0
- package/dist/commonjs/models/components/wallet.d.ts.map +1 -0
- package/dist/commonjs/models/components/wallet.js +93 -0
- package/dist/commonjs/models/components/wallet.js.map +1 -0
- package/dist/commonjs/models/components/walletsortproperty.d.ts +34 -0
- package/dist/commonjs/models/components/walletsortproperty.d.ts.map +1 -0
- package/dist/commonjs/models/components/walletsortproperty.js +62 -0
- package/dist/commonjs/models/components/walletsortproperty.js.map +1 -0
- package/dist/commonjs/models/components/wallettopupcreate.d.ts +40 -0
- package/dist/commonjs/models/components/wallettopupcreate.d.ts.map +1 -0
- package/dist/commonjs/models/components/wallettopupcreate.js +71 -0
- package/dist/commonjs/models/components/wallettopupcreate.js.map +1 -0
- package/dist/commonjs/models/components/webhookendpoint.d.ts +5 -0
- package/dist/commonjs/models/components/webhookendpoint.d.ts.map +1 -1
- package/dist/commonjs/models/components/webhookendpoint.js +2 -0
- package/dist/commonjs/models/components/webhookendpoint.js.map +1 -1
- package/dist/commonjs/models/components/webhookendpointupdate.d.ts +5 -0
- package/dist/commonjs/models/components/webhookendpointupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/webhookendpointupdate.js +2 -0
- package/dist/commonjs/models/components/webhookendpointupdate.js.map +1 -1
- package/dist/commonjs/models/errors/missingpaymentmethoderror.d.ts +39 -0
- package/dist/commonjs/models/errors/missingpaymentmethoderror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/missingpaymentmethoderror.js +88 -0
- package/dist/commonjs/models/errors/missingpaymentmethoderror.js.map +1 -0
- package/dist/commonjs/models/errors/paymentintentfailederror.d.ts +39 -0
- package/dist/commonjs/models/errors/paymentintentfailederror.d.ts.map +1 -0
- package/dist/commonjs/models/errors/paymentintentfailederror.js +88 -0
- package/dist/commonjs/models/errors/paymentintentfailederror.js.map +1 -0
- package/dist/commonjs/models/operations/customerportalbenefitgrantslist.d.ts +0 -29
- package/dist/commonjs/models/operations/customerportalbenefitgrantslist.d.ts.map +1 -1
- package/dist/commonjs/models/operations/customerportalbenefitgrantslist.js +1 -32
- package/dist/commonjs/models/operations/customerportalbenefitgrantslist.js.map +1 -1
- package/dist/commonjs/models/operations/customerportaldownloadableslist.d.ts +0 -29
- package/dist/commonjs/models/operations/customerportaldownloadableslist.d.ts.map +1 -1
- package/dist/commonjs/models/operations/customerportaldownloadableslist.js +1 -32
- package/dist/commonjs/models/operations/customerportaldownloadableslist.js.map +1 -1
- package/dist/commonjs/models/operations/customerportallicensekeyslist.d.ts +0 -29
- package/dist/commonjs/models/operations/customerportallicensekeyslist.d.ts.map +1 -1
- package/dist/commonjs/models/operations/customerportallicensekeyslist.js +1 -32
- package/dist/commonjs/models/operations/customerportallicensekeyslist.js.map +1 -1
- package/dist/commonjs/models/operations/customerportalorderslist.d.ts +0 -29
- package/dist/commonjs/models/operations/customerportalorderslist.d.ts.map +1 -1
- package/dist/commonjs/models/operations/customerportalorderslist.js +1 -31
- package/dist/commonjs/models/operations/customerportalorderslist.js.map +1 -1
- package/dist/commonjs/models/operations/customerportalsubscriptionslist.d.ts +0 -29
- package/dist/commonjs/models/operations/customerportalsubscriptionslist.d.ts.map +1 -1
- package/dist/commonjs/models/operations/customerportalsubscriptionslist.js +1 -32
- package/dist/commonjs/models/operations/customerportalsubscriptionslist.js.map +1 -1
- package/dist/commonjs/models/operations/customerportalwalletsget.d.ts +57 -0
- package/dist/commonjs/models/operations/customerportalwalletsget.d.ts.map +1 -0
- package/dist/commonjs/models/operations/customerportalwalletsget.js +105 -0
- package/dist/commonjs/models/operations/customerportalwalletsget.js.map +1 -0
- package/dist/commonjs/models/operations/customerportalwalletslist.d.ts +94 -0
- package/dist/commonjs/models/operations/customerportalwalletslist.d.ts.map +1 -0
- package/dist/commonjs/models/operations/customerportalwalletslist.js +148 -0
- package/dist/commonjs/models/operations/customerportalwalletslist.js.map +1 -0
- package/dist/commonjs/models/operations/eventslist.d.ts +5 -0
- package/dist/commonjs/models/operations/eventslist.d.ts.map +1 -1
- package/dist/commonjs/models/operations/eventslist.js +4 -0
- package/dist/commonjs/models/operations/eventslist.js.map +1 -1
- package/dist/commonjs/models/operations/walletsget.d.ts +32 -0
- package/dist/commonjs/models/operations/walletsget.d.ts.map +1 -0
- package/dist/commonjs/models/operations/walletsget.js +69 -0
- package/dist/commonjs/models/operations/walletsget.js.map +1 -0
- package/dist/commonjs/models/operations/walletslist.d.ts +127 -0
- package/dist/commonjs/models/operations/walletslist.d.ts.map +1 -0
- package/dist/commonjs/models/operations/walletslist.js +174 -0
- package/dist/commonjs/models/operations/walletslist.js.map +1 -0
- package/dist/commonjs/models/operations/walletstopup.d.ts +35 -0
- package/dist/commonjs/models/operations/walletstopup.d.ts.map +1 -0
- package/dist/commonjs/models/operations/walletstopup.js +81 -0
- package/dist/commonjs/models/operations/walletstopup.js.map +1 -0
- package/dist/commonjs/sdk/customerportal.d.ts +3 -0
- package/dist/commonjs/sdk/customerportal.d.ts.map +1 -1
- package/dist/commonjs/sdk/customerportal.js +4 -0
- package/dist/commonjs/sdk/customerportal.js.map +1 -1
- package/dist/commonjs/sdk/polarwallets.d.ts +28 -0
- package/dist/commonjs/sdk/polarwallets.d.ts.map +1 -0
- package/dist/commonjs/sdk/polarwallets.js +37 -0
- package/dist/commonjs/sdk/polarwallets.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/wallets.d.ts +40 -0
- package/dist/commonjs/sdk/wallets.d.ts.map +1 -0
- package/dist/commonjs/sdk/wallets.js +51 -0
- package/dist/commonjs/sdk/wallets.js.map +1 -0
- package/dist/esm/funcs/customerPortalBenefitGrantsList.js +0 -1
- package/dist/esm/funcs/customerPortalBenefitGrantsList.js.map +1 -1
- package/dist/esm/funcs/customerPortalDownloadablesList.js +0 -1
- package/dist/esm/funcs/customerPortalDownloadablesList.js.map +1 -1
- package/dist/esm/funcs/customerPortalLicenseKeysList.js +0 -1
- package/dist/esm/funcs/customerPortalLicenseKeysList.js.map +1 -1
- package/dist/esm/funcs/customerPortalOrdersList.js +0 -1
- package/dist/esm/funcs/customerPortalOrdersList.js.map +1 -1
- package/dist/esm/funcs/customerPortalSubscriptionsList.js +0 -1
- package/dist/esm/funcs/customerPortalSubscriptionsList.js.map +1 -1
- package/dist/esm/funcs/customerPortalWalletsGet.d.ts +22 -0
- package/dist/esm/funcs/customerPortalWalletsGet.d.ts.map +1 -0
- package/dist/esm/funcs/customerPortalWalletsGet.js +95 -0
- package/dist/esm/funcs/customerPortalWalletsGet.js.map +1 -0
- package/dist/esm/funcs/customerPortalWalletsList.d.ts +23 -0
- package/dist/esm/funcs/customerPortalWalletsList.d.ts.map +1 -0
- package/dist/esm/funcs/customerPortalWalletsList.js +130 -0
- package/dist/esm/funcs/customerPortalWalletsList.js.map +1 -0
- package/dist/esm/funcs/eventsList.js +1 -0
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/walletsGet.d.ts +22 -0
- package/dist/esm/funcs/walletsGet.d.ts.map +1 -0
- package/dist/esm/funcs/walletsGet.js +91 -0
- package/dist/esm/funcs/walletsGet.js.map +1 -0
- package/dist/esm/funcs/walletsList.d.ts +23 -0
- package/dist/esm/funcs/walletsList.d.ts.map +1 -0
- package/dist/esm/funcs/walletsList.js +126 -0
- package/dist/esm/funcs/walletsList.js.map +1 -0
- package/dist/esm/funcs/walletsTopUp.d.ts +26 -0
- package/dist/esm/funcs/walletsTopUp.d.ts.map +1 -0
- package/dist/esm/funcs/walletsTopUp.js +96 -0
- package/dist/esm/funcs/walletsTopUp.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/components/addressdict.d.ts +39 -0
- package/dist/esm/models/components/addressdict.d.ts.map +1 -0
- package/dist/esm/models/components/addressdict.js +50 -0
- package/dist/esm/models/components/addressdict.js.map +1 -0
- package/dist/esm/models/components/benefitcycledevent.d.ts +5 -0
- package/dist/esm/models/components/benefitcycledevent.d.ts.map +1 -1
- package/dist/esm/models/components/benefitcycledevent.js +4 -0
- package/dist/esm/models/components/benefitcycledevent.js.map +1 -1
- package/dist/esm/models/components/benefitgrantedevent.d.ts +5 -0
- package/dist/esm/models/components/benefitgrantedevent.d.ts.map +1 -1
- package/dist/esm/models/components/benefitgrantedevent.js +4 -0
- package/dist/esm/models/components/benefitgrantedevent.js.map +1 -1
- package/dist/esm/models/components/benefitrevokedevent.d.ts +5 -0
- package/dist/esm/models/components/benefitrevokedevent.d.ts.map +1 -1
- package/dist/esm/models/components/benefitrevokedevent.js +4 -0
- package/dist/esm/models/components/benefitrevokedevent.js.map +1 -1
- package/dist/esm/models/components/benefitupdatedevent.d.ts +5 -0
- package/dist/esm/models/components/benefitupdatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/benefitupdatedevent.js +4 -0
- package/dist/esm/models/components/benefitupdatedevent.js.map +1 -1
- package/dist/esm/models/components/checkout.d.ts +16 -14
- package/dist/esm/models/components/checkout.d.ts.map +1 -1
- package/dist/esm/models/components/checkout.js +16 -12
- package/dist/esm/models/components/checkout.js.map +1 -1
- package/dist/esm/models/components/checkoutpublic.d.ts +16 -14
- package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublic.js +16 -12
- package/dist/esm/models/components/checkoutpublic.js.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +16 -14
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.js +16 -12
- package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/esm/models/components/customercreate.d.ts +0 -3
- package/dist/esm/models/components/customercreate.d.ts.map +1 -1
- package/dist/esm/models/components/customercreate.js.map +1 -1
- package/dist/esm/models/components/customercreatedevent.d.ts +79 -0
- package/dist/esm/models/components/customercreatedevent.d.ts.map +1 -0
- package/dist/esm/models/components/customercreatedevent.js +66 -0
- package/dist/esm/models/components/customercreatedevent.js.map +1 -0
- package/dist/esm/models/components/customercreatedmetadata.d.ts +35 -0
- package/dist/esm/models/components/customercreatedmetadata.d.ts.map +1 -0
- package/dist/esm/models/components/customercreatedmetadata.js +52 -0
- package/dist/esm/models/components/customercreatedmetadata.js.map +1 -0
- package/dist/esm/models/components/customerdeletedevent.d.ts +79 -0
- package/dist/esm/models/components/customerdeletedevent.d.ts.map +1 -0
- package/dist/esm/models/components/customerdeletedevent.js +66 -0
- package/dist/esm/models/components/customerdeletedevent.js.map +1 -0
- package/dist/esm/models/components/customerdeletedmetadata.d.ts +35 -0
- package/dist/esm/models/components/customerdeletedmetadata.d.ts.map +1 -0
- package/dist/esm/models/components/customerdeletedmetadata.js +52 -0
- package/dist/esm/models/components/customerdeletedmetadata.js.map +1 -0
- package/dist/esm/models/components/customerstatesubscription.d.ts +8 -8
- package/dist/esm/models/components/customerstatesubscription.d.ts.map +1 -1
- package/dist/esm/models/components/customerstatesubscription.js +13 -12
- package/dist/esm/models/components/customerstatesubscription.js.map +1 -1
- package/dist/esm/models/components/customerupdate.d.ts +0 -3
- package/dist/esm/models/components/customerupdate.d.ts.map +1 -1
- package/dist/esm/models/components/customerupdate.js.map +1 -1
- package/dist/esm/models/components/customerupdatedevent.d.ts +79 -0
- package/dist/esm/models/components/customerupdatedevent.d.ts.map +1 -0
- package/dist/esm/models/components/customerupdatedevent.js +66 -0
- package/dist/esm/models/components/customerupdatedevent.js.map +1 -0
- package/dist/esm/models/components/customerupdatedfields.d.ts +63 -0
- package/dist/esm/models/components/customerupdatedfields.d.ts.map +1 -0
- package/dist/esm/models/components/customerupdatedfields.js +72 -0
- package/dist/esm/models/components/customerupdatedfields.js.map +1 -0
- package/dist/esm/models/components/customerupdatedmetadata.d.ts +38 -0
- package/dist/esm/models/components/customerupdatedmetadata.d.ts.map +1 -0
- package/dist/esm/models/components/customerupdatedmetadata.js +57 -0
- package/dist/esm/models/components/customerupdatedmetadata.js.map +1 -0
- package/dist/esm/models/components/customerupdateexternalid.d.ts +0 -3
- package/dist/esm/models/components/customerupdateexternalid.d.ts.map +1 -1
- package/dist/esm/models/components/customerupdateexternalid.js.map +1 -1
- package/dist/esm/models/components/customerwallet.d.ts +64 -0
- package/dist/esm/models/components/customerwallet.d.ts.map +1 -0
- package/dist/esm/models/components/customerwallet.js +54 -0
- package/dist/esm/models/components/customerwallet.js.map +1 -0
- package/dist/esm/models/components/customerwalletsortproperty.d.ts +34 -0
- package/dist/esm/models/components/customerwalletsortproperty.d.ts.map +1 -0
- package/dist/esm/models/components/customerwalletsortproperty.js +26 -0
- package/dist/esm/models/components/customerwalletsortproperty.js.map +1 -0
- package/dist/esm/models/components/eventcreatecustomer.d.ts +10 -0
- package/dist/esm/models/components/eventcreatecustomer.d.ts.map +1 -1
- package/dist/esm/models/components/eventcreatecustomer.js +8 -0
- package/dist/esm/models/components/eventcreatecustomer.js.map +1 -1
- package/dist/esm/models/components/eventcreateexternalcustomer.d.ts +10 -0
- package/dist/esm/models/components/eventcreateexternalcustomer.d.ts.map +1 -1
- package/dist/esm/models/components/eventcreateexternalcustomer.js +8 -0
- package/dist/esm/models/components/eventcreateexternalcustomer.js.map +1 -1
- package/dist/esm/models/components/eventsingestresponse.d.ts +5 -0
- package/dist/esm/models/components/eventsingestresponse.d.ts.map +1 -1
- package/dist/esm/models/components/eventsingestresponse.js +2 -0
- package/dist/esm/models/components/eventsingestresponse.js.map +1 -1
- package/dist/esm/models/components/listresourcecustomerwallet.d.ts +33 -0
- package/dist/esm/models/components/listresourcecustomerwallet.d.ts.map +1 -0
- package/dist/esm/models/components/listresourcecustomerwallet.js +35 -0
- package/dist/esm/models/components/listresourcecustomerwallet.js.map +1 -0
- package/dist/esm/models/components/listresourcewallet.d.ts +33 -0
- package/dist/esm/models/components/listresourcewallet.d.ts.map +1 -0
- package/dist/esm/models/components/listresourcewallet.js +35 -0
- package/dist/esm/models/components/listresourcewallet.js.map +1 -0
- package/dist/esm/models/components/metercreditevent.d.ts +5 -0
- package/dist/esm/models/components/metercreditevent.d.ts.map +1 -1
- package/dist/esm/models/components/metercreditevent.js +4 -0
- package/dist/esm/models/components/metercreditevent.js.map +1 -1
- package/dist/esm/models/components/meterresetevent.d.ts +5 -0
- package/dist/esm/models/components/meterresetevent.d.ts.map +1 -1
- package/dist/esm/models/components/meterresetevent.js +4 -0
- package/dist/esm/models/components/meterresetevent.js.map +1 -1
- package/dist/esm/models/components/metricperiod.d.ts +161 -0
- package/dist/esm/models/components/metricperiod.d.ts.map +1 -1
- package/dist/esm/models/components/metricperiod.js +173 -0
- package/dist/esm/models/components/metricperiod.js.map +1 -1
- package/dist/esm/models/components/metrics.d.ts +35 -0
- package/dist/esm/models/components/metrics.d.ts.map +1 -1
- package/dist/esm/models/components/metrics.js +26 -0
- package/dist/esm/models/components/metrics.js.map +1 -1
- package/dist/esm/models/components/metricstotals.d.ts +161 -0
- package/dist/esm/models/components/metricstotals.d.ts.map +1 -1
- package/dist/esm/models/components/metricstotals.js +173 -0
- package/dist/esm/models/components/metricstotals.js.map +1 -1
- package/dist/esm/models/components/metrictype.d.ts +3 -0
- package/dist/esm/models/components/metrictype.d.ts.map +1 -1
- package/dist/esm/models/components/metrictype.js +1 -0
- package/dist/esm/models/components/metrictype.js.map +1 -1
- package/dist/esm/models/components/oauth2clientconfiguration.js +2 -2
- package/dist/esm/models/components/oauth2clientconfiguration.js.map +1 -1
- package/dist/esm/models/components/oauth2clientconfigurationupdate.js +2 -2
- package/dist/esm/models/components/oauth2clientconfigurationupdate.js.map +1 -1
- package/dist/esm/models/components/orderpaidevent.d.ts +79 -0
- package/dist/esm/models/components/orderpaidevent.d.ts.map +1 -0
- package/dist/esm/models/components/orderpaidevent.js +66 -0
- package/dist/esm/models/components/orderpaidevent.js.map +1 -0
- package/dist/esm/models/components/orderpaidmetadata.d.ts +35 -0
- package/dist/esm/models/components/orderpaidmetadata.d.ts.map +1 -0
- package/dist/esm/models/components/orderpaidmetadata.js +46 -0
- package/dist/esm/models/components/orderpaidmetadata.js.map +1 -0
- package/dist/esm/models/components/orderrefundedevent.d.ts +79 -0
- package/dist/esm/models/components/orderrefundedevent.d.ts.map +1 -0
- package/dist/esm/models/components/orderrefundedevent.js +66 -0
- package/dist/esm/models/components/orderrefundedevent.js.map +1 -0
- package/dist/esm/models/components/orderrefundedmetadata.d.ts +35 -0
- package/dist/esm/models/components/orderrefundedmetadata.d.ts.map +1 -0
- package/dist/esm/models/components/orderrefundedmetadata.js +48 -0
- package/dist/esm/models/components/orderrefundedmetadata.js.map +1 -0
- package/dist/esm/models/components/organization.d.ts +2 -2
- package/dist/esm/models/components/organization.d.ts.map +1 -1
- package/dist/esm/models/components/organization.js +3 -3
- package/dist/esm/models/components/organization.js.map +1 -1
- package/dist/esm/models/components/organizationfeaturesettings.d.ts +5 -0
- package/dist/esm/models/components/organizationfeaturesettings.d.ts.map +1 -1
- package/dist/esm/models/components/organizationfeaturesettings.js +4 -0
- package/dist/esm/models/components/organizationfeaturesettings.js.map +1 -1
- package/dist/{commonjs/models/components/status.d.ts → esm/models/components/organizationstatus.d.ts} +8 -8
- package/dist/esm/models/components/organizationstatus.d.ts.map +1 -0
- package/dist/esm/models/components/organizationstatus.js +27 -0
- package/dist/esm/models/components/organizationstatus.js.map +1 -0
- package/dist/esm/models/components/organizationsubscriptionsettings.d.ts +2 -0
- package/dist/esm/models/components/organizationsubscriptionsettings.d.ts.map +1 -1
- package/dist/esm/models/components/organizationsubscriptionsettings.js +4 -0
- package/dist/esm/models/components/organizationsubscriptionsettings.js.map +1 -1
- package/dist/esm/models/components/scope.d.ts +6 -0
- package/dist/esm/models/components/scope.d.ts.map +1 -1
- package/dist/esm/models/components/scope.js +2 -0
- package/dist/esm/models/components/scope.js.map +1 -1
- package/dist/esm/models/components/seatassign.d.ts +5 -0
- package/dist/esm/models/components/seatassign.d.ts.map +1 -1
- package/dist/esm/models/components/seatassign.js +4 -0
- package/dist/esm/models/components/seatassign.js.map +1 -1
- package/dist/esm/models/components/subscriptioncycledevent.d.ts +5 -0
- package/dist/esm/models/components/subscriptioncycledevent.d.ts.map +1 -1
- package/dist/esm/models/components/subscriptioncycledevent.js +4 -0
- package/dist/esm/models/components/subscriptioncycledevent.js.map +1 -1
- package/dist/esm/models/components/subscriptionproductupdatedevent.d.ts +5 -0
- package/dist/esm/models/components/subscriptionproductupdatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/subscriptionproductupdatedevent.js +4 -0
- package/dist/esm/models/components/subscriptionproductupdatedevent.js.map +1 -1
- package/dist/esm/models/components/subscriptionrevokedevent.d.ts +5 -0
- package/dist/esm/models/components/subscriptionrevokedevent.d.ts.map +1 -1
- package/dist/esm/models/components/subscriptionrevokedevent.js +4 -0
- package/dist/esm/models/components/subscriptionrevokedevent.js.map +1 -1
- package/dist/esm/models/components/systemevent.d.ts +25 -0
- package/dist/esm/models/components/systemevent.d.ts.map +1 -1
- package/dist/esm/models/components/systemevent.js +35 -0
- package/dist/esm/models/components/systemevent.js.map +1 -1
- package/dist/esm/models/components/userevent.d.ts +5 -0
- package/dist/esm/models/components/userevent.d.ts.map +1 -1
- package/dist/esm/models/components/userevent.js +4 -0
- package/dist/esm/models/components/userevent.js.map +1 -1
- package/dist/esm/models/components/wallet.d.ts +64 -0
- package/dist/esm/models/components/wallet.d.ts.map +1 -0
- package/dist/esm/models/components/wallet.js +55 -0
- package/dist/esm/models/components/wallet.js.map +1 -0
- package/dist/esm/models/components/walletsortproperty.d.ts +34 -0
- package/dist/esm/models/components/walletsortproperty.d.ts.map +1 -0
- package/dist/esm/models/components/walletsortproperty.js +26 -0
- package/dist/esm/models/components/walletsortproperty.js.map +1 -0
- package/dist/esm/models/components/wallettopupcreate.d.ts +40 -0
- package/dist/esm/models/components/wallettopupcreate.d.ts.map +1 -0
- package/dist/esm/models/components/wallettopupcreate.js +33 -0
- package/dist/esm/models/components/wallettopupcreate.js.map +1 -0
- package/dist/esm/models/components/webhookendpoint.d.ts +5 -0
- package/dist/esm/models/components/webhookendpoint.d.ts.map +1 -1
- package/dist/esm/models/components/webhookendpoint.js +2 -0
- package/dist/esm/models/components/webhookendpoint.js.map +1 -1
- package/dist/esm/models/components/webhookendpointupdate.d.ts +5 -0
- package/dist/esm/models/components/webhookendpointupdate.d.ts.map +1 -1
- package/dist/esm/models/components/webhookendpointupdate.js +2 -0
- package/dist/esm/models/components/webhookendpointupdate.js.map +1 -1
- package/dist/esm/models/errors/missingpaymentmethoderror.d.ts +39 -0
- package/dist/esm/models/errors/missingpaymentmethoderror.d.ts.map +1 -0
- package/dist/esm/models/errors/missingpaymentmethoderror.js +51 -0
- package/dist/esm/models/errors/missingpaymentmethoderror.js.map +1 -0
- package/dist/esm/models/errors/paymentintentfailederror.d.ts +39 -0
- package/dist/esm/models/errors/paymentintentfailederror.d.ts.map +1 -0
- package/dist/esm/models/errors/paymentintentfailederror.js +51 -0
- package/dist/esm/models/errors/paymentintentfailederror.js.map +1 -0
- package/dist/esm/models/operations/customerportalbenefitgrantslist.d.ts +0 -29
- package/dist/esm/models/operations/customerportalbenefitgrantslist.d.ts.map +1 -1
- package/dist/esm/models/operations/customerportalbenefitgrantslist.js +0 -29
- package/dist/esm/models/operations/customerportalbenefitgrantslist.js.map +1 -1
- package/dist/esm/models/operations/customerportaldownloadableslist.d.ts +0 -29
- package/dist/esm/models/operations/customerportaldownloadableslist.d.ts.map +1 -1
- package/dist/esm/models/operations/customerportaldownloadableslist.js +0 -29
- package/dist/esm/models/operations/customerportaldownloadableslist.js.map +1 -1
- package/dist/esm/models/operations/customerportallicensekeyslist.d.ts +0 -29
- package/dist/esm/models/operations/customerportallicensekeyslist.d.ts.map +1 -1
- package/dist/esm/models/operations/customerportallicensekeyslist.js +0 -29
- package/dist/esm/models/operations/customerportallicensekeyslist.js.map +1 -1
- package/dist/esm/models/operations/customerportalorderslist.d.ts +0 -29
- package/dist/esm/models/operations/customerportalorderslist.d.ts.map +1 -1
- package/dist/esm/models/operations/customerportalorderslist.js +0 -28
- package/dist/esm/models/operations/customerportalorderslist.js.map +1 -1
- package/dist/esm/models/operations/customerportalsubscriptionslist.d.ts +0 -29
- package/dist/esm/models/operations/customerportalsubscriptionslist.d.ts.map +1 -1
- package/dist/esm/models/operations/customerportalsubscriptionslist.js +0 -29
- package/dist/esm/models/operations/customerportalsubscriptionslist.js.map +1 -1
- package/dist/esm/models/operations/customerportalwalletsget.d.ts +57 -0
- package/dist/esm/models/operations/customerportalwalletsget.d.ts.map +1 -0
- package/dist/esm/models/operations/customerportalwalletsget.js +65 -0
- package/dist/esm/models/operations/customerportalwalletsget.js.map +1 -0
- package/dist/esm/models/operations/customerportalwalletslist.d.ts +94 -0
- package/dist/esm/models/operations/customerportalwalletslist.d.ts.map +1 -0
- package/dist/esm/models/operations/customerportalwalletslist.js +106 -0
- package/dist/esm/models/operations/customerportalwalletslist.js.map +1 -0
- package/dist/esm/models/operations/eventslist.d.ts +5 -0
- package/dist/esm/models/operations/eventslist.d.ts.map +1 -1
- package/dist/esm/models/operations/eventslist.js +4 -0
- package/dist/esm/models/operations/eventslist.js.map +1 -1
- package/dist/esm/models/operations/walletsget.d.ts +32 -0
- package/dist/esm/models/operations/walletsget.d.ts.map +1 -0
- package/dist/esm/models/operations/walletsget.js +31 -0
- package/dist/esm/models/operations/walletsget.js.map +1 -0
- package/dist/esm/models/operations/walletslist.d.ts +127 -0
- package/dist/esm/models/operations/walletslist.d.ts.map +1 -0
- package/dist/esm/models/operations/walletslist.js +130 -0
- package/dist/esm/models/operations/walletslist.js.map +1 -0
- package/dist/esm/models/operations/walletstopup.d.ts +35 -0
- package/dist/esm/models/operations/walletstopup.d.ts.map +1 -0
- package/dist/esm/models/operations/walletstopup.js +43 -0
- package/dist/esm/models/operations/walletstopup.js.map +1 -0
- package/dist/esm/sdk/customerportal.d.ts +3 -0
- package/dist/esm/sdk/customerportal.d.ts.map +1 -1
- package/dist/esm/sdk/customerportal.js +4 -0
- package/dist/esm/sdk/customerportal.js.map +1 -1
- package/dist/esm/sdk/polarwallets.d.ts +28 -0
- package/dist/esm/sdk/polarwallets.d.ts.map +1 -0
- package/dist/esm/sdk/polarwallets.js +33 -0
- package/dist/esm/sdk/polarwallets.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/wallets.d.ts +40 -0
- package/dist/esm/sdk/wallets.d.ts.map +1 -0
- package/dist/esm/sdk/wallets.js +47 -0
- package/dist/esm/sdk/wallets.js.map +1 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/customerPortalBenefitGrantsList.ts +0 -1
- package/src/funcs/customerPortalDownloadablesList.ts +0 -1
- package/src/funcs/customerPortalLicenseKeysList.ts +0 -1
- package/src/funcs/customerPortalOrdersList.ts +0 -1
- package/src/funcs/customerPortalSubscriptionsList.ts +0 -1
- package/src/funcs/customerPortalWalletsGet.ts +205 -0
- package/src/funcs/customerPortalWalletsList.ts +271 -0
- package/src/funcs/eventsList.ts +1 -0
- package/src/funcs/walletsGet.ts +192 -0
- package/src/funcs/walletsList.ts +260 -0
- package/src/funcs/walletsTopUp.ts +212 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/addressdict.ts +91 -0
- package/src/models/components/benefitcycledevent.ts +9 -0
- package/src/models/components/benefitgrantedevent.ts +9 -0
- package/src/models/components/benefitrevokedevent.ts +9 -0
- package/src/models/components/benefitupdatedevent.ts +9 -0
- package/src/models/components/checkout.ts +45 -30
- package/src/models/components/checkoutpublic.ts +45 -30
- package/src/models/components/checkoutpublicconfirmed.ts +45 -30
- package/src/models/components/customercreate.ts +0 -3
- package/src/models/components/customercreatedevent.ts +159 -0
- package/src/models/components/customercreatedmetadata.ts +93 -0
- package/src/models/components/customerdeletedevent.ts +159 -0
- package/src/models/components/customerdeletedmetadata.ts +93 -0
- package/src/models/components/customerstatesubscription.ts +14 -18
- package/src/models/components/customerupdate.ts +0 -3
- package/src/models/components/customerupdatedevent.ts +159 -0
- package/src/models/components/customerupdatedfields.ts +155 -0
- package/src/models/components/customerupdatedmetadata.ts +105 -0
- package/src/models/components/customerupdateexternalid.ts +0 -3
- package/src/models/components/customerwallet.ts +122 -0
- package/src/models/components/customerwalletsortproperty.ts +37 -0
- package/src/models/components/eventcreatecustomer.ts +18 -0
- package/src/models/components/eventcreateexternalcustomer.ts +18 -0
- package/src/models/components/eventsingestresponse.ts +7 -0
- package/src/models/components/listresourcecustomerwallet.ts +82 -0
- package/src/models/components/listresourcewallet.ts +82 -0
- package/src/models/components/metercreditevent.ts +9 -0
- package/src/models/components/meterresetevent.ts +9 -0
- package/src/models/components/metricperiod.ts +374 -0
- package/src/models/components/metrics.ts +61 -0
- package/src/models/components/metricstotals.ts +400 -0
- package/src/models/components/metrictype.ts +1 -0
- package/src/models/components/oauth2clientconfiguration.ts +2 -2
- package/src/models/components/oauth2clientconfigurationupdate.ts +2 -2
- package/src/models/components/orderpaidevent.ts +155 -0
- package/src/models/components/orderpaidmetadata.ts +87 -0
- package/src/models/components/orderrefundedevent.ts +159 -0
- package/src/models/components/orderrefundedmetadata.ts +89 -0
- package/src/models/components/organization.ts +8 -8
- package/src/models/components/organizationfeaturesettings.ts +9 -0
- package/src/models/components/organizationstatus.ts +36 -0
- package/src/models/components/organizationsubscriptionsettings.ts +6 -0
- package/src/models/components/scope.ts +2 -0
- package/src/models/components/seatassign.ts +9 -0
- package/src/models/components/subscriptioncycledevent.ts +9 -0
- package/src/models/components/subscriptionproductupdatedevent.ts +9 -0
- package/src/models/components/subscriptionrevokedevent.ts +9 -0
- package/src/models/components/systemevent.ts +90 -0
- package/src/models/components/userevent.ts +9 -0
- package/src/models/components/wallet.ts +121 -0
- package/src/models/components/walletsortproperty.ts +35 -0
- package/src/models/components/wallettopupcreate.ts +79 -0
- package/src/models/components/webhookendpoint.ts +7 -0
- package/src/models/components/webhookendpointupdate.ts +7 -0
- package/src/models/errors/missingpaymentmethoderror.ts +85 -0
- package/src/models/errors/paymentintentfailederror.ts +85 -0
- package/src/models/operations/customerportalbenefitgrantslist.ts +0 -80
- package/src/models/operations/customerportaldownloadableslist.ts +0 -80
- package/src/models/operations/customerportallicensekeyslist.ts +0 -80
- package/src/models/operations/customerportalorderslist.ts +0 -81
- package/src/models/operations/customerportalsubscriptionslist.ts +0 -80
- package/src/models/operations/customerportalwalletsget.ts +140 -0
- package/src/models/operations/customerportalwalletslist.ts +237 -0
- package/src/models/operations/eventslist.ts +9 -0
- package/src/models/operations/walletsget.ts +69 -0
- package/src/models/operations/walletslist.ts +315 -0
- package/src/models/operations/walletstopup.ts +88 -0
- package/src/sdk/customerportal.ts +6 -0
- package/src/sdk/polarwallets.ts +65 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/wallets.ts +78 -0
- package/.devcontainer/README.md +0 -35
- package/dist/commonjs/models/components/status.d.ts.map +0 -1
- package/dist/commonjs/models/components/status.js.map +0 -1
- package/dist/esm/models/components/status.d.ts.map +0 -1
- package/dist/esm/models/components/status.js +0 -28
- package/dist/esm/models/components/status.js.map +0 -1
- package/docs/sdks/benefitgrants/README.md +0 -88
- package/docs/sdks/benefits/README.md +0 -500
- package/docs/sdks/checkoutlinks/README.md +0 -407
- package/docs/sdks/checkouts/README.md +0 -600
- package/docs/sdks/clients/README.md +0 -331
- package/docs/sdks/customermeters/README.md +0 -166
- package/docs/sdks/customers/README.md +0 -1036
- package/docs/sdks/customerseats/README.md +0 -441
- package/docs/sdks/customersession/README.md +0 -79
- package/docs/sdks/customersessions/README.md +0 -84
- package/docs/sdks/customfields/README.md +0 -417
- package/docs/sdks/discounts/README.md +0 -409
- package/docs/sdks/downloadables/README.md +0 -87
- package/docs/sdks/events/README.md +0 -324
- package/docs/sdks/files/README.md +0 -460
- package/docs/sdks/licensekeys/README.md +0 -576
- package/docs/sdks/meters/README.md +0 -437
- package/docs/sdks/metrics/README.md +0 -165
- package/docs/sdks/oauth2/README.md +0 -371
- package/docs/sdks/orders/README.md +0 -489
- package/docs/sdks/organizations/README.md +0 -322
- package/docs/sdks/payments/README.md +0 -166
- package/docs/sdks/polarbenefitgrants/README.md +0 -254
- package/docs/sdks/polarcustomermeters/README.md +0 -164
- package/docs/sdks/polarcustomers/README.md +0 -482
- package/docs/sdks/polarlicensekeys/README.md +0 -410
- package/docs/sdks/polarorders/README.md +0 -578
- package/docs/sdks/polarorganizations/README.md +0 -79
- package/docs/sdks/polarsubscriptions/README.md +0 -330
- package/docs/sdks/products/README.md +0 -441
- package/docs/sdks/refunds/README.md +0 -171
- package/docs/sdks/seats/README.md +0 -379
- package/docs/sdks/subscriptions/README.md +0 -493
- package/docs/sdks/webhooks/README.md +0 -650
- package/examples/README.md +0 -31
- package/src/models/components/status.ts +0 -34
|
@@ -48,6 +48,10 @@ export type BenefitRevokedEvent = {
|
|
|
48
48
|
* ID of the customer in your system associated with the event.
|
|
49
49
|
*/
|
|
50
50
|
externalCustomerId: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Number of direct child events linked to this event.
|
|
53
|
+
*/
|
|
54
|
+
childCount?: number | undefined;
|
|
51
55
|
/**
|
|
52
56
|
* The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.
|
|
53
57
|
*/
|
|
@@ -71,6 +75,7 @@ export const BenefitRevokedEvent$inboundSchema: z.ZodType<
|
|
|
71
75
|
customer_id: z.nullable(z.string()),
|
|
72
76
|
customer: z.nullable(Customer$inboundSchema),
|
|
73
77
|
external_customer_id: z.nullable(z.string()),
|
|
78
|
+
child_count: z.number().int().default(0),
|
|
74
79
|
source: z.literal("system"),
|
|
75
80
|
name: z.literal("benefit.revoked"),
|
|
76
81
|
metadata: BenefitGrantMetadata$inboundSchema,
|
|
@@ -79,6 +84,7 @@ export const BenefitRevokedEvent$inboundSchema: z.ZodType<
|
|
|
79
84
|
"organization_id": "organizationId",
|
|
80
85
|
"customer_id": "customerId",
|
|
81
86
|
"external_customer_id": "externalCustomerId",
|
|
87
|
+
"child_count": "childCount",
|
|
82
88
|
});
|
|
83
89
|
});
|
|
84
90
|
|
|
@@ -90,6 +96,7 @@ export type BenefitRevokedEvent$Outbound = {
|
|
|
90
96
|
customer_id: string | null;
|
|
91
97
|
customer: Customer$Outbound | null;
|
|
92
98
|
external_customer_id: string | null;
|
|
99
|
+
child_count: number;
|
|
93
100
|
source: "system";
|
|
94
101
|
name: "benefit.revoked";
|
|
95
102
|
metadata: BenefitGrantMetadata$Outbound;
|
|
@@ -107,6 +114,7 @@ export const BenefitRevokedEvent$outboundSchema: z.ZodType<
|
|
|
107
114
|
customerId: z.nullable(z.string()),
|
|
108
115
|
customer: z.nullable(Customer$outboundSchema),
|
|
109
116
|
externalCustomerId: z.nullable(z.string()),
|
|
117
|
+
childCount: z.number().int().default(0),
|
|
110
118
|
source: z.literal("system"),
|
|
111
119
|
name: z.literal("benefit.revoked"),
|
|
112
120
|
metadata: BenefitGrantMetadata$outboundSchema,
|
|
@@ -115,6 +123,7 @@ export const BenefitRevokedEvent$outboundSchema: z.ZodType<
|
|
|
115
123
|
organizationId: "organization_id",
|
|
116
124
|
customerId: "customer_id",
|
|
117
125
|
externalCustomerId: "external_customer_id",
|
|
126
|
+
childCount: "child_count",
|
|
118
127
|
});
|
|
119
128
|
});
|
|
120
129
|
|
|
@@ -48,6 +48,10 @@ export type BenefitUpdatedEvent = {
|
|
|
48
48
|
* ID of the customer in your system associated with the event.
|
|
49
49
|
*/
|
|
50
50
|
externalCustomerId: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Number of direct child events linked to this event.
|
|
53
|
+
*/
|
|
54
|
+
childCount?: number | undefined;
|
|
51
55
|
/**
|
|
52
56
|
* The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.
|
|
53
57
|
*/
|
|
@@ -71,6 +75,7 @@ export const BenefitUpdatedEvent$inboundSchema: z.ZodType<
|
|
|
71
75
|
customer_id: z.nullable(z.string()),
|
|
72
76
|
customer: z.nullable(Customer$inboundSchema),
|
|
73
77
|
external_customer_id: z.nullable(z.string()),
|
|
78
|
+
child_count: z.number().int().default(0),
|
|
74
79
|
source: z.literal("system"),
|
|
75
80
|
name: z.literal("benefit.updated"),
|
|
76
81
|
metadata: BenefitGrantMetadata$inboundSchema,
|
|
@@ -79,6 +84,7 @@ export const BenefitUpdatedEvent$inboundSchema: z.ZodType<
|
|
|
79
84
|
"organization_id": "organizationId",
|
|
80
85
|
"customer_id": "customerId",
|
|
81
86
|
"external_customer_id": "externalCustomerId",
|
|
87
|
+
"child_count": "childCount",
|
|
82
88
|
});
|
|
83
89
|
});
|
|
84
90
|
|
|
@@ -90,6 +96,7 @@ export type BenefitUpdatedEvent$Outbound = {
|
|
|
90
96
|
customer_id: string | null;
|
|
91
97
|
customer: Customer$Outbound | null;
|
|
92
98
|
external_customer_id: string | null;
|
|
99
|
+
child_count: number;
|
|
93
100
|
source: "system";
|
|
94
101
|
name: "benefit.updated";
|
|
95
102
|
metadata: BenefitGrantMetadata$Outbound;
|
|
@@ -107,6 +114,7 @@ export const BenefitUpdatedEvent$outboundSchema: z.ZodType<
|
|
|
107
114
|
customerId: z.nullable(z.string()),
|
|
108
115
|
customer: z.nullable(Customer$outboundSchema),
|
|
109
116
|
externalCustomerId: z.nullable(z.string()),
|
|
117
|
+
childCount: z.number().int().default(0),
|
|
110
118
|
source: z.literal("system"),
|
|
111
119
|
name: z.literal("benefit.updated"),
|
|
112
120
|
metadata: BenefitGrantMetadata$outboundSchema,
|
|
@@ -115,6 +123,7 @@ export const BenefitUpdatedEvent$outboundSchema: z.ZodType<
|
|
|
115
123
|
organizationId: "organization_id",
|
|
116
124
|
customerId: "customer_id",
|
|
117
125
|
externalCustomerId: "external_customer_id",
|
|
126
|
+
childCount: "child_count",
|
|
118
127
|
});
|
|
119
128
|
});
|
|
120
129
|
|
|
@@ -87,9 +87,6 @@ export type CheckoutCustomFieldData = string | number | boolean | Date;
|
|
|
87
87
|
|
|
88
88
|
export type CheckoutMetadata = string | number | number | boolean;
|
|
89
89
|
|
|
90
|
-
/**
|
|
91
|
-
* Price of the selected product.
|
|
92
|
-
*/
|
|
93
90
|
export type CheckoutProductPrice = LegacyRecurringProductPrice | ProductPrice;
|
|
94
91
|
|
|
95
92
|
export type CheckoutDiscount =
|
|
@@ -192,14 +189,18 @@ export type Checkout = {
|
|
|
192
189
|
* End date and time of the trial period, if any.
|
|
193
190
|
*/
|
|
194
191
|
trialEnd: Date | null;
|
|
192
|
+
/**
|
|
193
|
+
* ID of the organization owning the checkout session.
|
|
194
|
+
*/
|
|
195
|
+
organizationId: string;
|
|
195
196
|
/**
|
|
196
197
|
* ID of the product to checkout.
|
|
197
198
|
*/
|
|
198
|
-
productId: string;
|
|
199
|
+
productId: string | null;
|
|
199
200
|
/**
|
|
200
201
|
* ID of the product price to checkout.
|
|
201
202
|
*/
|
|
202
|
-
productPriceId: string;
|
|
203
|
+
productPriceId: string | null;
|
|
203
204
|
/**
|
|
204
205
|
* ID of the discount applied to the checkout.
|
|
205
206
|
*/
|
|
@@ -273,13 +274,13 @@ export type Checkout = {
|
|
|
273
274
|
*/
|
|
274
275
|
products: Array<CheckoutProduct>;
|
|
275
276
|
/**
|
|
276
|
-
* Product
|
|
277
|
+
* Product selected to checkout.
|
|
277
278
|
*/
|
|
278
|
-
product: CheckoutProduct;
|
|
279
|
+
product: CheckoutProduct | null;
|
|
279
280
|
/**
|
|
280
281
|
* Price of the selected product.
|
|
281
282
|
*/
|
|
282
|
-
productPrice: LegacyRecurringProductPrice | ProductPrice;
|
|
283
|
+
productPrice: LegacyRecurringProductPrice | ProductPrice | null;
|
|
283
284
|
discount:
|
|
284
285
|
| CheckoutDiscountFixedRepeatDuration
|
|
285
286
|
| CheckoutDiscountFixedOnceForeverDuration
|
|
@@ -287,7 +288,7 @@ export type Checkout = {
|
|
|
287
288
|
| CheckoutDiscountPercentageOnceForeverDuration
|
|
288
289
|
| null;
|
|
289
290
|
subscriptionId: string | null;
|
|
290
|
-
attachedCustomFields: Array<AttachedCustomField
|
|
291
|
+
attachedCustomFields: Array<AttachedCustomField> | null;
|
|
291
292
|
customerMetadata: { [k: string]: string | number | boolean };
|
|
292
293
|
};
|
|
293
294
|
|
|
@@ -609,8 +610,9 @@ export const Checkout$inboundSchema: z.ZodType<
|
|
|
609
610
|
trial_end: z.nullable(
|
|
610
611
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
611
612
|
),
|
|
612
|
-
|
|
613
|
-
|
|
613
|
+
organization_id: z.string(),
|
|
614
|
+
product_id: z.nullable(z.string()),
|
|
615
|
+
product_price_id: z.nullable(z.string()),
|
|
614
616
|
discount_id: z.nullable(z.string()),
|
|
615
617
|
allow_discount_codes: z.boolean(),
|
|
616
618
|
require_billing_address: z.boolean(),
|
|
@@ -637,11 +639,13 @@ export const Checkout$inboundSchema: z.ZodType<
|
|
|
637
639
|
external_customer_id: z.nullable(z.string()),
|
|
638
640
|
customer_external_id: z.nullable(z.string()),
|
|
639
641
|
products: z.array(CheckoutProduct$inboundSchema),
|
|
640
|
-
product: CheckoutProduct$inboundSchema,
|
|
641
|
-
product_price: z.
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
642
|
+
product: z.nullable(CheckoutProduct$inboundSchema),
|
|
643
|
+
product_price: z.nullable(
|
|
644
|
+
z.union([
|
|
645
|
+
LegacyRecurringProductPrice$inboundSchema,
|
|
646
|
+
ProductPrice$inboundSchema,
|
|
647
|
+
]),
|
|
648
|
+
),
|
|
645
649
|
discount: z.nullable(
|
|
646
650
|
z.union([
|
|
647
651
|
CheckoutDiscountFixedRepeatDuration$inboundSchema,
|
|
@@ -651,7 +655,9 @@ export const Checkout$inboundSchema: z.ZodType<
|
|
|
651
655
|
]),
|
|
652
656
|
),
|
|
653
657
|
subscription_id: z.nullable(z.string()),
|
|
654
|
-
attached_custom_fields: z.
|
|
658
|
+
attached_custom_fields: z.nullable(
|
|
659
|
+
z.array(AttachedCustomField$inboundSchema),
|
|
660
|
+
),
|
|
655
661
|
customer_metadata: z.record(
|
|
656
662
|
z.union([z.string(), z.number().int(), z.boolean()]),
|
|
657
663
|
),
|
|
@@ -674,6 +680,7 @@ export const Checkout$inboundSchema: z.ZodType<
|
|
|
674
680
|
"active_trial_interval": "activeTrialInterval",
|
|
675
681
|
"active_trial_interval_count": "activeTrialIntervalCount",
|
|
676
682
|
"trial_end": "trialEnd",
|
|
683
|
+
"organization_id": "organizationId",
|
|
677
684
|
"product_id": "productId",
|
|
678
685
|
"product_price_id": "productPriceId",
|
|
679
686
|
"discount_id": "discountId",
|
|
@@ -732,8 +739,9 @@ export type Checkout$Outbound = {
|
|
|
732
739
|
active_trial_interval: string | null;
|
|
733
740
|
active_trial_interval_count: number | null;
|
|
734
741
|
trial_end: string | null;
|
|
735
|
-
|
|
736
|
-
|
|
742
|
+
organization_id: string;
|
|
743
|
+
product_id: string | null;
|
|
744
|
+
product_price_id: string | null;
|
|
737
745
|
discount_id: string | null;
|
|
738
746
|
allow_discount_codes: boolean;
|
|
739
747
|
require_billing_address: boolean;
|
|
@@ -758,8 +766,11 @@ export type Checkout$Outbound = {
|
|
|
758
766
|
external_customer_id: string | null;
|
|
759
767
|
customer_external_id: string | null;
|
|
760
768
|
products: Array<CheckoutProduct$Outbound>;
|
|
761
|
-
product: CheckoutProduct$Outbound;
|
|
762
|
-
product_price:
|
|
769
|
+
product: CheckoutProduct$Outbound | null;
|
|
770
|
+
product_price:
|
|
771
|
+
| LegacyRecurringProductPrice$Outbound
|
|
772
|
+
| ProductPrice$Outbound
|
|
773
|
+
| null;
|
|
763
774
|
discount:
|
|
764
775
|
| CheckoutDiscountFixedRepeatDuration$Outbound
|
|
765
776
|
| CheckoutDiscountFixedOnceForeverDuration$Outbound
|
|
@@ -767,7 +778,7 @@ export type Checkout$Outbound = {
|
|
|
767
778
|
| CheckoutDiscountPercentageOnceForeverDuration$Outbound
|
|
768
779
|
| null;
|
|
769
780
|
subscription_id: string | null;
|
|
770
|
-
attached_custom_fields: Array<AttachedCustomField$Outbound
|
|
781
|
+
attached_custom_fields: Array<AttachedCustomField$Outbound> | null;
|
|
771
782
|
customer_metadata: { [k: string]: string | number | boolean };
|
|
772
783
|
};
|
|
773
784
|
|
|
@@ -809,8 +820,9 @@ export const Checkout$outboundSchema: z.ZodType<
|
|
|
809
820
|
activeTrialInterval: z.nullable(TrialInterval$outboundSchema),
|
|
810
821
|
activeTrialIntervalCount: z.nullable(z.number().int()),
|
|
811
822
|
trialEnd: z.nullable(z.date().transform(v => v.toISOString())),
|
|
812
|
-
|
|
813
|
-
|
|
823
|
+
organizationId: z.string(),
|
|
824
|
+
productId: z.nullable(z.string()),
|
|
825
|
+
productPriceId: z.nullable(z.string()),
|
|
814
826
|
discountId: z.nullable(z.string()),
|
|
815
827
|
allowDiscountCodes: z.boolean(),
|
|
816
828
|
requireBillingAddress: z.boolean(),
|
|
@@ -837,11 +849,13 @@ export const Checkout$outboundSchema: z.ZodType<
|
|
|
837
849
|
externalCustomerId: z.nullable(z.string()),
|
|
838
850
|
customerExternalId: z.nullable(z.string()),
|
|
839
851
|
products: z.array(CheckoutProduct$outboundSchema),
|
|
840
|
-
product: CheckoutProduct$outboundSchema,
|
|
841
|
-
productPrice: z.
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
852
|
+
product: z.nullable(CheckoutProduct$outboundSchema),
|
|
853
|
+
productPrice: z.nullable(
|
|
854
|
+
z.union([
|
|
855
|
+
LegacyRecurringProductPrice$outboundSchema,
|
|
856
|
+
ProductPrice$outboundSchema,
|
|
857
|
+
]),
|
|
858
|
+
),
|
|
845
859
|
discount: z.nullable(
|
|
846
860
|
z.union([
|
|
847
861
|
CheckoutDiscountFixedRepeatDuration$outboundSchema,
|
|
@@ -851,7 +865,7 @@ export const Checkout$outboundSchema: z.ZodType<
|
|
|
851
865
|
]),
|
|
852
866
|
),
|
|
853
867
|
subscriptionId: z.nullable(z.string()),
|
|
854
|
-
attachedCustomFields: z.array(AttachedCustomField$outboundSchema),
|
|
868
|
+
attachedCustomFields: z.nullable(z.array(AttachedCustomField$outboundSchema)),
|
|
855
869
|
customerMetadata: z.record(
|
|
856
870
|
z.union([z.string(), z.number().int(), z.boolean()]),
|
|
857
871
|
),
|
|
@@ -874,6 +888,7 @@ export const Checkout$outboundSchema: z.ZodType<
|
|
|
874
888
|
activeTrialInterval: "active_trial_interval",
|
|
875
889
|
activeTrialIntervalCount: "active_trial_interval_count",
|
|
876
890
|
trialEnd: "trial_end",
|
|
891
|
+
organizationId: "organization_id",
|
|
877
892
|
productId: "product_id",
|
|
878
893
|
productPriceId: "product_price_id",
|
|
879
894
|
discountId: "discount_id",
|
|
@@ -91,9 +91,6 @@ import {
|
|
|
91
91
|
|
|
92
92
|
export type CheckoutPublicCustomFieldData = string | number | boolean | Date;
|
|
93
93
|
|
|
94
|
-
/**
|
|
95
|
-
* Price of the selected product.
|
|
96
|
-
*/
|
|
97
94
|
export type CheckoutPublicProductPrice =
|
|
98
95
|
| LegacyRecurringProductPrice
|
|
99
96
|
| ProductPrice;
|
|
@@ -196,14 +193,18 @@ export type CheckoutPublic = {
|
|
|
196
193
|
* End date and time of the trial period, if any.
|
|
197
194
|
*/
|
|
198
195
|
trialEnd: Date | null;
|
|
196
|
+
/**
|
|
197
|
+
* ID of the organization owning the checkout session.
|
|
198
|
+
*/
|
|
199
|
+
organizationId: string;
|
|
199
200
|
/**
|
|
200
201
|
* ID of the product to checkout.
|
|
201
202
|
*/
|
|
202
|
-
productId: string;
|
|
203
|
+
productId: string | null;
|
|
203
204
|
/**
|
|
204
205
|
* ID of the product price to checkout.
|
|
205
206
|
*/
|
|
206
|
-
productPriceId: string;
|
|
207
|
+
productPriceId: string | null;
|
|
207
208
|
/**
|
|
208
209
|
* ID of the discount applied to the checkout.
|
|
209
210
|
*/
|
|
@@ -260,13 +261,13 @@ export type CheckoutPublic = {
|
|
|
260
261
|
*/
|
|
261
262
|
products: Array<CheckoutProduct>;
|
|
262
263
|
/**
|
|
263
|
-
* Product
|
|
264
|
+
* Product selected to checkout.
|
|
264
265
|
*/
|
|
265
|
-
product: CheckoutProduct;
|
|
266
|
+
product: CheckoutProduct | null;
|
|
266
267
|
/**
|
|
267
268
|
* Price of the selected product.
|
|
268
269
|
*/
|
|
269
|
-
productPrice: LegacyRecurringProductPrice | ProductPrice;
|
|
270
|
+
productPrice: LegacyRecurringProductPrice | ProductPrice | null;
|
|
270
271
|
discount:
|
|
271
272
|
| CheckoutDiscountFixedRepeatDuration
|
|
272
273
|
| CheckoutDiscountFixedOnceForeverDuration
|
|
@@ -274,7 +275,7 @@ export type CheckoutPublic = {
|
|
|
274
275
|
| CheckoutDiscountPercentageOnceForeverDuration
|
|
275
276
|
| null;
|
|
276
277
|
organization: Organization;
|
|
277
|
-
attachedCustomFields: Array<AttachedCustomField
|
|
278
|
+
attachedCustomFields: Array<AttachedCustomField> | null;
|
|
278
279
|
};
|
|
279
280
|
|
|
280
281
|
/** @internal */
|
|
@@ -501,8 +502,9 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
|
|
|
501
502
|
trial_end: z.nullable(
|
|
502
503
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
503
504
|
),
|
|
504
|
-
|
|
505
|
-
|
|
505
|
+
organization_id: z.string(),
|
|
506
|
+
product_id: z.nullable(z.string()),
|
|
507
|
+
product_price_id: z.nullable(z.string()),
|
|
506
508
|
discount_id: z.nullable(z.string()),
|
|
507
509
|
allow_discount_codes: z.boolean(),
|
|
508
510
|
require_billing_address: z.boolean(),
|
|
@@ -522,11 +524,13 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
|
|
|
522
524
|
payment_processor_metadata: z.record(z.string()),
|
|
523
525
|
billing_address_fields: CheckoutBillingAddressFields$inboundSchema,
|
|
524
526
|
products: z.array(CheckoutProduct$inboundSchema),
|
|
525
|
-
product: CheckoutProduct$inboundSchema,
|
|
526
|
-
product_price: z.
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
527
|
+
product: z.nullable(CheckoutProduct$inboundSchema),
|
|
528
|
+
product_price: z.nullable(
|
|
529
|
+
z.union([
|
|
530
|
+
LegacyRecurringProductPrice$inboundSchema,
|
|
531
|
+
ProductPrice$inboundSchema,
|
|
532
|
+
]),
|
|
533
|
+
),
|
|
530
534
|
discount: z.nullable(
|
|
531
535
|
z.union([
|
|
532
536
|
CheckoutDiscountFixedRepeatDuration$inboundSchema,
|
|
@@ -536,7 +540,9 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
|
|
|
536
540
|
]),
|
|
537
541
|
),
|
|
538
542
|
organization: Organization$inboundSchema,
|
|
539
|
-
attached_custom_fields: z.
|
|
543
|
+
attached_custom_fields: z.nullable(
|
|
544
|
+
z.array(AttachedCustomField$inboundSchema),
|
|
545
|
+
),
|
|
540
546
|
}).transform((v) => {
|
|
541
547
|
return remap$(v, {
|
|
542
548
|
"created_at": "createdAt",
|
|
@@ -556,6 +562,7 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
|
|
|
556
562
|
"active_trial_interval": "activeTrialInterval",
|
|
557
563
|
"active_trial_interval_count": "activeTrialIntervalCount",
|
|
558
564
|
"trial_end": "trialEnd",
|
|
565
|
+
"organization_id": "organizationId",
|
|
559
566
|
"product_id": "productId",
|
|
560
567
|
"product_price_id": "productPriceId",
|
|
561
568
|
"discount_id": "discountId",
|
|
@@ -608,8 +615,9 @@ export type CheckoutPublic$Outbound = {
|
|
|
608
615
|
active_trial_interval: string | null;
|
|
609
616
|
active_trial_interval_count: number | null;
|
|
610
617
|
trial_end: string | null;
|
|
611
|
-
|
|
612
|
-
|
|
618
|
+
organization_id: string;
|
|
619
|
+
product_id: string | null;
|
|
620
|
+
product_price_id: string | null;
|
|
613
621
|
discount_id: string | null;
|
|
614
622
|
allow_discount_codes: boolean;
|
|
615
623
|
require_billing_address: boolean;
|
|
@@ -629,8 +637,11 @@ export type CheckoutPublic$Outbound = {
|
|
|
629
637
|
payment_processor_metadata: { [k: string]: string };
|
|
630
638
|
billing_address_fields: CheckoutBillingAddressFields$Outbound;
|
|
631
639
|
products: Array<CheckoutProduct$Outbound>;
|
|
632
|
-
product: CheckoutProduct$Outbound;
|
|
633
|
-
product_price:
|
|
640
|
+
product: CheckoutProduct$Outbound | null;
|
|
641
|
+
product_price:
|
|
642
|
+
| LegacyRecurringProductPrice$Outbound
|
|
643
|
+
| ProductPrice$Outbound
|
|
644
|
+
| null;
|
|
634
645
|
discount:
|
|
635
646
|
| CheckoutDiscountFixedRepeatDuration$Outbound
|
|
636
647
|
| CheckoutDiscountFixedOnceForeverDuration$Outbound
|
|
@@ -638,7 +649,7 @@ export type CheckoutPublic$Outbound = {
|
|
|
638
649
|
| CheckoutDiscountPercentageOnceForeverDuration$Outbound
|
|
639
650
|
| null;
|
|
640
651
|
organization: Organization$Outbound;
|
|
641
|
-
attached_custom_fields: Array<AttachedCustomField$Outbound
|
|
652
|
+
attached_custom_fields: Array<AttachedCustomField$Outbound> | null;
|
|
642
653
|
};
|
|
643
654
|
|
|
644
655
|
/** @internal */
|
|
@@ -679,8 +690,9 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
|
|
|
679
690
|
activeTrialInterval: z.nullable(TrialInterval$outboundSchema),
|
|
680
691
|
activeTrialIntervalCount: z.nullable(z.number().int()),
|
|
681
692
|
trialEnd: z.nullable(z.date().transform(v => v.toISOString())),
|
|
682
|
-
|
|
683
|
-
|
|
693
|
+
organizationId: z.string(),
|
|
694
|
+
productId: z.nullable(z.string()),
|
|
695
|
+
productPriceId: z.nullable(z.string()),
|
|
684
696
|
discountId: z.nullable(z.string()),
|
|
685
697
|
allowDiscountCodes: z.boolean(),
|
|
686
698
|
requireBillingAddress: z.boolean(),
|
|
@@ -700,11 +712,13 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
|
|
|
700
712
|
paymentProcessorMetadata: z.record(z.string()),
|
|
701
713
|
billingAddressFields: CheckoutBillingAddressFields$outboundSchema,
|
|
702
714
|
products: z.array(CheckoutProduct$outboundSchema),
|
|
703
|
-
product: CheckoutProduct$outboundSchema,
|
|
704
|
-
productPrice: z.
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
715
|
+
product: z.nullable(CheckoutProduct$outboundSchema),
|
|
716
|
+
productPrice: z.nullable(
|
|
717
|
+
z.union([
|
|
718
|
+
LegacyRecurringProductPrice$outboundSchema,
|
|
719
|
+
ProductPrice$outboundSchema,
|
|
720
|
+
]),
|
|
721
|
+
),
|
|
708
722
|
discount: z.nullable(
|
|
709
723
|
z.union([
|
|
710
724
|
CheckoutDiscountFixedRepeatDuration$outboundSchema,
|
|
@@ -714,7 +728,7 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
|
|
|
714
728
|
]),
|
|
715
729
|
),
|
|
716
730
|
organization: Organization$outboundSchema,
|
|
717
|
-
attachedCustomFields: z.array(AttachedCustomField$outboundSchema),
|
|
731
|
+
attachedCustomFields: z.nullable(z.array(AttachedCustomField$outboundSchema)),
|
|
718
732
|
}).transform((v) => {
|
|
719
733
|
return remap$(v, {
|
|
720
734
|
createdAt: "created_at",
|
|
@@ -734,6 +748,7 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
|
|
|
734
748
|
activeTrialInterval: "active_trial_interval",
|
|
735
749
|
activeTrialIntervalCount: "active_trial_interval_count",
|
|
736
750
|
trialEnd: "trial_end",
|
|
751
|
+
organizationId: "organization_id",
|
|
737
752
|
productId: "product_id",
|
|
738
753
|
productPriceId: "product_price_id",
|
|
739
754
|
discountId: "discount_id",
|
|
@@ -90,9 +90,6 @@ export type CheckoutPublicConfirmedCustomFieldData =
|
|
|
90
90
|
| boolean
|
|
91
91
|
| Date;
|
|
92
92
|
|
|
93
|
-
/**
|
|
94
|
-
* Price of the selected product.
|
|
95
|
-
*/
|
|
96
93
|
export type CheckoutPublicConfirmedProductPrice =
|
|
97
94
|
| LegacyRecurringProductPrice
|
|
98
95
|
| ProductPrice;
|
|
@@ -200,14 +197,18 @@ export type CheckoutPublicConfirmed = {
|
|
|
200
197
|
* End date and time of the trial period, if any.
|
|
201
198
|
*/
|
|
202
199
|
trialEnd: Date | null;
|
|
200
|
+
/**
|
|
201
|
+
* ID of the organization owning the checkout session.
|
|
202
|
+
*/
|
|
203
|
+
organizationId: string;
|
|
203
204
|
/**
|
|
204
205
|
* ID of the product to checkout.
|
|
205
206
|
*/
|
|
206
|
-
productId: string;
|
|
207
|
+
productId: string | null;
|
|
207
208
|
/**
|
|
208
209
|
* ID of the product price to checkout.
|
|
209
210
|
*/
|
|
210
|
-
productPriceId: string;
|
|
211
|
+
productPriceId: string | null;
|
|
211
212
|
/**
|
|
212
213
|
* ID of the discount applied to the checkout.
|
|
213
214
|
*/
|
|
@@ -264,13 +265,13 @@ export type CheckoutPublicConfirmed = {
|
|
|
264
265
|
*/
|
|
265
266
|
products: Array<CheckoutProduct>;
|
|
266
267
|
/**
|
|
267
|
-
* Product
|
|
268
|
+
* Product selected to checkout.
|
|
268
269
|
*/
|
|
269
|
-
product: CheckoutProduct;
|
|
270
|
+
product: CheckoutProduct | null;
|
|
270
271
|
/**
|
|
271
272
|
* Price of the selected product.
|
|
272
273
|
*/
|
|
273
|
-
productPrice: LegacyRecurringProductPrice | ProductPrice;
|
|
274
|
+
productPrice: LegacyRecurringProductPrice | ProductPrice | null;
|
|
274
275
|
discount:
|
|
275
276
|
| CheckoutDiscountFixedRepeatDuration
|
|
276
277
|
| CheckoutDiscountFixedOnceForeverDuration
|
|
@@ -278,7 +279,7 @@ export type CheckoutPublicConfirmed = {
|
|
|
278
279
|
| CheckoutDiscountPercentageOnceForeverDuration
|
|
279
280
|
| null;
|
|
280
281
|
organization: Organization;
|
|
281
|
-
attachedCustomFields: Array<AttachedCustomField
|
|
282
|
+
attachedCustomFields: Array<AttachedCustomField> | null;
|
|
282
283
|
customerSessionToken: string;
|
|
283
284
|
};
|
|
284
285
|
|
|
@@ -517,8 +518,9 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
|
|
|
517
518
|
trial_end: z.nullable(
|
|
518
519
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
519
520
|
),
|
|
520
|
-
|
|
521
|
-
|
|
521
|
+
organization_id: z.string(),
|
|
522
|
+
product_id: z.nullable(z.string()),
|
|
523
|
+
product_price_id: z.nullable(z.string()),
|
|
522
524
|
discount_id: z.nullable(z.string()),
|
|
523
525
|
allow_discount_codes: z.boolean(),
|
|
524
526
|
require_billing_address: z.boolean(),
|
|
@@ -538,11 +540,13 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
|
|
|
538
540
|
payment_processor_metadata: z.record(z.string()),
|
|
539
541
|
billing_address_fields: CheckoutBillingAddressFields$inboundSchema,
|
|
540
542
|
products: z.array(CheckoutProduct$inboundSchema),
|
|
541
|
-
product: CheckoutProduct$inboundSchema,
|
|
542
|
-
product_price: z.
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
543
|
+
product: z.nullable(CheckoutProduct$inboundSchema),
|
|
544
|
+
product_price: z.nullable(
|
|
545
|
+
z.union([
|
|
546
|
+
LegacyRecurringProductPrice$inboundSchema,
|
|
547
|
+
ProductPrice$inboundSchema,
|
|
548
|
+
]),
|
|
549
|
+
),
|
|
546
550
|
discount: z.nullable(
|
|
547
551
|
z.union([
|
|
548
552
|
CheckoutDiscountFixedRepeatDuration$inboundSchema,
|
|
@@ -552,7 +556,9 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
|
|
|
552
556
|
]),
|
|
553
557
|
),
|
|
554
558
|
organization: Organization$inboundSchema,
|
|
555
|
-
attached_custom_fields: z.
|
|
559
|
+
attached_custom_fields: z.nullable(
|
|
560
|
+
z.array(AttachedCustomField$inboundSchema),
|
|
561
|
+
),
|
|
556
562
|
customer_session_token: z.string(),
|
|
557
563
|
}).transform((v) => {
|
|
558
564
|
return remap$(v, {
|
|
@@ -573,6 +579,7 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
|
|
|
573
579
|
"active_trial_interval": "activeTrialInterval",
|
|
574
580
|
"active_trial_interval_count": "activeTrialIntervalCount",
|
|
575
581
|
"trial_end": "trialEnd",
|
|
582
|
+
"organization_id": "organizationId",
|
|
576
583
|
"product_id": "productId",
|
|
577
584
|
"product_price_id": "productPriceId",
|
|
578
585
|
"discount_id": "discountId",
|
|
@@ -626,8 +633,9 @@ export type CheckoutPublicConfirmed$Outbound = {
|
|
|
626
633
|
active_trial_interval: string | null;
|
|
627
634
|
active_trial_interval_count: number | null;
|
|
628
635
|
trial_end: string | null;
|
|
629
|
-
|
|
630
|
-
|
|
636
|
+
organization_id: string;
|
|
637
|
+
product_id: string | null;
|
|
638
|
+
product_price_id: string | null;
|
|
631
639
|
discount_id: string | null;
|
|
632
640
|
allow_discount_codes: boolean;
|
|
633
641
|
require_billing_address: boolean;
|
|
@@ -647,8 +655,11 @@ export type CheckoutPublicConfirmed$Outbound = {
|
|
|
647
655
|
payment_processor_metadata: { [k: string]: string };
|
|
648
656
|
billing_address_fields: CheckoutBillingAddressFields$Outbound;
|
|
649
657
|
products: Array<CheckoutProduct$Outbound>;
|
|
650
|
-
product: CheckoutProduct$Outbound;
|
|
651
|
-
product_price:
|
|
658
|
+
product: CheckoutProduct$Outbound | null;
|
|
659
|
+
product_price:
|
|
660
|
+
| LegacyRecurringProductPrice$Outbound
|
|
661
|
+
| ProductPrice$Outbound
|
|
662
|
+
| null;
|
|
652
663
|
discount:
|
|
653
664
|
| CheckoutDiscountFixedRepeatDuration$Outbound
|
|
654
665
|
| CheckoutDiscountFixedOnceForeverDuration$Outbound
|
|
@@ -656,7 +667,7 @@ export type CheckoutPublicConfirmed$Outbound = {
|
|
|
656
667
|
| CheckoutDiscountPercentageOnceForeverDuration$Outbound
|
|
657
668
|
| null;
|
|
658
669
|
organization: Organization$Outbound;
|
|
659
|
-
attached_custom_fields: Array<AttachedCustomField$Outbound
|
|
670
|
+
attached_custom_fields: Array<AttachedCustomField$Outbound> | null;
|
|
660
671
|
customer_session_token: string;
|
|
661
672
|
};
|
|
662
673
|
|
|
@@ -698,8 +709,9 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
|
|
|
698
709
|
activeTrialInterval: z.nullable(TrialInterval$outboundSchema),
|
|
699
710
|
activeTrialIntervalCount: z.nullable(z.number().int()),
|
|
700
711
|
trialEnd: z.nullable(z.date().transform(v => v.toISOString())),
|
|
701
|
-
|
|
702
|
-
|
|
712
|
+
organizationId: z.string(),
|
|
713
|
+
productId: z.nullable(z.string()),
|
|
714
|
+
productPriceId: z.nullable(z.string()),
|
|
703
715
|
discountId: z.nullable(z.string()),
|
|
704
716
|
allowDiscountCodes: z.boolean(),
|
|
705
717
|
requireBillingAddress: z.boolean(),
|
|
@@ -719,11 +731,13 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
|
|
|
719
731
|
paymentProcessorMetadata: z.record(z.string()),
|
|
720
732
|
billingAddressFields: CheckoutBillingAddressFields$outboundSchema,
|
|
721
733
|
products: z.array(CheckoutProduct$outboundSchema),
|
|
722
|
-
product: CheckoutProduct$outboundSchema,
|
|
723
|
-
productPrice: z.
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
734
|
+
product: z.nullable(CheckoutProduct$outboundSchema),
|
|
735
|
+
productPrice: z.nullable(
|
|
736
|
+
z.union([
|
|
737
|
+
LegacyRecurringProductPrice$outboundSchema,
|
|
738
|
+
ProductPrice$outboundSchema,
|
|
739
|
+
]),
|
|
740
|
+
),
|
|
727
741
|
discount: z.nullable(
|
|
728
742
|
z.union([
|
|
729
743
|
CheckoutDiscountFixedRepeatDuration$outboundSchema,
|
|
@@ -733,7 +747,7 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
|
|
|
733
747
|
]),
|
|
734
748
|
),
|
|
735
749
|
organization: Organization$outboundSchema,
|
|
736
|
-
attachedCustomFields: z.array(AttachedCustomField$outboundSchema),
|
|
750
|
+
attachedCustomFields: z.nullable(z.array(AttachedCustomField$outboundSchema)),
|
|
737
751
|
customerSessionToken: z.string(),
|
|
738
752
|
}).transform((v) => {
|
|
739
753
|
return remap$(v, {
|
|
@@ -754,6 +768,7 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
|
|
|
754
768
|
activeTrialInterval: "active_trial_interval",
|
|
755
769
|
activeTrialIntervalCount: "active_trial_interval_count",
|
|
756
770
|
trialEnd: "trial_end",
|
|
771
|
+
organizationId: "organization_id",
|
|
757
772
|
productId: "product_id",
|
|
758
773
|
productPriceId: "product_price_id",
|
|
759
774
|
discountId: "discount_id",
|
|
@@ -48,9 +48,6 @@ export type CustomerCreate = {
|
|
|
48
48
|
* The email address of the customer. This must be unique within the organization.
|
|
49
49
|
*/
|
|
50
50
|
email: string;
|
|
51
|
-
/**
|
|
52
|
-
* The name of the customer.
|
|
53
|
-
*/
|
|
54
51
|
name?: string | null | undefined;
|
|
55
52
|
billingAddress?: AddressInput | null | undefined;
|
|
56
53
|
taxId?: Array<string | TaxIDFormat | null> | null | undefined;
|