Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

orb-billing

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

orb-billing

<!-- Start SDK Installation --> ## SDK Installation

  • 1.19.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
56K
decreased by-5.73%
Maintainers
1
Weekly downloads
 
Created
Source

orb-billing

SDK Installation

NPM

npm add orb-billing

Yarn

yarn add orb-billing

SDK Example Usage

import { Orb } from "orb-billing";
import { PingResponse } from "orb-billing/dist/sdk/models/operations";

const sdk = new Orb({
  security: {
    apiKeyAuth: "",
  },
});

sdk.availability.ping().then((res: PingResponse) => {
  if (res.statusCode == 200) {
    // handle response
  }
});

Available Resources and Operations

availability

  • ping - Check availability

coupon

credit

creditNote

  • fetch - Fetch credit note
  • list - List credit notes

customer

event

invoice

item

metric

plan

price

priceInterval

subscription

Pagination

Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the returned response object will have a next method that can be called to pull down the next group of results. If the return value of next is null, then there are no more pages to be fetched.

Here's an example of one such pagination call:

Maturity

This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.

Contributions

While we value open-source contributions to this SDK, this library is generated programmatically. Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!

SDK Created by Speakeasy

FAQs

Package last updated on 03 Oct 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc