@@ -20,47 +20,18 @@ pip install orb-billing
2020<!-- Start SDK Example Usage -->
2121``` python
2222import orb
23- import dateutil.parser
24- from orb.models import shared
23+
2524
2625s = orb.Orb(
2726 security = shared.Security(
28- bearer_auth = " YOUR_BEARER_TOKEN_HERE" ,
27+ api_key_auth = " YOUR_BEARER_TOKEN_HERE" ,
2928 ),
3029)
3130
32- req = shared.Customer(
33- balance = ' 33.00' ,
34- billing_address = shared.BillingAddress(
35- city = ' Laruecester' ,
36- country = ' US' ,
37- line1 = ' quibusdam' ,
38- line2 = ' unde' ,
39- postal_code = ' 58466-3428' ,
40- state = ' ipsa' ,
41- ),
42- created_at = dateutil.parser.isoparse(' 2022-03-08T10:35:32.561Z' ),
43- currency = ' suscipit' ,
44- email = ' Paxton.Schulist@yahoo.com' ,
45- external_customer_id = ' excepturi' ,
46- id = ' 6ed151a0-5dfc-42dd-b7cc-78ca1ba928fc' ,
47- name = ' Jack Johns' ,
48- payment_provider = shared.CustomerPaymentProviderEnum.QUICKBOOKS ,
49- payment_provider_id = ' impedit' ,
50- shipping_address = shared.ShippingAddress(
51- city = ' Klockoberg' ,
52- country = ' US' ,
53- line1 = ' excepturi' ,
54- line2 = ' aspernatur' ,
55- postal_code = ' 36162' ,
56- state = ' natus' ,
57- ),
58- timezone = ' America/Los_Angeles' ,
59- )
6031
61- res = s.customer.create(req )
32+ res = s.availability.ping( )
6233
63- if res.customer is not None :
34+ if res.ping_200_application_json_object is not None :
6435 # handle response
6536```
6637<!-- End SDK Example Usage -->
@@ -73,56 +44,81 @@ if res.customer is not None:
7344
7445* [ ping] ( docs/availability/README.md#ping ) - Check availability
7546
76- ### [ credits] ( docs/credits/README.md )
47+ ### [ coupon] ( docs/coupon/README.md )
48+
49+ * [ archive] ( docs/coupon/README.md#archive ) - Archive a coupon
50+ * [ create] ( docs/coupon/README.md#create ) - Create a coupon
51+ * [ fetch] ( docs/coupon/README.md#fetch ) - Retrieve a coupon
52+ * [ list] ( docs/coupon/README.md#list ) - List coupons
53+ * [ list_subscriptions] ( docs/coupon/README.md#list_subscriptions ) - List subscriptions for a coupon
54+
55+ ### [ credit] ( docs/credit/README.md )
56+
57+ * [ add_by_external_id] ( docs/credit/README.md#add_by_external_id ) - Add credit ledger entry by external customer ID
58+ * [ create] ( docs/credit/README.md#create ) - Add credit ledger entry
59+ * [ fetch] ( docs/credit/README.md#fetch ) - Retrieve credit balance
60+ * [ fetch_by_external_id] ( docs/credit/README.md#fetch_by_external_id ) - Retrieve credit balance by external customer ID
61+ * [ fetch_ledger] ( docs/credit/README.md#fetch_ledger ) - View credits ledger
62+ * [ fetch_ledger_by_external_id] ( docs/credit/README.md#fetch_ledger_by_external_id ) - View credits ledger by external customer ID
63+
64+ ### [ credit_note] ( docs/creditnote/README.md )
7765
78- * [ get] ( docs/credits/README.md#get ) - Add credit ledger entry
79- * [ get_credits] ( docs/credits/README.md#get_credits ) - Retrieve credit balance
80- * [ get_credits_ledger] ( docs/credits/README.md#get_credits_ledger ) - View credits ledger
66+ * [ list] ( docs/creditnote/README.md#list ) - List credit notes
8167
8268### [ customer] ( docs/customer/README.md )
8369
70+ * [ amend] ( docs/customer/README.md#amend ) - Amend customer usage
71+ * [ amend_by_external_id] ( docs/customer/README.md#amend_by_external_id ) - Amend customer usage by external ID
8472* [ create] ( docs/customer/README.md#create ) - Create customer
85- * [ get] ( docs/customer/README.md#get ) - Retrieve a customer
86- * [ get_balance] ( docs/customer/README.md#get_balance ) - Get customer balance transactions
87- * [ get_by_external_id] ( docs/customer/README.md#get_by_external_id ) - Retrieve a customer by external ID
88- * [ get_costs] ( docs/customer/README.md#get_costs ) - View customer costs
89- * [ get_costs_by_external_id] ( docs/customer/README.md#get_costs_by_external_id ) - View customer costs by external customer ID
73+ * [ create_transaction] ( docs/customer/README.md#create_transaction ) - Create a customer balance transaction
74+ * [ delete] ( docs/customer/README.md#delete ) - Delete a customer
75+ * [ fetch] ( docs/customer/README.md#fetch ) - Retrieve a customer
76+ * [ fetch_by_external_id] ( docs/customer/README.md#fetch_by_external_id ) - Retrieve a customer by external ID
77+ * [ fetch_costs] ( docs/customer/README.md#fetch_costs ) - View customer costs
78+ * [ fetch_costs_by_external_id] ( docs/customer/README.md#fetch_costs_by_external_id ) - View customer costs by external customer ID
79+ * [ fetch_transactions] ( docs/customer/README.md#fetch_transactions ) - Get customer balance transactions
9080* [ list] ( docs/customer/README.md#list ) - List customers
91- * [ update] ( docs/customer/README.md#update ) - Update customer
9281* [ update_by_external_id] ( docs/customer/README.md#update_by_external_id ) - Update a customer by external ID
93- * [ update_usage] ( docs/customer/README.md#update_usage ) - Amend customer usage
94- * [ update_usage_by_external_id] ( docs/customer/README.md#update_usage_by_external_id ) - Amend customer usage by external ID
82+ * [ update_customer] ( docs/customer/README.md#update_customer ) - Update customer
9583
9684### [ event] ( docs/event/README.md )
9785
98- * [ deprecate] ( docs/event/README.md#deprecate ) - Deprecate single event
86+ * [ amend] ( docs/event/README.md#amend ) - Amend single event
87+ * [ close_backfill] ( docs/event/README.md#close_backfill ) - Close a backfill
88+ * [ create] ( docs/event/README.md#create ) - Create a backfill
89+ * [ deprecate_event] ( docs/event/README.md#deprecate_event ) - Deprecate single event
9990* [ ingest] ( docs/event/README.md#ingest ) - Ingest events
91+ * [ list_backfills] ( docs/event/README.md#list_backfills ) - List backfills
92+ * [ revert_backfill] ( docs/event/README.md#revert_backfill ) - Revert a backfill
10093* [ search] ( docs/event/README.md#search ) - Search events
101- * [ update] ( docs/event/README.md#update ) - Amend single event
10294
10395### [ invoice] ( docs/invoice/README.md )
10496
105- * [ get] ( docs/invoice/README.md#get ) - Retrieve an Invoice
106- * [ get_upcoming] ( docs/invoice/README.md#get_upcoming ) - Retrieve upcoming invoice
97+ * [ create] ( docs/invoice/README.md#create ) - Create invoice line item
98+ * [ fetch] ( docs/invoice/README.md#fetch ) - Retrieve an Invoice
99+ * [ fetch_upcoming] ( docs/invoice/README.md#fetch_upcoming ) - Retrieve upcoming invoice
107100* [ list] ( docs/invoice/README.md#list ) - List invoices
101+ * [ void] ( docs/invoice/README.md#void ) - Void an invoice
108102
109103### [ plan] ( docs/plan/README.md )
110104
111- * [ get ] ( docs/plan/README.md#get ) - Retrieve a plan
105+ * [ fetch ] ( docs/plan/README.md#fetch ) - Retrieve a plan
112106* [ get_by_external_id] ( docs/plan/README.md#get_by_external_id ) - Retrieve a plan by external plan ID
113107* [ list] ( docs/plan/README.md#list ) - List plans
114108
115109### [ subscription] ( docs/subscription/README.md )
116110
117111* [ cancel] ( docs/subscription/README.md#cancel ) - Cancel subscription
118- * [ change_schedule] ( docs/subscription/README.md#change_schedule ) - Schedule plan change
119112* [ create] ( docs/subscription/README.md#create ) - Create subscription
120- * [ get ] ( docs/subscription/README.md#get ) - Retrieve a subscription
121- * [ get_cost ] ( docs/subscription/README.md#get_cost ) - View subscription costs
122- * [ get_schedule ] ( docs/subscription/README.md#get_schedule ) - View subscription schedule
123- * [ get_usage ] ( docs/subscription/README.md#get_usage ) - View subscription usage
113+ * [ fetch ] ( docs/subscription/README.md#fetch ) - Retrieve a subscription
114+ * [ fetch_costs ] ( docs/subscription/README.md#fetch_costs ) - View subscription costs
115+ * [ fetch_schedule ] ( docs/subscription/README.md#fetch_schedule ) - View subscription schedule
116+ * [ fetch_usage ] ( docs/subscription/README.md#fetch_usage ) - View subscription usage
124117* [ list] ( docs/subscription/README.md#list ) - List subscriptions
125- * [ unschedule] ( docs/subscription/README.md#unschedule ) - Unschedule pending plan changes
118+ * [ schedule_plan_change] ( docs/subscription/README.md#schedule_plan_change ) - Schedule plan change
119+ * [ unschedule_cancellation] ( docs/subscription/README.md#unschedule_cancellation ) - Unschedule pending cancellation
120+ * [ unschedule_plan_change] ( docs/subscription/README.md#unschedule_plan_change ) - Unschedule pending plan changes
121+ * [ update_fixed_fee_quantity] ( docs/subscription/README.md#update_fixed_fee_quantity ) - Update fixed fee quantity
126122<!-- End SDK Available Operations -->
127123
128124### Maturity
0 commit comments