Package com.stripe.model
Class Subscription.PaymentSettings
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Subscription.PaymentSettings
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Subscription
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Payment-method-specific configuration to provide to invoices created by the subscription.The list of payment method types to provide to every invoice created by the subscription.Configure whether Stripe updatessubscription.default_payment_method
when payment succeeds.int
hashCode()
void
setPaymentMethodOptions
(Subscription.PaymentSettings.PaymentMethodOptions paymentMethodOptions) Payment-method-specific configuration to provide to invoices created by the subscription.void
setPaymentMethodTypes
(List<String> paymentMethodTypes) The list of payment method types to provide to every invoice created by the subscription.void
setSaveDefaultPaymentMethod
(String saveDefaultPaymentMethod) Configure whether Stripe updatessubscription.default_payment_method
when payment succeeds.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
PaymentSettings
public PaymentSettings()
-
-
Method Details
-
getPaymentMethodOptions
Payment-method-specific configuration to provide to invoices created by the subscription. -
getPaymentMethodTypes
The list of payment method types to provide to every invoice created by the subscription. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your invoice template settings. -
getSaveDefaultPaymentMethod
Configure whether Stripe updatessubscription.default_payment_method
when payment succeeds. Defaults tooff
.One of
off
, oron_subscription
. -
setPaymentMethodOptions
public void setPaymentMethodOptions(Subscription.PaymentSettings.PaymentMethodOptions paymentMethodOptions) Payment-method-specific configuration to provide to invoices created by the subscription. -
setPaymentMethodTypes
The list of payment method types to provide to every invoice created by the subscription. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your invoice template settings. -
setSaveDefaultPaymentMethod
Configure whether Stripe updatessubscription.default_payment_method
when payment succeeds. Defaults tooff
.One of
off
, oron_subscription
. -
equals
-
canEqual
-
hashCode
public int hashCode()
-