Skip to main content

Python client SDK for Orb's API

Project description

orb

SDK Installation

pip install orb-billing

SDK Example Usage

import orb
from orb.models import shared

s = orb.Orb(
    security=shared.Security(
        api_key_auth="",
    ),
)

req = shared.NewCustomer(
    auto_collection=False,
    billing_address=shared.NewCustomerBillingAddress(
        city='Laruecester',
        country='US',
        line1='quibusdam',
        line2='unde',
        postal_code='58466-3428',
        state='ipsa',
    ),
    currency='delectus',
    email='Geraldine_Kreiger52@gmail.com',
    external_customer_id='iusto',
    metadata=shared.NewCustomerMetadata(),
    name='Charlie Walsh II',
    payment_provider=shared.NewCustomerPaymentProvider.QUICKBOOKS,
    payment_provider_id='deserunt',
    shipping_address=shared.NewCustomerShippingAddress(
        city='West Ritaworth',
        country='US',
        line1='quo',
        line2='odit',
        postal_code='89478-4576',
        state='dicta',
    ),
    tax_id=shared.NewCustomerCustomerTaxID(
        country='Puerto Rico',
        type='officia',
        value='occaecati',
    ),
    timezone='Etc/UTC',
)

res = s.customer.create(req)

if res.customer is not None:
    # handle response

Available Resources and Operations

availability

  • ping - Check availability

coupon

credit

credit_note

  • 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

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

orb-billing-1.18.3.tar.gz (92.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orb_billing-1.18.3-py3-none-any.whl (191.6 kB view details)

Uploaded Python 3

File details

Details for the file orb-billing-1.18.3.tar.gz.

File metadata

  • Download URL: orb-billing-1.18.3.tar.gz
  • Upload date:
  • Size: 92.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for orb-billing-1.18.3.tar.gz
Algorithm Hash digest
SHA256 6945920110ccb260c8747771674383b1a52b2e3d36a8036c5f653762a97e0131
MD5 a87596e82725bd06a3af6bc2bc027ef3
BLAKE2b-256 3c3a5ca52f37db4e69ad85dae01c1caab756b89a68980b9f1516a267aec7525c

See more details on using hashes here.

File details

Details for the file orb_billing-1.18.3-py3-none-any.whl.

File metadata

  • Download URL: orb_billing-1.18.3-py3-none-any.whl
  • Upload date:
  • Size: 191.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for orb_billing-1.18.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9fcf2241cf379b606a7ed7d074dca68d84619a2a3bd3b85282ae6e8a7b46e8ef
MD5 f5bf214689f8f67c7750118dc3699696
BLAKE2b-256 0a68836c5bf12c551438d92c85ea389b3a9cc45278cac4a7eda5549079aa14b9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page