Skip to content

Commit 07facff

Browse files
authored
Merge pull request #25 from speakeasy-sdks/speakeasy-sdk-regen-1685646582
chore: speakeasy sdk regeneration - Generate
2 parents c98a5d4 + f60b631 commit 07facff

File tree

14 files changed

+714
-457
lines changed

14 files changed

+714
-457
lines changed

README.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,37 @@ pip install orb-billing
2020
<!-- Start SDK Example Usage -->
2121
```python
2222
import orb
23-
23+
from orb.models import shared
2424

2525
s = orb.Orb(
2626
security=shared.Security(
2727
api_key_auth="YOUR_BEARER_TOKEN_HERE",
2828
),
2929
)
3030

31+
req = shared.CouponInput(
32+
discount=shared.Discount(
33+
amount_discount='corrupti',
34+
applies_to_price_ids=[
35+
'distinctio',
36+
'quibusdam',
37+
'unde',
38+
],
39+
discount_type=shared.DiscountType.PERCENTAGE,
40+
percentage_discount=0.15,
41+
trial_amount_discount='nulla',
42+
usage_discount=5448.83,
43+
),
44+
duration_in_months=847252,
45+
id='69a674e0-f467-4cc8-b96e-d151a05dfc2d',
46+
max_redemptions=870088,
47+
redemption_code='maiores',
48+
times_redeemed=473608,
49+
)
3150

32-
res = s.availability.ping()
51+
res = s.coupon.create(req)
3352

34-
if res.availability is not None:
53+
if res.status_code == 200:
3554
# handle response
3655
```
3756
<!-- End SDK Example Usage -->

RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,4 +250,12 @@ Based on:
250250
- OpenAPI Doc 1.0 ./openapi/openapi.yaml
251251
- Speakeasy CLI 1.40.3 (2.34.7) https://github.com/speakeasy-api/speakeasy
252252
### Releases
253-
- [PyPI v0.12.5] https://pypi.org/project/orb-billing/0.12.5 - .
253+
- [PyPI v0.12.5] https://pypi.org/project/orb-billing/0.12.5 - .
254+
255+
## 2023-06-01 19:09:40
256+
### Changes
257+
Based on:
258+
- OpenAPI Doc 1.0 ./openapi/openapi.yaml
259+
- Speakeasy CLI 1.40.3 (2.34.7) https://github.com/speakeasy-api/speakeasy
260+
### Releases
261+
- [PyPI v0.12.6] https://pypi.org/project/orb-billing/0.12.6 - .

USAGE.md

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

66
s = orb.Orb(
77
security=shared.Security(
88
api_key_auth="YOUR_BEARER_TOKEN_HERE",
99
),
1010
)
1111

12+
req = shared.CouponInput(
13+
discount=shared.Discount(
14+
amount_discount='corrupti',
15+
applies_to_price_ids=[
16+
'distinctio',
17+
'quibusdam',
18+
'unde',
19+
],
20+
discount_type=shared.DiscountType.PERCENTAGE,
21+
percentage_discount=0.15,
22+
trial_amount_discount='nulla',
23+
usage_discount=5448.83,
24+
),
25+
duration_in_months=847252,
26+
id='69a674e0-f467-4cc8-b96e-d151a05dfc2d',
27+
max_redemptions=870088,
28+
redemption_code='maiores',
29+
times_redeemed=473608,
30+
)
1231

13-
res = s.availability.ping()
32+
res = s.coupon.create(req)
1433

