Package com.adyen.model.management
Class KlarnaInfo
- java.lang.Object
-
- com.adyen.model.management.KlarnaInfo
-
public class KlarnaInfo extends Object
KlarnaInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKlarnaInfo.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 KlarnaInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KlarnaInfoautoCapture(Boolean autoCapture)Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture).KlarnaInfodisputeEmail(String disputeEmail)The email address for disputes.booleanequals(Object o)Return true if this KlarnaInfo object is equal to o.static KlarnaInfofromJson(String jsonString)Create an instance of KlarnaInfo 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.KlarnaInfo.RegionEnumgetRegion()The region of operation.StringgetSupportEmail()The email address of merchant support.inthashCode()KlarnaInfoincludeNullValues(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.KlarnaInforegion(KlarnaInfo.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(KlarnaInfo.RegionEnum region)The region of operation.voidsetSupportEmail(String supportEmail)The email address of merchant support.KlarnaInfosupportEmail(String supportEmail)The email address of merchant support.StringtoJson()Convert an instance of KlarnaInfo 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 KlarnaInfo autoCapture(Boolean autoCapture)
Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: **false**.- Parameters:
autoCapture- Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: **false**.- Returns:
- the current
KlarnaInfoinstance, allowing for method chaining
-
getAutoCapture
public Boolean getAutoCapture()
Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: **false**.- Returns:
- autoCapture Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: **false**.
-
setAutoCapture
public void setAutoCapture(Boolean autoCapture)
Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: **false**.- Parameters:
autoCapture- Indicates the status of [Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture). Default value: **false**.
-
disputeEmail
public KlarnaInfo disputeEmail(String disputeEmail)
The email address for disputes.- Parameters:
disputeEmail- The email address for disputes.- Returns:
- the current
KlarnaInfoinstance, 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 KlarnaInfo region(KlarnaInfo.RegionEnum region)
The region of operation. For example, **NA**, **EU**, **CH**, **AU**.- Parameters:
region- The region of operation. For example, **NA**, **EU**, **CH**, **AU**.- Returns:
- the current
KlarnaInfoinstance, allowing for method chaining
-
getRegion
public KlarnaInfo.RegionEnum getRegion()
The region of operation. For example, **NA**, **EU**, **CH**, **AU**.- Returns:
- region The region of operation. For example, **NA**, **EU**, **CH**, **AU**.
-
setRegion
public void setRegion(KlarnaInfo.RegionEnum region)
The region of operation. For example, **NA**, **EU**, **CH**, **AU**.- Parameters:
region- The region of operation. For example, **NA**, **EU**, **CH**, **AU**.
-
supportEmail
public KlarnaInfo supportEmail(String supportEmail)
The email address of merchant support.- Parameters:
supportEmail- The email address of merchant support.- Returns:
- the current
KlarnaInfoinstance, 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 KlarnaInfo 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 KlarnaInfo 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 KlarnaInfo fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of KlarnaInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of KlarnaInfo
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to KlarnaInfo
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of KlarnaInfo to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-