Package com.adyen.model.management
Class KlarnaResponseInfo
- java.lang.Object
-
- com.adyen.model.management.KlarnaResponseInfo
-
public class KlarnaResponseInfo extends Object
KlarnaResponseInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKlarnaResponseInfo.RegionEnumThe region of operation.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AUTO_CAPTUREstatic StringJSON_PROPERTY_DISPUTE_EMAILstatic StringJSON_PROPERTY_REGIONstatic StringJSON_PROPERTY_SUPPORT_EMAIL
-
Constructor Summary
Constructors Constructor Description KlarnaResponseInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KlarnaResponseInfoautoCapture(Boolean autoCapture)Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture).KlarnaResponseInfodisputeEmail(String disputeEmail)The email address for disputes.booleanequals(Object o)Return true if this KlarnaResponseInfo object is equal to o.static KlarnaResponseInfofromJson(String jsonString)Create an instance of KlarnaResponseInfo given an JSON stringBooleangetAutoCapture()Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture).StringgetDisputeEmail()The email address for disputes.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.KlarnaResponseInfo.RegionEnumgetRegion()The region of operation.StringgetSupportEmail()The email address of merchant support.inthashCode()KlarnaResponseInfoincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.KlarnaResponseInforegion(KlarnaResponseInfo.RegionEnum region)The region of operation.voidsetAutoCapture(Boolean autoCapture)Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture).voidsetDisputeEmail(String disputeEmail)The email address for disputes.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetRegion(KlarnaResponseInfo.RegionEnum region)The region of operation.voidsetSupportEmail(String supportEmail)The email address of merchant support.KlarnaResponseInfosupportEmail(String supportEmail)The email address of merchant support.StringtoJson()Convert an instance of KlarnaResponseInfo to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AUTO_CAPTURE
public static final String JSON_PROPERTY_AUTO_CAPTURE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DISPUTE_EMAIL
public static final String JSON_PROPERTY_DISPUTE_EMAIL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REGION
public static final String JSON_PROPERTY_REGION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUPPORT_EMAIL
public static final String JSON_PROPERTY_SUPPORT_EMAIL
- See Also:
- Constant Field Values
-
-
Method Detail
-
autoCapture
public KlarnaResponseInfo autoCapture(Boolean autoCapture)
Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture).- Parameters:
autoCapture- Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture).- Returns:
- the current
KlarnaResponseInfoinstance, allowing for method chaining
-
getAutoCapture
public Boolean getAutoCapture()
Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture).- Returns:
- autoCapture Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture).
-
setAutoCapture
public void setAutoCapture(Boolean autoCapture)
Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture).- Parameters:
autoCapture- Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture).
-
disputeEmail
public KlarnaResponseInfo disputeEmail(String disputeEmail)
The email address for disputes.- Parameters:
disputeEmail- The email address for disputes.- Returns:
- the current
KlarnaResponseInfoinstance, allowing for method chaining
-
getDisputeEmail
public String getDisputeEmail()
The email address for disputes.- Returns:
- disputeEmail The email address for disputes.
-
setDisputeEmail
public void setDisputeEmail(String disputeEmail)
The email address for disputes.- Parameters:
disputeEmail- The email address for disputes.
-
region
public KlarnaResponseInfo region(KlarnaResponseInfo.RegionEnum region)
The region of operation.- Parameters:
region- The region of operation.- Returns:
- the current
KlarnaResponseInfoinstance, allowing for method chaining
-
getRegion
public KlarnaResponseInfo.RegionEnum getRegion()
The region of operation.- Returns:
- region The region of operation.
-
setRegion
public void setRegion(KlarnaResponseInfo.RegionEnum region)
The region of operation.- Parameters:
region- The region of operation.
-
supportEmail
public KlarnaResponseInfo supportEmail(String supportEmail)
The email address of merchant support.- Parameters:
supportEmail- The email address of merchant support.- Returns:
- the current
KlarnaResponseInfoinstance, allowing for method chaining
-
getSupportEmail
public String getSupportEmail()
The email address of merchant support.- Returns:
- supportEmail The email address of merchant support.
-
setSupportEmail
public void setSupportEmail(String supportEmail)
The email address of merchant support.- Parameters:
supportEmail- The email address of merchant support.
-
includeNullValues
public KlarnaResponseInfo includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this KlarnaResponseInfo object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static KlarnaResponseInfo fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of KlarnaResponseInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of KlarnaResponseInfo
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to KlarnaResponseInfo
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of KlarnaResponseInfo to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-