Skip to content

Commit c23f3f0

Browse files
authored
Merge pull request #17 from speakeasy-sdks/speakeasy-sdk-regen-1685477121
chore: speakeasy sdk regeneration - Generate
2 parents 6f96129 + c81a83d commit c23f3f0

File tree

105 files changed

+5761
-3347
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+5761
-3347
lines changed

README.md

Lines changed: 52 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -20,47 +20,18 @@ pip install orb-billing
2020
<!-- Start SDK Example Usage -->
2121
```python
2222
import orb
23-
import dateutil.parser
24-
from orb.models import shared
23+
2524

2625
s = 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

RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,12 @@ Based on:
194194
- OpenAPI Doc 1.0 ./openapi/openapi.yaml
195195
- Speakeasy CLI 1.31.1 (2.27.0) https://github.com/speakeasy-api/speakeasy
196196
### Releases
197-
- [PyPI v0.10.0] https://pypi.org/project/orb-billing/0.10.0 - .
197+
- [PyPI v0.10.0] https://pypi.org/project/orb-billing/0.10.0 - .
198+
199+
## 2023-05-30 20:05:19
200+
### Changes
201+
Based on:
202+
- OpenAPI Doc 1.0 ./openapi/openapi.yaml
203+
- Speakeasy CLI 1.39.0 (2.32.7) https://github.com/speakeasy-api/speakeasy
204+
### Releases
205+
- [PyPI v0.11.0] https://pypi.org/project/orb-billing/0.11.0 - .

USAGE.md

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,18 @@
11
<!-- Start SDK Example Usage -->
22
```python
33
import orb
4-
import dateutil.parser
5-
from orb.models import shared
4+
65

76
s = orb.Orb(
87
security=shared.Security(
9-
bearer_auth="YOUR_BEARER_TOKEN_HERE",
8+
api_key_auth="YOUR_BEARER_TOKEN_HERE",
109
),
1110
)
1211

13-
req = shared.Customer(
14-
balance='33.00',
15-
billing_address=shared.BillingAddress(
16-
city='Laruecester',
17-
country='US',
18-
line1='quibusdam',
19-
line2='unde',
20-
postal_code='58466-3428',
21-
state='ipsa',
22-
),
23-
created_at=dateutil.parser.isoparse('2022-03-08T10:35:32.561Z'),
24-
currency='suscipit',
25-
email='Paxton.Schulist@yahoo.com',
26-
external_customer_id='excepturi',
27-
id='6ed151a0-5dfc-42dd-b7cc-78ca1ba928fc',
28-
name='Jack Johns',
29-
payment_provider=shared.CustomerPaymentProviderEnum.QUICKBOOKS,
30-
payment_provider_id='impedit',
31-
shipping_address=shared.ShippingAddress(
32-
city='Klockoberg',
33-
country='US',
34-
line1='excepturi',
35-
line2='aspernatur',
36-
postal_code='36162',
37-
state='natus',
38-
),
39-
timezone='America/Los_Angeles',
40-
)
4112

42-
res = s.customer.create(req)
13+
res = s.availability.ping()
4314

44-
if res.customer is not None:
15+
if res.ping_200_application_json_object is not None:
4516
# handle response
4617
```
4718
<!-- End SDK Example Usage -->

docs/availability/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Overview
44

5-
Actions related to API availability.
5+
The Availability resource represents a customer's availability. Availability is created when a customer's invoice is paid, and is updated when a customer's transaction is refunded.
66

77
### Available Operations
88

@@ -22,13 +22,13 @@ import orb
2222

2323
s = orb.Orb(
2424
security=shared.Security(
25-
bearer_auth="YOUR_BEARER_TOKEN_HERE",
25+
api_key_auth="YOUR_BEARER_TOKEN_HERE",
2626
),
2727
)
2828

2929

3030
res = s.availability.ping()
3131

32-
if res.get_ping_200_application_json_object is not None:
32+
if res.ping_200_application_json_object is not None:
3333
# handle response
3434
```

0 commit comments

Comments
 (0)