Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unneccessary quotes #1283

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
782 changes: 394 additions & 388 deletions stripe/_account.py

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions stripe/_account_capability_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@

class AccountCapabilityService(StripeService):
class ListParams(TypedDict):
expand: NotRequired["List[str]"]
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""

class RetrieveParams(TypedDict):
expand: NotRequired["List[str]"]
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""

class UpdateParams(TypedDict):
expand: NotRequired["List[str]"]
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
requested: NotRequired["bool"]
requested: NotRequired[bool]
"""
To request a new capability for an account, pass true. There can be a delay before the requested capability becomes active. If the capability has any activation requirements, the response includes them in the `requirements` arrays.

Expand Down
76 changes: 38 additions & 38 deletions stripe/_account_external_account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

class AccountExternalAccountService(StripeService):
class CreateParams(TypedDict):
default_for_currency: NotRequired["bool"]
default_for_currency: NotRequired[bool]
"""
When set to true, or if this is the first external account added in this currency, this account becomes the default external account for its currency.
"""
expand: NotRequired["List[str]"]
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
Expand All @@ -29,18 +29,18 @@ class CreateParams(TypedDict):
"""
Please refer to full [documentation](https://stripe.com/docs/api) instead.
"""
metadata: NotRequired["Dict[str, str]"]
metadata: NotRequired[Dict[str, str]]
"""
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""

class CreateParamsBankAccount(TypedDict):
object: Literal["bank_account"]
account_holder_name: NotRequired["str"]
account_holder_name: NotRequired[str]
"""
The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object.
"""
account_holder_type: NotRequired["Literal['company', 'individual']"]
account_holder_type: NotRequired[Literal["company", "individual"]]
"""
The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
"""
Expand All @@ -52,72 +52,72 @@ class CreateParamsBankAccount(TypedDict):
"""
The country in which the bank account is located.
"""
currency: NotRequired["str"]
currency: NotRequired[str]
"""
The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
"""
routing_number: NotRequired["str"]
routing_number: NotRequired[str]
"""
The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required.
"""

class CreateParamsCard(TypedDict):
object: Literal["card"]
address_city: NotRequired["str"]
address_country: NotRequired["str"]
address_line1: NotRequired["str"]
address_line2: NotRequired["str"]
address_state: NotRequired["str"]
address_zip: NotRequired["str"]
currency: NotRequired["str"]
cvc: NotRequired["str"]
address_city: NotRequired[str]
address_country: NotRequired[str]
address_line1: NotRequired[str]
address_line2: NotRequired[str]
address_state: NotRequired[str]
address_zip: NotRequired[str]
currency: NotRequired[str]
cvc: NotRequired[str]
exp_month: int
exp_year: int
name: NotRequired["str"]
name: NotRequired[str]
number: str
metadata: NotRequired["Dict[str, str]"]
metadata: NotRequired[Dict[str, str]]
"""
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
"""

class CreateParamsCardToken(TypedDict):
object: Literal["card"]
currency: NotRequired["str"]
currency: NotRequired[str]
token: str

class DeleteParams(TypedDict):
pass

class ListParams(TypedDict):
ending_before: NotRequired["str"]
ending_before: NotRequired[str]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
"""
expand: NotRequired["List[str]"]
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
limit: NotRequired["int"]
limit: NotRequired[int]
"""
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
"""
object: NotRequired["Literal['bank_account', 'card']"]
object: NotRequired[Literal["bank_account", "card"]]
"""
Filter external accounts according to a particular object type.
"""
starting_after: NotRequired["str"]
starting_after: NotRequired[str]
"""
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""

class RetrieveParams(TypedDict):
expand: NotRequired["List[str]"]
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""

class UpdateParams(TypedDict):
account_holder_name: NotRequired["str"]
account_holder_name: NotRequired[str]
"""
The name of the person or business that owns the bank account.
"""
Expand All @@ -128,36 +128,36 @@ class UpdateParams(TypedDict):
The type of entity that holds the account. This can be either `individual` or `company`.
"""
account_type: NotRequired[
"Literal['checking', 'futsu', 'savings', 'toza']"
Literal["checking", "futsu", "savings", "toza"]
]
"""
The bank account type. This can only be `checking` or `savings` in most countries. In Japan, this can only be `futsu` or `toza`.
"""
address_city: NotRequired["str"]
address_city: NotRequired[str]
"""
City/District/Suburb/Town/Village.
"""
address_country: NotRequired["str"]
address_country: NotRequired[str]
"""
Billing address country, if provided when creating card.
"""
address_line1: NotRequired["str"]
address_line1: NotRequired[str]
"""
Address line 1 (Street address/PO Box/Company name).
"""
address_line2: NotRequired["str"]
address_line2: NotRequired[str]
"""
Address line 2 (Apartment/Suite/Unit/Building).
"""
address_state: NotRequired["str"]
address_state: NotRequired[str]
"""
State/County/Province/Region.
"""
address_zip: NotRequired["str"]
address_zip: NotRequired[str]
"""
ZIP or postal code.
"""
default_for_currency: NotRequired["bool"]
default_for_currency: NotRequired[bool]
"""
When set to true, this becomes the default external account for its currency.
"""
Expand All @@ -167,23 +167,23 @@ class UpdateParams(TypedDict):
"""
Documents that may be submitted to satisfy various informational requests.
"""
exp_month: NotRequired["str"]
exp_month: NotRequired[str]
"""
Two digit number representing the card's expiration month.
"""
exp_year: NotRequired["str"]
exp_year: NotRequired[str]
"""
Four digit number representing the card's expiration year.
"""
expand: NotRequired["List[str]"]
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
metadata: NotRequired["Literal['']|Dict[str, str]"]
"""
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
name: NotRequired["str"]
name: NotRequired[str]
"""
Cardholder name.
"""
Expand All @@ -197,7 +197,7 @@ class UpdateParamsDocuments(TypedDict):
"""

class UpdateParamsDocumentsBankAccountOwnershipVerification(TypedDict):
files: NotRequired["List[str]"]
files: NotRequired[List[str]]
"""
One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
"""
Expand Down
10 changes: 5 additions & 5 deletions stripe/_account_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CreateParams(RequestOptions):
"""
The identifier of the account to create an account link for.
"""
collect: NotRequired["Literal['currently_due', 'eventually_due']"]
collect: NotRequired[Literal["currently_due", "eventually_due"]]
"""
The collect parameter is deprecated. Use `collection_options` instead.
"""
Expand All @@ -31,15 +31,15 @@ class CreateParams(RequestOptions):
"""
Specifies the requirements that Stripe collects from connected accounts in the Connect Onboarding flow.
"""
expand: NotRequired["List[str]"]
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
refresh_url: NotRequired["str"]
refresh_url: NotRequired[str]
"""
The URL the user will be redirected to if the account link is expired, has been previously-visited, or is otherwise invalid. The URL you specify should attempt to generate a new account link with the same parameters used to create the original account link, then redirect the user to the new account link's URL so they can continue with Connect Onboarding. If a new account link cannot be generated or the redirect fails you should display a useful error to the user.
"""
return_url: NotRequired["str"]
return_url: NotRequired[str]
"""
The URL that the user will be redirected to upon leaving or completing the linked flow.
"""
Expand All @@ -58,7 +58,7 @@ class CreateParamsCollectionOptions(TypedDict):
"""
Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don't specify `collection_options`, the default value is `currently_due`.
"""
future_requirements: NotRequired["Literal['include', 'omit']"]
future_requirements: NotRequired[Literal["include", "omit"]]
"""
Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.
"""
Expand Down
10 changes: 5 additions & 5 deletions stripe/_account_link_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CreateParams(TypedDict):
"""
The identifier of the account to create an account link for.
"""
collect: NotRequired["Literal['currently_due', 'eventually_due']"]
collect: NotRequired[Literal["currently_due", "eventually_due"]]
"""
The collect parameter is deprecated. Use `collection_options` instead.
"""
Expand All @@ -23,15 +23,15 @@ class CreateParams(TypedDict):
"""
Specifies the requirements that Stripe collects from connected accounts in the Connect Onboarding flow.
"""
expand: NotRequired["List[str]"]
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
refresh_url: NotRequired["str"]
refresh_url: NotRequired[str]
"""
The URL the user will be redirected to if the account link is expired, has been previously-visited, or is otherwise invalid. The URL you specify should attempt to generate a new account link with the same parameters used to create the original account link, then redirect the user to the new account link's URL so they can continue with Connect Onboarding. If a new account link cannot be generated or the redirect fails you should display a useful error to the user.
"""
return_url: NotRequired["str"]
return_url: NotRequired[str]
"""
The URL that the user will be redirected to upon leaving or completing the linked flow.
"""
Expand All @@ -50,7 +50,7 @@ class CreateParamsCollectionOptions(TypedDict):
"""
Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don't specify `collection_options`, the default value is `currently_due`.
"""
future_requirements: NotRequired["Literal['include', 'omit']"]
future_requirements: NotRequired[Literal["include", "omit"]]
"""
Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/_account_login_link_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class AccountLoginLinkService(StripeService):
class CreateParams(TypedDict):
expand: NotRequired["List[str]"]
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
Expand Down
16 changes: 8 additions & 8 deletions stripe/_account_notice.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,23 @@ class LinkedObjects(StripeObject):
"""

class ListParams(RequestOptions):
ending_before: NotRequired["str"]
ending_before: NotRequired[str]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
"""
expand: NotRequired["List[str]"]
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
limit: NotRequired["int"]
limit: NotRequired[int]
"""
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
"""
sent: NotRequired["bool"]
sent: NotRequired[bool]
"""
Set to false to only return unsent AccountNotices.
"""
starting_after: NotRequired["str"]
starting_after: NotRequired[str]
"""
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""
Expand All @@ -77,11 +77,11 @@ class ModifyParams(RequestOptions):
"""
Information about the email you sent.
"""
expand: NotRequired["List[str]"]
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
metadata: NotRequired["Dict[str, str]"]
metadata: NotRequired[Dict[str, str]]
"""
Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
"""
Expand All @@ -105,7 +105,7 @@ class ModifyParamsEmail(TypedDict):
"""

class RetrieveParams(RequestOptions):
expand: NotRequired["List[str]"]
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
Expand Down
Loading
Loading