Skip to content

Commit

Permalink
Update generated code (#1284)
Browse files Browse the repository at this point in the history
* Update generated code for v932

* Update generated code for v932

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] committed Apr 4, 2024
1 parent ccf6aaf commit 5b307f5
Show file tree
Hide file tree
Showing 47 changed files with 1,605 additions and 207 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v911
v932
56 changes: 28 additions & 28 deletions stripe/_account.py

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions stripe/_account_person_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ class CreateParams(TypedDict):
"""
id_number: NotRequired[str]
"""
The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii).
The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
"""
id_number_secondary: NotRequired[str]
"""
The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii).
The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
"""
last_name: NotRequired[str]
"""
Expand Down Expand Up @@ -103,7 +103,7 @@ class CreateParams(TypedDict):
"""
person_token: NotRequired[str]
"""
A [person token](https://stripe.com/docs/connect/account-tokens), used to securely provide details to the person.
A [person token](https://docs.stripe.com/connect/account-tokens), used to securely provide details to the person.
"""
phone: NotRequired[str]
"""
Expand Down Expand Up @@ -500,11 +500,11 @@ class UpdateParams(TypedDict):
"""
id_number: NotRequired[str]
"""
The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii).
The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
"""
id_number_secondary: NotRequired[str]
"""
The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii).
The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
"""
last_name: NotRequired[str]
"""
Expand Down Expand Up @@ -532,7 +532,7 @@ class UpdateParams(TypedDict):
"""
person_token: NotRequired[str]
"""
A [person token](https://stripe.com/docs/connect/account-tokens), used to securely provide details to the person.
A [person token](https://docs.stripe.com/connect/account-tokens), used to securely provide details to the person.
"""
phone: NotRequired[str]
"""
Expand Down
80 changes: 40 additions & 40 deletions stripe/_account_service.py

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions stripe/_customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ class CreateParams(RequestOptions):
"""
promotion_code: NotRequired[str]
"""
The API ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount.
The ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount.
"""
shipping: NotRequired["Literal['']|Customer.CreateParamsShipping"]
"""
Expand Down Expand Up @@ -438,11 +438,11 @@ class CreateParamsInvoiceSettings(TypedDict):
class CreateParamsInvoiceSettingsCustomField(TypedDict):
name: str
"""
The name of the custom field. This may be up to 30 characters.
The name of the custom field. This may be up to 40 characters.
"""
value: str
"""
The value of the custom field. This may be up to 30 characters.
The value of the custom field. This may be up to 140 characters.
"""

class CreateParamsInvoiceSettingsRenderingOptions(TypedDict):
Expand Down Expand Up @@ -990,7 +990,7 @@ class ModifyParams(RequestOptions):
"""
promotion_code: NotRequired[str]
"""
The API ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount.
The ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount.
"""
shipping: NotRequired["Literal['']|Customer.ModifyParamsShipping"]
"""
Expand Down Expand Up @@ -1075,11 +1075,11 @@ class ModifyParamsInvoiceSettings(TypedDict):
class ModifyParamsInvoiceSettingsCustomField(TypedDict):
name: str
"""
The name of the custom field. This may be up to 30 characters.
The name of the custom field. This may be up to 40 characters.
"""
value: str
"""
The value of the custom field. This may be up to 30 characters.
The value of the custom field. This may be up to 140 characters.
"""

class ModifyParamsInvoiceSettingsRenderingOptions(TypedDict):
Expand Down
12 changes: 6 additions & 6 deletions stripe/_customer_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class CreateParams(TypedDict):
"""
promotion_code: NotRequired[str]
"""
The API ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount.
The ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount.
"""
shipping: NotRequired[
"Literal['']|CustomerService.CreateParamsShipping"
Expand Down Expand Up @@ -203,11 +203,11 @@ class CreateParamsInvoiceSettings(TypedDict):
class CreateParamsInvoiceSettingsCustomField(TypedDict):
name: str
"""
The name of the custom field. This may be up to 30 characters.
The name of the custom field. This may be up to 40 characters.
"""
value: str
"""
The value of the custom field. This may be up to 30 characters.
The value of the custom field. This may be up to 140 characters.
"""

class CreateParamsInvoiceSettingsRenderingOptions(TypedDict):
Expand Down Expand Up @@ -490,7 +490,7 @@ class UpdateParams(TypedDict):
"""
promotion_code: NotRequired[str]
"""
The API ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount.
The ID of a promotion code to apply to the customer. The customer will have a discount applied on all recurring payments. Charges you create through the API will not have the discount.
"""
shipping: NotRequired[
"Literal['']|CustomerService.UpdateParamsShipping"
Expand Down Expand Up @@ -579,11 +579,11 @@ class UpdateParamsInvoiceSettings(TypedDict):
class UpdateParamsInvoiceSettingsCustomField(TypedDict):
name: str
"""
The name of the custom field. This may be up to 30 characters.
The name of the custom field. This may be up to 40 characters.
"""
value: str
"""
The value of the custom field. This may be up to 30 characters.
The value of the custom field. This may be up to 140 characters.
"""

class UpdateParamsInvoiceSettingsRenderingOptions(TypedDict):
Expand Down
4 changes: 4 additions & 0 deletions stripe/_discount.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ class Discount(StripeObject):
"""
The subscription that this coupon is applied to, if it is applied to a particular subscription.
"""
subscription_item: Optional[str]
"""
The subscription item that this coupon is applied to, if it is applied to a particular subscription item.
"""
deleted: Optional[Literal[True]]
"""
Always true for a deleted object
Expand Down
Loading

0 comments on commit 5b307f5

Please sign in to comment.