public static class SubscriptionSchedule.DefaultSettings extends StripeObject
PRETTY_PRINT_GSON
Constructor and Description |
---|
DefaultSettings() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getBillingCycleAnchor()
Possible values are
phase_start or automatic . |
Subscription.BillingThresholds |
getBillingThresholds()
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
java.lang.String |
getCollectionMethod()
Either
charge_automatically , or send_invoice . |
java.lang.String |
getDefaultPaymentMethod()
Get ID of expandable
defaultPaymentMethod object. |
PaymentMethod |
getDefaultPaymentMethodObject()
Get expanded
defaultPaymentMethod . |
SubscriptionSchedule.InvoiceSettings |
getInvoiceSettings()
The subscription schedule's default invoice settings.
|
Subscription.TransferData |
getTransferData()
The account (if any) the subscription's payments will be attributed to for tax reporting, and
where funds from each payment will be transferred to for each of the subscription's invoices.
|
int |
hashCode() |
void |
setBillingCycleAnchor(java.lang.String billingCycleAnchor)
Possible values are
phase_start or automatic . |
void |
setBillingThresholds(Subscription.BillingThresholds billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
void |
setCollectionMethod(java.lang.String collectionMethod)
Either
charge_automatically , or send_invoice . |
void |
setDefaultPaymentMethod(java.lang.String id) |
void |
setDefaultPaymentMethodObject(PaymentMethod expandableObject) |
void |
setInvoiceSettings(SubscriptionSchedule.InvoiceSettings invoiceSettings)
The subscription schedule's default invoice settings.
|
void |
setTransferData(Subscription.TransferData transferData)
The account (if any) the subscription's payments will be attributed to for tax reporting, and
where funds from each payment will be transferred to for each of the subscription's invoices.
|
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.String getDefaultPaymentMethod()
defaultPaymentMethod
object.public void setDefaultPaymentMethod(java.lang.String id)
public PaymentMethod getDefaultPaymentMethodObject()
defaultPaymentMethod
.public void setDefaultPaymentMethodObject(PaymentMethod expandableObject)
public java.lang.String getBillingCycleAnchor()
phase_start
or automatic
. If phase_start
then
billing cycle anchor of the subscription is set to the start of the phase when entering the
phase. If automatic
then the billing cycle anchor is automatically modified as needed
when entering the phase. For more information, see the billing cycle documentation.
One of automatic
, or phase_start
.
public Subscription.BillingThresholds getBillingThresholds()
public java.lang.String getCollectionMethod()
charge_automatically
, or send_invoice
. When charging automatically,
Stripe will attempt to pay the underlying subscription at the end of each billing cycle using
the default source attached to the customer. When sending an invoice, Stripe will email your
customer an invoice with payment instructions.
One of charge_automatically
, or send_invoice
.
public SubscriptionSchedule.InvoiceSettings getInvoiceSettings()
public Subscription.TransferData getTransferData()
public void setBillingCycleAnchor(java.lang.String billingCycleAnchor)
phase_start
or automatic
. If phase_start
then
billing cycle anchor of the subscription is set to the start of the phase when entering the
phase. If automatic
then the billing cycle anchor is automatically modified as needed
when entering the phase. For more information, see the billing cycle documentation.
One of automatic
, or phase_start
.
public void setBillingThresholds(Subscription.BillingThresholds billingThresholds)
public void setCollectionMethod(java.lang.String collectionMethod)
charge_automatically
, or send_invoice
. When charging automatically,
Stripe will attempt to pay the underlying subscription at the end of each billing cycle using
the default source attached to the customer. When sending an invoice, Stripe will email your
customer an invoice with payment instructions.
One of charge_automatically
, or send_invoice
.
public void setInvoiceSettings(SubscriptionSchedule.InvoiceSettings invoiceSettings)
public void setTransferData(Subscription.TransferData transferData)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object