Skip to main content

Demo Billing SDK

Project description

billing

SDK Installation

pip install speakeasy-billing

SDK Example Usage

import billing
from billing.models import shared

s = billing.Billing(
    security=shared.Security(
        api_key_auth="",
    ),
)

req = shared.NewCustomer(
    billing_address=shared.NewCustomerBillingAddress(
        country='US',
    ),
    metadata=shared.NewCustomerMetadata(),
    shipping_address=shared.NewCustomerShippingAddress(
        country='US',
    ),
    tax_id=shared.NewCustomerCustomerTaxID(
        country='Latvia',
        type='Configuration Money',
        value='Cambridgeshire grey technology',
    ),
    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

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 None, then there are no more pages to be fetched.

Here's an example of one such pagination call:

Development

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


Download files

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

Source Distribution

speakeasy-billing-0.5.0.tar.gz (94.1 kB view details)

Uploaded Source

Built Distribution

speakeasy_billing-0.5.0-py3-none-any.whl (196.8 kB view details)

Uploaded Python 3

File details

Details for the file speakeasy-billing-0.5.0.tar.gz.

File metadata

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

File hashes

Hashes for speakeasy-billing-0.5.0.tar.gz
Algorithm Hash digest
SHA256 4984d31cab640b07e454bed1422d7eeb8a216b6d37a4f2326dd360d190066c77
MD5 dc4dbd141860c6529df45934599efd6d
BLAKE2b-256 70ac01291b5c12b02b0b0b991607b858276256681e3d85902ffbbe9f24830d61

See more details on using hashes here.

File details

Details for the file speakeasy_billing-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for speakeasy_billing-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68aca774029568e215f856ff3c59397f4d634bac27056d3a05f0f6779d6af7f6
MD5 da87122c6f6d64337412c4d050158e3d
BLAKE2b-256 71a1068c4124806ca282afaeef86f8984500e4a73f0474adaa9dac1a41dd0c7e

See more details on using hashes here.

Supported by

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