Socket
Socket
Sign inDemoInstall

billwerk

Package Overview
Dependencies
23
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    billwerk

Node wrapper for the billwerk API: https://developer.billwerk.io/Docs/ApiReference


Version published
Weekly downloads
59
increased by51.28%
Maintainers
1
Install size
932 kB
Created
Weekly downloads
 

Readme

Source

Functions

createOrder(data)

Create a new plan/component subscription or up/downgrade order

commitOrder(orderId, data)

Process and finalize an order

approveOrder(orderId)

[FEATURE] Approve an order

declineOrder(orderId)

[FEATURE] Decline an order

getCustomers()

Retrieve a list of all customers

createCustomer(data)

Create a new customer

getCustomer(customerId)

Retrieve a single customer

putCustomer(customerId, data)

Replaces a customer's data

patchCustomer(customerId, data)

Updates parts of a customer

deleteCustomer(customerId)

Deletes a customer

getCustomerContracts(customerId)

Retrieves a list of all contracts for the given customer id

getContracts()

Retrieve a list of contracts

getContract(contractId)

Retrieves a single contract by Id

getContractUsage(contractId)

Retrieves a contract's associated usage

postContractUsage(contractId, data)

Posts new metered usage data

deleteContractUsage(contractId, usageId)

Remove an unbilled metered usage

getContractComponentSubscriptions(contractId)

Retrieves current subscriptions in the selected contract

createContractComponentSubscription(contractId, data)

Create a new component subscription for this contract

getContractSubscriptions(contractId)

Retrieves all currently active subscriptions including plan variant, component subscriptions and discount subscriptions

getContractSelfServiceToken(contractId)

Retrieve a short-lived selfservice access token

getContractCancellationPreview(contractId)

Retrieves a cancellation preview for a contract for a regular cancellation, considering contract and notice periods of the booked PlanVariant.

endContract(contractId, data)

Set an enddate for this contract

createContractRatedItem(contractId, data)

Create a Rated Item for this contract

getSubscriptions()

Retrieves combined customer and contract data

getInvoices()

Retrieves a list of all invoices / credit notes

getInvoiceById(invoiceId)

Retrieves an invoice by id

getInvoiceDownloadLink(invoiceId)

Creates a file download token for the given invoice

getInvoiceDrafts()

Retrieves a list of all invoice drafts

getInvoiceDraft(invoiceDraftId)

Retrieves a draft by id

sendInvoiceDraft(invoiceDraftId)

Sends the given invoice draft id, thus converting it to an invoice. Returns the newly created invoice

getPlanGroups()

Retrieves a list of plan groups

getPlanGroup(planGroupId)

Retrieves a single Plangroup by ID

getPlans()

Retrieve a list of available plans

getPlan(planId)

Retrieves a single plan by ID

getPlanVariants()

Retrieves a list of available Planvariants

getPlanVariant(planVariantId)

Retrieves a single Planvariant by ID

getWebhooks()

Lists all webhooks that you currently have registered

createWebhook(data)

Create a new webhook subscription

deleteWebhook(webhookId)

Deletes the webhook from the system

createOrder(data)

Create a new plan/component subscription or up/downgrade order

Kind: global function

ParamTypeDescription
data*OrderDTO

commitOrder(orderId, data)

Process and finalize an order

Kind: global function

ParamTypeDescription
orderIdstringOrder ID
data*OrderCommitDTO

approveOrder(orderId)

[FEATURE] Approve an order

Kind: global function

ParamTypeDescription
orderIdstringOrder ID

declineOrder(orderId)

[FEATURE] Decline an order

Kind: global function

ParamTypeDescription
orderIdstringOrder ID

getCustomers()

Retrieve a list of all customers

Kind: global function

createCustomer(data)

Create a new customer

Kind: global function

ParamTypeDescription
data*CustomerDTO

getCustomer(customerId)

Retrieve a single customer

Kind: global function

ParamTypeDescription
customerIdstringCustomer ID

putCustomer(customerId, data)

Replaces a customer's data

Kind: global function

ParamTypeDescription
customerIdstringCustomer ID
data*CustomerDTO

patchCustomer(customerId, data)

Updates parts of a customer

