Package com.adyen.model.management
Class PayPalInfo
- java.lang.Object
-
- com.adyen.model.management.PayPalInfo
-
public class PayPalInfo extends Object
PayPalInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPayPalInfo.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_DIRECT_CAPTUREstatic StringSERIALIZED_NAME_PAYER_IDstatic StringSERIALIZED_NAME_SUBJECT
-
Constructor Summary
Constructors Constructor Description PayPalInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PayPalInfodirectCapture(Boolean directCapture)booleanequals(Object o)static PayPalInfofromJson(String jsonString)Create an instance of PayPalInfo given an JSON stringBooleangetDirectCapture()Indicates if direct (immediate) capture for PayPal is enabled.StringgetPayerId()PayPal Merchant ID.StringgetSubject()Your business email address.inthashCode()PayPalInfopayerId(String payerId)voidsetDirectCapture(Boolean directCapture)voidsetPayerId(String payerId)voidsetSubject(String subject)PayPalInfosubject(String subject)StringtoJson()Convert an instance of PayPalInfo to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_DIRECT_CAPTURE
public static final String SERIALIZED_NAME_DIRECT_CAPTURE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAYER_ID
public static final String SERIALIZED_NAME_PAYER_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUBJECT
public static final String SERIALIZED_NAME_SUBJECT
- See Also:
- Constant Field Values
-
-
Method Detail
-
directCapture
public PayPalInfo directCapture(Boolean directCapture)
-
getDirectCapture
public Boolean getDirectCapture()
Indicates if direct (immediate) capture for PayPal is enabled. If set to **true**, this setting overrides the [capture](https://docs.adyen.com/online-payments/capture) settings of your merchant account. Default value: **true**.- Returns:
- directCapture
-
setDirectCapture
public void setDirectCapture(Boolean directCapture)
-
payerId
public PayPalInfo payerId(String payerId)
-
getPayerId
public String getPayerId()
PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters.- Returns:
- payerId
-
setPayerId
public void setPayerId(String payerId)
-
subject
public PayPalInfo subject(String subject)
-
getSubject
public String getSubject()
Your business email address.- Returns:
- subject
-
setSubject
public void setSubject(String subject)
-
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 PayPalInfo
-
fromJson
public static PayPalInfo fromJson(String jsonString) throws IOException
Create an instance of PayPalInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PayPalInfo
- Throws:
IOException- if the JSON string is invalid with respect to PayPalInfo
-
toJson
public String toJson()
Convert an instance of PayPalInfo to an JSON string- Returns:
- JSON string
-
-