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.KlarnaInfo.RegionEnumgetRegion()The region of operation.StringgetSupportEmail()The email address of merchant support.inthashCode()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.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-- 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
-
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-
-
disputeEmail
public KlarnaInfo disputeEmail(String disputeEmail)
The email address for disputes.- Parameters:
disputeEmail-- Returns:
- the current
KlarnaInfoinstance, allowing for method chaining
-
getDisputeEmail
public String getDisputeEmail()
The email address for disputes.- Returns:
- disputeEmail
-
setDisputeEmail
public void setDisputeEmail(String disputeEmail)
The email address for disputes.- Parameters:
disputeEmail-
-
region
public KlarnaInfo region(KlarnaInfo.RegionEnum region)
The region of operation. For example, **NA**, **EU**, **CH**, **AU**.- Parameters:
region-- 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
-
setRegion
public void setRegion(KlarnaInfo.RegionEnum region)
The region of operation. For example, **NA**, **EU**, **CH**, **AU**.- Parameters:
region-
-
supportEmail
public KlarnaInfo supportEmail(String supportEmail)
The email address of merchant support.- Parameters:
supportEmail-- Returns:
- the current
KlarnaInfoinstance, allowing for method chaining
-
getSupportEmail
public String getSupportEmail()
The email address of merchant support.- Returns:
- supportEmail
-
setSupportEmail
public void setSupportEmail(String supportEmail)
The email address of merchant support.- Parameters:
supportEmail-
-
equals
public boolean equals(Object o)
Return true if this KlarnaInfo object is equal to o.
-
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
-
-