Skip to content

Commit b0eba02

Browse files
authored
Merge pull request #12 from speakeasy-sdks/speakeasy-sdk-regen-1683705879
chore: speakeasy sdk regeneration - Generate
2 parents 9b1c0cf + 1a1cd81 commit b0eba02

File tree

16 files changed

+827
-1043
lines changed

16 files changed

+827
-1043
lines changed

RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,12 @@ Based on:
162162
- OpenAPI Doc 1.0 ./openapi/openapi.yaml
163163
- Speakeasy CLI 1.29.2 (2.26.2) https://github.com/speakeasy-api/speakeasy
164164
### Releases
165-
- [PyPI v0.9.2] https://pypi.org/project/orb-billing/0.9.2 - .
165+
- [PyPI v0.9.2] https://pypi.org/project/orb-billing/0.9.2 - .
166+
167+
## 2023-05-10 08:04:38
168+
### Changes
169+
Based on:
170+
- OpenAPI Doc 1.0 ./openapi/openapi.yaml
171+
- Speakeasy CLI 1.29.2 (2.26.2) https://github.com/speakeasy-api/speakeasy
172+
### Releases
173+
- [PyPI v0.9.3] https://pypi.org/project/orb-billing/0.9.3 - .

docs/credits/README.md

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -80,20 +80,16 @@ s = orb.Orb(
8080
),
8181
)
8282

83-
req = operations.PostCustomersCustomerIDCreditsLedgerEntryRequest(
84-
request_body=operations.PostCustomersCustomerIDCreditsLedgerEntryRequestBody(
85-
amount=3864.89,
86-
block_id='hic',
87-
description='saepe',
88-
entry_type=operations.PostCustomersCustomerIDCreditsLedgerEntryRequestBodyEntryTypeEnum.EXPIRATION_CHANGE,
89-
expiry_date=dateutil.parser.parse('2023-01-01').date(),
90-
per_unit_cost_basis='in',
91-
target_expiry_date=dateutil.parser.parse('2023-02-01').date(),
92-
),
93-
customer_id='corporis',
94-
)
9583

96-
res = s.credits.get(req)
84+
res = s.credits.get('laboriosam', operations.PostCustomersCustomerIDCreditsLedgerEntryRequestBody(
85+
amount=9437.49,
86+
block_id='saepe',
87+
description='fuga',
88+
entry_type=operations.PostCustomersCustomerIDCreditsLedgerEntryRequestBodyEntryTypeEnum.DECREMENT,
89+
expiry_date=dateutil.parser.parse('2023-01-01').date(),
90+
per_unit_cost_basis='corporis',
91+
target_expiry_date=dateutil.parser.parse('2023-02-01').date(),
92+
))
9793

9894
if res.credit_ledger_entry is not None:
9995
# handle response
@@ -119,11 +115,8 @@ s = orb.Orb(
119115
),
120116
)
121117

122-
req = operations.GetCustomersCustomerIDCreditsRequest(
123-
customer_id='iste',
124-
)
125118

126-
res = s.credits.get_credits(req)
119+
res = s.credits.get_credits('iste')
127120

128121
if res.get_customers_customer_id_credits_200_application_json_object is not None:
129122
# handle response
@@ -173,14 +166,8 @@ s = orb.Orb(
173166
),
174167
)
175168

176-
req = operations.GetCustomersCustomerIDCreditsLedgerRequest(
177-
customer_id='iure',
178-
entry_status=operations.GetCustomersCustomerIDCreditsLedgerEntryStatusEnum.PENDING,
179-
entry_type=operations.GetCustomersCustomerIDCreditsLedgerEntryTypeEnum.EXPIRATION_CHANGE,
180-
minimum_amount=992.8,
181-
)
182169

183-
res = s.credits.get_credits_ledger(req)
170+
res = s.credits.get_credits_ledger('iure', operations.GetCustomersCustomerIDCreditsLedgerEntryStatusEnum.PENDING, operations.GetCustomersCustomerIDCreditsLedgerEntryTypeEnum.EXPIRATION_CHANGE, 992.8)
184171

185172
if res.get_customers_customer_id_credits_ledger_200_application_json_object is not None:
186173
# handle response

docs/customer/README.md

Lines changed: 99 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,8 @@ s = orb.Orb(
9393
),
9494
)
9595

96-
req = operations.GetCustomersCustomerIDRequest(
97-
customer_id='harum',
98-
)
9996

100-
res = s.customer.get(req)
97+
res = s.customer.get('harum')
10198

10299
if res.customer is not None:
103100
# handle response
@@ -131,11 +128,8 @@ s = orb.Orb(
131128
),
132129
)
133130

134-
req = operations.GetCustomersCustomerIDBalanceTransactionsRequest(
135-
customer_id='enim',
136-
)
137131

138-
res = s.customer.get_balance(req)
132+
res = s.customer.get_balance('enim')
139133

140134
if res.get_customers_customer_id_balance_transactions_200_application_json_object is not None:
141135
# handle response
@@ -159,11 +153,8 @@ s = orb.Orb(
159153
),
160154
)
161155

