Skip to content

Commit d23ec0e

Browse files
feat(api): api update (#471)
1 parent 441731c commit d23ec0e

File tree

4 files changed

+29
-7
lines changed

4 files changed

+29
-7
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 97
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-d0a97f690d07742fea0d6c9b9b0d9dae5e8490eb03a7f3da27989fdf53d3e45d.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-77f4e8cf0fc3b3f18c894408f322af7988ae90606235fe5058442409142a33e1.yml

src/orb/resources/customers/credits/credits.py

+20-4
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ def list(
8383
"""
8484
Returns a paginated list of unexpired, non-zero credit blocks for a customer.
8585
86+
If `include_all_blocks` is set to `true`, all credit blocks (including expired
87+
and depleted blocks) will be included in the response.
88+
8689
Note that `currency` defaults to credits if not specified. To use a real world
8790
currency, set `currency` to an ISO 4217 string.
8891
@@ -92,7 +95,8 @@ def list(
9295
cursor: Cursor for pagination. This can be populated by the `next_cursor` value returned
9396
from the initial request.
9497
95-
include_all_blocks: Include all blocks, not just active ones.
98+
include_all_blocks: If set to True, all expired and depleted blocks, as well as active block will be
99+
returned.
96100
97101
limit: The number of items to fetch. Defaults to 20.
98102
@@ -145,6 +149,9 @@ def list_by_external_id(
145149
"""
146150
Returns a paginated list of unexpired, non-zero credit blocks for a customer.
147151
152+
If `include_all_blocks` is set to `true`, all credit blocks (including expired
153+
and depleted blocks) will be included in the response.
154+
148155
Note that `currency` defaults to credits if not specified. To use a real world
149156
currency, set `currency` to an ISO 4217 string.
150157
@@ -154,7 +161,8 @@ def list_by_external_id(
154161
cursor: Cursor for pagination. This can be populated by the `next_cursor` value returned
155162
from the initial request.
156163
157-
include_all_blocks: Include all blocks, not just active ones.
164+
include_all_blocks: If set to True, all expired and depleted blocks, as well as active block will be
165+
returned.
158166
159167
limit: The number of items to fetch. Defaults to 20.
160168
@@ -238,6 +246,9 @@ def list(
238246
"""
239247
Returns a paginated list of unexpired, non-zero credit blocks for a customer.
240248
249+
If `include_all_blocks` is set to `true`, all credit blocks (including expired
250+
and depleted blocks) will be included in the response.
251+
241252
Note that `currency` defaults to credits if not specified. To use a real world
242253
currency, set `currency` to an ISO 4217 string.
243254
@@ -247,7 +258,8 @@ def list(
247258
cursor: Cursor for pagination. This can be populated by the `next_cursor` value returned
248259
from the initial request.
249260
250-
include_all_blocks: Include all blocks, not just active ones.
261+
include_all_blocks: If set to True, all expired and depleted blocks, as well as active block will be
262+
returned.
251263
252264
limit: The number of items to fetch. Defaults to 20.
253265
@@ -300,6 +312,9 @@ def list_by_external_id(
300312
"""
301313
Returns a paginated list of unexpired, non-zero credit blocks for a customer.
302314
315+
If `include_all_blocks` is set to `true`, all credit blocks (including expired
316+
and depleted blocks) will be included in the response.
317+
303318
Note that `currency` defaults to credits if not specified. To use a real world
304319
currency, set `currency` to an ISO 4217 string.
305320
@@ -309,7 +324,8 @@ def list_by_external_id(
309324
cursor: Cursor for pagination. This can be populated by the `next_cursor` value returned
310325
from the initial request.
311326
312-
include_all_blocks: Include all blocks, not just active ones.
327+
include_all_blocks: If set to True, all expired and depleted blocks, as well as active block will be
328+
returned.
313329
314330
limit: The number of items to fetch. Defaults to 20.
315331

src/orb/types/customers/credit_list_by_external_id_params.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ class CreditListByExternalIDParams(TypedDict, total=False):
2020
"""
2121

2222
include_all_blocks: bool
23-
"""Include all blocks, not just active ones."""
23+
"""
24+
If set to True, all expired and depleted blocks, as well as active block will be
25+
returned.
26+
"""
2427

2528
limit: int
2629
"""The number of items to fetch. Defaults to 20."""

src/orb/types/customers/credit_list_params.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ class CreditListParams(TypedDict, total=False):
2020
"""
2121

2222
include_all_blocks: bool
23-
"""Include all blocks, not just active ones."""
23+
"""
24+
If set to True, all expired and depleted blocks, as well as active block will be
25+
returned.
26+
"""
2427

2528
limit: int
2629
"""The number of items to fetch. Defaults to 20."""

0 commit comments

Comments
 (0)