Package com.stripe.model.v2.billing
Class CadenceSpendModifier
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.CadenceSpendModifier
- All Implemented Interfaces:
HasId,StripeObjectInterface
A Spend Modifier changes how spend is computed when billing for specific cadence.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMax invoice spend details. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe ID of the Billing Cadence this spend modifier is associated with.Timestamp of when the object was created.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.Max invoice spend details.String representing the object's type.getType()The type of the spend modifier.inthashCode()voidsetBillingCadence(String billingCadence) The ID of the Billing Cadence this spend modifier is associated with.voidsetCreated(Instant created) Timestamp of when the object was created.voidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMaxBillingPeriodSpend(CadenceSpendModifier.MaxBillingPeriodSpend maxBillingPeriodSpend) Max invoice spend details.voidString representing the object's type.voidThe type of the spend modifier.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
CadenceSpendModifier
public CadenceSpendModifier()
-
-
Method Details
-
getBillingCadence
The ID of the Billing Cadence this spend modifier is associated with. -
getCreated
Timestamp of when the object was created. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getMaxBillingPeriodSpend
Max invoice spend details. Present if type ismax_billing_period_spend. -
getObject
String representing the object's type. Objects of the same type share the same value of the object field.Equal to
v2.billing.cadence_spend_modifier. -
getType
The type of the spend modifier.Equal to
max_billing_period_spend. -
setBillingCadence
The ID of the Billing Cadence this spend modifier is associated with. -
setCreated
Timestamp of when the object was created. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setMaxBillingPeriodSpend
public void setMaxBillingPeriodSpend(CadenceSpendModifier.MaxBillingPeriodSpend maxBillingPeriodSpend) Max invoice spend details. Present if type ismax_billing_period_spend. -
setObject
String representing the object's type. Objects of the same type share the same value of the object field.Equal to
v2.billing.cadence_spend_modifier. -
setType
The type of the spend modifier.Equal to
max_billing_period_spend. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-