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,109 @@
|
|
|
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.NewCreditLedgerEntry = exports.NewCreditLedgerEntryMetadata = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var types_1 = require("../../types");
|
|
33
|
+
var entrytype_1 = require("./entrytype");
|
|
34
|
+
var invoicesettings_1 = require("./invoicesettings");
|
|
35
|
+
var class_transformer_1 = require("class-transformer");
|
|
36
|
+
/**
|
|
37
|
+
* User-specified key/value pairs for the ledger entry resource.
|
|
38
|
+
*/
|
|
39
|
+
var NewCreditLedgerEntryMetadata = /** @class */ (function (_super) {
|
|
40
|
+
__extends(NewCreditLedgerEntryMetadata, _super);
|
|
41
|
+
function NewCreditLedgerEntryMetadata() {
|
|
42
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
43
|
+
}
|
|
44
|
+
return NewCreditLedgerEntryMetadata;
|
|
45
|
+
}(utils_1.SpeakeasyBase));
|
|
46
|
+
exports.NewCreditLedgerEntryMetadata = NewCreditLedgerEntryMetadata;
|
|
47
|
+
var NewCreditLedgerEntry = /** @class */ (function (_super) {
|
|
48
|
+
__extends(NewCreditLedgerEntry, _super);
|
|
49
|
+
function NewCreditLedgerEntry() {
|
|
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" }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], NewCreditLedgerEntry.prototype, "amount", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
59
|
+
(0, class_transformer_1.Expose)({ name: "block_id" }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], NewCreditLedgerEntry.prototype, "blockId", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
64
|
+
(0, class_transformer_1.Expose)({ name: "description" }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], NewCreditLedgerEntry.prototype, "description", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
69
|
+
(0, class_transformer_1.Expose)({ name: "entry_type" }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], NewCreditLedgerEntry.prototype, "entryType", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
74
|
+
(0, class_transformer_1.Expose)({ name: "expiry_date" }),
|
|
75
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
76
|
+
var value = _a.value;
|
|
77
|
+
return new types_1.RFCDate(value);
|
|
78
|
+
}, { toClassOnly: true }),
|
|
79
|
+
__metadata("design:type", types_1.RFCDate)
|
|
80
|
+
], NewCreditLedgerEntry.prototype, "expiryDate", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
83
|
+
(0, class_transformer_1.Expose)({ name: "invoice_settings" }),
|
|
84
|
+
(0, class_transformer_1.Type)(function () { return invoicesettings_1.InvoiceSettings; }),
|
|
85
|
+
__metadata("design:type", invoicesettings_1.InvoiceSettings)
|
|
86
|
+
], NewCreditLedgerEntry.prototype, "invoiceSettings", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
89
|
+
(0, class_transformer_1.Expose)({ name: "metadata" }),
|
|
90
|
+
(0, class_transformer_1.Type)(function () { return NewCreditLedgerEntryMetadata; }),
|
|
91
|
+
__metadata("design:type", NewCreditLedgerEntryMetadata)
|
|
92
|
+
], NewCreditLedgerEntry.prototype, "metadata", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
95
|
+
(0, class_transformer_1.Expose)({ name: "per_unit_cost_basis" }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], NewCreditLedgerEntry.prototype, "perUnitCostBasis", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
100
|
+
(0, class_transformer_1.Expose)({ name: "target_expiry_date" }),
|
|
101
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
102
|
+
var value = _a.value;
|
|
103
|
+
return new types_1.RFCDate(value);
|
|
104
|
+
}, { toClassOnly: true }),
|
|
105
|
+
__metadata("design:type", types_1.RFCDate)
|
|
106
|
+
], NewCreditLedgerEntry.prototype, "targetExpiryDate", void 0);
|
|
107
|
+
return NewCreditLedgerEntry;
|
|
108
|
+
}(utils_1.SpeakeasyBase));
|
|
109
|
+
exports.NewCreditLedgerEntry = NewCreditLedgerEntry;
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
/**
|
|
3
|
+
* The customer's billing address; all fields in the address are optional. This address appears on customer invoices.
|
|
4
|
+
*/
|
|
5
|
+
export declare class NewCustomerBillingAddress extends SpeakeasyBase {
|
|
6
|
+
city?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Two-letter country code (ISO 3166-1 alpha-2).
|
|
9
|
+
*/
|
|
10
|
+
country?: string;
|
|
11
|
+
line1?: string;
|
|
12
|
+
line2?: string;
|
|
13
|
+
/**
|
|
14
|
+
* ZIP or postal code
|
|
15
|
+
*/
|
|
16
|
+
postalCode?: string;
|
|
17
|
+
state?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* User-specified key value pairs, often useful for referencing internal resources or IDs. Returned as-is in the customer resource.
|
|
21
|
+
*/
|
|
22
|
+
export declare class NewCustomerMetadata extends SpeakeasyBase {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* This is used for creating charges or invoices in an external system via Orb. When not in test mode:
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* - the connection must first be configured in the Orb webapp.
|
|
29
|
+
* - if the provider is an invoicing provider (`stripe_invoice`, `quickbooks`, `bill.com`), any product mappings must first be configured with the Orb team.
|
|
30
|
+
*/
|
|
31
|
+
export declare enum NewCustomerPaymentProvider {
|
|
32
|
+
Quickbooks = "quickbooks",
|
|
33
|
+
BillCom = "bill.com",
|
|
34
|
+
StripeCharge = "stripe_charge",
|
|
35
|
+
StripeInvoice = "stripe_invoice",
|
|
36
|
+
Null = "null"
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The customer's shipping address; all fields in the address are optional. Note that downstream tax calculations are based on the shipping address.
|
|
40
|
+
*/
|
|
41
|
+
export declare class NewCustomerShippingAddress extends SpeakeasyBase {
|
|
42
|
+
city?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Two-letter country code (ISO 3166-1 alpha-2).
|
|
45
|
+
*/
|
|
46
|
+
country?: string;
|
|
47
|
+
line1?: string;
|
|
48
|
+
line2?: string;
|
|
49
|
+
/**
|
|
50
|
+
* ZIP or postal code
|
|
51
|
+
*/
|
|
52
|
+
postalCode?: string;
|
|
53
|
+
state?: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Tax IDs are commonly required to be displayed on customer invoices, which are added to the headers of invoices.
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
*
|
|
60
|
+
*
|
|
61
|
+
* ### Supported Tax ID Countries and Types
|
|
62
|
+
*
|
|
63
|
+
*
|
|
64
|
+
* | Country | Type | Description |
|
|
65
|
+
* |----------------|--------------|---------------------------------------------|
|
|
66
|
+
* | Australia | `au_abn` | Australian Business Number (AU ABN) |
|
|
67
|
+
* | Australia | `au_arn` | Australian Taxation Office Reference Number |
|
|
68
|
+
* | Austria | `eu_vat` | European VAT number |
|
|
69
|
+
* | Belgium | `eu_vat` | European VAT number |
|
|
70
|
+
* | Brazil | `br_cnpj` | Brazilian CNPJ number |
|
|
71
|
+
* | Brazil | `br_cpf` | Brazilian CPF number |
|
|
72
|
+
* | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
|
|
73
|
+
* | Bulgaria | `eu_vat` | European VAT number |
|
|
74
|
+
* | Canada | `ca_bn` | Canadian BN |
|
|
75
|
+
* | Canada | `ca_gst_hst` | Canadian GST/HST number |
|
|
76
|
+
* | Canada | `ca_pst_bc` | Canadian PST number (British Columbia) |
|
|
77
|
+
* | Canada | `ca_pst_mb` | Canadian PST number (Manitoba) |
|
|
78
|
+
* | Canada | `ca_pst_sk` | Canadian PST number (Saskatchewan) |
|
|
79
|
+
* | Canada | `ca_qst` | Canadian QST number (Québec) |
|
|
80
|
+
* | Chile | `cl_tin` | Chilean TIN |
|
|
81
|
+
* | Croatia | `eu_vat` | European VAT number |
|
|
82
|
+
* | Cyprus | `eu_vat` | European VAT number |
|
|
83
|
+
* | Czech Republic | `eu_vat` | European VAT number |
|
|
84
|
+
* | Denmark | `eu_vat` | European VAT number |
|
|
85
|
+
* | Egypt | `eg_tin` | Egyptian Tax Identification Number |
|
|
86
|
+
* | Estonia | `eu_vat` | European VAT number |
|
|
87
|
+
* | EU | `eu_oss_vat` | European One Stop Shop VAT number for non-Union scheme |
|
|
88
|
+
* | Finland | `eu_vat` | European VAT number |
|
|
89
|
+
* | France | `eu_vat` | European VAT number |
|
|
90
|
+
* | Georgia | `ge_vat` | Georgian VAT |
|
|
91
|
+
* | Germany | `eu_vat` | European VAT number |
|
|
92
|
+
* | Greece | `eu_vat` | European VAT number |
|
|
93
|
+
* | Hong Kong | `hk_br` | Hong Kong BR number |
|
|
94
|
+
* | Hungary | `eu_vat` | European VAT number |
|
|
95
|
+
* | Hungary | `hu_tin` | Hungary tax number (adószám) |
|
|
96
|
+
* | Iceland | `is_vat` | Icelandic VAT |
|
|
97
|
+
* | India | `in_gst` | Indian GST number |
|
|
98
|
+
* | Indonesia | `id_npwp` | Indonesian NPWP number |
|
|
99
|
+
* | Ireland | `eu_vat` | European VAT number |
|
|
100
|
+
* | Israel | `il_vat` | Israel VAT |
|
|
101
|
+
* | Italy | `eu_vat` | European VAT number |
|
|
102
|
+
* | Japan | `jp_cn` | Japanese Corporate Number (*Hōjin Bangō*) |
|
|
103
|
+
* | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku Bangō*) |
|
|
104
|
+
* | Japan | `jp_trn` | Japanese Tax Registration Number (*Tōroku Bangō*) |
|
|
105
|
+
* | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
|
|
106
|
+
* | Latvia | `eu_vat` | European VAT number |
|
|
107
|
+
* | Liechtenstein | `li_uid` | Liechtensteinian UID number |
|
|
108
|
+
* | Lithuania | `eu_vat` | European VAT number |
|
|
109
|
+
* | Luxembourg | `eu_vat` | European VAT number |
|
|
110
|
+
* | Malaysia | `my_frp` | Malaysian FRP number |
|
|
111
|
+
* | Malaysia | `my_itn` | Malaysian ITN |
|
|
112
|
+
* | Malaysia | `my_sst` | Malaysian SST number |
|
|
113
|
+
* | Malta | `eu_vat ` | European VAT number |
|
|
114
|
+
* | Mexico | `mx_rfc` | Mexican RFC number |
|
|
115
|
+
* | Netherlands | `eu_vat` | European VAT number |
|
|
116
|
+
* | New Zealand | `nz_gst` | New Zealand GST number |
|
|
117
|
+
* | Norway | `no_vat` | Norwegian VAT number |
|
|
118
|
+
* | Philippines | `ph_tin ` | Philippines Tax Identification Number |
|
|
119
|
+
* | Poland | `eu_vat` | European VAT number |
|
|
120
|
+
* | Portugal | `eu_vat` | European VAT number |
|
|
121
|
+
* | Romania | `eu_vat` | European VAT number |
|
|
122
|
+
* | Russia | `ru_inn` | Russian INN |
|
|
123
|
+
* | Russia | `ru_kpp` | Russian KPP |
|
|
124
|
+
* | Saudi Arabia | `sg_gst` | Singaporean GST |
|
|
125
|
+
* | Singapore | `sg_uen` | Singaporean UEN |
|
|
126
|
+
* | Slovakia | `eu_vat` | European VAT number |
|
|
127
|
+
* | Slovenia | `eu_vat` | European VAT number |
|
|
128
|
+
* | Slovenia | `si_tin` | Slovenia tax number (davčna številka) |
|
|
129
|
+
* | South Africa | `za_vat` | South African VAT number |
|
|
130
|
+
* | South Korea | `kr_brn` | Korean BRN |
|
|
131
|
+
* | Spain | `es_cif` | Spanish NIF number (previously Spanish CIF number) |
|
|
132
|
+
* | Spain | `eu_vat` | European VAT number |
|
|
133
|
+
* | Sweden | `eu_vat` | European VAT number |
|
|
134
|
+
* | Switzerland | `ch_vat` | Switzerland VAT number |
|
|
135
|
+
* | Taiwan | `tw_vat` | Taiwanese VAT |
|
|
136
|
+
* | Thailand | `th_vat` | Thai VAT |
|
|
137
|
+
* | Turkey | `tr_tin` | Turkish Tax Identification Number |
|
|
138
|
+
* | Ukraine | `ua_vat` | Ukrainian VAT |
|
|
139
|
+
* | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
|
|
140
|
+
* | United Kingdom | `eu_vat` | Northern Ireland VAT number |
|
|
141
|
+
* | United Kingdom | `gb_vat` | United Kingdom VAT number |
|
|
142
|
+
* | United States | `us_ein` | United States EIN |
|
|
143
|
+
*/
|
|
144
|
+
export declare class NewCustomerCustomerTaxID extends SpeakeasyBase {
|
|
145
|
+
/**
|
|
146
|
+
* Two-letter ISO code representing the country of the tax ID
|
|
147
|
+
*/
|
|
148
|
+
country: string;
|
|
149
|
+
/**
|
|
150
|
+
* 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`
|
|
151
|
+
*/
|
|
152
|
+
type: string;
|
|
153
|
+
/**
|
|
154
|
+
* The value of the ID
|
|
155
|
+
*/
|
|
156
|
+
value: string;
|
|
157
|
+
}
|
|
158
|
+
export declare class NewCustomer extends SpeakeasyBase {
|
|
159
|
+
/**
|
|
160
|
+
* Used to determine if invoices for this customer will automatically attempt to charge a saved payment method, if available. This parameter defaults to `True` when a payment provider is provided on customer creation.
|
|
161
|
+
*/
|
|
162
|
+
autoCollection?: boolean;
|
|
163
|
+
billingAddress?: NewCustomerBillingAddress;
|
|
164
|
+
/**
|
|
165
|
+
* An ISO 4217 currency string used for the customer's invoices and balance. If not set at creation time, will be set at subscription creation time.
|
|
166
|
+
*/
|
|
167
|
+
currency?: string;
|
|
168
|
+
/**
|
|
169
|
+
* A valid customer email, to be used for invoicing and notifications.
|
|
170
|
+
*/
|
|
171
|
+
email?: string;
|
|
172
|
+
/**
|
|
173
|
+
* An optional user-defined ID for this customer resource, used throughout the system as an alias for this Customer. Use this field to identify a customer by an existing identifier in your system.
|
|
174
|
+
*/
|
|
175
|
+
externalCustomerId?: string;
|
|
176
|
+
/**
|
|
177
|
+
* User-specified key value pairs, often useful for referencing internal resources or IDs. Returned as-is in the customer resource.
|
|
178
|
+
*/
|
|
179
|
+
metadata?: NewCustomerMetadata;
|
|
180
|
+
/**
|
|
181
|
+
* The full name of the customer
|
|
182
|
+
*/
|
|
183
|
+
name?: string;
|
|
184
|
+
/**
|
|
185
|
+
* This is used for creating charges or invoices in an external system via Orb. When not in test mode:
|
|
186
|
+
*
|
|
187
|
+
* @remarks
|
|
188
|
+
* - the connection must first be configured in the Orb webapp.
|
|
189
|
+
* - if the provider is an invoicing provider (`stripe_invoice`, `quickbooks`, `bill.com`), any product mappings must first be configured with the Orb team.
|
|
190
|
+
*/
|
|
191
|
+
paymentProvider?: NewCustomerPaymentProvider;
|
|
192
|
+
/**
|
|
193
|
+
* The ID of this customer in an external payments solution, such as Stripe. This is used for creating charges or invoices in the external system via Orb.
|
|
194
|
+
*/
|
|
195
|
+
paymentProviderId?: string;
|
|
196
|
+
shippingAddress?: NewCustomerShippingAddress;
|
|
197
|
+
taxId?: NewCustomerCustomerTaxID;
|
|
198
|
+
/**
|
|
199
|
+
* A timezone identifier from the IANA timezone database, such as "America/Los_Angeles". This defaults to your account's timezone if not set. This cannot be changed after customer creation.
|
|
200
|
+
*/
|
|
201
|
+
timezone?: string;
|
|
202
|
+
}
|
|
@@ -0,0 +1,324 @@
|
|
|
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.NewCustomer = exports.NewCustomerCustomerTaxID = exports.NewCustomerShippingAddress = exports.NewCustomerPaymentProvider = exports.NewCustomerMetadata = exports.NewCustomerBillingAddress = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var class_transformer_1 = require("class-transformer");
|
|
33
|
+
/**
|
|
34
|
+
* The customer's billing address; all fields in the address are optional. This address appears on customer invoices.
|
|
35
|
+
*/
|
|
36
|
+
var NewCustomerBillingAddress = /** @class */ (function (_super) {
|
|
37
|
+
__extends(NewCustomerBillingAddress, _super);
|
|
38
|
+
function NewCustomerBillingAddress() {
|
|
39
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
40
|
+
}
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
43
|
+
(0, class_transformer_1.Expose)({ name: "city" }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], NewCustomerBillingAddress.prototype, "city", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
48
|
+
(0, class_transformer_1.Expose)({ name: "country" }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], NewCustomerBillingAddress.prototype, "country", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
53
|
+
(0, class_transformer_1.Expose)({ name: "line1" }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], NewCustomerBillingAddress.prototype, "line1", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
58
|
+
(0, class_transformer_1.Expose)({ name: "line2" }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], NewCustomerBillingAddress.prototype, "line2", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
63
|
+
(0, class_transformer_1.Expose)({ name: "postal_code" }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], NewCustomerBillingAddress.prototype, "postalCode", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
68
|
+
(0, class_transformer_1.Expose)({ name: "state" }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], NewCustomerBillingAddress.prototype, "state", void 0);
|
|
71
|
+
return NewCustomerBillingAddress;
|
|
72
|
+
}(utils_1.SpeakeasyBase));
|
|
73
|
+
exports.NewCustomerBillingAddress = NewCustomerBillingAddress;
|
|
74
|
+
/**
|
|
75
|
+
* User-specified key value pairs, often useful for referencing internal resources or IDs. Returned as-is in the customer resource.
|
|
76
|
+
*/
|
|
77
|
+
var NewCustomerMetadata = /** @class */ (function (_super) {
|
|
78
|
+
__extends(NewCustomerMetadata, _super);
|
|
79
|
+
function NewCustomerMetadata() {
|
|
80
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
81
|
+
}
|
|
82
|
+
return NewCustomerMetadata;
|
|
83
|
+
}(utils_1.SpeakeasyBase));
|
|
84
|
+
exports.NewCustomerMetadata = NewCustomerMetadata;
|
|
85
|
+
/**
|
|
86
|
+
* This is used for creating charges or invoices in an external system via Orb. When not in test mode:
|
|
87
|
+
*
|
|
88
|
+
* @remarks
|
|
89
|
+
* - the connection must first be configured in the Orb webapp.
|
|
90
|
+
* - if the provider is an invoicing provider (`stripe_invoice`, `quickbooks`, `bill.com`), any product mappings must first be configured with the Orb team.
|
|
91
|
+
*/
|
|
92
|
+
var NewCustomerPaymentProvider;
|
|
93
|
+
(function (NewCustomerPaymentProvider) {
|
|
94
|
+
NewCustomerPaymentProvider["Quickbooks"] = "quickbooks";
|
|
95
|
+
NewCustomerPaymentProvider["BillCom"] = "bill.com";
|
|
96
|
+
NewCustomerPaymentProvider["StripeCharge"] = "stripe_charge";
|
|
97
|
+
NewCustomerPaymentProvider["StripeInvoice"] = "stripe_invoice";
|
|
98
|
+
NewCustomerPaymentProvider["Null"] = "null";
|
|
99
|
+
})(NewCustomerPaymentProvider = exports.NewCustomerPaymentProvider || (exports.NewCustomerPaymentProvider = {}));
|
|
100
|
+
/**
|
|
101
|
+
* The customer's shipping address; all fields in the address are optional. Note that downstream tax calculations are based on the shipping address.
|
|
102
|
+
*/
|
|
103
|
+
var NewCustomerShippingAddress = /** @class */ (function (_super) {
|
|
104
|
+
__extends(NewCustomerShippingAddress, _super);
|
|
105
|
+
function NewCustomerShippingAddress() {
|
|
106
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
107
|
+
}
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
110
|
+
(0, class_transformer_1.Expose)({ name: "city" }),
|
|
111
|
+
__metadata("design:type", String)
|
|
112
|
+
], NewCustomerShippingAddress.prototype, "city", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
115
|
+
(0, class_transformer_1.Expose)({ name: "country" }),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], NewCustomerShippingAddress.prototype, "country", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
120
|
+
(0, class_transformer_1.Expose)({ name: "line1" }),
|
|
121
|
+
__metadata("design:type", String)
|
|
122
|
+
], NewCustomerShippingAddress.prototype, "line1", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
125
|
+
(0, class_transformer_1.Expose)({ name: "line2" }),
|
|
126
|
+
__metadata("design:type", String)
|
|
127
|
+
], NewCustomerShippingAddress.prototype, "line2", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
130
|
+
(0, class_transformer_1.Expose)({ name: "postal_code" }),
|
|
131
|
+
__metadata("design:type", String)
|
|
132
|
+
], NewCustomerShippingAddress.prototype, "postalCode", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
135
|
+
(0, class_transformer_1.Expose)({ name: "state" }),
|
|
136
|
+
__metadata("design:type", String)
|
|
137
|
+
], NewCustomerShippingAddress.prototype, "state", void 0);
|
|
138
|
+
return NewCustomerShippingAddress;
|
|
139
|
+
}(utils_1.SpeakeasyBase));
|
|
140
|
+
exports.NewCustomerShippingAddress = NewCustomerShippingAddress;
|
|
141
|
+
/**
|
|
142
|
+
* Tax IDs are commonly required to be displayed on customer invoices, which are added to the headers of invoices.
|
|
143
|
+
*
|
|
144
|
+
* @remarks
|
|
145
|
+
*
|
|
146
|
+
*
|
|
147
|
+
* ### Supported Tax ID Countries and Types
|
|
148
|
+
*
|
|
149
|
+
*
|
|
150
|
+
* | Country | Type | Description |
|
|
151
|
+
* |----------------|--------------|---------------------------------------------|
|
|
152
|
+
* | Australia | `au_abn` | Australian Business Number (AU ABN) |
|
|
153
|
+
* | Australia | `au_arn` | Australian Taxation Office Reference Number |
|
|
154
|
+
* | Austria | `eu_vat` | European VAT number |
|
|
155
|
+
* | Belgium | `eu_vat` | European VAT number |
|
|
156
|
+
* | Brazil | `br_cnpj` | Brazilian CNPJ number |
|
|
157
|
+
* | Brazil | `br_cpf` | Brazilian CPF number |
|
|
158
|
+
* | Bulgaria | `bg_uic` | Bulgaria Unified Identification Code |
|
|
159
|
+
* | Bulgaria | `eu_vat` | European VAT number |
|
|
160
|
+
* | Canada | `ca_bn` | Canadian BN |
|
|
161
|
+
* | Canada | `ca_gst_hst` | Canadian GST/HST number |
|
|
162
|
+
* | Canada | `ca_pst_bc` | Canadian PST number (British Columbia) |
|
|
163
|
+
* | Canada | `ca_pst_mb` | Canadian PST number (Manitoba) |
|
|
164
|
+
* | Canada | `ca_pst_sk` | Canadian PST number (Saskatchewan) |
|
|
165
|
+
* | Canada | `ca_qst` | Canadian QST number (Québec) |
|
|
166
|
+
* | Chile | `cl_tin` | Chilean TIN |
|
|
167
|
+
* | Croatia | `eu_vat` | European VAT number |
|
|
168
|
+
* | Cyprus | `eu_vat` | European VAT number |
|
|
169
|
+
* | Czech Republic | `eu_vat` | European VAT number |
|
|
170
|
+
* | Denmark | `eu_vat` | European VAT number |
|
|
171
|
+
* | Egypt | `eg_tin` | Egyptian Tax Identification Number |
|
|
172
|
+
* | Estonia | `eu_vat` | European VAT number |
|
|
173
|
+
* | EU | `eu_oss_vat` | European One Stop Shop VAT number for non-Union scheme |
|
|
174
|
+
* | Finland | `eu_vat` | European VAT number |
|
|
175
|
+
* | France | `eu_vat` | European VAT number |
|
|
176
|
+
* | Georgia | `ge_vat` | Georgian VAT |
|
|
177
|
+
* | Germany | `eu_vat` | European VAT number |
|
|
178
|
+
* | Greece | `eu_vat` | European VAT number |
|
|
179
|
+
* | Hong Kong | `hk_br` | Hong Kong BR number |
|
|
180
|
+
* | Hungary | `eu_vat` | European VAT number |
|
|
181
|
+
* | Hungary | `hu_tin` | Hungary tax number (adószám) |
|
|
182
|
+
* | Iceland | `is_vat` | Icelandic VAT |
|
|
183
|
+
* | India | `in_gst` | Indian GST number |
|
|
184
|
+
* | Indonesia | `id_npwp` | Indonesian NPWP number |
|
|
185
|
+
* | Ireland | `eu_vat` | European VAT number |
|
|
186
|
+
* | Israel | `il_vat` | Israel VAT |
|
|
187
|
+
* | Italy | `eu_vat` | European VAT number |
|
|
188
|
+
* | Japan | `jp_cn` | Japanese Corporate Number (*Hōjin Bangō*) |
|
|
189
|
+
* | Japan | `jp_rn` | Japanese Registered Foreign Businesses' Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku Bangō*) |
|
|
190
|
+
* | Japan | `jp_trn` | Japanese Tax Registration Number (*Tōroku Bangō*) |
|
|
191
|
+
* | Kenya | `ke_pin` | Kenya Revenue Authority Personal Identification Number |
|
|
192
|
+
* | Latvia | `eu_vat` | European VAT number |
|
|
193
|
+
* | Liechtenstein | `li_uid` | Liechtensteinian UID number |
|
|
194
|
+
* | Lithuania | `eu_vat` | European VAT number |
|
|
195
|
+
* | Luxembourg | `eu_vat` | European VAT number |
|
|
196
|
+
* | Malaysia | `my_frp` | Malaysian FRP number |
|
|
197
|
+
* | Malaysia | `my_itn` | Malaysian ITN |
|
|
198
|
+
* | Malaysia | `my_sst` | Malaysian SST number |
|
|
199
|
+
* | Malta | `eu_vat ` | European VAT number |
|
|
200
|
+
* | Mexico | `mx_rfc` | Mexican RFC number |
|
|
201
|
+
* | Netherlands | `eu_vat` | European VAT number |
|
|
202
|
+
* | New Zealand | `nz_gst` | New Zealand GST number |
|
|
203
|
+
* | Norway | `no_vat` | Norwegian VAT number |
|
|
204
|
+
* | Philippines | `ph_tin ` | Philippines Tax Identification Number |
|
|
205
|
+
* | Poland | `eu_vat` | European VAT number |
|
|
206
|
+
* | Portugal | `eu_vat` | European VAT number |
|
|
207
|
+
* | Romania | `eu_vat` | European VAT number |
|
|
208
|
+
* | Russia | `ru_inn` | Russian INN |
|
|
209
|
+
* | Russia | `ru_kpp` | Russian KPP |
|
|
210
|
+
* | Saudi Arabia | `sg_gst` | Singaporean GST |
|
|
211
|
+
* | Singapore | `sg_uen` | Singaporean UEN |
|
|
212
|
+
* | Slovakia | `eu_vat` | European VAT number |
|
|
213
|
+
* | Slovenia | `eu_vat` | European VAT number |
|
|
214
|
+
* | Slovenia | `si_tin` | Slovenia tax number (davčna številka) |
|
|
215
|
+
* | South Africa | `za_vat` | South African VAT number |
|
|
216
|
+
* | South Korea | `kr_brn` | Korean BRN |
|
|
217
|
+
* | Spain | `es_cif` | Spanish NIF number (previously Spanish CIF number) |
|
|
218
|
+
* | Spain | `eu_vat` | European VAT number |
|
|
219
|
+
* | Sweden | `eu_vat` | European VAT number |
|
|
220
|
+
* | Switzerland | `ch_vat` | Switzerland VAT number |
|
|
221
|
+
* | Taiwan | `tw_vat` | Taiwanese VAT |
|
|
222
|
+
* | Thailand | `th_vat` | Thai VAT |
|
|
223
|
+
* | Turkey | `tr_tin` | Turkish Tax Identification Number |
|
|
224
|
+
* | Ukraine | `ua_vat` | Ukrainian VAT |
|
|
225
|
+
* | United Arab Emirates | `ae_trn` | United Arab Emirates TRN |
|
|
226
|
+
* | United Kingdom | `eu_vat` | Northern Ireland VAT number |
|
|
227
|
+
* | United Kingdom | `gb_vat` | United Kingdom VAT number |
|
|
228
|
+
* | United States | `us_ein` | United States EIN |
|
|
229
|
+
*/
|
|
230
|
+
var NewCustomerCustomerTaxID = /** @class */ (function (_super) {
|
|
231
|
+
__extends(NewCustomerCustomerTaxID, _super);
|
|
232
|
+
function NewCustomerCustomerTaxID() {
|
|
233
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
234
|
+
}
|
|
235
|
+
__decorate([
|
|
236
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
237
|
+
(0, class_transformer_1.Expose)({ name: "country" }),
|
|
238
|
+
__metadata("design:type", String)
|
|
239
|
+
], NewCustomerCustomerTaxID.prototype, "country", void 0);
|
|
240
|
+
__decorate([
|
|
241
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
242
|
+
(0, class_transformer_1.Expose)({ name: "type" }),
|
|
243
|
+
__metadata("design:type", String)
|
|
244
|
+
], NewCustomerCustomerTaxID.prototype, "type", void 0);
|
|
245
|
+
__decorate([
|
|
246
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
247
|
+
(0, class_transformer_1.Expose)({ name: "value" }),
|
|
248
|
+
__metadata("design:type", String)
|
|
249
|
+
], NewCustomerCustomerTaxID.prototype, "value", void 0);
|
|
250
|
+
return NewCustomerCustomerTaxID;
|
|
251
|
+
}(utils_1.SpeakeasyBase));
|
|
252
|
+
exports.NewCustomerCustomerTaxID = NewCustomerCustomerTaxID;
|
|
253
|
+
var NewCustomer = /** @class */ (function (_super) {
|
|
254
|
+
__extends(NewCustomer, _super);
|
|
255
|
+
function NewCustomer() {
|
|
256
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
257
|
+
}
|
|
258
|
+
__decorate([
|
|
259
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
260
|
+
(0, class_transformer_1.Expose)({ name: "auto_collection" }),
|
|
261
|
+
__metadata("design:type", Boolean)
|
|
262
|
+
], NewCustomer.prototype, "autoCollection", void 0);
|
|
263
|
+
__decorate([
|
|
264
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
265
|
+
(0, class_transformer_1.Expose)({ name: "billing_address" }),
|
|
266
|
+
(0, class_transformer_1.Type)(function () { return NewCustomerBillingAddress; }),
|
|
267
|
+
__metadata("design:type", NewCustomerBillingAddress)
|
|
268
|
+
], NewCustomer.prototype, "billingAddress", void 0);
|
|
269
|
+
__decorate([
|
|
270
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
271
|
+
(0, class_transformer_1.Expose)({ name: "currency" }),
|
|
272
|
+
__metadata("design:type", String)
|
|
273
|
+
], NewCustomer.prototype, "currency", void 0);
|
|
274
|
+
__decorate([
|
|
275
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
276
|
+
(0, class_transformer_1.Expose)({ name: "email" }),
|
|
277
|
+
__metadata("design:type", String)
|
|
278
|
+
], NewCustomer.prototype, "email", void 0);
|
|
279
|
+
__decorate([
|
|
280
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
281
|
+
(0, class_transformer_1.Expose)({ name: "external_customer_id" }),
|
|
282
|
+
__metadata("design:type", String)
|
|
283
|
+
], NewCustomer.prototype, "externalCustomerId", void 0);
|
|
284
|
+
__decorate([
|
|
285
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
286
|
+
(0, class_transformer_1.Expose)({ name: "metadata" }),
|
|
287
|
+
(0, class_transformer_1.Type)(function () { return NewCustomerMetadata; }),
|
|
288
|
+
__metadata("design:type", NewCustomerMetadata)
|
|
289
|
+
], NewCustomer.prototype, "metadata", void 0);
|
|
290
|
+
__decorate([
|
|
291
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
292
|
+
(0, class_transformer_1.Expose)({ name: "name" }),
|
|
293
|
+
__metadata("design:type", String)
|
|
294
|
+
], NewCustomer.prototype, "name", void 0);
|
|
295
|
+
__decorate([
|
|
296
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
297
|
+
(0, class_transformer_1.Expose)({ name: "payment_provider" }),
|
|
298
|
+
__metadata("design:type", String)
|
|
299
|
+
], NewCustomer.prototype, "paymentProvider", void 0);
|
|
300
|
+
__decorate([
|
|
301
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
302
|
+
(0, class_transformer_1.Expose)({ name: "payment_provider_id" }),
|
|
303
|
+
__metadata("design:type", String)
|
|
304
|
+
], NewCustomer.prototype, "paymentProviderId", void 0);
|
|
305
|
+
__decorate([
|
|
306
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
307
|
+
(0, class_transformer_1.Expose)({ name: "shipping_address" }),
|
|
308
|
+
(0, class_transformer_1.Type)(function () { return NewCustomerShippingAddress; }),
|
|
309
|
+
__metadata("design:type", NewCustomerShippingAddress)
|
|
310
|
+
], NewCustomer.prototype, "shippingAddress", void 0);
|
|
311
|
+
__decorate([
|
|
312
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
313
|
+
(0, class_transformer_1.Expose)({ name: "tax_id" }),
|
|
314
|
+
(0, class_transformer_1.Type)(function () { return NewCustomerCustomerTaxID; }),
|
|
315
|
+
__metadata("design:type", NewCustomerCustomerTaxID)
|
|
316
|
+
], NewCustomer.prototype, "taxId", void 0);
|
|
317
|
+
__decorate([
|
|
318
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
319
|
+
(0, class_transformer_1.Expose)({ name: "timezone" }),
|
|
320
|
+
__metadata("design:type", String)
|
|
321
|
+
], NewCustomer.prototype, "timezone", void 0);
|
|
322
|
+
return NewCustomer;
|
|
323
|
+
}(utils_1.SpeakeasyBase));
|
|
324
|
+
exports.NewCustomer = NewCustomer;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { RFCDate } from "../../types";
|
|
3
|
+
export declare class NewInvoiceLineItem extends SpeakeasyBase {
|
|
4
|
+
/**
|
|
5
|
+
* The total amount in the invoice's currency to add to the line item.
|
|
6
|
+
*/
|
|
7
|
+
amount: string;
|
|
8
|
+
/**
|
|
9
|
+
* An date string to specify the line item's end date in the customer's timezone.
|
|
10
|
+
*/
|
|
11
|
+
endDate: RFCDate;
|
|
12
|
+
/**
|
|
13
|
+
* The id of the `Invoice` to add this line item.
|
|
14
|
+
*/
|
|
15
|
+
invoiceId: string;
|
|
16
|
+
/**
|
|
17
|
+
* The item name associated with this line item. If an item with the same name exists in Orb, that item will be associated with the line item.
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
/**
|
|
21
|
+
* The number of units on the line item
|
|
22
|
+
*/
|
|
23
|
+
quantity: number;
|
|
24
|
+
/**
|
|
25
|
+
* An date string to specify the line item's start date in the customer's timezone.
|
|
26
|
+
*/
|
|
27
|
+
startDate: RFCDate;
|
|
28
|
+
}
|