Package com.stripe.model.v2.tax
Class ManualRule
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.tax.ManualRule
- All Implemented Interfaces:
HasId,StripeObjectInterface
A ManualRule holds tax rates for a BillableItem. It can hold at most 5 distinct tax rates.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classLocation where the rule applies.static classFor more details about Product, please refer to the API Reference.static classFor more details about ScheduledTaxRate, 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 booleanbooleanThe time at which the ManualRule object was created.getId()The ID of the ManualRule object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.Location where the rule applies.String representing the object's type.Products associated with the rule.Tax rates to be applied.The status of the ManualRule object.inthashCode()voidsetCreated(Instant created) The time at which the ManualRule object was created.voidThe ID of the ManualRule object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetLocation(ManualRule.Location location) Location where the rule applies.voidString representing the object's type.voidsetProducts(List<ManualRule.Product> products) Products associated with the rule.voidsetScheduledTaxRates(List<ManualRule.ScheduledTaxRate> scheduledTaxRates) Tax rates to be applied.voidThe status of the ManualRule object.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
ManualRule
public ManualRule()
-
-
Method Details
-
getCreated
The time at which the ManualRule object was created. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getLocation
Location where the rule applies. -
getObject
String representing the object's type. Objects of the same type share the same value of the object field.Equal to
v2.tax.manual_rule. -
getProducts
Products associated with the rule. -
getScheduledTaxRates
Tax rates to be applied. -
getStatus
The status of the ManualRule object.One of
active, orinactive. -
setCreated
The time at which the ManualRule object was created. -
setId
The ID of the ManualRule object. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setLocation
Location where the rule applies. -
setObject
String representing the object's type. Objects of the same type share the same value of the object field.Equal to
v2.tax.manual_rule. -
setProducts
Products associated with the rule. -
setScheduledTaxRates
Tax rates to be applied. -
setStatus
The status of the ManualRule object.One of
active, orinactive. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
The ID of the ManualRule object.
-