162-
req = operations.GetCustomersExternalCustomerIDExternalCustomerIDRequest(
163-
external_customer_id='accusamus',
164-
)
165156

166-
res = s.customer.get_by_external_id(req)
157+
res = s.customer.get_by_external_id('accusamus')
167158

168159
if res.customer is not None:
169160
# handle response
@@ -342,33 +333,29 @@ s = orb.Orb(
342333
),
343334
)
344335

345-
req = operations.PutCustomersCustomerIDRequest(
346-
request_body=operations.PutCustomersCustomerIDRequestBody(
347-
billing_address=operations.PutCustomersCustomerIDRequestBodyBillingAddress(
348-
city='Samanthaboro',
349-
country='US',
350-
line1='praesentium',
351-
line2='rem',
352-
postal_code='09509-2306',
353-
state='quibusdam',
354-
),
355-
email='Luther.Rau26@gmail.com',
356-
name='Beth McGlynn Sr.',
357-
payment_provider=operations.PutCustomersCustomerIDRequestBodyPaymentProviderEnum.LESS_THAN_NIL_GREATER_THAN_,
358-
payment_provider_id='ipsam',
359-
shipping_address=operations.PutCustomersCustomerIDRequestBodyShippingAddress(
360-
city='East Marianostead',
361-
country='US',
362-
line1='tempora',
363-
line2='facilis',
364-
postal_code='29427-5358',
365-
state='sint',
366-
),
367-
),
368-
customer_id='officia',
369-
)
370336

371-
res = s.customer.update(req)
337+
res = s.customer.update('excepturi', operations.PutCustomersCustomerIDRequestBody(
338+
billing_address=operations.PutCustomersCustomerIDRequestBodyBillingAddress(
339+
city='East Orange',
340+
country='US',
341+
line1='praesentium',
342+
line2='rem',
343+
postal_code='09509-2306',
344+
state='quibusdam',
345+
),
346+
email='Luther.Rau26@gmail.com',
347+
name='Beth McGlynn Sr.',
348+
payment_provider=operations.PutCustomersCustomerIDRequestBodyPaymentProviderEnum.LESS_THAN_NIL_GREATER_THAN_,
349+
payment_provider_id='ipsam',
350+
shipping_address=operations.PutCustomersCustomerIDRequestBodyShippingAddress(
351+
city='East Marianostead',
352+
country='US',
353+
line1='tempora',
354+
line2='facilis',
355+
postal_code='29427-5358',
356+
state='sint',
357+
),
358+
))
372359

373360
if res.customer is not None:
374361
# handle response
@@ -392,33 +379,29 @@ s = orb.Orb(
392379
),
393380
)
394381

395-
req = operations.PutCustomersExternalCustomerIDExternalCustomerIDRequest(
396-
request_body=operations.PutCustomersExternalCustomerIDExternalCustomerIDRequestBody(
397-
billing_address=operations.PutCustomersExternalCustomerIDExternalCustomerIDRequestBodyBillingAddress(
398-
city='Fort Veda',
399-
country='US',
400-
line1='dolorum',
401-
line2='in',
402-
postal_code='89612',
403-
state='cumque',
404-
),
405-
email='Hans_Hyatt24@hotmail.com',
406-
name='Jon Tillman',
407-
payment_provider=operations.PutCustomersExternalCustomerIDExternalCustomerIDRequestBodyPaymentProviderEnum.STRIPE_INVOICE,
408-
payment_provider_id='nam',
409-
shipping_address=operations.PutCustomersExternalCustomerIDExternalCustomerIDRequestBodyShippingAddress(
410-
city='Kuvalisstad',
411-
country='US',
412-
line1='sapiente',
413-
line2='amet',
414-
postal_code='34664-0437',
415-
state='id',
416-
),
417-
),
418-
external_customer_id='labore',
419-
)
420382

421-
res = s.customer.update_by_external_id(req)
383+
res = s.customer.update_by_external_id('officia', operations.PutCustomersExternalCustomerIDExternalCustomerIDRequestBody(
384+
billing_address=operations.PutCustomersExternalCustomerIDExternalCustomerIDRequestBodyBillingAddress(
385+
city='Fort Veda',
386+
country='US',
387+
line1='dolorum',
388+
line2='in',
389+
postal_code='89612',
390+
state='cumque',
391+
),
392+
email='Hans_Hyatt24@hotmail.com',
393+
name='Jon Tillman',
394+
payment_provider=operations.PutCustomersExternalCustomerIDExternalCustomerIDRequestBodyPaymentProviderEnum.STRIPE_INVOICE,
395+
payment_provider_id='nam',
396+
shipping_address=operations.PutCustomersExternalCustomerIDExternalCustomerIDRequestBodyShippingAddress(
397+
city='Kuvalisstad',
398+
country='US',
399+
line1='sapiente',
400+
line2='amet',
401+
postal_code='34664-0437',
402+
state='id',
403+
),
404+
))
422405

423406
if res.customer is not None:
424407
# handle response
@@ -494,34 +477,28 @@ s = orb.Orb(
494477
),
495478
)
496479

