Skip to content

Commit

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

* Update generated code for v1171

* Update generated code for v1172

* Update generated code for v1173

* Update generated code for v1174

* Update generated code for v1175

* Update generated code for v1176

* Update generated code for v1177

* Update generated code for v1179

* Update generated code for v1180

* Update generated code for v1182

* Update generated code for v1183

* Update generated code for v1184

* Update generated code for v1186

* Update generated code for v1187

* Update generated code for v1188

* Update generated code for v1189

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Aug 8, 2024
1 parent 8598672 commit 7990f90
Show file tree
Hide file tree
Showing 37 changed files with 2,454 additions and 1,426 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1169
v1189
14 changes: 7 additions & 7 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -1038,19 +1038,19 @@ class Payments(StripeObject):
"""
statement_descriptor_kana: Optional[str]
"""
The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only)
The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
"""
statement_descriptor_kanji: Optional[str]
"""
The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only)
The Kanji variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
"""
statement_descriptor_prefix_kana: Optional[str]
"""
The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kana` specified on the charge. `statement_descriptor_prefix_kana` is useful for maximizing descriptor space for the dynamic portion.
The Kana variation of `statement_descriptor_prefix` used for card charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
"""
statement_descriptor_prefix_kanji: Optional[str]
"""
The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kanji` specified on the charge. `statement_descriptor_prefix_kanji` is useful for maximizing descriptor space for the dynamic portion.
The Kanji variation of `statement_descriptor_prefix` used for card charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
"""

class Payouts(StripeObject):
Expand Down Expand Up @@ -2742,15 +2742,15 @@ class CreateParamsSettingsCardPaymentsDeclineOn(TypedDict):
class CreateParamsSettingsPayments(TypedDict):
statement_descriptor: NotRequired[str]
"""
The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge.
The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors).
"""
statement_descriptor_kana: NotRequired[str]
"""
The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only).
The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
"""
statement_descriptor_kanji: NotRequired[str]
"""
The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only).
The Kanji variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
"""

class CreateParamsSettingsPayouts(TypedDict):
Expand Down
12 changes: 6 additions & 6 deletions stripe/_account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1561,15 +1561,15 @@ class CreateParamsSettingsCardPaymentsDeclineOn(TypedDict):
class CreateParamsSettingsPayments(TypedDict):
statement_descriptor: NotRequired[str]
"""
The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge.
The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors).
"""
statement_descriptor_kana: NotRequired[str]
"""
The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only).
The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
"""
statement_descriptor_kanji: NotRequired[str]
"""
The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only).
The Kanji variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
"""

class CreateParamsSettingsPayouts(TypedDict):
Expand Down Expand Up @@ -3219,15 +3219,15 @@ class UpdateParamsSettingsInvoices(TypedDict):
class UpdateParamsSettingsPayments(TypedDict):
statement_descriptor: NotRequired[str]
"""
The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge.
The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors).
"""
statement_descriptor_kana: NotRequired[str]
"""
The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only).
The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
"""
statement_descriptor_kanji: NotRequired[str]
"""
The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only).
The Kanji variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
"""

class UpdateParamsSettingsPayouts(TypedDict):
Expand Down
2 changes: 2 additions & 0 deletions stripe/_billing_service.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._stripe_service import StripeService
from stripe.billing._alert_service import AlertService
from stripe.billing._meter_event_adjustment_service import (
MeterEventAdjustmentService,
)
Expand All @@ -11,6 +12,7 @@
class BillingService(StripeService):
def __init__(self, requestor):
super().__init__(requestor)
self.alerts = AlertService(self._requestor)
self.meters = MeterService(self._requestor)
self.meter_events = MeterEventService(self._requestor)
self.meter_event_adjustments = MeterEventAdjustmentService(
Expand Down
4 changes: 2 additions & 2 deletions stripe/_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ class DeleteParams(RequestOptions):
"""
brand: str
"""
Card brand. Can be `American Express`, `Diners Club`, `Discover`, `Eftpos Australia`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
Card brand. Can be `American Express`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
"""
country: Optional[str]
"""
Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
"""
currency: Optional[str]
"""
Three-letter [ISO code for currency](https://stripe.com/docs/payouts). Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency. This property is only available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
Three-letter [ISO code for currency](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. Must be a [supported currency](https://docs.stripe.com/currencies). Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency. This property is only available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
"""
customer: Optional[ExpandableField["Customer"]]
"""
Expand Down
20 changes: 12 additions & 8 deletions stripe/_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,10 @@ class Offline(StripeObject):
"""
Time at which the payment was collected while offline
"""
type: Optional[Literal["deferred"]]
"""
The method used to process this payment method offline. Only deferred is allowed.
"""

class Receipt(StripeObject):
account_type: Optional[
Expand Down Expand Up @@ -1788,11 +1792,11 @@ class CaptureParams(RequestOptions):
"""
statement_descriptor: NotRequired[str]
"""
For card charges, use `statement_descriptor_suffix` instead. Otherwise, you can use this value as the complete description of a charge on your customers' statements. Must contain at least one letter, maximum 22 characters.
For a non-card charge, text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors). This value overrides the account's default statement descriptor. For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
"""
statement_descriptor_suffix: NotRequired[str]
"""
Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
"""
transfer_data: NotRequired["Charge.CaptureParamsTransferData"]
"""
Expand Down Expand Up @@ -1866,11 +1870,11 @@ class CreateParams(RequestOptions):
"""
statement_descriptor: NotRequired[str]
"""
For card charges, use `statement_descriptor_suffix` instead. Otherwise, you can use this value as the complete description of a charge on your customers' statements. Must contain at least one letter, maximum 22 characters.
For a non-card charge, text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors). This value overrides the account's default statement descriptor. For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
"""
statement_descriptor_suffix: NotRequired[str]
"""
Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
"""
transfer_data: NotRequired["Charge.CreateParamsTransferData"]
"""
Expand Down Expand Up @@ -1986,7 +1990,7 @@ class ListParams(RequestOptions):
"""
transfer_group: NotRequired[str]
"""
Only return charges for this transfer group.
Only return charges for this transfer group, limited to 100.
"""

