Skip to content

Commit 689145d

Browse files
committed
sideko sdk update
1 parent dd924e2 commit 689145d

21 files changed

Lines changed: 255 additions & 242 deletions

.sdk.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"id": "3c69697a-305a-4017-8e1f-e9b7f65be8a4"
2+
"id": "a4a79c93-d8fb-422e-ac5a-e697cf9415d1"
33
}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ client = AsyncStripe(
102102

103103
### [application_fee.refund](sideko_stripe/resources/application_fee/refund/README.md)
104104

105-
* [create](sideko_stripe/resources/application_fee/refund/README.md#create) - Create an application fee refund
106-
* [create_1](sideko_stripe/resources/application_fee/refund/README.md#create_1) - POST /v1/application_fees/{id}/refund
105+
* [create](sideko_stripe/resources/application_fee/refund/README.md#create) - POST /v1/application_fees/{id}/refund
106+
* [create_many](sideko_stripe/resources/application_fee/refund/README.md#create_many) - Create an application fee refund
107107
* [get](sideko_stripe/resources/application_fee/refund/README.md#get) - Retrieve an application fee refund
108108
* [list](sideko_stripe/resources/application_fee/refund/README.md#list) - List all application fee refunds
109109
* [update](sideko_stripe/resources/application_fee/refund/README.md#update) - Update an application fee refund
@@ -263,8 +263,8 @@ client = AsyncStripe(
263263
* [get](sideko_stripe/resources/credit_note/README.md#get) - Retrieve a credit note
264264
* [lines](sideko_stripe/resources/credit_note/README.md#lines) - Retrieve a credit note's line items
265265
* [list](sideko_stripe/resources/credit_note/README.md#list) - List all credit notes
266-
* [preview](sideko_stripe/resources/credit_note/README.md#preview) - Retrieve a credit note preview's line items
267-
* [preview_1](sideko_stripe/resources/credit_note/README.md#preview_1) - Preview a credit note
266+
* [preview](sideko_stripe/resources/credit_note/README.md#preview) - Preview a credit note
267+
* [preview_lines](sideko_stripe/resources/credit_note/README.md#preview_lines) - Retrieve a credit note preview's line items
268268
* [update](sideko_stripe/resources/credit_note/README.md#update) - Update a credit note
269269
* [void](sideko_stripe/resources/credit_note/README.md#void) - Void a credit note
270270

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "sideko_stripe"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = ""
55
readme = "README.md"
66
authors = []

sideko_stripe/resources/application_fee/refund/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ client = AsyncStripe(
106106
res = await client.application_fee.refund.update(fee="string", id="string")
107107
```
108108

109-
### create_1 <a name="create_1"></a>
109+
### create <a name="create"></a>
110110
POST /v1/application_fees/{id}/refund
111111

112112

@@ -124,7 +124,7 @@ client = Stripe(
124124
password=getenv("API_PASSWORD"),
125125
token=getenv("API_TOKEN"),
126126
)
127-
res = client.application_fee.refund.create_1(id="string")
127+
res = client.application_fee.refund.create(id="string")
128128
```
129129

130130
#### Asynchronous Client
@@ -138,10 +138,10 @@ client = AsyncStripe(
138138
password=getenv("API_PASSWORD"),
139139
token=getenv("API_TOKEN"),
140140
)
141-
res = await client.application_fee.refund.create_1(id="string")
141+
res = await client.application_fee.refund.create(id="string")
142142
```
143143

144-
### create <a name="create"></a>
144+
### create_many <a name="create_many"></a>
145145
Create an application fee refund
146146

147147
<p>Refunds an application fee that has previously been collected but not yet refunded.
@@ -167,7 +167,7 @@ client = Stripe(
167167
password=getenv("API_PASSWORD"),
168168
token=getenv("API_TOKEN"),
169169
)
170-
res = client.application_fee.refund.create(id="string")
170+
res = client.application_fee.refund.create_many(id="string")
171171
```
172172

173173
#### Asynchronous Client
@@ -181,5 +181,5 @@ client = AsyncStripe(
181181
password=getenv("API_PASSWORD"),
182182
token=getenv("API_TOKEN"),
183183
)
184-
res = await client.application_fee.refund.create(id="string")
184+
res = await client.application_fee.refund.create_many(id="string")
185185
```

sideko_stripe/resources/application_fee/refund/client.py

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,12 @@ def update(
219219
request_options=request_options or default_request_options(),
220220
)
221221

222-
def create_1(
222+
def create(
223223
self,
224224
*,
225225
id: str,
226226
data: typing.Union[
227-
typing.Optional[params.ApplicationFeeRefundCreate1Body], type_utils.NotGiven
227+
typing.Optional[params.ApplicationFeeRefundCreateBody], type_utils.NotGiven
228228
] = type_utils.NOT_GIVEN,
229229
request_options: typing.Optional[RequestOptions] = None,
230230
) -> models.ApplicationFee:
@@ -234,7 +234,7 @@ def create_1(
234234
POST /v1/application_fees/{id}/refund
235235
236236
Args:
237-
data: ApplicationFeeRefundCreate1Body
237+
data: ApplicationFeeRefundCreateBody
238238
id: str
239239
request_options: Additional options to customize the HTTP request
240240
@@ -247,14 +247,14 @@ def create_1(
247247
248248
Examples:
249249
```py
250-
client.application_fee.refund.create_1(id="string")
250+
client.application_fee.refund.create(id="string")
251251
```
252252
"""
253253
models.ApplicationFee.model_rebuild(_types_namespace=models._types_namespace)
254254
_data = (
255255
to_form_urlencoded(
256256
item=data,
257-
dump_with=params._SerializerApplicationFeeRefundCreate1Body,
257+
dump_with=params._SerializerApplicationFeeRefundCreateBody,
258258
style={"amount": "form", "directive": "form", "expand": "deepObject"},
259259
explode={"amount": True, "directive": True, "expand": True},
260260
)
@@ -270,12 +270,13 @@ def create_1(
270270
request_options=request_options or default_request_options(),
271271
)
272272

273-
def create(
273+
def create_many(
274274
self,
275275
*,
276276
id: str,
277277
data: typing.Union[
278-
typing.Optional[params.ApplicationFeeRefundCreateBody], type_utils.NotGiven
278+
typing.Optional[params.ApplicationFeeRefundCreateManyBody],
279+
type_utils.NotGiven,
279280
] = type_utils.NOT_GIVEN,
280281
request_options: typing.Optional[RequestOptions] = None,
281282
) -> models.FeeRefund:
@@ -295,7 +296,7 @@ def create(
295296
POST /v1/application_fees/{id}/refunds
296297
297298
Args:
298-
data: ApplicationFeeRefundCreateBody
299+
data: ApplicationFeeRefundCreateManyBody
299300
id: str
300301
request_options: Additional options to customize the HTTP request
301302
@@ -308,14 +309,14 @@ def create(
308309
309310
Examples:
310311
```py
311-
client.application_fee.refund.create(id="string")
312+
client.application_fee.refund.create_many(id="string")
312313
```
313314
"""
314315
models.FeeRefund.model_rebuild(_types_namespace=models._types_namespace)
315316
_data = (
316317
to_form_urlencoded(
317318
item=data,
318-
dump_with=params._SerializerApplicationFeeRefundCreateBody,
319+
dump_with=params._SerializerApplicationFeeRefundCreateManyBody,
319320
style={
320321
"amount": "form",
321322
"expand": "deepObject",
@@ -541,12 +542,12 @@ async def update(
541542
request_options=request_options or default_request_options(),
542543
)
543544

544-
async def create_1(
545+
async def create(
545546
self,
546547
*,
547548
id: str,
548549
data: typing.Union[
549-
typing.Optional[params.ApplicationFeeRefundCreate1Body], type_utils.NotGiven
550+
typing.Optional[params.ApplicationFeeRefundCreateBody], type_utils.NotGiven
550551
] = type_utils.NOT_GIVEN,
551552
request_options: typing.Optional[RequestOptions] = None,
552553
) -> models.ApplicationFee:
@@ -556,7 +557,7 @@ async def create_1(
556557
POST /v1/application_fees/{id}/refund
557558
558559
Args:
559-
data: ApplicationFeeRefundCreate1Body
560+
data: ApplicationFeeRefundCreateBody
560561
id: str
561562
request_options: Additional options to customize the HTTP request
562563
@@ -569,14 +570,14 @@ async def create_1(
569570
570571
Examples:
571572
```py
572-
await client.application_fee.refund.create_1(id="string")
573+
await client.application_fee.refund.create(id="string")
573574
```
574575
"""
575576
models.ApplicationFee.model_rebuild(_types_namespace=models._types_namespace)
576577
_data = (
577578
to_form_urlencoded(
578579
item=data,
579-
dump_with=params._SerializerApplicationFeeRefundCreate1Body,
580+
dump_with=params._SerializerApplicationFeeRefundCreateBody,
580581
style={"amount": "form", "directive": "form", "expand": "deepObject"},
581582
explode={"amount": True, "directive": True, "expand": True},
582583
)
@@ -592,12 +593,13 @@ async def create_1(
592593
request_options=request_options or default_request_options(),
593594
)
594595

595-
async def create(
596+
async def create_many(
596597
self,
597598
*,
598599
id: str,
599600
data: typing.Union[
600-
typing.Optional[params.ApplicationFeeRefundCreateBody], type_utils.NotGiven
601+
typing.Optional[params.ApplicationFeeRefundCreateManyBody],
602+
type_utils.NotGiven,
601603
] = type_utils.NOT_GIVEN,
602604
request_options: typing.Optional[RequestOptions] = None,
603605
) -> models.FeeRefund:
@@ -617,7 +619,7 @@ async def create(
617619
POST /v1/application_fees/{id}/refunds
618620
619621
Args:
620-
data: ApplicationFeeRefundCreateBody
622+
data: ApplicationFeeRefundCreateManyBody
621623
id: str
622624
request_options: Additional options to customize the HTTP request
623625
@@ -630,14 +632,14 @@ async def create(
630632
631633
Examples:
632634
```py
633-
await client.application_fee.refund.create(id="string")
635+
await client.application_fee.refund.create_many(id="string")
634636
```
635637
"""
636638
models.FeeRefund.model_rebuild(_types_namespace=models._types_namespace)
637639
_data = (
638640
to_form_urlencoded(
639641
item=data,
640-
dump_with=params._SerializerApplicationFeeRefundCreateBody,
642+
dump_with=params._SerializerApplicationFeeRefundCreateManyBody,
641643
style={
642644
"amount": "form",
643645
"expand": "deepObject",

sideko_stripe/resources/credit_note/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ client = AsyncStripe(
3434
res = await client.credit_note.list()
3535
```
3636

37-
### preview_1 <a name="preview_1"></a>
37+
### preview <a name="preview"></a>
3838
Preview a credit note
3939

4040
<p>Get a preview of a credit note without creating it.</p>
@@ -52,7 +52,7 @@ client = Stripe(
5252
password=getenv("API_PASSWORD"),
5353
token=getenv("API_TOKEN"),
5454
)
55-
res = client.credit_note.preview_1(invoice="string")
55+
res = client.credit_note.preview(invoice="string")
5656
```
5757

5858
#### Asynchronous Client
@@ -66,10 +66,10 @@ client = AsyncStripe(
6666
password=getenv("API_PASSWORD"),
6767
token=getenv("API_TOKEN"),
6868
)
69-
res = await client.credit_note.preview_1(invoice="string")
69+
res = await client.credit_note.preview(invoice="string")
7070
```
7171

72-
### preview <a name="preview"></a>
72+
### preview_lines <a name="preview_lines"></a>
7373
Retrieve a credit note preview's line items
7474

7575
<p>When retrieving a credit note preview, you’ll get a <strong>lines</strong> property containing the first handful of those items. This URL you can retrieve the full (paginated) list of line items.</p>
@@ -87,7 +87,7 @@ client = Stripe(
8787
password=getenv("API_PASSWORD"),
8888
token=getenv("API_TOKEN"),
8989
)
90-
res = client.credit_note.preview(invoice="string")
90+
res = client.credit_note.preview_lines(invoice="string")
9191
```
9292

9393
#### Asynchronous Client
@@ -101,7 +101,7 @@ client = AsyncStripe(
101101
password=getenv("API_PASSWORD"),
102102
token=getenv("API_TOKEN"),
103103
)
104-
res = await client.credit_note.preview(invoice="string")
104+
res = await client.credit_note.preview_lines(invoice="string")
105105
```
106106

107107
### lines <a name="lines"></a>

0 commit comments

Comments
 (0)