You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update generated code for v2093 and
* Update generated code for v2095 and
* Update generated code for v2096 and
* Update generated code for v2099 and
---------
Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
The tax calculation provider used for location resolution. Defaults to `stripe` when not using a [third-party provider](https://docs.stripe.com/tax/third-party-apps).
Copy file name to clipboardExpand all lines: stripe/_customer_session.py
+84Lines changed: 84 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,80 @@ class BuyButton(StripeObject):
32
32
Whether the buy button is enabled.
33
33
"""
34
34
35
+
classCustomerSheet(StripeObject):
36
+
classFeatures(StripeObject):
37
+
payment_method_allow_redisplay_filters: Optional[
38
+
List[Literal["always", "limited", "unspecified"]]
39
+
]
40
+
"""
41
+
A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
42
+
43
+
If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
Controls whether the customer sheet displays the option to remove a saved payment method."
48
+
49
+
Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
50
+
"""
51
+
52
+
enabled: bool
53
+
"""
54
+
Whether the customer sheet is enabled.
55
+
"""
56
+
features: Optional[Features]
57
+
"""
58
+
This hash defines whether the customer sheet supports certain features.
59
+
"""
60
+
_inner_class_types= {"features": Features}
61
+
62
+
classMobilePaymentElement(StripeObject):
63
+
classFeatures(StripeObject):
64
+
payment_method_allow_redisplay_filters: Optional[
65
+
List[Literal["always", "limited", "unspecified"]]
66
+
]
67
+
"""
68
+
A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the mobile payment element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list.
69
+
70
+
If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"].
71
+
"""
72
+
payment_method_redisplay: Optional[
73
+
Literal["disabled", "enabled"]
74
+
]
75
+
"""
76
+
Controls whether or not the mobile payment element shows saved payment methods.
Controls whether the mobile payment element displays the option to remove a saved payment method."
81
+
82
+
Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods).
Controls whether the mobile payment element displays a checkbox offering to save a new payment method.
87
+
88
+
If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`.
Allows overriding the value of allow_override when saving a new payment method when payment_method_save is set to disabled. Use values: "always", "limited", or "unspecified".
95
+
96
+
If not specified, defaults to `nil` (no override value).
97
+
"""
98
+
99
+
enabled: bool
100
+
"""
101
+
Whether the mobile payment element is enabled.
102
+
"""
103
+
features: Optional[Features]
104
+
"""
105
+
This hash defines whether the mobile payment element supports certain features.
106
+
"""
107
+
_inner_class_types= {"features": Features}
108
+
35
109
classPaymentElement(StripeObject):
36
110
classFeatures(StripeObject):
37
111
payment_method_allow_redisplay_filters: List[
@@ -91,6 +165,14 @@ class PricingTable(StripeObject):
91
165
"""
92
166
This hash contains whether the buy button is enabled.
93
167
"""
168
+
customer_sheet: CustomerSheet
169
+
"""
170
+
This hash contains whether the customer sheet is enabled and the features it supports.
171
+
"""
172
+
mobile_payment_element: MobilePaymentElement
173
+
"""
174
+
This hash contains whether the mobile payment element is enabled and the features it supports.
175
+
"""
94
176
payment_element: PaymentElement
95
177
"""
96
178
This hash contains whether the Payment Element is enabled and the features it supports.
@@ -101,6 +183,8 @@ class PricingTable(StripeObject):
0 commit comments