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
The list of permissions to request. The
payment_method
permission must be
included.-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
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.Eitheroff
, oron_subscription
.int
hashCode()
void
setPaymentMethodOptions
(Subscription.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) Eitheroff
, oron_subscription
.Methods inherited from class com.stripe.model.StripeObject
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
Eitheroff
, oron_subscription
. Withon_subscription
Stripe updatessubscription.default_payment_method
when a subscription payment succeeds.One of
off
, oron_subscription
. -
setPaymentMethodOptions
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
Eitheroff
, oron_subscription
. Withon_subscription
Stripe updatessubscription.default_payment_method
when a subscription payment succeeds.One of
off
, oron_subscription
. -
equals
-
canEqual
-
hashCode
public int hashCode()
-