orb-billing 1.0.1
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/LICENSE.md +21 -0
- package/README.md +169 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +20 -0
- package/dist/internal/utils/contenttype.d.ts +1 -0
- package/dist/internal/utils/contenttype.js +33 -0
- package/dist/internal/utils/headers.d.ts +4 -0
- package/dist/internal/utils/headers.js +92 -0
- package/dist/internal/utils/index.d.ts +8 -0
- package/dist/internal/utils/index.js +27 -0
- package/dist/internal/utils/pathparams.d.ts +2 -0
- package/dist/internal/utils/pathparams.js +53 -0
- package/dist/internal/utils/queryparams.d.ts +2 -0
- package/dist/internal/utils/queryparams.js +178 -0
- package/dist/internal/utils/requestbody.d.ts +2 -0
- package/dist/internal/utils/requestbody.js +318 -0
- package/dist/internal/utils/retries.d.ts +20 -0
- package/dist/internal/utils/retries.js +250 -0
- package/dist/internal/utils/security.d.ts +2 -0
- package/dist/internal/utils/security.js +188 -0
- package/dist/internal/utils/utils.d.ts +37 -0
- package/dist/internal/utils/utils.js +370 -0
- package/dist/sdk/availability.d.ts +19 -0
- package/dist/sdk/availability.js +135 -0
- package/dist/sdk/coupon.d.ts +53 -0
- package/dist/sdk/coupon.js +358 -0
- package/dist/sdk/credit.d.ts +142 -0
- package/dist/sdk/credit.js +501 -0
- package/dist/sdk/creditnote.d.ts +26 -0
- package/dist/sdk/creditnote.js +186 -0
- package/dist/sdk/customer.d.ts +264 -0
- package/dist/sdk/customer.js +958 -0
- package/dist/sdk/event.d.ts +258 -0
- package/dist/sdk/event.js +732 -0
- package/dist/sdk/index.d.ts +1 -0
- package/dist/sdk/index.js +20 -0
- package/dist/sdk/invoice.d.ts +60 -0
- package/dist/sdk/invoice.js +416 -0
- package/dist/sdk/models/operations/addledgerentryexternalid.d.ts +16 -0
- package/dist/sdk/models/operations/addledgerentryexternalid.js +95 -0
- package/dist/sdk/models/operations/amendevent.d.ts +23 -0
- package/dist/sdk/models/operations/amendevent.js +99 -0
- package/dist/sdk/models/operations/amendusage.d.ts +34 -0
- package/dist/sdk/models/operations/amendusage.js +122 -0
- package/dist/sdk/models/operations/amendusageexternalcustomerid.d.ts +34 -0
- package/dist/sdk/models/operations/amendusageexternalcustomerid.js +122 -0
- package/dist/sdk/models/operations/archivecoupon.d.ts +15 -0
- package/dist/sdk/models/operations/archivecoupon.js +91 -0
- package/dist/sdk/models/operations/cancelsubscription.d.ts +16 -0
- package/dist/sdk/models/operations/cancelsubscription.js +95 -0
- package/dist/sdk/models/operations/closebackfill.d.ts +15 -0
- package/dist/sdk/models/operations/closebackfill.js +91 -0
- package/dist/sdk/models/operations/createbackfill.d.ts +12 -0
- package/dist/sdk/models/operations/createbackfill.js +79 -0
- package/dist/sdk/models/operations/createcoupon.d.ts +12 -0
- package/dist/sdk/models/operations/createcoupon.js +79 -0
- package/dist/sdk/models/operations/createcustomer.d.ts +12 -0
- package/dist/sdk/models/operations/createcustomer.js +79 -0
- package/dist/sdk/models/operations/createcustomerbalancetransaction.d.ts +16 -0
- package/dist/sdk/models/operations/createcustomerbalancetransaction.js +95 -0
- package/dist/sdk/models/operations/createinvoicelineitem.d.ts +12 -0
- package/dist/sdk/models/operations/createinvoicelineitem.js +79 -0
- package/dist/sdk/models/operations/createledgerentry.d.ts +16 -0
- package/dist/sdk/models/operations/createledgerentry.js +95 -0
- package/dist/sdk/models/operations/createsubscription.d.ts +12 -0
- package/dist/sdk/models/operations/createsubscription.js +79 -0
- package/dist/sdk/models/operations/deletecustomer.d.ts +22 -0
- package/dist/sdk/models/operations/deletecustomer.js +78 -0
- package/dist/sdk/models/operations/deprecateevent.d.ts +22 -0
- package/dist/sdk/models/operations/deprecateevent.js +95 -0
- package/dist/sdk/models/operations/fetchcoupon.d.ts +15 -0
- package/dist/sdk/models/operations/fetchcoupon.js +91 -0
- package/dist/sdk/models/operations/fetchcreditnote.d.ts +18 -0
- package/dist/sdk/models/operations/fetchcreditnote.js +91 -0
- package/dist/sdk/models/operations/fetchcustomer.d.ts +18 -0
- package/dist/sdk/models/operations/fetchcustomer.js +91 -0
- package/dist/sdk/models/operations/fetchcustomercosts.d.ts +34 -0
- package/dist/sdk/models/operations/fetchcustomercosts.js +107 -0
- package/dist/sdk/models/operations/fetchcustomercostsexternalid.d.ts +31 -0
- package/dist/sdk/models/operations/fetchcustomercostsexternalid.js +107 -0
- package/dist/sdk/models/operations/fetchcustomercredits.d.ts +26 -0
- package/dist/sdk/models/operations/fetchcustomercredits.js +99 -0
- package/dist/sdk/models/operations/fetchcustomercreditsexternalid.d.ts +23 -0
- package/dist/sdk/models/operations/fetchcustomercreditsexternalid.js +99 -0
- package/dist/sdk/models/operations/fetchcustomercreditsledger.d.ts +35 -0
- package/dist/sdk/models/operations/fetchcustomercreditsledger.js +111 -0
- package/dist/sdk/models/operations/fetchcustomercreditsledgerexternalid.d.ts +35 -0
- package/dist/sdk/models/operations/fetchcustomercreditsledgerexternalid.js +111 -0
- package/dist/sdk/models/operations/fetchcustomerexternalid.d.ts +15 -0
- package/dist/sdk/models/operations/fetchcustomerexternalid.js +91 -0
- package/dist/sdk/models/operations/fetchinvoice.d.ts +15 -0
- package/dist/sdk/models/operations/fetchinvoice.js +91 -0
- package/dist/sdk/models/operations/fetchplan.d.ts +15 -0
- package/dist/sdk/models/operations/fetchplan.js +91 -0
- package/dist/sdk/models/operations/fetchplanexternalid.d.ts +15 -0
- package/dist/sdk/models/operations/fetchplanexternalid.js +91 -0
- package/dist/sdk/models/operations/fetchsubscription.d.ts +15 -0
- package/dist/sdk/models/operations/fetchsubscription.js +91 -0
- package/dist/sdk/models/operations/fetchsubscriptioncosts.d.ts +31 -0
- package/dist/sdk/models/operations/fetchsubscriptioncosts.js +107 -0
- package/dist/sdk/models/operations/fetchsubscriptionschedule.d.ts +23 -0
- package/dist/sdk/models/operations/fetchsubscriptionschedule.js +99 -0
- package/dist/sdk/models/operations/fetchsubscriptionusage.d.ts +39 -0
- package/dist/sdk/models/operations/fetchsubscriptionusage.js +115 -0
- package/dist/sdk/models/operations/fetchupcominginvoice.d.ts +15 -0
- package/dist/sdk/models/operations/fetchupcominginvoice.js +91 -0
- package/dist/sdk/models/operations/index.d.ts +55 -0
- package/dist/sdk/models/operations/index.js +74 -0
- package/dist/sdk/models/operations/ingest.d.ts +30 -0
- package/dist/sdk/models/operations/ingest.js +118 -0
- package/dist/sdk/models/operations/issueinvoice.d.ts +19 -0
- package/dist/sdk/models/operations/issueinvoice.js +95 -0
- package/dist/sdk/models/operations/listbackfills.d.ts +22 -0
- package/dist/sdk/models/operations/listbackfills.js +95 -0
- package/dist/sdk/models/operations/listbalancetransactions.d.ts +23 -0
- package/dist/sdk/models/operations/listbalancetransactions.js +99 -0
- package/dist/sdk/models/operations/listcoupons.d.ts +30 -0
- package/dist/sdk/models/operations/listcoupons.js +103 -0
- package/dist/sdk/models/operations/listcouponsubscriptions.d.ts +15 -0
- package/dist/sdk/models/operations/listcouponsubscriptions.js +91 -0
- package/dist/sdk/models/operations/listcreditnote.d.ts +34 -0
- package/dist/sdk/models/operations/listcreditnote.js +107 -0
- package/dist/sdk/models/operations/listcustomers.d.ts +22 -0
- package/dist/sdk/models/operations/listcustomers.js +95 -0
- package/dist/sdk/models/operations/listinvoices.d.ts +38 -0
- package/dist/sdk/models/operations/listinvoices.js +111 -0
- package/dist/sdk/models/operations/listplans.d.ts +22 -0
- package/dist/sdk/models/operations/listplans.js +95 -0
- package/dist/sdk/models/operations/listsubscriptions.d.ts +24 -0
- package/dist/sdk/models/operations/listsubscriptions.js +103 -0
- package/dist/sdk/models/operations/ping.d.ts +12 -0
- package/dist/sdk/models/operations/ping.js +79 -0
- package/dist/sdk/models/operations/revertbackfill.d.ts +15 -0
- package/dist/sdk/models/operations/revertbackfill.js +91 -0
- package/dist/sdk/models/operations/scheduleplanchange.d.ts +16 -0
- package/dist/sdk/models/operations/scheduleplanchange.js +95 -0
- package/dist/sdk/models/operations/searchevents.d.ts +23 -0
- package/dist/sdk/models/operations/searchevents.js +99 -0
- package/dist/sdk/models/operations/unschedulecancellation.d.ts +15 -0
- package/dist/sdk/models/operations/unschedulecancellation.js +91 -0
- package/dist/sdk/models/operations/unscheduleplanchange.d.ts +15 -0
- package/dist/sdk/models/operations/unscheduleplanchange.js +91 -0
- package/dist/sdk/models/operations/updatecustomer.d.ts +19 -0
- package/dist/sdk/models/operations/updatecustomer.js +95 -0
- package/dist/sdk/models/operations/updatecustomerexternalid.d.ts +16 -0
- package/dist/sdk/models/operations/updatecustomerexternalid.js +95 -0
- package/dist/sdk/models/operations/updatefixedfeequantity.d.ts +16 -0
- package/dist/sdk/models/operations/updatefixedfeequantity.js +95 -0
- package/dist/sdk/models/operations/voidinvoice.d.ts +19 -0
- package/dist/sdk/models/operations/voidinvoice.js +95 -0
- package/dist/sdk/models/shared/action.d.ts +8 -0
- package/dist/sdk/models/shared/action.js +15 -0
- package/dist/sdk/models/shared/amendedevent.d.ts +28 -0
- package/dist/sdk/models/shared/amendedevent.js +81 -0
- package/dist/sdk/models/shared/amendedusage.d.ts +16 -0
- package/dist/sdk/models/shared/amendedusage.js +62 -0
- package/dist/sdk/models/shared/amendeventresult.d.ts +10 -0
- package/dist/sdk/models/shared/amendeventresult.js +48 -0
- package/dist/sdk/models/shared/autocollection.d.ts +18 -0
- package/dist/sdk/models/shared/autocollection.js +66 -0
- package/dist/sdk/models/shared/availability.d.ts +7 -0
- package/dist/sdk/models/shared/availability.js +48 -0
- package/dist/sdk/models/shared/backfill.d.ts +27 -0
- package/dist/sdk/models/shared/backfill.js +104 -0
- package/dist/sdk/models/shared/backfills.d.ts +10 -0
- package/dist/sdk/models/shared/backfills.js +57 -0
- package/dist/sdk/models/shared/backfillstatus.d.ts +9 -0
- package/dist/sdk/models/shared/backfillstatus.js +16 -0
- package/dist/sdk/models/shared/billablemetric.d.ts +4 -0
- package/dist/sdk/models/shared/billablemetric.js +45 -0
- package/dist/sdk/models/shared/billablemetricminified.d.ts +5 -0
- package/dist/sdk/models/shared/billablemetricminified.js +50 -0
- package/dist/sdk/models/shared/bpsconfig.d.ts +8 -0
- package/dist/sdk/models/shared/bpsconfig.js +53 -0
- package/dist/sdk/models/shared/bpspriceoverride.d.ts +24 -0
- package/dist/sdk/models/shared/bpspriceoverride.js +74 -0
- package/dist/sdk/models/shared/bpstier.d.ts +7 -0
- package/dist/sdk/models/shared/bpstier.js +60 -0
- package/dist/sdk/models/shared/bulkbpsconfig.d.ts +8 -0
- package/dist/sdk/models/shared/bulkbpsconfig.js +50 -0
- package/dist/sdk/models/shared/bulkbpspriceoverride.d.ts +24 -0
- package/dist/sdk/models/shared/bulkbpspriceoverride.js +74 -0
- package/dist/sdk/models/shared/bulkbpstier.d.ts +6 -0
- package/dist/sdk/models/shared/bulkbpstier.js +55 -0
- package/dist/sdk/models/shared/bulkconfig.d.ts +8 -0
- package/dist/sdk/models/shared/bulkconfig.js +50 -0
- package/dist/sdk/models/shared/bulkpriceoverride.d.ts +24 -0
- package/dist/sdk/models/shared/bulkpriceoverride.js +74 -0
- package/dist/sdk/models/shared/bulktier.d.ts +5 -0
- package/dist/sdk/models/shared/bulktier.js +50 -0
- package/dist/sdk/models/shared/cadence.d.ts +5 -0
- package/dist/sdk/models/shared/cadence.js +12 -0
- package/dist/sdk/models/shared/canceloption.d.ts +8 -0
- package/dist/sdk/models/shared/canceloption.js +15 -0
- package/dist/sdk/models/shared/changeoption.d.ts +8 -0
- package/dist/sdk/models/shared/changeoption.js +15 -0
- package/dist/sdk/models/shared/changeoption1.d.ts +8 -0
- package/dist/sdk/models/shared/changeoption1.js +15 -0
- package/dist/sdk/models/shared/coupon.d.ts +36 -0
- package/dist/sdk/models/shared/coupon.js +88 -0
- package/dist/sdk/models/shared/coupons.d.ts +10 -0
- package/dist/sdk/models/shared/coupons.js +57 -0
- package/dist/sdk/models/shared/credit.d.ts +16 -0
- package/dist/sdk/models/shared/credit.js +64 -0
- package/dist/sdk/models/shared/creditblock.d.ts +15 -0
- package/dist/sdk/models/shared/creditblock.js +58 -0
- package/dist/sdk/models/shared/creditledgerentries.d.ts +10 -0
- package/dist/sdk/models/shared/creditledgerentries.js +57 -0
- package/dist/sdk/models/shared/creditledgerentry.d.ts +58 -0
- package/dist/sdk/models/shared/creditledgerentry.js +144 -0
- package/dist/sdk/models/shared/creditnote.d.ts +71 -0
- package/dist/sdk/models/shared/creditnote.js +134 -0
- package/dist/sdk/models/shared/creditnotelineitem.d.ts +38 -0
- package/dist/sdk/models/shared/creditnotelineitem.js +86 -0
- package/dist/sdk/models/shared/creditnotes.d.ts +10 -0
- package/dist/sdk/models/shared/creditnotes.js +57 -0
- package/dist/sdk/models/shared/creditnotesummary.d.ts +9 -0
- package/dist/sdk/models/shared/creditnotesummary.js +74 -0
- package/dist/sdk/models/shared/creditnotetype.d.ts +7 -0
- package/dist/sdk/models/shared/creditnotetype.js +14 -0
- package/dist/sdk/models/shared/credits.d.ts +10 -0
- package/dist/sdk/models/shared/credits.js +57 -0
- package/dist/sdk/models/shared/customer.d.ts +227 -0
- package/dist/sdk/models/shared/customer.js +364 -0
- package/dist/sdk/models/shared/customerbalancetransaction.d.ts +57 -0
- package/dist/sdk/models/shared/customerbalancetransaction.js +133 -0
- package/dist/sdk/models/shared/customercost.d.ts +15 -0
- package/dist/sdk/models/shared/customercost.js +75 -0
- package/dist/sdk/models/shared/customercosts.d.ts +8 -0
- package/dist/sdk/models/shared/customercosts.js +50 -0
- package/dist/sdk/models/shared/customerminified.d.ts +8 -0
- package/dist/sdk/models/shared/customerminified.js +53 -0
- package/dist/sdk/models/shared/customers.d.ts +10 -0
- package/dist/sdk/models/shared/customers.js +57 -0
- package/dist/sdk/models/shared/debug.d.ts +8 -0
- package/dist/sdk/models/shared/debug.js +53 -0
- package/dist/sdk/models/shared/deprecatedeventresult.d.ts +10 -0
- package/dist/sdk/models/shared/deprecatedeventresult.js +48 -0
- package/dist/sdk/models/shared/discount.d.ts +25 -0
- package/dist/sdk/models/shared/discount.js +71 -0
- package/dist/sdk/models/shared/discounttype.d.ts +6 -0
- package/dist/sdk/models/shared/discounttype.js +13 -0
- package/dist/sdk/models/shared/durationunit.d.ts +8 -0
- package/dist/sdk/models/shared/durationunit.js +15 -0
- package/dist/sdk/models/shared/entrystatus.d.ts +7 -0
- package/dist/sdk/models/shared/entrystatus.js +14 -0
- package/dist/sdk/models/shared/entrytype.d.ts +9 -0
- package/dist/sdk/models/shared/entrytype.js +16 -0
- package/dist/sdk/models/shared/event.d.ts +32 -0
- package/dist/sdk/models/shared/event.js +82 -0
- package/dist/sdk/models/shared/eventsearchcriteria.d.ts +11 -0
- package/dist/sdk/models/shared/eventsearchcriteria.js +50 -0
- package/dist/sdk/models/shared/eventsearchresults.d.ts +10 -0
- package/dist/sdk/models/shared/eventsearchresults.js +57 -0
- package/dist/sdk/models/shared/externalmarketplace.d.ts +8 -0
- package/dist/sdk/models/shared/externalmarketplace.js +15 -0
- package/dist/sdk/models/shared/fixedfeequantitychange.d.ts +18 -0
- package/dist/sdk/models/shared/fixedfeequantitychange.js +66 -0
- package/dist/sdk/models/shared/fixedfeequantityschedule.d.ts +7 -0
- package/dist/sdk/models/shared/fixedfeequantityschedule.js +68 -0
- package/dist/sdk/models/shared/granularity.d.ts +6 -0
- package/dist/sdk/models/shared/granularity.js +13 -0
- package/dist/sdk/models/shared/grouping.d.ts +8 -0
- package/dist/sdk/models/shared/grouping.js +53 -0
- package/dist/sdk/models/shared/index.d.ts +125 -0
- package/dist/sdk/models/shared/index.js +144 -0
- package/dist/sdk/models/shared/ingestionresponse.d.ts +13 -0
- package/dist/sdk/models/shared/ingestionresponse.js +57 -0
- package/dist/sdk/models/shared/invoice.d.ts +274 -0
- package/dist/sdk/models/shared/invoice.js +460 -0
- package/dist/sdk/models/shared/invoicelineitem.d.ts +207 -0
- package/dist/sdk/models/shared/invoicelineitem.js +416 -0
- package/dist/sdk/models/shared/invoices.d.ts +10 -0
- package/dist/sdk/models/shared/invoices.js +57 -0
- package/dist/sdk/models/shared/invoicesettings.d.ts +18 -0
- package/dist/sdk/models/shared/invoicesettings.js +58 -0
- package/dist/sdk/models/shared/invoicestatus.d.ts +10 -0
- package/dist/sdk/models/shared/invoicestatus.js +17 -0
- package/dist/sdk/models/shared/lineitem.d.ts +58 -0
- package/dist/sdk/models/shared/lineitem.js +147 -0
- package/dist/sdk/models/shared/matrixconfig.d.ts +13 -0
- package/dist/sdk/models/shared/matrixconfig.js +60 -0
- package/dist/sdk/models/shared/matrixconfig1.d.ts +10 -0
- package/dist/sdk/models/shared/matrixconfig1.js +48 -0
- package/dist/sdk/models/shared/matrixvalue.d.ts +8 -0
- package/dist/sdk/models/shared/matrixvalue.js +50 -0
- package/dist/sdk/models/shared/modeltype.d.ts +10 -0
- package/dist/sdk/models/shared/modeltype.js +17 -0
- package/dist/sdk/models/shared/newbackfill.d.ts +27 -0
- package/dist/sdk/models/shared/newbackfill.js +82 -0
- package/dist/sdk/models/shared/newcoupon.d.ts +24 -0
- package/dist/sdk/models/shared/newcoupon.js +69 -0
- package/dist/sdk/models/shared/newcreditledgerentry.d.ts +44 -0
- package/dist/sdk/models/shared/newcreditledgerentry.js +109 -0
- package/dist/sdk/models/shared/newcustomer.d.ts +202 -0
- package/dist/sdk/models/shared/newcustomer.js +324 -0
- package/dist/sdk/models/shared/newinvoicelineitem.d.ts +28 -0
- package/dist/sdk/models/shared/newinvoicelineitem.js +79 -0
- package/dist/sdk/models/shared/newsubscription.d.ts +79 -0
- package/dist/sdk/models/shared/newsubscription.js +145 -0
- package/dist/sdk/models/shared/newtransaction.d.ts +10 -0
- package/dist/sdk/models/shared/newtransaction.js +56 -0
- package/dist/sdk/models/shared/packageconfig.d.ts +8 -0
- package/dist/sdk/models/shared/packageconfig.js +53 -0
- package/dist/sdk/models/shared/packagepriceoverride.d.ts +24 -0
- package/dist/sdk/models/shared/packagepriceoverride.js +74 -0
- package/dist/sdk/models/shared/paginationmetadata.d.ts +5 -0
- package/dist/sdk/models/shared/paginationmetadata.js +50 -0
- package/dist/sdk/models/shared/perpricecost.d.ts +24 -0
- package/dist/sdk/models/shared/perpricecost.js +67 -0
- package/dist/sdk/models/shared/phaseoverride.d.ts +40 -0
- package/dist/sdk/models/shared/phaseoverride.js +100 -0
- package/dist/sdk/models/shared/plan.d.ts +101 -0
- package/dist/sdk/models/shared/plan.js +250 -0
- package/dist/sdk/models/shared/planminified.d.ts +5 -0
- package/dist/sdk/models/shared/planminified.js +50 -0
- package/dist/sdk/models/shared/planphase.d.ts +68 -0
- package/dist/sdk/models/shared/planphase.js +162 -0
- package/dist/sdk/models/shared/plans.d.ts +10 -0
- package/dist/sdk/models/shared/plans.js +57 -0
- package/dist/sdk/models/shared/price.d.ts +114 -0
- package/dist/sdk/models/shared/price.js +245 -0
- package/dist/sdk/models/shared/pricegroup.d.ts +17 -0
- package/dist/sdk/models/shared/pricegroup.js +65 -0
- package/dist/sdk/models/shared/product.d.ts +6 -0
- package/dist/sdk/models/shared/product.js +59 -0
- package/dist/sdk/models/shared/reason.d.ts +9 -0
- package/dist/sdk/models/shared/reason.js +16 -0
- package/dist/sdk/models/shared/requestvalidationerror.d.ts +20 -0
- package/dist/sdk/models/shared/requestvalidationerror.js +65 -0
- package/dist/sdk/models/shared/security.d.ts +4 -0
- package/dist/sdk/models/shared/security.js +45 -0
- package/dist/sdk/models/shared/sublineitem.d.ts +32 -0
- package/dist/sdk/models/shared/sublineitem.js +102 -0
- package/dist/sdk/models/shared/sublineitem1.d.ts +24 -0
- package/dist/sdk/models/shared/sublineitem1.js +75 -0
- package/dist/sdk/models/shared/sublineitem2.d.ts +6 -0
- package/dist/sdk/models/shared/sublineitem2.js +55 -0
- package/dist/sdk/models/shared/subscription.d.ts +95 -0
- package/dist/sdk/models/shared/subscription.js +207 -0
- package/dist/sdk/models/shared/subscriptioncancellation.d.ts +12 -0
- package/dist/sdk/models/shared/subscriptioncancellation.js +55 -0
- package/dist/sdk/models/shared/subscriptioncost.d.ts +15 -0
- package/dist/sdk/models/shared/subscriptioncost.js +75 -0
- package/dist/sdk/models/shared/subscriptioncosts.d.ts +8 -0
- package/dist/sdk/models/shared/subscriptioncosts.js +50 -0
- package/dist/sdk/models/shared/subscriptionminified.d.ts +7 -0
- package/dist/sdk/models/shared/subscriptionminified.js +48 -0
- package/dist/sdk/models/shared/subscriptionplanchange.d.ts +54 -0
- package/dist/sdk/models/shared/subscriptionplanchange.js +104 -0
- package/dist/sdk/models/shared/subscriptions.d.ts +10 -0
- package/dist/sdk/models/shared/subscriptions.js +57 -0
- package/dist/sdk/models/shared/subscriptionschedule.d.ts +10 -0
- package/dist/sdk/models/shared/subscriptionschedule.js +57 -0
- package/dist/sdk/models/shared/subscriptionscheduleitem.d.ts +7 -0
- package/dist/sdk/models/shared/subscriptionscheduleitem.js +65 -0
- package/dist/sdk/models/shared/subscriptionstatus.d.ts +5 -0
- package/dist/sdk/models/shared/subscriptionstatus.js +12 -0
- package/dist/sdk/models/shared/subscriptionusage.d.ts +8 -0
- package/dist/sdk/models/shared/subscriptionusage.js +50 -0
- package/dist/sdk/models/shared/taxamount.d.ts +15 -0
- package/dist/sdk/models/shared/taxamount.js +55 -0
- package/dist/sdk/models/shared/tier.d.ts +6 -0
- package/dist/sdk/models/shared/tier.js +55 -0
- package/dist/sdk/models/shared/tier7.d.ts +7 -0
- package/dist/sdk/models/shared/tier7.js +60 -0
- package/dist/sdk/models/shared/tierconfig.d.ts +9 -0
- package/dist/sdk/models/shared/tierconfig.js +58 -0
- package/dist/sdk/models/shared/tieredbpsconfig.d.ts +8 -0
- package/dist/sdk/models/shared/tieredbpsconfig.js +50 -0
- package/dist/sdk/models/shared/tieredbpsconfig1.d.ts +5 -0
- package/dist/sdk/models/shared/tieredbpsconfig1.js +47 -0
- package/dist/sdk/models/shared/tieredbpspriceoverride.d.ts +21 -0
- package/dist/sdk/models/shared/tieredbpspriceoverride.js +74 -0
- package/dist/sdk/models/shared/tieredconfig.d.ts +8 -0
- package/dist/sdk/models/shared/tieredconfig.js +50 -0
- package/dist/sdk/models/shared/tieredpriceoverride.d.ts +27 -0
- package/dist/sdk/models/shared/tieredpriceoverride.js +74 -0
- package/dist/sdk/models/shared/transactions.d.ts +10 -0
- package/dist/sdk/models/shared/transactions.js +57 -0
- package/dist/sdk/models/shared/transactiontype.d.ts +4 -0
- package/dist/sdk/models/shared/transactiontype.js +11 -0
- package/dist/sdk/models/shared/trialconfig.d.ts +8 -0
- package/dist/sdk/models/shared/trialconfig.js +54 -0
- package/dist/sdk/models/shared/type.d.ts +7 -0
- package/dist/sdk/models/shared/type.js +14 -0
- package/dist/sdk/models/shared/unitconfig.d.ts +7 -0
- package/dist/sdk/models/shared/unitconfig.js +48 -0
- package/dist/sdk/models/shared/unitpriceoverride.d.ts +24 -0
- package/dist/sdk/models/shared/unitpriceoverride.js +74 -0
- package/dist/sdk/models/shared/upcominginvoice.d.ts +95 -0
- package/dist/sdk/models/shared/upcominginvoice.js +193 -0
- package/dist/sdk/models/shared/updateevent.d.ts +28 -0
- package/dist/sdk/models/shared/updateevent.js +77 -0
- package/dist/sdk/models/shared/usage.d.ts +13 -0
- package/dist/sdk/models/shared/usage.js +69 -0
- package/dist/sdk/models/shared/usageitem.d.ts +6 -0
- package/dist/sdk/models/shared/usageitem.js +63 -0
- package/dist/sdk/models/shared/validationerrors.d.ts +13 -0
- package/dist/sdk/models/shared/validationerrors.js +59 -0
- package/dist/sdk/models/shared/viewmode.d.ts +7 -0
- package/dist/sdk/models/shared/viewmode.js +14 -0
- package/dist/sdk/plan.d.ts +222 -0
- package/dist/sdk/plan.js +422 -0
- package/dist/sdk/sdk.d.ts +298 -0
- package/dist/sdk/sdk.js +110 -0
- package/dist/sdk/subscription.d.ts +614 -0
- package/dist/sdk/subscription.js +1192 -0
- package/dist/sdk/types/index.d.ts +1 -0
- package/dist/sdk/types/index.js +20 -0
- package/dist/sdk/types/rfcdate.d.ts +9 -0
- package/dist/sdk/types/rfcdate.js +59 -0
- package/package.json +33 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
17
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
__exportStar(require("./action"), exports);
|
|
21
|
+
__exportStar(require("./amendedevent"), exports);
|
|
22
|
+
__exportStar(require("./amendedusage"), exports);
|
|
23
|
+
__exportStar(require("./amendeventresult"), exports);
|
|
24
|
+
__exportStar(require("./autocollection"), exports);
|
|
25
|
+
__exportStar(require("./availability"), exports);
|
|
26
|
+
__exportStar(require("./backfill"), exports);
|
|
27
|
+
__exportStar(require("./backfills"), exports);
|
|
28
|
+
__exportStar(require("./backfillstatus"), exports);
|
|
29
|
+
__exportStar(require("./billablemetric"), exports);
|
|
30
|
+
__exportStar(require("./billablemetricminified"), exports);
|
|
31
|
+
__exportStar(require("./bpsconfig"), exports);
|
|
32
|
+
__exportStar(require("./bpspriceoverride"), exports);
|
|
33
|
+
__exportStar(require("./bpstier"), exports);
|
|
34
|
+
__exportStar(require("./bulkbpsconfig"), exports);
|
|
35
|
+
__exportStar(require("./bulkbpspriceoverride"), exports);
|
|
36
|
+
__exportStar(require("./bulkbpstier"), exports);
|
|
37
|
+
__exportStar(require("./bulkconfig"), exports);
|
|
38
|
+
__exportStar(require("./bulkpriceoverride"), exports);
|
|
39
|
+
__exportStar(require("./bulktier"), exports);
|
|
40
|
+
__exportStar(require("./cadence"), exports);
|
|
41
|
+
__exportStar(require("./canceloption"), exports);
|
|
42
|
+
__exportStar(require("./changeoption"), exports);
|
|
43
|
+
__exportStar(require("./changeoption1"), exports);
|
|
44
|
+
__exportStar(require("./coupon"), exports);
|
|
45
|
+
__exportStar(require("./coupons"), exports);
|
|
46
|
+
__exportStar(require("./credit"), exports);
|
|
47
|
+
__exportStar(require("./creditblock"), exports);
|
|
48
|
+
__exportStar(require("./creditledgerentries"), exports);
|
|
49
|
+
__exportStar(require("./creditledgerentry"), exports);
|
|
50
|
+
__exportStar(require("./creditnote"), exports);
|
|
51
|
+
__exportStar(require("./creditnotelineitem"), exports);
|
|
52
|
+
__exportStar(require("./creditnotes"), exports);
|
|
53
|
+
__exportStar(require("./creditnotesummary"), exports);
|
|
54
|
+
__exportStar(require("./creditnotetype"), exports);
|
|
55
|
+
__exportStar(require("./credits"), exports);
|
|
56
|
+
__exportStar(require("./customer"), exports);
|
|
57
|
+
__exportStar(require("./customerbalancetransaction"), exports);
|
|
58
|
+
__exportStar(require("./customercost"), exports);
|
|
59
|
+
__exportStar(require("./customercosts"), exports);
|
|
60
|
+
__exportStar(require("./customerminified"), exports);
|
|
61
|
+
__exportStar(require("./customers"), exports);
|
|
62
|
+
__exportStar(require("./debug"), exports);
|
|
63
|
+
__exportStar(require("./deprecatedeventresult"), exports);
|
|
64
|
+
__exportStar(require("./discount"), exports);
|
|
65
|
+
__exportStar(require("./discounttype"), exports);
|
|
66
|
+
__exportStar(require("./durationunit"), exports);
|
|
67
|
+
__exportStar(require("./entrystatus"), exports);
|
|
68
|
+
__exportStar(require("./entrytype"), exports);
|
|
69
|
+
__exportStar(require("./event"), exports);
|
|
70
|
+
__exportStar(require("./eventsearchcriteria"), exports);
|
|
71
|
+
__exportStar(require("./eventsearchresults"), exports);
|
|
72
|
+
__exportStar(require("./externalmarketplace"), exports);
|
|
73
|
+
__exportStar(require("./fixedfeequantitychange"), exports);
|
|
74
|
+
__exportStar(require("./fixedfeequantityschedule"), exports);
|
|
75
|
+
__exportStar(require("./granularity"), exports);
|
|
76
|
+
__exportStar(require("./grouping"), exports);
|
|
77
|
+
__exportStar(require("./ingestionresponse"), exports);
|
|
78
|
+
__exportStar(require("./invoice"), exports);
|
|
79
|
+
__exportStar(require("./invoicelineitem"), exports);
|
|
80
|
+
__exportStar(require("./invoices"), exports);
|
|
81
|
+
__exportStar(require("./invoicesettings"), exports);
|
|
82
|
+
__exportStar(require("./invoicestatus"), exports);
|
|
83
|
+
__exportStar(require("./lineitem"), exports);
|
|
84
|
+
__exportStar(require("./matrixconfig"), exports);
|
|
85
|
+
__exportStar(require("./matrixconfig1"), exports);
|
|
86
|
+
__exportStar(require("./matrixvalue"), exports);
|
|
87
|
+
__exportStar(require("./modeltype"), exports);
|
|
88
|
+
__exportStar(require("./newbackfill"), exports);
|
|
89
|
+
__exportStar(require("./newcoupon"), exports);
|
|
90
|
+
__exportStar(require("./newcreditledgerentry"), exports);
|
|
91
|
+
__exportStar(require("./newcustomer"), exports);
|
|
92
|
+
__exportStar(require("./newinvoicelineitem"), exports);
|
|
93
|
+
__exportStar(require("./newsubscription"), exports);
|
|
94
|
+
__exportStar(require("./newtransaction"), exports);
|
|
95
|
+
__exportStar(require("./packageconfig"), exports);
|
|
96
|
+
__exportStar(require("./packagepriceoverride"), exports);
|
|
97
|
+
__exportStar(require("./paginationmetadata"), exports);
|
|
98
|
+
__exportStar(require("./perpricecost"), exports);
|
|
99
|
+
__exportStar(require("./phaseoverride"), exports);
|
|
100
|
+
__exportStar(require("./plan"), exports);
|
|
101
|
+
__exportStar(require("./planminified"), exports);
|
|
102
|
+
__exportStar(require("./planphase"), exports);
|
|
103
|
+
__exportStar(require("./plans"), exports);
|
|
104
|
+
__exportStar(require("./price"), exports);
|
|
105
|
+
__exportStar(require("./pricegroup"), exports);
|
|
106
|
+
__exportStar(require("./product"), exports);
|
|
107
|
+
__exportStar(require("./reason"), exports);
|
|
108
|
+
__exportStar(require("./requestvalidationerror"), exports);
|
|
109
|
+
__exportStar(require("./security"), exports);
|
|
110
|
+
__exportStar(require("./sublineitem"), exports);
|
|
111
|
+
__exportStar(require("./sublineitem1"), exports);
|
|
112
|
+
__exportStar(require("./sublineitem2"), exports);
|
|
113
|
+
__exportStar(require("./subscription"), exports);
|
|
114
|
+
__exportStar(require("./subscriptioncancellation"), exports);
|
|
115
|
+
__exportStar(require("./subscriptioncost"), exports);
|
|
116
|
+
__exportStar(require("./subscriptioncosts"), exports);
|
|
117
|
+
__exportStar(require("./subscriptionminified"), exports);
|
|
118
|
+
__exportStar(require("./subscriptionplanchange"), exports);
|
|
119
|
+
__exportStar(require("./subscriptions"), exports);
|
|
120
|
+
__exportStar(require("./subscriptionschedule"), exports);
|
|
121
|
+
__exportStar(require("./subscriptionscheduleitem"), exports);
|
|
122
|
+
__exportStar(require("./subscriptionstatus"), exports);
|
|
123
|
+
__exportStar(require("./subscriptionusage"), exports);
|
|
124
|
+
__exportStar(require("./taxamount"), exports);
|
|
125
|
+
__exportStar(require("./tier"), exports);
|
|
126
|
+
__exportStar(require("./tier7"), exports);
|
|
127
|
+
__exportStar(require("./tierconfig"), exports);
|
|
128
|
+
__exportStar(require("./tieredbpsconfig"), exports);
|
|
129
|
+
__exportStar(require("./tieredbpsconfig1"), exports);
|
|
130
|
+
__exportStar(require("./tieredbpspriceoverride"), exports);
|
|
131
|
+
__exportStar(require("./tieredconfig"), exports);
|
|
132
|
+
__exportStar(require("./tieredpriceoverride"), exports);
|
|
133
|
+
__exportStar(require("./transactions"), exports);
|
|
134
|
+
__exportStar(require("./transactiontype"), exports);
|
|
135
|
+
__exportStar(require("./trialconfig"), exports);
|
|
136
|
+
__exportStar(require("./type"), exports);
|
|
137
|
+
__exportStar(require("./unitconfig"), exports);
|
|
138
|
+
__exportStar(require("./unitpriceoverride"), exports);
|
|
139
|
+
__exportStar(require("./upcominginvoice"), exports);
|
|
140
|
+
__exportStar(require("./updateevent"), exports);
|
|
141
|
+
__exportStar(require("./usage"), exports);
|
|
142
|
+
__exportStar(require("./usageitem"), exports);
|
|
143
|
+
__exportStar(require("./validationerrors"), exports);
|
|
144
|
+
__exportStar(require("./viewmode"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { Debug } from "./debug";
|
|
3
|
+
import { ValidationErrors } from "./validationerrors";
|
|
4
|
+
/**
|
|
5
|
+
* OK
|
|
6
|
+
*/
|
|
7
|
+
export declare class IngestionResponse extends SpeakeasyBase {
|
|
8
|
+
debug?: Debug;
|
|
9
|
+
/**
|
|
10
|
+
* Contains all failing validation events. In the case of a 200, this array will always be empty. This field will always be present.
|
|
11
|
+
*/
|
|
12
|
+
validationFailed: ValidationErrors[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __extends = (this && this.__extends) || (function () {
|
|
6
|
+
var extendStatics = function (d, b) {
|
|
7
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10
|
+
return extendStatics(d, b);
|
|
11
|
+
};
|
|
12
|
+
return function (d, b) {
|
|
13
|
+
if (typeof b !== "function" && b !== null)
|
|
14
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
|
+
extendStatics(d, b);
|
|
16
|
+
function __() { this.constructor = d; }
|
|
17
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
24
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
+
};
|
|
26
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
27
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.IngestionResponse = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var debug_1 = require("./debug");
|
|
33
|
+
var validationerrors_1 = require("./validationerrors");
|
|
34
|
+
var class_transformer_1 = require("class-transformer");
|
|
35
|
+
/**
|
|
36
|
+
* OK
|
|
37
|
+
*/
|
|
38
|
+
var IngestionResponse = /** @class */ (function (_super) {
|
|
39
|
+
__extends(IngestionResponse, _super);
|
|
40
|
+
function IngestionResponse() {
|
|
41
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
42
|
+
}
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
45
|
+
(0, class_transformer_1.Expose)({ name: "debug" }),
|
|
46
|
+
(0, class_transformer_1.Type)(function () { return debug_1.Debug; }),
|
|
47
|
+
__metadata("design:type", debug_1.Debug)
|
|
48
|
+
], IngestionResponse.prototype, "debug", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: validationerrors_1.ValidationErrors }),
|
|
51
|
+
(0, class_transformer_1.Expose)({ name: "validation_failed" }),
|
|
52
|
+
(0, class_transformer_1.Type)(function () { return validationerrors_1.ValidationErrors; }),
|
|
53
|
+
__metadata("design:type", Array)
|
|
54
|
+
], IngestionResponse.prototype, "validationFailed", void 0);
|
|
55
|
+
return IngestionResponse;
|
|
56
|
+
}(utils_1.SpeakeasyBase));
|
|
57
|
+
exports.IngestionResponse = IngestionResponse;
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { AutoCollection } from "./autocollection";
|
|
3
|
+
import { CreditNoteSummary } from "./creditnotesummary";
|
|
4
|
+
import { CustomerMinified } from "./customerminified";
|
|
5
|
+
import { DiscountType } from "./discounttype";
|
|
6
|
+
import { InvoiceLineItem } from "./invoicelineitem";
|
|
7
|
+
import { InvoiceStatus } from "./invoicestatus";
|
|
8
|
+
import { SubscriptionMinified } from "./subscriptionminified";
|
|
9
|
+
import { Transactions } from "./transactions";
|
|
10
|
+
/**
|
|
11
|
+
* Tax IDs are commonly required to be displayed on customer invoices, which are added to the headers of invoices.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
* ### Supported Tax ID Countries and Types
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* | Country | Type | Description |
|
|
20
|
+
* |----------------|--------------|---------------------------------------------|
|
|
21
|
+
* | Australia | `au_abn` | Australian Business Number (AU ABN) |
|
|
22
|
+
* | Australia | `au_arn` | Australian Taxation Office Reference Number |
|
|
23
|
+
* | Austria | `eu_vat` | European VAT number |
|
|
24
|
+
* | Belgium | `eu_vat` | European VAT number |
|
|
25
|
+
* | Brazil | `br_cnpj` | Brazilian CNPJ number |
|
|
26
|
+
* | Brazil | `br_cpf` | Brazilian CPF number |
|
|
27
|
+
* | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
|
|
28
|
+
* | Bulgaria | `eu_vat` | European VAT number |
|
|
29
|
+
* | Canada | `ca_bn` | Canadian BN |
|
|
30
|
+
* | Canada | `ca_gst_hst` | Canadian GST/HST number |
|
|
31
|
+
* | Canada | `ca_pst_bc` | Canadian PST number (British Columbia) |
|
|
32
|
+
* | Canada | `ca_pst_mb` | Canadian PST number (Manitoba) |
|
|
33
|
+
* | Canada | `ca_pst_sk` | Canadian PST number (Saskatchewan) |
|
|
34
|
+
* | Canada | `ca_qst` | Canadian QST number (Québec) |
|
|
35
|
+
* | Chile | `cl_tin` | Chilean TIN |
|
|
36
|
+
* | Croatia | `eu_vat` | European VAT number |
|
|
37
|
+
* | Cyprus | `eu_vat` | European VAT number |
|
|
38
|
+
* | Czech Republic | `eu_vat` | European VAT number |
|
|
39
|
+
* | Denmark | `eu_vat` | European VAT number |
|
|
40
|
+
* | Egypt | `eg_tin` | Egyptian Tax Identification Number |
|
|
41
|
+
* | Estonia | `eu_vat` | European VAT number |
|
|
42
|
+
* | EU | `eu_oss_vat` | European One Stop Shop VAT number for non-Union scheme |
|
|
43
|
+
* | Finland | `eu_vat` | European VAT number |
|
|
44
|
+
* | France | `eu_vat` | European VAT number |
|
|
45
|
+
* | Georgia | `ge_vat` | Georgian VAT |
|
|
46
|
+
* | Germany | `eu_vat` | European VAT number |
|
|
47
|
+
* | Greece | `eu_vat` | European VAT number |
|
|
48
|
+
* | Hong Kong | `hk_br` | Hong Kong BR number |
|
|
49
|
+
* | Hungary | `eu_vat` | European VAT number |
|
|
50
|
+
* | Hungary | `hu_tin` | Hungary tax number (adószám) |
|
|
51
|
+
* | Iceland | `is_vat` | Icelandic VAT |
|
|
52
|
+
* | India | `in_gst` | Indian GST number |
|
|
53
|
+
* | Indonesia | `id_npwp` | Indonesian NPWP number |
|
|
54
|
+
* | Ireland | `eu_vat` | European VAT number |
|
|
55
|
+
* | Israel | `il_vat` | Israel VAT |
|
|
56
|
+
* | Italy | `eu_vat` | European VAT number |
|
|
57
|
+
* | Japan | `jp_cn` | Japanese Corporate Number (*Hōjin Bangō*) |
|
|
58
|
+
* | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku Bangō*) |
|
|
59
|
+
* | Japan | `jp_trn` | Japanese Tax Registration Number (*Tōroku Bangō*) |
|
|
60
|
+
* | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
|
|
61
|
+
* | Latvia | `eu_vat` | European VAT number |
|
|
62
|
+
* | Liechtenstein | `li_uid` | Liechtensteinian UID number |
|
|
63
|
+
* | Lithuania | `eu_vat` | European VAT number |
|
|
64
|
+
* | Luxembourg | `eu_vat` | European VAT number |
|
|
65
|
+
* | Malaysia | `my_frp` | Malaysian FRP number |
|
|
66
|
+
* | Malaysia | `my_itn` | Malaysian ITN |
|
|
67
|
+
* | Malaysia | `my_sst` | Malaysian SST number |
|
|
68
|
+
* | Malta | `eu_vat ` | European VAT number |
|
|
69
|
+
* | Mexico | `mx_rfc` | Mexican RFC number |
|
|
70
|
+
* | Netherlands | `eu_vat` | European VAT number |
|
|
71
|
+
* | New Zealand | `nz_gst` | New Zealand GST number |
|
|
72
|
+
* | Norway | `no_vat` | Norwegian VAT number |
|
|
73
|
+
* | Philippines | `ph_tin ` | Philippines Tax Identification Number |
|
|
74
|
+
* | Poland | `eu_vat` | European VAT number |
|
|
75
|
+
* | Portugal | `eu_vat` | European VAT number |
|
|
76
|
+
* | Romania | `eu_vat` | European VAT number |
|
|
77
|
+
* | Russia | `ru_inn` | Russian INN |
|
|
78
|
+
* | Russia | `ru_kpp` | Russian KPP |
|
|
79
|
+
* | Saudi Arabia | `sg_gst` | Singaporean GST |
|
|
80
|
+
* | Singapore | `sg_uen` | Singaporean UEN |
|
|
81
|
+
* | Slovakia | `eu_vat` | European VAT number |
|
|
82
|
+
* | Slovenia | `eu_vat` | European VAT number |
|
|
83
|
+
* | Slovenia | `si_tin` | Slovenia tax number (davčna številka) |
|
|
84
|
+
* | South Africa | `za_vat` | South African VAT number |
|
|
85
|
+
* | South Korea | `kr_brn` | Korean BRN |
|
|
86
|
+
* | Spain | `es_cif` | Spanish NIF number (previously Spanish CIF number) |
|
|
87
|
+
* | Spain | `eu_vat` | European VAT number |
|
|
88
|
+
* | Sweden | `eu_vat` | European VAT number |
|
|
89
|
+
* | Switzerland | `ch_vat` | Switzerland VAT number |
|
|
90
|
+
* | Taiwan | `tw_vat` | Taiwanese VAT |
|
|
91
|
+
* | Thailand | `th_vat` | Thai VAT |
|
|
92
|
+
* | Turkey | `tr_tin` | Turkish Tax Identification Number |
|
|
93
|
+
* | Ukraine | `ua_vat` | Ukrainian VAT |
|
|
94
|
+
* | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
|
|
95
|
+
* | United Kingdom | `eu_vat` | Northern Ireland VAT number |
|
|
96
|
+
* | United Kingdom | `gb_vat` | United Kingdom VAT number |
|
|
97
|
+
* | United States | `us_ein` | United States EIN |
|
|
98
|
+
*/
|
|
99
|
+
export declare class InvoiceCustomerTaxID extends SpeakeasyBase {
|
|
100
|
+
/**
|
|
101
|
+
* Two-letter ISO code representing the country of the tax ID
|
|
102
|
+
*/
|
|
103
|
+
country: string;
|
|
104
|
+
/**
|
|
105
|
+
* One of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, `br_cn`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ph_tin`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, or `za_va`
|
|
106
|
+
*/
|
|
107
|
+
type: string;
|
|
108
|
+
/**
|
|
109
|
+
* The value of the ID
|
|
110
|
+
*/
|
|
111
|
+
value: string;
|
|
112
|
+
}
|
|
113
|
+
export declare class InvoiceDiscount extends SpeakeasyBase {
|
|
114
|
+
/**
|
|
115
|
+
* Only available if discount_type is `amount`.
|
|
116
|
+
*/
|
|
117
|
+
amountDiscount?: string;
|
|
118
|
+
/**
|
|
119
|
+
* List of price_ids that this discount applies to. For plan/plan phase discounts, this can be a subset of prices.
|
|
120
|
+
*/
|
|
121
|
+
appliesToPriceIds?: string[];
|
|
122
|
+
discountType: DiscountType;
|
|
123
|
+
/**
|
|
124
|
+
* Only available if discount_type is `percentage`.This is a number between 0 and 1.
|
|
125
|
+
*/
|
|
126
|
+
percentageDiscount?: number;
|
|
127
|
+
/**
|
|
128
|
+
* Only available if discount_type is `trial`
|
|
129
|
+
*/
|
|
130
|
+
trialAmountDiscount?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Only available if discount_type is `usage`. Number of usage units that this discount is for
|
|
133
|
+
*/
|
|
134
|
+
usageDiscount?: number;
|
|
135
|
+
}
|
|
136
|
+
export declare class InvoiceMaximumAmount extends SpeakeasyBase {
|
|
137
|
+
/**
|
|
138
|
+
* List of price_ids that this maximum amount applies to. For plan/plan phase maximums, this can be a subset of prices.
|
|
139
|
+
*/
|
|
140
|
+
appliesToPriceIds: string[];
|
|
141
|
+
/**
|
|
142
|
+
* Maximum amount applied
|
|
143
|
+
*/
|
|
144
|
+
maximumAmount: string;
|
|
145
|
+
}
|
|
146
|
+
export declare class InvoiceMinimumAmount extends SpeakeasyBase {
|
|
147
|
+
/**
|
|
148
|
+
* List of price_ids that this minimum amount applies to. For plan/plan phase minimums, this can be a subset of prices.
|
|
149
|
+
*/
|
|
150
|
+
appliesToPriceIds: string[];
|
|
151
|
+
/**
|
|
152
|
+
* Minimum amount applied
|
|
153
|
+
*/
|
|
154
|
+
minimumAmount: string;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* An [`Invoice`](../guides/concepts#invoice) is a fundamental billing entity, representing the request for payment for a single subscription. This includes a set of line items, which correspond to prices in the subscription's plan and can represent fixed recurring fees or usage-based fees. They are generated at the end of a billing period, or as the result of an action, such as a cancellation.
|
|
158
|
+
*/
|
|
159
|
+
export declare class Invoice extends SpeakeasyBase {
|
|
160
|
+
/**
|
|
161
|
+
* This is the final amount required to be charged to the customer and reflects the application of the customer balance to the `total` of the invoice.
|
|
162
|
+
*/
|
|
163
|
+
amountDue: string;
|
|
164
|
+
/**
|
|
165
|
+
* Information about payment auto-collection for this invoice.
|
|
166
|
+
*/
|
|
167
|
+
autoCollection?: AutoCollection;
|
|
168
|
+
/**
|
|
169
|
+
* The creation time of the resource in Orb.
|
|
170
|
+
*/
|
|
171
|
+
createdAt: Date;
|
|
172
|
+
/**
|
|
173
|
+
* A list of credit notes associated with the invoice
|
|
174
|
+
*/
|
|
175
|
+
creditNotes?: CreditNoteSummary[];
|
|
176
|
+
/**
|
|
177
|
+
* An ISO 4217 currency string or `credits`
|
|
178
|
+
*/
|
|
179
|
+
currency: string;
|
|
180
|
+
/**
|
|
181
|
+
* The customer receiving this invoice.
|
|
182
|
+
*/
|
|
183
|
+
customer: CustomerMinified;
|
|
184
|
+
customerBalanceTransactions: Transactions;
|
|
185
|
+
customerTaxId?: InvoiceCustomerTaxID;
|
|
186
|
+
discount: InvoiceDiscount;
|
|
187
|
+
/**
|
|
188
|
+
* When the invoice payment is due.
|
|
189
|
+
*/
|
|
190
|
+
dueDate: Date;
|
|
191
|
+
/**
|
|
192
|
+
* If the invoice has a status of `draft`, this will be the time that the invoice willl be eligible to be issued, otherwise it will be `null`. If `auto-issue` is true, the invoice will automatically begin issuing at this time.
|
|
193
|
+
*/
|
|
194
|
+
eligibleForIssueAt?: Date;
|
|
195
|
+
/**
|
|
196
|
+
* A URL for the invoice portal.
|
|
197
|
+
*/
|
|
198
|
+
hostedInvoiceUrl?: string;
|
|
199
|
+
id: string;
|
|
200
|
+
/**
|
|
201
|
+
* Issue date of the invoice
|
|
202
|
+
*/
|
|
203
|
+
invoiceDate: Date;
|
|
204
|
+
/**
|
|
205
|
+
* Automatically generated invoice number to help track and reconcile invoices. Invoice numbers have a prefix such as `RFOBWG`. These can be sequential per account or customer.
|
|
206
|
+
*/
|
|
207
|
+
invoiceNumber: string;
|
|
208
|
+
/**
|
|
209
|
+
* The link to download the PDF representation of the `Invoice`.
|
|
210
|
+
*/
|
|
211
|
+
invoicePdf: string;
|
|
212
|
+
/**
|
|
213
|
+
* If the invoice failed to issue, this will be the last time it failed to issue (even if it is now in a different state.)
|
|
214
|
+
*/
|
|
215
|
+
issueFailedAt?: Date;
|
|
216
|
+
/**
|
|
217
|
+
* If the invoice has been issued, this will be the time it transitioned to `issued` (even if it is now in a different state.)
|
|
218
|
+
*/
|
|
219
|
+
issuedAt?: Date;
|
|
220
|
+
/**
|
|
221
|
+
* The breakdown of prices in this invoice.
|
|
222
|
+
*/
|
|
223
|
+
lineItems: InvoiceLineItem[];
|
|
224
|
+
maximum?: InvoiceMaximumAmount;
|
|
225
|
+
/**
|
|
226
|
+
* Free-form text which is available on the invoice PDF and the Orb invoice portal.
|
|
227
|
+
*/
|
|
228
|
+
memo?: string;
|
|
229
|
+
minimum: InvoiceMinimumAmount;
|
|
230
|
+
/**
|
|
231
|
+
* If the invoice has a status of `paid`, this gives a timestamp when the invoice was paid.
|
|
232
|
+
*/
|
|
233
|
+
paidAt?: Date;
|
|
234
|
+
/**
|
|
235
|
+
* If payment was attempted on this invoice but failed, this will be the time of the most recent attempt.
|
|
236
|
+
*/
|
|
237
|
+
paymentFailedAt?: Date;
|
|
238
|
+
/**
|
|
239
|
+
* If payment was attempted on this invoice, this will be the start time of the most recent attempt. This field is especially useful for delayed-notification payment mechanisms (like bank transfers), where payment can take 3 days or more.
|
|
240
|
+
*/
|
|
241
|
+
paymentStartedAt?: Date;
|
|
242
|
+
/**
|
|
243
|
+
* If the invoice is in draft, this timestamp will reflect when the invoice is scheduled to be issued.
|
|
244
|
+
*/
|
|
245
|
+
scheduledIssueAt?: Date;
|
|
246
|
+
/**
|
|
247
|
+
* The status of this invoice as known to Orb. Invoices start in `"draft"` state for a given billing period, and are automatically transitioned to `"issued"` when that billing period ends. Invoices will be marked `"paid"` upon confirmation of successful automatic payment collection by Orb. Invoices may be manually voided; those will be in the terminal `"void"` state. Invoices synced to an external billing provider (such as Bill.com, QuickBooks, or Stripe Invoicing) will be marked as `"synced"`.
|
|
248
|
+
*/
|
|
249
|
+
status: InvoiceStatus;
|
|
250
|
+
/**
|
|
251
|
+
* The associated subscription for this invoice.
|
|
252
|
+
*/
|
|
253
|
+
subscription: SubscriptionMinified;
|
|
254
|
+
/**
|
|
255
|
+
* The total before any discounts and minimums are applied.
|
|
256
|
+
*/
|
|
257
|
+
subtotal: string;
|
|
258
|
+
/**
|
|
259
|
+
* If the invoice failed to sync, this will be the last time an external invoicing provider sync was attempted. This field will always be `null` for invoices using Orb Invoicing.
|
|
260
|
+
*/
|
|
261
|
+
syncFailedAt?: Date;
|
|
262
|
+
/**
|
|
263
|
+
* The total after any minimums, discounts, and taxes have been applied.
|
|
264
|
+
*/
|
|
265
|
+
total: string;
|
|
266
|
+
/**
|
|
267
|
+
* If the invoice has a status of `void`, this gives a timestamp when the invoice was voided.
|
|
268
|
+
*/
|
|
269
|
+
voidedAt?: Date;
|
|
270
|
+
/**
|
|
271
|
+
* This is true if the invoice will be automaticaly issued in the future, and false otherwise.
|
|
272
|
+
*/
|
|
273
|
+
willAutoIssue: boolean;
|
|
274
|
+
}
|