Kind: global function

ParamTypeDescription
customerIdstringCustomer ID
data*CustomerDTO

deleteCustomer(customerId)

Deletes a customer

Kind: global function

ParamTypeDescription
customerIdstringCustomer ID

getCustomerContracts(customerId)

Retrieves a list of all contracts for the given customer id

Kind: global function

ParamTypeDescription
customerIdstringCustomer ID

getContracts()

Retrieve a list of contracts

Kind: global function

getContract(contractId)

Retrieves a single contract by Id

Kind: global function

ParamType
contractIdstring

getContractUsage(contractId)

Retrieves a contract's associated usage

Kind: global function

ParamType
contractIdstring

postContractUsage(contractId, data)

Posts new metered usage data

Kind: global function

ParamTypeDescription
contractIdstringContract ID
data*MeteredUsageDTO

deleteContractUsage(contractId, usageId)

Remove an unbilled metered usage

Kind: global function

ParamTypeDescription
contractIdstringContract ID
usageIdstringMetered Usage ID

getContractComponentSubscriptions(contractId)

Retrieves current subscriptions in the selected contract

Kind: global function

ParamTypeDescription
contractIdstringContract ID

createContractComponentSubscription(contractId, data)

Create a new component subscription for this contract

Kind: global function

ParamTypeDescription
contractIdstringContract ID
data*ComponentSubscriptionCreateDTO

getContractSubscriptions(contractId)

component subscriptions and discount subscriptionsding plan variant,

Kind: global function

ParamTypeDescription
contractIdstringContract ID

getContractSelfServiceToken(contractId)

Retrieve a short-lived selfservice access token

Kind: global function

ParamTypeDescription
contractIdstringContract ID

getContractCancellationPreview(contractId)

considering contract and notice periods of the booked PlanVariant.ellation,

Kind: global function

ParamTypeDescription
contractIdstringContract ID

endContract(contractId, data)

Set an enddate for this contract

Kind: global function

ParamTypeDescription
contractIdstringContract ID
data*ContractEndDTO

createContractRatedItem(contractId, data)

Create a Rated Item for this contract

Kind: global function

ParamTypeDescription
contractIdstringContract ID
data*RatedItemCreateDTO

getSubscriptions()

Retrieves combined customer and contract data

Kind: global function

getInvoices()

Retrieves a list of all invoices / credit notes

Kind: global function

getInvoiceById(invoiceId)

Retrieves an invoice by id

Kind: global function

ParamTypeDescription
invoiceIdstringInvoice ID

getInvoiceDownloadLink(invoiceId)

Creates a file download token for the given invoice

Kind: global function

ParamTypeDescription
invoiceIdstringInvoice ID

getInvoiceDrafts()

Retrieves a list of all invoice drafts

Kind: global function

getInvoiceDraft(invoiceDraftId)

Retrieves a draft by id

Kind: global function

ParamTypeDescription
invoiceDraftIdstringInvoice Draft ID

sendInvoiceDraft(invoiceDraftId)

Returns the newly created invoice thus converting it to an invoice.

Kind: global function

ParamTypeDescription
invoiceDraftIdstringInvoice Draft ID

getPlanGroups()

Retrieves a list of plan groups

Kind: global function

getPlanGroup(planGroupId)

Retrieves a single Plangroup by ID

Kind: global function

ParamType
planGroupIdstring

getPlans()

Retrieve a list of available plans

Kind: global function

getPlan(planId)

Retrieves a single plan by ID

Kind: global function

ParamTypeDescription
planIdstringPlan ID

getPlanVariants()

Retrieves a list of available Planvariants

Kind: global function

getPlanVariant(planVariantId)

Retrieves a single Planvariant by ID

Kind: global function

ParamTypeDescription
planVariantIdstringPlanVariant ID

getWebhooks()

Lists all webhooks that you currently have registered

Kind: global function

createWebhook(data)

Create a new webhook subscription

Kind: global function

ParamTypeDescription
data*HookDTO

deleteWebhook(webhookId)

Deletes the webhook from the system

Kind: global function

ParamTypeDescription
webhookIdstringWebhook ID

FAQs

Last updated on 02 Jul 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc