Skip to content

Commit cedc686

Browse files
feat(api): api update
1 parent ac6588f commit cedc686

File tree

3 files changed

+32
-6
lines changed

3 files changed

+32
-6
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 118
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-faf1f7c723d2762f09e9690ef2ceda58cb0a6ddacf1a79c3754871b90e7db0dc.yml
3-
openapi_spec_hash: 22269f85fae1ec920bdb0b32435a7aa8
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-79664fa0b4ea00c978ae2516087d0ee591b0ef92ca8db29557a0424bde520e10.yml
3+
openapi_spec_hash: 1ff6eee9184312a3a0fd21eb589132f9
44
config_hash: dd4343ce95871032ef6e0735a4ca038c

src/orb/types/customers/credit_list_by_external_id_response.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
3+
from typing import List, Optional
44
from datetime import datetime
55
from typing_extensions import Literal
66

77
from ..._models import BaseModel
88

9-
__all__ = ["CreditListByExternalIDResponse"]
9+
__all__ = ["CreditListByExternalIDResponse", "Filter"]
10+
11+
12+
class Filter(BaseModel):
13+
field: Literal["price_id", "item_id", "price_type", "currency", "pricing_unit_id"]
14+
"""The property of the price to filter on."""
15+
16+
operator: Literal["includes", "excludes"]
17+
"""Should prices that match the filter be included or excluded."""
18+
19+
values: List[str]
20+
"""The IDs or values that match this filter."""
1021

1122

1223
class CreditListByExternalIDResponse(BaseModel):
@@ -18,6 +29,8 @@ class CreditListByExternalIDResponse(BaseModel):
1829

1930
expiry_date: Optional[datetime] = None
2031

32+
filters: List[Filter]
33+
2134
maximum_initial_balance: Optional[float] = None
2235

2336
per_unit_cost_basis: Optional[str] = None

src/orb/types/customers/credit_list_response.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
3+
from typing import List, Optional
44
from datetime import datetime
55
from typing_extensions import Literal
66

77
from ..._models import BaseModel
88

9-
__all__ = ["CreditListResponse"]
9+
__all__ = ["CreditListResponse", "Filter"]
10+
11+
12+
class Filter(BaseModel):
13+
field: Literal["price_id", "item_id", "price_type", "currency", "pricing_unit_id"]
14+
"""The property of the price to filter on."""
15+
16+
operator: Literal["includes", "excludes"]
17+
"""Should prices that match the filter be included or excluded."""
18+
19+
values: List[str]
20+
"""The IDs or values that match this filter."""
1021

1122

1223
class CreditListResponse(BaseModel):
@@ -18,6 +29,8 @@ class CreditListResponse(BaseModel):
1829

1930
expiry_date: Optional[datetime] = None
2031

32+
filters: List[Filter]
33+
2134
maximum_initial_balance: Optional[float] = None
2235

2336
per_unit_cost_basis: Optional[str] = None

0 commit comments

Comments
 (0)