Class LineItem
- java.lang.Object
-
- java.util.AbstractMap<java.lang.String,java.lang.Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.rcsbusinessmessaging.v1.model.LineItem
-
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
public final class LineItem extends com.google.api.client.json.GenericJsonA line item in a payment request.This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the RCS Business Messaging API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
-
Constructor Summary
Constructors Constructor Description LineItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LineItemclone()MoneygetAmount()The amount of the line item.java.lang.StringgetLabel()The text for a line item.java.lang.StringgetSubText()(Optional) Text that is displayed in a smaller font below the line item label.java.lang.StringgetType()The line item type.LineItemset(java.lang.String fieldName, java.lang.Object value)LineItemsetAmount(Money amount)The amount of the line item.LineItemsetLabel(java.lang.String label)The text for a line item.LineItemsetSubText(java.lang.String subText)(Optional) Text that is displayed in a smaller font below the line item label.LineItemsetType(java.lang.String type)The line item type.-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
-
-
-
-
Method Detail
-
getAmount
public Money getAmount()
The amount of the line item. SECONDARY line items may have a negative amount.- Returns:
- value or
nullfor none
-
setAmount
public LineItem setAmount(Money amount)
The amount of the line item. SECONDARY line items may have a negative amount.- Parameters:
amount- amount ornullfor none
-
getLabel
public java.lang.String getLabel()
The text for a line item. For example, "Total due".- Returns:
- value or
nullfor none
-
setLabel
public LineItem setLabel(java.lang.String label)
The text for a line item. For example, "Total due".- Parameters:
label- label ornullfor none
-
getSubText
public java.lang.String getSubText()
(Optional) Text that is displayed in a smaller font below the line item label.- Returns:
- value or
nullfor none
-
setSubText
public LineItem setSubText(java.lang.String subText)
(Optional) Text that is displayed in a smaller font below the line item label.- Parameters:
subText- subText ornullfor none
-
getType
public java.lang.String getType()
The line item type.- Returns:
- value or
nullfor none
-
setType
public LineItem setType(java.lang.String type)
The line item type.- Parameters:
type- type ornullfor none
-
set
public LineItem set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public LineItem clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-