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
- archive - Archive coupon
- create - Create coupon
- fetch - Fetch coupon
- list - List coupons
- list_subscriptions - List coupon subscriptions
credit
- add_by_external_id - Create ledger entry by external ID
- create - Create ledger entry
- fetch - Fetch customer credit balance
- fetch_by_external_id - Fetch customer credit balance by external customer id
- fetch_ledger - Fetch customer credits ledger
- fetch_ledger_external_id - Fetch credits ledger by external ID
credit_note
customer
- amend - Amend usage
- amend_by_external_id - Amend usage by external ID
- create - Create customer
- create_balance_transaction - Create customer balance transaction
- delete - Delete customer
- fetch - Fetch customer
- fetch_by_external_id - Fetch customer by external ID
- fetch_costs - Fetch customer costs
- fetch_costs_by_external_id - Fetch customer costs by external ID
- fetch_transactions - List balance transactions
- list - List customers
- update_by_external_id - Update customer by external ID
- update_customer - Update customer
event
- amend - Amend event
- close_backfill - Close backfill
- create - Create backfill
- deprecate_event - Deprecate event
- ingest - Ingest events
- list_backfills - List backfills
- revert_backfill - Revert backfill
- search - Search events
invoice
- create - Create invoice line item
- fetch - Fetch invoice
- fetch_upcoming - Fetch upcoming invoice
- issue - Issue an invoice
- list - List invoices
- void - Void invoice
plan
- fetch - Fetch plan
- get_by_external_id - Fetch plan by external ID
- list - List plans
subscription
- cancel - Cancel subscription
- create - Create subscription
- fetch - Fetch subscription
- fetch_costs - Fetch subscription costs
- fetch_schedule - Fetch subscription schedule
- fetch_usage - Fetch subscription usage
- list - List subscriptions
- schedule_plan_change - Schedule plan change
- unschedule_cancellation - Unschedule subscription cancellation
- unschedule_plan_change - Unschedule plan change
- update_fixed_fee_quantity - Update price quantity
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
Metadata
Release files for speakeasy-billing 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| speakeasy-billing-0.5.0.tar.gz | 94.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| speakeasy_billing-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 291.0 kB
Release files / speakeasy-billing-0.5.0.tar.gz
| Download URL | speakeasy-billing-0.5.0.tar.gz |
|---|---|
| Size | 94.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4984d31cab640b07e454bed1422d7eeb8a216b6d37a4f2326dd360d190066c77
|
|
BLAKE2b-256 checksum How to use checksums |
70ac01291b5c12b02b0b0b991607b858276256681e3d85902ffbbe9f24830d61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / speakeasy_billing-0.5.0-py3-none-any.whl
| Download URL | speakeasy_billing-0.5.0-py3-none-any.whl |
|---|---|
| Size | 196.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68aca774029568e215f856ff3c59397f4d634bac27056d3a05f0f6779d6af7f6
|
|
BLAKE2b-256 checksum How to use checksums |
71a1068c4124806ca282afaeef86f8984500e4a73f0474adaa9dac1a41dd0c7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for speakeasy-billing 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.