Package com.adyen.model.transferwebhooks
Class InterchangeData
- java.lang.Object
-
- com.adyen.model.transferwebhooks.InterchangeData
-
public class InterchangeData extends Object
InterchangeData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInterchangeData.TypeEnumThe type of events data.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_INTERCHANGE_AMOUNTstatic StringJSON_PROPERTY_INTERCHANGE_RATE_INDICATORstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description InterchangeData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this InterchangeData object is equal to o.static InterchangeDatafromJson(String jsonString)Create an instance of InterchangeData given an JSON stringAmountgetInterchangeAmount()Get interchangeAmountStringgetInterchangeRateIndicator()A 3-character alphanumeric code assigned by Visa that identifies the specific interchange reimbursement program a transaction qualified for.InterchangeData.TypeEnumgetType()The type of events data.inthashCode()InterchangeDatainterchangeAmount(Amount interchangeAmount)interchangeAmountInterchangeDatainterchangeRateIndicator(String interchangeRateIndicator)A 3-character alphanumeric code assigned by Visa that identifies the specific interchange reimbursement program a transaction qualified for.voidsetInterchangeAmount(Amount interchangeAmount)interchangeAmountvoidsetInterchangeRateIndicator(String interchangeRateIndicator)A 3-character alphanumeric code assigned by Visa that identifies the specific interchange reimbursement program a transaction qualified for.voidsetType(InterchangeData.TypeEnum type)The type of events data.StringtoJson()Convert an instance of InterchangeData to an JSON stringStringtoString()InterchangeDatatype(InterchangeData.TypeEnum type)The type of events data.
-
-
-
Field Detail
-
JSON_PROPERTY_INTERCHANGE_AMOUNT
public static final String JSON_PROPERTY_INTERCHANGE_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INTERCHANGE_RATE_INDICATOR
public static final String JSON_PROPERTY_INTERCHANGE_RATE_INDICATOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
interchangeAmount
public InterchangeData interchangeAmount(Amount interchangeAmount)
interchangeAmount- Parameters:
interchangeAmount-- Returns:
- the current
InterchangeDatainstance, allowing for method chaining
-
getInterchangeAmount
public Amount getInterchangeAmount()
Get interchangeAmount- Returns:
- interchangeAmount
-
setInterchangeAmount
public void setInterchangeAmount(Amount interchangeAmount)
interchangeAmount- Parameters:
interchangeAmount-
-
interchangeRateIndicator
public InterchangeData interchangeRateIndicator(String interchangeRateIndicator)
A 3-character alphanumeric code assigned by Visa that identifies the specific interchange reimbursement program a transaction qualified for. The code is assigned based on the card type, entry mode, and security data provided.- Parameters:
interchangeRateIndicator- A 3-character alphanumeric code assigned by Visa that identifies the specific interchange reimbursement program a transaction qualified for. The code is assigned based on the card type, entry mode, and security data provided.- Returns:
- the current
InterchangeDatainstance, allowing for method chaining
-
getInterchangeRateIndicator
public String getInterchangeRateIndicator()
A 3-character alphanumeric code assigned by Visa that identifies the specific interchange reimbursement program a transaction qualified for. The code is assigned based on the card type, entry mode, and security data provided.- Returns:
- interchangeRateIndicator A 3-character alphanumeric code assigned by Visa that identifies the specific interchange reimbursement program a transaction qualified for. The code is assigned based on the card type, entry mode, and security data provided.
-
setInterchangeRateIndicator
public void setInterchangeRateIndicator(String interchangeRateIndicator)
A 3-character alphanumeric code assigned by Visa that identifies the specific interchange reimbursement program a transaction qualified for. The code is assigned based on the card type, entry mode, and security data provided.- Parameters:
interchangeRateIndicator- A 3-character alphanumeric code assigned by Visa that identifies the specific interchange reimbursement program a transaction qualified for. The code is assigned based on the card type, entry mode, and security data provided.
-
type
public InterchangeData type(InterchangeData.TypeEnum type)
The type of events data. Possible values: - **interchangeData**: information about the interchange fee applied to a transaction.- Parameters:
type- The type of events data. Possible values: - **interchangeData**: information about the interchange fee applied to a transaction.- Returns:
- the current
InterchangeDatainstance, allowing for method chaining
-
getType
public InterchangeData.TypeEnum getType()
The type of events data. Possible values: - **interchangeData**: information about the interchange fee applied to a transaction.- Returns:
- type The type of events data. Possible values: - **interchangeData**: information about the interchange fee applied to a transaction.
-
setType
public void setType(InterchangeData.TypeEnum type)
The type of events data. Possible values: - **interchangeData**: information about the interchange fee applied to a transaction.- Parameters:
type- The type of events data. Possible values: - **interchangeData**: information about the interchange fee applied to a transaction.
-
equals
public boolean equals(Object o)
Return true if this InterchangeData object is equal to o.
-
fromJson
public static InterchangeData fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of InterchangeData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of InterchangeData
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to InterchangeData
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of InterchangeData to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-