Class PaymentRequestAction
- 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.PaymentRequestAction
-
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
public final class PaymentRequestAction extends com.google.api.client.json.GenericJsonPayment request action.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 PaymentRequestAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentRequestActionclone()java.lang.StringgetCompletedMessage()Text that replaces the payment request text when the transaction is complete.java.lang.StringgetExpiredMessage()Text that replaces the payment request text when the request is expired.java.lang.StringgetExpireTime()(Optional) A timestamp of when the payment request expires.java.util.List<LineItem>getItems()Payment request line items, including regular items, taxes, sub-total, and shipping.java.util.List<Method>getPaymentMethods()Supported payment methods.java.lang.StringgetRequestId()The agent-assigned ID of the payment request.java.lang.StringgetSignature()This field is set by the RBM platform.LineItemgetTotal()The total amount of the payment request.PaymentRequestActionset(java.lang.String fieldName, java.lang.Object value)PaymentRequestActionsetCompletedMessage(java.lang.String completedMessage)Text that replaces the payment request text when the transaction is complete.PaymentRequestActionsetExpiredMessage(java.lang.String expiredMessage)Text that replaces the payment request text when the request is expired.PaymentRequestActionsetExpireTime(java.lang.String expireTime)(Optional) A timestamp of when the payment request expires.PaymentRequestActionsetItems(java.util.List<LineItem> items)Payment request line items, including regular items, taxes, sub-total, and shipping.PaymentRequestActionsetPaymentMethods(java.util.List<Method> paymentMethods)Supported payment methods.PaymentRequestActionsetRequestId(java.lang.String requestId)The agent-assigned ID of the payment request.PaymentRequestActionsetSignature(java.lang.String signature)This field is set by the RBM platform.PaymentRequestActionsetTotal(LineItem total)The total amount of the payment request.-
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
-
getCompletedMessage
public java.lang.String getCompletedMessage()
Text that replaces the payment request text when the transaction is complete.- Returns:
- value or
nullfor none
-
setCompletedMessage
public PaymentRequestAction setCompletedMessage(java.lang.String completedMessage)
Text that replaces the payment request text when the transaction is complete.- Parameters:
completedMessage- completedMessage ornullfor none
-
getExpireTime
public java.lang.String getExpireTime()
(Optional) A timestamp of when the payment request expires. If a payment request expires, the request becomes invalid. If you specify a timestamp, the RCS-enabled messaging app doesn't verify an expiration time with the RBM agent. If you don't specify a timestamp, the payment request only expires if the agent flags the request as expired via the experation check webhook.- Returns:
- value or
nullfor none
-
setExpireTime
public PaymentRequestAction setExpireTime(java.lang.String expireTime)
(Optional) A timestamp of when the payment request expires. If a payment request expires, the request becomes invalid. If you specify a timestamp, the RCS-enabled messaging app doesn't verify an expiration time with the RBM agent. If you don't specify a timestamp, the payment request only expires if the agent flags the request as expired via the experation check webhook.- Parameters:
expireTime- expireTime ornullfor none
-
getExpiredMessage
public java.lang.String getExpiredMessage()
Text that replaces the payment request text when the request is expired.- Returns:
- value or
nullfor none
-
setExpiredMessage
public PaymentRequestAction setExpiredMessage(java.lang.String expiredMessage)
Text that replaces the payment request text when the request is expired.- Parameters:
expiredMessage- expiredMessage ornullfor none
-
getItems
public java.util.List<LineItem> getItems()
Payment request line items, including regular items, taxes, sub-total, and shipping.- Returns:
- value or
nullfor none
-
setItems
public PaymentRequestAction setItems(java.util.List<LineItem> items)
Payment request line items, including regular items, taxes, sub-total, and shipping.- Parameters:
items- items ornullfor none
-
getPaymentMethods
public java.util.List<Method> getPaymentMethods()
Supported payment methods.- Returns:
- value or
nullfor none
-
setPaymentMethods
public PaymentRequestAction setPaymentMethods(java.util.List<Method> paymentMethods)
Supported payment methods.- Parameters:
paymentMethods- paymentMethods ornullfor none
-
getRequestId
public java.lang.String getRequestId()
The agent-assigned ID of the payment request. This may be a UUID, as defined in https://tools.ietf.org/html/rfc4122.- Returns:
- value or
nullfor none
-
setRequestId
public PaymentRequestAction setRequestId(java.lang.String requestId)
The agent-assigned ID of the payment request. This may be a UUID, as defined in https://tools.ietf.org/html/rfc4122.- Parameters:
requestId- requestId ornullfor none
-
getSignature
public java.lang.String getSignature()
This field is set by the RBM platform. Do not include it when creating a payment request. The field resolves to a checksum the RBM platform uses to validate the payment request.- Returns:
- value or
nullfor none
-
setSignature
public PaymentRequestAction setSignature(java.lang.String signature)
This field is set by the RBM platform. Do not include it when creating a payment request. The field resolves to a checksum the RBM platform uses to validate the payment request.- Parameters:
signature- signature ornullfor none
-
getTotal
public LineItem getTotal()
The total amount of the payment request. The value must be positive.- Returns:
- value or
nullfor none
-
setTotal
public PaymentRequestAction setTotal(LineItem total)
The total amount of the payment request. The value must be positive.- Parameters:
total- total ornullfor none
-
set
public PaymentRequestAction set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public PaymentRequestAction clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-