com.anywherecommerce.android.sdk.models
Class SurchargeLineItem
-
java.lang.Object
-
com.anywherecommerce.android.sdk.models.LineItem
com.anywherecommerce.android.sdk.models.SurchargeLineItem -
All Implemented Interfaces:java.io.SerializableDirect Known Subclasses:FeeLineItem, TaxLineItem, TipLineItem-
public class <span class="typeNameLabel">SurchargeLineItem</span> extends
Created by Dan on 11/19/2017.
See Also:[Serialized Form](#serialized-form.html#com.anywherecommerce.android.sdk.models.SurchargeLineItem)
-
<a name="field.summary"></a>
### Field Summary
Modifier and TypeField and Description`
<a href="#com/anywherecommerce/android/sdk/models/SurchargeCalculationMethod.html" title="enum in com.anywherecommerce.android.sdk.models">SurchargeCalculationMethod</a>``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/models/SurchargeLineItem.html#calculationMethod">calculationMethod</a></span>` `java.lang.String``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/models/SurchargeLineItem.html#displayName">displayName</a></span>` `
<a href="#com/anywherecommerce/android/sdk/util/Amount.html" title="class in com.anywherecommerce.android.sdk.util">Amount</a>``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/models/SurchargeLineItem.html#rate">rate</a></span>`
<a name="fields.inherited.from.class.com.anywherecommerce.android.sdk.models.LineItem"></a>
### Fields inherited from class com.anywherecommerce.android.sdk.models.[LineItem](#com/anywherecommerce/android/sdk/models/LineItem.html "class in com.anywherecommerce.android.sdk.models")
`
<a href="#com/anywherecommerce/android/sdk/models/LineItem.html#amount">amount</a>,
<a href="#com/anywherecommerce/android/sdk/models/LineItem.html#name">name</a>,
<a href="#com/anywherecommerce/android/sdk/models/LineItem.html#type">type</a>`
<a name="constructor.summary"></a>
### Constructor Summary
Constructor and Description`<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/models/SurchargeLineItem.html#SurchargeLineItem--">SurchargeLineItem</a></span>()` ```
<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/models/SurchargeLineItem.html#SurchargeLineItem-java.lang.String-java.lang.String-">SurchargeLineItem</a></span>(java.lang.String name,
java.lang.String rate)
``` ```
<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/models/SurchargeLineItem.html#SurchargeLineItem-java.lang.String-java.lang.String-com.anywherecommerce.android.sdk.models.SurchargeCalculationMethod-">SurchargeLineItem</a></span>(java.lang.String name,
java.lang.String rate,
<a href="#com/anywherecommerce/android/sdk/models/SurchargeCalculationMethod.html" title="enum in com.anywherecommerce.android.sdk.models">SurchargeCalculationMethod</a> calculationMethod)
```
<a name="method.summary"></a>
### Method Summary
Modifier and TypeMethod and Description`
<a href="#com/anywherecommerce/android/sdk/util/Amount.html" title="class in com.anywherecommerce.android.sdk.util">Amount</a>``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/models/SurchargeLineItem.html#calculateOn-com.anywherecommerce.android.sdk.util.Amount-">calculateOn</a></span>(
<a href="#com/anywherecommerce/android/sdk/util/Amount.html" title="class in com.anywherecommerce.android.sdk.util">Amount</a> onAmount)` `java.lang.String``<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/models/SurchargeLineItem.html#getDisplayString--">getDisplayString</a></span>()` `protected void````
<span class="memberNameLink">
<a href="#com/anywherecommerce/android/sdk/models/SurchargeLineItem.html#initialize-java.lang.String-java.lang.String-com.anywherecommerce.android.sdk.models.SurchargeCalculationMethod-">initialize</a></span>(java.lang.String name,
java.lang.String rate,
<a href="#com/anywherecommerce/android/sdk/models/SurchargeCalculationMethod.html" title="enum in com.anywherecommerce.android.sdk.models">SurchargeCalculationMethod</a> calculationMethod)
```
<a name="methods.inherited.from.class.com.anywherecommerce.android.sdk.models.LineItem"></a>
### Methods inherited from class com.anywherecommerce.android.sdk.models.[LineItem](#com/anywherecommerce/android/sdk/models/LineItem.html "class in com.anywherecommerce.android.sdk.models")
`
<a href="#com/anywherecommerce/android/sdk/models/LineItem.html#getAmount--">getAmount</a>,
<a href="#com/anywherecommerce/android/sdk/models/LineItem.html#toString--">toString</a>`
<a name="methods.inherited.from.class.java.lang.Object"></a>
### Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`
-
<a name="field.detail"></a>
### Field Detail
<a name="rate"></a>
#### rate
`public
<a href="#com/anywherecommerce/android/sdk/util/Amount.html" title="class in com.anywherecommerce.android.sdk.util">Amount</a> rate`
<a name="displayName"></a>
#### displayName
`public java.lang.String displayName`
<a name="calculationMethod"></a>
#### calculationMethod
`public
<a href="#com/anywherecommerce/android/sdk/models/SurchargeCalculationMethod.html" title="enum in com.anywherecommerce.android.sdk.models">SurchargeCalculationMethod</a> calculationMethod`
<a name="constructor.detail"></a>
### Constructor Detail
<a name="SurchargeLineItem--"></a>
#### SurchargeLineItem
`public SurchargeLineItem()`
<a name="SurchargeLineItem-java.lang.String-java.lang.String-"></a>
#### SurchargeLineItem
```
public SurchargeLineItem(java.lang.String name,
java.lang.String rate)
```
<a name="SurchargeLineItem-java.lang.String-java.lang.String-com.anywherecommerce.android.sdk.models.SurchargeCalculationMethod-"></a>
#### SurchargeLineItem
```
public SurchargeLineItem(java.lang.String name,
java.lang.String rate,
<a href="#com/anywherecommerce/android/sdk/models/SurchargeCalculationMethod.html" title="enum in com.anywherecommerce.android.sdk.models">SurchargeCalculationMethod</a> calculationMethod)
```
<a name="method.detail"></a>
### Method Detail
<a name="initialize-java.lang.String-java.lang.String-com.anywherecommerce.android.sdk.models.SurchargeCalculationMethod-"></a>
#### initialize
```
protected void initialize(java.lang.String name,
java.lang.String rate,
<a href="#com/anywherecommerce/android/sdk/models/SurchargeCalculationMethod.html" title="enum in com.anywherecommerce.android.sdk.models">SurchargeCalculationMethod</a> calculationMethod)
```
<a name="getDisplayString--"></a>
#### getDisplayString
`public java.lang.String getDisplayString()`
<a name="calculateOn-com.anywherecommerce.android.sdk.util.Amount-"></a>
#### calculateOn
`public
<a href="#com/anywherecommerce/android/sdk/util/Amount.html" title="class in com.anywherecommerce.android.sdk.util">Amount</a> calculateOn(
<a href="#com/anywherecommerce/android/sdk/util/Amount.html" title="class in com.anywherecommerce.android.sdk.util">Amount</a> onAmount)`