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) {
}
});
Available Resources and Operations
- ping - Check availability
- fetch - Fetch credit note
- list - List credit notes
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!