class ListParamsCreated(TypedDict):
Expand Down Expand Up @@ -2178,7 +2182,7 @@ class SearchParams(RequestOptions):
billing_details: BillingDetails
calculated_statement_descriptor: Optional[str]
"""
The full statement descriptor that is passed to card networks, and that is displayed on your customers' credit card and bank statements. Allows you to see what the statement descriptor looks like after the static and dynamic portions are combined. This only works for card payments.
The full statement descriptor that is passed to card networks, and that is displayed on your customers' credit card and bank statements. Allows you to see what the statement descriptor looks like after the static and dynamic portions are combined. This value only exists for card payments.
"""
captured: bool
"""
Expand Down Expand Up @@ -2309,11 +2313,11 @@ class SearchParams(RequestOptions):
"""
statement_descriptor: Optional[str]
"""
For card charges, use `statement_descriptor_suffix` instead. Otherwise, you can use this value as the complete description of a charge on your customers' statements. Must contain at least one letter, maximum 22 characters.
For a non-card charge, text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors). This value overrides the account's default statement descriptor. For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
"""
statement_descriptor_suffix: Optional[str]
"""
Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
"""
status: Literal["failed", "pending", "succeeded"]
"""
Expand Down
10 changes: 5 additions & 5 deletions stripe/_charge_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ class CaptureParams(TypedDict):
"""
statement_descriptor: NotRequired[str]
"""
For card charges, use `statement_descriptor_suffix` instead. Otherwise, you can use this value as the complete description of a charge on your customers' statements. Must contain at least one letter, maximum 22 characters.
For a non-card charge, text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors). This value overrides the account's default statement descriptor. For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
"""
statement_descriptor_suffix: NotRequired[str]
"""
Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
"""
transfer_data: NotRequired["ChargeService.CaptureParamsTransferData"]
"""
Expand Down Expand Up @@ -112,11 +112,11 @@ class CreateParams(TypedDict):
"""
statement_descriptor: NotRequired[str]
"""
For card charges, use `statement_descriptor_suffix` instead. Otherwise, you can use this value as the complete description of a charge on your customers' statements. Must contain at least one letter, maximum 22 characters.
For a non-card charge, text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors). This value overrides the account's default statement descriptor. For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
"""
statement_descriptor_suffix: NotRequired[str]
"""
Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
"""
transfer_data: NotRequired["ChargeService.CreateParamsTransferData"]
"""
Expand Down Expand Up @@ -232,7 +232,7 @@ class ListParams(TypedDict):
"""
transfer_group: NotRequired[str]
"""
Only return charges for this transfer group.
Only return charges for this transfer group, limited to 100.
"""

class ListParamsCreated(TypedDict):
Expand Down
Loading

0 comments on commit 7990f90

Please sign in to comment.