Skip to content

Commit

Permalink
Update generated code for v1332
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Nov 5, 2024
1 parent 7734ac4 commit 7a17cb9
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 13 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1331
v1332
20 changes: 14 additions & 6 deletions stripe/_payment_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ class ReportPaymentAttemptParamsPaymentMethodDetailsBillingDetailsAddress(
"""
City, district, suburb, town, or village.
"""
country: str
country: NotRequired[str]
"""
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
Expand All @@ -366,10 +366,14 @@ class ReportPaymentAttemptParamsPaymentMethodDetailsBillingDetailsAddress(
"""

class ReportPaymentAttemptParamsPaymentMethodDetailsCustom(TypedDict):
display_name: str
display_name: NotRequired[str]
"""
Display name for the custom (user-defined) payment method type used to make this payment.
"""
type: NotRequired[str]
"""
The custom payment method type associated with this payment.
"""

class ReportPaymentAttemptParamsShippingDetails(TypedDict):
address: NotRequired[
Expand All @@ -392,7 +396,7 @@ class ReportPaymentAttemptParamsShippingDetailsAddress(TypedDict):
"""
City, district, suburb, town, or village.
"""
country: str
country: NotRequired[str]
"""
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
Expand Down Expand Up @@ -562,7 +566,7 @@ class ReportPaymentParamsPaymentMethodDetailsBillingDetailsAddress(
"""
City, district, suburb, town, or village.
"""
country: str
country: NotRequired[str]
"""
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
Expand All @@ -584,10 +588,14 @@ class ReportPaymentParamsPaymentMethodDetailsBillingDetailsAddress(
"""

class ReportPaymentParamsPaymentMethodDetailsCustom(TypedDict):
display_name: str
display_name: NotRequired[str]
"""
Display name for the custom (user-defined) payment method type used to make this payment.
"""
type: NotRequired[str]
"""
The custom payment method type associated with this payment.
"""

class ReportPaymentParamsShippingDetails(TypedDict):
address: NotRequired[
Expand All @@ -610,7 +618,7 @@ class ReportPaymentParamsShippingDetailsAddress(TypedDict):
"""
City, district, suburb, town, or village.
"""
country: str
country: NotRequired[str]
"""
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
Expand Down
20 changes: 14 additions & 6 deletions stripe/_payment_record_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class ReportPaymentAttemptParamsPaymentMethodDetailsBillingDetailsAddress(
"""
City, district, suburb, town, or village.
"""
country: str
country: NotRequired[str]
"""
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
Expand All @@ -173,10 +173,14 @@ class ReportPaymentAttemptParamsPaymentMethodDetailsBillingDetailsAddress(
"""

class ReportPaymentAttemptParamsPaymentMethodDetailsCustom(TypedDict):
display_name: str
display_name: NotRequired[str]
"""
Display name for the custom (user-defined) payment method type used to make this payment.
"""
type: NotRequired[str]
"""
The custom payment method type associated with this payment.
"""

class ReportPaymentAttemptParamsShippingDetails(TypedDict):
address: NotRequired[
Expand All @@ -199,7 +203,7 @@ class ReportPaymentAttemptParamsShippingDetailsAddress(TypedDict):
"""
City, district, suburb, town, or village.
"""
country: str
country: NotRequired[str]
"""
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
Expand Down Expand Up @@ -373,7 +377,7 @@ class ReportPaymentParamsPaymentMethodDetailsBillingDetailsAddress(
"""
City, district, suburb, town, or village.
"""
country: str
country: NotRequired[str]
"""
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
Expand All @@ -395,10 +399,14 @@ class ReportPaymentParamsPaymentMethodDetailsBillingDetailsAddress(
"""

class ReportPaymentParamsPaymentMethodDetailsCustom(TypedDict):
display_name: str
display_name: NotRequired[str]
"""
Display name for the custom (user-defined) payment method type used to make this payment.
"""
type: NotRequired[str]
"""
The custom payment method type associated with this payment.
"""

class ReportPaymentParamsShippingDetails(TypedDict):
address: NotRequired[
Expand All @@ -421,7 +429,7 @@ class ReportPaymentParamsShippingDetailsAddress(TypedDict):
"""
City, district, suburb, town, or village.
"""
country: str
country: NotRequired[str]
"""
Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
"""
Expand Down

0 comments on commit 7a17cb9

Please sign in to comment.