New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

orb-billing

Package Overview
Dependencies
Maintainers
1
Versions
115
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.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
97K
decreased by-11.83%
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 { CreateCustomerResponse } from "orb-billing/dist/sdk/models/operations";
import { CustomerPaymentProvider, NewCustomerPaymentProvider } from "orb-billing/dist/sdk/models/shared";

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

sdk.customer.create({
  autoCollection: false,
  billingAddress: {
    city: "Laruecester",
    country: "US",
    line1: "quibusdam",
    line2: "unde",
    postalCode: "58466-3428",
    state: "ipsa",
  },
  currency: "delectus",
  email: "Geraldine_Kreiger52@gmail.com",
  externalCustomerId: "iusto",
  metadata: {},
  name: "Charlie Walsh II",
  paymentProvider: NewCustomerPaymentProvider.Quickbooks,
  paymentProviderId: "deserunt",
  shippingAddress: {
    city: "West Ritaworth",
    country: "US",
    line1: "quo",
    line2: "odit",
    postalCode: "89478-4576",
    state: "dicta",
  },
  taxId: {
    country: "Puerto Rico",
    type: "officia",
    value: "occaecati",
  },
  timezone: "Etc/UTC",
}).then((res: CreateCustomerResponse) => {
  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

plan

subscription

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 06 Jul 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