497-
req = operations.PatchCustomersCustomerIDUsageRequest(
498-
request_body=operations.PatchCustomersCustomerIDUsageRequestBody(
499-
events=[
500-
operations.PatchCustomersCustomerIDUsageRequestBodyEvents(
501-
event_name='suscipit',
502-
properties={
503-
"nobis": 'eum',
504-
"vero": 'aspernatur',
505-
"architecto": 'magnam',
506-
},
507-
timestamp='et',
508-
),
509-
operations.PatchCustomersCustomerIDUsageRequestBodyEvents(
510-
event_name='excepturi',
511-
properties={
512-
"provident": 'quos',
513-
"sint": 'accusantium',
514-
},
515-
timestamp='mollitia',
516-
),
517-
],
518-
),
519-
customer_id='reiciendis',
520-
timeframe_end=dateutil.parser.isoparse('2022-05-11T17:46:20Z'),
521-
timeframe_start=dateutil.parser.isoparse('2022-05-11T17:46:20Z'),
522-
)
523480

524-
res = s.customer.update_usage(req)
481+
res = s.customer.update_usage('labore', dateutil.parser.isoparse('2022-05-11T17:46:20Z'), dateutil.parser.isoparse('2022-05-11T17:46:20Z'), operations.PatchCustomersCustomerIDUsageRequestBody(
482+
events=[
483+
operations.PatchCustomersCustomerIDUsageRequestBodyEvents(
484+
event_name='suscipit',
485+
properties={
486+
"nobis": 'eum',
487+
"vero": 'aspernatur',
488+
"architecto": 'magnam',
489+
},
490+
timestamp='et',
491+
),
492+
operations.PatchCustomersCustomerIDUsageRequestBodyEvents(
493+
event_name='excepturi',
494+
properties={
495+
"provident": 'quos',
496+
"sint": 'accusantium',
497+
},
498+
timestamp='mollitia',
499+
),
500+
],
501+
))
525502

526503
if res.patch_customers_customer_id_usage_200_application_json_object is not None:
527504
# handle response
@@ -544,44 +521,38 @@ s = orb.Orb(
544521
),
545522
)
546523

547-
req = operations.PatchExternalCustomersCustomerIDUsageRequest(
548-
request_body=operations.PatchExternalCustomersCustomerIDUsageRequestBody(
549-
events=[
550-
operations.PatchExternalCustomersCustomerIDUsageRequestBodyEvents(
551-
event_name='ad',
552-
properties={
553-
"dolor": 'necessitatibus',
554-
"odit": 'nemo',
555-
},
556-
timestamp='quasi',
557-
),
558-
operations.PatchExternalCustomersCustomerIDUsageRequestBodyEvents(
559-
event_name='iure',
560-
properties={
561-
"debitis": 'eius',
562-
"maxime": 'deleniti',
563-
"facilis": 'in',
564-
"architecto": 'architecto',
565-
},
566-
timestamp='repudiandae',
567-
),
568-
operations.PatchExternalCustomersCustomerIDUsageRequestBodyEvents(
569-
event_name='ullam',
570-
properties={
571-
"nihil": 'repellat',
572-
"quibusdam": 'sed',
573-
"saepe": 'pariatur',
574-
},
575-
timestamp='accusantium',
576-
),
577-
],
578-
),
579-
external_customer_id='consequuntur',
580-
timeframe_end=dateutil.parser.isoparse('2022-05-11T17:46:20Z'),
581-
timeframe_start=dateutil.parser.isoparse('2022-05-11T17:46:20Z'),
582-
)
583524

584-
res = s.customer.update_usage_by_external_id(req)
525+
res = s.customer.update_usage_by_external_id('reiciendis', dateutil.parser.isoparse('2022-05-11T17:46:20Z'), dateutil.parser.isoparse('2022-05-11T17:46:20Z'), operations.PatchExternalCustomersCustomerIDUsageRequestBody(
526+
events=[
527+
operations.PatchExternalCustomersCustomerIDUsageRequestBodyEvents(
528+
event_name='ad',
529+
properties={
530+
"dolor": 'necessitatibus',
531+
"odit": 'nemo',
532+
},
533+
timestamp='quasi',
534+
),
535+
operations.PatchExternalCustomersCustomerIDUsageRequestBodyEvents(
536+
event_name='iure',
537+
properties={
538+
"debitis": 'eius',
539+
"maxime": 'deleniti',
540+
"facilis": 'in',
541+
"architecto": 'architecto',
542+
},
543+
timestamp='repudiandae',
544+
),
545+
operations.PatchExternalCustomersCustomerIDUsageRequestBodyEvents(
546+
event_name='ullam',
547+
properties={
548+
"nihil": 'repellat',
549+
"quibusdam": 'sed',
550+
"saepe": 'pariatur',
551+
},
552+
timestamp='accusantium',
553+
),
554+
],
555+
))
585556

586557
if res.patch_external_customers_customer_id_usage_200_application_json_object is not None:
587558
# handle response

0 commit comments

Comments
 (0)