@polar-sh/sdk 0.40.1 → 0.40.3
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 +38 -22
- 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/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/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/customercreatedevent.d.ts +74 -0
- package/dist/commonjs/models/components/customercreatedevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/customercreatedevent.js +100 -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 +74 -0
- package/dist/commonjs/models/components/customerdeletedevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerdeletedevent.js +100 -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/customerupdatedevent.d.ts +74 -0
- package/dist/commonjs/models/components/customerupdatedevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/customerupdatedevent.js +100 -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/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/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/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 +74 -0
- package/dist/commonjs/models/components/orderpaidevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/orderpaidevent.js +100 -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 +74 -0
- package/dist/commonjs/models/components/orderrefundedevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/orderrefundedevent.js +100 -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/commonjs/models/components/{status.d.ts → 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/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/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/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/commonjs/webhooks.d.ts +1 -1
- package/dist/commonjs/webhooks.d.ts.map +1 -1
- package/dist/commonjs/webhooks.js +9 -0
- package/dist/commonjs/webhooks.js.map +1 -1
- 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/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/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/customercreatedevent.d.ts +74 -0
- package/dist/esm/models/components/customercreatedevent.d.ts.map +1 -0
- package/dist/esm/models/components/customercreatedevent.js +62 -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 +74 -0
- package/dist/esm/models/components/customerdeletedevent.d.ts.map +1 -0
- package/dist/esm/models/components/customerdeletedevent.js +62 -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/customerupdatedevent.d.ts +74 -0
- package/dist/esm/models/components/customerupdatedevent.d.ts.map +1 -0
- package/dist/esm/models/components/customerupdatedevent.js +62 -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/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/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/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 +74 -0
- package/dist/esm/models/components/orderpaidevent.d.ts.map +1 -0
- package/dist/esm/models/components/orderpaidevent.js +62 -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 +74 -0
- package/dist/esm/models/components/orderrefundedevent.d.ts.map +1 -0
- package/dist/esm/models/components/orderrefundedevent.js +62 -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/esm/models/components/{status.d.ts → 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/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/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/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/dist/esm/webhooks.d.ts +1 -1
- package/dist/esm/webhooks.d.ts.map +1 -1
- package/dist/esm/webhooks.js +9 -0
- package/dist/esm/webhooks.js.map +1 -1
- package/docs/sdks/downloadables/README.md +2 -6
- package/docs/sdks/polarbenefitgrants/README.md +2 -6
- package/docs/sdks/polarlicensekeys/README.md +2 -6
- package/docs/sdks/polarorders/README.md +2 -6
- package/docs/sdks/polarsubscriptions/README.md +2 -6
- package/docs/sdks/polarwallets/README.md +164 -0
- package/docs/sdks/wallets/README.md +256 -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/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/checkout.ts +45 -30
- package/src/models/components/checkoutpublic.ts +45 -30
- package/src/models/components/checkoutpublicconfirmed.ts +45 -30
- package/src/models/components/customercreatedevent.ts +150 -0
- package/src/models/components/customercreatedmetadata.ts +93 -0
- package/src/models/components/customerdeletedevent.ts +150 -0
- package/src/models/components/customerdeletedmetadata.ts +93 -0
- package/src/models/components/customerstatesubscription.ts +14 -18
- package/src/models/components/customerupdatedevent.ts +150 -0
- package/src/models/components/customerupdatedfields.ts +155 -0
- package/src/models/components/customerupdatedmetadata.ts +105 -0
- package/src/models/components/customerwallet.ts +122 -0
- package/src/models/components/customerwalletsortproperty.ts +37 -0
- package/src/models/components/listresourcecustomerwallet.ts +82 -0
- package/src/models/components/listresourcewallet.ts +82 -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 +146 -0
- package/src/models/components/orderpaidmetadata.ts +87 -0
- package/src/models/components/orderrefundedevent.ts +150 -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/systemevent.ts +90 -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/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/src/webhooks.ts +9 -0
- 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/src/models/components/status.ts +0 -34
|
@@ -110,7 +110,7 @@ export const OAuth2ClientConfigurationUpdate$inboundSchema: z.ZodType<
|
|
|
110
110
|
.optional(),
|
|
111
111
|
response_types: z.array(z.string()).optional(),
|
|
112
112
|
scope: z.string().default(
|
|
113
|
-
"openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write customer_seats:read customer_seats:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write",
|
|
113
|
+
"openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write wallets:read wallets:write customer_meters:read customer_sessions:write customer_seats:read customer_seats:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write",
|
|
114
114
|
),
|
|
115
115
|
client_name: z.string(),
|
|
116
116
|
client_uri: z.nullable(z.string()).optional(),
|
|
@@ -165,7 +165,7 @@ export const OAuth2ClientConfigurationUpdate$outboundSchema: z.ZodType<
|
|
|
165
165
|
.optional(),
|
|
166
166
|
responseTypes: z.array(z.string()).optional(),
|
|
167
167
|
scope: z.string().default(
|
|
168
|
-
"openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write customer_seats:read customer_seats:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write",
|
|
168
|
+
"openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write wallets:read wallets:write customer_meters:read customer_sessions:write customer_seats:read customer_seats:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write",
|
|
169
169
|
),
|
|
170
170
|
clientName: z.string(),
|
|
171
171
|
clientUri: z.nullable(z.string()).optional(),
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
Customer,
|
|
12
|
+
Customer$inboundSchema,
|
|
13
|
+
Customer$Outbound,
|
|
14
|
+
Customer$outboundSchema,
|
|
15
|
+
} from "./customer.js";
|
|
16
|
+
import {
|
|
17
|
+
OrderPaidMetadata,
|
|
18
|
+
OrderPaidMetadata$inboundSchema,
|
|
19
|
+
OrderPaidMetadata$Outbound,
|
|
20
|
+
OrderPaidMetadata$outboundSchema,
|
|
21
|
+
} from "./orderpaidmetadata.js";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* An event created by Polar when an order is paid.
|
|
25
|
+
*/
|
|
26
|
+
export type OrderPaidEvent = {
|
|
27
|
+
/**
|
|
28
|
+
* The ID of the object.
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* The timestamp of the event.
|
|
33
|
+
*/
|
|
34
|
+
timestamp: Date;
|
|
35
|
+
/**
|
|
36
|
+
* The ID of the organization owning the event.
|
|
37
|
+
*/
|
|
38
|
+
organizationId: string;
|
|
39
|
+
/**
|
|
40
|
+
* ID of the customer in your Polar organization associated with the event.
|
|
41
|
+
*/
|
|
42
|
+
customerId: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* The customer associated with the event.
|
|
45
|
+
*/
|
|
46
|
+
customer: Customer | null;
|
|
47
|
+
/**
|
|
48
|
+
* ID of the customer in your system associated with the event.
|
|
49
|
+
*/
|
|
50
|
+
externalCustomerId: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.
|
|
53
|
+
*/
|
|
54
|
+
source: "system";
|
|
55
|
+
/**
|
|
56
|
+
* The name of the event.
|
|
57
|
+
*/
|
|
58
|
+
name: "order.paid";
|
|
59
|
+
metadata: OrderPaidMetadata;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const OrderPaidEvent$inboundSchema: z.ZodType<
|
|
64
|
+
OrderPaidEvent,
|
|
65
|
+
z.ZodTypeDef,
|
|
66
|
+
unknown
|
|
67
|
+
> = z.object({
|
|
68
|
+
id: z.string(),
|
|
69
|
+
timestamp: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
70
|
+
organization_id: z.string(),
|
|
71
|
+
customer_id: z.nullable(z.string()),
|
|
72
|
+
customer: z.nullable(Customer$inboundSchema),
|
|
73
|
+
external_customer_id: z.nullable(z.string()),
|
|
74
|
+
source: z.literal("system"),
|
|
75
|
+
name: z.literal("order.paid"),
|
|
76
|
+
metadata: OrderPaidMetadata$inboundSchema,
|
|
77
|
+
}).transform((v) => {
|
|
78
|
+
return remap$(v, {
|
|
79
|
+
"organization_id": "organizationId",
|
|
80
|
+
"customer_id": "customerId",
|
|
81
|
+
"external_customer_id": "externalCustomerId",
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export type OrderPaidEvent$Outbound = {
|
|
87
|
+
id: string;
|
|
88
|
+
timestamp: string;
|
|
89
|
+
organization_id: string;
|
|
90
|
+
customer_id: string | null;
|
|
91
|
+
customer: Customer$Outbound | null;
|
|
92
|
+
external_customer_id: string | null;
|
|
93
|
+
source: "system";
|
|
94
|
+
name: "order.paid";
|
|
95
|
+
metadata: OrderPaidMetadata$Outbound;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
/** @internal */
|
|
99
|
+
export const OrderPaidEvent$outboundSchema: z.ZodType<
|
|
100
|
+
OrderPaidEvent$Outbound,
|
|
101
|
+
z.ZodTypeDef,
|
|
102
|
+
OrderPaidEvent
|
|
103
|
+
> = z.object({
|
|
104
|
+
id: z.string(),
|
|
105
|
+
timestamp: z.date().transform(v => v.toISOString()),
|
|
106
|
+
organizationId: z.string(),
|
|
107
|
+
customerId: z.nullable(z.string()),
|
|
108
|
+
customer: z.nullable(Customer$outboundSchema),
|
|
109
|
+
externalCustomerId: z.nullable(z.string()),
|
|
110
|
+
source: z.literal("system"),
|
|
111
|
+
name: z.literal("order.paid"),
|
|
112
|
+
metadata: OrderPaidMetadata$outboundSchema,
|
|
113
|
+
}).transform((v) => {
|
|
114
|
+
return remap$(v, {
|
|
115
|
+
organizationId: "organization_id",
|
|
116
|
+
customerId: "customer_id",
|
|
117
|
+
externalCustomerId: "external_customer_id",
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
124
|
+
*/
|
|
125
|
+
export namespace OrderPaidEvent$ {
|
|
126
|
+
/** @deprecated use `OrderPaidEvent$inboundSchema` instead. */
|
|
127
|
+
export const inboundSchema = OrderPaidEvent$inboundSchema;
|
|
128
|
+
/** @deprecated use `OrderPaidEvent$outboundSchema` instead. */
|
|
129
|
+
export const outboundSchema = OrderPaidEvent$outboundSchema;
|
|
130
|
+
/** @deprecated use `OrderPaidEvent$Outbound` instead. */
|
|
131
|
+
export type Outbound = OrderPaidEvent$Outbound;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function orderPaidEventToJSON(orderPaidEvent: OrderPaidEvent): string {
|
|
135
|
+
return JSON.stringify(OrderPaidEvent$outboundSchema.parse(orderPaidEvent));
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function orderPaidEventFromJSON(
|
|
139
|
+
jsonString: string,
|
|
140
|
+
): SafeParseResult<OrderPaidEvent, SDKValidationError> {
|
|
141
|
+
return safeParse(
|
|
142
|
+
jsonString,
|
|
143
|
+
(x) => OrderPaidEvent$inboundSchema.parse(JSON.parse(x)),
|
|
144
|
+
`Failed to parse 'OrderPaidEvent' from JSON`,
|
|
145
|
+
);
|
|
146
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type OrderPaidMetadata = {
|
|
12
|
+
orderId: string;
|
|
13
|
+
amount: number;
|
|
14
|
+
currency: string;
|
|
15
|
+
backfilled?: boolean | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const OrderPaidMetadata$inboundSchema: z.ZodType<
|
|
20
|
+
OrderPaidMetadata,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
order_id: z.string(),
|
|
25
|
+
amount: z.number().int(),
|
|
26
|
+
currency: z.string(),
|
|
27
|
+
backfilled: z.boolean().optional(),
|
|
28
|
+
}).transform((v) => {
|
|
29
|
+
return remap$(v, {
|
|
30
|
+
"order_id": "orderId",
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type OrderPaidMetadata$Outbound = {
|
|
36
|
+
order_id: string;
|
|
37
|
+
amount: number;
|
|
38
|
+
currency: string;
|
|
39
|
+
backfilled?: boolean | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const OrderPaidMetadata$outboundSchema: z.ZodType<
|
|
44
|
+
OrderPaidMetadata$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
OrderPaidMetadata
|
|
47
|
+
> = z.object({
|
|
48
|
+
orderId: z.string(),
|
|
49
|
+
amount: z.number().int(),
|
|
50
|
+
currency: z.string(),
|
|
51
|
+
backfilled: z.boolean().optional(),
|
|
52
|
+
}).transform((v) => {
|
|
53
|
+
return remap$(v, {
|
|
54
|
+
orderId: "order_id",
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
+
*/
|
|
62
|
+
export namespace OrderPaidMetadata$ {
|
|
63
|
+
/** @deprecated use `OrderPaidMetadata$inboundSchema` instead. */
|
|
64
|
+
export const inboundSchema = OrderPaidMetadata$inboundSchema;
|
|
65
|
+
/** @deprecated use `OrderPaidMetadata$outboundSchema` instead. */
|
|
66
|
+
export const outboundSchema = OrderPaidMetadata$outboundSchema;
|
|
67
|
+
/** @deprecated use `OrderPaidMetadata$Outbound` instead. */
|
|
68
|
+
export type Outbound = OrderPaidMetadata$Outbound;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function orderPaidMetadataToJSON(
|
|
72
|
+
orderPaidMetadata: OrderPaidMetadata,
|
|
73
|
+
): string {
|
|
74
|
+
return JSON.stringify(
|
|
75
|
+
OrderPaidMetadata$outboundSchema.parse(orderPaidMetadata),
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function orderPaidMetadataFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<OrderPaidMetadata, SDKValidationError> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) => OrderPaidMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'OrderPaidMetadata' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
Customer,
|
|
12
|
+
Customer$inboundSchema,
|
|
13
|
+
Customer$Outbound,
|
|
14
|
+
Customer$outboundSchema,
|
|
15
|
+
} from "./customer.js";
|
|
16
|
+
import {
|
|
17
|
+
OrderRefundedMetadata,
|
|
18
|
+
OrderRefundedMetadata$inboundSchema,
|
|
19
|
+
OrderRefundedMetadata$Outbound,
|
|
20
|
+
OrderRefundedMetadata$outboundSchema,
|
|
21
|
+
} from "./orderrefundedmetadata.js";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* An event created by Polar when an order is refunded.
|
|
25
|
+
*/
|
|
26
|
+
export type OrderRefundedEvent = {
|
|
27
|
+
/**
|
|
28
|
+
* The ID of the object.
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* The timestamp of the event.
|
|
33
|
+
*/
|
|
34
|
+
timestamp: Date;
|
|
35
|
+
/**
|
|
36
|
+
* The ID of the organization owning the event.
|
|
37
|
+
*/
|
|
38
|
+
organizationId: string;
|
|
39
|
+
/**
|
|
40
|
+
* ID of the customer in your Polar organization associated with the event.
|
|
41
|
+
*/
|
|
42
|
+
customerId: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* The customer associated with the event.
|
|
45
|
+
*/
|
|
46
|
+
customer: Customer | null;
|
|
47
|
+
/**
|
|
48
|
+
* ID of the customer in your system associated with the event.
|
|
49
|
+
*/
|
|
50
|
+
externalCustomerId: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* The source of the event. `system` events are created by Polar. `user` events are the one you create through our ingestion API.
|
|
53
|
+
*/
|
|
54
|
+
source: "system";
|
|
55
|
+
/**
|
|
56
|
+
* The name of the event.
|
|
57
|
+
*/
|
|
58
|
+
name: "order.refunded";
|
|
59
|
+
metadata: OrderRefundedMetadata;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const OrderRefundedEvent$inboundSchema: z.ZodType<
|
|
64
|
+
OrderRefundedEvent,
|
|
65
|
+
z.ZodTypeDef,
|
|
66
|
+
unknown
|
|
67
|
+
> = z.object({
|
|
68
|
+
id: z.string(),
|
|
69
|
+
timestamp: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
70
|
+
organization_id: z.string(),
|
|
71
|
+
customer_id: z.nullable(z.string()),
|
|
72
|
+
customer: z.nullable(Customer$inboundSchema),
|
|
73
|
+
external_customer_id: z.nullable(z.string()),
|
|
74
|
+
source: z.literal("system"),
|
|
75
|
+
name: z.literal("order.refunded"),
|
|
76
|
+
metadata: OrderRefundedMetadata$inboundSchema,
|
|
77
|
+
}).transform((v) => {
|
|
78
|
+
return remap$(v, {
|
|
79
|
+
"organization_id": "organizationId",
|
|
80
|
+
"customer_id": "customerId",
|
|
81
|
+
"external_customer_id": "externalCustomerId",
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export type OrderRefundedEvent$Outbound = {
|
|
87
|
+
id: string;
|
|
88
|
+
timestamp: string;
|
|
89
|
+
organization_id: string;
|
|
90
|
+
customer_id: string | null;
|
|
91
|
+
customer: Customer$Outbound | null;
|
|
92
|
+
external_customer_id: string | null;
|
|
93
|
+
source: "system";
|
|
94
|
+
name: "order.refunded";
|
|
95
|
+
metadata: OrderRefundedMetadata$Outbound;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
/** @internal */
|
|
99
|
+
export const OrderRefundedEvent$outboundSchema: z.ZodType<
|
|
100
|
+
OrderRefundedEvent$Outbound,
|
|
101
|
+
z.ZodTypeDef,
|
|
102
|
+
OrderRefundedEvent
|
|
103
|
+
> = z.object({
|
|
104
|
+
id: z.string(),
|
|
105
|
+
timestamp: z.date().transform(v => v.toISOString()),
|
|
106
|
+
organizationId: z.string(),
|
|
107
|
+
customerId: z.nullable(z.string()),
|
|
108
|
+
customer: z.nullable(Customer$outboundSchema),
|
|
109
|
+
externalCustomerId: z.nullable(z.string()),
|
|
110
|
+
source: z.literal("system"),
|
|
111
|
+
name: z.literal("order.refunded"),
|
|
112
|
+
metadata: OrderRefundedMetadata$outboundSchema,
|
|
113
|
+
}).transform((v) => {
|
|
114
|
+
return remap$(v, {
|
|
115
|
+
organizationId: "organization_id",
|
|
116
|
+
customerId: "customer_id",
|
|
117
|
+
externalCustomerId: "external_customer_id",
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @internal
|
|
123
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
124
|
+
*/
|
|
125
|
+
export namespace OrderRefundedEvent$ {
|
|
126
|
+
/** @deprecated use `OrderRefundedEvent$inboundSchema` instead. */
|
|
127
|
+
export const inboundSchema = OrderRefundedEvent$inboundSchema;
|
|
128
|
+
/** @deprecated use `OrderRefundedEvent$outboundSchema` instead. */
|
|
129
|
+
export const outboundSchema = OrderRefundedEvent$outboundSchema;
|
|
130
|
+
/** @deprecated use `OrderRefundedEvent$Outbound` instead. */
|
|
131
|
+
export type Outbound = OrderRefundedEvent$Outbound;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function orderRefundedEventToJSON(
|
|
135
|
+
orderRefundedEvent: OrderRefundedEvent,
|
|
136
|
+
): string {
|
|
137
|
+
return JSON.stringify(
|
|
138
|
+
OrderRefundedEvent$outboundSchema.parse(orderRefundedEvent),
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function orderRefundedEventFromJSON(
|
|
143
|
+
jsonString: string,
|
|
144
|
+
): SafeParseResult<OrderRefundedEvent, SDKValidationError> {
|
|
145
|
+
return safeParse(
|
|
146
|
+
jsonString,
|
|
147
|
+
(x) => OrderRefundedEvent$inboundSchema.parse(JSON.parse(x)),
|
|
148
|
+
`Failed to parse 'OrderRefundedEvent' from JSON`,
|
|
149
|
+
);
|
|
150
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type OrderRefundedMetadata = {
|
|
12
|
+
orderId: string;
|
|
13
|
+
refundedAmount: number;
|
|
14
|
+
currency: string;
|
|
15
|
+
backfilled?: boolean | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const OrderRefundedMetadata$inboundSchema: z.ZodType<
|
|
20
|
+
OrderRefundedMetadata,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
order_id: z.string(),
|
|
25
|
+
refunded_amount: z.number().int(),
|
|
26
|
+
currency: z.string(),
|
|
27
|
+
backfilled: z.boolean().optional(),
|
|
28
|
+
}).transform((v) => {
|
|
29
|
+
return remap$(v, {
|
|
30
|
+
"order_id": "orderId",
|
|
31
|
+
"refunded_amount": "refundedAmount",
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type OrderRefundedMetadata$Outbound = {
|
|
37
|
+
order_id: string;
|
|
38
|
+
refunded_amount: number;
|
|
39
|
+
currency: string;
|
|
40
|
+
backfilled?: boolean | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const OrderRefundedMetadata$outboundSchema: z.ZodType<
|
|
45
|
+
OrderRefundedMetadata$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
OrderRefundedMetadata
|
|
48
|
+
> = z.object({
|
|
49
|
+
orderId: z.string(),
|
|
50
|
+
refundedAmount: z.number().int(),
|
|
51
|
+
currency: z.string(),
|
|
52
|
+
backfilled: z.boolean().optional(),
|
|
53
|
+
}).transform((v) => {
|
|
54
|
+
return remap$(v, {
|
|
55
|
+
orderId: "order_id",
|
|
56
|
+
refundedAmount: "refunded_amount",
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
+
*/
|
|
64
|
+
export namespace OrderRefundedMetadata$ {
|
|
65
|
+
/** @deprecated use `OrderRefundedMetadata$inboundSchema` instead. */
|
|
66
|
+
export const inboundSchema = OrderRefundedMetadata$inboundSchema;
|
|
67
|
+
/** @deprecated use `OrderRefundedMetadata$outboundSchema` instead. */
|
|
68
|
+
export const outboundSchema = OrderRefundedMetadata$outboundSchema;
|
|
69
|
+
/** @deprecated use `OrderRefundedMetadata$Outbound` instead. */
|
|
70
|
+
export type Outbound = OrderRefundedMetadata$Outbound;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function orderRefundedMetadataToJSON(
|
|
74
|
+
orderRefundedMetadata: OrderRefundedMetadata,
|
|
75
|
+
): string {
|
|
76
|
+
return JSON.stringify(
|
|
77
|
+
OrderRefundedMetadata$outboundSchema.parse(orderRefundedMetadata),
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function orderRefundedMetadataFromJSON(
|
|
82
|
+
jsonString: string,
|
|
83
|
+
): SafeParseResult<OrderRefundedMetadata, SDKValidationError> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) => OrderRefundedMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
+
`Failed to parse 'OrderRefundedMetadata' from JSON`,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
@@ -31,17 +31,17 @@ import {
|
|
|
31
31
|
OrganizationSocialLink$Outbound,
|
|
32
32
|
OrganizationSocialLink$outboundSchema,
|
|
33
33
|
} from "./organizationsociallink.js";
|
|
34
|
+
import {
|
|
35
|
+
OrganizationStatus,
|
|
36
|
+
OrganizationStatus$inboundSchema,
|
|
37
|
+
OrganizationStatus$outboundSchema,
|
|
38
|
+
} from "./organizationstatus.js";
|
|
34
39
|
import {
|
|
35
40
|
OrganizationSubscriptionSettings,
|
|
36
41
|
OrganizationSubscriptionSettings$inboundSchema,
|
|
37
42
|
OrganizationSubscriptionSettings$Outbound,
|
|
38
43
|
OrganizationSubscriptionSettings$outboundSchema,
|
|
39
44
|
} from "./organizationsubscriptionsettings.js";
|
|
40
|
-
import {
|
|
41
|
-
Status,
|
|
42
|
-
Status$inboundSchema,
|
|
43
|
-
Status$outboundSchema,
|
|
44
|
-
} from "./status.js";
|
|
45
45
|
|
|
46
46
|
export type Organization = {
|
|
47
47
|
/**
|
|
@@ -80,7 +80,7 @@ export type Organization = {
|
|
|
80
80
|
* Links to social profiles.
|
|
81
81
|
*/
|
|
82
82
|
socials: Array<OrganizationSocialLink>;
|
|
83
|
-
status:
|
|
83
|
+
status: OrganizationStatus;
|
|
84
84
|
/**
|
|
85
85
|
* When the business details were submitted.
|
|
86
86
|
*/
|
|
@@ -111,7 +111,7 @@ export const Organization$inboundSchema: z.ZodType<
|
|
|
111
111
|
email: z.nullable(z.string()),
|
|
112
112
|
website: z.nullable(z.string()),
|
|
113
113
|
socials: z.array(OrganizationSocialLink$inboundSchema),
|
|
114
|
-
status:
|
|
114
|
+
status: OrganizationStatus$inboundSchema,
|
|
115
115
|
details_submitted_at: z.nullable(
|
|
116
116
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
117
117
|
),
|
|
@@ -166,7 +166,7 @@ export const Organization$outboundSchema: z.ZodType<
|
|
|
166
166
|
email: z.nullable(z.string()),
|
|
167
167
|
website: z.nullable(z.string()),
|
|
168
168
|
socials: z.array(OrganizationSocialLink$outboundSchema),
|
|
169
|
-
status:
|
|
169
|
+
status: OrganizationStatus$outboundSchema,
|
|
170
170
|
detailsSubmittedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
171
171
|
featureSettings: z.nullable(OrganizationFeatureSettings$outboundSchema),
|
|
172
172
|
subscriptionSettings: OrganizationSubscriptionSettings$outboundSchema,
|
|
@@ -21,6 +21,10 @@ export type OrganizationFeatureSettings = {
|
|
|
21
21
|
* If this organization has RevOps enabled
|
|
22
22
|
*/
|
|
23
23
|
revopsEnabled?: boolean | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* If this organization has Wallets enabled
|
|
26
|
+
*/
|
|
27
|
+
walletsEnabled?: boolean | undefined;
|
|
24
28
|
};
|
|
25
29
|
|
|
26
30
|
/** @internal */
|
|
@@ -32,11 +36,13 @@ export const OrganizationFeatureSettings$inboundSchema: z.ZodType<
|
|
|
32
36
|
issue_funding_enabled: z.boolean().default(false),
|
|
33
37
|
seat_based_pricing_enabled: z.boolean().default(false),
|
|
34
38
|
revops_enabled: z.boolean().default(false),
|
|
39
|
+
wallets_enabled: z.boolean().default(false),
|
|
35
40
|
}).transform((v) => {
|
|
36
41
|
return remap$(v, {
|
|
37
42
|
"issue_funding_enabled": "issueFundingEnabled",
|
|
38
43
|
"seat_based_pricing_enabled": "seatBasedPricingEnabled",
|
|
39
44
|
"revops_enabled": "revopsEnabled",
|
|
45
|
+
"wallets_enabled": "walletsEnabled",
|
|
40
46
|
});
|
|
41
47
|
});
|
|
42
48
|
|
|
@@ -45,6 +51,7 @@ export type OrganizationFeatureSettings$Outbound = {
|
|
|
45
51
|
issue_funding_enabled: boolean;
|
|
46
52
|
seat_based_pricing_enabled: boolean;
|
|
47
53
|
revops_enabled: boolean;
|
|
54
|
+
wallets_enabled: boolean;
|
|
48
55
|
};
|
|
49
56
|
|
|
50
57
|
/** @internal */
|
|
@@ -56,11 +63,13 @@ export const OrganizationFeatureSettings$outboundSchema: z.ZodType<
|
|
|
56
63
|
issueFundingEnabled: z.boolean().default(false),
|
|
57
64
|
seatBasedPricingEnabled: z.boolean().default(false),
|
|
58
65
|
revopsEnabled: z.boolean().default(false),
|
|
66
|
+
walletsEnabled: z.boolean().default(false),
|
|
59
67
|
}).transform((v) => {
|
|
60
68
|
return remap$(v, {
|
|
61
69
|
issueFundingEnabled: "issue_funding_enabled",
|
|
62
70
|
seatBasedPricingEnabled: "seat_based_pricing_enabled",
|
|
63
71
|
revopsEnabled: "revops_enabled",
|
|
72
|
+
walletsEnabled: "wallets_enabled",
|
|
64
73
|
});
|
|
65
74
|
});
|
|
66
75
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const OrganizationStatus = {
|
|
9
|
+
Created: "created",
|
|
10
|
+
OnboardingStarted: "onboarding_started",
|
|
11
|
+
UnderReview: "under_review",
|
|
12
|
+
Denied: "denied",
|
|
13
|
+
Active: "active",
|
|
14
|
+
} as const;
|
|
15
|
+
export type OrganizationStatus = ClosedEnum<typeof OrganizationStatus>;
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const OrganizationStatus$inboundSchema: z.ZodNativeEnum<
|
|
19
|
+
typeof OrganizationStatus
|
|
20
|
+
> = z.nativeEnum(OrganizationStatus);
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const OrganizationStatus$outboundSchema: z.ZodNativeEnum<
|
|
24
|
+
typeof OrganizationStatus
|
|
25
|
+
> = OrganizationStatus$inboundSchema;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
30
|
+
*/
|
|
31
|
+
export namespace OrganizationStatus$ {
|
|
32
|
+
/** @deprecated use `OrganizationStatus$inboundSchema` instead. */
|
|
33
|
+
export const inboundSchema = OrganizationStatus$inboundSchema;
|
|
34
|
+
/** @deprecated use `OrganizationStatus$outboundSchema` instead. */
|
|
35
|
+
export const outboundSchema = OrganizationStatus$outboundSchema;
|
|
36
|
+
}
|
|
@@ -17,6 +17,7 @@ export type OrganizationSubscriptionSettings = {
|
|
|
17
17
|
allowMultipleSubscriptions: boolean;
|
|
18
18
|
allowCustomerUpdates: boolean;
|
|
19
19
|
prorationBehavior: SubscriptionProrationBehavior;
|
|
20
|
+
benefitRevocationGracePeriod: number;
|
|
20
21
|
};
|
|
21
22
|
|
|
22
23
|
/** @internal */
|
|
@@ -28,11 +29,13 @@ export const OrganizationSubscriptionSettings$inboundSchema: z.ZodType<
|
|
|
28
29
|
allow_multiple_subscriptions: z.boolean(),
|
|
29
30
|
allow_customer_updates: z.boolean(),
|
|
30
31
|
proration_behavior: SubscriptionProrationBehavior$inboundSchema,
|
|
32
|
+
benefit_revocation_grace_period: z.number().int(),
|
|
31
33
|
}).transform((v) => {
|
|
32
34
|
return remap$(v, {
|
|
33
35
|
"allow_multiple_subscriptions": "allowMultipleSubscriptions",
|
|
34
36
|
"allow_customer_updates": "allowCustomerUpdates",
|
|
35
37
|
"proration_behavior": "prorationBehavior",
|
|
38
|
+
"benefit_revocation_grace_period": "benefitRevocationGracePeriod",
|
|
36
39
|
});
|
|
37
40
|
});
|
|
38
41
|
|
|
@@ -41,6 +44,7 @@ export type OrganizationSubscriptionSettings$Outbound = {
|
|
|
41
44
|
allow_multiple_subscriptions: boolean;
|
|
42
45
|
allow_customer_updates: boolean;
|
|
43
46
|
proration_behavior: string;
|
|
47
|
+
benefit_revocation_grace_period: number;
|
|
44
48
|
};
|
|
45
49
|
|
|
46
50
|
/** @internal */
|
|
@@ -52,11 +56,13 @@ export const OrganizationSubscriptionSettings$outboundSchema: z.ZodType<
|
|
|
52
56
|
allowMultipleSubscriptions: z.boolean(),
|
|
53
57
|
allowCustomerUpdates: z.boolean(),
|
|
54
58
|
prorationBehavior: SubscriptionProrationBehavior$outboundSchema,
|
|
59
|
+
benefitRevocationGracePeriod: z.number().int(),
|
|
55
60
|
}).transform((v) => {
|
|
56
61
|
return remap$(v, {
|
|
57
62
|
allowMultipleSubscriptions: "allow_multiple_subscriptions",
|
|
58
63
|
allowCustomerUpdates: "allow_customer_updates",
|
|
59
64
|
prorationBehavior: "proration_behavior",
|
|
65
|
+
benefitRevocationGracePeriod: "benefit_revocation_grace_period",
|
|
60
66
|
});
|
|
61
67
|
});
|
|
62
68
|
|
|
@@ -40,6 +40,8 @@ export const Scope = {
|
|
|
40
40
|
SubscriptionsWrite: "subscriptions:write",
|
|
41
41
|
CustomersRead: "customers:read",
|
|
42
42
|
CustomersWrite: "customers:write",
|
|
43
|
+
WalletsRead: "wallets:read",
|
|
44
|
+
WalletsWrite: "wallets:write",
|
|
43
45
|
CustomerMetersRead: "customer_meters:read",
|
|
44
46
|
CustomerSessionsWrite: "customer_sessions:write",
|
|
45
47
|
CustomerSeatsRead: "customer_seats:read",
|