Skip to content

Commit bc86175

Browse files
Merge upstream and update generated code for v2217 and
2 parents 3bd838b + f6b17f7 commit bc86175

346 files changed

Lines changed: 1322 additions & 757 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
70d7443c72304ad3165194e362954948b9744def
1+
a56d76f5d36ae7be4b833e3970be0a68d4289567

stripe/_account.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
from stripe._nested_resource_class_methods import nested_resource_class_methods
99
from stripe._oauth import OAuth
1010
from stripe._person import Person
11-
from stripe._stripe_object import StripeObject
11+
from stripe._stripe_object import StripeObject, UntypedStripeObject
1212
from stripe._updateable_api_resource import UpdateableAPIResource
1313
from stripe._util import class_method_variant, sanitize_id
14-
from typing import ClassVar, Dict, List, Optional, Union, cast, overload
14+
from typing import ClassVar, List, Optional, Union, cast, overload
1515
from typing_extensions import Literal, Unpack, TYPE_CHECKING
1616

1717
if TYPE_CHECKING:
@@ -1693,7 +1693,7 @@ class TosAcceptance(StripeObject):
16931693
16941694
See the [Standard onboarding](https://docs.stripe.com/connect/standard-accounts) or [Express onboarding](https://docs.stripe.com/connect/express-accounts) documentation for information about prefilling information and account onboarding steps. Learn more about [handling identity verification with the API](https://docs.stripe.com/connect/handling-api-verification#person-information).
16951695
"""
1696-
metadata: Optional[Dict[str, str]]
1696+
metadata: Optional[UntypedStripeObject[str]]
16971697
"""
16981698
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
16991699
"""

stripe/_account_notice.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# File generated from our OpenAPI spec
33
from stripe._list_object import ListObject
44
from stripe._listable_api_resource import ListableAPIResource
5-
from stripe._stripe_object import StripeObject
5+
from stripe._stripe_object import StripeObject, UntypedStripeObject
66
from stripe._updateable_api_resource import UpdateableAPIResource
77
from stripe._util import sanitize_id
8-
from typing import ClassVar, Dict, Optional, cast
8+
from typing import ClassVar, Optional, cast
99
from typing_extensions import Literal, Unpack, TYPE_CHECKING
1010

1111
if TYPE_CHECKING:
@@ -84,7 +84,7 @@ class LinkedObjects(StripeObject):
8484
"""
8585
If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
8686
"""
87-
metadata: Optional[Dict[str, str]]
87+
metadata: Optional[UntypedStripeObject[str]]
8888
"""
8989
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
9090
"""

stripe/_application_fee_refund.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
# File generated from our OpenAPI spec
33
from stripe._application_fee import ApplicationFee
44
from stripe._expandable_field import ExpandableField
5+
from stripe._stripe_object import UntypedStripeObject
56
from stripe._updateable_api_resource import UpdateableAPIResource
67
from stripe._util import sanitize_id
7-
from typing import ClassVar, Dict, Optional, cast
8+
from typing import ClassVar, Optional, cast
89
from typing_extensions import Literal, TYPE_CHECKING
910

1011
if TYPE_CHECKING:
@@ -45,7 +46,7 @@ class ApplicationFeeRefund(UpdateableAPIResource["ApplicationFeeRefund"]):
4546
"""
4647
Unique identifier for the object.
4748
"""
48-
metadata: Optional[Dict[str, str]]
49+
metadata: Optional[UntypedStripeObject[str]]
4950
"""
5051
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
5152
"""

stripe/_balance_settings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# -*- coding: utf-8 -*-
22
# File generated from our OpenAPI spec
33
from stripe._singleton_api_resource import SingletonAPIResource
4-
from stripe._stripe_object import StripeObject
4+
from stripe._stripe_object import StripeObject, UntypedStripeObject
55
from stripe._updateable_api_resource import UpdateableAPIResource
6-
from typing import ClassVar, Dict, List, Optional, cast
6+
from typing import ClassVar, List, Optional, cast
77
from typing_extensions import Literal, Unpack, TYPE_CHECKING
88

99
if TYPE_CHECKING:
@@ -53,7 +53,7 @@ class Schedule(StripeObject):
5353
The days of the week when available funds are paid out, specified as an array, for example, [`monday`, `tuesday`]. Only shown if `interval` is weekly.
5454
"""
5555

56-
minimum_balance_by_currency: Optional[Dict[str, int]]
56+
minimum_balance_by_currency: Optional[UntypedStripeObject[int]]
5757
"""
5858
The minimum balance amount to retain per currency after automatic payouts. Only funds that exceed these amounts are paid out. Learn more about the [minimum balances for automatic payouts](https://docs.stripe.com/payouts/minimum-balances-for-automatic-payouts).
5959
"""

stripe/_bank_account.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
from stripe._deletable_api_resource import DeletableAPIResource
66
from stripe._error import InvalidRequestError
77
from stripe._expandable_field import ExpandableField
8-
from stripe._stripe_object import StripeObject
8+
from stripe._stripe_object import StripeObject, UntypedStripeObject
99
from stripe._updateable_api_resource import UpdateableAPIResource
1010
from stripe._util import class_method_variant, sanitize_id
1111
from stripe._verify_mixin import VerifyMixin
12-
from typing import ClassVar, Dict, List, Optional, Union, cast, overload
12+
from typing import ClassVar, List, Optional, Union, cast, overload
1313
from typing_extensions import Literal, Unpack, TYPE_CHECKING
1414

1515
if TYPE_CHECKING:
@@ -360,7 +360,7 @@ class Error(StripeObject):
360360
"""
361361
The last four digits of the bank account number.
362362
"""
363-
metadata: Optional[Dict[str, str]]
363+
metadata: Optional[UntypedStripeObject[str]]
364364
"""
365365
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
366366
"""

stripe/_card.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
from stripe._deletable_api_resource import DeletableAPIResource
66
from stripe._error import InvalidRequestError
77
from stripe._expandable_field import ExpandableField
8-
from stripe._stripe_object import StripeObject
8+
from stripe._stripe_object import StripeObject, UntypedStripeObject
99
from stripe._updateable_api_resource import UpdateableAPIResource
1010
from stripe._util import class_method_variant, sanitize_id
11-
from typing import ClassVar, Dict, List, Optional, Union, cast, overload
11+
from typing import ClassVar, List, Optional, Union, cast, overload
1212
from typing_extensions import Literal, Unpack, TYPE_CHECKING
1313

1414
if TYPE_CHECKING:
@@ -148,7 +148,7 @@ class Networks(StripeObject):
148148
"""
149149
The last four digits of the card.
150150
"""
151-
metadata: Optional[Dict[str, str]]
151+
metadata: Optional[UntypedStripeObject[str]]
152152
"""
153153
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
154154
"""

stripe/_cash_balance.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# -*- coding: utf-8 -*-
22
# File generated from our OpenAPI spec
33
from stripe._customer import Customer
4-
from stripe._stripe_object import StripeObject
4+
from stripe._stripe_object import StripeObject, UntypedStripeObject
55
from stripe._util import sanitize_id
6-
from typing import ClassVar, Dict, Optional
6+
from typing import ClassVar, Optional
77
from typing_extensions import Literal
88

99

@@ -24,7 +24,7 @@ class Settings(StripeObject):
2424
A flag to indicate if reconciliation mode returned is the user's default or is specific to this customer cash balance
2525
"""
2626

27-
available: Optional[Dict[str, int]]
27+
available: Optional[UntypedStripeObject[int]]
2828
"""
2929
A hash of all cash balances available to this customer. You cannot delete a customer with any cash balances, even if the balance is 0. Amounts are represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
3030
"""

stripe/_charge.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77
from stripe._nested_resource_class_methods import nested_resource_class_methods
88
from stripe._search_result_object import SearchResultObject
99
from stripe._searchable_api_resource import SearchableAPIResource
10-
from stripe._stripe_object import StripeObject
10+
from stripe._stripe_object import StripeObject, UntypedStripeObject
1111
from stripe._updateable_api_resource import UpdateableAPIResource
1212
from stripe._util import class_method_variant, sanitize_id
1313
from typing import (
1414
AsyncIterator,
1515
ClassVar,
16-
Dict,
1716
Iterator,
1817
List,
1918
Optional,
@@ -2477,7 +2476,7 @@ class TransferData(StripeObject):
24772476
"""
24782477
If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
24792478
"""
2480-
metadata: Dict[str, str]
2479+
metadata: UntypedStripeObject[str]
24812480
"""
24822481
Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
24832482
"""

stripe/_country_spec.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# File generated from our OpenAPI spec
33
from stripe._list_object import ListObject
44
from stripe._listable_api_resource import ListableAPIResource
5-
from stripe._stripe_object import StripeObject
6-
from typing import ClassVar, Dict, List
5+
from stripe._stripe_object import StripeObject, UntypedStripeObject
6+
from typing import ClassVar, List
77
from typing_extensions import Literal, Unpack, TYPE_CHECKING
88

99
if TYPE_CHECKING:
@@ -62,7 +62,7 @@ class Individual(StripeObject):
6262
"""
6363
String representing the object's type. Objects of the same type share the same value.
6464
"""
65-
supported_bank_account_currencies: Dict[str, List[str]]
65+
supported_bank_account_currencies: UntypedStripeObject[List[str]]
6666
"""
6767
Currencies that can be accepted in the specific country (for transfers).
6868
"""

0 commit comments

Comments
 (0)