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,416 @@
|
|
|
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.InvoiceLineItem = exports.InvoiceLineItemPrice = exports.InvoiceLineItemPriceMinimumAmount = exports.InvoiceLineItemPriceMaximumAmount = exports.InvoiceLineItemPriceDiscount = exports.InvoiceLineItemMinimumAmount = exports.InvoiceLineItemMaximumAmount = exports.InvoiceLineItemDiscount = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var billablemetric_1 = require("./billablemetric");
|
|
33
|
+
var bpsconfig_1 = require("./bpsconfig");
|
|
34
|
+
var bulkbpsconfig_1 = require("./bulkbpsconfig");
|
|
35
|
+
var bulkconfig_1 = require("./bulkconfig");
|
|
36
|
+
var cadence_1 = require("./cadence");
|
|
37
|
+
var discounttype_1 = require("./discounttype");
|
|
38
|
+
var matrixconfig_1 = require("./matrixconfig");
|
|
39
|
+
var modeltype_1 = require("./modeltype");
|
|
40
|
+
var packageconfig_1 = require("./packageconfig");
|
|
41
|
+
var sublineitem_1 = require("./sublineitem");
|
|
42
|
+
var taxamount_1 = require("./taxamount");
|
|
43
|
+
var tieredbpsconfig_1 = require("./tieredbpsconfig");
|
|
44
|
+
var tieredconfig_1 = require("./tieredconfig");
|
|
45
|
+
var unitconfig_1 = require("./unitconfig");
|
|
46
|
+
var class_transformer_1 = require("class-transformer");
|
|
47
|
+
var InvoiceLineItemDiscount = /** @class */ (function (_super) {
|
|
48
|
+
__extends(InvoiceLineItemDiscount, _super);
|
|
49
|
+
function InvoiceLineItemDiscount() {
|
|
50
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
51
|
+
}
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
54
|
+
(0, class_transformer_1.Expose)({ name: "amount_discount" }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], InvoiceLineItemDiscount.prototype, "amountDiscount", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
59
|
+
(0, class_transformer_1.Expose)({ name: "applies_to_price_ids" }),
|
|
60
|
+
__metadata("design:type", Array)
|
|
61
|
+
], InvoiceLineItemDiscount.prototype, "appliesToPriceIds", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
64
|
+
(0, class_transformer_1.Expose)({ name: "discount_type" }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], InvoiceLineItemDiscount.prototype, "discountType", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
69
|
+
(0, class_transformer_1.Expose)({ name: "percentage_discount" }),
|
|
70
|
+
__metadata("design:type", Number)
|
|
71
|
+
], InvoiceLineItemDiscount.prototype, "percentageDiscount", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
74
|
+
(0, class_transformer_1.Expose)({ name: "trial_amount_discount" }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], InvoiceLineItemDiscount.prototype, "trialAmountDiscount", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
79
|
+
(0, class_transformer_1.Expose)({ name: "usage_discount" }),
|
|
80
|
+
__metadata("design:type", Number)
|
|
81
|
+
], InvoiceLineItemDiscount.prototype, "usageDiscount", void 0);
|
|
82
|
+
return InvoiceLineItemDiscount;
|
|
83
|
+
}(utils_1.SpeakeasyBase));
|
|
84
|
+
exports.InvoiceLineItemDiscount = InvoiceLineItemDiscount;
|
|
85
|
+
var InvoiceLineItemMaximumAmount = /** @class */ (function (_super) {
|
|
86
|
+
__extends(InvoiceLineItemMaximumAmount, _super);
|
|
87
|
+
function InvoiceLineItemMaximumAmount() {
|
|
88
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
89
|
+
}
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
92
|
+
(0, class_transformer_1.Expose)({ name: "applies_to_price_ids" }),
|
|
93
|
+
__metadata("design:type", Array)
|
|
94
|
+
], InvoiceLineItemMaximumAmount.prototype, "appliesToPriceIds", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
97
|
+
(0, class_transformer_1.Expose)({ name: "maximum_amount" }),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], InvoiceLineItemMaximumAmount.prototype, "maximumAmount", void 0);
|
|
100
|
+
return InvoiceLineItemMaximumAmount;
|
|
101
|
+
}(utils_1.SpeakeasyBase));
|
|
102
|
+
exports.InvoiceLineItemMaximumAmount = InvoiceLineItemMaximumAmount;
|
|
103
|
+
var InvoiceLineItemMinimumAmount = /** @class */ (function (_super) {
|
|
104
|
+
__extends(InvoiceLineItemMinimumAmount, _super);
|
|
105
|
+
function InvoiceLineItemMinimumAmount() {
|
|
106
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
107
|
+
}
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
110
|
+
(0, class_transformer_1.Expose)({ name: "applies_to_price_ids" }),
|
|
111
|
+
__metadata("design:type", Array)
|
|
112
|
+
], InvoiceLineItemMinimumAmount.prototype, "appliesToPriceIds", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
115
|
+
(0, class_transformer_1.Expose)({ name: "minimum_amount" }),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], InvoiceLineItemMinimumAmount.prototype, "minimumAmount", void 0);
|
|
118
|
+
return InvoiceLineItemMinimumAmount;
|
|
119
|
+
}(utils_1.SpeakeasyBase));
|
|
120
|
+
exports.InvoiceLineItemMinimumAmount = InvoiceLineItemMinimumAmount;
|
|
121
|
+
var InvoiceLineItemPriceDiscount = /** @class */ (function (_super) {
|
|
122
|
+
__extends(InvoiceLineItemPriceDiscount, _super);
|
|
123
|
+
function InvoiceLineItemPriceDiscount() {
|
|
124
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
125
|
+
}
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
128
|
+
(0, class_transformer_1.Expose)({ name: "amount_discount" }),
|
|
129
|
+
__metadata("design:type", String)
|
|
130
|
+
], InvoiceLineItemPriceDiscount.prototype, "amountDiscount", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
133
|
+
(0, class_transformer_1.Expose)({ name: "applies_to_price_ids" }),
|
|
134
|
+
__metadata("design:type", Array)
|
|
135
|
+
], InvoiceLineItemPriceDiscount.prototype, "appliesToPriceIds", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
138
|
+
(0, class_transformer_1.Expose)({ name: "discount_type" }),
|
|
139
|
+
__metadata("design:type", String)
|
|
140
|
+
], InvoiceLineItemPriceDiscount.prototype, "discountType", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
143
|
+
(0, class_transformer_1.Expose)({ name: "percentage_discount" }),
|
|
144
|
+
__metadata("design:type", Number)
|
|
145
|
+
], InvoiceLineItemPriceDiscount.prototype, "percentageDiscount", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
148
|
+
(0, class_transformer_1.Expose)({ name: "trial_amount_discount" }),
|
|
149
|
+
__metadata("design:type", String)
|
|
150
|
+
], InvoiceLineItemPriceDiscount.prototype, "trialAmountDiscount", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
153
|
+
(0, class_transformer_1.Expose)({ name: "usage_discount" }),
|
|
154
|
+
__metadata("design:type", Number)
|
|
155
|
+
], InvoiceLineItemPriceDiscount.prototype, "usageDiscount", void 0);
|
|
156
|
+
return InvoiceLineItemPriceDiscount;
|
|
157
|
+
}(utils_1.SpeakeasyBase));
|
|
158
|
+
exports.InvoiceLineItemPriceDiscount = InvoiceLineItemPriceDiscount;
|
|
159
|
+
var InvoiceLineItemPriceMaximumAmount = /** @class */ (function (_super) {
|
|
160
|
+
__extends(InvoiceLineItemPriceMaximumAmount, _super);
|
|
161
|
+
function InvoiceLineItemPriceMaximumAmount() {
|
|
162
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
163
|
+
}
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
166
|
+
(0, class_transformer_1.Expose)({ name: "applies_to_price_ids" }),
|
|
167
|
+
__metadata("design:type", Array)
|
|
168
|
+
], InvoiceLineItemPriceMaximumAmount.prototype, "appliesToPriceIds", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
171
|
+
(0, class_transformer_1.Expose)({ name: "maximum_amount" }),
|
|
172
|
+
__metadata("design:type", String)
|
|
173
|
+
], InvoiceLineItemPriceMaximumAmount.prototype, "maximumAmount", void 0);
|
|
174
|
+
return InvoiceLineItemPriceMaximumAmount;
|
|
175
|
+
}(utils_1.SpeakeasyBase));
|
|
176
|
+
exports.InvoiceLineItemPriceMaximumAmount = InvoiceLineItemPriceMaximumAmount;
|
|
177
|
+
var InvoiceLineItemPriceMinimumAmount = /** @class */ (function (_super) {
|
|
178
|
+
__extends(InvoiceLineItemPriceMinimumAmount, _super);
|
|
179
|
+
function InvoiceLineItemPriceMinimumAmount() {
|
|
180
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
181
|
+
}
|
|
182
|
+
__decorate([
|
|
183
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
184
|
+
(0, class_transformer_1.Expose)({ name: "applies_to_price_ids" }),
|
|
185
|
+
__metadata("design:type", Array)
|
|
186
|
+
], InvoiceLineItemPriceMinimumAmount.prototype, "appliesToPriceIds", void 0);
|
|
187
|
+
__decorate([
|
|
188
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
189
|
+
(0, class_transformer_1.Expose)({ name: "minimum_amount" }),
|
|
190
|
+
__metadata("design:type", String)
|
|
191
|
+
], InvoiceLineItemPriceMinimumAmount.prototype, "minimumAmount", void 0);
|
|
192
|
+
return InvoiceLineItemPriceMinimumAmount;
|
|
193
|
+
}(utils_1.SpeakeasyBase));
|
|
194
|
+
exports.InvoiceLineItemPriceMinimumAmount = InvoiceLineItemPriceMinimumAmount;
|
|
195
|
+
/**
|
|
196
|
+
* See the [plan reference](plan.tag.mdx) for a detailed discussion of different pricing models
|
|
197
|
+
*/
|
|
198
|
+
var InvoiceLineItemPrice = /** @class */ (function (_super) {
|
|
199
|
+
__extends(InvoiceLineItemPrice, _super);
|
|
200
|
+
function InvoiceLineItemPrice() {
|
|
201
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
202
|
+
}
|
|
203
|
+
__decorate([
|
|
204
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
205
|
+
(0, class_transformer_1.Expose)({ name: "billable_metric" }),
|
|
206
|
+
(0, class_transformer_1.Type)(function () { return billablemetric_1.BillableMetric; }),
|
|
207
|
+
__metadata("design:type", billablemetric_1.BillableMetric)
|
|
208
|
+
], InvoiceLineItemPrice.prototype, "billableMetric", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
211
|
+
(0, class_transformer_1.Expose)({ name: "bps_config" }),
|
|
212
|
+
(0, class_transformer_1.Type)(function () { return bpsconfig_1.BpsConfig; }),
|
|
213
|
+
__metadata("design:type", bpsconfig_1.BpsConfig)
|
|
214
|
+
], InvoiceLineItemPrice.prototype, "bpsConfig", void 0);
|
|
215
|
+
__decorate([
|
|
216
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
217
|
+
(0, class_transformer_1.Expose)({ name: "bulk_bps_config" }),
|
|
218
|
+
(0, class_transformer_1.Type)(function () { return bulkbpsconfig_1.BulkBpsConfig; }),
|
|
219
|
+
__metadata("design:type", bulkbpsconfig_1.BulkBpsConfig)
|
|
220
|
+
], InvoiceLineItemPrice.prototype, "bulkBpsConfig", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
223
|
+
(0, class_transformer_1.Expose)({ name: "bulk_config" }),
|
|
224
|
+
(0, class_transformer_1.Type)(function () { return bulkconfig_1.BulkConfig; }),
|
|
225
|
+
__metadata("design:type", bulkconfig_1.BulkConfig)
|
|
226
|
+
], InvoiceLineItemPrice.prototype, "bulkConfig", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
229
|
+
(0, class_transformer_1.Expose)({ name: "cadence" }),
|
|
230
|
+
__metadata("design:type", String)
|
|
231
|
+
], InvoiceLineItemPrice.prototype, "cadence", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
234
|
+
(0, class_transformer_1.Expose)({ name: "created_at" }),
|
|
235
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
236
|
+
var value = _a.value;
|
|
237
|
+
return new Date(value);
|
|
238
|
+
}, { toClassOnly: true }),
|
|
239
|
+
__metadata("design:type", Date)
|
|
240
|
+
], InvoiceLineItemPrice.prototype, "createdAt", void 0);
|
|
241
|
+
__decorate([
|
|
242
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
243
|
+
(0, class_transformer_1.Expose)({ name: "currency" }),
|
|
244
|
+
__metadata("design:type", String)
|
|
245
|
+
], InvoiceLineItemPrice.prototype, "currency", void 0);
|
|
246
|
+
__decorate([
|
|
247
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
248
|
+
(0, class_transformer_1.Expose)({ name: "discount" }),
|
|
249
|
+
(0, class_transformer_1.Type)(function () { return InvoiceLineItemPriceDiscount; }),
|
|
250
|
+
__metadata("design:type", InvoiceLineItemPriceDiscount)
|
|
251
|
+
], InvoiceLineItemPrice.prototype, "discount", void 0);
|
|
252
|
+
__decorate([
|
|
253
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
254
|
+
(0, class_transformer_1.Expose)({ name: "fixed_price_quantity" }),
|
|
255
|
+
__metadata("design:type", Number)
|
|
256
|
+
], InvoiceLineItemPrice.prototype, "fixedPriceQuantity", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
259
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
260
|
+
__metadata("design:type", String)
|
|
261
|
+
], InvoiceLineItemPrice.prototype, "id", void 0);
|
|
262
|
+
__decorate([
|
|
263
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
264
|
+
(0, class_transformer_1.Expose)({ name: "matrix_config" }),
|
|
265
|
+
(0, class_transformer_1.Type)(function () { return matrixconfig_1.MatrixConfig; }),
|
|
266
|
+
__metadata("design:type", matrixconfig_1.MatrixConfig)
|
|
267
|
+
], InvoiceLineItemPrice.prototype, "matrixConfig", void 0);
|
|
268
|
+
__decorate([
|
|
269
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
270
|
+
(0, class_transformer_1.Expose)({ name: "maximum" }),
|
|
271
|
+
(0, class_transformer_1.Type)(function () { return InvoiceLineItemPriceMaximumAmount; }),
|
|
272
|
+
__metadata("design:type", InvoiceLineItemPriceMaximumAmount)
|
|
273
|
+
], InvoiceLineItemPrice.prototype, "maximum", void 0);
|
|
274
|
+
__decorate([
|
|
275
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
276
|
+
(0, class_transformer_1.Expose)({ name: "minimum" }),
|
|
277
|
+
(0, class_transformer_1.Type)(function () { return InvoiceLineItemPriceMinimumAmount; }),
|
|
278
|
+
__metadata("design:type", InvoiceLineItemPriceMinimumAmount)
|
|
279
|
+
], InvoiceLineItemPrice.prototype, "minimum", void 0);
|
|
280
|
+
__decorate([
|
|
281
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
282
|
+
(0, class_transformer_1.Expose)({ name: "model_type" }),
|
|
283
|
+
__metadata("design:type", String)
|
|
284
|
+
], InvoiceLineItemPrice.prototype, "modelType", void 0);
|
|
285
|
+
__decorate([
|
|
286
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
287
|
+
(0, class_transformer_1.Expose)({ name: "name" }),
|
|
288
|
+
__metadata("design:type", String)
|
|
289
|
+
], InvoiceLineItemPrice.prototype, "name", void 0);
|
|
290
|
+
__decorate([
|
|
291
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
292
|
+
(0, class_transformer_1.Expose)({ name: "package_config" }),
|
|
293
|
+
(0, class_transformer_1.Type)(function () { return packageconfig_1.PackageConfig; }),
|
|
294
|
+
__metadata("design:type", packageconfig_1.PackageConfig)
|
|
295
|
+
], InvoiceLineItemPrice.prototype, "packageConfig", void 0);
|
|
296
|
+
__decorate([
|
|
297
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
298
|
+
(0, class_transformer_1.Expose)({ name: "plan_phase_order" }),
|
|
299
|
+
__metadata("design:type", Number)
|
|
300
|
+
], InvoiceLineItemPrice.prototype, "planPhaseOrder", void 0);
|
|
301
|
+
__decorate([
|
|
302
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
303
|
+
(0, class_transformer_1.Expose)({ name: "tiered_bps_config" }),
|
|
304
|
+
(0, class_transformer_1.Type)(function () { return tieredbpsconfig_1.TieredBpsConfig; }),
|
|
305
|
+
__metadata("design:type", tieredbpsconfig_1.TieredBpsConfig)
|
|
306
|
+
], InvoiceLineItemPrice.prototype, "tieredBpsConfig", void 0);
|
|
307
|
+
__decorate([
|
|
308
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
309
|
+
(0, class_transformer_1.Expose)({ name: "tiered_config" }),
|
|
310
|
+
(0, class_transformer_1.Type)(function () { return tieredconfig_1.TieredConfig; }),
|
|
311
|
+
__metadata("design:type", tieredconfig_1.TieredConfig)
|
|
312
|
+
], InvoiceLineItemPrice.prototype, "tieredConfig", void 0);
|
|
313
|
+
__decorate([
|
|
314
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
315
|
+
(0, class_transformer_1.Expose)({ name: "unit_config" }),
|
|
316
|
+
(0, class_transformer_1.Type)(function () { return unitconfig_1.UnitConfig; }),
|
|
317
|
+
__metadata("design:type", unitconfig_1.UnitConfig)
|
|
318
|
+
], InvoiceLineItemPrice.prototype, "unitConfig", void 0);
|
|
319
|
+
return InvoiceLineItemPrice;
|
|
320
|
+
}(utils_1.SpeakeasyBase));
|
|
321
|
+
exports.InvoiceLineItemPrice = InvoiceLineItemPrice;
|
|
322
|
+
/**
|
|
323
|
+
* The component line of an [Invoice](../guides/concepts#invoice)
|
|
324
|
+
*/
|
|
325
|
+
var InvoiceLineItem = /** @class */ (function (_super) {
|
|
326
|
+
__extends(InvoiceLineItem, _super);
|
|
327
|
+
function InvoiceLineItem() {
|
|
328
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
329
|
+
}
|
|
330
|
+
__decorate([
|
|
331
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
332
|
+
(0, class_transformer_1.Expose)({ name: "amount" }),
|
|
333
|
+
__metadata("design:type", String)
|
|
334
|
+
], InvoiceLineItem.prototype, "amount", void 0);
|
|
335
|
+
__decorate([
|
|
336
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
337
|
+
(0, class_transformer_1.Expose)({ name: "discount" }),
|
|
338
|
+
(0, class_transformer_1.Type)(function () { return InvoiceLineItemDiscount; }),
|
|
339
|
+
__metadata("design:type", InvoiceLineItemDiscount)
|
|
340
|
+
], InvoiceLineItem.prototype, "discount", void 0);
|
|
341
|
+
__decorate([
|
|
342
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
343
|
+
(0, class_transformer_1.Expose)({ name: "end_date" }),
|
|
344
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
345
|
+
var value = _a.value;
|
|
346
|
+
return new Date(value);
|
|
347
|
+
}, { toClassOnly: true }),
|
|
348
|
+
__metadata("design:type", Date)
|
|
349
|
+
], InvoiceLineItem.prototype, "endDate", void 0);
|
|
350
|
+
__decorate([
|
|
351
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
352
|
+
(0, class_transformer_1.Expose)({ name: "grouping" }),
|
|
353
|
+
__metadata("design:type", String)
|
|
354
|
+
], InvoiceLineItem.prototype, "grouping", void 0);
|
|
355
|
+
__decorate([
|
|
356
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
357
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
358
|
+
__metadata("design:type", String)
|
|
359
|
+
], InvoiceLineItem.prototype, "id", void 0);
|
|
360
|
+
__decorate([
|
|
361
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
362
|
+
(0, class_transformer_1.Expose)({ name: "maximum" }),
|
|
363
|
+
(0, class_transformer_1.Type)(function () { return InvoiceLineItemMaximumAmount; }),
|
|
364
|
+
__metadata("design:type", InvoiceLineItemMaximumAmount)
|
|
365
|
+
], InvoiceLineItem.prototype, "maximum", void 0);
|
|
366
|
+
__decorate([
|
|
367
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
368
|
+
(0, class_transformer_1.Expose)({ name: "minimum" }),
|
|
369
|
+
(0, class_transformer_1.Type)(function () { return InvoiceLineItemMinimumAmount; }),
|
|
370
|
+
__metadata("design:type", InvoiceLineItemMinimumAmount)
|
|
371
|
+
], InvoiceLineItem.prototype, "minimum", void 0);
|
|
372
|
+
__decorate([
|
|
373
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
374
|
+
(0, class_transformer_1.Expose)({ name: "name" }),
|
|
375
|
+
__metadata("design:type", String)
|
|
376
|
+
], InvoiceLineItem.prototype, "name", void 0);
|
|
377
|
+
__decorate([
|
|
378
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
379
|
+
(0, class_transformer_1.Expose)({ name: "price" }),
|
|
380
|
+
(0, class_transformer_1.Type)(function () { return InvoiceLineItemPrice; }),
|
|
381
|
+
__metadata("design:type", InvoiceLineItemPrice)
|
|
382
|
+
], InvoiceLineItem.prototype, "price", void 0);
|
|
383
|
+
__decorate([
|
|
384
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
385
|
+
(0, class_transformer_1.Expose)({ name: "quantity" }),
|
|
386
|
+
__metadata("design:type", Number)
|
|
387
|
+
], InvoiceLineItem.prototype, "quantity", void 0);
|
|
388
|
+
__decorate([
|
|
389
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
390
|
+
(0, class_transformer_1.Expose)({ name: "start_date" }),
|
|
391
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
392
|
+
var value = _a.value;
|
|
393
|
+
return new Date(value);
|
|
394
|
+
}, { toClassOnly: true }),
|
|
395
|
+
__metadata("design:type", Date)
|
|
396
|
+
], InvoiceLineItem.prototype, "startDate", void 0);
|
|
397
|
+
__decorate([
|
|
398
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: sublineitem_1.SubLineItem }),
|
|
399
|
+
(0, class_transformer_1.Expose)({ name: "sub_line_items" }),
|
|
400
|
+
(0, class_transformer_1.Type)(function () { return sublineitem_1.SubLineItem; }),
|
|
401
|
+
__metadata("design:type", Array)
|
|
402
|
+
], InvoiceLineItem.prototype, "subLineItems", void 0);
|
|
403
|
+
__decorate([
|
|
404
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
405
|
+
(0, class_transformer_1.Expose)({ name: "subtotal" }),
|
|
406
|
+
__metadata("design:type", String)
|
|
407
|
+
], InvoiceLineItem.prototype, "subtotal", void 0);
|
|
408
|
+
__decorate([
|
|
409
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: taxamount_1.TaxAmount }),
|
|
410
|
+
(0, class_transformer_1.Expose)({ name: "tax_amounts" }),
|
|
411
|
+
(0, class_transformer_1.Type)(function () { return taxamount_1.TaxAmount; }),
|
|
412
|
+
__metadata("design:type", Array)
|
|
413
|
+
], InvoiceLineItem.prototype, "taxAmounts", void 0);
|
|
414
|
+
return InvoiceLineItem;
|
|
415
|
+
}(utils_1.SpeakeasyBase));
|
|
416
|
+
exports.InvoiceLineItem = InvoiceLineItem;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { Invoice } from "./invoice";
|
|
3
|
+
import { PaginationMetadata } from "./paginationmetadata";
|
|
4
|
+
/**
|
|
5
|
+
* OK
|
|
6
|
+
*/
|
|
7
|
+
export declare class Invoices extends SpeakeasyBase {
|
|
8
|
+
data?: Invoice[];
|
|
9
|
+
paginationMetadata?: PaginationMetadata;
|
|
10
|
+
}
|
|
@@ -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.Invoices = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var invoice_1 = require("./invoice");
|
|
33
|
+
var paginationmetadata_1 = require("./paginationmetadata");
|
|
34
|
+
var class_transformer_1 = require("class-transformer");
|
|
35
|
+
/**
|
|
36
|
+
* OK
|
|
37
|
+
*/
|
|
38
|
+
var Invoices = /** @class */ (function (_super) {
|
|
39
|
+
__extends(Invoices, _super);
|
|
40
|
+
function Invoices() {
|
|
41
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
42
|
+
}
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: invoice_1.Invoice }),
|
|
45
|
+
(0, class_transformer_1.Expose)({ name: "data" }),
|
|
46
|
+
(0, class_transformer_1.Type)(function () { return invoice_1.Invoice; }),
|
|
47
|
+
__metadata("design:type", Array)
|
|
48
|
+
], Invoices.prototype, "data", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
51
|
+
(0, class_transformer_1.Expose)({ name: "pagination_metadata" }),
|
|
52
|
+
(0, class_transformer_1.Type)(function () { return paginationmetadata_1.PaginationMetadata; }),
|
|
53
|
+
__metadata("design:type", paginationmetadata_1.PaginationMetadata)
|
|
54
|
+
], Invoices.prototype, "paginationMetadata", void 0);
|
|
55
|
+
return Invoices;
|
|
56
|
+
}(utils_1.SpeakeasyBase));
|
|
57
|
+
exports.Invoices = Invoices;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
/**
|
|
3
|
+
* Passing `invoice_settings` automatically generates an invoice for the newly added credits. If `invoice_settings` is passed, you must specify `per_unit_cost_basis`, as the calculation of the invoice total is done on that basis.
|
|
4
|
+
*/
|
|
5
|
+
export declare class InvoiceSettings extends SpeakeasyBase {
|
|
6
|
+
/**
|
|
7
|
+
* Whether the credits purchase invoice should auto collect with the customer's saved payment method.
|
|
8
|
+
*/
|
|
9
|
+
autoCollection: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* An optional memo to display on the invoice.
|
|
12
|
+
*/
|
|
13
|
+
memo?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The net terms determines the difference between the invoice date and the issue date for the invoice. If you intend the invoice to be due on issue, set this to 0.
|
|
16
|
+
*/
|
|
17
|
+
netTerms: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.InvoiceSettings = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var class_transformer_1 = require("class-transformer");
|
|
33
|
+
/**
|
|
34
|
+
* Passing `invoice_settings` automatically generates an invoice for the newly added credits. If `invoice_settings` is passed, you must specify `per_unit_cost_basis`, as the calculation of the invoice total is done on that basis.
|
|
35
|
+
*/
|
|
36
|
+
var InvoiceSettings = /** @class */ (function (_super) {
|
|
37
|
+
__extends(InvoiceSettings, _super);
|
|
38
|
+
function InvoiceSettings() {
|
|
39
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
40
|
+
}
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
43
|
+
(0, class_transformer_1.Expose)({ name: "auto_collection" }),
|
|
44
|
+
__metadata("design:type", Boolean)
|
|
45
|
+
], InvoiceSettings.prototype, "autoCollection", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
48
|
+
(0, class_transformer_1.Expose)({ name: "memo" }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], InvoiceSettings.prototype, "memo", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
53
|
+
(0, class_transformer_1.Expose)({ name: "net_terms" }),
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
|
+
], InvoiceSettings.prototype, "netTerms", void 0);
|
|
56
|
+
return InvoiceSettings;
|
|
57
|
+
}(utils_1.SpeakeasyBase));
|
|
58
|
+
exports.InvoiceSettings = InvoiceSettings;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 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"`.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum InvoiceStatus {
|
|
5
|
+
Issued = "issued",
|
|
6
|
+
Paid = "paid",
|
|
7
|
+
Synced = "synced",
|
|
8
|
+
Void = "void",
|
|
9
|
+
Draft = "draft"
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.InvoiceStatus = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* 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"`.
|
|
9
|
+
*/
|
|
10
|
+
var InvoiceStatus;
|
|
11
|
+
(function (InvoiceStatus) {
|
|
12
|
+
InvoiceStatus["Issued"] = "issued";
|
|
13
|
+
InvoiceStatus["Paid"] = "paid";
|
|
14
|
+
InvoiceStatus["Synced"] = "synced";
|
|
15
|
+
InvoiceStatus["Void"] = "void";
|
|
16
|
+
InvoiceStatus["Draft"] = "draft";
|
|
17
|
+
})(InvoiceStatus = exports.InvoiceStatus || (exports.InvoiceStatus = {}));
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { Discount } from "./discount";
|
|
3
|
+
import { Grouping } from "./grouping";
|
|
4
|
+
import { SubLineItem1 } from "./sublineitem1";
|
|
5
|
+
export declare class LineItemMaximumAmount extends SpeakeasyBase {
|
|
6
|
+
/**
|
|
7
|
+
* List of price_ids that this maximum amount applies to. For plan/plan phase maximums, this can be a subset of prices.
|
|
8
|
+
*/
|
|
9
|
+
appliesToPriceIds: string[];
|
|
10
|
+
/**
|
|
11
|
+
* Maximum amount applied
|
|
12
|
+
*/
|
|
13
|
+
maximumAmount: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class LineItemMinimumAmount extends SpeakeasyBase {
|
|
16
|
+
/**
|
|
17
|
+
* List of price_ids that this minimum amount applies to. For plan/plan phase minimums, this can be a subset of prices.
|
|
18
|
+
*/
|
|
19
|
+
appliesToPriceIds: string[];
|
|
20
|
+
/**
|
|
21
|
+
* Minimum amount applied
|
|
22
|
+
*/
|
|
23
|
+
minimumAmount: string;
|
|
24
|
+
}
|
|
25
|
+
export declare class LineItem extends SpeakeasyBase {
|
|
26
|
+
/**
|
|
27
|
+
* The final amount after any discounts or minimums.
|
|
28
|
+
*/
|
|
29
|
+
amount: string;
|
|
30
|
+
discount: Discount;
|
|
31
|
+
/**
|
|
32
|
+
* The end date of the range of time applied for this line item's price.
|
|
33
|
+
*/
|
|
34
|
+
endDate: Date;
|
|
35
|
+
/**
|
|
36
|
+
* For configured prices that are split by a grouping key, this will be populated with the key and a value. The `amount` will be the values for this particular grouping.
|
|
37
|
+
*/
|
|
38
|
+
grouping: Grouping;
|
|
39
|
+
maximum?: LineItemMaximumAmount;
|
|
40
|
+
minimum: LineItemMinimumAmount;
|
|
41
|
+
/**
|
|
42
|
+
* The name of the price associated with this line item.
|
|
43
|
+
*/
|
|
44
|
+
name: string;
|
|
45
|
+
quantity: number;
|
|
46
|
+
/**
|
|
47
|
+
* The start date of the range of time applied for this line item's price.
|
|
48
|
+
*/
|
|
49
|
+
startDate: Date;
|
|
50
|
+
/**
|
|
51
|
+
* For complex pricing structures, the line item can be broken down further in `sub_line_items`.
|
|
52
|
+
*/
|
|
53
|
+
subLineItems: SubLineItem1[];
|
|
54
|
+
/**
|
|
55
|
+
* The line amount before any line item-specific discounts or minimums.
|
|
56
|
+
*/
|
|
57
|
+
subtotal: string;
|
|
58
|
+
}
|