Skip to content

Commit e55463e

Browse files
authored
Merge pull request #19 from speakeasy-sdks/speakeasy-sdk-regen-1685629591
chore: speakeasy sdk regeneration - Generate
2 parents 4fd0774 + 71d479f commit e55463e

File tree

82 files changed

+2350
-2547
lines changed

Some content is hidden

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

82 files changed

+2350
-2547
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
venv/
2+
src/*.egg-info/
3+
__pycache__/
4+
.pytest_cache/
5+
.python-version`

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ s = orb.Orb(
3131

3232
res = s.availability.ping()
3333

34-
if res.ping_200_application_json_object is not None:
34+
if res.availability is not None:
3535
# handle response
3636
```
3737
<!-- End SDK Example Usage -->

RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,4 +202,12 @@ Based on:
202202
- OpenAPI Doc 1.0 ./openapi/openapi.yaml
203203
- Speakeasy CLI 1.39.0 (2.32.7) https://github.com/speakeasy-api/speakeasy
204204
### Releases
205-
- [PyPI v0.11.0] https://pypi.org/project/orb-billing/0.11.0 - .
205+
- [PyPI v0.11.0] https://pypi.org/project/orb-billing/0.11.0 - .
206+
207+
## 2023-06-01 14:26:29
208+
### Changes
209+
Based on:
210+
- OpenAPI Doc 1.0 ./openapi/openapi.yaml
211+
- Speakeasy CLI 1.40.3 (2.34.7) https://github.com/speakeasy-api/speakeasy
212+
### Releases
213+
- [PyPI v0.12.0] https://pypi.org/project/orb-billing/0.12.0 - .

USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ s = orb.Orb(
1212

1313
res = s.availability.ping()
1414

15-
if res.ping_200_application_json_object is not None:
15+
if res.availability is not None:
1616
# handle response
1717
```
1818
<!-- End SDK Example Usage -->

docs/availability/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ s = orb.Orb(
2929

3030
res = s.availability.ping()
3131

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

docs/coupon/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ if res.coupon is not None:
102102

103103
## list
104104

105-
This endpoint returns a list of all [coupons](../reference/Orb-API.json/components/schemas/Coupon) for an account in a list format.
105+
This endpoint returns a list of all coupons for an account in a list format.
106106

107-
The list of coupons is ordered starting from the most recently created coupon. The response also includes [`pagination_metadata`](../api/pagination), which lets the caller retrieve the next page of results if they exist. More information about pagination can be found in the [Pagination-metadata schema](../reference/Orb-API.json/components/schemas/Pagination-metadata).
107+
The list of coupons is ordered starting from the most recently created coupon. The response also includes [`pagination_metadata`](../api/pagination), which lets the caller retrieve the next page of results if they exist. More information about pagination can be found in the [Pagination-metadata schema](pagination).
108108

109109
### Example Usage
110110

@@ -127,7 +127,7 @@ if res.list_coupons_200_application_json_object is not None:
127127

128128
## list_subscriptions
129129

130-
This endpoint returns a list of all subscriptions that have redeemed a given coupon as a [paginated](../api/pagination) list, ordered starting from the most recently created subscription. For a full discussion of the subscription resource, see [Subscription](../reference/Orb-API.json/components/schemas/Subscription).
130+
This endpoint returns a list of all subscriptions that have redeemed a given coupon as a [paginated](../api/pagination) list, ordered starting from the most recently created subscription. For a full discussion of the subscription resource, see [Subscription](../guides/concepts#subscription).
131131

132132
### Example Usage
133133

docs/credit/README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This endpoint's resource and semantics exactly mirror [Add credit ledger entry](
2222
```python
2323
import orb
2424
import dateutil.parser
25-
from orb.models import operations
25+
from orb.models import operations, shared
2626

2727
s = orb.Orb(
2828
security=shared.Security(
@@ -31,13 +31,13 @@ s = orb.Orb(
3131
)
3232

3333

34-
res = s.credit.add_by_external_id('porro', operations.AddLedgerEntryExternalIDRequestBody(
34+
res = s.credit.add_by_external_id('porro', shared.NewCreditLedgerEntry(
3535
amount=6788.8,
3636
block_id='dicta',
3737
description='nam',
38-
entry_type=operations.AddLedgerEntryExternalIDRequestBodyEntryType.DECREMENT,
38+
entry_type=shared.NewCreditLedgerEntryEntryType.DECREMENT,
3939
expiry_date=dateutil.parser.parse('2023-01-01').date(),
40-
invoice_settings=operations.AddLedgerEntryExternalIDRequestBodyInvoiceSettings(
40+
invoice_settings=shared.NewCreditLedgerEntryInvoiceSettings(
4141
auto_collection=False,
4242
memo='occaecati',
4343
net_terms=1433.53,
@@ -120,7 +120,7 @@ The following snippet illustrates a sample request body to extend the expiration
120120
```python
121121
import orb
122122
import dateutil.parser
123-
from orb.models import operations
123+
from orb.models import operations, shared
124124

125125
s = orb.Orb(
126126
security=shared.Security(
@@ -129,13 +129,13 @@ s = orb.Orb(
129129
)
130130

131131

132-
res = s.credit.create('qui', operations.CreateLedgerEntryRequestBody(
132+
res = s.credit.create('qui', shared.NewCreditLedgerEntry(
133133
amount=7742.34,
134134
block_id='cum',
135135
description='esse',
136-
entry_type=operations.CreateLedgerEntryRequestBodyEntryType.INCREMENT,
136+
entry_type=shared.NewCreditLedgerEntryEntryType.INCREMENT,
137137
expiry_date=dateutil.parser.parse('2023-01-01').date(),
138-
invoice_settings=operations.CreateLedgerEntryRequestBodyInvoiceSettings(
138+
invoice_settings=shared.NewCreditLedgerEntryInvoiceSettings(
139139
auto_collection=False,
140140
memo='excepturi',
141141
net_terms=1352.18,
@@ -174,7 +174,7 @@ s = orb.Orb(
174174

175175
res = s.credit.fetch('iste')
176176

177-
if res.fetch_customer_credits_200_application_json_object is not None:
177+
if res.credits is not None:
178178
# handle response
179179
```
180180

@@ -197,7 +197,7 @@ s = orb.Orb(
197197

198198
res = s.credit.fetch_by_external_id('dolor')
199199

200-
if res.fetch_customer_credits_external_id_200_application_json_object is not None:
200+
if res.credits is not None:
201201
# handle response
202202
```
203203

@@ -239,7 +239,7 @@ When a set of credits expire on pre-set expiration date, the customer's balance
239239

240240
```python
241241
import orb
242-
from orb.models import operations
242+
from orb.models import operations, shared
243243

244244
s = orb.Orb(
245245
security=shared.Security(
@@ -248,9 +248,9 @@ s = orb.Orb(
248248
)
249249

250250

251-
res = s.credit.fetch_ledger('natus', operations.FetchCustomerCreditsLedgerEntryStatus.COMMITTED, operations.FetchCustomerCreditsLedgerEntryType.CREDIT_BLOCK_EXPIRY, 9025.99)
251+
res = s.credit.fetch_ledger('natus', shared.EntryStatus.COMMITTED, shared.EntryType.CREDIT_BLOCK_EXPIRY, 9025.99)
252252

253-
if res.fetch_customer_credits_ledger_200_application_json_object is not None:
253+
if res.credit_ledger_entries is not None:
254254
# handle response
255255
```
256256

@@ -262,7 +262,7 @@ This endpoint's resource and semantics exactly mirror [View credits ledger](fetc
262262

263263
```python
264264
import orb
265-
from orb.models import operations
265+
from orb.models import operations, shared
266266

267267
s = orb.Orb(
268268
security=shared.Security(
@@ -271,8 +271,8 @@ s = orb.Orb(
271271
)
272272

273273

274-
res = s.credit.fetch_ledger_by_external_id('fuga', operations.FetchCustomerCreditsLedgerExternalIDEntryStatus.COMMITTED, operations.FetchCustomerCreditsLedgerExternalIDEntryType.DECREMENT, 6130.64)
274+
res = s.credit.fetch_ledger_by_external_id('fuga', shared.EntryStatus.COMMITTED, shared.EntryType.DECREMENT, 6130.64)
275275

276-
if res.fetch_customer_credits_ledger_external_id_200_application_json_object is not None:
276+
if res.credit_ledger_entries is not None:
277277
# handle response
278278
```

docs/customer/README.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ if res.amend_usage_external_customer_id_200_application_json_object is not None:
163163

164164
## create
165165

166-
This operation is used to create an Orb customer, who is party to the core billing relationship. See [Customer](../reference/Orb-API.json/components/schemas/Customer) for an overview of the customer resource.
166+
This operation is used to create an Orb customer, who is party to the core billing relationship. See [Customer](../guides/concepts#customer) for an overview of the customer resource.
167167

168168
This endpoint is critical in the following Orb functionality:
169169
* Automated charges can be configured by setting `payment_provider` and `payment_provider_id` to automatically issue invoices
@@ -174,15 +174,15 @@ This endpoint is critical in the following Orb functionality:
174174

175175
```python
176176
import orb
177-
from orb.models import operations, shared
177+
from orb.models import shared
178178

179179
s = orb.Orb(
180180
security=shared.Security(
181181
api_key_auth="YOUR_BEARER_TOKEN_HERE",
182182
),
183183
)
184184

185-
req = operations.CreateCustomerRequestBody(
185+
req = shared.NewCustomer(
186186
auto_collection=False,
187187
billing_address=shared.BillingAddress(
188188
city='North Marguerite',
@@ -202,7 +202,7 @@ req = operations.CreateCustomerRequestBody(
202202
"cum": 'perferendis',
203203
},
204204
name='Bessie Grady II',
205-
payment_provider=operations.CreateCustomerRequestBodyPaymentProvider.BILL_COM,
205+
payment_provider=shared.NewCustomerPaymentProvider.BILL_COM,
206206
payment_provider_id='iusto',
207207
shipping_address=shared.ShippingAddress(
208208
city='Lake Emilieside',
@@ -228,7 +228,7 @@ if res.customer is not None:
228228

229229
## create_transaction
230230

231-
Creates an immutable balance transaction that updates the customer's balance and returns back the newly created [transaction](../reference/Orb-API.json/components/schemas/Customer-balance-transaction).
231+
Creates an immutable balance transaction that updates the customer's balance and returns back the newly created transaction.
232232

233233
### Example Usage
234234

@@ -404,7 +404,7 @@ When a price uses matrix pricing, it's important to view costs grouped by those
404404
```python
405405
import orb
406406
import dateutil.parser
407-
from orb.models import operations
407+
from orb.models import operations, shared
408408

409409
s = orb.Orb(
410410
security=shared.Security(
@@ -417,12 +417,12 @@ req = operations.FetchCustomerCostsRequest(
417417
group_by='consequatur',
418418
timeframe_end='2022-03-01T05:00:00Z',
419419
timeframe_start=dateutil.parser.isoparse('2022-02-01T05:00:00Z'),
420-
view_mode=operations.FetchCustomerCostsViewMode.CUMULATIVE,
420+
view_mode=shared.ViewMode.CUMULATIVE,
421421
)
422422

423423
res = s.customer.fetch_costs(req)
424424

425-
if res.fetch_customer_costs_200_application_json_object is not None:
425+
if res.customer_costs is not None:
426426
# handle response
427427
```
428428

@@ -435,7 +435,7 @@ This endpoint's resource and semantics exactly mirror [View customer costs](fetc
435435
```python
436436
import orb
437437
import dateutil.parser
438-
from orb.models import operations
438+
from orb.models import operations, shared
439439

440440
s = orb.Orb(
441441
security=shared.Security(
@@ -448,12 +448,12 @@ req = operations.FetchCustomerCostsExternalIDRequest(
448448
group_by='explicabo',
449449
timeframe_end='2022-03-01T05:00:00Z',
450450
timeframe_start=dateutil.parser.isoparse('2022-02-01T05:00:00Z'),
451-
view_mode=operations.FetchCustomerCostsExternalIDViewMode.CUMULATIVE,
451+
view_mode=shared.ViewMode.CUMULATIVE,
452452
)
453453

454454
res = s.customer.fetch_costs_by_external_id(req)
455455

456-
if res.fetch_customer_costs_external_id_200_application_json_object is not None:
456+
if res.customer_costs is not None:
457457
# handle response
458458
```
459459

@@ -498,7 +498,7 @@ if res.list_balance_transactions_200_application_json_object is not None:
498498

499499
This endpoint returns a list of all customers for an account. The list of customers is ordered starting from the most recently created customer. This endpoint follows Orb's [standardized pagination format](../api/pagination).
500500

501-
See [Customer](../reference/Orb-API.json/components/schemas/Customer) for an overview of the customer model.
501+
See [Customer](../guides/concepts#customer) for an overview of the customer model.
502502

503503
### Example Usage
504504

@@ -515,7 +515,7 @@ s = orb.Orb(
515515

516516
res = s.customer.list()
517517

518-
if res.list_customers_200_application_json_object is not None:
518+
if res.customers is not None:
519519
# handle response
520520
```
521521

@@ -584,7 +584,7 @@ s = orb.Orb(
584584
)
585585

586586

587-
res = s.customer.update_customer('facere', operations.UpdateCustomerRequestBody(
587+
res = s.customer.update_customer('facere', shared.NewCustomer(
588588
auto_collection=False,
589589
billing_address=shared.BillingAddress(
590590
city='Graciechester',
@@ -594,29 +594,29 @@ res = s.customer.update_customer('facere', operations.UpdateCustomerRequestBody(
594594
postal_code='38965-7655',
595595
state='sapiente',
596596
),
597-
email='Luis_Huels@gmail.com',
598-
email_delivery=False,
597+
currency='amet',
598+
email='Golda_Kassulke@yahoo.com',
599+
external_customer_id='molestiae',
599600
metadata={
600-
"molestiae": 'perferendis',
601601
"nihil": 'magnam',
602-
"distinctio": 'id',
603602
},
604-
name='Jamie Hoppe',
605-
payment_provider=operations.UpdateCustomerRequestBodyPaymentProvider.BILL_COM,
606-
payment_provider_id='vero',
603+
name='Alfonso Green',
604+
payment_provider=shared.NewCustomerPaymentProvider.STRIPE_INVOICE,
605+
payment_provider_id='nobis',
607606
shipping_address=shared.ShippingAddress(
608-
city='North Elianeland',
607+
city='Shainaville',
609608
country='US',
610-
line1='excepturi',
611-
line2='ullam',
612-
postal_code='55069-6342',
613-
state='necessitatibus',
609+
line1='architecto',
610+
line2='magnam',
611+
postal_code='53555',
612+
state='accusantium',
614613
),
615614
tax_id=shared.CustomerTaxID(
616-
country='Burundi',
617-
type='nemo',
618-
value='quasi',
615+
country='Niue',
616+
type='reiciendis',
617+
value='mollitia',
619618
),
619+
timezone='Etc/UTC',
620620
))
621621

622622
if res.customer is not None:

0 commit comments

Comments
 (0)