Package com.adyen.model.payment
Class AdditionalDataOpi
- java.lang.Object
-
- com.adyen.model.payment.AdditionalDataOpi
-
public class AdditionalDataOpi extends Object
AdditionalDataOpi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAdditionalDataOpi.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_OPI_INCLUDE_TRANS_TOKEN
-
Constructor Summary
Constructors Constructor Description AdditionalDataOpi()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static AdditionalDataOpifromJson(String jsonString)Create an instance of AdditionalDataOpi given an JSON stringStringgetOpiIncludeTransToken()Optional boolean indicator.inthashCode()AdditionalDataOpiopiIncludeTransToken(String opiIncludeTransToken)voidsetOpiIncludeTransToken(String opiIncludeTransToken)StringtoJson()Convert an instance of AdditionalDataOpi to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
opiIncludeTransToken
public AdditionalDataOpi opiIncludeTransToken(String opiIncludeTransToken)
-
getOpiIncludeTransToken
public String getOpiIncludeTransToken()
Optional boolean indicator. Set to **true** if you want an ecommerce transaction to return an `opi.transToken` as additional data in the response. You can store this Oracle Payment Interface token in your Oracle Opera database. For more information and required settings, see [Oracle Opera](https://docs.adyen.com/plugins/oracle-opera#opi-token-ecommerce).- Returns:
- opiIncludeTransToken
-
setOpiIncludeTransToken
public void setOpiIncludeTransToken(String opiIncludeTransToken)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to AdditionalDataOpi
-
fromJson
public static AdditionalDataOpi fromJson(String jsonString) throws IOException
Create an instance of AdditionalDataOpi given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AdditionalDataOpi
- Throws:
IOException- if the JSON string is invalid with respect to AdditionalDataOpi
-
toJson
public String toJson()
Convert an instance of AdditionalDataOpi to an JSON string- Returns:
- JSON string
-
-