chargefy-js 1.0.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/.claude/EXAMPLE_SESSION.md +647 -0
- package/.claude/INDEX.md +404 -0
- package/.claude/MULTI_AGENT_WORKFLOW.md +557 -0
- package/.claude/QUICK_REFERENCE.md +399 -0
- package/.claude/README.md +342 -0
- package/.claude/agents/backend-engineer.md +230 -0
- package/.claude/agents/product-manager.md +462 -0
- package/.claude/agents/qa-engineer.md +430 -0
- package/.claude/prompts/api-compliance-check.md +372 -0
- package/.claude/prompts/sdk-architecture-review.md +233 -0
- package/.claude/settings.local.json +20 -0
- package/.tsbuildinfo +1 -0
- package/.tshy/build.json +8 -0
- package/.tshy/commonjs.json +16 -0
- package/.tshy/esm.json +15 -0
- package/AGENT_SYSTEM_SUMMARY.md +406 -0
- package/CONTRIBUTING.md +26 -0
- package/FUNCTIONS.md +89 -0
- package/README.md +968 -0
- package/RELEASES.md +1121 -0
- package/RUNTIMES.md +48 -0
- package/USAGE.md +20 -0
- package/codeSamples.yaml +1115 -0
- package/docs/lib/utils/retryconfig.md +24 -0
- package/docs/models/components/activesubscriptions.md +17 -0
- package/docs/models/components/activeuserbyevent.md +17 -0
- package/docs/models/components/address.md +22 -0
- package/docs/models/components/addressdict.md +22 -0
- package/docs/models/components/addressinput.md +22 -0
- package/docs/models/components/aggregation.md +55 -0
- package/docs/models/components/aggregationfunction.md +15 -0
- package/docs/models/components/amount.md +19 -0
- package/docs/models/components/attachedcustomfield.md +37 -0
- package/docs/models/components/attachedcustomfieldcreate.md +21 -0
- package/docs/models/components/authorizationcodetokenrequest.md +25 -0
- package/docs/models/components/authorizeorganization.md +21 -0
- package/docs/models/components/authorizeresponseorganization.md +38 -0
- package/docs/models/components/authorizeresponseuser.md +36 -0
- package/docs/models/components/authorizeuser.md +21 -0
- package/docs/models/components/averageordervalue.md +17 -0
- package/docs/models/components/averagerevenueperuser.md +17 -0
- package/docs/models/components/benefit.md +149 -0
- package/docs/models/components/benefitcreate.md +91 -0
- package/docs/models/components/benefitcustom.md +43 -0
- package/docs/models/components/benefitcustomcreate.md +26 -0
- package/docs/models/components/benefitcustomcreatemetadata.md +29 -0
- package/docs/models/components/benefitcustomcreateproperties.md +17 -0
- package/docs/models/components/benefitcustommetadata.md +29 -0
- package/docs/models/components/benefitcustomproperties.md +19 -0
- package/docs/models/components/benefitcustomsubscriber.md +73 -0
- package/docs/models/components/benefitcustomsubscribermetadata.md +29 -0
- package/docs/models/components/benefitcustomsubscriberproperties.md +19 -0
- package/docs/models/components/benefitcustomupdate.md +20 -0
- package/docs/models/components/benefitcustomupdatemetadata.md +29 -0
- package/docs/models/components/benefitcycledevent.md +60 -0
- package/docs/models/components/benefitdiscord.md +46 -0
- package/docs/models/components/benefitdiscordcreate.md +28 -0
- package/docs/models/components/benefitdiscordcreatemetadata.md +29 -0
- package/docs/models/components/benefitdiscordcreateproperties.md +23 -0
- package/docs/models/components/benefitdiscordmetadata.md +29 -0
- package/docs/models/components/benefitdiscordproperties.md +25 -0
- package/docs/models/components/benefitdiscordsubscriber.md +74 -0
- package/docs/models/components/benefitdiscordsubscribermetadata.md +29 -0
- package/docs/models/components/benefitdiscordsubscriberproperties.md +19 -0
- package/docs/models/components/benefitdiscordupdate.md +20 -0
- package/docs/models/components/benefitdiscordupdatemetadata.md +29 -0
- package/docs/models/components/benefitdownloadables.md +45 -0
- package/docs/models/components/benefitdownloadablescreate.md +29 -0
- package/docs/models/components/benefitdownloadablescreatemetadata.md +29 -0
- package/docs/models/components/benefitdownloadablescreateproperties.md +21 -0
- package/docs/models/components/benefitdownloadablesmetadata.md +29 -0
- package/docs/models/components/benefitdownloadablesproperties.md +19 -0
- package/docs/models/components/benefitdownloadablessubscriber.md +76 -0
- package/docs/models/components/benefitdownloadablessubscribermetadata.md +29 -0
- package/docs/models/components/benefitdownloadablessubscriberproperties.md +20 -0
- package/docs/models/components/benefitdownloadablesupdate.md +20 -0
- package/docs/models/components/benefitdownloadablesupdatemetadata.md +29 -0
- package/docs/models/components/benefitgithubrepository.md +45 -0
- package/docs/models/components/benefitgithubrepositorycreate.md +29 -0
- package/docs/models/components/benefitgithubrepositorycreatemetadata.md +29 -0
- package/docs/models/components/benefitgithubrepositorycreateproperties.md +23 -0
- package/docs/models/components/benefitgithubrepositorycreatepropertiespermission.md +17 -0
- package/docs/models/components/benefitgithubrepositorymetadata.md +29 -0
- package/docs/models/components/benefitgithubrepositoryproperties.md +23 -0
- package/docs/models/components/benefitgithubrepositorysubscriber.md +73 -0
- package/docs/models/components/benefitgithubrepositorysubscribermetadata.md +29 -0
- package/docs/models/components/benefitgithubrepositorysubscriberproperties.md +21 -0
- package/docs/models/components/benefitgithubrepositoryupdate.md +25 -0
- package/docs/models/components/benefitgithubrepositoryupdatemetadata.md +29 -0
- package/docs/models/components/benefitgrant.md +78 -0
- package/docs/models/components/benefitgrantcustomproperties.md +14 -0
- package/docs/models/components/benefitgrantcustomwebhook.md +77 -0
- package/docs/models/components/benefitgrantdiscordproperties.md +18 -0
- package/docs/models/components/benefitgrantdiscordwebhook.md +82 -0
- package/docs/models/components/benefitgrantdownloadablesproperties.md +15 -0
- package/docs/models/components/benefitgrantdownloadableswebhook.md +85 -0
- package/docs/models/components/benefitgrantedevent.md +60 -0
- package/docs/models/components/benefitgranterror.md +21 -0
- package/docs/models/components/benefitgrantgithubrepositoryproperties.md +19 -0
- package/docs/models/components/benefitgrantgithubrepositorypropertiespermission.md +15 -0
- package/docs/models/components/benefitgrantgithubrepositorywebhook.md +81 -0
- package/docs/models/components/benefitgrantlicensekeysproperties.md +16 -0
- package/docs/models/components/benefitgrantlicensekeyswebhook.md +86 -0
- package/docs/models/components/benefitgrantmetadata.md +21 -0
- package/docs/models/components/benefitgrantmetercreditproperties.md +17 -0
- package/docs/models/components/benefitgrantmetercreditwebhook.md +80 -0
- package/docs/models/components/benefitgrantsortproperty.md +15 -0
- package/docs/models/components/benefitgrantwebhook.md +352 -0
- package/docs/models/components/benefitlicensekeyactivationcreateproperties.md +19 -0
- package/docs/models/components/benefitlicensekeyactivationproperties.md +19 -0
- package/docs/models/components/benefitlicensekeyexpirationproperties.md +19 -0
- package/docs/models/components/benefitlicensekeys.md +46 -0
- package/docs/models/components/benefitlicensekeyscreate.md +25 -0
- package/docs/models/components/benefitlicensekeyscreatemetadata.md +29 -0
- package/docs/models/components/benefitlicensekeyscreateproperties.md +18 -0
- package/docs/models/components/benefitlicensekeysmetadata.md +29 -0
- package/docs/models/components/benefitlicensekeysproperties.md +29 -0
- package/docs/models/components/benefitlicensekeyssubscriber.md +83 -0
- package/docs/models/components/benefitlicensekeyssubscribermetadata.md +29 -0
- package/docs/models/components/benefitlicensekeyssubscriberproperties.md +29 -0
- package/docs/models/components/benefitlicensekeysupdate.md +20 -0
- package/docs/models/components/benefitlicensekeysupdatemetadata.md +29 -0
- package/docs/models/components/benefitmetadata.md +29 -0
- package/docs/models/components/benefitmetercredit.md +43 -0
- package/docs/models/components/benefitmetercreditcreate.md +31 -0
- package/docs/models/components/benefitmetercreditcreatemetadata.md +29 -0
- package/docs/models/components/benefitmetercreditcreateproperties.md +23 -0
- package/docs/models/components/benefitmetercreditmetadata.md +29 -0
- package/docs/models/components/benefitmetercreditproperties.md +23 -0
- package/docs/models/components/benefitmetercreditsubscriber.md +76 -0
- package/docs/models/components/benefitmetercreditsubscribermetadata.md +29 -0
- package/docs/models/components/benefitmetercreditsubscriberproperties.md +23 -0
- package/docs/models/components/benefitmetercreditupdate.md +20 -0
- package/docs/models/components/benefitmetercreditupdatemetadata.md +29 -0
- package/docs/models/components/benefitpublic.md +32 -0
- package/docs/models/components/benefitrevokedevent.md +60 -0
- package/docs/models/components/benefitsortproperty.md +15 -0
- package/docs/models/components/benefittype.md +15 -0
- package/docs/models/components/benefitupdatedevent.md +60 -0
- package/docs/models/components/billingaddressfieldmode.md +15 -0
- package/docs/models/components/canceledsubscriptions.md +17 -0
- package/docs/models/components/canceledsubscriptionscustomerservice.md +17 -0
- package/docs/models/components/canceledsubscriptionslowquality.md +17 -0
- package/docs/models/components/canceledsubscriptionsmissingfeatures.md +17 -0
- package/docs/models/components/canceledsubscriptionsother.md +17 -0
- package/docs/models/components/canceledsubscriptionsswitchedservice.md +17 -0
- package/docs/models/components/canceledsubscriptionstoocomplex.md +17 -0
- package/docs/models/components/canceledsubscriptionstooexpensive.md +17 -0
- package/docs/models/components/canceledsubscriptionsunused.md +17 -0
- package/docs/models/components/cardpayment.md +49 -0
- package/docs/models/components/cardpaymentmetadata.md +21 -0
- package/docs/models/components/cashflow.md +17 -0
- package/docs/models/components/checkout.md +222 -0
- package/docs/models/components/checkoutbillingaddressfields.md +27 -0
- package/docs/models/components/checkoutconfirmstripe.md +33 -0
- package/docs/models/components/checkoutconfirmstripecustomfielddata.md +29 -0
- package/docs/models/components/checkoutcreate.md +49 -0
- package/docs/models/components/checkoutcreatecustomermetadata.md +29 -0
- package/docs/models/components/checkoutcreatecustomfielddata.md +29 -0
- package/docs/models/components/checkoutcreatemetadata.md +29 -0
- package/docs/models/components/checkoutcustomfielddata.md +29 -0
- package/docs/models/components/checkoutdiscount.md +61 -0
- package/docs/models/components/checkoutdiscountfixedonceforeverduration.md +31 -0
- package/docs/models/components/checkoutdiscountfixedrepeatduration.md +34 -0
- package/docs/models/components/checkoutdiscountpercentageonceforeverduration.md +29 -0
- package/docs/models/components/checkoutdiscountpercentagerepeatduration.md +32 -0
- package/docs/models/components/checkoutlink.md +104 -0
- package/docs/models/components/checkoutlinkcreate.md +36 -0
- package/docs/models/components/checkoutlinkcreateproduct.md +31 -0
- package/docs/models/components/checkoutlinkcreateproductmetadata.md +29 -0
- package/docs/models/components/checkoutlinkcreateproductprice.md +31 -0
- package/docs/models/components/checkoutlinkcreateproductpricemetadata.md +29 -0
- package/docs/models/components/checkoutlinkcreateproducts.md +33 -0
- package/docs/models/components/checkoutlinkcreateproductsmetadata.md +29 -0
- package/docs/models/components/checkoutlinkdiscount.md +101 -0
- package/docs/models/components/checkoutlinkmetadata.md +29 -0
- package/docs/models/components/checkoutlinkproduct.md +100 -0
- package/docs/models/components/checkoutlinkproductmetadata.md +29 -0
- package/docs/models/components/checkoutlinkproductprices.md +48 -0
- package/docs/models/components/checkoutlinksortproperty.md +15 -0
- package/docs/models/components/checkoutlinkupdate.md +25 -0
- package/docs/models/components/checkoutlinkupdatemetadata.md +29 -0
- package/docs/models/components/checkoutmetadata.md +29 -0
- package/docs/models/components/checkoutproduct.md +48 -0
- package/docs/models/components/checkoutproductprice.md +48 -0
- package/docs/models/components/checkoutproductprices.md +48 -0
- package/docs/models/components/checkoutpublic.md +313 -0
- package/docs/models/components/checkoutpublicconfirmed.md +318 -0
- package/docs/models/components/checkoutpublicconfirmedcustomfielddata.md +29 -0
- package/docs/models/components/checkoutpublicconfirmeddiscount.md +61 -0
- package/docs/models/components/checkoutpublicconfirmedproductprice.md +48 -0
- package/docs/models/components/checkoutpubliccustomfielddata.md +29 -0
- package/docs/models/components/checkoutpublicdiscount.md +61 -0
- package/docs/models/components/checkoutpublicproductprice.md +48 -0
- package/docs/models/components/checkouts.md +17 -0
- package/docs/models/components/checkoutsconversion.md +17 -0
- package/docs/models/components/checkoutsortproperty.md +15 -0
- package/docs/models/components/checkoutstatus.md +15 -0
- package/docs/models/components/checkoutupdate.md +42 -0
- package/docs/models/components/checkoutupdatecustomermetadata.md +29 -0
- package/docs/models/components/checkoutupdatecustomfielddata.md +29 -0
- package/docs/models/components/checkoutupdatemetadata.md +29 -0
- package/docs/models/components/checkoutupdatepublic.md +32 -0
- package/docs/models/components/checkoutupdatepubliccustomfielddata.md +29 -0
- package/docs/models/components/churnrate.md +17 -0
- package/docs/models/components/clauses.md +24 -0
- package/docs/models/components/committedmonthlyrecurringrevenue.md +17 -0
- package/docs/models/components/conditions.md +29 -0
- package/docs/models/components/costmetadatainput.md +19 -0
- package/docs/models/components/costmetadataoutput.md +19 -0
- package/docs/models/components/costperuser.md +17 -0
- package/docs/models/components/costs.md +17 -0
- package/docs/models/components/countaggregation.md +15 -0
- package/docs/models/components/countryalpha2.md +15 -0
- package/docs/models/components/countryalpha2input.md +15 -0
- package/docs/models/components/cumulativecosts.md +17 -0
- package/docs/models/components/cumulativerevenue.md +17 -0
- package/docs/models/components/customer.md +50 -0
- package/docs/models/components/customerbalance.md +21 -0
- package/docs/models/components/customerbenefitgrant.md +536 -0
- package/docs/models/components/customerbenefitgrantcustom.md +109 -0
- package/docs/models/components/customerbenefitgrantcustomupdate.md +17 -0
- package/docs/models/components/customerbenefitgrantdiscord.md +109 -0
- package/docs/models/components/customerbenefitgrantdiscordpropertiesupdate.md +17 -0
- package/docs/models/components/customerbenefitgrantdiscordupdate.md +21 -0
- package/docs/models/components/customerbenefitgrantdownloadables.md +110 -0
- package/docs/models/components/customerbenefitgrantdownloadablesupdate.md +17 -0
- package/docs/models/components/customerbenefitgrantgithubrepository.md +109 -0
- package/docs/models/components/customerbenefitgrantgithubrepositorypropertiesupdate.md +17 -0
- package/docs/models/components/customerbenefitgrantgithubrepositoryupdate.md +21 -0
- package/docs/models/components/customerbenefitgrantlicensekeys.md +117 -0
- package/docs/models/components/customerbenefitgrantlicensekeysupdate.md +17 -0
- package/docs/models/components/customerbenefitgrantmetercredit.md +109 -0
- package/docs/models/components/customerbenefitgrantmetercreditupdate.md +17 -0
- package/docs/models/components/customerbenefitgrantsortproperty.md +15 -0
- package/docs/models/components/customerbenefitgrantupdate.md +59 -0
- package/docs/models/components/customercancellationreason.md +15 -0
- package/docs/models/components/customercreate.md +33 -0
- package/docs/models/components/customercreatedevent.md +61 -0
- package/docs/models/components/customercreatedmetadata.md +23 -0
- package/docs/models/components/customercreatemetadata.md +29 -0
- package/docs/models/components/customercreatetaxid.md +17 -0
- package/docs/models/components/customercustomermeter.md +38 -0
- package/docs/models/components/customercustomermetermeter.md +23 -0
- package/docs/models/components/customercustomermetersortproperty.md +15 -0
- package/docs/models/components/customercustomersession.md +19 -0
- package/docs/models/components/customerdeletedevent.md +61 -0
- package/docs/models/components/customerdeletedmetadata.md +23 -0
- package/docs/models/components/customermetadata.md +23 -0
- package/docs/models/components/customermetadata1.md +29 -0
- package/docs/models/components/customermeter.md +75 -0
- package/docs/models/components/customermetersortproperty.md +15 -0
- package/docs/models/components/customerorder.md +165 -0
- package/docs/models/components/customerorderconfirmpayment.md +19 -0
- package/docs/models/components/customerorderinvoice.md +19 -0
- package/docs/models/components/customerorderpaymentconfirmation.md +21 -0
- package/docs/models/components/customerorderpaymentstatus.md +20 -0
- package/docs/models/components/customerorderproduct.md +96 -0
- package/docs/models/components/customerorderproductprices.md +48 -0
- package/docs/models/components/customerordersortproperty.md +15 -0
- package/docs/models/components/customerordersubscription.md +62 -0
- package/docs/models/components/customerorderupdate.md +23 -0
- package/docs/models/components/customerorganization.md +84 -0
- package/docs/models/components/customerpaymentmethod.md +37 -0
- package/docs/models/components/customerpaymentmethodconfirm.md +19 -0
- package/docs/models/components/customerpaymentmethodcreate.md +21 -0
- package/docs/models/components/customerpaymentmethodcreaterequiresactionresponse.md +19 -0
- package/docs/models/components/customerpaymentmethodcreateresponse.md +36 -0
- package/docs/models/components/customerpaymentmethodcreatesucceededresponse.md +32 -0
- package/docs/models/components/customerportalcustomer.md +44 -0
- package/docs/models/components/customerportalcustomertaxid.md +17 -0
- package/docs/models/components/customerportalcustomerupdate.md +21 -0
- package/docs/models/components/customerportaloauthaccount.md +19 -0
- package/docs/models/components/customerproduct.md +58 -0
- package/docs/models/components/customerproductprices.md +48 -0
- package/docs/models/components/customerseat.md +31 -0
- package/docs/models/components/customerseatclaimresponse.md +26 -0
- package/docs/models/components/customersession.md +56 -0
- package/docs/models/components/customersessioncustomerexternalidcreate.md +21 -0
- package/docs/models/components/customersessioncustomeridcreate.md +21 -0
- package/docs/models/components/customersortproperty.md +15 -0
- package/docs/models/components/customerstate.md +111 -0
- package/docs/models/components/customerstatebenefitgrant.md +35 -0
- package/docs/models/components/customerstatebenefitgrantproperties.md +35 -0
- package/docs/models/components/customerstatemetadata.md +29 -0
- package/docs/models/components/customerstatemeter.md +31 -0
- package/docs/models/components/customerstatesubscription.md +68 -0
- package/docs/models/components/customerstatesubscriptioncustomfielddata.md +29 -0
- package/docs/models/components/customerstatesubscriptionmetadata.md +29 -0
- package/docs/models/components/customerstatesubscriptionmeter.md +31 -0
- package/docs/models/components/customerstatetaxid.md +17 -0
- package/docs/models/components/customersubscription.md +152 -0
- package/docs/models/components/customersubscriptioncancel.md +17 -0
- package/docs/models/components/customersubscriptionmeter.md +36 -0
- package/docs/models/components/customersubscriptionmetermeter.md +23 -0
- package/docs/models/components/customersubscriptionprices.md +48 -0
- package/docs/models/components/customersubscriptionproduct.md +91 -0
- package/docs/models/components/customersubscriptionproductprices.md +48 -0
- package/docs/models/components/customersubscriptionsortproperty.md +15 -0
- package/docs/models/components/customersubscriptionupdate.md +27 -0
- package/docs/models/components/customersubscriptionupdateproduct.md +17 -0
- package/docs/models/components/customersubscriptionupdateseats.md +18 -0
- package/docs/models/components/customertaxid.md +17 -0
- package/docs/models/components/customerupdate.md +31 -0
- package/docs/models/components/customerupdatedevent.md +62 -0
- package/docs/models/components/customerupdatedfields.md +19 -0
- package/docs/models/components/customerupdatedfieldsmetadata.md +23 -0
- package/docs/models/components/customerupdatedmetadata.md +25 -0
- package/docs/models/components/customerupdateexternalid.md +29 -0
- package/docs/models/components/customerupdateexternalidmetadata.md +29 -0
- package/docs/models/components/customerupdateexternalidtaxid.md +17 -0
- package/docs/models/components/customerupdatemetadata.md +29 -0
- package/docs/models/components/customerupdatetaxid.md +17 -0
- package/docs/models/components/customerwallet.md +31 -0
- package/docs/models/components/customerwalletsortproperty.md +15 -0
- package/docs/models/components/customfield.md +102 -0
- package/docs/models/components/customfieldcheckbox.md +37 -0
- package/docs/models/components/customfieldcheckboxmetadata.md +29 -0
- package/docs/models/components/customfieldcheckboxproperties.md +17 -0
- package/docs/models/components/customfieldcreate.md +72 -0
- package/docs/models/components/customfieldcreatecheckbox.md +28 -0
- package/docs/models/components/customfieldcreatecheckboxmetadata.md +29 -0
- package/docs/models/components/customfieldcreatedate.md +28 -0
- package/docs/models/components/customfieldcreatedatemetadata.md +29 -0
- package/docs/models/components/customfieldcreatenumber.md +28 -0
- package/docs/models/components/customfieldcreatenumbermetadata.md +29 -0
- package/docs/models/components/customfieldcreateselect.md +35 -0
- package/docs/models/components/customfieldcreateselectmetadata.md +29 -0
- package/docs/models/components/customfieldcreatetext.md +28 -0
- package/docs/models/components/customfieldcreatetextmetadata.md +29 -0
- package/docs/models/components/customfielddata.md +29 -0
- package/docs/models/components/customfielddate.md +37 -0
- package/docs/models/components/customfielddatemetadata.md +29 -0
- package/docs/models/components/customfielddateproperties.md +19 -0
- package/docs/models/components/customfieldnumber.md +37 -0
- package/docs/models/components/customfieldnumbermetadata.md +29 -0
- package/docs/models/components/customfieldnumberproperties.md +19 -0
- package/docs/models/components/customfieldselect.md +44 -0
- package/docs/models/components/customfieldselectmetadata.md +29 -0
- package/docs/models/components/customfieldselectoption.md +19 -0
- package/docs/models/components/customfieldselectproperties.md +25 -0
- package/docs/models/components/customfieldsortproperty.md +15 -0
- package/docs/models/components/customfieldtext.md +37 -0
- package/docs/models/components/customfieldtextmetadata.md +29 -0
- package/docs/models/components/customfieldtextproperties.md +20 -0
- package/docs/models/components/customfieldtype.md +15 -0
- package/docs/models/components/customfieldupdate.md +45 -0
- package/docs/models/components/customfieldupdatecheckbox.md +23 -0
- package/docs/models/components/customfieldupdatecheckboxmetadata.md +29 -0
- package/docs/models/components/customfieldupdatedate.md +23 -0
- package/docs/models/components/customfieldupdatedatemetadata.md +29 -0
- package/docs/models/components/customfieldupdatenumber.md +23 -0
- package/docs/models/components/customfieldupdatenumbermetadata.md +29 -0
- package/docs/models/components/customfieldupdateselect.md +23 -0
- package/docs/models/components/customfieldupdateselectmetadata.md +29 -0
- package/docs/models/components/customfieldupdatetext.md +23 -0
- package/docs/models/components/customfieldupdatetextmetadata.md +29 -0
- package/docs/models/components/discount.md +122 -0
- package/docs/models/components/discountcreate.md +55 -0
- package/docs/models/components/discountduration.md +15 -0
- package/docs/models/components/discountfixedonceforeverduration.md +51 -0
- package/docs/models/components/discountfixedonceforeverdurationbase.md +47 -0
- package/docs/models/components/discountfixedonceforeverdurationbasemetadata.md +29 -0
- package/docs/models/components/discountfixedonceforeverdurationcreate.md +34 -0
- package/docs/models/components/discountfixedonceforeverdurationcreatemetadata.md +29 -0
- package/docs/models/components/discountfixedonceforeverdurationmetadata.md +29 -0
- package/docs/models/components/discountfixedrepeatduration.md +54 -0
- package/docs/models/components/discountfixedrepeatdurationbase.md +49 -0
- package/docs/models/components/discountfixedrepeatdurationbasemetadata.md +29 -0
- package/docs/models/components/discountfixedrepeatdurationcreate.md +37 -0
- package/docs/models/components/discountfixedrepeatdurationcreatemetadata.md +29 -0
- package/docs/models/components/discountfixedrepeatdurationmetadata.md +29 -0
- package/docs/models/components/discountpercentageonceforeverduration.md +68 -0
- package/docs/models/components/discountpercentageonceforeverdurationbase.md +45 -0
- package/docs/models/components/discountpercentageonceforeverdurationbasemetadata.md +29 -0
- package/docs/models/components/discountpercentageonceforeverdurationcreate.md +33 -0
- package/docs/models/components/discountpercentageonceforeverdurationcreatemetadata.md +29 -0
- package/docs/models/components/discountpercentageonceforeverdurationmetadata.md +29 -0
- package/docs/models/components/discountpercentagerepeatduration.md +50 -0
- package/docs/models/components/discountpercentagerepeatdurationbase.md +47 -0
- package/docs/models/components/discountpercentagerepeatdurationbasemetadata.md +29 -0
- package/docs/models/components/discountpercentagerepeatdurationcreate.md +36 -0
- package/docs/models/components/discountpercentagerepeatdurationcreatemetadata.md +29 -0
- package/docs/models/components/discountpercentagerepeatdurationmetadata.md +29 -0
- package/docs/models/components/discountproduct.md +46 -0
- package/docs/models/components/discountproductmetadata.md +29 -0
- package/docs/models/components/discountsortproperty.md +15 -0
- package/docs/models/components/discounttype.md +15 -0
- package/docs/models/components/discountupdate.md +29 -0
- package/docs/models/components/discountupdatemetadata.md +29 -0
- package/docs/models/components/downloadablefilecreate.md +39 -0
- package/docs/models/components/downloadablefileread.md +49 -0
- package/docs/models/components/downloadableread.md +41 -0
- package/docs/models/components/event.md +83 -0
- package/docs/models/components/eventcreatecustomer.md +23 -0
- package/docs/models/components/eventcreateexternalcustomer.md +23 -0
- package/docs/models/components/eventmetadatainput.md +50 -0
- package/docs/models/components/eventmetadataoutput.md +50 -0
- package/docs/models/components/eventname.md +25 -0
- package/docs/models/components/eventnamessortproperty.md +15 -0
- package/docs/models/components/events.md +25 -0
- package/docs/models/components/eventsingest.md +17 -0
- package/docs/models/components/eventsingestresponse.md +17 -0
- package/docs/models/components/eventsortproperty.md +15 -0
- package/docs/models/components/eventsource.md +15 -0
- package/docs/models/components/existingproductprice.md +21 -0
- package/docs/models/components/filecreate.md +68 -0
- package/docs/models/components/filedownload.md +50 -0
- package/docs/models/components/filepatch.md +16 -0
- package/docs/models/components/fileread.md +76 -0
- package/docs/models/components/fileservicetypes.md +15 -0
- package/docs/models/components/fileupload.md +58 -0
- package/docs/models/components/fileuploadcompleted.md +21 -0
- package/docs/models/components/filter.md +19 -0
- package/docs/models/components/filterclause.md +21 -0
- package/docs/models/components/filterconjunction.md +15 -0
- package/docs/models/components/filteroperator.md +15 -0
- package/docs/models/components/func.md +15 -0
- package/docs/models/components/genericpayment.md +44 -0
- package/docs/models/components/granttypes.md +15 -0
- package/docs/models/components/grossmargin.md +17 -0
- package/docs/models/components/grossmarginpercentage.md +17 -0
- package/docs/models/components/introspecttokenrequest.md +22 -0
- package/docs/models/components/introspecttokenrequesttokentypehint.md +15 -0
- package/docs/models/components/introspecttokenresponse.md +35 -0
- package/docs/models/components/legacyrecurringproductprice.md +59 -0
- package/docs/models/components/legacyrecurringproductpricecustom.md +45 -0
- package/docs/models/components/legacyrecurringproductpricefixed.md +41 -0
- package/docs/models/components/legacyrecurringproductpricefree.md +37 -0
- package/docs/models/components/licensekeyactivate.md +23 -0
- package/docs/models/components/licensekeyactivateconditions.md +29 -0
- package/docs/models/components/licensekeyactivatemeta.md +29 -0
- package/docs/models/components/licensekeyactivationbase.md +27 -0
- package/docs/models/components/licensekeyactivationread.md +67 -0
- package/docs/models/components/licensekeyactivationreadmeta.md +29 -0
- package/docs/models/components/licensekeycustomer.md +48 -0
- package/docs/models/components/licensekeycustomermetadata.md +29 -0
- package/docs/models/components/licensekeycustomertaxid.md +17 -0
- package/docs/models/components/licensekeydeactivate.md +21 -0
- package/docs/models/components/licensekeyread.md +68 -0
- package/docs/models/components/licensekeystatus.md +15 -0
- package/docs/models/components/licensekeyupdate.md +19 -0
- package/docs/models/components/licensekeyvalidate.md +24 -0
- package/docs/models/components/licensekeywithactivations.md +70 -0
- package/docs/models/components/listresource.md +22 -0
- package/docs/models/components/listresourcebenefit.md +40 -0
- package/docs/models/components/listresourcebenefitgrant.md +22 -0
- package/docs/models/components/listresourcecheckout.md +22 -0
- package/docs/models/components/listresourcecheckoutlink.md +95 -0
- package/docs/models/components/listresourcecustomer.md +41 -0
- package/docs/models/components/listresourcecustomerbenefitgrant.md +113 -0
- package/docs/models/components/listresourcecustomercustomermeter.md +39 -0
- package/docs/models/components/listresourcecustomermeter.md +22 -0
- package/docs/models/components/listresourcecustomerorder.md +132 -0
- package/docs/models/components/listresourcecustomerpaymentmethod.md +22 -0
- package/docs/models/components/listresourcecustomersubscription.md +22 -0
- package/docs/models/components/listresourcecustomerwallet.md +22 -0
- package/docs/models/components/listresourcecustomfield.md +43 -0
- package/docs/models/components/listresourcediscount.md +22 -0
- package/docs/models/components/listresourcedownloadableread.md +22 -0
- package/docs/models/components/listresourceevent.md +22 -0
- package/docs/models/components/listresourceeventname.md +30 -0
- package/docs/models/components/listresourcefileread.md +22 -0
- package/docs/models/components/listresourcelicensekeyread.md +62 -0
- package/docs/models/components/listresourcemeter.md +44 -0
- package/docs/models/components/listresourceorder.md +22 -0
- package/docs/models/components/listresourceorganization.md +57 -0
- package/docs/models/components/listresourceproduct.md +22 -0
- package/docs/models/components/listresourcerefund.md +22 -0
- package/docs/models/components/listresourcesubscription.md +154 -0
- package/docs/models/components/listresourcewallet.md +22 -0
- package/docs/models/components/listresourcewebhookdelivery.md +39 -0
- package/docs/models/components/listresourcewebhookendpoint.md +22 -0
- package/docs/models/components/llmmetadata.md +28 -0
- package/docs/models/components/loc.md +17 -0
- package/docs/models/components/meta.md +29 -0
- package/docs/models/components/metadata.md +29 -0
- package/docs/models/components/metadataquery.md +50 -0
- package/docs/models/components/meter.md +40 -0
- package/docs/models/components/meteraggregation.md +57 -0
- package/docs/models/components/metercreate.md +35 -0
- package/docs/models/components/metercreateaggregation.md +57 -0
- package/docs/models/components/metercreatemetadata.md +29 -0
- package/docs/models/components/metercreditedmetadata.md +21 -0
- package/docs/models/components/metercreditevent.md +60 -0
- package/docs/models/components/metermetadata.md +29 -0
- package/docs/models/components/meterquantities.md +19 -0
- package/docs/models/components/meterquantity.md +19 -0
- package/docs/models/components/meterresetevent.md +58 -0
- package/docs/models/components/meterresetmetadata.md +17 -0
- package/docs/models/components/metersortproperty.md +15 -0
- package/docs/models/components/meterupdate.md +19 -0
- package/docs/models/components/meterupdatemetadata.md +29 -0
- package/docs/models/components/metric.md +23 -0
- package/docs/models/components/metricperiod.md +97 -0
- package/docs/models/components/metrics.md +255 -0
- package/docs/models/components/metricsintervallimit.md +19 -0
- package/docs/models/components/metricsintervalslimits.md +37 -0
- package/docs/models/components/metricslimits.md +38 -0
- package/docs/models/components/metricsresponse.md +265 -0
- package/docs/models/components/metricstotals.md +95 -0
- package/docs/models/components/metricstotalsactivesubscriptions.md +17 -0
- package/docs/models/components/metricstotalsactiveuserbyevent.md +17 -0
- package/docs/models/components/metricstotalsaverageordervalue.md +17 -0
- package/docs/models/components/metricstotalsaveragerevenueperuser.md +17 -0
- package/docs/models/components/metricstotalscanceledsubscriptions.md +17 -0
- package/docs/models/components/metricstotalscanceledsubscriptionscustomerservice.md +17 -0
- package/docs/models/components/metricstotalscanceledsubscriptionslowquality.md +17 -0
- package/docs/models/components/metricstotalscanceledsubscriptionsmissingfeatures.md +17 -0
- package/docs/models/components/metricstotalscanceledsubscriptionsother.md +17 -0
- package/docs/models/components/metricstotalscanceledsubscriptionsswitchedservice.md +17 -0
- package/docs/models/components/metricstotalscanceledsubscriptionstoocomplex.md +17 -0
- package/docs/models/components/metricstotalscanceledsubscriptionstooexpensive.md +17 -0
- package/docs/models/components/metricstotalscanceledsubscriptionsunused.md +17 -0
- package/docs/models/components/metricstotalscashflow.md +17 -0
- package/docs/models/components/metricstotalscheckouts.md +17 -0
- package/docs/models/components/metricstotalscheckoutsconversion.md +17 -0
- package/docs/models/components/metricstotalschurnrate.md +17 -0
- package/docs/models/components/metricstotalscommittedmonthlyrecurringrevenue.md +17 -0
- package/docs/models/components/metricstotalscostperuser.md +17 -0
- package/docs/models/components/metricstotalscosts.md +17 -0
- package/docs/models/components/metricstotalscumulativecosts.md +17 -0
- package/docs/models/components/metricstotalscumulativerevenue.md +17 -0
- package/docs/models/components/metricstotalsgrossmargin.md +17 -0
- package/docs/models/components/metricstotalsgrossmarginpercentage.md +17 -0
- package/docs/models/components/metricstotalsmonthlyrecurringrevenue.md +17 -0
- package/docs/models/components/metricstotalsnetaverageordervalue.md +17 -0
- package/docs/models/components/metricstotalsnetcumulativerevenue.md +17 -0
- package/docs/models/components/metricstotalsnetrevenue.md +17 -0
- package/docs/models/components/metricstotalsnewsubscriptions.md +17 -0
- package/docs/models/components/metricstotalsnewsubscriptionsnetrevenue.md +17 -0
- package/docs/models/components/metricstotalsnewsubscriptionsrevenue.md +17 -0
- package/docs/models/components/metricstotalsonetimeproducts.md +17 -0
- package/docs/models/components/metricstotalsonetimeproductsnetrevenue.md +17 -0
- package/docs/models/components/metricstotalsonetimeproductsrevenue.md +17 -0
- package/docs/models/components/metricstotalsorders.md +17 -0
- package/docs/models/components/metricstotalsrenewedsubscriptions.md +17 -0
- package/docs/models/components/metricstotalsrenewedsubscriptionsnetrevenue.md +17 -0
- package/docs/models/components/metricstotalsrenewedsubscriptionsrevenue.md +17 -0
- package/docs/models/components/metricstotalsrevenue.md +17 -0
- package/docs/models/components/metricstotalssucceededcheckouts.md +17 -0
- package/docs/models/components/metrictype.md +15 -0
- package/docs/models/components/monthlyrecurringrevenue.md +17 -0
- package/docs/models/components/netaverageordervalue.md +17 -0
- package/docs/models/components/netcumulativerevenue.md +17 -0
- package/docs/models/components/netrevenue.md +17 -0
- package/docs/models/components/newsubscriptions.md +17 -0
- package/docs/models/components/newsubscriptionsnetrevenue.md +17 -0
- package/docs/models/components/newsubscriptionsrevenue.md +17 -0
- package/docs/models/components/oauth2clientconfiguration.md +31 -0
- package/docs/models/components/oauth2clientconfigurationupdate.md +33 -0
- package/docs/models/components/oauth2clientconfigurationupdategranttypes.md +15 -0
- package/docs/models/components/oauth2clientconfigurationupdatetokenendpointauthmethod.md +16 -0
- package/docs/models/components/oauth2clientpublic.md +31 -0
- package/docs/models/components/onetimeproducts.md +17 -0
- package/docs/models/components/onetimeproductsnetrevenue.md +17 -0
- package/docs/models/components/onetimeproductsrevenue.md +17 -0
- package/docs/models/components/order.md +181 -0
- package/docs/models/components/orderbillingreason.md +15 -0
- package/docs/models/components/ordercustomer.md +48 -0
- package/docs/models/components/ordercustomermetadata.md +29 -0
- package/docs/models/components/ordercustomertaxid.md +17 -0
- package/docs/models/components/ordercustomfielddata.md +29 -0
- package/docs/models/components/orderdiscount.md +101 -0
- package/docs/models/components/orderinvoice.md +19 -0
- package/docs/models/components/orderitemschema.md +33 -0
- package/docs/models/components/ordermetadata.md +29 -0
- package/docs/models/components/orderpaidevent.md +39 -0
- package/docs/models/components/orderpaidmetadata.md +22 -0
- package/docs/models/components/orderproduct.md +41 -0
- package/docs/models/components/orderproductmetadata.md +29 -0
- package/docs/models/components/orderrefundedevent.md +39 -0
- package/docs/models/components/orderrefundedmetadata.md +22 -0
- package/docs/models/components/orders.md +17 -0
- package/docs/models/components/ordersortproperty.md +15 -0
- package/docs/models/components/orderstatus.md +15 -0
- package/docs/models/components/ordersubscription.md +66 -0
- package/docs/models/components/ordersubscriptionmetadata.md +29 -0
- package/docs/models/components/orderupdate.md +23 -0
- package/docs/models/components/organization.md +67 -0
- package/docs/models/components/organizationavatarfilecreate.md +39 -0
- package/docs/models/components/organizationavatarfileread.md +51 -0
- package/docs/models/components/organizationcreate.md +28 -0
- package/docs/models/components/organizationcustomeremailsettings.md +31 -0
- package/docs/models/components/organizationdetails.md +30 -0
- package/docs/models/components/organizationfeaturesettings.md +18 -0
- package/docs/models/components/organizationnotificationsettings.md +19 -0
- package/docs/models/components/organizationsociallink.md +19 -0
- package/docs/models/components/organizationsocialplatforms.md +15 -0
- package/docs/models/components/organizationsortproperty.md +15 -0
- package/docs/models/components/organizationstatus.md +15 -0
- package/docs/models/components/organizationsubscriptionsettings.md +23 -0
- package/docs/models/components/organizationupdate.md +24 -0
- package/docs/models/components/pagination.md +19 -0
- package/docs/models/components/payment.md +49 -0
- package/docs/models/components/paymentmethodcard.md +34 -0
- package/docs/models/components/paymentmethodcardmetadata.md +24 -0
- package/docs/models/components/paymentmethodgeneric.md +27 -0
- package/docs/models/components/paymentprocessor.md +15 -0
- package/docs/models/components/paymentsortproperty.md +15 -0
- package/docs/models/components/paymentstatus.md +15 -0
- package/docs/models/components/permission.md +17 -0
- package/docs/models/components/prices.md +48 -0
- package/docs/models/components/product.md +117 -0
- package/docs/models/components/productbenefitsupdate.md +22 -0
- package/docs/models/components/productbillingtype.md +15 -0
- package/docs/models/components/productcreate.md +38 -0
- package/docs/models/components/productcreateonetime.md +32 -0
- package/docs/models/components/productcreateonetimemetadata.md +29 -0
- package/docs/models/components/productcreateonetimeprices.md +56 -0
- package/docs/models/components/productcreaterecurring.md +37 -0
- package/docs/models/components/productcreaterecurringmetadata.md +29 -0
- package/docs/models/components/productcreaterecurringprices.md +56 -0
- package/docs/models/components/productmediafilecreate.md +39 -0
- package/docs/models/components/productmediafileread.md +51 -0
- package/docs/models/components/productmetadata.md +29 -0
- package/docs/models/components/productprice.md +103 -0
- package/docs/models/components/productpricecustom.md +41 -0
- package/docs/models/components/productpricecustomcreate.md +23 -0
- package/docs/models/components/productpricefixed.md +37 -0
- package/docs/models/components/productpricefixedcreate.md +22 -0
- package/docs/models/components/productpricefree.md +33 -0
- package/docs/models/components/productpricefreecreate.md +19 -0
- package/docs/models/components/productpricemeter.md +21 -0
- package/docs/models/components/productpricemeteredunit.md +46 -0
- package/docs/models/components/productpricemeteredunitcreate.md +25 -0
- package/docs/models/components/productpriceseatbased.md +44 -0
- package/docs/models/components/productpriceseatbasedcreate.md +29 -0
- package/docs/models/components/productpriceseattier.md +22 -0
- package/docs/models/components/productpriceseattiers.md +19 -0
- package/docs/models/components/productpricetype.md +15 -0
- package/docs/models/components/productsortproperty.md +15 -0
- package/docs/models/components/productupdate.md +27 -0
- package/docs/models/components/productupdatemetadata.md +29 -0
- package/docs/models/components/productupdateprices.md +23 -0
- package/docs/models/components/properties.md +35 -0
- package/docs/models/components/propertyaggregation.md +19 -0
- package/docs/models/components/refreshtokenrequest.md +23 -0
- package/docs/models/components/refund.md +43 -0
- package/docs/models/components/refundcreate.md +24 -0
- package/docs/models/components/refundcreatemetadata.md +29 -0
- package/docs/models/components/refundmetadata.md +29 -0
- package/docs/models/components/refundreason.md +15 -0
- package/docs/models/components/refundsortproperty.md +15 -0
- package/docs/models/components/refundstatus.md +15 -0
- package/docs/models/components/renewedsubscriptions.md +17 -0
- package/docs/models/components/renewedsubscriptionsnetrevenue.md +17 -0
- package/docs/models/components/renewedsubscriptionsrevenue.md +17 -0
- package/docs/models/components/revenue.md +17 -0
- package/docs/models/components/revoketokenrequest.md +22 -0
- package/docs/models/components/revoketokenresponse.md +14 -0
- package/docs/models/components/s3downloadurl.md +20 -0
- package/docs/models/components/s3filecreatemultipart.md +17 -0
- package/docs/models/components/s3filecreatepart.md +22 -0
- package/docs/models/components/s3fileuploadcompletedpart.md +21 -0
- package/docs/models/components/s3fileuploadmultipart.md +21 -0
- package/docs/models/components/s3fileuploadpart.md +27 -0
- package/docs/models/components/scope.md +15 -0
- package/docs/models/components/seatassign.md +22 -0
- package/docs/models/components/seatclaim.md +17 -0
- package/docs/models/components/seatclaiminfo.md +30 -0
- package/docs/models/components/seatslist.md +28 -0
- package/docs/models/components/seatstatus.md +15 -0
- package/docs/models/components/security.md +15 -0
- package/docs/models/components/status.md +15 -0
- package/docs/models/components/subscription.md +170 -0
- package/docs/models/components/subscriptioncancel.md +19 -0
- package/docs/models/components/subscriptioncreatecustomer.md +22 -0
- package/docs/models/components/subscriptioncreatecustomermetadata.md +29 -0
- package/docs/models/components/subscriptioncreateexternalcustomer.md +22 -0
- package/docs/models/components/subscriptioncreateexternalcustomermetadata.md +29 -0
- package/docs/models/components/subscriptioncustomer.md +48 -0
- package/docs/models/components/subscriptioncustomermetadata.md +29 -0
- package/docs/models/components/subscriptioncycledevent.md +58 -0
- package/docs/models/components/subscriptioncycledmetadata.md +17 -0
- package/docs/models/components/subscriptiondiscount.md +101 -0
- package/docs/models/components/subscriptionmeter.md +50 -0
- package/docs/models/components/subscriptionprices.md +48 -0
- package/docs/models/components/subscriptionproductupdatedevent.md +60 -0
- package/docs/models/components/subscriptionproductupdatedmetadata.md +21 -0
- package/docs/models/components/subscriptionprorationbehavior.md +15 -0
- package/docs/models/components/subscriptionrecurringinterval.md +15 -0
- package/docs/models/components/subscriptionrevoke.md +19 -0
- package/docs/models/components/subscriptionrevokedevent.md +58 -0
- package/docs/models/components/subscriptionrevokedmetadata.md +17 -0
- package/docs/models/components/subscriptionsortproperty.md +15 -0
- package/docs/models/components/subscriptionstatus.md +15 -0
- package/docs/models/components/subscriptionupdate.md +53 -0
- package/docs/models/components/subscriptionupdatediscount.md +17 -0
- package/docs/models/components/subscriptionupdateproduct.md +18 -0
- package/docs/models/components/subscriptionupdateseats.md +18 -0
- package/docs/models/components/subscriptionupdatetrial.md +17 -0
- package/docs/models/components/subtype.md +15 -0
- package/docs/models/components/succeededcheckouts.md +17 -0
- package/docs/models/components/switchingfrom.md +15 -0
- package/docs/models/components/systemevent.md +535 -0
- package/docs/models/components/taxid.md +17 -0
- package/docs/models/components/taxidformat.md +19 -0
- package/docs/models/components/timeframe.md +15 -0
- package/docs/models/components/timeinterval.md +15 -0
- package/docs/models/components/tokenendpointauthmethod.md +15 -0
- package/docs/models/components/tokenresponse.md +27 -0
- package/docs/models/components/tokentype.md +15 -0
- package/docs/models/components/tokentypehint.md +15 -0
- package/docs/models/components/trialinterval.md +15 -0
- package/docs/models/components/two.md +56 -0
- package/docs/models/components/uniqueaggregation.md +18 -0
- package/docs/models/components/unitamount.md +19 -0
- package/docs/models/components/userevent.md +56 -0
- package/docs/models/components/userinfoorganization.md +18 -0
- package/docs/models/components/userinfouser.md +20 -0
- package/docs/models/components/validatedlicensekey.md +69 -0
- package/docs/models/components/validationerror.md +23 -0
- package/docs/models/components/value.md +23 -0
- package/docs/models/components/wallet.md +31 -0
- package/docs/models/components/walletsortproperty.md +15 -0
- package/docs/models/components/wallettopupcreate.md +21 -0
- package/docs/models/components/webhookbenefitcreatedpayload.md +48 -0
- package/docs/models/components/webhookbenefitgrantcreatedpayload.md +81 -0
- package/docs/models/components/webhookbenefitgrantcycledpayload.md +77 -0
- package/docs/models/components/webhookbenefitgrantrevokedpayload.md +81 -0
- package/docs/models/components/webhookbenefitgrantupdatedpayload.md +72 -0
- package/docs/models/components/webhookbenefitupdatedpayload.md +42 -0
- package/docs/models/components/webhookcheckoutcreatedpayload.md +195 -0
- package/docs/models/components/webhookcheckoutupdatedpayload.md +195 -0
- package/docs/models/components/webhookcustomercreatedpayload.md +51 -0
- package/docs/models/components/webhookcustomerdeletedpayload.md +46 -0
- package/docs/models/components/webhookcustomerseatassignedpayload.md +31 -0
- package/docs/models/components/webhookcustomerseatclaimedpayload.md +30 -0
- package/docs/models/components/webhookcustomerseatrevokedpayload.md +30 -0
- package/docs/models/components/webhookcustomerstatechangedpayload.md +76 -0
- package/docs/models/components/webhookcustomerupdatedpayload.md +50 -0
- package/docs/models/components/webhookdelivery.md +38 -0
- package/docs/models/components/webhookendpoint.md +37 -0
- package/docs/models/components/webhookendpointcreate.md +28 -0
- package/docs/models/components/webhookendpointupdate.md +23 -0
- package/docs/models/components/webhookevent.md +37 -0
- package/docs/models/components/webhookeventtype.md +15 -0
- package/docs/models/components/webhookformat.md +15 -0
- package/docs/models/components/webhookordercreatedpayload.md +153 -0
- package/docs/models/components/webhookorderpaidpayload.md +146 -0
- package/docs/models/components/webhookorderrefundedpayload.md +144 -0
- package/docs/models/components/webhookorderupdatedpayload.md +149 -0
- package/docs/models/components/webhookorganizationupdatedpayload.md +63 -0
- package/docs/models/components/webhookproductcreatedpayload.md +112 -0
- package/docs/models/components/webhookproductupdatedpayload.md +112 -0
- package/docs/models/components/webhookrefundcreatedpayload.md +40 -0
- package/docs/models/components/webhookrefundupdatedpayload.md +40 -0
- package/docs/models/components/webhooksubscriptionactivepayload.md +155 -0
- package/docs/models/components/webhooksubscriptioncanceledpayload.md +155 -0
- package/docs/models/components/webhooksubscriptioncreatedpayload.md +156 -0
- package/docs/models/components/webhooksubscriptionrevokedpayload.md +155 -0
- package/docs/models/components/webhooksubscriptionuncanceledpayload.md +154 -0
- package/docs/models/components/webhooksubscriptionupdatedpayload.md +158 -0
- package/docs/models/components/webtokenrequest.md +26 -0
- package/docs/models/components/webtokenrequestsubtype.md +15 -0
- package/docs/models/errors/alreadyactivesubscriptionerror.md +16 -0
- package/docs/models/errors/alreadycanceledsubscription.md +16 -0
- package/docs/models/errors/checkoutforbiddenerror.md +32 -0
- package/docs/models/errors/customernotready.md +16 -0
- package/docs/models/errors/customerportalordersgenerateinvoiceresponse422customerportalordersgenerateinvoice.md +25 -0
- package/docs/models/errors/expiredcheckouterror.md +16 -0
- package/docs/models/errors/httpvalidationerror.md +15 -0
- package/docs/models/errors/missinginvoicebillingdetails.md +16 -0
- package/docs/models/errors/missingpaymentmethoderror.md +16 -0
- package/docs/models/errors/notopencheckout.md +16 -0
- package/docs/models/errors/notpaidorder.md +16 -0
- package/docs/models/errors/notpermitted.md +16 -0
- package/docs/models/errors/ordernoteligibleforretry.md +16 -0
- package/docs/models/errors/ordersgenerateinvoiceresponse422ordersgenerateinvoice.md +25 -0
- package/docs/models/errors/paymentalreadyinprogress.md +16 -0
- package/docs/models/errors/paymenterror.md +16 -0
- package/docs/models/errors/paymentintentfailederror.md +16 -0
- package/docs/models/errors/paymentmethodinusebyactivesubscription.md +16 -0
- package/docs/models/errors/paymentnotready.md +16 -0
- package/docs/models/errors/refundamounttoohigh.md +16 -0
- package/docs/models/errors/refundedalready.md +16 -0
- package/docs/models/errors/resourcenotfound.md +16 -0
- package/docs/models/errors/subscriptionlocked.md +16 -0
- package/docs/models/errors/unauthorized.md +16 -0
- package/docs/models/operations/benefitgrantslistqueryparamcustomeridfilter.md +22 -0
- package/docs/models/operations/benefitgrantslistqueryparamorganizationidfilter.md +21 -0
- package/docs/models/operations/benefitgrantslistrequest.md +22 -0
- package/docs/models/operations/benefitgrantslistresponse.md +23 -0
- package/docs/models/operations/benefitidfilter.md +22 -0
- package/docs/models/operations/benefitsdeleterequest.md +17 -0
- package/docs/models/operations/benefitsgetrequest.md +17 -0
- package/docs/models/operations/benefitsgrantsrequest.md +21 -0
- package/docs/models/operations/benefitsgrantsresponse.md +23 -0
- package/docs/models/operations/benefitslistrequest.md +23 -0
- package/docs/models/operations/benefitslistresponse.md +23 -0
- package/docs/models/operations/benefitsupdatebenefitupdate.md +58 -0
- package/docs/models/operations/benefitsupdaterequest.md +21 -0
- package/docs/models/operations/benefittypefilter.md +19 -0
- package/docs/models/operations/checkoutidfilter.md +22 -0
- package/docs/models/operations/checkoutlinksdeleterequest.md +17 -0
- package/docs/models/operations/checkoutlinksgetrequest.md +17 -0
- package/docs/models/operations/checkoutlinkslistqueryparamorganizationidfilter.md +21 -0
- package/docs/models/operations/checkoutlinkslistqueryparamproductidfilter.md +22 -0
- package/docs/models/operations/checkoutlinkslistrequest.md +21 -0
- package/docs/models/operations/checkoutlinkslistresponse.md +23 -0
- package/docs/models/operations/checkoutlinksupdaterequest.md +19 -0
- package/docs/models/operations/checkoutsclientconfirmrequest.md +23 -0
- package/docs/models/operations/checkoutsclientgetrequest.md +17 -0
- package/docs/models/operations/checkoutsclientupdaterequest.md +23 -0
- package/docs/models/operations/checkoutsgetrequest.md +17 -0
- package/docs/models/operations/checkoutslistqueryparamcustomeridfilter.md +22 -0
- package/docs/models/operations/checkoutslistqueryparamorganizationidfilter.md +21 -0
- package/docs/models/operations/checkoutslistqueryparamproductidfilter.md +22 -0
- package/docs/models/operations/checkoutslistrequest.md +24 -0
- package/docs/models/operations/checkoutslistresponse.md +23 -0
- package/docs/models/operations/checkoutsupdaterequest.md +23 -0
- package/docs/models/operations/customeremailfilter.md +22 -0
- package/docs/models/operations/customeridfilter.md +22 -0
- package/docs/models/operations/customermetersgetrequest.md +17 -0
- package/docs/models/operations/customermeterslistqueryparamcustomeridfilter.md +22 -0
- package/docs/models/operations/customermeterslistqueryparamexternalcustomeridfilter.md +22 -0
- package/docs/models/operations/customermeterslistqueryparamorganizationidfilter.md +21 -0
- package/docs/models/operations/customermeterslistrequest.md +23 -0
- package/docs/models/operations/customermeterslistresponse.md +74 -0
- package/docs/models/operations/customerportalbenefitgrantsgetrequest.md +17 -0
- package/docs/models/operations/customerportalbenefitgrantsgetsecurity.md +17 -0
- package/docs/models/operations/customerportalbenefitgrantslistqueryparambenefitidfilter.md +22 -0
- package/docs/models/operations/customerportalbenefitgrantslistrequest.md +22 -0
- package/docs/models/operations/customerportalbenefitgrantslistresponse.md +106 -0
- package/docs/models/operations/customerportalbenefitgrantslistsecurity.md +17 -0
- package/docs/models/operations/customerportalbenefitgrantsupdaterequest.md +21 -0
- package/docs/models/operations/customerportalbenefitgrantsupdatesecurity.md +17 -0
- package/docs/models/operations/customerportalcustomermetersgetrequest.md +17 -0
- package/docs/models/operations/customerportalcustomermetersgetsecurity.md +17 -0
- package/docs/models/operations/customerportalcustomermeterslistrequest.md +19 -0
- package/docs/models/operations/customerportalcustomermeterslistresponse.md +40 -0
- package/docs/models/operations/customerportalcustomermeterslistsecurity.md +17 -0
- package/docs/models/operations/customerportalcustomersaddpaymentmethodsecurity.md +17 -0
- package/docs/models/operations/customerportalcustomersconfirmpaymentmethodsecurity.md +17 -0
- package/docs/models/operations/customerportalcustomersdeletepaymentmethodrequest.md +17 -0
- package/docs/models/operations/customerportalcustomersdeletepaymentmethodsecurity.md +17 -0
- package/docs/models/operations/customerportalcustomersessionintrospectsecurity.md +17 -0
- package/docs/models/operations/customerportalcustomersgetsecurity.md +17 -0
- package/docs/models/operations/customerportalcustomerslistpaymentmethodsrequest.md +16 -0
- package/docs/models/operations/customerportalcustomerslistpaymentmethodsresponse.md +23 -0
- package/docs/models/operations/customerportalcustomerslistpaymentmethodssecurity.md +17 -0
- package/docs/models/operations/customerportalcustomersupdatesecurity.md +17 -0
- package/docs/models/operations/customerportaldownloadableslistqueryparambenefitidfilter.md +22 -0
- package/docs/models/operations/customerportaldownloadableslistrequest.md +17 -0
- package/docs/models/operations/customerportaldownloadableslistresponse.md +23 -0
- package/docs/models/operations/customerportaldownloadableslistsecurity.md +17 -0
- package/docs/models/operations/customerportallicensekeysgetrequest.md +17 -0
- package/docs/models/operations/customerportallicensekeysgetsecurity.md +17 -0
- package/docs/models/operations/customerportallicensekeyslistrequest.md +17 -0
- package/docs/models/operations/customerportallicensekeyslistresponse.md +23 -0
- package/docs/models/operations/customerportallicensekeyslistsecurity.md +17 -0
- package/docs/models/operations/customerportalordersconfirmretrypaymentrequest.md +19 -0
- package/docs/models/operations/customerportalordersconfirmretrypaymentsecurity.md +17 -0
- package/docs/models/operations/customerportalordersgenerateinvoicerequest.md +17 -0
- package/docs/models/operations/customerportalordersgenerateinvoicesecurity.md +17 -0
- package/docs/models/operations/customerportalordersgetpaymentstatusrequest.md +17 -0
- package/docs/models/operations/customerportalordersgetpaymentstatussecurity.md +17 -0
- package/docs/models/operations/customerportalordersgetrequest.md +17 -0
- package/docs/models/operations/customerportalordersgetsecurity.md +17 -0
- package/docs/models/operations/customerportalordersinvoicerequest.md +17 -0
- package/docs/models/operations/customerportalordersinvoicesecurity.md +17 -0
- package/docs/models/operations/customerportalorderslistqueryparamproductbillingtypefilter.md +19 -0
- package/docs/models/operations/customerportalorderslistqueryparamproductidfilter.md +22 -0
- package/docs/models/operations/customerportalorderslistqueryparamsubscriptionidfilter.md +22 -0
- package/docs/models/operations/customerportalorderslistrequest.md +21 -0
- package/docs/models/operations/customerportalorderslistresponse.md +23 -0
- package/docs/models/operations/customerportalorderslistsecurity.md +17 -0
- package/docs/models/operations/customerportalordersupdaterequest.md +24 -0
- package/docs/models/operations/customerportalordersupdatesecurity.md +17 -0
- package/docs/models/operations/customerportalorganizationsgetrequest.md +17 -0
- package/docs/models/operations/customerportalseatsassignseatsecurity.md +17 -0
- package/docs/models/operations/customerportalseatslistclaimedsubscriptionssecurity.md +17 -0
- package/docs/models/operations/customerportalseatslistseatsrequest.md +16 -0
- package/docs/models/operations/customerportalseatslistseatssecurity.md +17 -0
- package/docs/models/operations/customerportalseatsresendinvitationrequest.md +17 -0
- package/docs/models/operations/customerportalseatsresendinvitationsecurity.md +17 -0
- package/docs/models/operations/customerportalseatsrevokeseatrequest.md +17 -0
- package/docs/models/operations/customerportalseatsrevokeseatsecurity.md +17 -0
- package/docs/models/operations/customerportalsubscriptionscancelrequest.md +17 -0
- package/docs/models/operations/customerportalsubscriptionscancelsecurity.md +17 -0
- package/docs/models/operations/customerportalsubscriptionsgetrequest.md +17 -0
- package/docs/models/operations/customerportalsubscriptionsgetsecurity.md +17 -0
- package/docs/models/operations/customerportalsubscriptionslistqueryparamproductidfilter.md +22 -0
- package/docs/models/operations/customerportalsubscriptionslistrequest.md +20 -0
- package/docs/models/operations/customerportalsubscriptionslistresponse.md +115 -0
- package/docs/models/operations/customerportalsubscriptionslistsecurity.md +17 -0
- package/docs/models/operations/customerportalsubscriptionsupdaterequest.md +21 -0
- package/docs/models/operations/customerportalsubscriptionsupdatesecurity.md +17 -0
- package/docs/models/operations/customerportalwalletsgetrequest.md +17 -0
- package/docs/models/operations/customerportalwalletsgetsecurity.md +17 -0
- package/docs/models/operations/customerportalwalletslistrequest.md +17 -0
- package/docs/models/operations/customerportalwalletslistresponse.md +32 -0
- package/docs/models/operations/customerportalwalletslistsecurity.md +17 -0
- package/docs/models/operations/customersdeleteexternalrequest.md +17 -0
- package/docs/models/operations/customersdeleterequest.md +17 -0
- package/docs/models/operations/customerseatsgetclaiminforequest.md +17 -0
- package/docs/models/operations/customerseatslistseatsrequest.md +16 -0
- package/docs/models/operations/customerseatsresendinvitationrequest.md +17 -0
- package/docs/models/operations/customerseatsrevokeseatrequest.md +17 -0
- package/docs/models/operations/customersessionscreatecustomersessioncreate.md +23 -0
- package/docs/models/operations/customersexportqueryparamorganizationid.md +21 -0
- package/docs/models/operations/customersexportrequest.md +17 -0
- package/docs/models/operations/customersgetbalancerequest.md +17 -0
- package/docs/models/operations/customersgetexternalrequest.md +17 -0
- package/docs/models/operations/customersgetrequest.md +17 -0
- package/docs/models/operations/customersgetstateexternalrequest.md +17 -0
- package/docs/models/operations/customersgetstaterequest.md +17 -0
- package/docs/models/operations/customerslistqueryparamorganizationidfilter.md +21 -0
- package/docs/models/operations/customerslistrequest.md +23 -0
- package/docs/models/operations/customerslistresponse.md +23 -0
- package/docs/models/operations/customersupdateexternalrequest.md +29 -0
- package/docs/models/operations/customersupdaterequest.md +30 -0
- package/docs/models/operations/customfieldsdeleterequest.md +17 -0
- package/docs/models/operations/customfieldsgetrequest.md +17 -0
- package/docs/models/operations/customfieldslistqueryparamorganizationidfilter.md +21 -0
- package/docs/models/operations/customfieldslistrequest.md +22 -0
- package/docs/models/operations/customfieldslistresponse.md +37 -0
- package/docs/models/operations/customfieldsupdaterequest.md +21 -0
- package/docs/models/operations/customfieldtypefilter.md +21 -0
- package/docs/models/operations/discountidfilter.md +22 -0
- package/docs/models/operations/discountsdeleterequest.md +17 -0
- package/docs/models/operations/discountsgetrequest.md +17 -0
- package/docs/models/operations/discountslistqueryparamorganizationidfilter.md +21 -0
- package/docs/models/operations/discountslistrequest.md +21 -0
- package/docs/models/operations/discountslistresponse.md +23 -0
- package/docs/models/operations/discountsupdaterequest.md +19 -0
- package/docs/models/operations/endpointid.md +22 -0
- package/docs/models/operations/eventsgetrequest.md +17 -0
- package/docs/models/operations/eventslistnamesqueryparamcustomeridfilter.md +22 -0
- package/docs/models/operations/eventslistnamesqueryparamexternalcustomeridfilter.md +22 -0
- package/docs/models/operations/eventslistnamesqueryparamorganizationidfilter.md +21 -0
- package/docs/models/operations/eventslistnamesrequest.md +24 -0
- package/docs/models/operations/eventslistnamesresponse.md +23 -0
- package/docs/models/operations/eventslistqueryparamcustomeridfilter.md +22 -0
- package/docs/models/operations/eventslistqueryparamorganizationidfilter.md +21 -0
- package/docs/models/operations/eventslistrequest.md +30 -0
- package/docs/models/operations/eventslistresponse.md +56 -0
- package/docs/models/operations/externalcustomeridfilter.md +22 -0
- package/docs/models/operations/fileidfilter.md +22 -0
- package/docs/models/operations/filesdeleterequest.md +17 -0
- package/docs/models/operations/fileslistqueryparamorganizationidfilter.md +21 -0
- package/docs/models/operations/fileslistrequest.md +20 -0
- package/docs/models/operations/fileslistresponse.md +23 -0
- package/docs/models/operations/filesupdaterequest.md +19 -0
- package/docs/models/operations/filesupdateresponsefilesupdate.md +78 -0
- package/docs/models/operations/filesuploadedrequest.md +23 -0
- package/docs/models/operations/filesuploadedresponsefilesuploaded.md +78 -0
- package/docs/models/operations/licensekeysgetactivationrequest.md +19 -0
- package/docs/models/operations/licensekeysgetrequest.md +17 -0
- package/docs/models/operations/licensekeyslistqueryparamorganizationidfilter.md +21 -0
- package/docs/models/operations/licensekeyslistrequest.md +20 -0
- package/docs/models/operations/licensekeyslistresponse.md +23 -0
- package/docs/models/operations/licensekeysupdaterequest.md +19 -0
- package/docs/models/operations/meteridfilter.md +22 -0
- package/docs/models/operations/metersgetrequest.md +17 -0
- package/docs/models/operations/meterslistqueryparamorganizationidfilter.md +21 -0
- package/docs/models/operations/meterslistrequest.md +23 -0
- package/docs/models/operations/meterslistresponse.md +23 -0
- package/docs/models/operations/metersquantitiesqueryparamcustomeridfilter.md +22 -0
- package/docs/models/operations/metersquantitiesqueryparamexternalcustomeridfilter.md +22 -0
- package/docs/models/operations/metersquantitiesrequest.md +27 -0
- package/docs/models/operations/metersupdaterequest.md +19 -0
- package/docs/models/operations/methodfilter.md +22 -0
- package/docs/models/operations/metricsgetqueryparamcustomeridfilter.md +22 -0
- package/docs/models/operations/metricsgetqueryparamorganizationidfilter.md +21 -0
- package/docs/models/operations/metricsgetqueryparamproductidfilter.md +22 -0
- package/docs/models/operations/metricsgetrequest.md +28 -0
- package/docs/models/operations/namefilter.md +22 -0
- package/docs/models/operations/oauth2authorizeresponseoauth2authorize.md +56 -0
- package/docs/models/operations/oauth2clientsoauth2deleteclientrequest.md +17 -0
- package/docs/models/operations/oauth2clientsoauth2getclientrequest.md +17 -0
- package/docs/models/operations/oauth2clientsoauth2updateclientrequest.md +26 -0
- package/docs/models/operations/oauth2requesttokenrequestbody.md +39 -0
- package/docs/models/operations/oauth2userinforesponseoauth2userinfo.md +23 -0
- package/docs/models/operations/orderidfilter.md +22 -0
- package/docs/models/operations/ordersexportqueryparamorganizationidfilter.md +21 -0
- package/docs/models/operations/ordersexportqueryparamproductidfilter.md +22 -0
- package/docs/models/operations/ordersexportrequest.md +18 -0
- package/docs/models/operations/ordersgenerateinvoicerequest.md +17 -0
- package/docs/models/operations/ordersgetrequest.md +17 -0
- package/docs/models/operations/ordersinvoicerequest.md +17 -0
- package/docs/models/operations/orderslistqueryparamcustomeridfilter.md +22 -0
- package/docs/models/operations/orderslistqueryparamorganizationidfilter.md +21 -0
- package/docs/models/operations/orderslistqueryparamproductidfilter.md +22 -0
- package/docs/models/operations/orderslistrequest.md +26 -0
- package/docs/models/operations/orderslistresponse.md +142 -0
- package/docs/models/operations/ordersupdaterequest.md +24 -0
- package/docs/models/operations/organizationid.md +21 -0
- package/docs/models/operations/organizationidfilter.md +21 -0
- package/docs/models/operations/organizationsgetrequest.md +17 -0
- package/docs/models/operations/organizationslistrequest.md +18 -0
- package/docs/models/operations/organizationslistresponse.md +23 -0
- package/docs/models/operations/organizationsupdaterequest.md +19 -0
- package/docs/models/operations/paymentsgetrequest.md +17 -0
- package/docs/models/operations/paymentslistqueryparamcheckoutidfilter.md +22 -0
- package/docs/models/operations/paymentslistqueryparamorderidfilter.md +22 -0
- package/docs/models/operations/paymentslistqueryparamorganizationidfilter.md +21 -0
- package/docs/models/operations/paymentslistrequest.md +25 -0
- package/docs/models/operations/paymentslistresponse.md +39 -0
- package/docs/models/operations/productbillingtypefilter.md +19 -0
- package/docs/models/operations/productidfilter.md +22 -0
- package/docs/models/operations/productsgetrequest.md +17 -0
- package/docs/models/operations/productslistqueryparamorganizationidfilter.md +21 -0
- package/docs/models/operations/productslistrequest.md +26 -0
- package/docs/models/operations/productslistresponse.md +79 -0
- package/docs/models/operations/productsupdatebenefitsrequest.md +23 -0
- package/docs/models/operations/productsupdaterequest.md +19 -0
- package/docs/models/operations/queryparambenefitidfilter.md +22 -0
- package/docs/models/operations/queryparambenefittypefilter.md +19 -0
- package/docs/models/operations/queryparamcheckoutidfilter.md +22 -0
- package/docs/models/operations/queryparamcustomeridfilter.md +22 -0
- package/docs/models/operations/queryparamdiscountidfilter.md +22 -0
- package/docs/models/operations/queryparamexternalcustomeridfilter.md +22 -0
- package/docs/models/operations/queryparammeteridfilter.md +22 -0
- package/docs/models/operations/queryparamorderidfilter.md +22 -0
- package/docs/models/operations/queryparamorganizationid.md +21 -0
- package/docs/models/operations/queryparamorganizationidfilter.md +21 -0
- package/docs/models/operations/queryparamproductbillingtypefilter.md +19 -0
- package/docs/models/operations/queryparamproductidfilter.md +22 -0
- package/docs/models/operations/queryparamsourcefilter.md +19 -0
- package/docs/models/operations/queryparamstatusfilter.md +21 -0
- package/docs/models/operations/queryparamsubscriptionidfilter.md +22 -0
- package/docs/models/operations/refundidfilter.md +22 -0
- package/docs/models/operations/refundslistqueryparamcustomeridfilter.md +22 -0
- package/docs/models/operations/refundslistqueryparamorganizationidfilter.md +21 -0
- package/docs/models/operations/refundslistrequest.md +25 -0
- package/docs/models/operations/refundslistresponse.md +42 -0
- package/docs/models/operations/sourcefilter.md +19 -0
- package/docs/models/operations/statusfilter.md +21 -0
- package/docs/models/operations/subscriptionidfilter.md +22 -0
- package/docs/models/operations/subscriptionscreatesubscriptioncreate.md +23 -0
- package/docs/models/operations/subscriptionsexportrequest.md +17 -0
- package/docs/models/operations/subscriptionsgetrequest.md +17 -0
- package/docs/models/operations/subscriptionslistrequest.md +26 -0
- package/docs/models/operations/subscriptionslistresponse.md +23 -0
- package/docs/models/operations/subscriptionsrevokerequest.md +17 -0
- package/docs/models/operations/subscriptionsupdaterequest.md +21 -0
- package/docs/models/operations/walletsgetrequest.md +17 -0
- package/docs/models/operations/walletslistqueryparamcustomeridfilter.md +22 -0
- package/docs/models/operations/walletslistqueryparamorganizationidfilter.md +21 -0
- package/docs/models/operations/walletslistrequest.md +21 -0
- package/docs/models/operations/walletslistresponse.md +23 -0
- package/docs/models/operations/walletstopuprequest.md +22 -0
- package/docs/models/operations/webhooksdeletewebhookendpointrequest.md +17 -0
- package/docs/models/operations/webhooksgetwebhookendpointrequest.md +17 -0
- package/docs/models/operations/webhookslistwebhookdeliveriesrequest.md +19 -0
- package/docs/models/operations/webhookslistwebhookdeliveriesresponse.md +23 -0
- package/docs/models/operations/webhookslistwebhookendpointsrequest.md +19 -0
- package/docs/models/operations/webhookslistwebhookendpointsresponse.md +35 -0
- package/docs/models/operations/webhooksredeliverwebhookeventrequest.md +17 -0
- package/docs/models/operations/webhooksresetwebhookendpointsecretrequest.md +17 -0
- package/docs/models/operations/webhooksupdatewebhookendpointrequest.md +21 -0
- package/docs/sdks/benefitgrants/README.md +88 -0
- package/docs/sdks/benefits/README.md +500 -0
- package/docs/sdks/checkoutlinks/README.md +407 -0
- package/docs/sdks/checkouts/README.md +600 -0
- package/docs/sdks/clients/README.md +331 -0
- package/docs/sdks/customermeters/README.md +166 -0
- package/docs/sdks/customers/README.md +1036 -0
- package/docs/sdks/customerseats/README.md +441 -0
- package/docs/sdks/customersession/README.md +79 -0
- package/docs/sdks/customersessions/README.md +84 -0
- package/docs/sdks/customfields/README.md +417 -0
- package/docs/sdks/discounts/README.md +409 -0
- package/docs/sdks/downloadables/README.md +83 -0
- package/docs/sdks/events/README.md +324 -0
- package/docs/sdks/files/README.md +460 -0
- package/docs/sdks/licensekeys/README.md +576 -0
- package/docs/sdks/meters/README.md +437 -0
- package/docs/sdks/metrics/README.md +165 -0
- package/docs/sdks/oauth2/README.md +371 -0
- package/docs/sdks/orders/README.md +489 -0
- package/docs/sdks/organizations/README.md +322 -0
- package/docs/sdks/payments/README.md +166 -0
- package/docs/sdks/polarbenefitgrants/README.md +250 -0
- package/docs/sdks/polarcustomermeters/README.md +164 -0
- package/docs/sdks/polarcustomers/README.md +482 -0
- package/docs/sdks/polarlicensekeys/README.md +406 -0
- package/docs/sdks/polarorders/README.md +574 -0
- package/docs/sdks/polarorganizations/README.md +79 -0
- package/docs/sdks/polarsubscriptions/README.md +326 -0
- package/docs/sdks/polarwallets/README.md +164 -0
- package/docs/sdks/products/README.md +441 -0
- package/docs/sdks/refunds/README.md +171 -0
- package/docs/sdks/seats/README.md +379 -0
- package/docs/sdks/subscriptions/README.md +493 -0
- package/docs/sdks/wallets/README.md +256 -0
- package/docs/sdks/webhooks/README.md +650 -0
- package/docs/types/rfcdate.md +11 -0
- package/eslint.config.mjs +22 -0
- package/examples/.env.template +14 -0
- package/examples/README.md +31 -0
- package/examples/core copy.ts +13 -0
- package/examples/core.ts +13 -0
- package/examples/funcs/benefitGrantsList.ts +261 -0
- package/examples/funcs/benefitsCreate.ts +181 -0
- package/examples/funcs/benefitsDelete.ts +204 -0
- package/examples/funcs/benefitsGet.ts +195 -0
- package/examples/funcs/benefitsGrants.ts +277 -0
- package/examples/funcs/benefitsList.ts +270 -0
- package/examples/funcs/benefitsUpdate.ts +196 -0
- package/examples/funcs/checkoutLinksCreate.ts +181 -0
- package/examples/funcs/checkoutLinksDelete.ts +192 -0
- package/examples/funcs/checkoutLinksGet.ts +195 -0
- package/examples/funcs/checkoutLinksList.ts +260 -0
- package/examples/funcs/checkoutLinksUpdate.ts +198 -0
- package/examples/funcs/checkoutsClientConfirm.ts +224 -0
- package/examples/funcs/checkoutsClientGet.ts +195 -0
- package/examples/funcs/checkoutsClientUpdate.ts +206 -0
- package/examples/funcs/checkoutsCreate.ts +181 -0
- package/examples/funcs/checkoutsGet.ts +195 -0
- package/examples/funcs/checkoutsList.ts +263 -0
- package/examples/funcs/checkoutsUpdate.ts +204 -0
- package/examples/funcs/customFieldsCreate.ts +181 -0
- package/examples/funcs/customFieldsDelete.ts +192 -0
- package/examples/funcs/customFieldsGet.ts +195 -0
- package/examples/funcs/customFieldsList.ts +261 -0
- package/examples/funcs/customFieldsUpdate.ts +196 -0
- package/examples/funcs/customerMetersGet.ts +195 -0
- package/examples/funcs/customerMetersList.ts +262 -0
- package/examples/funcs/customerPortalBenefitGrantsGet.ts +208 -0
- package/examples/funcs/customerPortalBenefitGrantsList.ts +277 -0
- package/examples/funcs/customerPortalBenefitGrantsUpdate.ts +219 -0
- package/examples/funcs/customerPortalCustomerMetersGet.ts +206 -0
- package/examples/funcs/customerPortalCustomerMetersList.ts +274 -0
- package/examples/funcs/customerPortalCustomerSessionIntrospect.ts +157 -0
- package/examples/funcs/customerPortalCustomersAddPaymentMethod.ts +191 -0
- package/examples/funcs/customerPortalCustomersConfirmPaymentMethod.ts +201 -0
- package/examples/funcs/customerPortalCustomersDeletePaymentMethod.ts +215 -0
- package/examples/funcs/customerPortalCustomersGet.ts +157 -0
- package/examples/funcs/customerPortalCustomersListPaymentMethods.ts +275 -0
- package/examples/funcs/customerPortalCustomersUpdate.ts +191 -0
- package/examples/funcs/customerPortalDownloadablesList.ts +270 -0
- package/examples/funcs/customerPortalLicenseKeysActivate.ts +194 -0
- package/examples/funcs/customerPortalLicenseKeysDeactivate.ts +183 -0
- package/examples/funcs/customerPortalLicenseKeysGet.ts +205 -0
- package/examples/funcs/customerPortalLicenseKeysList.ts +287 -0
- package/examples/funcs/customerPortalLicenseKeysValidate.ts +186 -0
- package/examples/funcs/customerPortalOrdersConfirmRetryPayment.ts +221 -0
- package/examples/funcs/customerPortalOrdersGenerateInvoice.ts +200 -0
- package/examples/funcs/customerPortalOrdersGet.ts +205 -0
- package/examples/funcs/customerPortalOrdersGetPaymentStatus.ts +208 -0
- package/examples/funcs/customerPortalOrdersInvoice.ts +207 -0
- package/examples/funcs/customerPortalOrdersList.ts +275 -0
- package/examples/funcs/customerPortalOrdersUpdate.ts +208 -0
- package/examples/funcs/customerPortalOrganizationsGet.ts +190 -0
- package/examples/funcs/customerPortalSeatsAssignSeat.ts +189 -0
- package/examples/funcs/customerPortalSeatsListClaimedSubscriptions.ts +158 -0
- package/examples/funcs/customerPortalSeatsListSeats.ts +194 -0
- package/examples/funcs/customerPortalSeatsResendInvitation.ts +198 -0
- package/examples/funcs/customerPortalSeatsRevokeSeat.ts +195 -0
- package/examples/funcs/customerPortalSubscriptionsCancel.ts +214 -0
- package/examples/funcs/customerPortalSubscriptionsGet.ts +206 -0
- package/examples/funcs/customerPortalSubscriptionsList.ts +275 -0
- package/examples/funcs/customerPortalSubscriptionsUpdate.ts +217 -0
- package/examples/funcs/customerPortalWalletsGet.ts +205 -0
- package/examples/funcs/customerPortalWalletsList.ts +271 -0
- package/examples/funcs/customerSeatsAssignSeat.ts +179 -0
- package/examples/funcs/customerSeatsClaimSeat.ts +170 -0
- package/examples/funcs/customerSeatsGetClaimInfo.ts +179 -0
- package/examples/funcs/customerSeatsListSeats.ts +184 -0
- package/examples/funcs/customerSeatsResendInvitation.ts +185 -0
- package/examples/funcs/customerSeatsRevokeSeat.ts +185 -0
- package/examples/funcs/customerSessionsCreate.ts +182 -0
- package/examples/funcs/customersCreate.ts +181 -0
- package/examples/funcs/customersDelete.ts +204 -0
- package/examples/funcs/customersDeleteExternal.ts +194 -0
- package/examples/funcs/customersExport.ts +182 -0
- package/examples/funcs/customersGet.ts +195 -0
- package/examples/funcs/customersGetBalance.ts +195 -0
- package/examples/funcs/customersGetExternal.ts +195 -0
- package/examples/funcs/customersGetState.ts +201 -0
- package/examples/funcs/customersGetStateExternal.ts +203 -0
- package/examples/funcs/customersList.ts +270 -0
- package/examples/funcs/customersUpdate.ts +196 -0
- package/examples/funcs/customersUpdateExternal.ts +198 -0
- package/examples/funcs/discountsCreate.ts +181 -0
- package/examples/funcs/discountsDelete.ts +192 -0
- package/examples/funcs/discountsGet.ts +195 -0
- package/examples/funcs/discountsList.ts +260 -0
- package/examples/funcs/discountsUpdate.ts +196 -0
- package/examples/funcs/eventsGet.ts +192 -0
- package/examples/funcs/eventsIngest.ts +181 -0
- package/examples/funcs/eventsList.ts +277 -0
- package/examples/funcs/eventsListNames.ts +263 -0
- package/examples/funcs/filesCreate.ts +181 -0
- package/examples/funcs/filesDelete.ts +200 -0
- package/examples/funcs/filesList.ts +259 -0
- package/examples/funcs/filesUpdate.ts +202 -0
- package/examples/funcs/filesUploaded.ts +204 -0
- package/examples/funcs/licenseKeysActivate.ts +197 -0
- package/examples/funcs/licenseKeysDeactivate.ts +186 -0
- package/examples/funcs/licenseKeysGet.ts +203 -0
- package/examples/funcs/licenseKeysGetActivation.ts +209 -0
- package/examples/funcs/licenseKeysList.ts +277 -0
- package/examples/funcs/licenseKeysUpdate.ts +204 -0
- package/examples/funcs/licenseKeysValidate.ts +189 -0
- package/examples/funcs/metersCreate.ts +178 -0
- package/examples/funcs/metersGet.ts +192 -0
- package/examples/funcs/metersList.ts +270 -0
- package/examples/funcs/metersQuantities.ts +215 -0
- package/examples/funcs/metersUpdate.ts +193 -0
- package/examples/funcs/metricsGet.ts +194 -0
- package/examples/funcs/metricsLimits.ts +147 -0
- package/examples/funcs/oauth2Authorize.ts +142 -0
- package/examples/funcs/oauth2ClientsCreate.ts +176 -0
- package/examples/funcs/oauth2ClientsDelete.ts +183 -0
- package/examples/funcs/oauth2ClientsGet.ts +182 -0
- package/examples/funcs/oauth2ClientsUpdate.ts +186 -0
- package/examples/funcs/oauth2Introspect.ts +164 -0
- package/examples/funcs/oauth2Revoke.ts +164 -0
- package/examples/funcs/oauth2Token.ts +164 -0
- package/examples/funcs/oauth2Userinfo.ts +145 -0
- package/examples/funcs/ordersExport.ts +183 -0
- package/examples/funcs/ordersGenerateInvoice.ts +187 -0
- package/examples/funcs/ordersGet.ts +192 -0
- package/examples/funcs/ordersInvoice.ts +195 -0
- package/examples/funcs/ordersList.ts +273 -0
- package/examples/funcs/ordersUpdate.ts +193 -0
- package/examples/funcs/organizationsCreate.ts +181 -0
- package/examples/funcs/organizationsGet.ts +195 -0
- package/examples/funcs/organizationsList.ts +259 -0
- package/examples/funcs/organizationsUpdate.ts +206 -0
- package/examples/funcs/paymentsGet.ts +195 -0
- package/examples/funcs/paymentsList.ts +264 -0
- package/examples/funcs/productsCreate.ts +181 -0
- package/examples/funcs/productsGet.ts +195 -0
- package/examples/funcs/productsList.ts +273 -0
- package/examples/funcs/productsUpdate.ts +204 -0
- package/examples/funcs/productsUpdateBenefits.ts +206 -0
- package/examples/funcs/refundsCreate.ts +195 -0
- package/examples/funcs/refundsList.ts +264 -0
- package/examples/funcs/subscriptionsCreate.ts +187 -0
- package/examples/funcs/subscriptionsExport.ts +182 -0
- package/examples/funcs/subscriptionsGet.ts +195 -0
- package/examples/funcs/subscriptionsList.ts +273 -0
- package/examples/funcs/subscriptionsRevoke.ts +211 -0
- package/examples/funcs/subscriptionsUpdate.ts +214 -0
- package/examples/funcs/walletsGet.ts +192 -0
- package/examples/funcs/walletsList.ts +260 -0
- package/examples/funcs/walletsTopUp.ts +212 -0
- package/examples/funcs/webhooksCreateWebhookEndpoint.ts +181 -0
- package/examples/funcs/webhooksDeleteWebhookEndpoint.ts +192 -0
- package/examples/funcs/webhooksGetWebhookEndpoint.ts +195 -0
- package/examples/funcs/webhooksListWebhookDeliveries.ts +264 -0
- package/examples/funcs/webhooksListWebhookEndpoints.ts +260 -0
- package/examples/funcs/webhooksRedeliverWebhookEvent.ts +192 -0
- package/examples/funcs/webhooksResetWebhookEndpointSecret.ts +196 -0
- package/examples/funcs/webhooksUpdateWebhookEndpoint.ts +198 -0
- package/examples/hooks/hooks.ts +132 -0
- package/examples/hooks/registration.ts +14 -0
- package/examples/hooks/types.ts +114 -0
- package/examples/lib/base64.ts +37 -0
- package/examples/lib/config.ts +70 -0
- package/examples/lib/dlv.ts +53 -0
- package/examples/lib/encodings.ts +483 -0
- package/examples/lib/env.ts +57 -0
- package/examples/lib/files.ts +82 -0
- package/examples/lib/http.ts +323 -0
- package/examples/lib/is-plain-object.ts +43 -0
- package/examples/lib/logger.ts +9 -0
- package/examples/lib/matchers.ts +345 -0
- package/examples/lib/primitives.ts +150 -0
- package/examples/lib/retries.ts +218 -0
- package/examples/lib/schemas.ts +91 -0
- package/examples/lib/sdks.ts +407 -0
- package/examples/lib/security.ts +264 -0
- package/examples/lib/url.ts +33 -0
- package/examples/models/components/address.ts +363 -0
- package/examples/models/components/addressdict.ts +91 -0
- package/examples/models/components/addressinput.ts +361 -0
- package/examples/models/components/aggregationfunction.ts +37 -0
- package/examples/models/components/attachedcustomfield.ts +107 -0
- package/examples/models/components/attachedcustomfieldcreate.ts +88 -0
- package/examples/models/components/authorizationcodetokenrequest.ts +99 -0
- package/examples/models/components/authorizeorganization.ts +83 -0
- package/examples/models/components/authorizeresponseorganization.ts +106 -0
- package/examples/models/components/authorizeresponseuser.ts +100 -0
- package/examples/models/components/authorizeuser.ts +79 -0
- package/examples/models/components/benefit.ts +113 -0
- package/examples/models/components/benefitcreate.ts +164 -0
- package/examples/models/components/benefitcustom.ts +204 -0
- package/examples/models/components/benefitcustomcreate.ts +184 -0
- package/examples/models/components/benefitcustomcreateproperties.ts +71 -0
- package/examples/models/components/benefitcustomproperties.ts +69 -0
- package/examples/models/components/benefitcustomsubscriber.ts +221 -0
- package/examples/models/components/benefitcustomsubscriberproperties.ts +72 -0
- package/examples/models/components/benefitcustomupdate.ts +162 -0
- package/examples/models/components/benefitcycledevent.ts +150 -0
- package/examples/models/components/benefitdiscord.ts +208 -0
- package/examples/models/components/benefitdiscordcreate.ts +181 -0
- package/examples/models/components/benefitdiscordcreateproperties.ts +98 -0
- package/examples/models/components/benefitdiscordproperties.ts +105 -0
- package/examples/models/components/benefitdiscordsubscriber.ts +221 -0
- package/examples/models/components/benefitdiscordsubscriberproperties.ts +85 -0
- package/examples/models/components/benefitdiscordupdate.ts +164 -0
- package/examples/models/components/benefitdownloadables.ts +204 -0
- package/examples/models/components/benefitdownloadablescreate.ts +184 -0
- package/examples/models/components/benefitdownloadablescreateproperties.ts +75 -0
- package/examples/models/components/benefitdownloadablesproperties.ts +72 -0
- package/examples/models/components/benefitdownloadablessubscriber.ts +224 -0
- package/examples/models/components/benefitdownloadablessubscriberproperties.ts +86 -0
- package/examples/models/components/benefitdownloadablesupdate.ts +170 -0
- package/examples/models/components/benefitgithubrepository.ts +218 -0
- package/examples/models/components/benefitgithubrepositorycreate.ts +190 -0
- package/examples/models/components/benefitgithubrepositorycreateproperties.ts +149 -0
- package/examples/models/components/benefitgithubrepositoryproperties.ts +135 -0
- package/examples/models/components/benefitgithubrepositorysubscriber.ts +234 -0
- package/examples/models/components/benefitgithubrepositorysubscriberproperties.ts +103 -0
- package/examples/models/components/benefitgithubrepositoryupdate.ts +176 -0
- package/examples/models/components/benefitgrant.ts +328 -0
- package/examples/models/components/benefitgrantcustomproperties.ts +60 -0
- package/examples/models/components/benefitgrantcustomwebhook.ts +236 -0
- package/examples/models/components/benefitgrantdiscordproperties.ts +95 -0
- package/examples/models/components/benefitgrantdiscordwebhook.ts +236 -0
- package/examples/models/components/benefitgrantdownloadablesproperties.ts +71 -0
- package/examples/models/components/benefitgrantdownloadableswebhook.ts +233 -0
- package/examples/models/components/benefitgrantedevent.ts +150 -0
- package/examples/models/components/benefitgranterror.ts +74 -0
- package/examples/models/components/benefitgrantgithubrepositoryproperties.ts +140 -0
- package/examples/models/components/benefitgrantgithubrepositorywebhook.ts +246 -0
- package/examples/models/components/benefitgrantlicensekeysproperties.ts +84 -0
- package/examples/models/components/benefitgrantlicensekeyswebhook.ts +233 -0
- package/examples/models/components/benefitgrantmetadata.ts +92 -0
- package/examples/models/components/benefitgrantmetercreditproperties.ts +90 -0
- package/examples/models/components/benefitgrantmetercreditwebhook.ts +240 -0
- package/examples/models/components/benefitgrantsortproperty.ts +39 -0
- package/examples/models/components/benefitgrantwebhook.ts +120 -0
- package/examples/models/components/benefitlicensekeyactivationcreateproperties.ts +92 -0
- package/examples/models/components/benefitlicensekeyactivationproperties.ts +84 -0
- package/examples/models/components/benefitlicensekeyexpirationproperties.ts +102 -0
- package/examples/models/components/benefitlicensekeys.ts +202 -0
- package/examples/models/components/benefitlicensekeyscreate.ts +182 -0
- package/examples/models/components/benefitlicensekeyscreateproperties.ts +112 -0
- package/examples/models/components/benefitlicensekeysproperties.ts +101 -0
- package/examples/models/components/benefitlicensekeyssubscriber.ts +223 -0
- package/examples/models/components/benefitlicensekeyssubscriberproperties.ts +105 -0
- package/examples/models/components/benefitlicensekeysupdate.ts +168 -0
- package/examples/models/components/benefitmetercredit.ts +212 -0
- package/examples/models/components/benefitmetercreditcreate.ts +188 -0
- package/examples/models/components/benefitmetercreditcreateproperties.ts +90 -0
- package/examples/models/components/benefitmetercreditproperties.ts +88 -0
- package/examples/models/components/benefitmetercreditsubscriber.ts +226 -0
- package/examples/models/components/benefitmetercreditsubscriberproperties.ts +92 -0
- package/examples/models/components/benefitmetercreditupdate.ts +168 -0
- package/examples/models/components/benefitpublic.ts +131 -0
- package/examples/models/components/benefitrevokedevent.ts +150 -0
- package/examples/models/components/benefitsortproperty.ts +37 -0
- package/examples/models/components/benefittype.ts +35 -0
- package/examples/models/components/benefitupdatedevent.ts +150 -0
- package/examples/models/components/billingaddressfieldmode.ts +36 -0
- package/examples/models/components/cardpayment.ts +203 -0
- package/examples/models/components/cardpaymentmetadata.ts +79 -0
- package/examples/models/components/checkout.ts +948 -0
- package/examples/models/components/checkoutbillingaddressfields.ts +102 -0
- package/examples/models/components/checkoutconfirmstripe.ts +267 -0
- package/examples/models/components/checkoutcreate.ts +506 -0
- package/examples/models/components/checkoutdiscountfixedonceforeverduration.ts +117 -0
- package/examples/models/components/checkoutdiscountfixedrepeatduration.ts +127 -0
- package/examples/models/components/checkoutdiscountpercentageonceforeverduration.ts +127 -0
- package/examples/models/components/checkoutdiscountpercentagerepeatduration.ts +134 -0
- package/examples/models/components/checkoutlink.ts +382 -0
- package/examples/models/components/checkoutlinkcreate.ts +90 -0
- package/examples/models/components/checkoutlinkcreateproduct.ts +241 -0
- package/examples/models/components/checkoutlinkcreateproductprice.ts +246 -0
- package/examples/models/components/checkoutlinkcreateproducts.ts +239 -0
- package/examples/models/components/checkoutlinkproduct.ts +365 -0
- package/examples/models/components/checkoutlinksortproperty.ts +41 -0
- package/examples/models/components/checkoutlinkupdate.ts +219 -0
- package/examples/models/components/checkoutproduct.ts +297 -0
- package/examples/models/components/checkoutpublic.ts +802 -0
- package/examples/models/components/checkoutpublicconfirmed.ts +827 -0
- package/examples/models/components/checkoutsortproperty.ts +37 -0
- package/examples/models/components/checkoutstatus.ts +36 -0
- package/examples/models/components/checkoutupdate.ts +485 -0
- package/examples/models/components/checkoutupdatepublic.ts +258 -0
- package/examples/models/components/costmetadatainput.ts +122 -0
- package/examples/models/components/costmetadataoutput.ts +76 -0
- package/examples/models/components/countaggregation.ts +66 -0
- package/examples/models/components/customer.ts +284 -0
- package/examples/models/components/customerbalance.ts +77 -0
- package/examples/models/components/customerbenefitgrant.ts +120 -0
- package/examples/models/components/customerbenefitgrantcustom.ts +178 -0
- package/examples/models/components/customerbenefitgrantcustomupdate.ts +77 -0
- package/examples/models/components/customerbenefitgrantdiscord.ts +180 -0
- package/examples/models/components/customerbenefitgrantdiscordpropertiesupdate.ts +88 -0
- package/examples/models/components/customerbenefitgrantdiscordupdate.ts +88 -0
- package/examples/models/components/customerbenefitgrantdownloadables.ts +181 -0
- package/examples/models/components/customerbenefitgrantdownloadablesupdate.ts +86 -0
- package/examples/models/components/customerbenefitgrantgithubrepository.ts +183 -0
- package/examples/models/components/customerbenefitgrantgithubrepositorypropertiesupdate.ts +89 -0
- package/examples/models/components/customerbenefitgrantgithubrepositoryupdate.ts +97 -0
- package/examples/models/components/customerbenefitgrantlicensekeys.ts +180 -0
- package/examples/models/components/customerbenefitgrantlicensekeysupdate.ts +80 -0
- package/examples/models/components/customerbenefitgrantmetercredit.ts +180 -0
- package/examples/models/components/customerbenefitgrantmetercreditupdate.ts +80 -0
- package/examples/models/components/customerbenefitgrantsortproperty.ts +39 -0
- package/examples/models/components/customerbenefitgrantupdate.ts +178 -0
- package/examples/models/components/customercancellationreason.ts +41 -0
- package/examples/models/components/customercreate.ts +251 -0
- package/examples/models/components/customercreatedevent.ts +150 -0
- package/examples/models/components/customercreatedmetadata.ts +93 -0
- package/examples/models/components/customercustomermeter.ts +149 -0
- package/examples/models/components/customercustomermetermeter.ts +103 -0
- package/examples/models/components/customercustomermetersortproperty.ts +48 -0
- package/examples/models/components/customercustomersession.ts +81 -0
- package/examples/models/components/customerdeletedevent.ts +150 -0
- package/examples/models/components/customerdeletedmetadata.ts +93 -0
- package/examples/models/components/customermeter.ts +161 -0
- package/examples/models/components/customermetersortproperty.ts +51 -0
- package/examples/models/components/customerorder.ts +341 -0
- package/examples/models/components/customerorderconfirmpayment.ts +103 -0
- package/examples/models/components/customerorderinvoice.ts +72 -0
- package/examples/models/components/customerorderpaymentconfirmation.ts +97 -0
- package/examples/models/components/customerorderpaymentstatus.ts +79 -0
- package/examples/models/components/customerorderproduct.ts +308 -0
- package/examples/models/components/customerordersortproperty.ts +43 -0
- package/examples/models/components/customerordersubscription.ts +297 -0
- package/examples/models/components/customerorderupdate.ts +96 -0
- package/examples/models/components/customerorganization.ts +85 -0
- package/examples/models/components/customerpaymentmethod.ts +78 -0
- package/examples/models/components/customerpaymentmethodconfirm.ts +83 -0
- package/examples/models/components/customerpaymentmethodcreate.ts +89 -0
- package/examples/models/components/customerpaymentmethodcreaterequiresactionresponse.ts +93 -0
- package/examples/models/components/customerpaymentmethodcreateresponse.ts +107 -0
- package/examples/models/components/customerpaymentmethodcreatesucceededresponse.ts +98 -0
- package/examples/models/components/customerportalcustomer.ts +213 -0
- package/examples/models/components/customerportalcustomerupdate.ts +95 -0
- package/examples/models/components/customerportaloauthaccount.ts +81 -0
- package/examples/models/components/customerproduct.ts +297 -0
- package/examples/models/components/customerseat.ts +180 -0
- package/examples/models/components/customerseatclaimresponse.ts +91 -0
- package/examples/models/components/customersession.ts +138 -0
- package/examples/models/components/customersessioncustomerexternalidcreate.ts +101 -0
- package/examples/models/components/customersessioncustomeridcreate.ts +92 -0
- package/examples/models/components/customersortproperty.ts +37 -0
- package/examples/models/components/customerstate.ts +339 -0
- package/examples/models/components/customerstatebenefitgrant.ts +322 -0
- package/examples/models/components/customerstatemeter.ts +133 -0
- package/examples/models/components/customerstatesubscription.ts +450 -0
- package/examples/models/components/customerstatesubscriptionmeter.ts +135 -0
- package/examples/models/components/customersubscription.ts +418 -0
- package/examples/models/components/customersubscriptioncancel.ts +118 -0
- package/examples/models/components/customersubscriptionmeter.ts +140 -0
- package/examples/models/components/customersubscriptionmetermeter.ts +105 -0
- package/examples/models/components/customersubscriptionproduct.ts +313 -0
- package/examples/models/components/customersubscriptionsortproperty.ts +43 -0
- package/examples/models/components/customersubscriptionupdate.ts +90 -0
- package/examples/models/components/customersubscriptionupdateproduct.ts +81 -0
- package/examples/models/components/customersubscriptionupdateseats.ts +94 -0
- package/examples/models/components/customerupdate.ts +242 -0
- package/examples/models/components/customerupdatedevent.ts +150 -0
- package/examples/models/components/customerupdatedfields.ts +155 -0
- package/examples/models/components/customerupdatedmetadata.ts +105 -0
- package/examples/models/components/customerupdateexternalid.ts +245 -0
- package/examples/models/components/customerwallet.ts +122 -0
- package/examples/models/components/customerwalletsortproperty.ts +37 -0
- package/examples/models/components/customfield.ts +138 -0
- package/examples/models/components/customfieldcheckbox.ts +200 -0
- package/examples/models/components/customfieldcheckboxproperties.ts +89 -0
- package/examples/models/components/customfieldcreate.ts +142 -0
- package/examples/models/components/customfieldcreatecheckbox.ts +193 -0
- package/examples/models/components/customfieldcreatedate.ts +188 -0
- package/examples/models/components/customfieldcreatenumber.ts +192 -0
- package/examples/models/components/customfieldcreateselect.ts +192 -0
- package/examples/models/components/customfieldcreatetext.ts +188 -0
- package/examples/models/components/customfielddate.ts +196 -0
- package/examples/models/components/customfielddateproperties.ts +95 -0
- package/examples/models/components/customfieldnumber.ts +198 -0
- package/examples/models/components/customfieldnumberproperties.ts +97 -0
- package/examples/models/components/customfieldselect.ts +198 -0
- package/examples/models/components/customfieldselectoption.ts +70 -0
- package/examples/models/components/customfieldselectproperties.ts +99 -0
- package/examples/models/components/customfieldsortproperty.ts +41 -0
- package/examples/models/components/customfieldtext.ts +196 -0
- package/examples/models/components/customfieldtextproperties.ts +103 -0
- package/examples/models/components/customfieldtype.ts +36 -0
- package/examples/models/components/customfieldupdate.ts +142 -0
- package/examples/models/components/customfieldupdatecheckbox.ts +173 -0
- package/examples/models/components/customfieldupdatedate.ts +166 -0
- package/examples/models/components/customfieldupdatenumber.ts +170 -0
- package/examples/models/components/customfieldupdateselect.ts +170 -0
- package/examples/models/components/customfieldupdatetext.ts +166 -0
- package/examples/models/components/discount.ts +96 -0
- package/examples/models/components/discountcreate.ts +96 -0
- package/examples/models/components/discountduration.ts +34 -0
- package/examples/models/components/discountfixedonceforeverduration.ts +277 -0
- package/examples/models/components/discountfixedonceforeverdurationbase.ts +269 -0
- package/examples/models/components/discountfixedonceforeverdurationcreate.ts +263 -0
- package/examples/models/components/discountfixedrepeatduration.ts +280 -0
- package/examples/models/components/discountfixedrepeatdurationbase.ts +270 -0
- package/examples/models/components/discountfixedrepeatdurationcreate.ts +275 -0
- package/examples/models/components/discountpercentageonceforeverduration.ts +283 -0
- package/examples/models/components/discountpercentageonceforeverdurationbase.ts +278 -0
- package/examples/models/components/discountpercentageonceforeverdurationcreate.ts +270 -0
- package/examples/models/components/discountpercentagerepeatduration.ts +287 -0
- package/examples/models/components/discountpercentagerepeatdurationbase.ts +276 -0
- package/examples/models/components/discountpercentagerepeatdurationcreate.ts +280 -0
- package/examples/models/components/discountproduct.ts +246 -0
- package/examples/models/components/discountsortproperty.ts +39 -0
- package/examples/models/components/discounttype.ts +31 -0
- package/examples/models/components/discountupdate.ts +229 -0
- package/examples/models/components/downloadablefilecreate.ts +116 -0
- package/examples/models/components/downloadablefileread.ts +161 -0
- package/examples/models/components/downloadableread.ts +89 -0
- package/examples/models/components/event.ts +63 -0
- package/examples/models/components/eventcreatecustomer.ts +112 -0
- package/examples/models/components/eventcreateexternalcustomer.ts +114 -0
- package/examples/models/components/eventmetadatainput.ts +96 -0
- package/examples/models/components/eventmetadataoutput.ts +96 -0
- package/examples/models/components/eventname.ts +106 -0
- package/examples/models/components/eventnamessortproperty.ts +39 -0
- package/examples/models/components/eventsingest.ts +140 -0
- package/examples/models/components/eventsingestresponse.ts +69 -0
- package/examples/models/components/eventsortproperty.ts +33 -0
- package/examples/models/components/eventsource.ts +31 -0
- package/examples/models/components/existingproductprice.ts +73 -0
- package/examples/models/components/filecreate.ts +110 -0
- package/examples/models/components/filedownload.ts +163 -0
- package/examples/models/components/filepatch.ts +66 -0
- package/examples/models/components/fileservicetypes.ts +34 -0
- package/examples/models/components/fileupload.ts +163 -0
- package/examples/models/components/fileuploadcompleted.ts +80 -0
- package/examples/models/components/filter.ts +121 -0
- package/examples/models/components/filterclause.ts +118 -0
- package/examples/models/components/filterconjunction.ts +33 -0
- package/examples/models/components/filteroperator.ts +39 -0
- package/examples/models/components/genericpayment.ts +188 -0
- package/examples/models/components/introspecttokenrequest.ts +125 -0
- package/examples/models/components/introspecttokenresponse.ts +146 -0
- package/examples/models/components/legacyrecurringproductprice.ts +116 -0
- package/examples/models/components/legacyrecurringproductpricecustom.ts +188 -0
- package/examples/models/components/legacyrecurringproductpricefixed.ts +169 -0
- package/examples/models/components/legacyrecurringproductpricefree.ts +151 -0
- package/examples/models/components/licensekeyactivate.ts +239 -0
- package/examples/models/components/licensekeyactivationbase.ts +145 -0
- package/examples/models/components/licensekeyactivationread.ts +173 -0
- package/examples/models/components/licensekeycustomer.ts +293 -0
- package/examples/models/components/licensekeydeactivate.ts +85 -0
- package/examples/models/components/licensekeyread.ts +178 -0
- package/examples/models/components/licensekeystatus.ts +34 -0
- package/examples/models/components/licensekeyupdate.ts +102 -0
- package/examples/models/components/licensekeyvalidate.ts +172 -0
- package/examples/models/components/licensekeywithactivations.ts +192 -0
- package/examples/models/components/listresource.ts +78 -0
- package/examples/models/components/listresourcebenefit.ts +82 -0
- package/examples/models/components/listresourcebenefitgrant.ts +82 -0
- package/examples/models/components/listresourcecheckout.ts +82 -0
- package/examples/models/components/listresourcecheckoutlink.ts +82 -0
- package/examples/models/components/listresourcecustomer.ts +82 -0
- package/examples/models/components/listresourcecustomerbenefitgrant.ts +84 -0
- package/examples/models/components/listresourcecustomercustomermeter.ts +85 -0
- package/examples/models/components/listresourcecustomermeter.ts +82 -0
- package/examples/models/components/listresourcecustomerorder.ts +82 -0
- package/examples/models/components/listresourcecustomerpaymentmethod.ts +85 -0
- package/examples/models/components/listresourcecustomersubscription.ts +84 -0
- package/examples/models/components/listresourcecustomerwallet.ts +82 -0
- package/examples/models/components/listresourcecustomfield.ts +82 -0
- package/examples/models/components/listresourcediscount.ts +82 -0
- package/examples/models/components/listresourcedownloadableread.ts +84 -0
- package/examples/models/components/listresourceevent.ts +82 -0
- package/examples/models/components/listresourceeventname.ts +82 -0
- package/examples/models/components/listresourcefileread.ts +222 -0
- package/examples/models/components/listresourcelicensekeyread.ts +82 -0
- package/examples/models/components/listresourcemeter.ts +82 -0
- package/examples/models/components/listresourceorder.ts +82 -0
- package/examples/models/components/listresourceorganization.ts +82 -0
- package/examples/models/components/listresourceproduct.ts +82 -0
- package/examples/models/components/listresourcerefund.ts +82 -0
- package/examples/models/components/listresourcesubscription.ts +82 -0
- package/examples/models/components/listresourcewallet.ts +82 -0
- package/examples/models/components/listresourcewebhookdelivery.ts +84 -0
- package/examples/models/components/listresourcewebhookendpoint.ts +84 -0
- package/examples/models/components/llmmetadata.ts +129 -0
- package/examples/models/components/meter.ts +380 -0
- package/examples/models/components/metercreate.ts +354 -0
- package/examples/models/components/metercreditedmetadata.ts +83 -0
- package/examples/models/components/metercreditevent.ts +150 -0
- package/examples/models/components/meterquantities.ts +77 -0
- package/examples/models/components/meterquantity.ts +72 -0
- package/examples/models/components/meterresetevent.ts +148 -0
- package/examples/models/components/meterresetmetadata.ts +75 -0
- package/examples/models/components/metersortproperty.ts +35 -0
- package/examples/models/components/meterupdate.ts +374 -0
- package/examples/models/components/metric.ts +90 -0
- package/examples/models/components/metricperiod.ts +2298 -0
- package/examples/models/components/metrics.ts +425 -0
- package/examples/models/components/metricsintervallimit.ts +81 -0
- package/examples/models/components/metricsintervalslimits.ts +106 -0
- package/examples/models/components/metricslimits.ts +91 -0
- package/examples/models/components/metricsresponse.ts +96 -0
- package/examples/models/components/metricstotals.ts +2538 -0
- package/examples/models/components/metrictype.ts +33 -0
- package/examples/models/components/oauth2clientconfiguration.ts +202 -0
- package/examples/models/components/oauth2clientconfigurationupdate.ts +224 -0
- package/examples/models/components/oauth2clientpublic.ts +125 -0
- package/examples/models/components/order.ts +608 -0
- package/examples/models/components/orderbillingreason.ts +35 -0
- package/examples/models/components/ordercustomer.ts +285 -0
- package/examples/models/components/orderinvoice.ts +68 -0
- package/examples/models/components/orderitemschema.ts +136 -0
- package/examples/models/components/orderpaidevent.ts +146 -0
- package/examples/models/components/orderpaidmetadata.ts +87 -0
- package/examples/models/components/orderproduct.ts +237 -0
- package/examples/models/components/orderrefundedevent.ts +150 -0
- package/examples/models/components/orderrefundedmetadata.ts +89 -0
- package/examples/models/components/ordersortproperty.ts +49 -0
- package/examples/models/components/orderstatus.ts +33 -0
- package/examples/models/components/ordersubscription.ts +359 -0
- package/examples/models/components/orderupdate.ts +92 -0
- package/examples/models/components/organization.ts +213 -0
- package/examples/models/components/organizationavatarfilecreate.ts +124 -0
- package/examples/models/components/organizationavatarfileread.ts +167 -0
- package/examples/models/components/organizationcreate.ts +195 -0
- package/examples/models/components/organizationcustomeremailsettings.ts +120 -0
- package/examples/models/components/organizationdetails.ts +168 -0
- package/examples/models/components/organizationfeaturesettings.ts +107 -0
- package/examples/models/components/organizationnotificationsettings.ts +83 -0
- package/examples/models/components/organizationsociallink.ts +78 -0
- package/examples/models/components/organizationsocialplatforms.ts +41 -0
- package/examples/models/components/organizationsortproperty.ts +43 -0
- package/examples/models/components/organizationstatus.ts +36 -0
- package/examples/models/components/organizationsubscriptionsettings.ts +100 -0
- package/examples/models/components/organizationupdate.ts +191 -0
- package/examples/models/components/pagination.ts +77 -0
- package/examples/models/components/payment.ts +63 -0
- package/examples/models/components/paymentmethodcard.ts +127 -0
- package/examples/models/components/paymentmethodcardmetadata.ts +93 -0
- package/examples/models/components/paymentmethodgeneric.ts +115 -0
- package/examples/models/components/paymentprocessor.ts +32 -0
- package/examples/models/components/paymentsortproperty.ts +39 -0
- package/examples/models/components/paymentstatus.ts +34 -0
- package/examples/models/components/product.ts +358 -0
- package/examples/models/components/productbenefitsupdate.ts +72 -0
- package/examples/models/components/productbillingtype.ts +33 -0
- package/examples/models/components/productcreate.ts +74 -0
- package/examples/models/components/productcreateonetime.ts +432 -0
- package/examples/models/components/productcreaterecurring.ts +459 -0
- package/examples/models/components/productmediafilecreate.ts +122 -0
- package/examples/models/components/productmediafileread.ts +167 -0
- package/examples/models/components/productprice.ts +146 -0
- package/examples/models/components/productpricecustom.ts +182 -0
- package/examples/models/components/productpricecustomcreate.ts +114 -0
- package/examples/models/components/productpricefixed.ts +164 -0
- package/examples/models/components/productpricefixedcreate.ts +96 -0
- package/examples/models/components/productpricefree.ts +146 -0
- package/examples/models/components/productpricefreecreate.ts +78 -0
- package/examples/models/components/productpricemeter.ts +79 -0
- package/examples/models/components/productpricemeteredunit.ts +195 -0
- package/examples/models/components/productpricemeteredunitcreate.ts +165 -0
- package/examples/models/components/productpriceseatbased.ts +170 -0
- package/examples/models/components/productpriceseatbasedcreate.ts +104 -0
- package/examples/models/components/productpriceseattier.ts +99 -0
- package/examples/models/components/productpriceseattiers.ts +78 -0
- package/examples/models/components/productpricetype.ts +33 -0
- package/examples/models/components/productsortproperty.ts +39 -0
- package/examples/models/components/productupdate.ts +589 -0
- package/examples/models/components/propertyaggregation.ts +99 -0
- package/examples/models/components/refreshtokenrequest.ts +93 -0
- package/examples/models/components/refund.ts +207 -0
- package/examples/models/components/refundcreate.ts +183 -0
- package/examples/models/components/refundreason.ts +35 -0
- package/examples/models/components/refundsortproperty.ts +35 -0
- package/examples/models/components/refundstatus.ts +33 -0
- package/examples/models/components/revoketokenrequest.ts +119 -0
- package/examples/models/components/revoketokenresponse.ts +58 -0
- package/examples/models/components/s3downloadurl.ts +79 -0
- package/examples/models/components/s3filecreatemultipart.ts +72 -0
- package/examples/models/components/s3filecreatepart.ts +91 -0
- package/examples/models/components/s3fileuploadcompletedpart.ts +85 -0
- package/examples/models/components/s3fileuploadmultipart.ts +80 -0
- package/examples/models/components/s3fileuploadpart.ts +105 -0
- package/examples/models/components/scope.ts +91 -0
- package/examples/models/components/seatassign.ts +133 -0
- package/examples/models/components/seatclaim.ts +74 -0
- package/examples/models/components/seatclaiminfo.ts +125 -0
- package/examples/models/components/seatslist.ts +96 -0
- package/examples/models/components/seatstatus.ts +32 -0
- package/examples/models/components/security.ts +71 -0
- package/examples/models/components/subscription.ts +679 -0
- package/examples/models/components/subscriptioncancel.ts +137 -0
- package/examples/models/components/subscriptioncreatecustomer.ts +175 -0
- package/examples/models/components/subscriptioncreateexternalcustomer.ts +185 -0
- package/examples/models/components/subscriptioncustomer.ts +288 -0
- package/examples/models/components/subscriptioncycledevent.ts +150 -0
- package/examples/models/components/subscriptioncycledmetadata.ts +75 -0
- package/examples/models/components/subscriptionmeter.ts +143 -0
- package/examples/models/components/subscriptionproductupdatedevent.ts +152 -0
- package/examples/models/components/subscriptionproductupdatedmetadata.ts +91 -0
- package/examples/models/components/subscriptionprorationbehavior.ts +35 -0
- package/examples/models/components/subscriptionrecurringinterval.ts +37 -0
- package/examples/models/components/subscriptionrevoke.ts +131 -0
- package/examples/models/components/subscriptionrevokedevent.ts +150 -0
- package/examples/models/components/subscriptionrevokedmetadata.ts +77 -0
- package/examples/models/components/subscriptionslist.ts +80 -0
- package/examples/models/components/subscriptionsortproperty.ts +47 -0
- package/examples/models/components/subscriptionstatus.ts +38 -0
- package/examples/models/components/subscriptionupdate.ts +120 -0
- package/examples/models/components/subscriptionupdatediscount.ts +78 -0
- package/examples/models/components/subscriptionupdateproduct.ts +94 -0
- package/examples/models/components/subscriptionupdateseats.ts +92 -0
- package/examples/models/components/subscriptionupdatetrial.ts +78 -0
- package/examples/models/components/subtype.ts +31 -0
- package/examples/models/components/systemevent.ts +310 -0
- package/examples/models/components/taxidformat.ts +117 -0
- package/examples/models/components/timeinterval.ts +34 -0
- package/examples/models/components/tokenresponse.ts +99 -0
- package/examples/models/components/trialinterval.ts +35 -0
- package/examples/models/components/uniqueaggregation.ts +70 -0
- package/examples/models/components/userevent.ts +146 -0
- package/examples/models/components/userinfoorganization.ts +70 -0
- package/examples/models/components/userinfouser.ts +83 -0
- package/examples/models/components/validatedlicensekey.ts +192 -0
- package/examples/models/components/validationerror.ts +113 -0
- package/examples/models/components/wallet.ts +121 -0
- package/examples/models/components/walletsortproperty.ts +35 -0
- package/examples/models/components/wallettopupcreate.ts +79 -0
- package/examples/models/components/webhookbenefitcreatedpayload.ts +89 -0
- package/examples/models/components/webhookbenefitgrantcreatedpayload.ts +90 -0
- package/examples/models/components/webhookbenefitgrantcycledpayload.ts +90 -0
- package/examples/models/components/webhookbenefitgrantrevokedpayload.ts +90 -0
- package/examples/models/components/webhookbenefitgrantupdatedpayload.ts +90 -0
- package/examples/models/components/webhookbenefitupdatedpayload.ts +89 -0
- package/examples/models/components/webhookcheckoutcreatedpayload.ts +92 -0
- package/examples/models/components/webhookcheckoutupdatedpayload.ts +92 -0
- package/examples/models/components/webhookcustomercreatedpayload.ts +97 -0
- package/examples/models/components/webhookcustomerdeletedpayload.ts +92 -0
- package/examples/models/components/webhookcustomerseatassignedpayload.ts +92 -0
- package/examples/models/components/webhookcustomerseatclaimedpayload.ts +90 -0
- package/examples/models/components/webhookcustomerseatrevokedpayload.ts +90 -0
- package/examples/models/components/webhookcustomerstatechangedpayload.ts +106 -0
- package/examples/models/components/webhookcustomerupdatedpayload.ts +96 -0
- package/examples/models/components/webhookdelivery.ts +143 -0
- package/examples/models/components/webhookendpoint.ts +148 -0
- package/examples/models/components/webhookendpointcreate.ts +116 -0
- package/examples/models/components/webhookendpointupdate.ts +101 -0
- package/examples/models/components/webhookevent.ts +144 -0
- package/examples/models/components/webhookeventtype.ts +61 -0
- package/examples/models/components/webhookformat.ts +34 -0
- package/examples/models/components/webhookordercreatedpayload.ts +96 -0
- package/examples/models/components/webhookorderpaidpayload.ts +89 -0
- package/examples/models/components/webhookorderrefundedpayload.ts +89 -0
- package/examples/models/components/webhookorderupdatedpayload.ts +92 -0
- package/examples/models/components/webhookorganizationupdatedpayload.ts +90 -0
- package/examples/models/components/webhookproductcreatedpayload.ts +92 -0
- package/examples/models/components/webhookproductupdatedpayload.ts +92 -0
- package/examples/models/components/webhookrefundcreatedpayload.ts +89 -0
- package/examples/models/components/webhookrefundupdatedpayload.ts +89 -0
- package/examples/models/components/webhooksubscriptionactivepayload.ts +90 -0
- package/examples/models/components/webhooksubscriptioncanceledpayload.ts +92 -0
- package/examples/models/components/webhooksubscriptioncreatedpayload.ts +92 -0
- package/examples/models/components/webhooksubscriptionrevokedpayload.ts +91 -0
- package/examples/models/components/webhooksubscriptionuncanceledpayload.ts +92 -0
- package/examples/models/components/webhooksubscriptionupdatedpayload.ts +94 -0
- package/examples/models/components/webtokenrequest.ts +133 -0
- package/examples/models/errors/alreadyactivesubscriptionerror.ts +85 -0
- package/examples/models/errors/alreadycanceledsubscription.ts +85 -0
- package/examples/models/errors/chargefyerror.ts +35 -0
- package/examples/models/errors/checkoutforbiddenerror.ts +90 -0
- package/examples/models/errors/customernotready.ts +85 -0
- package/examples/models/errors/customerportalordersgenerateinvoice.ts +97 -0
- package/examples/models/errors/expiredcheckouterror.ts +85 -0
- package/examples/models/errors/httpclienterrors.ts +62 -0
- package/examples/models/errors/httpvalidationerror.ts +85 -0
- package/examples/models/errors/missinginvoicebillingdetails.ts +85 -0
- package/examples/models/errors/missingpaymentmethoderror.ts +85 -0
- package/examples/models/errors/notopencheckout.ts +85 -0
- package/examples/models/errors/notpaidorder.ts +85 -0
- package/examples/models/errors/notpermitted.ts +85 -0
- package/examples/models/errors/ordernoteligibleforretry.ts +85 -0
- package/examples/models/errors/ordersgenerateinvoice.ts +97 -0
- package/examples/models/errors/paymentalreadyinprogress.ts +85 -0
- package/examples/models/errors/paymenterror.ts +85 -0
- package/examples/models/errors/paymentintentfailederror.ts +85 -0
- package/examples/models/errors/paymentmethodinusebyactivesubscription.ts +87 -0
- package/examples/models/errors/paymentnotready.ts +85 -0
- package/examples/models/errors/refundamounttoohigh.ts +85 -0
- package/examples/models/errors/refundedalready.ts +85 -0
- package/examples/models/errors/resourcenotfound.ts +85 -0
- package/examples/models/errors/responsevalidationerror.ts +50 -0
- package/examples/models/errors/sdkerror.ts +40 -0
- package/examples/models/errors/sdkvalidationerror.ts +109 -0
- package/examples/models/errors/subscriptionlocked.ts +85 -0
- package/examples/models/errors/unauthorized.ts +85 -0
- package/examples/models/operations/benefitgrantslist.ts +340 -0
- package/examples/models/operations/benefitsdelete.ts +66 -0
- package/examples/models/operations/benefitsget.ts +66 -0
- package/examples/models/operations/benefitsgrants.ts +231 -0
- package/examples/models/operations/benefitslist.ts +324 -0
- package/examples/models/operations/benefitsupdate.ts +219 -0
- package/examples/models/operations/checkoutlinksdelete.ts +69 -0
- package/examples/models/operations/checkoutlinksget.ts +69 -0
- package/examples/models/operations/checkoutlinkslist.ts +325 -0
- package/examples/models/operations/checkoutlinksupdate.ts +88 -0
- package/examples/models/operations/checkoutsclientconfirm.ts +92 -0
- package/examples/models/operations/checkoutsclientget.ts +78 -0
- package/examples/models/operations/checkoutsclientupdate.ts +92 -0
- package/examples/models/operations/checkoutsget.ts +69 -0
- package/examples/models/operations/checkoutslist.ts +478 -0
- package/examples/models/operations/checkoutsupdate.ts +88 -0
- package/examples/models/operations/customermetersget.ts +69 -0
- package/examples/models/operations/customermeterslist.ts +475 -0
- package/examples/models/operations/customerportalbenefitgrantsget.ts +147 -0
- package/examples/models/operations/customerportalbenefitgrantslist.ts +605 -0
- package/examples/models/operations/customerportalbenefitgrantsupdate.ts +177 -0
- package/examples/models/operations/customerportalcustomermetersget.ts +153 -0
- package/examples/models/operations/customerportalcustomermeterslist.ts +333 -0
- package/examples/models/operations/customerportalcustomersaddpaymentmethod.ts +89 -0
- package/examples/models/operations/customerportalcustomersconfirmpaymentmethod.ts +89 -0
- package/examples/models/operations/customerportalcustomersdeletepaymentmethod.ts +161 -0
- package/examples/models/operations/customerportalcustomersessionintrospect.ts +89 -0
- package/examples/models/operations/customerportalcustomersget.ts +79 -0
- package/examples/models/operations/customerportalcustomerslistpaymentmethods.ts +257 -0
- package/examples/models/operations/customerportalcustomersupdate.ts +80 -0
- package/examples/models/operations/customerportaldownloadableslist.ts +327 -0
- package/examples/models/operations/customerportallicensekeysget.ts +143 -0
- package/examples/models/operations/customerportallicensekeyslist.ts +245 -0
- package/examples/models/operations/customerportalordersconfirmretrypayment.ts +182 -0
- package/examples/models/operations/customerportalordersgenerateinvoice.ts +159 -0
- package/examples/models/operations/customerportalordersget.ts +140 -0
- package/examples/models/operations/customerportalordersgetpaymentstatus.ts +162 -0
- package/examples/models/operations/customerportalordersinvoice.ts +145 -0
- package/examples/models/operations/customerportalorderslist.ts +512 -0
- package/examples/models/operations/customerportalordersupdate.ts +161 -0
- package/examples/models/operations/customerportalorganizationsget.ts +74 -0
- package/examples/models/operations/customerportalseatsassignseat.ts +80 -0
- package/examples/models/operations/customerportalseatslistclaimedsubscriptions.ts +89 -0
- package/examples/models/operations/customerportalseatslistseats.ts +163 -0
- package/examples/models/operations/customerportalseatsresendinvitation.ts +164 -0
- package/examples/models/operations/customerportalseatsrevokeseat.ts +151 -0
- package/examples/models/operations/customerportalsubscriptionscancel.ts +159 -0
- package/examples/models/operations/customerportalsubscriptionsget.ts +147 -0
- package/examples/models/operations/customerportalsubscriptionslist.ts +355 -0
- package/examples/models/operations/customerportalsubscriptionsupdate.ts +177 -0
- package/examples/models/operations/customerportalwalletsget.ts +140 -0
- package/examples/models/operations/customerportalwalletslist.ts +237 -0
- package/examples/models/operations/customersdelete.ts +69 -0
- package/examples/models/operations/customersdeleteexternal.ts +80 -0
- package/examples/models/operations/customerseatsgetclaiminfo.ts +77 -0
- package/examples/models/operations/customerseatslistseats.ts +83 -0
- package/examples/models/operations/customerseatsresendinvitation.ts +80 -0
- package/examples/models/operations/customerseatsrevokeseat.ts +77 -0
- package/examples/models/operations/customersessionscreate.ts +93 -0
- package/examples/models/operations/customersexport.ts +146 -0
- package/examples/models/operations/customersget.ts +69 -0
- package/examples/models/operations/customersgetbalance.ts +69 -0
- package/examples/models/operations/customersgetexternal.ts +80 -0
- package/examples/models/operations/customersgetstate.ts +69 -0
- package/examples/models/operations/customersgetstateexternal.ts +80 -0
- package/examples/models/operations/customerslist.ts +275 -0
- package/examples/models/operations/customersupdate.ts +88 -0
- package/examples/models/operations/customersupdateexternal.ts +92 -0
- package/examples/models/operations/customfieldsdelete.ts +69 -0
- package/examples/models/operations/customfieldsget.ts +69 -0
- package/examples/models/operations/customfieldslist.ts +341 -0
- package/examples/models/operations/customfieldsupdate.ts +88 -0
- package/examples/models/operations/discountsdelete.ts +69 -0
- package/examples/models/operations/discountsget.ts +69 -0
- package/examples/models/operations/discountslist.ts +255 -0
- package/examples/models/operations/discountsupdate.ts +88 -0
- package/examples/models/operations/eventsget.ts +69 -0
- package/examples/models/operations/eventslist.ts +564 -0
- package/examples/models/operations/eventslistnames.ts +484 -0
- package/examples/models/operations/filesdelete.ts +66 -0
- package/examples/models/operations/fileslist.ts +288 -0
- package/examples/models/operations/filesupdate.ts +199 -0
- package/examples/models/operations/filesuploaded.ts +201 -0
- package/examples/models/operations/licensekeysget.ts +66 -0
- package/examples/models/operations/licensekeysgetactivation.ts +81 -0
- package/examples/models/operations/licensekeyslist.ts +298 -0
- package/examples/models/operations/licensekeysupdate.ts +85 -0
- package/examples/models/operations/metersget.ts +69 -0
- package/examples/models/operations/meterslist.ts +273 -0
- package/examples/models/operations/metersquantities.ts +296 -0
- package/examples/models/operations/metersupdate.ts +88 -0
- package/examples/models/operations/metricsget.ts +418 -0
- package/examples/models/operations/oauth2authorize.ts +105 -0
- package/examples/models/operations/oauth2clientsoauth2deleteclient.ts +81 -0
- package/examples/models/operations/oauth2clientsoauth2getclient.ts +80 -0
- package/examples/models/operations/oauth2clientsoauth2updateclient.ts +95 -0
- package/examples/models/operations/oauth2requesttoken.ts +92 -0
- package/examples/models/operations/oauth2userinfo.ts +82 -0
- package/examples/models/operations/ordersexport.ts +214 -0
- package/examples/models/operations/ordersgenerateinvoice.ts +71 -0
- package/examples/models/operations/ordersget.ts +69 -0
- package/examples/models/operations/ordersinvoice.ts +69 -0
- package/examples/models/operations/orderslist.ts +611 -0
- package/examples/models/operations/ordersupdate.ts +88 -0
- package/examples/models/operations/organizationsget.ts +66 -0
- package/examples/models/operations/organizationslist.ts +170 -0
- package/examples/models/operations/organizationsupdate.ts +85 -0
- package/examples/models/operations/paymentsget.ts +69 -0
- package/examples/models/operations/paymentslist.ts +584 -0
- package/examples/models/operations/productsget.ts +66 -0
- package/examples/models/operations/productslist.ts +401 -0
- package/examples/models/operations/productsupdate.ts +85 -0
- package/examples/models/operations/productsupdatebenefits.ts +87 -0
- package/examples/models/operations/refundslist.ts +500 -0
- package/examples/models/operations/subscriptionscreate.ts +85 -0
- package/examples/models/operations/subscriptionsexport.ts +129 -0
- package/examples/models/operations/subscriptionsget.ts +69 -0
- package/examples/models/operations/subscriptionslist.ts +505 -0
- package/examples/models/operations/subscriptionsrevoke.ts +69 -0
- package/examples/models/operations/subscriptionsupdate.ts +88 -0
- package/examples/models/operations/walletsget.ts +69 -0
- package/examples/models/operations/walletslist.ts +315 -0
- package/examples/models/operations/walletstopup.ts +88 -0
- package/examples/models/operations/webhooksdeletewebhookendpoint.ts +74 -0
- package/examples/models/operations/webhooksgetwebhookendpoint.ts +72 -0
- package/examples/models/operations/webhookslistwebhookdeliveries.ts +247 -0
- package/examples/models/operations/webhookslistwebhookendpoints.ts +229 -0
- package/examples/models/operations/webhooksredeliverwebhookevent.ts +74 -0
- package/examples/models/operations/webhooksresetwebhookendpointsecret.ts +81 -0
- package/examples/models/operations/webhooksupdatewebhookendpoint.ts +93 -0
- package/examples/organizationsList.example.ts +28 -0
- package/examples/package-lock.json +616 -0
- package/examples/package.json +18 -0
- package/examples/sdk/benefitgrants.ts +32 -0
- package/examples/sdk/benefits.ts +148 -0
- package/examples/sdk/chargefybenefitgrants.ts +91 -0
- package/examples/sdk/chargefycustomermeters.ts +65 -0
- package/examples/sdk/chargefycustomers.ts +162 -0
- package/examples/sdk/chargefylicensekeys.ts +137 -0
- package/examples/sdk/chargefyorders.ts +196 -0
- package/examples/sdk/chargefyorganizations.ts +28 -0
- package/examples/sdk/chargefysubscriptions.ts +117 -0
- package/examples/sdk/chargefywallets.ts +65 -0
- package/examples/sdk/checkoutlinks.ts +118 -0
- package/examples/sdk/checkouts.ts +158 -0
- package/examples/sdk/clients.ts +84 -0
- package/examples/sdk/customermeters.ts +55 -0
- package/examples/sdk/customerportal.ts +73 -0
- package/examples/sdk/customers.ts +293 -0
- package/examples/sdk/customerseats.ts +120 -0
- package/examples/sdk/customersession.ts +30 -0
- package/examples/sdk/customersessions.ts +30 -0
- package/examples/sdk/customfields.ts +118 -0
- package/examples/sdk/discounts.ts +118 -0
- package/examples/sdk/downloadables.ts +35 -0
- package/examples/sdk/events.ts +101 -0
- package/examples/sdk/files.ts +124 -0
- package/examples/sdk/licensekeys.ts +163 -0
- package/examples/sdk/meters.ts +119 -0
- package/examples/sdk/metrics.ts +51 -0
- package/examples/sdk/oauth2.ts +105 -0
- package/examples/sdk/orders.ts +140 -0
- package/examples/sdk/organizations.ts +97 -0
- package/examples/sdk/payments.ts +55 -0
- package/examples/sdk/products.ts +118 -0
- package/examples/sdk/refunds.ts +55 -0
- package/examples/sdk/sdk.ts +157 -0
- package/examples/sdk/seats.ts +126 -0
- package/examples/sdk/subscriptions.ts +144 -0
- package/examples/sdk/wallets.ts +78 -0
- package/examples/sdk/webhooks.ts +190 -0
- package/examples/test copy.ts +0 -0
- package/examples/test.ts +0 -0
- package/examples/types/async.ts +68 -0
- package/examples/types/blobs.ts +32 -0
- package/examples/types/constdatetime.ts +15 -0
- package/examples/types/enums.ts +16 -0
- package/examples/types/fp.ts +50 -0
- package/examples/types/operations.ts +105 -0
- package/examples/types/rfcdate.ts +54 -0
- package/examples/types/streams.ts +21 -0
- package/examples/types/webhooks.ts +7 -0
- package/examples/webhooks copy.ts +138 -0
- package/examples/webhooks.test copy.ts +116 -0
- package/examples/webhooks.test.ts +116 -0
- package/examples/webhooks.ts +138 -0
- package/jest.config.cjs +5 -0
- package/jsr.json +27 -0
- package/package.json +93 -0
- package/polar-js-main/.devcontainer/devcontainer.json +45 -0
- package/polar-js-main/FUNCTIONS.md +89 -0
- package/polar-js-main/RUNTIMES.md +48 -0
- package/polar-js-main/examples/organizationsList.example.ts +28 -0
- package/polar-js-main/examples/package-lock.json +616 -0
- package/polar-js-main/examples/package.json +18 -0
- package/polar-js-main/jsr.json +27 -0
- package/polar-js-main/package-lock.json +5768 -0
- package/polar-js-main/package.json +83 -0
- package/polar-js-main/src/core.ts +13 -0
- package/polar-js-main/src/funcs/benefitGrantsList.ts +261 -0
- package/polar-js-main/src/funcs/benefitsCreate.ts +181 -0
- package/polar-js-main/src/funcs/benefitsDelete.ts +204 -0
- package/polar-js-main/src/funcs/benefitsGet.ts +195 -0
- package/polar-js-main/src/funcs/benefitsGrants.ts +277 -0
- package/polar-js-main/src/funcs/benefitsList.ts +270 -0
- package/polar-js-main/src/funcs/benefitsUpdate.ts +196 -0
- package/polar-js-main/src/funcs/checkoutLinksCreate.ts +181 -0
- package/polar-js-main/src/funcs/checkoutLinksDelete.ts +192 -0
- package/polar-js-main/src/funcs/checkoutLinksGet.ts +195 -0
- package/polar-js-main/src/funcs/checkoutLinksList.ts +260 -0
- package/polar-js-main/src/funcs/checkoutLinksUpdate.ts +198 -0
- package/polar-js-main/src/funcs/checkoutsClientConfirm.ts +224 -0
- package/polar-js-main/src/funcs/checkoutsClientGet.ts +195 -0
- package/polar-js-main/src/funcs/checkoutsClientUpdate.ts +206 -0
- package/polar-js-main/src/funcs/checkoutsCreate.ts +181 -0
- package/polar-js-main/src/funcs/checkoutsGet.ts +195 -0
- package/polar-js-main/src/funcs/checkoutsList.ts +263 -0
- package/polar-js-main/src/funcs/checkoutsUpdate.ts +204 -0
- package/polar-js-main/src/funcs/customFieldsCreate.ts +181 -0
- package/polar-js-main/src/funcs/customFieldsDelete.ts +192 -0
- package/polar-js-main/src/funcs/customFieldsGet.ts +195 -0
- package/polar-js-main/src/funcs/customFieldsList.ts +261 -0
- package/polar-js-main/src/funcs/customFieldsUpdate.ts +196 -0
- package/polar-js-main/src/funcs/customerMetersGet.ts +195 -0
- package/polar-js-main/src/funcs/customerMetersList.ts +262 -0
- package/polar-js-main/src/funcs/customerPortalBenefitGrantsGet.ts +208 -0
- package/polar-js-main/src/funcs/customerPortalBenefitGrantsList.ts +277 -0
- package/polar-js-main/src/funcs/customerPortalBenefitGrantsUpdate.ts +219 -0
- package/polar-js-main/src/funcs/customerPortalCustomerMetersGet.ts +206 -0
- package/polar-js-main/src/funcs/customerPortalCustomerMetersList.ts +274 -0
- package/polar-js-main/src/funcs/customerPortalCustomerSessionIntrospect.ts +157 -0
- package/polar-js-main/src/funcs/customerPortalCustomersAddPaymentMethod.ts +191 -0
- package/polar-js-main/src/funcs/customerPortalCustomersConfirmPaymentMethod.ts +201 -0
- package/polar-js-main/src/funcs/customerPortalCustomersDeletePaymentMethod.ts +215 -0
- package/polar-js-main/src/funcs/customerPortalCustomersGet.ts +157 -0
- package/polar-js-main/src/funcs/customerPortalCustomersListPaymentMethods.ts +275 -0
- package/polar-js-main/src/funcs/customerPortalCustomersUpdate.ts +191 -0
- package/polar-js-main/src/funcs/customerPortalDownloadablesList.ts +270 -0
- package/polar-js-main/src/funcs/customerPortalLicenseKeysActivate.ts +194 -0
- package/polar-js-main/src/funcs/customerPortalLicenseKeysDeactivate.ts +183 -0
- package/polar-js-main/src/funcs/customerPortalLicenseKeysGet.ts +205 -0
- package/polar-js-main/src/funcs/customerPortalLicenseKeysList.ts +287 -0
- package/polar-js-main/src/funcs/customerPortalLicenseKeysValidate.ts +186 -0
- package/polar-js-main/src/funcs/customerPortalOrdersConfirmRetryPayment.ts +221 -0
- package/polar-js-main/src/funcs/customerPortalOrdersGenerateInvoice.ts +200 -0
- package/polar-js-main/src/funcs/customerPortalOrdersGet.ts +205 -0
- package/polar-js-main/src/funcs/customerPortalOrdersGetPaymentStatus.ts +208 -0
- package/polar-js-main/src/funcs/customerPortalOrdersInvoice.ts +207 -0
- package/polar-js-main/src/funcs/customerPortalOrdersList.ts +275 -0
- package/polar-js-main/src/funcs/customerPortalOrdersUpdate.ts +208 -0
- package/polar-js-main/src/funcs/customerPortalOrganizationsGet.ts +190 -0
- package/polar-js-main/src/funcs/customerPortalSeatsAssignSeat.ts +189 -0
- package/polar-js-main/src/funcs/customerPortalSeatsListClaimedSubscriptions.ts +158 -0
- package/polar-js-main/src/funcs/customerPortalSeatsListSeats.ts +194 -0
- package/polar-js-main/src/funcs/customerPortalSeatsResendInvitation.ts +198 -0
- package/polar-js-main/src/funcs/customerPortalSeatsRevokeSeat.ts +195 -0
- package/polar-js-main/src/funcs/customerPortalSubscriptionsCancel.ts +214 -0
- package/polar-js-main/src/funcs/customerPortalSubscriptionsGet.ts +206 -0
- package/polar-js-main/src/funcs/customerPortalSubscriptionsList.ts +275 -0
- package/polar-js-main/src/funcs/customerPortalSubscriptionsUpdate.ts +217 -0
- package/polar-js-main/src/funcs/customerPortalWalletsGet.ts +205 -0
- package/polar-js-main/src/funcs/customerPortalWalletsList.ts +271 -0
- package/polar-js-main/src/funcs/customerSeatsAssignSeat.ts +179 -0
- package/polar-js-main/src/funcs/customerSeatsClaimSeat.ts +170 -0
- package/polar-js-main/src/funcs/customerSeatsGetClaimInfo.ts +179 -0
- package/polar-js-main/src/funcs/customerSeatsListSeats.ts +184 -0
- package/polar-js-main/src/funcs/customerSeatsResendInvitation.ts +185 -0
- package/polar-js-main/src/funcs/customerSeatsRevokeSeat.ts +185 -0
- package/polar-js-main/src/funcs/customerSessionsCreate.ts +182 -0
- package/polar-js-main/src/funcs/customersCreate.ts +181 -0
- package/polar-js-main/src/funcs/customersDelete.ts +204 -0
- package/polar-js-main/src/funcs/customersDeleteExternal.ts +194 -0
- package/polar-js-main/src/funcs/customersExport.ts +182 -0
- package/polar-js-main/src/funcs/customersGet.ts +195 -0
- package/polar-js-main/src/funcs/customersGetBalance.ts +195 -0
- package/polar-js-main/src/funcs/customersGetExternal.ts +195 -0
- package/polar-js-main/src/funcs/customersGetState.ts +201 -0
- package/polar-js-main/src/funcs/customersGetStateExternal.ts +203 -0
- package/polar-js-main/src/funcs/customersList.ts +270 -0
- package/polar-js-main/src/funcs/customersUpdate.ts +196 -0
- package/polar-js-main/src/funcs/customersUpdateExternal.ts +198 -0
- package/polar-js-main/src/funcs/discountsCreate.ts +181 -0
- package/polar-js-main/src/funcs/discountsDelete.ts +192 -0
- package/polar-js-main/src/funcs/discountsGet.ts +195 -0
- package/polar-js-main/src/funcs/discountsList.ts +260 -0
- package/polar-js-main/src/funcs/discountsUpdate.ts +196 -0
- package/polar-js-main/src/funcs/eventsGet.ts +192 -0
- package/polar-js-main/src/funcs/eventsIngest.ts +181 -0
- package/polar-js-main/src/funcs/eventsList.ts +279 -0
- package/polar-js-main/src/funcs/eventsListNames.ts +263 -0
- package/polar-js-main/src/funcs/filesCreate.ts +181 -0
- package/polar-js-main/src/funcs/filesDelete.ts +200 -0
- package/polar-js-main/src/funcs/filesList.ts +259 -0
- package/polar-js-main/src/funcs/filesUpdate.ts +202 -0
- package/polar-js-main/src/funcs/filesUploaded.ts +204 -0
- package/polar-js-main/src/funcs/licenseKeysActivate.ts +197 -0
- package/polar-js-main/src/funcs/licenseKeysDeactivate.ts +186 -0
- package/polar-js-main/src/funcs/licenseKeysGet.ts +203 -0
- package/polar-js-main/src/funcs/licenseKeysGetActivation.ts +209 -0
- package/polar-js-main/src/funcs/licenseKeysList.ts +277 -0
- package/polar-js-main/src/funcs/licenseKeysUpdate.ts +204 -0
- package/polar-js-main/src/funcs/licenseKeysValidate.ts +189 -0
- package/polar-js-main/src/funcs/metersCreate.ts +178 -0
- package/polar-js-main/src/funcs/metersGet.ts +192 -0
- package/polar-js-main/src/funcs/metersList.ts +270 -0
- package/polar-js-main/src/funcs/metersQuantities.ts +215 -0
- package/polar-js-main/src/funcs/metersUpdate.ts +193 -0
- package/polar-js-main/src/funcs/metricsGet.ts +194 -0
- package/polar-js-main/src/funcs/metricsLimits.ts +147 -0
- package/polar-js-main/src/funcs/oauth2Authorize.ts +142 -0
- package/polar-js-main/src/funcs/oauth2ClientsCreate.ts +176 -0
- package/polar-js-main/src/funcs/oauth2ClientsDelete.ts +183 -0
- package/polar-js-main/src/funcs/oauth2ClientsGet.ts +182 -0
- package/polar-js-main/src/funcs/oauth2ClientsUpdate.ts +186 -0
- package/polar-js-main/src/funcs/oauth2Introspect.ts +164 -0
- package/polar-js-main/src/funcs/oauth2Revoke.ts +164 -0
- package/polar-js-main/src/funcs/oauth2Token.ts +164 -0
- package/polar-js-main/src/funcs/oauth2Userinfo.ts +145 -0
- package/polar-js-main/src/funcs/ordersExport.ts +183 -0
- package/polar-js-main/src/funcs/ordersGenerateInvoice.ts +187 -0
- package/polar-js-main/src/funcs/ordersGet.ts +192 -0
- package/polar-js-main/src/funcs/ordersInvoice.ts +195 -0
- package/polar-js-main/src/funcs/ordersList.ts +273 -0
- package/polar-js-main/src/funcs/ordersUpdate.ts +193 -0
- package/polar-js-main/src/funcs/organizationsCreate.ts +181 -0
- package/polar-js-main/src/funcs/organizationsGet.ts +195 -0
- package/polar-js-main/src/funcs/organizationsList.ts +259 -0
- package/polar-js-main/src/funcs/organizationsUpdate.ts +206 -0
- package/polar-js-main/src/funcs/paymentsGet.ts +195 -0
- package/polar-js-main/src/funcs/paymentsList.ts +264 -0
- package/polar-js-main/src/funcs/productsCreate.ts +181 -0
- package/polar-js-main/src/funcs/productsGet.ts +195 -0
- package/polar-js-main/src/funcs/productsList.ts +273 -0
- package/polar-js-main/src/funcs/productsUpdate.ts +204 -0
- package/polar-js-main/src/funcs/productsUpdateBenefits.ts +206 -0
- package/polar-js-main/src/funcs/refundsCreate.ts +195 -0
- package/polar-js-main/src/funcs/refundsList.ts +264 -0
- package/polar-js-main/src/funcs/subscriptionsCreate.ts +187 -0
- package/polar-js-main/src/funcs/subscriptionsExport.ts +182 -0
- package/polar-js-main/src/funcs/subscriptionsGet.ts +195 -0
- package/polar-js-main/src/funcs/subscriptionsList.ts +273 -0
- package/polar-js-main/src/funcs/subscriptionsRevoke.ts +211 -0
- package/polar-js-main/src/funcs/subscriptionsUpdate.ts +214 -0
- package/polar-js-main/src/funcs/walletsGet.ts +192 -0
- package/polar-js-main/src/funcs/walletsList.ts +260 -0
- package/polar-js-main/src/funcs/walletsTopUp.ts +212 -0
- package/polar-js-main/src/funcs/webhooksCreateWebhookEndpoint.ts +181 -0
- package/polar-js-main/src/funcs/webhooksDeleteWebhookEndpoint.ts +192 -0
- package/polar-js-main/src/funcs/webhooksGetWebhookEndpoint.ts +195 -0
- package/polar-js-main/src/funcs/webhooksListWebhookDeliveries.ts +264 -0
- package/polar-js-main/src/funcs/webhooksListWebhookEndpoints.ts +260 -0
- package/polar-js-main/src/funcs/webhooksRedeliverWebhookEvent.ts +192 -0
- package/polar-js-main/src/funcs/webhooksResetWebhookEndpointSecret.ts +196 -0
- package/polar-js-main/src/funcs/webhooksUpdateWebhookEndpoint.ts +198 -0
- package/polar-js-main/src/hooks/hooks.ts +132 -0
- package/polar-js-main/src/hooks/registration.ts +14 -0
- package/polar-js-main/src/hooks/types.ts +114 -0
- package/polar-js-main/src/index.ts +9 -0
- package/polar-js-main/src/lib/base64.ts +37 -0
- package/polar-js-main/src/lib/config.ts +70 -0
- package/polar-js-main/src/lib/dlv.ts +53 -0
- package/polar-js-main/src/lib/encodings.ts +483 -0
- package/polar-js-main/src/lib/env.ts +57 -0
- package/polar-js-main/src/lib/files.ts +82 -0
- package/polar-js-main/src/lib/http.ts +323 -0
- package/polar-js-main/src/lib/is-plain-object.ts +43 -0
- package/polar-js-main/src/lib/logger.ts +9 -0
- package/polar-js-main/src/lib/matchers.ts +345 -0
- package/polar-js-main/src/lib/primitives.ts +150 -0
- package/polar-js-main/src/lib/retries.ts +218 -0
- package/polar-js-main/src/lib/schemas.ts +91 -0
- package/polar-js-main/src/lib/sdks.ts +407 -0
- package/polar-js-main/src/lib/security.ts +264 -0
- package/polar-js-main/src/lib/url.ts +33 -0
- package/polar-js-main/src/models/components/address.ts +363 -0
- package/polar-js-main/src/models/components/addressdict.ts +91 -0
- package/polar-js-main/src/models/components/addressinput.ts +361 -0
- package/polar-js-main/src/models/components/aggregationfunction.ts +37 -0
- package/polar-js-main/src/models/components/attachedcustomfield.ts +107 -0
- package/polar-js-main/src/models/components/attachedcustomfieldcreate.ts +88 -0
- package/polar-js-main/src/models/components/authorizationcodetokenrequest.ts +99 -0
- package/polar-js-main/src/models/components/authorizeorganization.ts +83 -0
- package/polar-js-main/src/models/components/authorizeresponseorganization.ts +106 -0
- package/polar-js-main/src/models/components/authorizeresponseuser.ts +100 -0
- package/polar-js-main/src/models/components/authorizeuser.ts +79 -0
- package/polar-js-main/src/models/components/benefit.ts +113 -0
- package/polar-js-main/src/models/components/benefitcreate.ts +164 -0
- package/polar-js-main/src/models/components/benefitcustom.ts +204 -0
- package/polar-js-main/src/models/components/benefitcustomcreate.ts +184 -0
- package/polar-js-main/src/models/components/benefitcustomcreateproperties.ts +71 -0
- package/polar-js-main/src/models/components/benefitcustomproperties.ts +69 -0
- package/polar-js-main/src/models/components/benefitcustomsubscriber.ts +221 -0
- package/polar-js-main/src/models/components/benefitcustomsubscriberproperties.ts +72 -0
- package/polar-js-main/src/models/components/benefitcustomupdate.ts +162 -0
- package/polar-js-main/src/models/components/benefitcycledevent.ts +168 -0
- package/polar-js-main/src/models/components/benefitdiscord.ts +208 -0
- package/polar-js-main/src/models/components/benefitdiscordcreate.ts +181 -0
- package/polar-js-main/src/models/components/benefitdiscordcreateproperties.ts +98 -0
- package/polar-js-main/src/models/components/benefitdiscordproperties.ts +105 -0
- package/polar-js-main/src/models/components/benefitdiscordsubscriber.ts +221 -0
- package/polar-js-main/src/models/components/benefitdiscordsubscriberproperties.ts +85 -0
- package/polar-js-main/src/models/components/benefitdiscordupdate.ts +164 -0
- package/polar-js-main/src/models/components/benefitdownloadables.ts +204 -0
- package/polar-js-main/src/models/components/benefitdownloadablescreate.ts +184 -0
- package/polar-js-main/src/models/components/benefitdownloadablescreateproperties.ts +75 -0
- package/polar-js-main/src/models/components/benefitdownloadablesproperties.ts +72 -0
- package/polar-js-main/src/models/components/benefitdownloadablessubscriber.ts +224 -0
- package/polar-js-main/src/models/components/benefitdownloadablessubscriberproperties.ts +86 -0
- package/polar-js-main/src/models/components/benefitdownloadablesupdate.ts +170 -0
- package/polar-js-main/src/models/components/benefitgithubrepository.ts +218 -0
- package/polar-js-main/src/models/components/benefitgithubrepositorycreate.ts +190 -0
- package/polar-js-main/src/models/components/benefitgithubrepositorycreateproperties.ts +149 -0
- package/polar-js-main/src/models/components/benefitgithubrepositoryproperties.ts +135 -0
- package/polar-js-main/src/models/components/benefitgithubrepositorysubscriber.ts +234 -0
- package/polar-js-main/src/models/components/benefitgithubrepositorysubscriberproperties.ts +103 -0
- package/polar-js-main/src/models/components/benefitgithubrepositoryupdate.ts +176 -0
- package/polar-js-main/src/models/components/benefitgrant.ts +328 -0
- package/polar-js-main/src/models/components/benefitgrantcustomproperties.ts +60 -0
- package/polar-js-main/src/models/components/benefitgrantcustomwebhook.ts +236 -0
- package/polar-js-main/src/models/components/benefitgrantdiscordproperties.ts +95 -0
- package/polar-js-main/src/models/components/benefitgrantdiscordwebhook.ts +236 -0
- package/polar-js-main/src/models/components/benefitgrantdownloadablesproperties.ts +71 -0
- package/polar-js-main/src/models/components/benefitgrantdownloadableswebhook.ts +233 -0
- package/polar-js-main/src/models/components/benefitgrantedevent.ts +168 -0
- package/polar-js-main/src/models/components/benefitgranterror.ts +74 -0
- package/polar-js-main/src/models/components/benefitgrantgithubrepositoryproperties.ts +140 -0
- package/polar-js-main/src/models/components/benefitgrantgithubrepositorywebhook.ts +246 -0
- package/polar-js-main/src/models/components/benefitgrantlicensekeysproperties.ts +84 -0
- package/polar-js-main/src/models/components/benefitgrantlicensekeyswebhook.ts +233 -0
- package/polar-js-main/src/models/components/benefitgrantmetadata.ts +92 -0
- package/polar-js-main/src/models/components/benefitgrantmetercreditproperties.ts +90 -0
- package/polar-js-main/src/models/components/benefitgrantmetercreditwebhook.ts +240 -0
- package/polar-js-main/src/models/components/benefitgrantsortproperty.ts +39 -0
- package/polar-js-main/src/models/components/benefitgrantwebhook.ts +120 -0
- package/polar-js-main/src/models/components/benefitlicensekeyactivationcreateproperties.ts +92 -0
- package/polar-js-main/src/models/components/benefitlicensekeyactivationproperties.ts +84 -0
- package/polar-js-main/src/models/components/benefitlicensekeyexpirationproperties.ts +102 -0
- package/polar-js-main/src/models/components/benefitlicensekeys.ts +202 -0
- package/polar-js-main/src/models/components/benefitlicensekeyscreate.ts +182 -0
- package/polar-js-main/src/models/components/benefitlicensekeyscreateproperties.ts +112 -0
- package/polar-js-main/src/models/components/benefitlicensekeysproperties.ts +101 -0
- package/polar-js-main/src/models/components/benefitlicensekeyssubscriber.ts +223 -0
- package/polar-js-main/src/models/components/benefitlicensekeyssubscriberproperties.ts +105 -0
- package/polar-js-main/src/models/components/benefitlicensekeysupdate.ts +168 -0
- package/polar-js-main/src/models/components/benefitmetercredit.ts +212 -0
- package/polar-js-main/src/models/components/benefitmetercreditcreate.ts +188 -0
- package/polar-js-main/src/models/components/benefitmetercreditcreateproperties.ts +90 -0
- package/polar-js-main/src/models/components/benefitmetercreditproperties.ts +88 -0
- package/polar-js-main/src/models/components/benefitmetercreditsubscriber.ts +226 -0
- package/polar-js-main/src/models/components/benefitmetercreditsubscriberproperties.ts +92 -0
- package/polar-js-main/src/models/components/benefitmetercreditupdate.ts +168 -0
- package/polar-js-main/src/models/components/benefitpublic.ts +131 -0
- package/polar-js-main/src/models/components/benefitrevokedevent.ts +168 -0
- package/polar-js-main/src/models/components/benefitsortproperty.ts +37 -0
- package/polar-js-main/src/models/components/benefitsubscriberorganization.ts +141 -0
- package/polar-js-main/src/models/components/benefittype.ts +35 -0
- package/polar-js-main/src/models/components/benefitupdatedevent.ts +168 -0
- package/polar-js-main/src/models/components/billingaddressfieldmode.ts +36 -0
- package/polar-js-main/src/models/components/cardpayment.ts +203 -0
- package/polar-js-main/src/models/components/cardpaymentmetadata.ts +79 -0
- package/polar-js-main/src/models/components/checkout.ts +948 -0
- package/polar-js-main/src/models/components/checkoutbillingaddressfields.ts +102 -0
- package/polar-js-main/src/models/components/checkoutconfirmstripe.ts +267 -0
- package/polar-js-main/src/models/components/checkoutcreate.ts +506 -0
- package/polar-js-main/src/models/components/checkoutdiscountfixedonceforeverduration.ts +117 -0
- package/polar-js-main/src/models/components/checkoutdiscountfixedrepeatduration.ts +127 -0
- package/polar-js-main/src/models/components/checkoutdiscountpercentageonceforeverduration.ts +127 -0
- package/polar-js-main/src/models/components/checkoutdiscountpercentagerepeatduration.ts +134 -0
- package/polar-js-main/src/models/components/checkoutlink.ts +382 -0
- package/polar-js-main/src/models/components/checkoutlinkcreate.ts +90 -0
- package/polar-js-main/src/models/components/checkoutlinkcreateproduct.ts +241 -0
- package/polar-js-main/src/models/components/checkoutlinkcreateproductprice.ts +246 -0
- package/polar-js-main/src/models/components/checkoutlinkcreateproducts.ts +239 -0
- package/polar-js-main/src/models/components/checkoutlinkproduct.ts +365 -0
- package/polar-js-main/src/models/components/checkoutlinksortproperty.ts +41 -0
- package/polar-js-main/src/models/components/checkoutlinkupdate.ts +219 -0
- package/polar-js-main/src/models/components/checkoutorganization.ts +139 -0
- package/polar-js-main/src/models/components/checkoutproduct.ts +297 -0
- package/polar-js-main/src/models/components/checkoutpublic.ts +802 -0
- package/polar-js-main/src/models/components/checkoutpublicconfirmed.ts +827 -0
- package/polar-js-main/src/models/components/checkoutsortproperty.ts +37 -0
- package/polar-js-main/src/models/components/checkoutstatus.ts +36 -0
- package/polar-js-main/src/models/components/checkoutupdate.ts +485 -0
- package/polar-js-main/src/models/components/checkoutupdatepublic.ts +258 -0
- package/polar-js-main/src/models/components/costmetadatainput.ts +122 -0
- package/polar-js-main/src/models/components/costmetadataoutput.ts +76 -0
- package/polar-js-main/src/models/components/countaggregation.ts +66 -0
- package/polar-js-main/src/models/components/customer.ts +284 -0
- package/polar-js-main/src/models/components/customerbalance.ts +77 -0
- package/polar-js-main/src/models/components/customerbenefitgrant.ts +120 -0
- package/polar-js-main/src/models/components/customerbenefitgrantcustom.ts +178 -0
- package/polar-js-main/src/models/components/customerbenefitgrantcustomupdate.ts +77 -0
- package/polar-js-main/src/models/components/customerbenefitgrantdiscord.ts +180 -0
- package/polar-js-main/src/models/components/customerbenefitgrantdiscordpropertiesupdate.ts +88 -0
- package/polar-js-main/src/models/components/customerbenefitgrantdiscordupdate.ts +88 -0
- package/polar-js-main/src/models/components/customerbenefitgrantdownloadables.ts +181 -0
- package/polar-js-main/src/models/components/customerbenefitgrantdownloadablesupdate.ts +86 -0
- package/polar-js-main/src/models/components/customerbenefitgrantgithubrepository.ts +183 -0
- package/polar-js-main/src/models/components/customerbenefitgrantgithubrepositorypropertiesupdate.ts +89 -0
- package/polar-js-main/src/models/components/customerbenefitgrantgithubrepositoryupdate.ts +97 -0
- package/polar-js-main/src/models/components/customerbenefitgrantlicensekeys.ts +180 -0
- package/polar-js-main/src/models/components/customerbenefitgrantlicensekeysupdate.ts +80 -0
- package/polar-js-main/src/models/components/customerbenefitgrantmetercredit.ts +180 -0
- package/polar-js-main/src/models/components/customerbenefitgrantmetercreditupdate.ts +80 -0
- package/polar-js-main/src/models/components/customerbenefitgrantsortproperty.ts +39 -0
- package/polar-js-main/src/models/components/customerbenefitgrantupdate.ts +178 -0
- package/polar-js-main/src/models/components/customercancellationreason.ts +41 -0
- package/polar-js-main/src/models/components/customercreate.ts +248 -0
- package/polar-js-main/src/models/components/customercreatedevent.ts +168 -0
- package/polar-js-main/src/models/components/customercreatedmetadata.ts +93 -0
- package/polar-js-main/src/models/components/customercustomermeter.ts +149 -0
- package/polar-js-main/src/models/components/customercustomermetermeter.ts +103 -0
- package/polar-js-main/src/models/components/customercustomermetersortproperty.ts +48 -0
- package/polar-js-main/src/models/components/customercustomersession.ts +81 -0
- package/polar-js-main/src/models/components/customerdeletedevent.ts +168 -0
- package/polar-js-main/src/models/components/customerdeletedmetadata.ts +93 -0
- package/polar-js-main/src/models/components/customermeter.ts +161 -0
- package/polar-js-main/src/models/components/customermetersortproperty.ts +51 -0
- package/polar-js-main/src/models/components/customerorder.ts +341 -0
- package/polar-js-main/src/models/components/customerorderconfirmpayment.ts +103 -0
- package/polar-js-main/src/models/components/customerorderinvoice.ts +72 -0
- package/polar-js-main/src/models/components/customerorderpaymentconfirmation.ts +97 -0
- package/polar-js-main/src/models/components/customerorderpaymentstatus.ts +79 -0
- package/polar-js-main/src/models/components/customerorderproduct.ts +308 -0
- package/polar-js-main/src/models/components/customerordersortproperty.ts +43 -0
- package/polar-js-main/src/models/components/customerordersubscription.ts +297 -0
- package/polar-js-main/src/models/components/customerorderupdate.ts +96 -0
- package/polar-js-main/src/models/components/customerorganization.ts +139 -0
- package/polar-js-main/src/models/components/customerorganizationdata.ts +85 -0
- package/polar-js-main/src/models/components/customerpaymentmethod.ts +78 -0
- package/polar-js-main/src/models/components/customerpaymentmethodconfirm.ts +83 -0
- package/polar-js-main/src/models/components/customerpaymentmethodcreate.ts +89 -0
- package/polar-js-main/src/models/components/customerpaymentmethodcreaterequiresactionresponse.ts +93 -0
- package/polar-js-main/src/models/components/customerpaymentmethodcreateresponse.ts +107 -0
- package/polar-js-main/src/models/components/customerpaymentmethodcreatesucceededresponse.ts +98 -0
- package/polar-js-main/src/models/components/customerportalcustomer.ts +213 -0
- package/polar-js-main/src/models/components/customerportalcustomerupdate.ts +95 -0
- package/polar-js-main/src/models/components/customerportaloauthaccount.ts +81 -0
- package/polar-js-main/src/models/components/customerproduct.ts +297 -0
- package/polar-js-main/src/models/components/customerseat.ts +180 -0
- package/polar-js-main/src/models/components/customerseatclaimresponse.ts +91 -0
- package/polar-js-main/src/models/components/customersession.ts +138 -0
- package/polar-js-main/src/models/components/customersessioncustomerexternalidcreate.ts +101 -0
- package/polar-js-main/src/models/components/customersessioncustomeridcreate.ts +92 -0
- package/polar-js-main/src/models/components/customersortproperty.ts +37 -0
- package/polar-js-main/src/models/components/customerstate.ts +339 -0
- package/polar-js-main/src/models/components/customerstatebenefitgrant.ts +322 -0
- package/polar-js-main/src/models/components/customerstatemeter.ts +133 -0
- package/polar-js-main/src/models/components/customerstatesubscription.ts +450 -0
- package/polar-js-main/src/models/components/customerstatesubscriptionmeter.ts +135 -0
- package/polar-js-main/src/models/components/customersubscription.ts +418 -0
- package/polar-js-main/src/models/components/customersubscriptioncancel.ts +118 -0
- package/polar-js-main/src/models/components/customersubscriptionmeter.ts +140 -0
- package/polar-js-main/src/models/components/customersubscriptionmetermeter.ts +105 -0
- package/polar-js-main/src/models/components/customersubscriptionproduct.ts +313 -0
- package/polar-js-main/src/models/components/customersubscriptionsortproperty.ts +43 -0
- package/polar-js-main/src/models/components/customersubscriptionupdate.ts +90 -0
- package/polar-js-main/src/models/components/customersubscriptionupdateproduct.ts +81 -0
- package/polar-js-main/src/models/components/customersubscriptionupdateseats.ts +94 -0
- package/polar-js-main/src/models/components/customerupdate.ts +239 -0
- package/polar-js-main/src/models/components/customerupdatedevent.ts +168 -0
- package/polar-js-main/src/models/components/customerupdatedfields.ts +155 -0
- package/polar-js-main/src/models/components/customerupdatedmetadata.ts +105 -0
- package/polar-js-main/src/models/components/customerupdateexternalid.ts +242 -0
- package/polar-js-main/src/models/components/customerwallet.ts +122 -0
- package/polar-js-main/src/models/components/customerwalletsortproperty.ts +37 -0
- package/polar-js-main/src/models/components/customfield.ts +138 -0
- package/polar-js-main/src/models/components/customfieldcheckbox.ts +200 -0
- package/polar-js-main/src/models/components/customfieldcheckboxproperties.ts +89 -0
- package/polar-js-main/src/models/components/customfieldcreate.ts +142 -0
- package/polar-js-main/src/models/components/customfieldcreatecheckbox.ts +193 -0
- package/polar-js-main/src/models/components/customfieldcreatedate.ts +188 -0
- package/polar-js-main/src/models/components/customfieldcreatenumber.ts +192 -0
- package/polar-js-main/src/models/components/customfieldcreateselect.ts +192 -0
- package/polar-js-main/src/models/components/customfieldcreatetext.ts +188 -0
- package/polar-js-main/src/models/components/customfielddate.ts +196 -0
- package/polar-js-main/src/models/components/customfielddateproperties.ts +95 -0
- package/polar-js-main/src/models/components/customfieldnumber.ts +198 -0
- package/polar-js-main/src/models/components/customfieldnumberproperties.ts +97 -0
- package/polar-js-main/src/models/components/customfieldselect.ts +198 -0
- package/polar-js-main/src/models/components/customfieldselectoption.ts +70 -0
- package/polar-js-main/src/models/components/customfieldselectproperties.ts +99 -0
- package/polar-js-main/src/models/components/customfieldsortproperty.ts +41 -0
- package/polar-js-main/src/models/components/customfieldtext.ts +196 -0
- package/polar-js-main/src/models/components/customfieldtextproperties.ts +103 -0
- package/polar-js-main/src/models/components/customfieldtype.ts +36 -0
- package/polar-js-main/src/models/components/customfieldupdate.ts +142 -0
- package/polar-js-main/src/models/components/customfieldupdatecheckbox.ts +173 -0
- package/polar-js-main/src/models/components/customfieldupdatedate.ts +166 -0
- package/polar-js-main/src/models/components/customfieldupdatenumber.ts +170 -0
- package/polar-js-main/src/models/components/customfieldupdateselect.ts +170 -0
- package/polar-js-main/src/models/components/customfieldupdatetext.ts +166 -0
- package/polar-js-main/src/models/components/discount.ts +96 -0
- package/polar-js-main/src/models/components/discountcreate.ts +96 -0
- package/polar-js-main/src/models/components/discountduration.ts +34 -0
- package/polar-js-main/src/models/components/discountfixedonceforeverduration.ts +277 -0
- package/polar-js-main/src/models/components/discountfixedonceforeverdurationbase.ts +269 -0
- package/polar-js-main/src/models/components/discountfixedonceforeverdurationcreate.ts +263 -0
- package/polar-js-main/src/models/components/discountfixedrepeatduration.ts +280 -0
- package/polar-js-main/src/models/components/discountfixedrepeatdurationbase.ts +270 -0
- package/polar-js-main/src/models/components/discountfixedrepeatdurationcreate.ts +275 -0
- package/polar-js-main/src/models/components/discountpercentageonceforeverduration.ts +283 -0
- package/polar-js-main/src/models/components/discountpercentageonceforeverdurationbase.ts +278 -0
- package/polar-js-main/src/models/components/discountpercentageonceforeverdurationcreate.ts +270 -0
- package/polar-js-main/src/models/components/discountpercentagerepeatduration.ts +287 -0
- package/polar-js-main/src/models/components/discountpercentagerepeatdurationbase.ts +276 -0
- package/polar-js-main/src/models/components/discountpercentagerepeatdurationcreate.ts +280 -0
- package/polar-js-main/src/models/components/discountproduct.ts +246 -0
- package/polar-js-main/src/models/components/discountsortproperty.ts +39 -0
- package/polar-js-main/src/models/components/discounttype.ts +31 -0
- package/polar-js-main/src/models/components/discountupdate.ts +229 -0
- package/polar-js-main/src/models/components/downloadablefilecreate.ts +116 -0
- package/polar-js-main/src/models/components/downloadablefileread.ts +161 -0
- package/polar-js-main/src/models/components/downloadableread.ts +89 -0
- package/polar-js-main/src/models/components/event.ts +63 -0
- package/polar-js-main/src/models/components/eventcreatecustomer.ts +130 -0
- package/polar-js-main/src/models/components/eventcreateexternalcustomer.ts +132 -0
- package/polar-js-main/src/models/components/eventmetadatainput.ts +96 -0
- package/polar-js-main/src/models/components/eventmetadataoutput.ts +96 -0
- package/polar-js-main/src/models/components/eventname.ts +106 -0
- package/polar-js-main/src/models/components/eventnamessortproperty.ts +39 -0
- package/polar-js-main/src/models/components/eventsingest.ts +140 -0
- package/polar-js-main/src/models/components/eventsingestresponse.ts +76 -0
- package/polar-js-main/src/models/components/eventsortproperty.ts +33 -0
- package/polar-js-main/src/models/components/eventsource.ts +31 -0
- package/polar-js-main/src/models/components/existingproductprice.ts +73 -0
- package/polar-js-main/src/models/components/filecreate.ts +110 -0
- package/polar-js-main/src/models/components/filedownload.ts +163 -0
- package/polar-js-main/src/models/components/filepatch.ts +66 -0
- package/polar-js-main/src/models/components/fileservicetypes.ts +34 -0
- package/polar-js-main/src/models/components/fileupload.ts +163 -0
- package/polar-js-main/src/models/components/fileuploadcompleted.ts +80 -0
- package/polar-js-main/src/models/components/filter.ts +121 -0
- package/polar-js-main/src/models/components/filterclause.ts +118 -0
- package/polar-js-main/src/models/components/filterconjunction.ts +33 -0
- package/polar-js-main/src/models/components/filteroperator.ts +39 -0
- package/polar-js-main/src/models/components/genericpayment.ts +188 -0
- package/polar-js-main/src/models/components/introspecttokenrequest.ts +125 -0
- package/polar-js-main/src/models/components/introspecttokenresponse.ts +146 -0
- package/polar-js-main/src/models/components/legacyrecurringproductprice.ts +116 -0
- package/polar-js-main/src/models/components/legacyrecurringproductpricecustom.ts +188 -0
- package/polar-js-main/src/models/components/legacyrecurringproductpricefixed.ts +169 -0
- package/polar-js-main/src/models/components/legacyrecurringproductpricefree.ts +151 -0
- package/polar-js-main/src/models/components/licensekeyactivate.ts +239 -0
- package/polar-js-main/src/models/components/licensekeyactivationbase.ts +145 -0
- package/polar-js-main/src/models/components/licensekeyactivationread.ts +173 -0
- package/polar-js-main/src/models/components/licensekeycustomer.ts +293 -0
- package/polar-js-main/src/models/components/licensekeydeactivate.ts +85 -0
- package/polar-js-main/src/models/components/licensekeyread.ts +178 -0
- package/polar-js-main/src/models/components/licensekeystatus.ts +34 -0
- package/polar-js-main/src/models/components/licensekeyupdate.ts +102 -0
- package/polar-js-main/src/models/components/licensekeyvalidate.ts +172 -0
- package/polar-js-main/src/models/components/licensekeywithactivations.ts +192 -0
- package/polar-js-main/src/models/components/listresource.ts +78 -0
- package/polar-js-main/src/models/components/listresourcebenefit.ts +82 -0
- package/polar-js-main/src/models/components/listresourcebenefitgrant.ts +82 -0
- package/polar-js-main/src/models/components/listresourcecheckout.ts +82 -0
- package/polar-js-main/src/models/components/listresourcecheckoutlink.ts +82 -0
- package/polar-js-main/src/models/components/listresourcecustomer.ts +82 -0
- package/polar-js-main/src/models/components/listresourcecustomerbenefitgrant.ts +84 -0
- package/polar-js-main/src/models/components/listresourcecustomercustomermeter.ts +85 -0
- package/polar-js-main/src/models/components/listresourcecustomermeter.ts +82 -0
- package/polar-js-main/src/models/components/listresourcecustomerorder.ts +82 -0
- package/polar-js-main/src/models/components/listresourcecustomerpaymentmethod.ts +85 -0
- package/polar-js-main/src/models/components/listresourcecustomersubscription.ts +84 -0
- package/polar-js-main/src/models/components/listresourcecustomerwallet.ts +82 -0
- package/polar-js-main/src/models/components/listresourcecustomfield.ts +82 -0
- package/polar-js-main/src/models/components/listresourcediscount.ts +82 -0
- package/polar-js-main/src/models/components/listresourcedownloadableread.ts +84 -0
- package/polar-js-main/src/models/components/listresourceevent.ts +82 -0
- package/polar-js-main/src/models/components/listresourceeventname.ts +82 -0
- package/polar-js-main/src/models/components/listresourcefileread.ts +222 -0
- package/polar-js-main/src/models/components/listresourcelicensekeyread.ts +82 -0
- package/polar-js-main/src/models/components/listresourcemeter.ts +82 -0
- package/polar-js-main/src/models/components/listresourceorder.ts +82 -0
- package/polar-js-main/src/models/components/listresourceorganization.ts +82 -0
- package/polar-js-main/src/models/components/listresourceproduct.ts +82 -0
- package/polar-js-main/src/models/components/listresourcerefund.ts +82 -0
- package/polar-js-main/src/models/components/listresourcesubscription.ts +82 -0
- package/polar-js-main/src/models/components/listresourcewallet.ts +82 -0
- package/polar-js-main/src/models/components/listresourcewebhookdelivery.ts +84 -0
- package/polar-js-main/src/models/components/listresourcewebhookendpoint.ts +84 -0
- package/polar-js-main/src/models/components/llmmetadata.ts +129 -0
- package/polar-js-main/src/models/components/meter.ts +380 -0
- package/polar-js-main/src/models/components/metercreate.ts +354 -0
- package/polar-js-main/src/models/components/metercreditedmetadata.ts +83 -0
- package/polar-js-main/src/models/components/metercreditevent.ts +168 -0
- package/polar-js-main/src/models/components/meterquantities.ts +77 -0
- package/polar-js-main/src/models/components/meterquantity.ts +72 -0
- package/polar-js-main/src/models/components/meterresetevent.ts +166 -0
- package/polar-js-main/src/models/components/meterresetmetadata.ts +75 -0
- package/polar-js-main/src/models/components/metersortproperty.ts +35 -0
- package/polar-js-main/src/models/components/meterupdate.ts +374 -0
- package/polar-js-main/src/models/components/metric.ts +90 -0
- package/polar-js-main/src/models/components/metricperiod.ts +2298 -0
- package/polar-js-main/src/models/components/metrics.ts +425 -0
- package/polar-js-main/src/models/components/metricsintervallimit.ts +81 -0
- package/polar-js-main/src/models/components/metricsintervalslimits.ts +106 -0
- package/polar-js-main/src/models/components/metricslimits.ts +91 -0
- package/polar-js-main/src/models/components/metricsresponse.ts +96 -0
- package/polar-js-main/src/models/components/metricstotals.ts +2538 -0
- package/polar-js-main/src/models/components/metrictype.ts +33 -0
- package/polar-js-main/src/models/components/oauth2clientconfiguration.ts +202 -0
- package/polar-js-main/src/models/components/oauth2clientconfigurationupdate.ts +224 -0
- package/polar-js-main/src/models/components/oauth2clientpublic.ts +125 -0
- package/polar-js-main/src/models/components/order.ts +608 -0
- package/polar-js-main/src/models/components/orderbillingreason.ts +35 -0
- package/polar-js-main/src/models/components/ordercustomer.ts +285 -0
- package/polar-js-main/src/models/components/orderinvoice.ts +68 -0
- package/polar-js-main/src/models/components/orderitemschema.ts +136 -0
- package/polar-js-main/src/models/components/orderpaidevent.ts +164 -0
- package/polar-js-main/src/models/components/orderpaidmetadata.ts +87 -0
- package/polar-js-main/src/models/components/orderproduct.ts +237 -0
- package/polar-js-main/src/models/components/orderrefundedevent.ts +168 -0
- package/polar-js-main/src/models/components/orderrefundedmetadata.ts +89 -0
- package/polar-js-main/src/models/components/ordersortproperty.ts +49 -0
- package/polar-js-main/src/models/components/orderstatus.ts +33 -0
- package/polar-js-main/src/models/components/ordersubscription.ts +359 -0
- package/polar-js-main/src/models/components/orderupdate.ts +92 -0
- package/polar-js-main/src/models/components/organization.ts +233 -0
- package/polar-js-main/src/models/components/organizationavatarfilecreate.ts +124 -0
- package/polar-js-main/src/models/components/organizationavatarfileread.ts +167 -0
- package/polar-js-main/src/models/components/organizationcreate.ts +195 -0
- package/polar-js-main/src/models/components/organizationcustomeremailsettings.ts +120 -0
- package/polar-js-main/src/models/components/organizationdetails.ts +168 -0
- package/polar-js-main/src/models/components/organizationfeaturesettings.ts +107 -0
- package/polar-js-main/src/models/components/organizationnotificationsettings.ts +83 -0
- package/polar-js-main/src/models/components/organizationsociallink.ts +78 -0
- package/polar-js-main/src/models/components/organizationsocialplatforms.ts +41 -0
- package/polar-js-main/src/models/components/organizationsortproperty.ts +43 -0
- package/polar-js-main/src/models/components/organizationstatus.ts +37 -0
- package/polar-js-main/src/models/components/organizationsubscriptionsettings.ts +100 -0
- package/polar-js-main/src/models/components/organizationupdate.ts +191 -0
- package/polar-js-main/src/models/components/pagination.ts +77 -0
- package/polar-js-main/src/models/components/payment.ts +63 -0
- package/polar-js-main/src/models/components/paymentmethodcard.ts +127 -0
- package/polar-js-main/src/models/components/paymentmethodcardmetadata.ts +93 -0
- package/polar-js-main/src/models/components/paymentmethodgeneric.ts +115 -0
- package/polar-js-main/src/models/components/paymentprocessor.ts +32 -0
- package/polar-js-main/src/models/components/paymentsortproperty.ts +39 -0
- package/polar-js-main/src/models/components/paymentstatus.ts +34 -0
- package/polar-js-main/src/models/components/product.ts +358 -0
- package/polar-js-main/src/models/components/productbenefitsupdate.ts +72 -0
- package/polar-js-main/src/models/components/productbillingtype.ts +33 -0
- package/polar-js-main/src/models/components/productcreate.ts +74 -0
- package/polar-js-main/src/models/components/productcreateonetime.ts +432 -0
- package/polar-js-main/src/models/components/productcreaterecurring.ts +459 -0
- package/polar-js-main/src/models/components/productmediafilecreate.ts +122 -0
- package/polar-js-main/src/models/components/productmediafileread.ts +167 -0
- package/polar-js-main/src/models/components/productprice.ts +146 -0
- package/polar-js-main/src/models/components/productpricecustom.ts +182 -0
- package/polar-js-main/src/models/components/productpricecustomcreate.ts +114 -0
- package/polar-js-main/src/models/components/productpricefixed.ts +164 -0
- package/polar-js-main/src/models/components/productpricefixedcreate.ts +96 -0
- package/polar-js-main/src/models/components/productpricefree.ts +146 -0
- package/polar-js-main/src/models/components/productpricefreecreate.ts +78 -0
- package/polar-js-main/src/models/components/productpricemeter.ts +79 -0
- package/polar-js-main/src/models/components/productpricemeteredunit.ts +195 -0
- package/polar-js-main/src/models/components/productpricemeteredunitcreate.ts +165 -0
- package/polar-js-main/src/models/components/productpriceseatbased.ts +170 -0
- package/polar-js-main/src/models/components/productpriceseatbasedcreate.ts +104 -0
- package/polar-js-main/src/models/components/productpriceseattier.ts +99 -0
- package/polar-js-main/src/models/components/productpriceseattiers.ts +78 -0
- package/polar-js-main/src/models/components/productpricetype.ts +33 -0
- package/polar-js-main/src/models/components/productsortproperty.ts +39 -0
- package/polar-js-main/src/models/components/productupdate.ts +589 -0
- package/polar-js-main/src/models/components/propertyaggregation.ts +99 -0
- package/polar-js-main/src/models/components/refreshtokenrequest.ts +93 -0
- package/polar-js-main/src/models/components/refund.ts +207 -0
- package/polar-js-main/src/models/components/refundcreate.ts +183 -0
- package/polar-js-main/src/models/components/refundreason.ts +35 -0
- package/polar-js-main/src/models/components/refundsortproperty.ts +35 -0
- package/polar-js-main/src/models/components/refundstatus.ts +33 -0
- package/polar-js-main/src/models/components/revoketokenrequest.ts +119 -0
- package/polar-js-main/src/models/components/revoketokenresponse.ts +58 -0
- package/polar-js-main/src/models/components/s3downloadurl.ts +79 -0
- package/polar-js-main/src/models/components/s3filecreatemultipart.ts +72 -0
- package/polar-js-main/src/models/components/s3filecreatepart.ts +91 -0
- package/polar-js-main/src/models/components/s3fileuploadcompletedpart.ts +85 -0
- package/polar-js-main/src/models/components/s3fileuploadmultipart.ts +80 -0
- package/polar-js-main/src/models/components/s3fileuploadpart.ts +105 -0
- package/polar-js-main/src/models/components/scope.ts +91 -0
- package/polar-js-main/src/models/components/seatassign.ts +133 -0
- package/polar-js-main/src/models/components/seatclaim.ts +74 -0
- package/polar-js-main/src/models/components/seatclaiminfo.ts +125 -0
- package/polar-js-main/src/models/components/seatslist.ts +96 -0
- package/polar-js-main/src/models/components/seatstatus.ts +32 -0
- package/polar-js-main/src/models/components/security.ts +71 -0
- package/polar-js-main/src/models/components/subscription.ts +679 -0
- package/polar-js-main/src/models/components/subscriptioncancel.ts +137 -0
- package/polar-js-main/src/models/components/subscriptioncreatecustomer.ts +175 -0
- package/polar-js-main/src/models/components/subscriptioncreateexternalcustomer.ts +185 -0
- package/polar-js-main/src/models/components/subscriptioncustomer.ts +288 -0
- package/polar-js-main/src/models/components/subscriptioncycledevent.ts +168 -0
- package/polar-js-main/src/models/components/subscriptioncycledmetadata.ts +75 -0
- package/polar-js-main/src/models/components/subscriptionmeter.ts +143 -0
- package/polar-js-main/src/models/components/subscriptionproductupdatedevent.ts +170 -0
- package/polar-js-main/src/models/components/subscriptionproductupdatedmetadata.ts +91 -0
- package/polar-js-main/src/models/components/subscriptionprorationbehavior.ts +35 -0
- package/polar-js-main/src/models/components/subscriptionrecurringinterval.ts +37 -0
- package/polar-js-main/src/models/components/subscriptionrevoke.ts +131 -0
- package/polar-js-main/src/models/components/subscriptionrevokedevent.ts +168 -0
- package/polar-js-main/src/models/components/subscriptionrevokedmetadata.ts +77 -0
- package/polar-js-main/src/models/components/subscriptionslist.ts +80 -0
- package/polar-js-main/src/models/components/subscriptionsortproperty.ts +47 -0
- package/polar-js-main/src/models/components/subscriptionstatus.ts +38 -0
- package/polar-js-main/src/models/components/subscriptionupdate.ts +120 -0
- package/polar-js-main/src/models/components/subscriptionupdatediscount.ts +78 -0
- package/polar-js-main/src/models/components/subscriptionupdateproduct.ts +94 -0
- package/polar-js-main/src/models/components/subscriptionupdateseats.ts +92 -0
- package/polar-js-main/src/models/components/subscriptionupdatetrial.ts +78 -0
- package/polar-js-main/src/models/components/subtype.ts +31 -0
- package/polar-js-main/src/models/components/systemevent.ts +310 -0
- package/polar-js-main/src/models/components/taxidformat.ts +117 -0
- package/polar-js-main/src/models/components/timeinterval.ts +34 -0
- package/polar-js-main/src/models/components/tokenresponse.ts +99 -0
- package/polar-js-main/src/models/components/trialinterval.ts +35 -0
- package/polar-js-main/src/models/components/uniqueaggregation.ts +70 -0
- package/polar-js-main/src/models/components/userevent.ts +164 -0
- package/polar-js-main/src/models/components/userinfoorganization.ts +70 -0
- package/polar-js-main/src/models/components/userinfouser.ts +83 -0
- package/polar-js-main/src/models/components/validatedlicensekey.ts +192 -0
- package/polar-js-main/src/models/components/validationerror.ts +113 -0
- package/polar-js-main/src/models/components/wallet.ts +121 -0
- package/polar-js-main/src/models/components/walletsortproperty.ts +35 -0
- package/polar-js-main/src/models/components/wallettopupcreate.ts +79 -0
- package/polar-js-main/src/models/components/webhookbenefitcreatedpayload.ts +89 -0
- package/polar-js-main/src/models/components/webhookbenefitgrantcreatedpayload.ts +90 -0
- package/polar-js-main/src/models/components/webhookbenefitgrantcycledpayload.ts +90 -0
- package/polar-js-main/src/models/components/webhookbenefitgrantrevokedpayload.ts +90 -0
- package/polar-js-main/src/models/components/webhookbenefitgrantupdatedpayload.ts +90 -0
- package/polar-js-main/src/models/components/webhookbenefitupdatedpayload.ts +89 -0
- package/polar-js-main/src/models/components/webhookcheckoutcreatedpayload.ts +92 -0
- package/polar-js-main/src/models/components/webhookcheckoutupdatedpayload.ts +92 -0
- package/polar-js-main/src/models/components/webhookcustomercreatedpayload.ts +97 -0
- package/polar-js-main/src/models/components/webhookcustomerdeletedpayload.ts +92 -0
- package/polar-js-main/src/models/components/webhookcustomerseatassignedpayload.ts +92 -0
- package/polar-js-main/src/models/components/webhookcustomerseatclaimedpayload.ts +90 -0
- package/polar-js-main/src/models/components/webhookcustomerseatrevokedpayload.ts +90 -0
- package/polar-js-main/src/models/components/webhookcustomerstatechangedpayload.ts +106 -0
- package/polar-js-main/src/models/components/webhookcustomerupdatedpayload.ts +96 -0
- package/polar-js-main/src/models/components/webhookdelivery.ts +143 -0
- package/polar-js-main/src/models/components/webhookendpoint.ts +148 -0
- package/polar-js-main/src/models/components/webhookendpointcreate.ts +116 -0
- package/polar-js-main/src/models/components/webhookendpointupdate.ts +101 -0
- package/polar-js-main/src/models/components/webhookevent.ts +144 -0
- package/polar-js-main/src/models/components/webhookeventtype.ts +61 -0
- package/polar-js-main/src/models/components/webhookformat.ts +34 -0
- package/polar-js-main/src/models/components/webhookordercreatedpayload.ts +96 -0
- package/polar-js-main/src/models/components/webhookorderpaidpayload.ts +89 -0
- package/polar-js-main/src/models/components/webhookorderrefundedpayload.ts +89 -0
- package/polar-js-main/src/models/components/webhookorderupdatedpayload.ts +92 -0
- package/polar-js-main/src/models/components/webhookorganizationupdatedpayload.ts +90 -0
- package/polar-js-main/src/models/components/webhookproductcreatedpayload.ts +92 -0
- package/polar-js-main/src/models/components/webhookproductupdatedpayload.ts +92 -0
- package/polar-js-main/src/models/components/webhookrefundcreatedpayload.ts +89 -0
- package/polar-js-main/src/models/components/webhookrefundupdatedpayload.ts +89 -0
- package/polar-js-main/src/models/components/webhooksubscriptionactivepayload.ts +90 -0
- package/polar-js-main/src/models/components/webhooksubscriptioncanceledpayload.ts +92 -0
- package/polar-js-main/src/models/components/webhooksubscriptioncreatedpayload.ts +92 -0
- package/polar-js-main/src/models/components/webhooksubscriptionrevokedpayload.ts +91 -0
- package/polar-js-main/src/models/components/webhooksubscriptionuncanceledpayload.ts +92 -0
- package/polar-js-main/src/models/components/webhooksubscriptionupdatedpayload.ts +94 -0
- package/polar-js-main/src/models/components/webtokenrequest.ts +133 -0
- package/polar-js-main/src/models/errors/alreadyactivesubscriptionerror.ts +85 -0
- package/polar-js-main/src/models/errors/alreadycanceledsubscription.ts +85 -0
- package/polar-js-main/src/models/errors/checkoutforbiddenerror.ts +90 -0
- package/polar-js-main/src/models/errors/customernotready.ts +85 -0
- package/polar-js-main/src/models/errors/customerportalordersgenerateinvoice.ts +97 -0
- package/polar-js-main/src/models/errors/expiredcheckouterror.ts +85 -0
- package/polar-js-main/src/models/errors/httpclienterrors.ts +62 -0
- package/polar-js-main/src/models/errors/httpvalidationerror.ts +85 -0
- package/polar-js-main/src/models/errors/missinginvoicebillingdetails.ts +85 -0
- package/polar-js-main/src/models/errors/missingpaymentmethoderror.ts +85 -0
- package/polar-js-main/src/models/errors/notopencheckout.ts +85 -0
- package/polar-js-main/src/models/errors/notpaidorder.ts +85 -0
- package/polar-js-main/src/models/errors/notpermitted.ts +85 -0
- package/polar-js-main/src/models/errors/ordernoteligibleforretry.ts +85 -0
- package/polar-js-main/src/models/errors/ordersgenerateinvoice.ts +97 -0
- package/polar-js-main/src/models/errors/paymentalreadyinprogress.ts +85 -0
- package/polar-js-main/src/models/errors/paymenterror.ts +85 -0
- package/polar-js-main/src/models/errors/paymentintentfailederror.ts +85 -0
- package/polar-js-main/src/models/errors/paymentmethodinusebyactivesubscription.ts +87 -0
- package/polar-js-main/src/models/errors/paymentnotready.ts +85 -0
- package/polar-js-main/src/models/errors/polarerror.ts +35 -0
- package/polar-js-main/src/models/errors/refundamounttoohigh.ts +85 -0
- package/polar-js-main/src/models/errors/refundedalready.ts +85 -0
- package/polar-js-main/src/models/errors/resourcenotfound.ts +85 -0
- package/polar-js-main/src/models/errors/responsevalidationerror.ts +50 -0
- package/polar-js-main/src/models/errors/sdkerror.ts +40 -0
- package/polar-js-main/src/models/errors/sdkvalidationerror.ts +109 -0
- package/polar-js-main/src/models/errors/subscriptionlocked.ts +85 -0
- package/polar-js-main/src/models/errors/unauthorized.ts +85 -0
- package/polar-js-main/src/models/operations/benefitgrantslist.ts +340 -0
- package/polar-js-main/src/models/operations/benefitsdelete.ts +66 -0
- package/polar-js-main/src/models/operations/benefitsget.ts +66 -0
- package/polar-js-main/src/models/operations/benefitsgrants.ts +231 -0
- package/polar-js-main/src/models/operations/benefitslist.ts +324 -0
- package/polar-js-main/src/models/operations/benefitsupdate.ts +219 -0
- package/polar-js-main/src/models/operations/checkoutlinksdelete.ts +69 -0
- package/polar-js-main/src/models/operations/checkoutlinksget.ts +69 -0
- package/polar-js-main/src/models/operations/checkoutlinkslist.ts +325 -0
- package/polar-js-main/src/models/operations/checkoutlinksupdate.ts +88 -0
- package/polar-js-main/src/models/operations/checkoutsclientconfirm.ts +92 -0
- package/polar-js-main/src/models/operations/checkoutsclientget.ts +78 -0
- package/polar-js-main/src/models/operations/checkoutsclientupdate.ts +92 -0
- package/polar-js-main/src/models/operations/checkoutsget.ts +69 -0
- package/polar-js-main/src/models/operations/checkoutslist.ts +478 -0
- package/polar-js-main/src/models/operations/checkoutsupdate.ts +88 -0
- package/polar-js-main/src/models/operations/customermetersget.ts +69 -0
- package/polar-js-main/src/models/operations/customermeterslist.ts +475 -0
- package/polar-js-main/src/models/operations/customerportalbenefitgrantsget.ts +147 -0
- package/polar-js-main/src/models/operations/customerportalbenefitgrantslist.ts +605 -0
- package/polar-js-main/src/models/operations/customerportalbenefitgrantsupdate.ts +177 -0
- package/polar-js-main/src/models/operations/customerportalcustomermetersget.ts +153 -0
- package/polar-js-main/src/models/operations/customerportalcustomermeterslist.ts +333 -0
- package/polar-js-main/src/models/operations/customerportalcustomersaddpaymentmethod.ts +89 -0
- package/polar-js-main/src/models/operations/customerportalcustomersconfirmpaymentmethod.ts +89 -0
- package/polar-js-main/src/models/operations/customerportalcustomersdeletepaymentmethod.ts +161 -0
- package/polar-js-main/src/models/operations/customerportalcustomersessionintrospect.ts +89 -0
- package/polar-js-main/src/models/operations/customerportalcustomersget.ts +79 -0
- package/polar-js-main/src/models/operations/customerportalcustomerslistpaymentmethods.ts +257 -0
- package/polar-js-main/src/models/operations/customerportalcustomersupdate.ts +80 -0
- package/polar-js-main/src/models/operations/customerportaldownloadableslist.ts +327 -0
- package/polar-js-main/src/models/operations/customerportallicensekeysget.ts +143 -0
- package/polar-js-main/src/models/operations/customerportallicensekeyslist.ts +245 -0
- package/polar-js-main/src/models/operations/customerportalordersconfirmretrypayment.ts +182 -0
- package/polar-js-main/src/models/operations/customerportalordersgenerateinvoice.ts +159 -0
- package/polar-js-main/src/models/operations/customerportalordersget.ts +140 -0
- package/polar-js-main/src/models/operations/customerportalordersgetpaymentstatus.ts +162 -0
- package/polar-js-main/src/models/operations/customerportalordersinvoice.ts +145 -0
- package/polar-js-main/src/models/operations/customerportalorderslist.ts +512 -0
- package/polar-js-main/src/models/operations/customerportalordersupdate.ts +161 -0
- package/polar-js-main/src/models/operations/customerportalorganizationsget.ts +74 -0
- package/polar-js-main/src/models/operations/customerportalseatsassignseat.ts +80 -0
- package/polar-js-main/src/models/operations/customerportalseatslistclaimedsubscriptions.ts +89 -0
- package/polar-js-main/src/models/operations/customerportalseatslistseats.ts +163 -0
- package/polar-js-main/src/models/operations/customerportalseatsresendinvitation.ts +164 -0
- package/polar-js-main/src/models/operations/customerportalseatsrevokeseat.ts +151 -0
- package/polar-js-main/src/models/operations/customerportalsubscriptionscancel.ts +159 -0
- package/polar-js-main/src/models/operations/customerportalsubscriptionsget.ts +147 -0
- package/polar-js-main/src/models/operations/customerportalsubscriptionslist.ts +355 -0
- package/polar-js-main/src/models/operations/customerportalsubscriptionsupdate.ts +177 -0
- package/polar-js-main/src/models/operations/customerportalwalletsget.ts +140 -0
- package/polar-js-main/src/models/operations/customerportalwalletslist.ts +237 -0
- package/polar-js-main/src/models/operations/customersdelete.ts +69 -0
- package/polar-js-main/src/models/operations/customersdeleteexternal.ts +80 -0
- package/polar-js-main/src/models/operations/customerseatsgetclaiminfo.ts +77 -0
- package/polar-js-main/src/models/operations/customerseatslistseats.ts +83 -0
- package/polar-js-main/src/models/operations/customerseatsresendinvitation.ts +80 -0
- package/polar-js-main/src/models/operations/customerseatsrevokeseat.ts +77 -0
- package/polar-js-main/src/models/operations/customersessionscreate.ts +93 -0
- package/polar-js-main/src/models/operations/customersexport.ts +146 -0
- package/polar-js-main/src/models/operations/customersget.ts +69 -0
- package/polar-js-main/src/models/operations/customersgetbalance.ts +69 -0
- package/polar-js-main/src/models/operations/customersgetexternal.ts +80 -0
- package/polar-js-main/src/models/operations/customersgetstate.ts +69 -0
- package/polar-js-main/src/models/operations/customersgetstateexternal.ts +80 -0
- package/polar-js-main/src/models/operations/customerslist.ts +275 -0
- package/polar-js-main/src/models/operations/customersupdate.ts +88 -0
- package/polar-js-main/src/models/operations/customersupdateexternal.ts +92 -0
- package/polar-js-main/src/models/operations/customfieldsdelete.ts +69 -0
- package/polar-js-main/src/models/operations/customfieldsget.ts +69 -0
- package/polar-js-main/src/models/operations/customfieldslist.ts +341 -0
- package/polar-js-main/src/models/operations/customfieldsupdate.ts +88 -0
- package/polar-js-main/src/models/operations/discountsdelete.ts +69 -0
- package/polar-js-main/src/models/operations/discountsget.ts +69 -0
- package/polar-js-main/src/models/operations/discountslist.ts +255 -0
- package/polar-js-main/src/models/operations/discountsupdate.ts +88 -0
- package/polar-js-main/src/models/operations/eventsget.ts +69 -0
- package/polar-js-main/src/models/operations/eventslist.ts +580 -0
- package/polar-js-main/src/models/operations/eventslistnames.ts +484 -0
- package/polar-js-main/src/models/operations/filesdelete.ts +66 -0
- package/polar-js-main/src/models/operations/fileslist.ts +288 -0
- package/polar-js-main/src/models/operations/filesupdate.ts +199 -0
- package/polar-js-main/src/models/operations/filesuploaded.ts +201 -0
- package/polar-js-main/src/models/operations/licensekeysget.ts +66 -0
- package/polar-js-main/src/models/operations/licensekeysgetactivation.ts +81 -0
- package/polar-js-main/src/models/operations/licensekeyslist.ts +298 -0
- package/polar-js-main/src/models/operations/licensekeysupdate.ts +85 -0
- package/polar-js-main/src/models/operations/metersget.ts +69 -0
- package/polar-js-main/src/models/operations/meterslist.ts +273 -0
- package/polar-js-main/src/models/operations/metersquantities.ts +296 -0
- package/polar-js-main/src/models/operations/metersupdate.ts +88 -0
- package/polar-js-main/src/models/operations/metricsget.ts +418 -0
- package/polar-js-main/src/models/operations/oauth2authorize.ts +105 -0
- package/polar-js-main/src/models/operations/oauth2clientsoauth2deleteclient.ts +81 -0
- package/polar-js-main/src/models/operations/oauth2clientsoauth2getclient.ts +80 -0
- package/polar-js-main/src/models/operations/oauth2clientsoauth2updateclient.ts +95 -0
- package/polar-js-main/src/models/operations/oauth2requesttoken.ts +92 -0
- package/polar-js-main/src/models/operations/oauth2userinfo.ts +82 -0
- package/polar-js-main/src/models/operations/ordersexport.ts +214 -0
- package/polar-js-main/src/models/operations/ordersgenerateinvoice.ts +71 -0
- package/polar-js-main/src/models/operations/ordersget.ts +69 -0
- package/polar-js-main/src/models/operations/ordersinvoice.ts +69 -0
- package/polar-js-main/src/models/operations/orderslist.ts +611 -0
- package/polar-js-main/src/models/operations/ordersupdate.ts +88 -0
- package/polar-js-main/src/models/operations/organizationsget.ts +66 -0
- package/polar-js-main/src/models/operations/organizationslist.ts +170 -0
- package/polar-js-main/src/models/operations/organizationsupdate.ts +85 -0
- package/polar-js-main/src/models/operations/paymentsget.ts +69 -0
- package/polar-js-main/src/models/operations/paymentslist.ts +584 -0
- package/polar-js-main/src/models/operations/productsget.ts +66 -0
- package/polar-js-main/src/models/operations/productslist.ts +401 -0
- package/polar-js-main/src/models/operations/productsupdate.ts +85 -0
- package/polar-js-main/src/models/operations/productsupdatebenefits.ts +87 -0
- package/polar-js-main/src/models/operations/refundslist.ts +500 -0
- package/polar-js-main/src/models/operations/subscriptionscreate.ts +85 -0
- package/polar-js-main/src/models/operations/subscriptionsexport.ts +129 -0
- package/polar-js-main/src/models/operations/subscriptionsget.ts +69 -0
- package/polar-js-main/src/models/operations/subscriptionslist.ts +505 -0
- package/polar-js-main/src/models/operations/subscriptionsrevoke.ts +69 -0
- package/polar-js-main/src/models/operations/subscriptionsupdate.ts +88 -0
- package/polar-js-main/src/models/operations/walletsget.ts +69 -0
- package/polar-js-main/src/models/operations/walletslist.ts +315 -0
- package/polar-js-main/src/models/operations/walletstopup.ts +88 -0
- package/polar-js-main/src/models/operations/webhooksdeletewebhookendpoint.ts +74 -0
- package/polar-js-main/src/models/operations/webhooksgetwebhookendpoint.ts +72 -0
- package/polar-js-main/src/models/operations/webhookslistwebhookdeliveries.ts +247 -0
- package/polar-js-main/src/models/operations/webhookslistwebhookendpoints.ts +229 -0
- package/polar-js-main/src/models/operations/webhooksredeliverwebhookevent.ts +74 -0
- package/polar-js-main/src/models/operations/webhooksresetwebhookendpointsecret.ts +81 -0
- package/polar-js-main/src/models/operations/webhooksupdatewebhookendpoint.ts +93 -0
- package/polar-js-main/src/sdk/benefitgrants.ts +32 -0
- package/polar-js-main/src/sdk/benefits.ts +148 -0
- package/polar-js-main/src/sdk/checkoutlinks.ts +118 -0
- package/polar-js-main/src/sdk/checkouts.ts +158 -0
- package/polar-js-main/src/sdk/clients.ts +84 -0
- package/polar-js-main/src/sdk/customermeters.ts +55 -0
- package/polar-js-main/src/sdk/customerportal.ts +73 -0
- package/polar-js-main/src/sdk/customers.ts +293 -0
- package/polar-js-main/src/sdk/customerseats.ts +120 -0
- package/polar-js-main/src/sdk/customersession.ts +30 -0
- package/polar-js-main/src/sdk/customersessions.ts +30 -0
- package/polar-js-main/src/sdk/customfields.ts +118 -0
- package/polar-js-main/src/sdk/discounts.ts +118 -0
- package/polar-js-main/src/sdk/downloadables.ts +35 -0
- package/polar-js-main/src/sdk/events.ts +101 -0
- package/polar-js-main/src/sdk/files.ts +124 -0
- package/polar-js-main/src/sdk/licensekeys.ts +163 -0
- package/polar-js-main/src/sdk/meters.ts +119 -0
- package/polar-js-main/src/sdk/metrics.ts +51 -0
- package/polar-js-main/src/sdk/oauth2.ts +105 -0
- package/polar-js-main/src/sdk/orders.ts +140 -0
- package/polar-js-main/src/sdk/organizations.ts +97 -0
- package/polar-js-main/src/sdk/payments.ts +55 -0
- package/polar-js-main/src/sdk/polarbenefitgrants.ts +91 -0
- package/polar-js-main/src/sdk/polarcustomermeters.ts +65 -0
- package/polar-js-main/src/sdk/polarcustomers.ts +162 -0
- package/polar-js-main/src/sdk/polarlicensekeys.ts +137 -0
- package/polar-js-main/src/sdk/polarorders.ts +196 -0
- package/polar-js-main/src/sdk/polarorganizations.ts +28 -0
- package/polar-js-main/src/sdk/polarsubscriptions.ts +117 -0
- package/polar-js-main/src/sdk/polarwallets.ts +65 -0
- package/polar-js-main/src/sdk/products.ts +118 -0
- package/polar-js-main/src/sdk/refunds.ts +55 -0
- package/polar-js-main/src/sdk/sdk.ts +157 -0
- package/polar-js-main/src/sdk/seats.ts +126 -0
- package/polar-js-main/src/sdk/subscriptions.ts +144 -0
- package/polar-js-main/src/sdk/wallets.ts +78 -0
- package/polar-js-main/src/sdk/webhooks.ts +190 -0
- package/polar-js-main/src/test.ts +0 -0
- package/polar-js-main/src/types/async.ts +68 -0
- package/polar-js-main/src/types/blobs.ts +32 -0
- package/polar-js-main/src/types/constdatetime.ts +15 -0
- package/polar-js-main/src/types/enums.ts +16 -0
- package/polar-js-main/src/types/fp.ts +50 -0
- package/polar-js-main/src/types/operations.ts +105 -0
- package/polar-js-main/src/types/rfcdate.ts +54 -0
- package/polar-js-main/src/types/streams.ts +21 -0
- package/polar-js-main/src/types/webhooks.ts +7 -0
- package/polar-js-main/src/webhooks.test.ts +116 -0
- package/polar-js-main/src/webhooks.ts +138 -0
- package/polar-js-main/tsconfig.json +41 -0
- package/src/index.ts +9 -0
- package/tsconfig.json +41 -0
package/codeSamples.yaml
ADDED
|
@@ -0,0 +1,1115 @@
|
|
|
1
|
+
overlay: 1.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: CodeSamples overlay for typescript target
|
|
4
|
+
version: 0.0.0
|
|
5
|
+
actions:
|
|
6
|
+
- target: $["paths"]["/v1/benefit-grants/"]["get"]
|
|
7
|
+
update:
|
|
8
|
+
"x-codeSamples":
|
|
9
|
+
- "lang": "typescript"
|
|
10
|
+
"label": "Typescript (SDK)"
|
|
11
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.benefitGrants.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
12
|
+
- target: $["paths"]["/v1/benefits/"]["get"]
|
|
13
|
+
update:
|
|
14
|
+
"x-codeSamples":
|
|
15
|
+
- "lang": "typescript"
|
|
16
|
+
"label": "Typescript (SDK)"
|
|
17
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.benefits.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
18
|
+
- target: $["paths"]["/v1/benefits/"]["post"]
|
|
19
|
+
update:
|
|
20
|
+
"x-codeSamples":
|
|
21
|
+
- "lang": "typescript"
|
|
22
|
+
"label": "Typescript (SDK)"
|
|
23
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.benefits.create({\n type: \"license_keys\",\n description: \"mature emergent at outside arrogantly gadzooks zealous equatorial notwithstanding\",\n properties: {},\n });\n\n console.log(result);\n}\n\nrun();"
|
|
24
|
+
- target: $["paths"]["/v1/benefits/{id}"]["delete"]
|
|
25
|
+
update:
|
|
26
|
+
"x-codeSamples":
|
|
27
|
+
- "lang": "typescript"
|
|
28
|
+
"label": "Typescript (SDK)"
|
|
29
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n await polar.benefits.delete({\n id: \"<value>\",\n });\n\n\n}\n\nrun();"
|
|
30
|
+
- target: $["paths"]["/v1/benefits/{id}"]["get"]
|
|
31
|
+
update:
|
|
32
|
+
"x-codeSamples":
|
|
33
|
+
- "lang": "typescript"
|
|
34
|
+
"label": "Typescript (SDK)"
|
|
35
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.benefits.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
36
|
+
- target: $["paths"]["/v1/benefits/{id}"]["patch"]
|
|
37
|
+
update:
|
|
38
|
+
"x-codeSamples":
|
|
39
|
+
- "lang": "typescript"
|
|
40
|
+
"label": "Typescript (SDK)"
|
|
41
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.benefits.update({\n id: \"<value>\",\n requestBody: {\n type: \"meter_credit\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
42
|
+
- target: $["paths"]["/v1/benefits/{id}/grants"]["get"]
|
|
43
|
+
update:
|
|
44
|
+
"x-codeSamples":
|
|
45
|
+
- "lang": "typescript"
|
|
46
|
+
"label": "Typescript (SDK)"
|
|
47
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.benefits.grants({\n id: \"<value>\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
48
|
+
- target: $["paths"]["/v1/checkout-links/"]["get"]
|
|
49
|
+
update:
|
|
50
|
+
"x-codeSamples":
|
|
51
|
+
- "lang": "typescript"
|
|
52
|
+
"label": "Typescript (SDK)"
|
|
53
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkoutLinks.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
54
|
+
- target: $["paths"]["/v1/checkout-links/"]["post"]
|
|
55
|
+
update:
|
|
56
|
+
"x-codeSamples":
|
|
57
|
+
- "lang": "typescript"
|
|
58
|
+
"label": "Typescript (SDK)"
|
|
59
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkoutLinks.create({\n paymentProcessor: \"stripe\",\n allowDiscountCodes: true,\n requireBillingAddress: false,\n productPriceId: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
60
|
+
- target: $["paths"]["/v1/checkout-links/{id}"]["delete"]
|
|
61
|
+
update:
|
|
62
|
+
"x-codeSamples":
|
|
63
|
+
- "lang": "typescript"
|
|
64
|
+
"label": "Typescript (SDK)"
|
|
65
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n await polar.checkoutLinks.delete({\n id: \"<value>\",\n });\n\n\n}\n\nrun();"
|
|
66
|
+
- target: $["paths"]["/v1/checkout-links/{id}"]["get"]
|
|
67
|
+
update:
|
|
68
|
+
"x-codeSamples":
|
|
69
|
+
- "lang": "typescript"
|
|
70
|
+
"label": "Typescript (SDK)"
|
|
71
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkoutLinks.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
72
|
+
- target: $["paths"]["/v1/checkout-links/{id}"]["patch"]
|
|
73
|
+
update:
|
|
74
|
+
"x-codeSamples":
|
|
75
|
+
- "lang": "typescript"
|
|
76
|
+
"label": "Typescript (SDK)"
|
|
77
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkoutLinks.update({\n id: \"<value>\",\n checkoutLinkUpdate: {},\n });\n\n console.log(result);\n}\n\nrun();"
|
|
78
|
+
- target: $["paths"]["/v1/checkouts/"]["get"]
|
|
79
|
+
update:
|
|
80
|
+
"x-codeSamples":
|
|
81
|
+
- "lang": "typescript"
|
|
82
|
+
"label": "Typescript (SDK)"
|
|
83
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkouts.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
84
|
+
- target: $["paths"]["/v1/checkouts/"]["post"]
|
|
85
|
+
update:
|
|
86
|
+
"x-codeSamples":
|
|
87
|
+
- "lang": "typescript"
|
|
88
|
+
"label": "Typescript (SDK)"
|
|
89
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkouts.create({\n customerBillingAddress: {\n country: \"US\",\n },\n products: [\n \"<value 1>\",\n \"<value 2>\",\n \"<value 3>\",\n ],\n });\n\n console.log(result);\n}\n\nrun();"
|
|
90
|
+
- target: $["paths"]["/v1/checkouts/client/{client_secret}"]["get"]
|
|
91
|
+
update:
|
|
92
|
+
"x-codeSamples":
|
|
93
|
+
- "lang": "typescript"
|
|
94
|
+
"label": "Typescript (SDK)"
|
|
95
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.checkouts.clientGet({\n clientSecret: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
96
|
+
- target: $["paths"]["/v1/checkouts/client/{client_secret}"]["patch"]
|
|
97
|
+
update:
|
|
98
|
+
"x-codeSamples":
|
|
99
|
+
- "lang": "typescript"
|
|
100
|
+
"label": "Typescript (SDK)"
|
|
101
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.checkouts.clientUpdate({\n clientSecret: \"<value>\",\n checkoutUpdatePublic: {\n customerBillingAddress: null,\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
102
|
+
- target: $["paths"]["/v1/checkouts/client/{client_secret}/confirm"]["post"]
|
|
103
|
+
update:
|
|
104
|
+
"x-codeSamples":
|
|
105
|
+
- "lang": "typescript"
|
|
106
|
+
"label": "Typescript (SDK)"
|
|
107
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkouts.clientConfirm({\n clientSecret: \"<value>\",\n checkoutConfirmStripe: {\n customerBillingAddress: {\n country: \"US\",\n },\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
108
|
+
- target: $["paths"]["/v1/checkouts/{id}"]["get"]
|
|
109
|
+
update:
|
|
110
|
+
"x-codeSamples":
|
|
111
|
+
- "lang": "typescript"
|
|
112
|
+
"label": "Typescript (SDK)"
|
|
113
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkouts.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
114
|
+
- target: $["paths"]["/v1/checkouts/{id}"]["patch"]
|
|
115
|
+
update:
|
|
116
|
+
"x-codeSamples":
|
|
117
|
+
- "lang": "typescript"
|
|
118
|
+
"label": "Typescript (SDK)"
|
|
119
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkouts.update({\n id: \"<value>\",\n checkoutUpdate: {\n customerBillingAddress: {\n country: \"US\",\n },\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
120
|
+
- target: $["paths"]["/v1/custom-fields/"]["get"]
|
|
121
|
+
update:
|
|
122
|
+
"x-codeSamples":
|
|
123
|
+
- "lang": "typescript"
|
|
124
|
+
"label": "Typescript (SDK)"
|
|
125
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customFields.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
126
|
+
- target: $["paths"]["/v1/custom-fields/"]["post"]
|
|
127
|
+
update:
|
|
128
|
+
"x-codeSamples":
|
|
129
|
+
- "lang": "typescript"
|
|
130
|
+
"label": "Typescript (SDK)"
|
|
131
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customFields.create({\n type: \"select\",\n slug: \"<value>\",\n name: \"<value>\",\n properties: {\n options: [],\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
132
|
+
- target: $["paths"]["/v1/custom-fields/{id}"]["delete"]
|
|
133
|
+
update:
|
|
134
|
+
"x-codeSamples":
|
|
135
|
+
- "lang": "typescript"
|
|
136
|
+
"label": "Typescript (SDK)"
|
|
137
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n await polar.customFields.delete({\n id: \"<value>\",\n });\n\n\n}\n\nrun();"
|
|
138
|
+
- target: $["paths"]["/v1/custom-fields/{id}"]["get"]
|
|
139
|
+
update:
|
|
140
|
+
"x-codeSamples":
|
|
141
|
+
- "lang": "typescript"
|
|
142
|
+
"label": "Typescript (SDK)"
|
|
143
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customFields.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
144
|
+
- target: $["paths"]["/v1/custom-fields/{id}"]["patch"]
|
|
145
|
+
update:
|
|
146
|
+
"x-codeSamples":
|
|
147
|
+
- "lang": "typescript"
|
|
148
|
+
"label": "Typescript (SDK)"
|
|
149
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customFields.update({\n id: \"<value>\",\n customFieldUpdate: {\n type: \"date\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
150
|
+
- target: $["paths"]["/v1/customer-meters/"]["get"]
|
|
151
|
+
update:
|
|
152
|
+
"x-codeSamples":
|
|
153
|
+
- "lang": "typescript"
|
|
154
|
+
"label": "Typescript (SDK)"
|
|
155
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customerMeters.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
156
|
+
- target: $["paths"]["/v1/customer-meters/{id}"]["get"]
|
|
157
|
+
update:
|
|
158
|
+
"x-codeSamples":
|
|
159
|
+
- "lang": "typescript"
|
|
160
|
+
"label": "Typescript (SDK)"
|
|
161
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customerMeters.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
162
|
+
- target: $["paths"]["/v1/customer-portal/benefit-grants/"]["get"]
|
|
163
|
+
update:
|
|
164
|
+
"x-codeSamples":
|
|
165
|
+
- "lang": "typescript"
|
|
166
|
+
"label": "Typescript (SDK)"
|
|
167
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.benefitGrants.list({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
168
|
+
- target: $["paths"]["/v1/customer-portal/benefit-grants/{id}"]["get"]
|
|
169
|
+
update:
|
|
170
|
+
"x-codeSamples":
|
|
171
|
+
- "lang": "typescript"
|
|
172
|
+
"label": "Typescript (SDK)"
|
|
173
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.benefitGrants.get({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
174
|
+
- target: $["paths"]["/v1/customer-portal/benefit-grants/{id}"]["patch"]
|
|
175
|
+
update:
|
|
176
|
+
"x-codeSamples":
|
|
177
|
+
- "lang": "typescript"
|
|
178
|
+
"label": "Typescript (SDK)"
|
|
179
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.benefitGrants.update({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n customerBenefitGrantUpdate: {\n benefitType: \"license_keys\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
180
|
+
- target: $["paths"]["/v1/customer-portal/customer-session/introspect"]["get"]
|
|
181
|
+
update:
|
|
182
|
+
"x-codeSamples":
|
|
183
|
+
- "lang": "typescript"
|
|
184
|
+
"label": "Typescript (SDK)"
|
|
185
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.customerSession.introspect({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
186
|
+
- target: $["paths"]["/v1/customer-portal/customers/me"]["get"]
|
|
187
|
+
update:
|
|
188
|
+
"x-codeSamples":
|
|
189
|
+
- "lang": "typescript"
|
|
190
|
+
"label": "Typescript (SDK)"
|
|
191
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.customers.get({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
192
|
+
- target: $["paths"]["/v1/customer-portal/customers/me"]["patch"]
|
|
193
|
+
update:
|
|
194
|
+
"x-codeSamples":
|
|
195
|
+
- "lang": "typescript"
|
|
196
|
+
"label": "Typescript (SDK)"
|
|
197
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.customers.update({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n billingAddress: {\n country: \"US\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
198
|
+
- target: $["paths"]["/v1/customer-portal/customers/me/payment-methods"]["get"]
|
|
199
|
+
update:
|
|
200
|
+
"x-codeSamples":
|
|
201
|
+
- "lang": "typescript"
|
|
202
|
+
"label": "Typescript (SDK)"
|
|
203
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.customers.listPaymentMethods({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
204
|
+
- target: $["paths"]["/v1/customer-portal/customers/me/payment-methods"]["post"]
|
|
205
|
+
update:
|
|
206
|
+
"x-codeSamples":
|
|
207
|
+
- "lang": "typescript"
|
|
208
|
+
"label": "Typescript (SDK)"
|
|
209
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.customers.addPaymentMethod({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n confirmationTokenId: \"<id>\",\n setDefault: false,\n returnUrl: \"https://yearly-custom.net/\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
210
|
+
- target: $["paths"]["/v1/customer-portal/customers/me/payment-methods/confirm"]["post"]
|
|
211
|
+
update:
|
|
212
|
+
"x-codeSamples":
|
|
213
|
+
- "lang": "typescript"
|
|
214
|
+
"label": "Typescript (SDK)"
|
|
215
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.customers.confirmPaymentMethod({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n setupIntentId: \"<id>\",\n setDefault: true,\n });\n\n console.log(result);\n}\n\nrun();"
|
|
216
|
+
- target: $["paths"]["/v1/customer-portal/customers/me/payment-methods/{id}"]["delete"]
|
|
217
|
+
update:
|
|
218
|
+
"x-codeSamples":
|
|
219
|
+
- "lang": "typescript"
|
|
220
|
+
"label": "Typescript (SDK)"
|
|
221
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n await polar.customerPortal.customers.deletePaymentMethod({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n\n}\n\nrun();"
|
|
222
|
+
- target: $["paths"]["/v1/customer-portal/downloadables/"]["get"]
|
|
223
|
+
update:
|
|
224
|
+
"x-codeSamples":
|
|
225
|
+
- "lang": "typescript"
|
|
226
|
+
"label": "Typescript (SDK)"
|
|
227
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.downloadables.list({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
228
|
+
- target: $["paths"]["/v1/customer-portal/license-keys/"]["get"]
|
|
229
|
+
update:
|
|
230
|
+
"x-codeSamples":
|
|
231
|
+
- "lang": "typescript"
|
|
232
|
+
"label": "Typescript (SDK)"
|
|
233
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.licenseKeys.list({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
234
|
+
- target: $["paths"]["/v1/customer-portal/license-keys/activate"]["post"]
|
|
235
|
+
update:
|
|
236
|
+
"x-codeSamples":
|
|
237
|
+
- "lang": "typescript"
|
|
238
|
+
"label": "Typescript (SDK)"
|
|
239
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.licenseKeys.activate({\n key: \"<key>\",\n organizationId: \"<value>\",\n label: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
240
|
+
- target: $["paths"]["/v1/customer-portal/license-keys/deactivate"]["post"]
|
|
241
|
+
update:
|
|
242
|
+
"x-codeSamples":
|
|
243
|
+
- "lang": "typescript"
|
|
244
|
+
"label": "Typescript (SDK)"
|
|
245
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n await polar.customerPortal.licenseKeys.deactivate({\n key: \"<key>\",\n organizationId: \"<value>\",\n activationId: \"<value>\",\n });\n\n\n}\n\nrun();"
|
|
246
|
+
- target: $["paths"]["/v1/customer-portal/license-keys/validate"]["post"]
|
|
247
|
+
update:
|
|
248
|
+
"x-codeSamples":
|
|
249
|
+
- "lang": "typescript"
|
|
250
|
+
"label": "Typescript (SDK)"
|
|
251
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.licenseKeys.validate({\n key: \"<key>\",\n organizationId: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
252
|
+
- target: $["paths"]["/v1/customer-portal/license-keys/{id}"]["get"]
|
|
253
|
+
update:
|
|
254
|
+
"x-codeSamples":
|
|
255
|
+
- "lang": "typescript"
|
|
256
|
+
"label": "Typescript (SDK)"
|
|
257
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.licenseKeys.get({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
258
|
+
- target: $["paths"]["/v1/customer-portal/meters/"]["get"]
|
|
259
|
+
update:
|
|
260
|
+
"x-codeSamples":
|
|
261
|
+
- "lang": "typescript"
|
|
262
|
+
"label": "Typescript (SDK)"
|
|
263
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.customerMeters.list({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
264
|
+
- target: $["paths"]["/v1/customer-portal/meters/{id}"]["get"]
|
|
265
|
+
update:
|
|
266
|
+
"x-codeSamples":
|
|
267
|
+
- "lang": "typescript"
|
|
268
|
+
"label": "Typescript (SDK)"
|
|
269
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.customerMeters.get({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
270
|
+
- target: $["paths"]["/v1/customer-portal/orders/"]["get"]
|
|
271
|
+
update:
|
|
272
|
+
"x-codeSamples":
|
|
273
|
+
- "lang": "typescript"
|
|
274
|
+
"label": "Typescript (SDK)"
|
|
275
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.orders.list({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
276
|
+
- target: $["paths"]["/v1/customer-portal/orders/{id}"]["get"]
|
|
277
|
+
update:
|
|
278
|
+
"x-codeSamples":
|
|
279
|
+
- "lang": "typescript"
|
|
280
|
+
"label": "Typescript (SDK)"
|
|
281
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.orders.get({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
282
|
+
- target: $["paths"]["/v1/customer-portal/orders/{id}"]["patch"]
|
|
283
|
+
update:
|
|
284
|
+
"x-codeSamples":
|
|
285
|
+
- "lang": "typescript"
|
|
286
|
+
"label": "Typescript (SDK)"
|
|
287
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.orders.update({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n customerOrderUpdate: {\n billingName: \"<value>\",\n billingAddress: {\n country: \"US\",\n },\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
288
|
+
- target: $["paths"]["/v1/customer-portal/orders/{id}/confirm-payment"]["post"]
|
|
289
|
+
update:
|
|
290
|
+
"x-codeSamples":
|
|
291
|
+
- "lang": "typescript"
|
|
292
|
+
"label": "Typescript (SDK)"
|
|
293
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.orders.confirmRetryPayment({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n customerOrderConfirmPayment: {},\n });\n\n console.log(result);\n}\n\nrun();"
|
|
294
|
+
- target: $["paths"]["/v1/customer-portal/orders/{id}/invoice"]["get"]
|
|
295
|
+
update:
|
|
296
|
+
"x-codeSamples":
|
|
297
|
+
- "lang": "typescript"
|
|
298
|
+
"label": "Typescript (SDK)"
|
|
299
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.orders.invoice({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
300
|
+
- target: $["paths"]["/v1/customer-portal/orders/{id}/invoice"]["post"]
|
|
301
|
+
update:
|
|
302
|
+
"x-codeSamples":
|
|
303
|
+
- "lang": "typescript"
|
|
304
|
+
"label": "Typescript (SDK)"
|
|
305
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.orders.generateInvoice({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
306
|
+
- target: $["paths"]["/v1/customer-portal/orders/{id}/payment-status"]["get"]
|
|
307
|
+
update:
|
|
308
|
+
"x-codeSamples":
|
|
309
|
+
- "lang": "typescript"
|
|
310
|
+
"label": "Typescript (SDK)"
|
|
311
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.orders.getPaymentStatus({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
312
|
+
- target: $["paths"]["/v1/customer-portal/organizations/{slug}"]["get"]
|
|
313
|
+
update:
|
|
314
|
+
"x-codeSamples":
|
|
315
|
+
- "lang": "typescript"
|
|
316
|
+
"label": "Typescript (SDK)"
|
|
317
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.organizations.get({\n slug: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
318
|
+
- target: $["paths"]["/v1/customer-portal/seats"]["get"]
|
|
319
|
+
update:
|
|
320
|
+
"x-codeSamples":
|
|
321
|
+
- "lang": "typescript"
|
|
322
|
+
"label": "Typescript (SDK)"
|
|
323
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.seats.listSeats({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n console.log(result);\n}\n\nrun();"
|
|
324
|
+
- target: $["paths"]["/v1/customer-portal/seats"]["post"]
|
|
325
|
+
update:
|
|
326
|
+
"x-codeSamples":
|
|
327
|
+
- "lang": "typescript"
|
|
328
|
+
"label": "Typescript (SDK)"
|
|
329
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.seats.assignSeat({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n console.log(result);\n}\n\nrun();"
|
|
330
|
+
- target: $["paths"]["/v1/customer-portal/seats/subscriptions"]["get"]
|
|
331
|
+
update:
|
|
332
|
+
"x-codeSamples":
|
|
333
|
+
- "lang": "typescript"
|
|
334
|
+
"label": "Typescript (SDK)"
|
|
335
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.seats.listClaimedSubscriptions({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
336
|
+
- target: $["paths"]["/v1/customer-portal/seats/{seat_id}"]["delete"]
|
|
337
|
+
update:
|
|
338
|
+
"x-codeSamples":
|
|
339
|
+
- "lang": "typescript"
|
|
340
|
+
"label": "Typescript (SDK)"
|
|
341
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.seats.revokeSeat({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n seatId: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
342
|
+
- target: $["paths"]["/v1/customer-portal/seats/{seat_id}/resend"]["post"]
|
|
343
|
+
update:
|
|
344
|
+
"x-codeSamples":
|
|
345
|
+
- "lang": "typescript"
|
|
346
|
+
"label": "Typescript (SDK)"
|
|
347
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.seats.resendInvitation({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n seatId: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
348
|
+
- target: $["paths"]["/v1/customer-portal/subscriptions/"]["get"]
|
|
349
|
+
update:
|
|
350
|
+
"x-codeSamples":
|
|
351
|
+
- "lang": "typescript"
|
|
352
|
+
"label": "Typescript (SDK)"
|
|
353
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.subscriptions.list({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
354
|
+
- target: $["paths"]["/v1/customer-portal/subscriptions/{id}"]["delete"]
|
|
355
|
+
update:
|
|
356
|
+
"x-codeSamples":
|
|
357
|
+
- "lang": "typescript"
|
|
358
|
+
"label": "Typescript (SDK)"
|
|
359
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.subscriptions.cancel({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
360
|
+
- target: $["paths"]["/v1/customer-portal/subscriptions/{id}"]["get"]
|
|
361
|
+
update:
|
|
362
|
+
"x-codeSamples":
|
|
363
|
+
- "lang": "typescript"
|
|
364
|
+
"label": "Typescript (SDK)"
|
|
365
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.subscriptions.get({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
366
|
+
- target: $["paths"]["/v1/customer-portal/subscriptions/{id}"]["patch"]
|
|
367
|
+
update:
|
|
368
|
+
"x-codeSamples":
|
|
369
|
+
- "lang": "typescript"
|
|
370
|
+
"label": "Typescript (SDK)"
|
|
371
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.subscriptions.update({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n customerSubscriptionUpdate: {},\n });\n\n console.log(result);\n}\n\nrun();"
|
|
372
|
+
- target: $["paths"]["/v1/customer-portal/wallets/"]["get"]
|
|
373
|
+
update:
|
|
374
|
+
"x-codeSamples":
|
|
375
|
+
- "lang": "typescript"
|
|
376
|
+
"label": "Typescript (SDK)"
|
|
377
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.wallets.list({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
378
|
+
- target: $["paths"]["/v1/customer-portal/wallets/{id}"]["get"]
|
|
379
|
+
update:
|
|
380
|
+
"x-codeSamples":
|
|
381
|
+
- "lang": "typescript"
|
|
382
|
+
"label": "Typescript (SDK)"
|
|
383
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.wallets.get({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
384
|
+
- target: $["paths"]["/v1/customer-seats"]["get"]
|
|
385
|
+
update:
|
|
386
|
+
"x-codeSamples":
|
|
387
|
+
- "lang": "typescript"
|
|
388
|
+
"label": "Typescript (SDK)"
|
|
389
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customerSeats.listSeats({});\n\n console.log(result);\n}\n\nrun();"
|
|
390
|
+
- target: $["paths"]["/v1/customer-seats"]["post"]
|
|
391
|
+
update:
|
|
392
|
+
"x-codeSamples":
|
|
393
|
+
- "lang": "typescript"
|
|
394
|
+
"label": "Typescript (SDK)"
|
|
395
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customerSeats.assignSeat({});\n\n console.log(result);\n}\n\nrun();"
|
|
396
|
+
- target: $["paths"]["/v1/customer-seats/claim"]["post"]
|
|
397
|
+
update:
|
|
398
|
+
"x-codeSamples":
|
|
399
|
+
- "lang": "typescript"
|
|
400
|
+
"label": "Typescript (SDK)"
|
|
401
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerSeats.claimSeat({\n invitationToken: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
402
|
+
- target: $["paths"]["/v1/customer-seats/claim/{invitation_token}"]["get"]
|
|
403
|
+
update:
|
|
404
|
+
"x-codeSamples":
|
|
405
|
+
- "lang": "typescript"
|
|
406
|
+
"label": "Typescript (SDK)"
|
|
407
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerSeats.getClaimInfo({\n invitationToken: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
408
|
+
- target: $["paths"]["/v1/customer-seats/{seat_id}"]["delete"]
|
|
409
|
+
update:
|
|
410
|
+
"x-codeSamples":
|
|
411
|
+
- "lang": "typescript"
|
|
412
|
+
"label": "Typescript (SDK)"
|
|
413
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customerSeats.revokeSeat({\n seatId: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
414
|
+
- target: $["paths"]["/v1/customer-seats/{seat_id}/resend"]["post"]
|
|
415
|
+
update:
|
|
416
|
+
"x-codeSamples":
|
|
417
|
+
- "lang": "typescript"
|
|
418
|
+
"label": "Typescript (SDK)"
|
|
419
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customerSeats.resendInvitation({\n seatId: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
420
|
+
- target: $["paths"]["/v1/customer-sessions/"]["post"]
|
|
421
|
+
update:
|
|
422
|
+
"x-codeSamples":
|
|
423
|
+
- "lang": "typescript"
|
|
424
|
+
"label": "Typescript (SDK)"
|
|
425
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customerSessions.create({\n returnUrl: \"https://example.com/account\",\n externalCustomerId: \"<id>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
426
|
+
- target: $["paths"]["/v1/customers/"]["get"]
|
|
427
|
+
update:
|
|
428
|
+
"x-codeSamples":
|
|
429
|
+
- "lang": "typescript"
|
|
430
|
+
"label": "Typescript (SDK)"
|
|
431
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customers.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
432
|
+
- target: $["paths"]["/v1/customers/"]["post"]
|
|
433
|
+
update:
|
|
434
|
+
"x-codeSamples":
|
|
435
|
+
- "lang": "typescript"
|
|
436
|
+
"label": "Typescript (SDK)"
|
|
437
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customers.create({\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
438
|
+
- target: $["paths"]["/v1/customers/export"]["get"]
|
|
439
|
+
update:
|
|
440
|
+
"x-codeSamples":
|
|
441
|
+
- "lang": "typescript"
|
|
442
|
+
"label": "Typescript (SDK)"
|
|
443
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customers.export({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
444
|
+
- target: $["paths"]["/v1/customers/external/{external_id}"]["delete"]
|
|
445
|
+
update:
|
|
446
|
+
"x-codeSamples":
|
|
447
|
+
- "lang": "typescript"
|
|
448
|
+
"label": "Typescript (SDK)"
|
|
449
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n await polar.customers.deleteExternal({\n externalId: \"<id>\",\n });\n\n\n}\n\nrun();"
|
|
450
|
+
- target: $["paths"]["/v1/customers/external/{external_id}"]["get"]
|
|
451
|
+
update:
|
|
452
|
+
"x-codeSamples":
|
|
453
|
+
- "lang": "typescript"
|
|
454
|
+
"label": "Typescript (SDK)"
|
|
455
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customers.getExternal({\n externalId: \"<id>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
456
|
+
- target: $["paths"]["/v1/customers/external/{external_id}"]["patch"]
|
|
457
|
+
update:
|
|
458
|
+
"x-codeSamples":
|
|
459
|
+
- "lang": "typescript"
|
|
460
|
+
"label": "Typescript (SDK)"
|
|
461
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customers.updateExternal({\n externalId: \"<id>\",\n customerUpdateExternalID: {\n email: \"customer@example.com\",\n name: \"John Doe\",\n billingAddress: null,\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
462
|
+
- target: $["paths"]["/v1/customers/external/{external_id}/state"]["get"]
|
|
463
|
+
update:
|
|
464
|
+
"x-codeSamples":
|
|
465
|
+
- "lang": "typescript"
|
|
466
|
+
"label": "Typescript (SDK)"
|
|
467
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customers.getStateExternal({\n externalId: \"<id>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
468
|
+
- target: $["paths"]["/v1/customers/{id}"]["delete"]
|
|
469
|
+
update:
|
|
470
|
+
"x-codeSamples":
|
|
471
|
+
- "lang": "typescript"
|
|
472
|
+
"label": "Typescript (SDK)"
|
|
473
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n await polar.customers.delete({\n id: \"<value>\",\n });\n\n\n}\n\nrun();"
|
|
474
|
+
- target: $["paths"]["/v1/customers/{id}"]["get"]
|
|
475
|
+
update:
|
|
476
|
+
"x-codeSamples":
|
|
477
|
+
- "lang": "typescript"
|
|
478
|
+
"label": "Typescript (SDK)"
|
|
479
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customers.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
480
|
+
- target: $["paths"]["/v1/customers/{id}"]["patch"]
|
|
481
|
+
update:
|
|
482
|
+
"x-codeSamples":
|
|
483
|
+
- "lang": "typescript"
|
|
484
|
+
"label": "Typescript (SDK)"
|
|
485
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customers.update({\n id: \"<value>\",\n customerUpdate: {\n email: \"customer@example.com\",\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n externalId: \"usr_1337\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
486
|
+
- target: $["paths"]["/v1/customers/{id}/balance"]["get"]
|
|
487
|
+
update:
|
|
488
|
+
"x-codeSamples":
|
|
489
|
+
- "lang": "typescript"
|
|
490
|
+
"label": "Typescript (SDK)"
|
|
491
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customers.getBalance({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
492
|
+
- target: $["paths"]["/v1/customers/{id}/state"]["get"]
|
|
493
|
+
update:
|
|
494
|
+
"x-codeSamples":
|
|
495
|
+
- "lang": "typescript"
|
|
496
|
+
"label": "Typescript (SDK)"
|
|
497
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customers.getState({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
498
|
+
- target: $["paths"]["/v1/discounts/"]["get"]
|
|
499
|
+
update:
|
|
500
|
+
"x-codeSamples":
|
|
501
|
+
- "lang": "typescript"
|
|
502
|
+
"label": "Typescript (SDK)"
|
|
503
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.discounts.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
504
|
+
- target: $["paths"]["/v1/discounts/"]["post"]
|
|
505
|
+
update:
|
|
506
|
+
"x-codeSamples":
|
|
507
|
+
- "lang": "typescript"
|
|
508
|
+
"label": "Typescript (SDK)"
|
|
509
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.discounts.create({\n duration: \"once\",\n type: \"fixed\",\n basisPoints: 449604,\n name: \"<value>\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
510
|
+
- target: $["paths"]["/v1/discounts/{id}"]["delete"]
|
|
511
|
+
update:
|
|
512
|
+
"x-codeSamples":
|
|
513
|
+
- "lang": "typescript"
|
|
514
|
+
"label": "Typescript (SDK)"
|
|
515
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n await polar.discounts.delete({\n id: \"<value>\",\n });\n\n\n}\n\nrun();"
|
|
516
|
+
- target: $["paths"]["/v1/discounts/{id}"]["get"]
|
|
517
|
+
update:
|
|
518
|
+
"x-codeSamples":
|
|
519
|
+
- "lang": "typescript"
|
|
520
|
+
"label": "Typescript (SDK)"
|
|
521
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.discounts.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
522
|
+
- target: $["paths"]["/v1/discounts/{id}"]["patch"]
|
|
523
|
+
update:
|
|
524
|
+
"x-codeSamples":
|
|
525
|
+
- "lang": "typescript"
|
|
526
|
+
"label": "Typescript (SDK)"
|
|
527
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.discounts.update({\n id: \"<value>\",\n discountUpdate: {},\n });\n\n console.log(result);\n}\n\nrun();"
|
|
528
|
+
- target: $["paths"]["/v1/events/"]["get"]
|
|
529
|
+
update:
|
|
530
|
+
"x-codeSamples":
|
|
531
|
+
- "lang": "typescript"
|
|
532
|
+
"label": "Typescript (SDK)"
|
|
533
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.events.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
534
|
+
- target: $["paths"]["/v1/events/ingest"]["post"]
|
|
535
|
+
update:
|
|
536
|
+
"x-codeSamples":
|
|
537
|
+
- "lang": "typescript"
|
|
538
|
+
"label": "Typescript (SDK)"
|
|
539
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.events.ingest({\n events: [],\n });\n\n console.log(result);\n}\n\nrun();"
|
|
540
|
+
- target: $["paths"]["/v1/events/names"]["get"]
|
|
541
|
+
update:
|
|
542
|
+
"x-codeSamples":
|
|
543
|
+
- "lang": "typescript"
|
|
544
|
+
"label": "Typescript (SDK)"
|
|
545
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.events.listNames({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
546
|
+
- target: $["paths"]["/v1/events/{id}"]["get"]
|
|
547
|
+
update:
|
|
548
|
+
"x-codeSamples":
|
|
549
|
+
- "lang": "typescript"
|
|
550
|
+
"label": "Typescript (SDK)"
|
|
551
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.events.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
552
|
+
- target: $["paths"]["/v1/files/"]["get"]
|
|
553
|
+
update:
|
|
554
|
+
"x-codeSamples":
|
|
555
|
+
- "lang": "typescript"
|
|
556
|
+
"label": "Typescript (SDK)"
|
|
557
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.files.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
558
|
+
- target: $["paths"]["/v1/files/"]["post"]
|
|
559
|
+
update:
|
|
560
|
+
"x-codeSamples":
|
|
561
|
+
- "lang": "typescript"
|
|
562
|
+
"label": "Typescript (SDK)"
|
|
563
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.files.create({\n name: \"<value>\",\n mimeType: \"<value>\",\n size: 612128,\n upload: {\n parts: [],\n },\n service: \"downloadable\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
564
|
+
- target: $["paths"]["/v1/files/{id}"]["delete"]
|
|
565
|
+
update:
|
|
566
|
+
"x-codeSamples":
|
|
567
|
+
- "lang": "typescript"
|
|
568
|
+
"label": "Typescript (SDK)"
|
|
569
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n await polar.files.delete({\n id: \"<value>\",\n });\n\n\n}\n\nrun();"
|
|
570
|
+
- target: $["paths"]["/v1/files/{id}"]["patch"]
|
|
571
|
+
update:
|
|
572
|
+
"x-codeSamples":
|
|
573
|
+
- "lang": "typescript"
|
|
574
|
+
"label": "Typescript (SDK)"
|
|
575
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.files.update({\n id: \"<value>\",\n filePatch: {},\n });\n\n console.log(result);\n}\n\nrun();"
|
|
576
|
+
- target: $["paths"]["/v1/files/{id}/uploaded"]["post"]
|
|
577
|
+
update:
|
|
578
|
+
"x-codeSamples":
|
|
579
|
+
- "lang": "typescript"
|
|
580
|
+
"label": "Typescript (SDK)"
|
|
581
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.files.uploaded({\n id: \"<value>\",\n fileUploadCompleted: {\n id: \"<id>\",\n path: \"/boot\",\n parts: [\n {\n number: 979613,\n checksumEtag: \"<value>\",\n checksumSha256Base64: \"<value>\",\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
582
|
+
- target: $["paths"]["/v1/license-keys/"]["get"]
|
|
583
|
+
update:
|
|
584
|
+
"x-codeSamples":
|
|
585
|
+
- "lang": "typescript"
|
|
586
|
+
"label": "Typescript (SDK)"
|
|
587
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.licenseKeys.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
588
|
+
- target: $["paths"]["/v1/license-keys/activate"]["post"]
|
|
589
|
+
update:
|
|
590
|
+
"x-codeSamples":
|
|
591
|
+
- "lang": "typescript"
|
|
592
|
+
"label": "Typescript (SDK)"
|
|
593
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.licenseKeys.activate({\n key: \"<key>\",\n organizationId: \"<value>\",\n label: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
594
|
+
- target: $["paths"]["/v1/license-keys/deactivate"]["post"]
|
|
595
|
+
update:
|
|
596
|
+
"x-codeSamples":
|
|
597
|
+
- "lang": "typescript"
|
|
598
|
+
"label": "Typescript (SDK)"
|
|
599
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n await polar.licenseKeys.deactivate({\n key: \"<key>\",\n organizationId: \"<value>\",\n activationId: \"<value>\",\n });\n\n\n}\n\nrun();"
|
|
600
|
+
- target: $["paths"]["/v1/license-keys/validate"]["post"]
|
|
601
|
+
update:
|
|
602
|
+
"x-codeSamples":
|
|
603
|
+
- "lang": "typescript"
|
|
604
|
+
"label": "Typescript (SDK)"
|
|
605
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.licenseKeys.validate({\n key: \"<key>\",\n organizationId: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
606
|
+
- target: $["paths"]["/v1/license-keys/{id}"]["get"]
|
|
607
|
+
update:
|
|
608
|
+
"x-codeSamples":
|
|
609
|
+
- "lang": "typescript"
|
|
610
|
+
"label": "Typescript (SDK)"
|
|
611
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.licenseKeys.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
612
|
+
- target: $["paths"]["/v1/license-keys/{id}"]["patch"]
|
|
613
|
+
update:
|
|
614
|
+
"x-codeSamples":
|
|
615
|
+
- "lang": "typescript"
|
|
616
|
+
"label": "Typescript (SDK)"
|
|
617
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.licenseKeys.update({\n id: \"<value>\",\n licenseKeyUpdate: {},\n });\n\n console.log(result);\n}\n\nrun();"
|
|
618
|
+
- target: $["paths"]["/v1/license-keys/{id}/activations/{activation_id}"]["get"]
|
|
619
|
+
update:
|
|
620
|
+
"x-codeSamples":
|
|
621
|
+
- "lang": "typescript"
|
|
622
|
+
"label": "Typescript (SDK)"
|
|
623
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.licenseKeys.getActivation({\n id: \"<value>\",\n activationId: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
624
|
+
- target: $["paths"]["/v1/meters/"]["get"]
|
|
625
|
+
update:
|
|
626
|
+
"x-codeSamples":
|
|
627
|
+
- "lang": "typescript"
|
|
628
|
+
"label": "Typescript (SDK)"
|
|
629
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.meters.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
630
|
+
- target: $["paths"]["/v1/meters/"]["post"]
|
|
631
|
+
update:
|
|
632
|
+
"x-codeSamples":
|
|
633
|
+
- "lang": "typescript"
|
|
634
|
+
"label": "Typescript (SDK)"
|
|
635
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.meters.create({\n name: \"<value>\",\n filter: {\n conjunction: \"or\",\n clauses: [],\n },\n aggregation: {\n func: \"count\",\n },\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
636
|
+
- target: $["paths"]["/v1/meters/{id}"]["get"]
|
|
637
|
+
update:
|
|
638
|
+
"x-codeSamples":
|
|
639
|
+
- "lang": "typescript"
|
|
640
|
+
"label": "Typescript (SDK)"
|
|
641
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.meters.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
642
|
+
- target: $["paths"]["/v1/meters/{id}"]["patch"]
|
|
643
|
+
update:
|
|
644
|
+
"x-codeSamples":
|
|
645
|
+
- "lang": "typescript"
|
|
646
|
+
"label": "Typescript (SDK)"
|
|
647
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.meters.update({\n id: \"<value>\",\n meterUpdate: {},\n });\n\n console.log(result);\n}\n\nrun();"
|
|
648
|
+
- target: $["paths"]["/v1/meters/{id}/quantities"]["get"]
|
|
649
|
+
update:
|
|
650
|
+
"x-codeSamples":
|
|
651
|
+
- "lang": "typescript"
|
|
652
|
+
"label": "Typescript (SDK)"
|
|
653
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.meters.quantities({\n id: \"<value>\",\n startTimestamp: new Date(\"2025-11-25T04:37:16.823Z\"),\n endTimestamp: new Date(\"2025-11-26T17:06:00.727Z\"),\n interval: \"day\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
654
|
+
- target: $["paths"]["/v1/metrics/"]["get"]
|
|
655
|
+
update:
|
|
656
|
+
"x-codeSamples":
|
|
657
|
+
- "lang": "typescript"
|
|
658
|
+
"label": "Typescript (SDK)"
|
|
659
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\nimport { RFCDate } from \"@polar-sh/sdk/types/rfcdate.js\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.metrics.get({\n startDate: new RFCDate(\"2025-03-14\"),\n endDate: new RFCDate(\"2025-03-18\"),\n interval: \"hour\",\n organizationId: null,\n });\n\n console.log(result);\n}\n\nrun();"
|
|
660
|
+
- target: $["paths"]["/v1/metrics/limits"]["get"]
|
|
661
|
+
update:
|
|
662
|
+
"x-codeSamples":
|
|
663
|
+
- "lang": "typescript"
|
|
664
|
+
"label": "Typescript (SDK)"
|
|
665
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.metrics.limits();\n\n console.log(result);\n}\n\nrun();"
|
|
666
|
+
- target: $["paths"]["/v1/oauth2/authorize"]["get"]
|
|
667
|
+
update:
|
|
668
|
+
"x-codeSamples":
|
|
669
|
+
- "lang": "typescript"
|
|
670
|
+
"label": "Typescript (SDK)"
|
|
671
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.oauth2.authorize();\n\n console.log(result);\n}\n\nrun();"
|
|
672
|
+
- target: $["paths"]["/v1/oauth2/introspect"]["post"]
|
|
673
|
+
update:
|
|
674
|
+
"x-codeSamples":
|
|
675
|
+
- "lang": "typescript"
|
|
676
|
+
"label": "Typescript (SDK)"
|
|
677
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.oauth2.introspect({\n token: \"<value>\",\n clientId: \"<id>\",\n clientSecret: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
678
|
+
- target: $["paths"]["/v1/oauth2/register"]["post"]
|
|
679
|
+
update:
|
|
680
|
+
"x-codeSamples":
|
|
681
|
+
- "lang": "typescript"
|
|
682
|
+
"label": "Typescript (SDK)"
|
|
683
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.oauth2.clients.create({\n redirectUris: [\n \"https://impolite-hippodrome.com/\",\n \"https://acidic-tomography.net/\",\n ],\n clientName: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
684
|
+
- target: $["paths"]["/v1/oauth2/register/{client_id}"]["delete"]
|
|
685
|
+
update:
|
|
686
|
+
"x-codeSamples":
|
|
687
|
+
- "lang": "typescript"
|
|
688
|
+
"label": "Typescript (SDK)"
|
|
689
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.oauth2.clients.delete({\n clientId: \"<id>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
690
|
+
- target: $["paths"]["/v1/oauth2/register/{client_id}"]["get"]
|
|
691
|
+
update:
|
|
692
|
+
"x-codeSamples":
|
|
693
|
+
- "lang": "typescript"
|
|
694
|
+
"label": "Typescript (SDK)"
|
|
695
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.oauth2.clients.get({\n clientId: \"<id>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
696
|
+
- target: $["paths"]["/v1/oauth2/register/{client_id}"]["put"]
|
|
697
|
+
update:
|
|
698
|
+
"x-codeSamples":
|
|
699
|
+
- "lang": "typescript"
|
|
700
|
+
"label": "Typescript (SDK)"
|
|
701
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.oauth2.clients.update({\n clientId: \"<id>\",\n oAuth2ClientConfigurationUpdate: {\n redirectUris: [\n \"https://classic-cantaloupe.org\",\n \"https://corrupt-status.biz/\",\n ],\n clientName: \"<value>\",\n clientId: \"<id>\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
702
|
+
- target: $["paths"]["/v1/oauth2/revoke"]["post"]
|
|
703
|
+
update:
|
|
704
|
+
"x-codeSamples":
|
|
705
|
+
- "lang": "typescript"
|
|
706
|
+
"label": "Typescript (SDK)"
|
|
707
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.oauth2.revoke({\n token: \"<value>\",\n clientId: \"<id>\",\n clientSecret: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
708
|
+
- target: $["paths"]["/v1/oauth2/token"]["post"]
|
|
709
|
+
update:
|
|
710
|
+
"x-codeSamples":
|
|
711
|
+
- "lang": "typescript"
|
|
712
|
+
"label": "Typescript (SDK)"
|
|
713
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.oauth2.token({\n grantType: \"authorization_code\",\n clientId: \"<id>\",\n clientSecret: \"<value>\",\n code: \"<value>\",\n redirectUri: \"https://memorable-season.name\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
714
|
+
- target: $["paths"]["/v1/oauth2/userinfo"]["get"]
|
|
715
|
+
update:
|
|
716
|
+
"x-codeSamples":
|
|
717
|
+
- "lang": "typescript"
|
|
718
|
+
"label": "Typescript (SDK)"
|
|
719
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.oauth2.userinfo();\n\n console.log(result);\n}\n\nrun();"
|
|
720
|
+
- target: $["paths"]["/v1/orders/"]["get"]
|
|
721
|
+
update:
|
|
722
|
+
"x-codeSamples":
|
|
723
|
+
- "lang": "typescript"
|
|
724
|
+
"label": "Typescript (SDK)"
|
|
725
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.orders.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
726
|
+
- target: $["paths"]["/v1/orders/export"]["get"]
|
|
727
|
+
update:
|
|
728
|
+
"x-codeSamples":
|
|
729
|
+
- "lang": "typescript"
|
|
730
|
+
"label": "Typescript (SDK)"
|
|
731
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.orders.export({\n organizationId: null,\n });\n\n console.log(result);\n}\n\nrun();"
|
|
732
|
+
- target: $["paths"]["/v1/orders/{id}"]["get"]
|
|
733
|
+
update:
|
|
734
|
+
"x-codeSamples":
|
|
735
|
+
- "lang": "typescript"
|
|
736
|
+
"label": "Typescript (SDK)"
|
|
737
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.orders.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
738
|
+
- target: $["paths"]["/v1/orders/{id}"]["patch"]
|
|
739
|
+
update:
|
|
740
|
+
"x-codeSamples":
|
|
741
|
+
- "lang": "typescript"
|
|
742
|
+
"label": "Typescript (SDK)"
|
|
743
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.orders.update({\n id: \"<value>\",\n orderUpdate: {\n billingName: \"<value>\",\n billingAddress: {\n country: \"US\",\n },\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
744
|
+
- target: $["paths"]["/v1/orders/{id}/invoice"]["get"]
|
|
745
|
+
update:
|
|
746
|
+
"x-codeSamples":
|
|
747
|
+
- "lang": "typescript"
|
|
748
|
+
"label": "Typescript (SDK)"
|
|
749
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.orders.invoice({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
750
|
+
- target: $["paths"]["/v1/orders/{id}/invoice"]["post"]
|
|
751
|
+
update:
|
|
752
|
+
"x-codeSamples":
|
|
753
|
+
- "lang": "typescript"
|
|
754
|
+
"label": "Typescript (SDK)"
|
|
755
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.orders.generateInvoice({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
756
|
+
- target: $["paths"]["/v1/organizations/"]["get"]
|
|
757
|
+
update:
|
|
758
|
+
"x-codeSamples":
|
|
759
|
+
- "lang": "typescript"
|
|
760
|
+
"label": "Typescript (SDK)"
|
|
761
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.organizations.list({});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
762
|
+
- target: $["paths"]["/v1/organizations/"]["post"]
|
|
763
|
+
update:
|
|
764
|
+
"x-codeSamples":
|
|
765
|
+
- "lang": "typescript"
|
|
766
|
+
"label": "Typescript (SDK)"
|
|
767
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.organizations.create({\n name: \"<value>\",\n slug: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
768
|
+
- target: $["paths"]["/v1/organizations/{id}"]["get"]
|
|
769
|
+
update:
|
|
770
|
+
"x-codeSamples":
|
|
771
|
+
- "lang": "typescript"
|
|
772
|
+
"label": "Typescript (SDK)"
|
|
773
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.organizations.get({\n id: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
774
|
+
- target: $["paths"]["/v1/organizations/{id}"]["patch"]
|
|
775
|
+
update:
|
|
776
|
+
"x-codeSamples":
|
|
777
|
+
- "lang": "typescript"
|
|
778
|
+
"label": "Typescript (SDK)"
|
|
779
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.organizations.update({\n id: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n organizationUpdate: {},\n });\n\n console.log(result);\n}\n\nrun();"
|
|
780
|
+
- target: $["paths"]["/v1/payments/"]["get"]
|
|
781
|
+
update:
|
|
782
|
+
"x-codeSamples":
|
|
783
|
+
- "lang": "typescript"
|
|
784
|
+
"label": "Typescript (SDK)"
|
|
785
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.payments.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
786
|
+
- target: $["paths"]["/v1/payments/{id}"]["get"]
|
|
787
|
+
update:
|
|
788
|
+
"x-codeSamples":
|
|
789
|
+
- "lang": "typescript"
|
|
790
|
+
"label": "Typescript (SDK)"
|
|
791
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.payments.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
792
|
+
- target: $["paths"]["/v1/products/"]["get"]
|
|
793
|
+
update:
|
|
794
|
+
"x-codeSamples":
|
|
795
|
+
- "lang": "typescript"
|
|
796
|
+
"label": "Typescript (SDK)"
|
|
797
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.products.list({\n organizationId: null,\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
798
|
+
- target: $["paths"]["/v1/products/"]["post"]
|
|
799
|
+
update:
|
|
800
|
+
"x-codeSamples":
|
|
801
|
+
- "lang": "typescript"
|
|
802
|
+
"label": "Typescript (SDK)"
|
|
803
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.products.create({\n name: \"<value>\",\n prices: [\n {\n amountType: \"custom\",\n priceCurrency: \"usd\",\n },\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
804
|
+
- target: $["paths"]["/v1/products/{id}"]["get"]
|
|
805
|
+
update:
|
|
806
|
+
"x-codeSamples":
|
|
807
|
+
- "lang": "typescript"
|
|
808
|
+
"label": "Typescript (SDK)"
|
|
809
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.products.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
810
|
+
- target: $["paths"]["/v1/products/{id}"]["patch"]
|
|
811
|
+
update:
|
|
812
|
+
"x-codeSamples":
|
|
813
|
+
- "lang": "typescript"
|
|
814
|
+
"label": "Typescript (SDK)"
|
|
815
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.products.update({\n id: \"<value>\",\n productUpdate: {},\n });\n\n console.log(result);\n}\n\nrun();"
|
|
816
|
+
- target: $["paths"]["/v1/products/{id}/benefits"]["post"]
|
|
817
|
+
update:
|
|
818
|
+
"x-codeSamples":
|
|
819
|
+
- "lang": "typescript"
|
|
820
|
+
"label": "Typescript (SDK)"
|
|
821
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.products.updateBenefits({\n id: \"<value>\",\n productBenefitsUpdate: {\n benefits: [\n \"<value 1>\",\n \"<value 2>\",\n \"<value 3>\",\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
822
|
+
- target: $["paths"]["/v1/refunds/"]["get"]
|
|
823
|
+
update:
|
|
824
|
+
"x-codeSamples":
|
|
825
|
+
- "lang": "typescript"
|
|
826
|
+
"label": "Typescript (SDK)"
|
|
827
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.refunds.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
828
|
+
- target: $["paths"]["/v1/refunds/"]["post"]
|
|
829
|
+
update:
|
|
830
|
+
"x-codeSamples":
|
|
831
|
+
- "lang": "typescript"
|
|
832
|
+
"label": "Typescript (SDK)"
|
|
833
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.refunds.create({\n orderId: \"<value>\",\n reason: \"customer_request\",\n amount: 90,\n });\n\n console.log(result);\n}\n\nrun();"
|
|
834
|
+
- target: $["paths"]["/v1/subscriptions/"]["get"]
|
|
835
|
+
update:
|
|
836
|
+
"x-codeSamples":
|
|
837
|
+
- "lang": "typescript"
|
|
838
|
+
"label": "Typescript (SDK)"
|
|
839
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.subscriptions.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
840
|
+
- target: $["paths"]["/v1/subscriptions/"]["post"]
|
|
841
|
+
update:
|
|
842
|
+
"x-codeSamples":
|
|
843
|
+
- "lang": "typescript"
|
|
844
|
+
"label": "Typescript (SDK)"
|
|
845
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.subscriptions.create({\n productId: \"d8dd2de1-21b7-4a41-8bc3-ce909c0cfe23\",\n customerId: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
846
|
+
- target: $["paths"]["/v1/subscriptions/export"]["get"]
|
|
847
|
+
update:
|
|
848
|
+
"x-codeSamples":
|
|
849
|
+
- "lang": "typescript"
|
|
850
|
+
"label": "Typescript (SDK)"
|
|
851
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.subscriptions.export({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
852
|
+
- target: $["paths"]["/v1/subscriptions/{id}"]["delete"]
|
|
853
|
+
update:
|
|
854
|
+
"x-codeSamples":
|
|
855
|
+
- "lang": "typescript"
|
|
856
|
+
"label": "Typescript (SDK)"
|
|
857
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.subscriptions.revoke({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
858
|
+
- target: $["paths"]["/v1/subscriptions/{id}"]["get"]
|
|
859
|
+
update:
|
|
860
|
+
"x-codeSamples":
|
|
861
|
+
- "lang": "typescript"
|
|
862
|
+
"label": "Typescript (SDK)"
|
|
863
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.subscriptions.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
864
|
+
- target: $["paths"]["/v1/subscriptions/{id}"]["patch"]
|
|
865
|
+
update:
|
|
866
|
+
"x-codeSamples":
|
|
867
|
+
- "lang": "typescript"
|
|
868
|
+
"label": "Typescript (SDK)"
|
|
869
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.subscriptions.update({\n id: \"<value>\",\n subscriptionUpdate: {\n discountId: \"<value>\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
870
|
+
- target: $["paths"]["/v1/wallets/"]["get"]
|
|
871
|
+
update:
|
|
872
|
+
"x-codeSamples":
|
|
873
|
+
- "lang": "typescript"
|
|
874
|
+
"label": "Typescript (SDK)"
|
|
875
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.wallets.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
876
|
+
- target: $["paths"]["/v1/wallets/{id}"]["get"]
|
|
877
|
+
update:
|
|
878
|
+
"x-codeSamples":
|
|
879
|
+
- "lang": "typescript"
|
|
880
|
+
"label": "Typescript (SDK)"
|
|
881
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.wallets.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
882
|
+
- target: $["paths"]["/v1/wallets/{id}/top-up"]["post"]
|
|
883
|
+
update:
|
|
884
|
+
"x-codeSamples":
|
|
885
|
+
- "lang": "typescript"
|
|
886
|
+
"label": "Typescript (SDK)"
|
|
887
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.wallets.topUp({\n id: \"<value>\",\n walletTopUpCreate: {\n amount: 2000,\n currency: \"Venezuelan bolívar\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
888
|
+
- target: $["paths"]["/v1/webhooks/deliveries"]["get"]
|
|
889
|
+
update:
|
|
890
|
+
"x-codeSamples":
|
|
891
|
+
- "lang": "typescript"
|
|
892
|
+
"label": "Typescript (SDK)"
|
|
893
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.webhooks.listWebhookDeliveries({});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
894
|
+
- target: $["paths"]["/v1/webhooks/endpoints"]["get"]
|
|
895
|
+
update:
|
|
896
|
+
"x-codeSamples":
|
|
897
|
+
- "lang": "typescript"
|
|
898
|
+
"label": "Typescript (SDK)"
|
|
899
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.webhooks.listWebhookEndpoints({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
|
|
900
|
+
- target: $["paths"]["/v1/webhooks/endpoints"]["post"]
|
|
901
|
+
update:
|
|
902
|
+
"x-codeSamples":
|
|
903
|
+
- "lang": "typescript"
|
|
904
|
+
"label": "Typescript (SDK)"
|
|
905
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.webhooks.createWebhookEndpoint({\n url: \"https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0\",\n format: \"slack\",\n events: [\n \"subscription.canceled\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
906
|
+
- target: $["paths"]["/v1/webhooks/endpoints/{id}"]["delete"]
|
|
907
|
+
update:
|
|
908
|
+
"x-codeSamples":
|
|
909
|
+
- "lang": "typescript"
|
|
910
|
+
"label": "Typescript (SDK)"
|
|
911
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n await polar.webhooks.deleteWebhookEndpoint({\n id: \"<value>\",\n });\n\n\n}\n\nrun();"
|
|
912
|
+
- target: $["paths"]["/v1/webhooks/endpoints/{id}"]["get"]
|
|
913
|
+
update:
|
|
914
|
+
"x-codeSamples":
|
|
915
|
+
- "lang": "typescript"
|
|
916
|
+
"label": "Typescript (SDK)"
|
|
917
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.webhooks.getWebhookEndpoint({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
918
|
+
- target: $["paths"]["/v1/webhooks/endpoints/{id}"]["patch"]
|
|
919
|
+
update:
|
|
920
|
+
"x-codeSamples":
|
|
921
|
+
- "lang": "typescript"
|
|
922
|
+
"label": "Typescript (SDK)"
|
|
923
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.webhooks.updateWebhookEndpoint({\n id: \"<value>\",\n webhookEndpointUpdate: {\n url: \"https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
924
|
+
- target: $["paths"]["/v1/webhooks/endpoints/{id}/secret"]["patch"]
|
|
925
|
+
update:
|
|
926
|
+
"x-codeSamples":
|
|
927
|
+
- "lang": "typescript"
|
|
928
|
+
"label": "Typescript (SDK)"
|
|
929
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.webhooks.resetWebhookEndpointSecret({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
930
|
+
- target: $["paths"]["/v1/webhooks/events/{id}/redeliver"]["post"]
|
|
931
|
+
update:
|
|
932
|
+
"x-codeSamples":
|
|
933
|
+
- "lang": "typescript"
|
|
934
|
+
"label": "Typescript (SDK)"
|
|
935
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.webhooks.redeliverWebhookEvent({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
|
|
936
|
+
- target: $["paths"]["benefit.created"]["post"]
|
|
937
|
+
update:
|
|
938
|
+
"x-codeSamples":
|
|
939
|
+
- "lang": "typescript"
|
|
940
|
+
"label": "Typescript (SDK)"
|
|
941
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointbenefitCreatedPost({\n type: \"benefit.created\",\n timestamp: new Date(\"2025-10-17T23:42:52.571Z\"),\n data: {\n id: \"<value>\",\n createdAt: new Date(\"2025-05-24T21:27:59.843Z\"),\n modifiedAt: new Date(\"2024-07-01T06:29:09.775Z\"),\n type: \"github_repository\",\n description: \"beneath terrorise but about uh-huh\",\n selectable: false,\n deletable: true,\n organizationId: \"<value>\",\n metadata: {\n\n },\n properties: {\n repositoryOwner: \"polarsource\",\n repositoryName: \"private_repo\",\n permission: \"push\",\n },\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
942
|
+
- target: $["paths"]["benefit.updated"]["post"]
|
|
943
|
+
update:
|
|
944
|
+
"x-codeSamples":
|
|
945
|
+
- "lang": "typescript"
|
|
946
|
+
"label": "Typescript (SDK)"
|
|
947
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointbenefitUpdatedPost({\n type: \"benefit.updated\",\n timestamp: new Date(\"2024-09-24T20:33:20.375Z\"),\n data: {\n id: \"<value>\",\n createdAt: new Date(\"2025-12-28T13:48:13.081Z\"),\n modifiedAt: new Date(\"2023-10-27T10:32:06.844Z\"),\n type: \"custom\",\n description: \"fooey save simple an prime fast modulo nor randomize worth\",\n selectable: false,\n deletable: true,\n organizationId: \"<value>\",\n metadata: {\n \"key\": \"<value>\",\n },\n properties: {\n note: \"<value>\",\n },\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
948
|
+
- target: $["paths"]["benefit_grant.created"]["post"]
|
|
949
|
+
update:
|
|
950
|
+
"x-codeSamples":
|
|
951
|
+
- "lang": "typescript"
|
|
952
|
+
"label": "Typescript (SDK)"
|
|
953
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointbenefitGrantCreatedPost({\n type: \"benefit_grant.created\",\n timestamp: new Date(\"2025-07-29T09:12:26.895Z\"),\n data: {\n createdAt: new Date(\"2025-07-26T11:51:14.320Z\"),\n modifiedAt: new Date(\"2023-06-26T18:19:56.152Z\"),\n id: \"<value>\",\n isGranted: false,\n isRevoked: true,\n subscriptionId: \"<value>\",\n orderId: \"<value>\",\n customerId: \"<value>\",\n benefitId: \"<value>\",\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2025-05-12T01:27:02.379Z\"),\n modifiedAt: new Date(\"2023-11-17T04:22:37.821Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2023-02-21T01:01:33.050Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n benefit: {\n id: \"<value>\",\n createdAt: new Date(\"2023-07-27T17:46:55.663Z\"),\n modifiedAt: new Date(\"2024-02-04T07:22:26.555Z\"),\n type: \"custom\",\n description: \"blah even spirit reprove gee instead that longingly\",\n selectable: false,\n deletable: true,\n organizationId: \"<value>\",\n metadata: {\n\n },\n properties: {\n note: null,\n },\n },\n properties: {},\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
954
|
+
- target: $["paths"]["benefit_grant.cycled"]["post"]
|
|
955
|
+
update:
|
|
956
|
+
"x-codeSamples":
|
|
957
|
+
- "lang": "typescript"
|
|
958
|
+
"label": "Typescript (SDK)"
|
|
959
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointbenefitGrantCycledPost({\n type: \"benefit_grant.cycled\",\n timestamp: new Date(\"2023-11-21T13:26:50.948Z\"),\n data: {\n createdAt: new Date(\"2023-07-19T03:56:32.649Z\"),\n modifiedAt: new Date(\"2025-06-08T22:06:37.934Z\"),\n id: \"<value>\",\n isGranted: false,\n isRevoked: false,\n subscriptionId: \"<value>\",\n orderId: \"<value>\",\n customerId: \"<value>\",\n benefitId: \"<value>\",\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-06-18T10:06:52.830Z\"),\n modifiedAt: new Date(\"2024-06-29T04:36:34.181Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-09-22T10:01:13.690Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n benefit: {\n id: \"<value>\",\n createdAt: new Date(\"2024-08-15T00:34:14.846Z\"),\n modifiedAt: new Date(\"2025-10-24T15:26:44.314Z\"),\n type: \"discord\",\n description: \"unimportant ah prickly past\",\n selectable: true,\n deletable: true,\n organizationId: \"<value>\",\n metadata: {\n \"key\": \"<value>\",\n },\n properties: {\n guildId: \"<id>\",\n roleId: \"<id>\",\n kickMember: true,\n guildToken: \"<value>\",\n },\n },\n properties: {},\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
960
|
+
- target: $["paths"]["benefit_grant.revoked"]["post"]
|
|
961
|
+
update:
|
|
962
|
+
"x-codeSamples":
|
|
963
|
+
- "lang": "typescript"
|
|
964
|
+
"label": "Typescript (SDK)"
|
|
965
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointbenefitGrantRevokedPost({\n type: \"benefit_grant.revoked\",\n timestamp: new Date(\"2025-10-11T18:40:00.865Z\"),\n data: {\n createdAt: new Date(\"2023-04-30T09:48:15.700Z\"),\n modifiedAt: new Date(\"2024-12-06T00:35:53.453Z\"),\n id: \"<value>\",\n isGranted: true,\n isRevoked: true,\n subscriptionId: \"<value>\",\n orderId: \"<value>\",\n customerId: \"<value>\",\n benefitId: \"<value>\",\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-05-05T05:52:04.552Z\"),\n modifiedAt: new Date(\"2024-09-18T14:08:44.723Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: null,\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-11-04T03:19:52.925Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n benefit: {\n id: \"<value>\",\n createdAt: new Date(\"2024-03-12T16:39:36.178Z\"),\n modifiedAt: new Date(\"2024-07-08T07:08:59.377Z\"),\n type: \"discord\",\n description: \"grandiose royal surface before ouch silently authentic more override reassuringly\",\n selectable: false,\n deletable: true,\n organizationId: \"<value>\",\n metadata: {\n \"key\": \"<value>\",\n },\n properties: {\n guildId: \"<id>\",\n roleId: \"<id>\",\n kickMember: false,\n guildToken: \"<value>\",\n },\n },\n properties: {},\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
966
|
+
- target: $["paths"]["benefit_grant.updated"]["post"]
|
|
967
|
+
update:
|
|
968
|
+
"x-codeSamples":
|
|
969
|
+
- "lang": "typescript"
|
|
970
|
+
"label": "Typescript (SDK)"
|
|
971
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointbenefitGrantUpdatedPost({\n type: \"benefit_grant.updated\",\n timestamp: new Date(\"2023-06-15T00:42:20.858Z\"),\n data: {\n createdAt: new Date(\"2023-09-09T02:35:13.085Z\"),\n modifiedAt: new Date(\"2024-04-28T04:44:42.040Z\"),\n id: \"<value>\",\n isGranted: true,\n isRevoked: false,\n subscriptionId: \"<value>\",\n orderId: \"<value>\",\n customerId: \"<value>\",\n benefitId: \"<value>\",\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-06-22T06:57:35.281Z\"),\n modifiedAt: new Date(\"2025-06-14T15:07:20.731Z\"),\n metadata: {\n \"key\": 322224,\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-09-29T05:46:04.457Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n benefit: {\n id: \"<value>\",\n createdAt: new Date(\"2025-09-22T18:19:02.554Z\"),\n modifiedAt: new Date(\"2023-12-23T22:21:47.780Z\"),\n type: \"downloadables\",\n description: \"diligently phony super boo veg crafty\",\n selectable: false,\n deletable: true,\n organizationId: \"<value>\",\n metadata: {\n\n },\n properties: {\n archived: {\n \"key\": false,\n \"key1\": false,\n \"key2\": true,\n },\n files: [],\n },\n },\n properties: {},\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
972
|
+
- target: $["paths"]["checkout.created"]["post"]
|
|
973
|
+
update:
|
|
974
|
+
"x-codeSamples":
|
|
975
|
+
- "lang": "typescript"
|
|
976
|
+
"label": "Typescript (SDK)"
|
|
977
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcheckoutCreatedPost({\n type: \"checkout.created\",\n timestamp: new Date(\"2023-02-15T15:44:21.478Z\"),\n data: {\n id: \"<value>\",\n createdAt: new Date(\"2025-09-12T19:48:15.814Z\"),\n modifiedAt: new Date(\"2023-09-14T02:01:27.394Z\"),\n paymentProcessor: \"stripe\",\n status: \"expired\",\n clientSecret: \"<value>\",\n url: \"https://agreeable-reboot.biz\",\n expiresAt: new Date(\"2024-05-02T18:25:33.974Z\"),\n successUrl: \"https://rural-outrun.org\",\n returnUrl: \"https://clean-humidity.com/\",\n embedOrigin: \"<value>\",\n amount: 275553,\n discountAmount: 9980,\n netAmount: 266632,\n taxAmount: 348968,\n totalAmount: 203013,\n currency: \"Australian Dollar\",\n activeTrialInterval: \"day\",\n activeTrialIntervalCount: 746373,\n trialEnd: new Date(\"2023-02-22T08:13:16.795Z\"),\n organizationId: \"<value>\",\n productId: null,\n productPriceId: \"<value>\",\n discountId: \"<value>\",\n allowDiscountCodes: false,\n requireBillingAddress: false,\n isDiscountApplicable: false,\n isFreeProductPrice: false,\n isPaymentRequired: false,\n isPaymentSetupRequired: false,\n isPaymentFormRequired: false,\n customerId: \"<value>\",\n isBusinessCustomer: true,\n customerName: \"<value>\",\n customerEmail: \"<value>\",\n customerIpAddress: \"<value>\",\n customerBillingName: \"<value>\",\n customerBillingAddress: {\n country: \"US\",\n },\n customerTaxId: \"<id>\",\n paymentProcessorMetadata: {\n \"key\": \"<value>\",\n \"key1\": \"<value>\",\n \"key2\": \"<value>\",\n },\n billingAddressFields: {\n country: \"required\",\n state: \"optional\",\n city: \"disabled\",\n postalCode: \"optional\",\n line1: \"required\",\n line2: \"disabled\",\n },\n trialInterval: null,\n trialIntervalCount: 675830,\n metadata: {\n \"key\": true,\n },\n externalCustomerId: \"<id>\",\n customerExternalId: \"<id>\",\n products: [\n {\n id: \"<value>\",\n createdAt: new Date(\"2023-01-06T18:09:03.676Z\"),\n modifiedAt: new Date(\"2024-05-28T21:42:41.690Z\"),\n trialInterval: \"month\",\n trialIntervalCount: 590205,\n name: \"<value>\",\n description: \"structure tenderly dirty colon though\",\n recurringInterval: null,\n recurringIntervalCount: 996088,\n isRecurring: false,\n isArchived: true,\n organizationId: \"<value>\",\n prices: [],\n benefits: [],\n medias: [\n {\n id: \"<value>\",\n organizationId: \"<value>\",\n name: \"<value>\",\n path: \"/var/yp\",\n mimeType: \"<value>\",\n size: 1211,\n storageVersion: \"<value>\",\n checksumEtag: null,\n checksumSha256Base64: \"<value>\",\n checksumSha256Hex: \"<value>\",\n lastModifiedAt: new Date(\"2023-08-11T21:05:07.943Z\"),\n version: \"<value>\",\n service: \"product_media\",\n isUploaded: false,\n createdAt: new Date(\"2024-09-05T01:36:20.132Z\"),\n sizeReadable: \"<value>\",\n publicUrl: \"https://next-peninsula.net\",\n },\n ],\n },\n ],\n product: {\n id: \"<value>\",\n createdAt: new Date(\"2025-07-24T22:06:51.276Z\"),\n modifiedAt: new Date(\"2025-04-12T19:47:40.853Z\"),\n trialInterval: null,\n trialIntervalCount: null,\n name: \"<value>\",\n description: \"below presell cleave silky marimba\",\n recurringInterval: \"month\",\n recurringIntervalCount: 174683,\n isRecurring: true,\n isArchived: true,\n organizationId: \"<value>\",\n prices: [],\n benefits: [],\n medias: [],\n },\n productPrice: {\n createdAt: new Date(\"2025-09-14T04:08:29.152Z\"),\n modifiedAt: new Date(\"2025-10-07T17:41:46.324Z\"),\n id: \"<value>\",\n amountType: \"fixed\",\n isArchived: true,\n productId: \"<value>\",\n type: \"recurring\",\n recurringInterval: \"week\",\n priceCurrency: \"<value>\",\n priceAmount: 538327,\n legacy: true,\n },\n discount: {\n duration: \"repeating\",\n durationInMonths: 509971,\n type: \"percentage\",\n basisPoints: 1000,\n id: \"<value>\",\n name: \"<value>\",\n code: null,\n },\n subscriptionId: \"<value>\",\n attachedCustomFields: [],\n customerMetadata: {\n\n },\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
978
|
+
- target: $["paths"]["checkout.updated"]["post"]
|
|
979
|
+
update:
|
|
980
|
+
"x-codeSamples":
|
|
981
|
+
- "lang": "typescript"
|
|
982
|
+
"label": "Typescript (SDK)"
|
|
983
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcheckoutUpdatedPost({\n type: \"checkout.updated\",\n timestamp: new Date(\"2023-03-19T05:40:46.816Z\"),\n data: {\n id: \"<value>\",\n createdAt: new Date(\"2024-09-17T13:52:37.257Z\"),\n modifiedAt: new Date(\"2024-11-07T08:23:01.152Z\"),\n paymentProcessor: \"stripe\",\n status: \"expired\",\n clientSecret: \"<value>\",\n url: \"https://male-punctuation.name\",\n expiresAt: new Date(\"2025-03-26T06:13:51.386Z\"),\n successUrl: \"https://monumental-mathematics.info\",\n returnUrl: \"https://scary-valley.com/\",\n embedOrigin: \"<value>\",\n amount: 867510,\n discountAmount: 469340,\n netAmount: 139232,\n taxAmount: 373760,\n totalAmount: 41301,\n currency: \"Azerbaijanian Manat\",\n activeTrialInterval: \"week\",\n activeTrialIntervalCount: null,\n trialEnd: new Date(\"2025-01-03T13:19:57.814Z\"),\n organizationId: \"<value>\",\n productId: \"<value>\",\n productPriceId: \"<value>\",\n discountId: \"<value>\",\n allowDiscountCodes: true,\n requireBillingAddress: false,\n isDiscountApplicable: true,\n isFreeProductPrice: false,\n isPaymentRequired: false,\n isPaymentSetupRequired: false,\n isPaymentFormRequired: true,\n customerId: \"<value>\",\n isBusinessCustomer: true,\n customerName: \"<value>\",\n customerEmail: \"<value>\",\n customerIpAddress: \"<value>\",\n customerBillingName: \"<value>\",\n customerBillingAddress: {\n country: \"US\",\n },\n customerTaxId: \"<id>\",\n paymentProcessorMetadata: {\n \"key\": \"<value>\",\n },\n billingAddressFields: {\n country: \"disabled\",\n state: \"disabled\",\n city: \"disabled\",\n postalCode: \"optional\",\n line1: \"optional\",\n line2: \"required\",\n },\n trialInterval: \"month\",\n trialIntervalCount: 971558,\n metadata: {\n \"key\": 4652.47,\n },\n externalCustomerId: \"<id>\",\n customerExternalId: \"<id>\",\n products: [\n {\n id: \"<value>\",\n createdAt: new Date(\"2023-06-21T05:48:31.398Z\"),\n modifiedAt: new Date(\"2024-09-06T09:34:57.464Z\"),\n trialInterval: \"day\",\n trialIntervalCount: 868555,\n name: \"<value>\",\n description: \"tempting by or hippodrome mountain strict militate soupy partially simple\",\n recurringInterval: \"year\",\n recurringIntervalCount: 787637,\n isRecurring: true,\n isArchived: true,\n organizationId: \"<value>\",\n prices: [],\n benefits: [\n {\n id: \"<value>\",\n createdAt: new Date(\"2024-03-20T21:54:02.026Z\"),\n modifiedAt: new Date(\"2025-11-22T22:06:43.546Z\"),\n type: \"github_repository\",\n description: \"boring mysterious psst though lest\",\n selectable: false,\n deletable: false,\n organizationId: \"<value>\",\n },\n ],\n medias: [\n {\n id: \"<value>\",\n organizationId: \"<value>\",\n name: \"<value>\",\n path: \"/var/yp\",\n mimeType: \"<value>\",\n size: 742109,\n storageVersion: \"<value>\",\n checksumEtag: \"<value>\",\n checksumSha256Base64: \"<value>\",\n checksumSha256Hex: \"<value>\",\n lastModifiedAt: new Date(\"2024-01-05T08:21:09.966Z\"),\n version: null,\n service: \"product_media\",\n isUploaded: false,\n createdAt: new Date(\"2024-07-12T04:50:26.552Z\"),\n sizeReadable: \"<value>\",\n publicUrl: \"https://common-makeover.biz/\",\n },\n ],\n },\n ],\n product: {\n id: \"<value>\",\n createdAt: new Date(\"2024-06-19T06:14:05.114Z\"),\n modifiedAt: new Date(\"2023-03-11T18:17:16.587Z\"),\n trialInterval: \"year\",\n trialIntervalCount: 392090,\n name: \"<value>\",\n description: \"whereas steeple brr regularly make huzzah cheerfully ignite sense\",\n recurringInterval: \"week\",\n recurringIntervalCount: 439686,\n isRecurring: false,\n isArchived: false,\n organizationId: \"<value>\",\n prices: [\n {\n createdAt: new Date(\"2025-06-19T15:55:16.121Z\"),\n modifiedAt: new Date(\"2025-11-24T07:57:40.732Z\"),\n id: \"<value>\",\n amountType: \"fixed\",\n isArchived: true,\n productId: \"<value>\",\n type: \"recurring\",\n recurringInterval: \"year\",\n priceCurrency: \"<value>\",\n priceAmount: 41520,\n legacy: true,\n },\n ],\n benefits: [],\n medias: [],\n },\n productPrice: {\n createdAt: new Date(\"2023-10-22T04:58:53.063Z\"),\n modifiedAt: new Date(\"2024-01-03T01:38:04.965Z\"),\n id: \"<value>\",\n amountType: \"seat_based\",\n isArchived: true,\n productId: \"<value>\",\n type: \"recurring\",\n recurringInterval: \"month\",\n priceCurrency: \"<value>\",\n seatTiers: {\n tiers: [],\n },\n },\n discount: {\n duration: \"once\",\n durationInMonths: 327405,\n type: \"fixed\",\n amount: 1000,\n currency: \"usd\",\n id: \"<value>\",\n name: \"<value>\",\n code: \"<value>\",\n },\n subscriptionId: \"<value>\",\n attachedCustomFields: [\n {\n customFieldId: \"<value>\",\n customField: {\n createdAt: new Date(\"2024-05-09T18:59:08.115Z\"),\n modifiedAt: new Date(\"2024-09-29T03:43:11.374Z\"),\n id: \"<value>\",\n metadata: {\n \"key\": 916655,\n },\n type: \"date\",\n slug: \"<value>\",\n name: \"<value>\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 596151,\n required: false,\n },\n ],\n customerMetadata: {\n \"key\": false,\n },\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
984
|
+
- target: $["paths"]["customer.created"]["post"]
|
|
985
|
+
update:
|
|
986
|
+
"x-codeSamples":
|
|
987
|
+
- "lang": "typescript"
|
|
988
|
+
"label": "Typescript (SDK)"
|
|
989
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcustomerCreatedPost({\n type: \"customer.created\",\n timestamp: new Date(\"2025-10-24T17:37:29.711Z\"),\n data: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2025-03-08T02:57:16.205Z\"),\n modifiedAt: new Date(\"2024-10-31T06:26:45.555Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2023-03-24T20:28:46.681Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
990
|
+
- target: $["paths"]["customer.deleted"]["post"]
|
|
991
|
+
update:
|
|
992
|
+
"x-codeSamples":
|
|
993
|
+
- "lang": "typescript"
|
|
994
|
+
"label": "Typescript (SDK)"
|
|
995
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcustomerDeletedPost({\n type: \"customer.deleted\",\n timestamp: new Date(\"2023-07-12T21:40:34.752Z\"),\n data: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2025-12-23T11:32:42.100Z\"),\n modifiedAt: new Date(\"2023-07-09T17:16:24.833Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2023-09-30T09:04:17.770Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
996
|
+
- target: $["paths"]["customer.state_changed"]["post"]
|
|
997
|
+
update:
|
|
998
|
+
"x-codeSamples":
|
|
999
|
+
- "lang": "typescript"
|
|
1000
|
+
"label": "Typescript (SDK)"
|
|
1001
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcustomerStateChangedPost({\n type: \"customer.state_changed\",\n timestamp: new Date(\"2025-05-22T16:03:32.369Z\"),\n data: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2023-07-25T20:57:42.542Z\"),\n modifiedAt: null,\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-09-08T18:19:10.187Z\"),\n activeSubscriptions: [],\n grantedBenefits: [\n {\n id: \"d322132c-a9d0-4e0d-b8d3-d81ad021a3a9\",\n createdAt: new Date(\"2025-09-01T02:21:29.525Z\"),\n modifiedAt: new Date(\"2023-11-12T17:51:37.646Z\"),\n grantedAt: new Date(\"2025-01-03T13:37:00Z\"),\n benefitId: \"397a17aa-15cf-4cb4-9333-18040203cf98\",\n benefitType: \"meter_credit\",\n benefitMetadata: {\n \"key\": \"value\",\n },\n properties: {},\n },\n ],\n activeMeters: [\n {\n id: \"<value>\",\n createdAt: new Date(\"2023-08-10T12:57:32.427Z\"),\n modifiedAt: new Date(\"2024-11-09T02:09:01.550Z\"),\n meterId: \"d498a884-e2cd-4d3e-8002-f536468a8b22\",\n consumedUnits: 25,\n creditedUnits: 100,\n balance: 75,\n },\n ],\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1002
|
+
- target: $["paths"]["customer.updated"]["post"]
|
|
1003
|
+
update:
|
|
1004
|
+
"x-codeSamples":
|
|
1005
|
+
- "lang": "typescript"
|
|
1006
|
+
"label": "Typescript (SDK)"
|
|
1007
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcustomerUpdatedPost({\n type: \"customer.updated\",\n timestamp: new Date(\"2023-07-09T20:22:33.716Z\"),\n data: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-07-18T23:25:12.977Z\"),\n modifiedAt: new Date(\"2023-04-07T04:58:11.725Z\"),\n metadata: {\n \"key\": 983601,\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-01-11T12:43:11.694Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1008
|
+
- target: $["paths"]["customer_seat.assigned"]["post"]
|
|
1009
|
+
update:
|
|
1010
|
+
"x-codeSamples":
|
|
1011
|
+
- "lang": "typescript"
|
|
1012
|
+
"label": "Typescript (SDK)"
|
|
1013
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcustomerSeatAssignedPost({\n type: \"customer_seat.assigned\",\n timestamp: new Date(\"2023-01-24T21:46:22.729Z\"),\n data: {\n createdAt: new Date(\"2024-04-02T01:55:00.575Z\"),\n modifiedAt: new Date(\"2025-03-27T17:16:29.966Z\"),\n id: \"ded032fb-362e-4ae1-83b9-4f4bcab6f430\",\n status: \"revoked\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1014
|
+
- target: $["paths"]["customer_seat.claimed"]["post"]
|
|
1015
|
+
update:
|
|
1016
|
+
"x-codeSamples":
|
|
1017
|
+
- "lang": "typescript"
|
|
1018
|
+
"label": "Typescript (SDK)"
|
|
1019
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcustomerSeatClaimedPost({\n type: \"customer_seat.claimed\",\n timestamp: new Date(\"2023-08-22T13:16:39.616Z\"),\n data: {\n createdAt: new Date(\"2023-05-10T18:50:40.033Z\"),\n modifiedAt: new Date(\"2023-07-12T19:06:41.896Z\"),\n id: \"35ac8c8c-dc4e-44ea-9684-2a2c2b600002\",\n status: \"pending\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1020
|
+
- target: $["paths"]["customer_seat.revoked"]["post"]
|
|
1021
|
+
update:
|
|
1022
|
+
"x-codeSamples":
|
|
1023
|
+
- "lang": "typescript"
|
|
1024
|
+
"label": "Typescript (SDK)"
|
|
1025
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcustomerSeatRevokedPost({\n type: \"customer_seat.revoked\",\n timestamp: new Date(\"2023-11-12T11:49:39.839Z\"),\n data: {\n createdAt: new Date(\"2024-08-05T10:54:13.336Z\"),\n modifiedAt: new Date(\"2023-12-02T21:24:11.844Z\"),\n id: \"518899df-02c0-4220-abaf-0f2f32e97539\",\n status: \"pending\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1026
|
+
- target: $["paths"]["order.created"]["post"]
|
|
1027
|
+
update:
|
|
1028
|
+
"x-codeSamples":
|
|
1029
|
+
- "lang": "typescript"
|
|
1030
|
+
"label": "Typescript (SDK)"
|
|
1031
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointorderCreatedPost({\n type: \"order.created\",\n timestamp: new Date(\"2024-08-21T06:55:49.348Z\"),\n data: {\n id: \"<value>\",\n createdAt: new Date(\"2023-01-02T23:31:01.991Z\"),\n modifiedAt: new Date(\"2025-11-09T23:45:36.352Z\"),\n status: \"pending\",\n paid: true,\n subtotalAmount: 10000,\n discountAmount: 1000,\n netAmount: 9000,\n taxAmount: 720,\n totalAmount: 9720,\n appliedBalanceAmount: 0,\n dueAmount: 0,\n refundedAmount: 0,\n refundedTaxAmount: 0,\n currency: \"usd\",\n billingReason: \"purchase\",\n billingName: \"<value>\",\n billingAddress: {\n country: \"US\",\n },\n invoiceNumber: \"<value>\",\n isInvoiceGenerated: false,\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: \"<value>\",\n subscriptionId: \"<value>\",\n checkoutId: \"<value>\",\n metadata: {\n \"key\": \"<value>\",\n },\n platformFeeAmount: 500,\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2025-08-09T17:02:40.706Z\"),\n modifiedAt: new Date(\"2025-10-06T19:34:47.732Z\"),\n metadata: {\n \"key\": 701529,\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: null,\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n userId: \"<value>\",\n product: {\n metadata: {\n\n },\n id: \"<value>\",\n createdAt: new Date(\"2025-06-03T19:46:15.179Z\"),\n modifiedAt: new Date(\"2023-10-21T21:28:56.316Z\"),\n trialInterval: \"week\",\n trialIntervalCount: 271259,\n name: \"<value>\",\n description: \"gadzooks trek amid misspend ravioli supposing bare pfft\",\n recurringInterval: \"week\",\n recurringIntervalCount: 168138,\n isRecurring: true,\n isArchived: true,\n organizationId: \"<value>\",\n },\n discount: {\n duration: \"once\",\n durationInMonths: 260667,\n type: \"percentage\",\n amount: 1000,\n currency: \"usd\",\n createdAt: new Date(\"2024-04-11T00:21:08.353Z\"),\n modifiedAt: new Date(\"2025-05-03T15:56:59.028Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n name: \"<value>\",\n code: null,\n startsAt: new Date(\"2023-03-06T18:58:41.541Z\"),\n endsAt: new Date(\"2024-02-07T05:20:48.151Z\"),\n maxRedemptions: 200286,\n redemptionsCount: 148325,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n subscription: null,\n items: [\n {\n createdAt: new Date(\"2024-01-04T15:31:18.185Z\"),\n modifiedAt: new Date(\"2023-12-10T13:26:22.287Z\"),\n id: \"<value>\",\n label: \"Pro Plan\",\n amount: 10000,\n taxAmount: 720,\n proration: false,\n productPriceId: \"<value>\",\n },\n ],\n description: \"Pro Plan\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1032
|
+
- target: $["paths"]["order.paid"]["post"]
|
|
1033
|
+
update:
|
|
1034
|
+
"x-codeSamples":
|
|
1035
|
+
- "lang": "typescript"
|
|
1036
|
+
"label": "Typescript (SDK)"
|
|
1037
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointorderPaidPost({\n type: \"order.paid\",\n timestamp: new Date(\"2025-12-05T07:44:21.172Z\"),\n data: {\n id: \"<value>\",\n createdAt: new Date(\"2025-07-27T09:45:49.517Z\"),\n modifiedAt: new Date(\"2024-12-13T20:55:19.644Z\"),\n status: \"partially_refunded\",\n paid: true,\n subtotalAmount: 10000,\n discountAmount: 1000,\n netAmount: 9000,\n taxAmount: 720,\n totalAmount: 9720,\n appliedBalanceAmount: 0,\n dueAmount: 0,\n refundedAmount: 0,\n refundedTaxAmount: 0,\n currency: \"usd\",\n billingReason: \"subscription_update\",\n billingName: \"<value>\",\n billingAddress: {\n country: \"US\",\n },\n invoiceNumber: \"<value>\",\n isInvoiceGenerated: true,\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: \"<value>\",\n subscriptionId: \"<value>\",\n checkoutId: \"<value>\",\n metadata: {\n\n },\n platformFeeAmount: 500,\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2025-08-31T00:54:53.749Z\"),\n modifiedAt: new Date(\"2025-07-24T12:09:26.716Z\"),\n metadata: {\n \"key\": \"<value>\",\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-04-20T14:41:24.727Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n userId: \"<value>\",\n product: {\n metadata: {\n\n },\n id: \"<value>\",\n createdAt: new Date(\"2023-06-18T22:24:34.935Z\"),\n modifiedAt: new Date(\"2025-08-01T03:33:20.782Z\"),\n trialInterval: \"week\",\n trialIntervalCount: 125374,\n name: \"<value>\",\n description: \"easily carouse plus quietly reservation bright injunction plastic gah\",\n recurringInterval: \"year\",\n recurringIntervalCount: 458129,\n isRecurring: true,\n isArchived: true,\n organizationId: \"<value>\",\n },\n discount: {\n duration: \"forever\",\n durationInMonths: 375708,\n type: \"percentage\",\n amount: 1000,\n currency: \"usd\",\n createdAt: new Date(\"2024-05-24T21:01:40.292Z\"),\n modifiedAt: new Date(\"2024-05-25T21:22:06.978Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n name: \"<value>\",\n code: \"<value>\",\n startsAt: new Date(\"2024-09-14T19:23:38.365Z\"),\n endsAt: new Date(\"2024-10-02T13:51:42.523Z\"),\n maxRedemptions: 231748,\n redemptionsCount: 846855,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n subscription: {\n metadata: {\n \"key\": 5251.57,\n },\n createdAt: new Date(\"2025-02-12T23:41:13.290Z\"),\n modifiedAt: new Date(\"2023-02-24T15:15:22.018Z\"),\n id: \"<value>\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"week\",\n recurringIntervalCount: 310795,\n status: \"canceled\",\n currentPeriodStart: new Date(\"2023-11-20T10:20:23.628Z\"),\n currentPeriodEnd: new Date(\"2025-08-05T06:11:40.745Z\"),\n trialStart: new Date(\"2023-12-05T06:32:48.307Z\"),\n trialEnd: null,\n cancelAtPeriodEnd: false,\n canceledAt: new Date(\"2023-08-08T23:25:37.197Z\"),\n startedAt: new Date(\"2024-10-04T00:59:57.339Z\"),\n endsAt: new Date(\"2025-02-01T22:39:43.609Z\"),\n endedAt: new Date(\"2023-08-04T10:17:52.706Z\"),\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: \"<value>\",\n checkoutId: \"<value>\",\n customerCancellationReason: null,\n customerCancellationComment: \"<value>\",\n },\n items: [],\n description: \"Pro Plan\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1038
|
+
- target: $["paths"]["order.refunded"]["post"]
|
|
1039
|
+
update:
|
|
1040
|
+
"x-codeSamples":
|
|
1041
|
+
- "lang": "typescript"
|
|
1042
|
+
"label": "Typescript (SDK)"
|
|
1043
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointorderRefundedPost({\n type: \"order.refunded\",\n timestamp: new Date(\"2024-07-23T18:00:11.615Z\"),\n data: {\n id: \"<value>\",\n createdAt: new Date(\"2025-03-19T11:53:59.744Z\"),\n modifiedAt: new Date(\"2024-12-01T04:03:14.906Z\"),\n status: \"refunded\",\n paid: true,\n subtotalAmount: 10000,\n discountAmount: 1000,\n netAmount: 9000,\n taxAmount: 720,\n totalAmount: 9720,\n appliedBalanceAmount: 0,\n dueAmount: 0,\n refundedAmount: 0,\n refundedTaxAmount: 0,\n currency: \"usd\",\n billingReason: \"subscription_create\",\n billingName: \"<value>\",\n billingAddress: {\n country: \"US\",\n },\n invoiceNumber: \"<value>\",\n isInvoiceGenerated: false,\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: \"<value>\",\n subscriptionId: \"<value>\",\n checkoutId: \"<value>\",\n metadata: {\n\n },\n platformFeeAmount: 500,\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-05-21T22:00:59.902Z\"),\n modifiedAt: new Date(\"2024-08-24T07:48:58.778Z\"),\n metadata: {\n \"key\": 647689,\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2024-08-19T02:54:30.835Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n userId: \"<value>\",\n product: null,\n discount: {\n duration: \"once\",\n durationInMonths: 310259,\n type: \"percentage\",\n amount: 1000,\n currency: \"usd\",\n createdAt: new Date(\"2023-01-26T21:26:48.872Z\"),\n modifiedAt: new Date(\"2023-01-16T07:26:04.196Z\"),\n id: \"<value>\",\n metadata: {\n \"key\": 4016.73,\n },\n name: \"<value>\",\n code: \"<value>\",\n startsAt: new Date(\"2025-09-14T03:05:33.012Z\"),\n endsAt: null,\n maxRedemptions: 211875,\n redemptionsCount: 188354,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n subscription: null,\n items: [\n {\n createdAt: new Date(\"2024-12-08T10:40:25.472Z\"),\n modifiedAt: new Date(\"2023-12-20T17:19:16.701Z\"),\n id: \"<value>\",\n label: \"Pro Plan\",\n amount: 10000,\n taxAmount: 720,\n proration: false,\n productPriceId: \"<value>\",\n },\n ],\n description: \"Pro Plan\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1044
|
+
- target: $["paths"]["order.updated"]["post"]
|
|
1045
|
+
update:
|
|
1046
|
+
"x-codeSamples":
|
|
1047
|
+
- "lang": "typescript"
|
|
1048
|
+
"label": "Typescript (SDK)"
|
|
1049
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointorderUpdatedPost({\n type: \"order.updated\",\n timestamp: new Date(\"2023-10-25T00:08:50.290Z\"),\n data: {\n id: \"<value>\",\n createdAt: new Date(\"2024-04-30T23:35:35.375Z\"),\n modifiedAt: new Date(\"2025-06-01T02:02:46.580Z\"),\n status: \"pending\",\n paid: true,\n subtotalAmount: 10000,\n discountAmount: 1000,\n netAmount: 9000,\n taxAmount: 720,\n totalAmount: 9720,\n appliedBalanceAmount: 0,\n dueAmount: 0,\n refundedAmount: 0,\n refundedTaxAmount: 0,\n currency: \"usd\",\n billingReason: \"subscription_create\",\n billingName: \"<value>\",\n billingAddress: {\n country: \"US\",\n },\n invoiceNumber: \"<value>\",\n isInvoiceGenerated: true,\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: \"<value>\",\n subscriptionId: \"<value>\",\n checkoutId: \"<value>\",\n metadata: {\n\n },\n platformFeeAmount: 500,\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2023-12-14T17:38:07.808Z\"),\n modifiedAt: new Date(\"2024-04-07T10:18:18.539Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2024-10-23T02:39:12.424Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n userId: \"<value>\",\n product: {\n metadata: {\n\n },\n id: \"<value>\",\n createdAt: new Date(\"2024-12-03T05:16:11.415Z\"),\n modifiedAt: new Date(\"2023-03-11T05:58:05.184Z\"),\n trialInterval: null,\n trialIntervalCount: null,\n name: \"<value>\",\n description: \"simple eventually briskly considering\",\n recurringInterval: \"month\",\n recurringIntervalCount: null,\n isRecurring: false,\n isArchived: true,\n organizationId: \"<value>\",\n },\n discount: {\n duration: \"forever\",\n durationInMonths: 976971,\n type: \"fixed\",\n basisPoints: 1000,\n createdAt: new Date(\"2024-02-28T06:12:39.096Z\"),\n modifiedAt: new Date(\"2023-10-01T05:16:42.046Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n name: \"<value>\",\n code: \"<value>\",\n startsAt: new Date(\"2024-08-28T07:16:56.183Z\"),\n endsAt: new Date(\"2023-02-25T14:55:58.248Z\"),\n maxRedemptions: 970746,\n redemptionsCount: 314425,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n subscription: null,\n items: [\n {\n createdAt: new Date(\"2024-10-24T22:29:24.352Z\"),\n modifiedAt: new Date(\"2023-05-02T19:12:30.014Z\"),\n id: \"<value>\",\n label: \"Pro Plan\",\n amount: 10000,\n taxAmount: 720,\n proration: false,\n productPriceId: \"<value>\",\n },\n ],\n description: \"Pro Plan\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1050
|
+
- target: $["paths"]["organization.updated"]["post"]
|
|
1051
|
+
update:
|
|
1052
|
+
"x-codeSamples":
|
|
1053
|
+
- "lang": "typescript"
|
|
1054
|
+
"label": "Typescript (SDK)"
|
|
1055
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointorganizationUpdatedPost({\n type: \"organization.updated\",\n timestamp: new Date(\"2025-08-19T15:02:44.139Z\"),\n data: {\n createdAt: new Date(\"2025-05-07T21:24:48.059Z\"),\n modifiedAt: new Date(\"2023-04-16T23:18:12.986Z\"),\n id: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n name: \"<value>\",\n slug: \"<value>\",\n avatarUrl: \"https://pessimistic-going.name/\",\n email: \"Stefan_Pagac@yahoo.com\",\n website: \"<value>\",\n socials: [],\n status: \"created\",\n detailsSubmittedAt: new Date(\"2024-05-05T12:48:25.627Z\"),\n featureSettings: {},\n subscriptionSettings: {\n allowMultipleSubscriptions: true,\n allowCustomerUpdates: false,\n prorationBehavior: \"prorate\",\n benefitRevocationGracePeriod: 219094,\n },\n notificationSettings: {\n newOrder: true,\n newSubscription: false,\n },\n customerEmailSettings: {\n orderConfirmation: false,\n subscriptionCancellation: true,\n subscriptionConfirmation: false,\n subscriptionCycled: true,\n subscriptionPastDue: true,\n subscriptionRevoked: true,\n subscriptionUncanceled: false,\n subscriptionUpdated: true,\n },\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1056
|
+
- target: $["paths"]["product.created"]["post"]
|
|
1057
|
+
update:
|
|
1058
|
+
"x-codeSamples":
|
|
1059
|
+
- "lang": "typescript"
|
|
1060
|
+
"label": "Typescript (SDK)"
|
|
1061
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointproductCreatedPost({\n type: \"product.created\",\n timestamp: new Date(\"2023-10-13T02:47:55.082Z\"),\n data: {\n id: \"<value>\",\n createdAt: new Date(\"2023-01-15T03:15:59.062Z\"),\n modifiedAt: new Date(\"2023-07-04T11:33:29.001Z\"),\n trialInterval: \"day\",\n trialIntervalCount: 130829,\n name: \"<value>\",\n description: \"generously as at filthy busy athwart\",\n recurringInterval: \"year\",\n recurringIntervalCount: 944417,\n isRecurring: false,\n isArchived: true,\n organizationId: \"<value>\",\n metadata: {\n\n },\n prices: [],\n benefits: [\n {\n id: \"<value>\",\n createdAt: new Date(\"2023-03-03T14:19:40.156Z\"),\n modifiedAt: new Date(\"2025-12-07T23:08:11.973Z\"),\n type: \"discord\",\n description: \"gosh consequently gladly beneath horse\",\n selectable: true,\n deletable: false,\n organizationId: \"<value>\",\n metadata: {\n \"key\": 5806.69,\n },\n properties: {\n guildId: \"<id>\",\n roleId: \"<id>\",\n kickMember: false,\n guildToken: \"<value>\",\n },\n },\n ],\n medias: [],\n attachedCustomFields: [\n {\n customFieldId: \"<value>\",\n customField: {\n createdAt: new Date(\"2025-10-04T08:22:15.858Z\"),\n modifiedAt: null,\n id: \"<value>\",\n metadata: {\n \"key\": false,\n },\n type: \"number\",\n slug: \"<value>\",\n name: \"<value>\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 92084,\n required: true,\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1062
|
+
- target: $["paths"]["product.updated"]["post"]
|
|
1063
|
+
update:
|
|
1064
|
+
"x-codeSamples":
|
|
1065
|
+
- "lang": "typescript"
|
|
1066
|
+
"label": "Typescript (SDK)"
|
|
1067
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointproductUpdatedPost({\n type: \"product.updated\",\n timestamp: new Date(\"2024-08-25T02:00:54.049Z\"),\n data: {\n id: \"<value>\",\n createdAt: new Date(\"2025-02-11T18:19:05.372Z\"),\n modifiedAt: new Date(\"2025-07-31T19:14:23.351Z\"),\n trialInterval: \"year\",\n trialIntervalCount: 907633,\n name: \"<value>\",\n description: \"square extract modulo bossy outlandish pecan\",\n recurringInterval: \"year\",\n recurringIntervalCount: 731544,\n isRecurring: false,\n isArchived: true,\n organizationId: \"<value>\",\n metadata: {\n\n },\n prices: [\n {\n createdAt: new Date(\"2025-06-01T04:39:05.245Z\"),\n modifiedAt: new Date(\"2024-05-10T10:53:55.427Z\"),\n id: \"<value>\",\n amountType: \"free\",\n isArchived: true,\n productId: \"<value>\",\n type: \"recurring\",\n recurringInterval: \"month\",\n legacy: true,\n },\n ],\n benefits: [],\n medias: [],\n attachedCustomFields: [\n {\n customFieldId: \"<value>\",\n customField: {\n createdAt: new Date(\"2025-06-23T20:05:36.217Z\"),\n modifiedAt: new Date(\"2023-10-18T15:30:25.986Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n type: \"text\",\n slug: \"<value>\",\n name: \"<value>\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 752010,\n required: true,\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1068
|
+
- target: $["paths"]["refund.created"]["post"]
|
|
1069
|
+
update:
|
|
1070
|
+
"x-codeSamples":
|
|
1071
|
+
- "lang": "typescript"
|
|
1072
|
+
"label": "Typescript (SDK)"
|
|
1073
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointrefundCreatedPost({\n type: \"refund.created\",\n timestamp: new Date(\"2025-02-15T13:46:01.700Z\"),\n data: {\n createdAt: new Date(\"2023-12-02T00:48:24.931Z\"),\n modifiedAt: new Date(\"2025-08-16T15:26:20.191Z\"),\n id: \"<value>\",\n metadata: {\n \"key\": \"<value>\",\n },\n status: \"pending\",\n reason: \"other\",\n amount: 104569,\n taxAmount: 295454,\n currency: \"Solomon Islands Dollar\",\n organizationId: \"<value>\",\n orderId: \"<value>\",\n subscriptionId: \"<value>\",\n customerId: \"<value>\",\n revokeBenefits: false,\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1074
|
+
- target: $["paths"]["refund.updated"]["post"]
|
|
1075
|
+
update:
|
|
1076
|
+
"x-codeSamples":
|
|
1077
|
+
- "lang": "typescript"
|
|
1078
|
+
"label": "Typescript (SDK)"
|
|
1079
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointrefundUpdatedPost({\n type: \"refund.updated\",\n timestamp: new Date(\"2023-01-08T20:35:39.672Z\"),\n data: {\n createdAt: new Date(\"2025-03-28T13:42:04.506Z\"),\n modifiedAt: new Date(\"2024-08-07T08:31:25.154Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n status: \"canceled\",\n reason: \"service_disruption\",\n amount: 986698,\n taxAmount: 785012,\n currency: \"Congolese Franc\",\n organizationId: \"<value>\",\n orderId: \"<value>\",\n subscriptionId: \"<value>\",\n customerId: \"<value>\",\n revokeBenefits: false,\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1080
|
+
- target: $["paths"]["subscription.active"]["post"]
|
|
1081
|
+
update:
|
|
1082
|
+
"x-codeSamples":
|
|
1083
|
+
- "lang": "typescript"
|
|
1084
|
+
"label": "Typescript (SDK)"
|
|
1085
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionActivePost({\n type: \"subscription.active\",\n timestamp: new Date(\"2023-08-13T01:28:21.362Z\"),\n data: {\n createdAt: new Date(\"2023-10-12T10:17:29.274Z\"),\n modifiedAt: new Date(\"2023-12-18T04:45:55.702Z\"),\n id: \"<value>\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"year\",\n recurringIntervalCount: 291908,\n status: \"past_due\",\n currentPeriodStart: new Date(\"2023-06-09T14:14:48.363Z\"),\n currentPeriodEnd: null,\n trialStart: null,\n trialEnd: null,\n cancelAtPeriodEnd: false,\n canceledAt: new Date(\"2024-09-14T15:19:58.463Z\"),\n startedAt: new Date(\"2024-07-30T05:01:30.550Z\"),\n endsAt: new Date(\"2024-02-02T06:13:13.441Z\"),\n endedAt: new Date(\"2023-10-10T03:15:20.759Z\"),\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: \"<value>\",\n checkoutId: \"<value>\",\n customerCancellationReason: \"unused\",\n customerCancellationComment: \"<value>\",\n metadata: {\n \"key\": 667866,\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2025-02-14T12:59:50.680Z\"),\n modifiedAt: new Date(\"2025-03-11T11:17:02.540Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2023-04-08T22:28:00.101Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"<value>\",\n createdAt: new Date(\"2025-11-05T10:18:40.300Z\"),\n modifiedAt: new Date(\"2024-04-23T18:24:43.408Z\"),\n trialInterval: \"year\",\n trialIntervalCount: 714669,\n name: \"<value>\",\n description: \"amongst incidentally irritably cauliflower antique\",\n recurringInterval: \"month\",\n recurringIntervalCount: 48572,\n isRecurring: true,\n isArchived: true,\n organizationId: \"<value>\",\n metadata: {\n \"key\": false,\n },\n prices: [\n {\n createdAt: new Date(\"2025-03-24T10:57:36.466Z\"),\n modifiedAt: new Date(\"2024-10-17T11:42:46.643Z\"),\n id: \"<value>\",\n amountType: \"custom\",\n isArchived: false,\n productId: \"<value>\",\n type: \"recurring\",\n recurringInterval: \"day\",\n priceCurrency: \"<value>\",\n minimumAmount: 154892,\n maximumAmount: 778615,\n presetAmount: 829362,\n legacy: true,\n },\n ],\n benefits: [\n {\n id: \"<value>\",\n createdAt: new Date(\"2024-04-05T11:10:16.533Z\"),\n modifiedAt: new Date(\"2023-02-12T06:44:11.052Z\"),\n type: \"github_repository\",\n description: \"against effector as upbeat yuck\",\n selectable: true,\n deletable: false,\n organizationId: \"<value>\",\n metadata: {\n \"key\": \"<value>\",\n },\n properties: {\n repositoryOwner: \"polarsource\",\n repositoryName: \"private_repo\",\n permission: \"maintain\",\n },\n },\n ],\n medias: [],\n attachedCustomFields: [],\n },\n discount: {\n duration: \"repeating\",\n durationInMonths: 629236,\n type: \"percentage\",\n basisPoints: 1000,\n createdAt: new Date(\"2023-04-09T15:13:09.162Z\"),\n modifiedAt: new Date(\"2023-02-11T00:08:34.711Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n name: \"<value>\",\n code: \"<value>\",\n startsAt: new Date(\"2024-07-16T10:58:24.296Z\"),\n endsAt: null,\n maxRedemptions: 929853,\n redemptionsCount: 426681,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [\n {\n createdAt: new Date(\"2023-06-23T00:23:01.418Z\"),\n modifiedAt: new Date(\"2023-08-22T07:22:13.326Z\"),\n id: \"<value>\",\n amountType: \"custom\",\n isArchived: false,\n productId: \"<value>\",\n type: \"recurring\",\n recurringInterval: \"week\",\n priceCurrency: \"<value>\",\n minimumAmount: 168659,\n maximumAmount: 84871,\n presetAmount: 549701,\n legacy: true,\n },\n ],\n meters: [\n {\n createdAt: new Date(\"2024-10-27T03:26:40.201Z\"),\n modifiedAt: null,\n id: \"<value>\",\n consumedUnits: 25,\n creditedUnits: 100,\n amount: 0,\n meterId: \"d498a884-e2cd-4d3e-8002-f536468a8b22\",\n meter: {\n metadata: {\n \"key\": 99831,\n },\n createdAt: new Date(\"2024-03-30T14:50:52.711Z\"),\n modifiedAt: new Date(\"2024-06-25T05:59:30.258Z\"),\n id: \"<value>\",\n name: \"<value>\",\n filter: {\n conjunction: \"and\",\n clauses: [\n {\n property: \"<value>\",\n operator: \"eq\",\n value: \"<value>\",\n },\n ],\n },\n aggregation: {\n func: \"count\",\n },\n organizationId: \"<value>\",\n },\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1086
|
+
- target: $["paths"]["subscription.canceled"]["post"]
|
|
1087
|
+
update:
|
|
1088
|
+
"x-codeSamples":
|
|
1089
|
+
- "lang": "typescript"
|
|
1090
|
+
"label": "Typescript (SDK)"
|
|
1091
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionCanceledPost({\n type: \"subscription.canceled\",\n timestamp: new Date(\"2025-02-09T04:39:02.332Z\"),\n data: {\n createdAt: new Date(\"2025-04-09T17:46:08.645Z\"),\n modifiedAt: null,\n id: \"<value>\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"day\",\n recurringIntervalCount: 867179,\n status: \"incomplete_expired\",\n currentPeriodStart: new Date(\"2024-08-12T22:41:41.907Z\"),\n currentPeriodEnd: new Date(\"2023-08-04T03:14:29.655Z\"),\n trialStart: new Date(\"2025-03-21T15:50:39.816Z\"),\n trialEnd: new Date(\"2024-01-07T18:54:45.602Z\"),\n cancelAtPeriodEnd: false,\n canceledAt: new Date(\"2023-05-05T03:28:24.281Z\"),\n startedAt: new Date(\"2024-08-20T02:19:30.433Z\"),\n endsAt: new Date(\"2023-01-03T22:38:10.292Z\"),\n endedAt: null,\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: null,\n checkoutId: \"<value>\",\n customerCancellationReason: \"missing_features\",\n customerCancellationComment: \"<value>\",\n metadata: {\n\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-06-06T08:13:58.211Z\"),\n modifiedAt: new Date(\"2023-06-07T02:15:24.636Z\"),\n metadata: {\n \"key\": 1764.16,\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-03-18T13:26:34.470Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"<value>\",\n createdAt: new Date(\"2024-08-22T01:08:59.550Z\"),\n modifiedAt: null,\n trialInterval: \"day\",\n trialIntervalCount: 920579,\n name: \"<value>\",\n description: \"via hm truly\",\n recurringInterval: \"month\",\n recurringIntervalCount: 848785,\n isRecurring: false,\n isArchived: false,\n organizationId: \"<value>\",\n metadata: {\n \"key\": true,\n },\n prices: [],\n benefits: [],\n medias: [\n {\n id: \"<value>\",\n organizationId: \"<value>\",\n name: \"<value>\",\n path: \"/lib\",\n mimeType: \"<value>\",\n size: 83334,\n storageVersion: \"<value>\",\n checksumEtag: \"<value>\",\n checksumSha256Base64: \"<value>\",\n checksumSha256Hex: \"<value>\",\n lastModifiedAt: new Date(\"2024-09-21T18:00:22.332Z\"),\n version: \"<value>\",\n service: \"product_media\",\n isUploaded: true,\n createdAt: new Date(\"2025-04-11T14:16:04.184Z\"),\n sizeReadable: \"<value>\",\n publicUrl: \"https://entire-ethyl.org/\",\n },\n ],\n attachedCustomFields: [\n {\n customFieldId: \"<value>\",\n customField: {\n createdAt: new Date(\"2024-11-19T14:39:19.899Z\"),\n modifiedAt: new Date(\"2024-10-07T08:09:01.589Z\"),\n id: \"<value>\",\n metadata: {\n \"key\": \"<value>\",\n },\n type: \"checkbox\",\n slug: \"<value>\",\n name: \"<value>\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 350933,\n required: false,\n },\n ],\n },\n discount: {\n duration: \"repeating\",\n type: \"percentage\",\n basisPoints: 1000,\n createdAt: new Date(\"2023-05-20T18:55:11.120Z\"),\n modifiedAt: new Date(\"2025-01-19T16:58:36.968Z\"),\n id: \"<value>\",\n metadata: {\n \"key\": \"<value>\",\n },\n name: \"<value>\",\n code: \"<value>\",\n startsAt: new Date(\"2024-09-20T02:04:48.363Z\"),\n endsAt: new Date(\"2023-02-23T04:10:00.244Z\"),\n maxRedemptions: 839446,\n redemptionsCount: 119301,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [],\n meters: [],\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1092
|
+
- target: $["paths"]["subscription.created"]["post"]
|
|
1093
|
+
update:
|
|
1094
|
+
"x-codeSamples":
|
|
1095
|
+
- "lang": "typescript"
|
|
1096
|
+
"label": "Typescript (SDK)"
|
|
1097
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionCreatedPost({\n type: \"subscription.created\",\n timestamp: new Date(\"2024-05-03T11:46:21.459Z\"),\n data: {\n createdAt: new Date(\"2023-12-03T10:52:23.880Z\"),\n modifiedAt: new Date(\"2024-05-29T05:21:44.072Z\"),\n id: \"<value>\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"day\",\n recurringIntervalCount: 990795,\n status: \"incomplete\",\n currentPeriodStart: new Date(\"2024-01-07T06:33:36.381Z\"),\n currentPeriodEnd: new Date(\"2024-07-30T16:54:44.427Z\"),\n trialStart: new Date(\"2025-01-24T01:20:23.589Z\"),\n trialEnd: new Date(\"2023-09-10T12:12:44.499Z\"),\n cancelAtPeriodEnd: false,\n canceledAt: new Date(\"2024-06-27T22:01:23.333Z\"),\n startedAt: new Date(\"2024-07-24T19:43:04.879Z\"),\n endsAt: null,\n endedAt: new Date(\"2024-04-01T08:29:51.925Z\"),\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: \"<value>\",\n checkoutId: \"<value>\",\n customerCancellationReason: \"unused\",\n customerCancellationComment: \"<value>\",\n metadata: {\n\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-09-10T08:59:46.091Z\"),\n modifiedAt: new Date(\"2024-07-06T00:27:46.272Z\"),\n metadata: {\n \"key\": 9576.45,\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-06-26T21:09:46.234Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"<value>\",\n createdAt: new Date(\"2023-05-15T22:05:41.858Z\"),\n modifiedAt: new Date(\"2024-01-31T16:35:38.441Z\"),\n trialInterval: \"year\",\n trialIntervalCount: 271531,\n name: \"<value>\",\n description: \"platypus scrape adventurously which cautiously secret completion\",\n recurringInterval: \"year\",\n recurringIntervalCount: 803045,\n isRecurring: false,\n isArchived: true,\n organizationId: \"<value>\",\n metadata: {\n\n },\n prices: [],\n benefits: [],\n medias: [],\n attachedCustomFields: [],\n },\n discount: {\n duration: \"repeating\",\n durationInMonths: 274053,\n type: \"percentage\",\n basisPoints: 1000,\n createdAt: new Date(\"2025-09-05T16:45:03.444Z\"),\n modifiedAt: new Date(\"2025-01-22T02:13:03.697Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n name: \"<value>\",\n code: \"<value>\",\n startsAt: new Date(\"2023-02-18T11:12:06.291Z\"),\n endsAt: new Date(\"2024-01-29T14:46:42.846Z\"),\n maxRedemptions: 440571,\n redemptionsCount: 801134,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [],\n meters: [],\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1098
|
+
- target: $["paths"]["subscription.revoked"]["post"]
|
|
1099
|
+
update:
|
|
1100
|
+
"x-codeSamples":
|
|
1101
|
+
- "lang": "typescript"
|
|
1102
|
+
"label": "Typescript (SDK)"
|
|
1103
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionRevokedPost({\n type: \"subscription.revoked\",\n timestamp: new Date(\"2024-01-02T06:40:50.860Z\"),\n data: {\n createdAt: new Date(\"2023-03-16T08:42:29.566Z\"),\n modifiedAt: new Date(\"2023-10-28T01:20:21.930Z\"),\n id: \"<value>\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"day\",\n recurringIntervalCount: 811590,\n status: \"active\",\n currentPeriodStart: new Date(\"2023-05-30T02:07:20.021Z\"),\n currentPeriodEnd: new Date(\"2023-06-01T18:10:42.435Z\"),\n trialStart: new Date(\"2023-02-17T04:59:11.584Z\"),\n trialEnd: new Date(\"2024-02-14T23:20:57.498Z\"),\n cancelAtPeriodEnd: false,\n canceledAt: new Date(\"2023-11-13T16:37:04.348Z\"),\n startedAt: new Date(\"2023-12-28T07:35:48.028Z\"),\n endsAt: new Date(\"2024-01-26T10:24:50.250Z\"),\n endedAt: new Date(\"2024-06-20T16:37:33.284Z\"),\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: \"<value>\",\n checkoutId: \"<value>\",\n customerCancellationReason: \"too_expensive\",\n customerCancellationComment: \"<value>\",\n metadata: {\n \"key\": 8717.41,\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-05-28T06:09:58.228Z\"),\n modifiedAt: new Date(\"2025-01-19T04:39:36.127Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-05-31T05:10:14.997Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"<value>\",\n createdAt: new Date(\"2025-06-26T05:35:27.950Z\"),\n modifiedAt: new Date(\"2024-06-01T00:18:42.763Z\"),\n trialInterval: \"week\",\n trialIntervalCount: 455030,\n name: \"<value>\",\n description: \"overburden quarrelsome outrun phew whose merrily language\",\n recurringInterval: \"year\",\n recurringIntervalCount: 518934,\n isRecurring: true,\n isArchived: false,\n organizationId: \"<value>\",\n metadata: {\n\n },\n prices: [],\n benefits: [\n {\n id: \"<value>\",\n createdAt: new Date(\"2023-12-16T06:31:21.339Z\"),\n modifiedAt: new Date(\"2024-06-28T04:33:55.419Z\"),\n type: \"discord\",\n description: \"yuck after plus meh enrich that\",\n selectable: false,\n deletable: false,\n organizationId: \"<value>\",\n metadata: {\n \"key\": 484393,\n },\n properties: {\n guildId: \"<id>\",\n roleId: \"<id>\",\n kickMember: false,\n guildToken: \"<value>\",\n },\n },\n ],\n medias: [\n {\n id: \"<value>\",\n organizationId: \"<value>\",\n name: \"<value>\",\n path: \"/usr/bin\",\n mimeType: \"<value>\",\n size: 968821,\n storageVersion: null,\n checksumEtag: \"<value>\",\n checksumSha256Base64: \"<value>\",\n checksumSha256Hex: \"<value>\",\n lastModifiedAt: new Date(\"2023-08-08T17:21:00.549Z\"),\n version: \"<value>\",\n service: \"product_media\",\n isUploaded: true,\n createdAt: new Date(\"2023-09-16T06:24:58.018Z\"),\n sizeReadable: \"<value>\",\n publicUrl: \"https://utter-requirement.name\",\n },\n ],\n attachedCustomFields: [],\n },\n discount: {\n duration: \"repeating\",\n durationInMonths: 999351,\n type: \"percentage\",\n amount: 1000,\n currency: \"usd\",\n createdAt: new Date(\"2024-07-01T13:17:29.420Z\"),\n modifiedAt: new Date(\"2025-02-23T14:37:34.479Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n name: \"<value>\",\n code: \"<value>\",\n startsAt: new Date(\"2024-12-31T12:49:59.518Z\"),\n endsAt: new Date(\"2024-06-27T11:23:29.412Z\"),\n maxRedemptions: 437648,\n redemptionsCount: 444423,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [\n {\n createdAt: new Date(\"2025-10-03T04:33:30.421Z\"),\n modifiedAt: new Date(\"2023-02-24T01:04:52.565Z\"),\n id: \"<value>\",\n amountType: \"fixed\",\n isArchived: false,\n productId: \"<value>\",\n type: \"one_time\",\n recurringInterval: \"month\",\n priceCurrency: \"<value>\",\n priceAmount: 213583,\n legacy: true,\n },\n ],\n meters: [],\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1104
|
+
- target: $["paths"]["subscription.uncanceled"]["post"]
|
|
1105
|
+
update:
|
|
1106
|
+
"x-codeSamples":
|
|
1107
|
+
- "lang": "typescript"
|
|
1108
|
+
"label": "Typescript (SDK)"
|
|
1109
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionUncanceledPost({\n type: \"subscription.uncanceled\",\n timestamp: new Date(\"2023-02-06T17:25:10.106Z\"),\n data: {\n createdAt: new Date(\"2023-05-13T11:53:26.507Z\"),\n modifiedAt: null,\n id: \"<value>\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"year\",\n recurringIntervalCount: 406654,\n status: \"incomplete_expired\",\n currentPeriodStart: new Date(\"2025-06-06T02:06:49.326Z\"),\n currentPeriodEnd: new Date(\"2023-04-28T08:16:42.068Z\"),\n trialStart: new Date(\"2023-10-03T23:40:30.923Z\"),\n trialEnd: new Date(\"2024-11-16T02:01:16.824Z\"),\n cancelAtPeriodEnd: true,\n canceledAt: new Date(\"2023-12-23T04:50:00.016Z\"),\n startedAt: new Date(\"2024-10-18T16:25:47.209Z\"),\n endsAt: new Date(\"2023-01-21T06:39:24.599Z\"),\n endedAt: new Date(\"2023-06-01T22:55:56.558Z\"),\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: \"<value>\",\n checkoutId: null,\n customerCancellationReason: \"switched_service\",\n customerCancellationComment: \"<value>\",\n metadata: {\n\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-12-23T09:30:11.195Z\"),\n modifiedAt: new Date(\"2024-12-20T09:31:52.259Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2023-09-22T11:20:51.361Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"<value>\",\n createdAt: new Date(\"2024-10-15T19:47:04.648Z\"),\n modifiedAt: new Date(\"2024-08-04T07:14:33.597Z\"),\n trialInterval: \"month\",\n trialIntervalCount: 449040,\n name: \"<value>\",\n description: \"geez proper whenever exaggerate\",\n recurringInterval: \"week\",\n recurringIntervalCount: 130752,\n isRecurring: true,\n isArchived: true,\n organizationId: \"<value>\",\n metadata: {\n \"key\": 4421.44,\n },\n prices: [\n {\n createdAt: new Date(\"2024-02-14T17:42:30.228Z\"),\n modifiedAt: new Date(\"2023-11-01T03:56:36.911Z\"),\n id: \"<value>\",\n amountType: \"seat_based\",\n isArchived: true,\n productId: \"<value>\",\n type: \"one_time\",\n recurringInterval: \"week\",\n priceCurrency: \"<value>\",\n seatTiers: {\n tiers: [],\n },\n },\n ],\n benefits: [\n {\n id: \"<value>\",\n createdAt: new Date(\"2025-10-16T22:21:29.269Z\"),\n modifiedAt: new Date(\"2024-12-25T00:51:16.069Z\"),\n type: \"license_keys\",\n description: \"confound consequently fairly around winged lounge hmph\",\n selectable: true,\n deletable: false,\n organizationId: \"<value>\",\n metadata: {\n\n },\n properties: {\n prefix: null,\n expires: {\n ttl: 137943,\n timeframe: \"year\",\n },\n activations: {\n limit: 601895,\n enableCustomerAdmin: false,\n },\n limitUsage: 7151,\n },\n },\n ],\n medias: [\n {\n id: \"<value>\",\n organizationId: \"<value>\",\n name: \"<value>\",\n path: \"/home/user\",\n mimeType: \"<value>\",\n size: 973918,\n storageVersion: null,\n checksumEtag: \"<value>\",\n checksumSha256Base64: \"<value>\",\n checksumSha256Hex: \"<value>\",\n lastModifiedAt: new Date(\"2024-08-03T23:06:56.842Z\"),\n version: \"<value>\",\n service: \"product_media\",\n isUploaded: false,\n createdAt: new Date(\"2024-07-11T07:06:51.985Z\"),\n sizeReadable: \"<value>\",\n publicUrl: \"https://brave-apparatus.org\",\n },\n ],\n attachedCustomFields: [\n {\n customFieldId: \"<value>\",\n customField: {\n createdAt: new Date(\"2024-11-24T20:44:07.855Z\"),\n modifiedAt: new Date(\"2023-01-08T04:12:28.982Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n type: \"number\",\n slug: \"<value>\",\n name: \"<value>\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 641015,\n required: true,\n },\n ],\n },\n discount: {\n duration: \"once\",\n type: \"fixed\",\n basisPoints: 1000,\n createdAt: new Date(\"2023-02-07T10:32:39.606Z\"),\n modifiedAt: new Date(\"2025-11-03T02:51:34.636Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n name: \"<value>\",\n code: \"<value>\",\n startsAt: null,\n endsAt: new Date(\"2024-04-21T02:08:16.256Z\"),\n maxRedemptions: 865781,\n redemptionsCount: 827760,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [],\n meters: [],\n },\n });\n\n console.log(result);\n}\n\nrun();"
|
|
1110
|
+
- target: $["paths"]["subscription.updated"]["post"]
|
|
1111
|
+
update:
|
|
1112
|
+
"x-codeSamples":
|
|
1113
|
+
- "lang": "typescript"
|
|
1114
|
+
"label": "Typescript (SDK)"
|
|
1115
|
+
"source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionUpdatedPost({\n type: \"subscription.updated\",\n timestamp: new Date(\"2023-06-24T13:26:25.969Z\"),\n data: {\n createdAt: new Date(\"2024-05-25T12:11:24.717Z\"),\n modifiedAt: new Date(\"2024-07-08T02:17:23.799Z\"),\n id: \"<value>\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"week\",\n recurringIntervalCount: 489836,\n status: \"canceled\",\n currentPeriodStart: new Date(\"2024-06-19T12:29:28.503Z\"),\n currentPeriodEnd: new Date(\"2023-08-24T22:14:10.131Z\"),\n trialStart: new Date(\"2025-12-11T02:41:54.261Z\"),\n trialEnd: new Date(\"2025-12-29T02:13:52.269Z\"),\n cancelAtPeriodEnd: true,\n canceledAt: new Date(\"2025-01-23T22:07:32.693Z\"),\n startedAt: new Date(\"2025-05-14T13:55:44.367Z\"),\n endsAt: new Date(\"2024-10-25T00:53:02.943Z\"),\n endedAt: new Date(\"2023-09-29T06:12:50.252Z\"),\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: \"<value>\",\n checkoutId: \"<value>\",\n customerCancellationReason: \"switched_service\",\n customerCancellationComment: \"<value>\",\n metadata: {\n\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-02-26T04:35:08.698Z\"),\n modifiedAt: new Date(\"2024-01-10T06:45:35.933Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2024-04-21T20:23:52.355Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"<value>\",\n createdAt: new Date(\"2023-05-10T07:26:17.258Z\"),\n modifiedAt: new Date(\"2025-07-20T14:48:07.590Z\"),\n trialInterval: \"year\",\n trialIntervalCount: 640251,\n name: \"<value>\",\n description: \"swelter when besides utter phew knottily utilization now\",\n recurringInterval: \"year\",\n recurringIntervalCount: null,\n isRecurring: true,\n isArchived: true,\n organizationId: \"<value>\",\n metadata: {\n \"key\": 2229.58,\n },\n prices: [\n {\n createdAt: new Date(\"2024-10-24T03:47:20.035Z\"),\n modifiedAt: new Date(\"2023-07-28T10:52:24.280Z\"),\n id: \"<value>\",\n amountType: \"custom\",\n isArchived: true,\n productId: \"<value>\",\n type: \"one_time\",\n recurringInterval: \"week\",\n priceCurrency: \"<value>\",\n minimumAmount: 588876,\n maximumAmount: 280866,\n presetAmount: 942797,\n legacy: true,\n },\n ],\n benefits: [],\n medias: [],\n attachedCustomFields: [],\n },\n discount: {\n duration: \"once\",\n type: \"percentage\",\n amount: 1000,\n currency: \"usd\",\n createdAt: new Date(\"2025-11-18T23:26:50.006Z\"),\n modifiedAt: new Date(\"2024-05-31T09:53:13.946Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n name: \"<value>\",\n code: \"<value>\",\n startsAt: new Date(\"2025-12-28T16:59:30.195Z\"),\n endsAt: new Date(\"2023-06-09T06:11:59.062Z\"),\n maxRedemptions: 580493,\n redemptionsCount: 595442,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [],\n meters: [\n {\n createdAt: new Date(\"2024-05-25T04:21:31.587Z\"),\n modifiedAt: new Date(\"2024-02-19T12:40:10.475Z\"),\n id: \"<value>\",\n consumedUnits: 25,\n creditedUnits: 100,\n amount: 0,\n meterId: \"d498a884-e2cd-4d3e-8002-f536468a8b22\",\n meter: {\n metadata: {\n\n },\n createdAt: new Date(\"2023-04-12T20:54:06.410Z\"),\n modifiedAt: new Date(\"2025-03-19T14:28:57.223Z\"),\n id: \"<value>\",\n name: \"<value>\",\n filter: {\n conjunction: \"and\",\n clauses: [\n {\n conjunction: \"and\",\n clauses: [],\n },\n ],\n },\n aggregation: {\n func: \"min\",\n property: \"<value>\",\n },\n organizationId: \"<value>\",\n },\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();"
|