Package com.adyen.model.management
Class PayPalInfo
- java.lang.Object
-
- com.adyen.model.management.PayPalInfo
-
public class PayPalInfo extends Object
PayPalInfo
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DIRECT_CAPTUREstatic StringJSON_PROPERTY_PAYER_IDstatic StringJSON_PROPERTY_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)Indicates if direct (immediate) capture for PayPal is enabled.booleanequals(Object o)Return true if this PayPalInfo object is equal to o.static PayPalInfofromJson(String jsonString)Create an instance of PayPalInfo given an JSON stringBooleangetDirectCapture()Indicates if direct (immediate) capture for PayPal is enabled.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetPayerId()PayPal Merchant ID.StringgetSubject()Your business email address.inthashCode()PayPalInfoincludeNullValues(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.PayPalInfopayerId(String payerId)PayPal Merchant ID.voidsetDirectCapture(Boolean directCapture)Indicates if direct (immediate) capture for PayPal is enabled.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetPayerId(String payerId)PayPal Merchant ID.voidsetSubject(String subject)Your business email address.PayPalInfosubject(String subject)Your business email address.StringtoJson()Convert an instance of PayPalInfo to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DIRECT_CAPTURE
public static final String JSON_PROPERTY_DIRECT_CAPTURE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYER_ID
public static final String JSON_PROPERTY_PAYER_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUBJECT
public static final String JSON_PROPERTY_SUBJECT
- See Also:
- Constant Field Values
-
-
Method Detail
-
directCapture
public PayPalInfo directCapture(Boolean directCapture)
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**.- Parameters:
directCapture- 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:
- the current
PayPalInfoinstance, allowing for method chaining
-
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 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**.
-
setDirectCapture
public void setDirectCapture(Boolean directCapture)
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**.- Parameters:
directCapture- 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**.
-
payerId
public PayPalInfo payerId(String payerId)
PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters.- Parameters:
payerId- PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters.- Returns:
- the current
PayPalInfoinstance, allowing for method chaining
-
getPayerId
public String getPayerId()
PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters.- Returns:
- payerId PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters.
-
setPayerId
public void setPayerId(String payerId)
PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters.- Parameters:
payerId- PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters.
-
subject
public PayPalInfo subject(String subject)
Your business email address.- Parameters:
subject- Your business email address.- Returns:
- the current
PayPalInfoinstance, allowing for method chaining
-
getSubject
public String getSubject()
Your business email address.- Returns:
- subject Your business email address.
-
setSubject
public void setSubject(String subject)
Your business email address.- Parameters:
subject- Your business email address.
-
includeNullValues
public PayPalInfo 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 PayPalInfo 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 PayPalInfo fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PayPalInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PayPalInfo
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PayPalInfo
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PayPalInfo to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-