Skip to content

Commit 3b0de8f

Browse files
feat(api): api update
1 parent 25ae738 commit 3b0de8f

14 files changed

+56
-44
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: 114
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-6d2a5b5d2cfb485e1a548aa15e1e36844e1f14f42553033822e1c570c8aa0825.yml
3-
openapi_spec_hash: 0266a5aaced5e768bcf6a70924d69799
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/orb%2Forb-faced218bf2dee89c8449bdb209e7090452d26c0646f0b998f84fe5bd3c4b7cb.yml
3+
openapi_spec_hash: b3a957e9c012fad5093545f65614ea42
44
config_hash: e63f2d098e5d12f63ae4cd8270aa5c3c

src/orb/resources/events/events.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import List, Union, Iterable, Optional
5+
from typing import Dict, List, Union, Iterable, Optional
66
from datetime import datetime
77

88
import httpx
@@ -72,7 +72,7 @@ def update(
7272
event_id: str,
7373
*,
7474
event_name: str,
75-
properties: object,
75+
properties: Dict[str, object],
7676
timestamp: Union[str, datetime],
7777
customer_id: Optional[str] | NotGiven = NOT_GIVEN,
7878
external_customer_id: Optional[str] | NotGiven = NOT_GIVEN,
@@ -623,7 +623,7 @@ async def update(
623623
event_id: str,
624624
*,
625625
event_name: str,
626-
properties: object,
626+
properties: Dict[str, object],
627627
timestamp: Union[str, datetime],
628628
customer_id: Optional[str] | NotGiven = NOT_GIVEN,
629629
external_customer_id: Optional[str] | NotGiven = NOT_GIVEN,

src/orb/types/customers/credits/top_up_create_by_external_id_params.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ class InvoiceSettings(TypedDict, total=False):
7070

7171
require_successful_payment: bool
7272
"""
73-
If true, new credit blocks created by this top-up will require that the
74-
corresponding invoice is paid before they can be drawn down from.
73+
When true, credit blocks created by this top-up will require that the
74+
corresponding invoice is paid before they are drawn down from. If any topup
75+
block is pending payment, further automatic top-ups will be paused until the
76+
invoice is paid or voided.
7577
"""

src/orb/types/customers/credits/top_up_create_by_external_id_response.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ class InvoiceSettings(BaseModel):
2727

2828
require_successful_payment: Optional[bool] = None
2929
"""
30-
If true, new credit blocks created by this top-up will require that the
31-
corresponding invoice is paid before they can be drawn down from.
30+
When true, credit blocks created by this top-up will require that the
31+
corresponding invoice is paid before they are drawn down from. If any topup
32+
block is pending payment, further automatic top-ups will be paused until the
33+
invoice is paid or voided.
3234
"""
3335

3436

src/orb/types/customers/credits/top_up_create_params.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ class InvoiceSettings(TypedDict, total=False):
7070

7171
require_successful_payment: bool
7272
"""
73-
If true, new credit blocks created by this top-up will require that the
74-
corresponding invoice is paid before they can be drawn down from.
73+
When true, credit blocks created by this top-up will require that the
74+
corresponding invoice is paid before they are drawn down from. If any topup
75+
block is pending payment, further automatic top-ups will be paused until the
76+
invoice is paid or voided.
7577
"""

src/orb/types/customers/credits/top_up_create_response.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ class InvoiceSettings(BaseModel):
2727

2828
require_successful_payment: Optional[bool] = None
2929
"""
30-
If true, new credit blocks created by this top-up will require that the
31-
corresponding invoice is paid before they can be drawn down from.
30+
When true, credit blocks created by this top-up will require that the
31+
corresponding invoice is paid before they are drawn down from. If any topup
32+
block is pending payment, further automatic top-ups will be paused until the
33+
invoice is paid or voided.
3234
"""
3335

3436

src/orb/types/customers/credits/top_up_list_by_external_id_response.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ class InvoiceSettings(BaseModel):
2727

2828
require_successful_payment: Optional[bool] = None
2929
"""
30-
If true, new credit blocks created by this top-up will require that the
31-
corresponding invoice is paid before they can be drawn down from.
30+
When true, credit blocks created by this top-up will require that the
31+
corresponding invoice is paid before they are drawn down from. If any topup
32+
block is pending payment, further automatic top-ups will be paused until the
33+
invoice is paid or voided.
3234
"""
3335

3436

src/orb/types/customers/credits/top_up_list_response.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ class InvoiceSettings(BaseModel):
2727

2828
require_successful_payment: Optional[bool] = None
2929
"""
30-
If true, new credit blocks created by this top-up will require that the
31-
corresponding invoice is paid before they can be drawn down from.
30+
When true, credit blocks created by this top-up will require that the
31+
corresponding invoice is paid before they are drawn down from. If any topup
32+
block is pending payment, further automatic top-ups will be paused until the
33+
invoice is paid or voided.
3234
"""
3335

3436

src/orb/types/event_ingest_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Union, Iterable, Optional
5+
from typing import Dict, Union, Iterable, Optional
66
from datetime import datetime
77
from typing_extensions import Required, Annotated, TypedDict
88

@@ -35,7 +35,7 @@ class Event(TypedDict, total=False):
3535
for safe request retries.
3636
"""
3737

38-
properties: Required[object]
38+
properties: Required[Dict[str, object]]
3939
"""A dictionary of custom properties.
4040
4141
Values in this dictionary must be numeric, boolean, or strings. Nested

src/orb/types/event_search_response.py

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

3-
from typing import List, Optional
3+
from typing import Dict, List, Optional
44
from datetime import datetime
55

66
from .._models import BaseModel
@@ -31,7 +31,7 @@ class Data(BaseModel):
3131
customer
3232
"""
3333

34-
properties: object
34+
properties: Dict[str, object]
3535
"""A dictionary of custom properties.
3636
3737
Values in this dictionary must be numeric, boolean, or strings. Nested

0 commit comments

Comments
 (0)