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,364 @@
|
|
|
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.Customer = exports.CustomerCustomerTaxID = exports.CustomerShippingAddress = exports.CustomerPaymentProvider = exports.CustomerMetadata = exports.CustomerBillingAddress = 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 CustomerBillingAddress = /** @class */ (function (_super) {
|
|
37
|
+
__extends(CustomerBillingAddress, _super);
|
|
38
|
+
function CustomerBillingAddress() {
|
|
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
|
+
], CustomerBillingAddress.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
|
+
], CustomerBillingAddress.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
|
+
], CustomerBillingAddress.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
|
+
], CustomerBillingAddress.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
|
+
], CustomerBillingAddress.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
|
+
], CustomerBillingAddress.prototype, "state", void 0);
|
|
71
|
+
return CustomerBillingAddress;
|
|
72
|
+
}(utils_1.SpeakeasyBase));
|
|
73
|
+
exports.CustomerBillingAddress = CustomerBillingAddress;
|
|
74
|
+
/**
|
|
75
|
+
* User specified key-value pairs. If there is no metadata for the customer, this defaults to an empty dictionary.
|
|
76
|
+
*/
|
|
77
|
+
var CustomerMetadata = /** @class */ (function (_super) {
|
|
78
|
+
__extends(CustomerMetadata, _super);
|
|
79
|
+
function CustomerMetadata() {
|
|
80
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
81
|
+
}
|
|
82
|
+
return CustomerMetadata;
|
|
83
|
+
}(utils_1.SpeakeasyBase));
|
|
84
|
+
exports.CustomerMetadata = CustomerMetadata;
|
|
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 CustomerPaymentProvider;
|
|
93
|
+
(function (CustomerPaymentProvider) {
|
|
94
|
+
CustomerPaymentProvider["Quickbooks"] = "quickbooks";
|
|
95
|
+
CustomerPaymentProvider["BillCom"] = "bill.com";
|
|
96
|
+
CustomerPaymentProvider["StripeCharge"] = "stripe_charge";
|
|
97
|
+
CustomerPaymentProvider["StripeInvoice"] = "stripe_invoice";
|
|
98
|
+
CustomerPaymentProvider["Null"] = "null";
|
|
99
|
+
})(CustomerPaymentProvider = exports.CustomerPaymentProvider || (exports.CustomerPaymentProvider = {}));
|
|
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 CustomerShippingAddress = /** @class */ (function (_super) {
|
|
104
|
+
__extends(CustomerShippingAddress, _super);
|
|
105
|
+
function CustomerShippingAddress() {
|
|
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
|
+
], CustomerShippingAddress.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
|
+
], CustomerShippingAddress.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
|
+
], CustomerShippingAddress.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
|
+
], CustomerShippingAddress.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
|
+
], CustomerShippingAddress.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
|
+
], CustomerShippingAddress.prototype, "state", void 0);
|
|
138
|
+
return CustomerShippingAddress;
|
|
139
|
+
}(utils_1.SpeakeasyBase));
|
|
140
|
+
exports.CustomerShippingAddress = CustomerShippingAddress;
|
|
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 CustomerCustomerTaxID = /** @class */ (function (_super) {
|
|
231
|
+
__extends(CustomerCustomerTaxID, _super);
|
|
232
|
+
function CustomerCustomerTaxID() {
|
|
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
|
+
], CustomerCustomerTaxID.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
|
+
], CustomerCustomerTaxID.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
|
+
], CustomerCustomerTaxID.prototype, "value", void 0);
|
|
250
|
+
return CustomerCustomerTaxID;
|
|
251
|
+
}(utils_1.SpeakeasyBase));
|
|
252
|
+
exports.CustomerCustomerTaxID = CustomerCustomerTaxID;
|
|
253
|
+
/**
|
|
254
|
+
* A customer is a buyer of your products, and the other party to the billing relationship.
|
|
255
|
+
*
|
|
256
|
+
* @remarks
|
|
257
|
+
*
|
|
258
|
+
* In Orb, customers are assigned system generated identifiers automatically, but it's often desirable to have these match existing identifiers in your system. To avoid having to denormalize Orb ID information, you can pass in an `external_customer_id` with your own identifier. See [Customer ID Aliases](../guides/events-and-metrics/customer-aliases) for further information about how these aliases work in Orb.
|
|
259
|
+
*
|
|
260
|
+
* In addition to having an identifier in your system, a customer may exist in a payment provider solution like Stripe. Use the `payment_provider_id` and the `payment_provider` enum field to express this mapping.
|
|
261
|
+
*
|
|
262
|
+
* A customer also has a timezone (from the standard [IANA timezone database](https://www.iana.org/time-zones)), which defaults to your account's timezone. See [Timezone localization](../guides/product-catalog/timezones.md) for information on what this timezone parameter influences within Orb.
|
|
263
|
+
*/
|
|
264
|
+
var Customer = /** @class */ (function (_super) {
|
|
265
|
+
__extends(Customer, _super);
|
|
266
|
+
function Customer() {
|
|
267
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
268
|
+
}
|
|
269
|
+
__decorate([
|
|
270
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
271
|
+
(0, class_transformer_1.Expose)({ name: "auto_collection" }),
|
|
272
|
+
__metadata("design:type", Boolean)
|
|
273
|
+
], Customer.prototype, "autoCollection", void 0);
|
|
274
|
+
__decorate([
|
|
275
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
276
|
+
(0, class_transformer_1.Expose)({ name: "balance" }),
|
|
277
|
+
__metadata("design:type", String)
|
|
278
|
+
], Customer.prototype, "balance", void 0);
|
|
279
|
+
__decorate([
|
|
280
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
281
|
+
(0, class_transformer_1.Expose)({ name: "billing_address" }),
|
|
282
|
+
(0, class_transformer_1.Type)(function () { return CustomerBillingAddress; }),
|
|
283
|
+
__metadata("design:type", CustomerBillingAddress)
|
|
284
|
+
], Customer.prototype, "billingAddress", void 0);
|
|
285
|
+
__decorate([
|
|
286
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
287
|
+
(0, class_transformer_1.Expose)({ name: "created_at" }),
|
|
288
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
289
|
+
var value = _a.value;
|
|
290
|
+
return new Date(value);
|
|
291
|
+
}, { toClassOnly: true }),
|
|
292
|
+
__metadata("design:type", Date)
|
|
293
|
+
], Customer.prototype, "createdAt", void 0);
|
|
294
|
+
__decorate([
|
|
295
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
296
|
+
(0, class_transformer_1.Expose)({ name: "currency" }),
|
|
297
|
+
__metadata("design:type", String)
|
|
298
|
+
], Customer.prototype, "currency", void 0);
|
|
299
|
+
__decorate([
|
|
300
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
301
|
+
(0, class_transformer_1.Expose)({ name: "email" }),
|
|
302
|
+
__metadata("design:type", String)
|
|
303
|
+
], Customer.prototype, "email", void 0);
|
|
304
|
+
__decorate([
|
|
305
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
306
|
+
(0, class_transformer_1.Expose)({ name: "email_delivery" }),
|
|
307
|
+
__metadata("design:type", Boolean)
|
|
308
|
+
], Customer.prototype, "emailDelivery", void 0);
|
|
309
|
+
__decorate([
|
|
310
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
311
|
+
(0, class_transformer_1.Expose)({ name: "external_customer_id" }),
|
|
312
|
+
__metadata("design:type", String)
|
|
313
|
+
], Customer.prototype, "externalCustomerId", void 0);
|
|
314
|
+
__decorate([
|
|
315
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
316
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
317
|
+
__metadata("design:type", String)
|
|
318
|
+
], Customer.prototype, "id", void 0);
|
|
319
|
+
__decorate([
|
|
320
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
321
|
+
(0, class_transformer_1.Expose)({ name: "metadata" }),
|
|
322
|
+
(0, class_transformer_1.Type)(function () { return CustomerMetadata; }),
|
|
323
|
+
__metadata("design:type", CustomerMetadata)
|
|
324
|
+
], Customer.prototype, "metadata", void 0);
|
|
325
|
+
__decorate([
|
|
326
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
327
|
+
(0, class_transformer_1.Expose)({ name: "name" }),
|
|
328
|
+
__metadata("design:type", String)
|
|
329
|
+
], Customer.prototype, "name", void 0);
|
|
330
|
+
__decorate([
|
|
331
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
332
|
+
(0, class_transformer_1.Expose)({ name: "payment_provider" }),
|
|
333
|
+
__metadata("design:type", String)
|
|
334
|
+
], Customer.prototype, "paymentProvider", void 0);
|
|
335
|
+
__decorate([
|
|
336
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
337
|
+
(0, class_transformer_1.Expose)({ name: "payment_provider_id" }),
|
|
338
|
+
__metadata("design:type", String)
|
|
339
|
+
], Customer.prototype, "paymentProviderId", void 0);
|
|
340
|
+
__decorate([
|
|
341
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
342
|
+
(0, class_transformer_1.Expose)({ name: "portal_url" }),
|
|
343
|
+
__metadata("design:type", String)
|
|
344
|
+
], Customer.prototype, "portalUrl", void 0);
|
|
345
|
+
__decorate([
|
|
346
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
347
|
+
(0, class_transformer_1.Expose)({ name: "shipping_address" }),
|
|
348
|
+
(0, class_transformer_1.Type)(function () { return CustomerShippingAddress; }),
|
|
349
|
+
__metadata("design:type", CustomerShippingAddress)
|
|
350
|
+
], Customer.prototype, "shippingAddress", void 0);
|
|
351
|
+
__decorate([
|
|
352
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
353
|
+
(0, class_transformer_1.Expose)({ name: "tax_id" }),
|
|
354
|
+
(0, class_transformer_1.Type)(function () { return CustomerCustomerTaxID; }),
|
|
355
|
+
__metadata("design:type", CustomerCustomerTaxID)
|
|
356
|
+
], Customer.prototype, "taxId", void 0);
|
|
357
|
+
__decorate([
|
|
358
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
359
|
+
(0, class_transformer_1.Expose)({ name: "timezone" }),
|
|
360
|
+
__metadata("design:type", String)
|
|
361
|
+
], Customer.prototype, "timezone", void 0);
|
|
362
|
+
return Customer;
|
|
363
|
+
}(utils_1.SpeakeasyBase));
|
|
364
|
+
exports.Customer = Customer;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { Action } from "./action";
|
|
3
|
+
import { TransactionType } from "./transactiontype";
|
|
4
|
+
/**
|
|
5
|
+
* The Credit note associated with this transaction. This may appear as the result of a credit note being applied to an invoice and balance is added back to the customer balance or it is being reapplied to the invoice.
|
|
6
|
+
*/
|
|
7
|
+
export declare class CustomerBalanceTransactionCreditNoteMinified extends SpeakeasyBase {
|
|
8
|
+
/**
|
|
9
|
+
* The id of the Credit note
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The Invoice associated with this transaction
|
|
15
|
+
*/
|
|
16
|
+
export declare class CustomerBalanceTransactionInvoice extends SpeakeasyBase {
|
|
17
|
+
/**
|
|
18
|
+
* The Invoice id
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A single change to the customer balance. All amounts are in the customer's currency.
|
|
24
|
+
*/
|
|
25
|
+
export declare class CustomerBalanceTransaction extends SpeakeasyBase {
|
|
26
|
+
/**
|
|
27
|
+
* Describes the reason that this transaction took place.
|
|
28
|
+
*/
|
|
29
|
+
action: Action;
|
|
30
|
+
/**
|
|
31
|
+
* The value of the amount changed in the transaction.
|
|
32
|
+
*/
|
|
33
|
+
amount: string;
|
|
34
|
+
/**
|
|
35
|
+
* The creation time of this transaction.
|
|
36
|
+
*/
|
|
37
|
+
createdAt: Date;
|
|
38
|
+
creditNote?: CustomerBalanceTransactionCreditNoteMinified;
|
|
39
|
+
/**
|
|
40
|
+
* An optional description provided for manual customer balance adjustments.
|
|
41
|
+
*/
|
|
42
|
+
description: string;
|
|
43
|
+
/**
|
|
44
|
+
* The new value of the customer's balance prior to the transaction, in the customer's currency.
|
|
45
|
+
*/
|
|
46
|
+
endingBalance: string;
|
|
47
|
+
/**
|
|
48
|
+
* A unique id for this transaction.
|
|
49
|
+
*/
|
|
50
|
+
id: string;
|
|
51
|
+
invoice: CustomerBalanceTransactionInvoice;
|
|
52
|
+
/**
|
|
53
|
+
* The original value of the customer's balance prior to the transaction, in the customer's currency.
|
|
54
|
+
*/
|
|
55
|
+
startingBalance: string;
|
|
56
|
+
type: TransactionType;
|
|
57
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
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.CustomerBalanceTransaction = exports.CustomerBalanceTransactionInvoice = exports.CustomerBalanceTransactionCreditNoteMinified = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var action_1 = require("./action");
|
|
33
|
+
var transactiontype_1 = require("./transactiontype");
|
|
34
|
+
var class_transformer_1 = require("class-transformer");
|
|
35
|
+
/**
|
|
36
|
+
* The Credit note associated with this transaction. This may appear as the result of a credit note being applied to an invoice and balance is added back to the customer balance or it is being reapplied to the invoice.
|
|
37
|
+
*/
|
|
38
|
+
var CustomerBalanceTransactionCreditNoteMinified = /** @class */ (function (_super) {
|
|
39
|
+
__extends(CustomerBalanceTransactionCreditNoteMinified, _super);
|
|
40
|
+
function CustomerBalanceTransactionCreditNoteMinified() {
|
|
41
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
42
|
+
}
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
45
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], CustomerBalanceTransactionCreditNoteMinified.prototype, "id", void 0);
|
|
48
|
+
return CustomerBalanceTransactionCreditNoteMinified;
|
|
49
|
+
}(utils_1.SpeakeasyBase));
|
|
50
|
+
exports.CustomerBalanceTransactionCreditNoteMinified = CustomerBalanceTransactionCreditNoteMinified;
|
|
51
|
+
/**
|
|
52
|
+
* The Invoice associated with this transaction
|
|
53
|
+
*/
|
|
54
|
+
var CustomerBalanceTransactionInvoice = /** @class */ (function (_super) {
|
|
55
|
+
__extends(CustomerBalanceTransactionInvoice, _super);
|
|
56
|
+
function CustomerBalanceTransactionInvoice() {
|
|
57
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
58
|
+
}
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
61
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], CustomerBalanceTransactionInvoice.prototype, "id", void 0);
|
|
64
|
+
return CustomerBalanceTransactionInvoice;
|
|
65
|
+
}(utils_1.SpeakeasyBase));
|
|
66
|
+
exports.CustomerBalanceTransactionInvoice = CustomerBalanceTransactionInvoice;
|
|
67
|
+
/**
|
|
68
|
+
* A single change to the customer balance. All amounts are in the customer's currency.
|
|
69
|
+
*/
|
|
70
|
+
var CustomerBalanceTransaction = /** @class */ (function (_super) {
|
|
71
|
+
__extends(CustomerBalanceTransaction, _super);
|
|
72
|
+
function CustomerBalanceTransaction() {
|
|
73
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
74
|
+
}
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
77
|
+
(0, class_transformer_1.Expose)({ name: "action" }),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], CustomerBalanceTransaction.prototype, "action", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
82
|
+
(0, class_transformer_1.Expose)({ name: "amount" }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], CustomerBalanceTransaction.prototype, "amount", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
87
|
+
(0, class_transformer_1.Expose)({ name: "created_at" }),
|
|
88
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
89
|
+
var value = _a.value;
|
|
90
|
+
return new Date(value);
|
|
91
|
+
}, { toClassOnly: true }),
|
|
92
|
+
__metadata("design:type", Date)
|
|
93
|
+
], CustomerBalanceTransaction.prototype, "createdAt", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
96
|
+
(0, class_transformer_1.Expose)({ name: "credit_note" }),
|
|
97
|
+
(0, class_transformer_1.Type)(function () { return CustomerBalanceTransactionCreditNoteMinified; }),
|
|
98
|
+
__metadata("design:type", CustomerBalanceTransactionCreditNoteMinified)
|
|
99
|
+
], CustomerBalanceTransaction.prototype, "creditNote", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
102
|
+
(0, class_transformer_1.Expose)({ name: "description" }),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], CustomerBalanceTransaction.prototype, "description", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
107
|
+
(0, class_transformer_1.Expose)({ name: "ending_balance" }),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], CustomerBalanceTransaction.prototype, "endingBalance", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
112
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
113
|
+
__metadata("design:type", String)
|
|
114
|
+
], CustomerBalanceTransaction.prototype, "id", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
117
|
+
(0, class_transformer_1.Expose)({ name: "invoice" }),
|
|
118
|
+
(0, class_transformer_1.Type)(function () { return CustomerBalanceTransactionInvoice; }),
|
|
119
|
+
__metadata("design:type", CustomerBalanceTransactionInvoice)
|
|
120
|
+
], CustomerBalanceTransaction.prototype, "invoice", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
123
|
+
(0, class_transformer_1.Expose)({ name: "starting_balance" }),
|
|
124
|
+
__metadata("design:type", String)
|
|
125
|
+
], CustomerBalanceTransaction.prototype, "startingBalance", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
128
|
+
(0, class_transformer_1.Expose)({ name: "type" }),
|
|
129
|
+
__metadata("design:type", String)
|
|
130
|
+
], CustomerBalanceTransaction.prototype, "type", void 0);
|
|
131
|
+
return CustomerBalanceTransaction;
|
|
132
|
+
}(utils_1.SpeakeasyBase));
|
|
133
|
+
exports.CustomerBalanceTransaction = CustomerBalanceTransaction;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { PerPriceCost } from "./perpricecost";
|
|
3
|
+
export declare class CustomerCost extends SpeakeasyBase {
|
|
4
|
+
perPriceCosts: PerPriceCost[];
|
|
5
|
+
/**
|
|
6
|
+
* Total costs for the timeframe, excluding minimums and discounts.
|
|
7
|
+
*/
|
|
8
|
+
subtotal: string;
|
|
9
|
+
timeframeEnd: Date;
|
|
10
|
+
timeframeStart: Date;
|
|
11
|
+
/**
|
|
12
|
+
* Total costs for the timeframe, including minimums and discounts.
|
|
13
|
+
*/
|
|
14
|
+
total: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
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.CustomerCost = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var perpricecost_1 = require("./perpricecost");
|
|
33
|
+
var class_transformer_1 = require("class-transformer");
|
|
34
|
+
var CustomerCost = /** @class */ (function (_super) {
|
|
35
|
+
__extends(CustomerCost, _super);
|
|
36
|
+
function CustomerCost() {
|
|
37
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
38
|
+
}
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: perpricecost_1.PerPriceCost }),
|
|
41
|
+
(0, class_transformer_1.Expose)({ name: "per_price_costs" }),
|
|
42
|
+
(0, class_transformer_1.Type)(function () { return perpricecost_1.PerPriceCost; }),
|
|
43
|
+
__metadata("design:type", Array)
|
|
44
|
+
], CustomerCost.prototype, "perPriceCosts", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
47
|
+
(0, class_transformer_1.Expose)({ name: "subtotal" }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], CustomerCost.prototype, "subtotal", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
52
|
+
(0, class_transformer_1.Expose)({ name: "timeframe_end" }),
|
|
53
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
54
|
+
var value = _a.value;
|
|
55
|
+
return new Date(value);
|
|
56
|
+
}, { toClassOnly: true }),
|
|
57
|
+
__metadata("design:type", Date)
|
|
58
|
+
], CustomerCost.prototype, "timeframeEnd", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
61
|
+
(0, class_transformer_1.Expose)({ name: "timeframe_start" }),
|
|
62
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
63
|
+
var value = _a.value;
|
|
64
|
+
return new Date(value);
|
|
65
|
+
}, { toClassOnly: true }),
|
|
66
|
+
__metadata("design:type", Date)
|
|
67
|
+
], CustomerCost.prototype, "timeframeStart", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
70
|
+
(0, class_transformer_1.Expose)({ name: "total" }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], CustomerCost.prototype, "total", void 0);
|
|
73
|
+
return CustomerCost;
|
|
74
|
+
}(utils_1.SpeakeasyBase));
|
|
75
|
+
exports.CustomerCost = CustomerCost;
|