15-
if res.availability is not None:
34+
if res.status_code == 200:
1635
# handle response
1736
```
1837
<!-- End SDK Example Usage -->

docs/coupon/README.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ s = orb.Orb(
2929
)
3030

3131

32-
res = s.coupon.archive('corrupti')
32+
res = s.coupon.archive('quod')
3333

3434
if res.coupon is not None:
3535
# handle response
@@ -53,22 +53,21 @@ s = orb.Orb(
5353

5454
req = shared.CouponInput(
5555
discount=shared.Discount(
56-
amount_discount='provident',
56+
amount_discount='quod',
5757
applies_to_price_ids=[
58-
'quibusdam',
59-
'unde',
60-
'nulla',
58+
'totam',
59+
'porro',
6160
],
6261
discount_type=shared.DiscountType.PERCENTAGE,
6362
percentage_discount=0.15,
64-
trial_amount_discount='corrupti',
65-
usage_discount=8472.52,
63+
trial_amount_discount='dolorum',
64+
usage_discount=1182.74,
6665
),
67-
duration_in_months=423655,
68-
id='9a674e0f-467c-4c87-96ed-151a05dfc2dd',
69-
max_redemptions=978619,
70-
redemption_code='molestiae',
71-
times_redeemed=799159,
66+
duration_in_months=720633,
67+
id='a928fc81-6742-4cb7-b920-5929396fea75',
68+
max_redemptions=613064,
69+
redemption_code='iure',
70+
times_redeemed=902349,
7271
)
7372

7473
res = s.coupon.create(req)
@@ -94,7 +93,7 @@ s = orb.Orb(
9493
)
9594

9695

97-
res = s.coupon.fetch('quod')
96+
res = s.coupon.fetch('quidem')
9897

9998
if res.coupon is not None:
10099
# handle response
@@ -119,7 +118,7 @@ s = orb.Orb(
119118
)
120119

121120

122-
res = s.coupon.list('esse', False)
121+
res = s.coupon.list('architecto', False)
123122

124123
if res.coupons is not None:
125124
# handle response
@@ -142,7 +141,7 @@ s = orb.Orb(
142141
)
143142

144143

145-
res = s.coupon.list_subscriptions('totam')
144+
res = s.coupon.list_subscriptions('ipsa')
146145

147146
if res.subscriptions is not None:
148147
# handle response

docs/credit/README.md

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,21 @@ s = orb.Orb(
3131
)
3232

3333

34-
res = s.credit.add_by_external_id('porro', shared.NewCreditLedgerEntry(
35-
amount=6788.8,
36-
block_id='dicta',
37-
description='nam',
38-
entry_type=shared.EntryType.EXPIRATION_CHANGE,
34+
res = s.credit.add_by_external_id('reiciendis', shared.NewCreditLedgerEntry(
35+
amount=6667.67,
36+
block_id='mollitia',
37+
description='laborum',
38+
entry_type=shared.EntryType.INCREMENT,
3939
expiry_date=dateutil.parser.parse('2023-01-01').date(),
4040
invoice_settings=shared.NewCreditLedgerEntryInvoiceSettings(
4141
auto_collection=False,
42-
memo='occaecati',
43-
net_terms=1433.53,
42+
memo='dolorem',
43+
net_terms=3581.52,
4444
),
4545
metadata={
46-
"hic": 'optio',
47-
"totam": 'beatae',
48-
"commodi": 'molestiae',
46+
"nobis": 'enim',
4947
},
50-
per_unit_cost_basis='modi',
48+
per_unit_cost_basis='omnis',
5149
target_expiry_date=dateutil.parser.parse('2023-02-01').date(),
5250
))
5351

@@ -129,21 +127,24 @@ s = orb.Orb(
129127
)
130128

131129

132-
res = s.credit.create('qui', shared.NewCreditLedgerEntry(
133-
amount=7742.34,
134-
block_id='cum',
135-
description='esse',
136-
entry_type=shared.EntryType.INCREMENT,
130+
res = s.credit.create('nemo', shared.NewCreditLedgerEntry(
131+
amount=3250.47,
132+
block_id='excepturi',
133+
description='accusantium',
134+
entry_type=shared.EntryType.DECREMENT,
137135
expiry_date=dateutil.parser.parse('2023-01-01').date(),
138136
invoice_settings=shared.NewCreditLedgerEntryInvoiceSettings(
139137
auto_collection=False,
140-
memo='excepturi',
141-
net_terms=1352.18,
138+
memo='culpa',
139+
net_terms=9883.74,
142140
),
143141
metadata={
144-
"ad": 'natus',
142+
"architecto": 'mollitia',
143+
"dolorem": 'culpa',
144+
"consequuntur": 'repellat',
145+
"mollitia": 'occaecati',
145146
},
146-
per_unit_cost_basis='sed',
147+
per_unit_cost_basis='numquam',
147148
target_expiry_date=dateutil.parser.parse('2023-02-01').date(),
148149
))
149150

@@ -172,7 +173,7 @@ s = orb.Orb(
172173
)
173174

174175

175-
res = s.credit.fetch('iste')
176+
res = s.credit.fetch('commodi')
176177

177178
if res.credits is not None:
178179
# handle response
@@ -195,7 +196,7 @@ s = orb.Orb(
195196
)
196197

197198

198-
res = s.credit.fetch_by_external_id('dolor')
199+
res = s.credit.fetch_by_external_id('quam')
199200

200201
if res.credits is not None:
201202
# handle response
@@ -248,7 +249,7 @@ s = orb.Orb(
248249
)
249250

250251

251-
res = s.credit.fetch_ledger('natus', shared.EntryStatus.COMMITTED, 'hic', 9025.99)
252+
res = s.credit.fetch_ledger('molestiae', shared.EntryStatus.COMMITTED, 'error', 1589.69)
252253

253254
if res.credit_ledger_entries is not None:
254255
# handle response
@@ -271,7 +272,7 @@ s = orb.Orb(
271272
)
272273

273274

274-
res = s.credit.fetch_ledger_by_external_id('fuga', shared.EntryStatus.COMMITTED, 'corporis', 6130.64)
275+
res = s.credit.fetch_ledger_by_external_id('quis', shared.EntryStatus.COMMITTED, 'laborum', 6563.3)
275276

276277
if res.credit_ledger_entries is not None:
277278
# handle response

docs/creditnote/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ s = orb.Orb(
2727
)
2828

2929

30-
res = s.credit_note.list('iure', 'saepe', 'quidem')
30+
res = s.credit_note.list('enim', 'odit', 'quo')
3131

3232
if res.credit_notes is not None:
3333
# handle response

0 commit comments

Comments
 (0)