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
For more details about PaymentSettings, please refer to the API Reference.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about PaymentMethodOptions, please refer to the API Reference. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanPayment-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_methodwhen payment succeeds.inthashCode()voidsetPaymentMethodOptions(Subscription.PaymentSettings.PaymentMethodOptions paymentMethodOptions) Payment-method-specific configuration to provide to invoices created by the subscription.voidsetPaymentMethodTypes(List<String> paymentMethodTypes) The list of payment method types to provide to every invoice created by the subscription.voidsetSaveDefaultPaymentMethod(String saveDefaultPaymentMethod) Configure whether Stripe updatessubscription.default_payment_methodwhen payment succeeds.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, 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_methodwhen 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_methodwhen payment succeeds. Defaults tooff.One of
off, oron_subscription. -
equals
-
canEqual
-
hashCode
public int hashCode()
-