@teemill/billing
v3.17.0
Published
OpenAPI client for @teemill/billing
Readme
@teemill/[email protected]
This generator creates TypeScript/JavaScript client that utilizes axios. The generated Node module can be used in the following environments:
Environment
- Node.js
- Webpack
- Browserify
Language level
- ES5 - you must have a Promises/A+ library installed
- ES6
Module system
- CommonJS
- ES6 module system
It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via package.json. (Reference)
Building
To build and compile the typescript sources to javascript use:
npm install
npm run buildPublishing
First build the package then run npm publish
Consuming
navigate to the folder of your consuming project and run one of the following commands.
published:
npm install @teemill/[email protected] --saveunPublished (not recommended):
npm install PATH_TO_GENERATED_PACKAGE --saveDocumentation for API Endpoints
All URIs are relative to https://api.localhost:8080
Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- BillingApi | confirmTransaction | POST /v1/billing/transactions/{id}/confirm | Confirm a transaction BillingApi | createPaymentMethod | POST /v1/billing/payment-methods | Create a project payment method BillingApi | createSummary | POST /v1/billing/summaries | Create a project summary BillingApi | createTransaction | POST /v1/billing/transactions | Create a transaction BillingApi | createWalletTransaction | POST /v1/billing/clients/{client}/wallets/{id}/transactions | Create a wallet transaction BillingApi | deletePaymentMethod | DELETE /v1/billing/payment-methods/{id} | Delete a project payment method BillingApi | deleteSummary | DELETE /v1/billing/summaries/{id} | Delete a project summary BillingApi | downloadInvoice | GET /v1/billing/invoices/{id}/download | Download a project invoice BillingApi | downloadSummary | GET /v1/billing/summaries/{id}/download | Download a project summary BillingApi | exportAdminTransactions | POST /v1/billing/admin/transactions/export | Export all billing charges BillingApi | exportInvoiceTransactions | POST /v1/billing/invoices/{id}/transactions/export | Export invoice transactions BillingApi | exportSummaryTransactions | POST /v1/billing/summaries/{id}/transactions/export | Export summary transactions BillingApi | exportTransactions | POST /v1/billing/transactions/export | Export billing charges BillingApi | getBillingProject | GET /v1/billing | Retrieve the billing project BillingApi | getClientInvoices | GET /v1/billing/clients/{client}/invoices | Retrieve a list of client project invoices BillingApi | getClientPaymentMethods | GET /v1/billing/clients/{client}/payment-methods | Retrieve client project payment methods BillingApi | getClientPlan | GET /v1/billing/clients/{client}/plan | Fetch client billing plan BillingApi | getClientProject | GET /v1/billing/clients/{client} | Fetch client billing project BillingApi | getInvoice | GET /v1/billing/invoices/{id} | Retrieve a project invoice BillingApi | getInvoicePaymentAttempts | GET /v1/billing/invoices/{id}/payment-attempts | Retrieve a list of project invoice payment attempts BillingApi | getInvoices | GET /v1/billing/invoices | Retrieve a list of project invoices BillingApi | getOverview | GET /v1/billing/overview | Retrieve the billing project overview BillingApi | getPaymentMethod | GET /v1/billing/payment-methods/{id} | Retrieve a project payment method BillingApi | getPaymentMethodPaymentAttempts | GET /v1/billing/payment-methods/{id}/payment-attempts | Retrieve a list of project payment method payment attempts BillingApi | getPaymentMethodVendorSecret | GET /v1/billing/payment-methods/{vendor}/secret | Retrieve a project payment method secret BillingApi | getPaymentMethods | GET /v1/billing/payment-methods | Retrieve a list of project payment methods BillingApi | getPlans | GET /v1/billing/plans | Retrieve a list of project billing plans BillingApi | getSummaries | GET /v1/billing/summaries | Retrieve a list of project summaries BillingApi | getSummary | GET /v1/billing/summaries/{id} | Retrieve a project summary BillingApi | getTransaction | GET /v1/billing/transactions/{id} | Retrieve a project transaction BillingApi | getTransactions | GET /v1/billing/transactions | Retrieve a list of project transactions BillingApi | getWallet | GET /v1/billing/wallets/{id} | Retrieve a project wallet BillingApi | getWalletTransactions | GET /v1/billing/wallets/{id}/transactions | Retrieve a list of project wallet transactions for a given wallet BillingApi | getWallets | GET /v1/billing/wallets | Retrieve a list of project wallets BillingApi | updateAdminBillingProject | PATCH /v1/billing/admin | Update the billing project BillingApi | updateBillingProject | PATCH /v1/billing | Update the billing project BillingApi | updateClientPlan | PATCH /v1/billing/clients/{client}/plan | Update client billing plan BillingApi | updateClientProject | PATCH /v1/billing/clients/{client} | Update client billing project BillingApi | updatePaymentMethod | PATCH /v1/billing/payment-methods/{id} | Update a project payment method BillingApi | updateWallet | PATCH /v1/billing/wallets/{id} | Update a project wallet
Documentation For Models
- ApiError
- BankCard
- BillingOverview
- BillingOverviewCredit
- BillingOverviewCreditLimit
- BillingOverviewCreditUsed
- BillingOverviewInvoices
- BillingOverviewInvoicesDue
- BillingOverviewInvoicesOverdue
- BillingOverviewInvoicesPending
- BillingOverviewWallet
- BillingOverviewWalletBalance
- BillingProject
- BillingProjectParentProject
- BillingProjectParentProjectSettings
- BillingProjectPlan
- BillingProjectSettings
- BillingProjectSettingsCredit
- BillingProjectSettingsPlatform
- CreatePaymentMethodRequest
- CreatePaymentMethodRequestDetails
- CreateSummaryRequest
- CreateTransactionRequest
- CreateTransactionRequestItemsInner
- CreateWalletTransactionRequest
- Discount
- DiscountMetadata
- ExportAdminTransactionsRequest
- ExportInvoiceTransactions202Response
- ExportInvoiceTransactionsRequest
- ExportTransactionsRequest
- GetInvoicePaymentAttempts200Response
- GetInvoices200Response
- GetPaymentMethodVendorSecret200Response
- GetPaymentMethods200Response
- GetPlans200Response
- GetSummaries200Response
- GetTransactions200Response
- GetWalletTransactions200Response
- GetWallets200Response
- Invoice
- InvoiceDiscount
- InvoiceMetadata
- InvoiceMetadataCache
- InvoiceMetadataOrder
- InvoiceStatus
- InvoiceStatusEnum
- InvoiceSubtotal
- InvoiceSubtotalExVat
- InvoiceTotal
- InvoiceVat
- PaymentAttempt
- PaymentMethod
- PaymentMethodDetails
- PaymentMethodPlatform
- Plan
- PlanProductsInner
- PlanProductsInnerDiscountsInner
- PlanProductsInnerPricing
- Product
- ProductMetadata
- Summary
- SummarySubtotal
- SummaryTotal
- SummaryVat
- Transaction
- TransactionDiscount
- TransactionItem
- TransactionItemDiscount
- TransactionItemSubtotal
- TransactionItemSubtotalExVat
- TransactionItemTotal
- TransactionItemUnitPrice
- TransactionItemVat
- TransactionSubtotal
- TransactionSubtotalExVat
- TransactionTotal
- TransactionVat
- UpdateAdminBillingProjectRequest
- UpdateAdminBillingProjectRequestCredit
- UpdateBillingProject400Response
- UpdateBillingProjectRequest
- UpdateBillingProjectRequestPlatform
- UpdateClientPlanRequest
- UpdateClientPlanRequestProductsInner
- UpdateClientPlanRequestProductsInnerDiscountsInner
- UpdateClientPlanRequestProductsInnerPricing
- UpdatePaymentMethodRequest
- UpdateWalletRequest
- UpdateWalletRequestAutoTopup
- Wallet
- WalletAutoTopup
- WalletAutoTopupAmount
- WalletAutoTopupThreshold
- WalletTransaction
Documentation For Authorization
Authentication schemes defined for the API:
api-key
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
session-oauth
- Type: OAuth
- Flow: password
- Authorization URL:
- Scopes: N/A
