Package com.stripe.param
Class MarginCreateParams
java.lang.Object
com.stripe.net.ApiRequestParams
com.stripe.param.MarginCreateParams
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.stripe.net.ApiRequestParams
ApiRequestParams.EnumParam
-
Field Summary
Fields inherited from class com.stripe.net.ApiRequestParams
EXTRA_PARAMS_KEY
-
Method Summary
Modifier and TypeMethodDescriptionstatic MarginCreateParams.Builder
builder()
protected boolean
boolean
Whether the margin can be applied to invoices, invoice items, or invoice line items or not.Specifies which fields in the response should be expanded.Map of extra parameters for custom features not available in this client library.Set of key-value pairs that you can attach to an object.getName()
Name of the margin, which is displayed to customers, such as on invoices.Required. Percent that will be taken off the subtotal before tax (after all other discounts and promotions) of any invoice to which the margin is applied.int
hashCode()
Methods inherited from class com.stripe.net.ApiRequestParams
paramsToMap, toMap
-
Method Details
-
builder
-
getActive
Whether the margin can be applied to invoices, invoice items, or invoice line items or not. Defaults totrue
. -
getExpand
Specifies which fields in the response should be expanded. -
getExtraParams
Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's@SerializedName
value. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata
. -
getName
Name of the margin, which is displayed to customers, such as on invoices. -
getPercentOff
Required. Percent that will be taken off the subtotal before tax (after all other discounts and promotions) of any invoice to which the margin is applied. -
equals
-
canEqual
-
hashCode
public int hashCode()
-