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.StringgetPayerId()PayPal Merchant ID.StringgetSubject()Your business email address.inthashCode()PayPalInfopayerId(String payerId)PayPal Merchant ID.voidsetDirectCapture(Boolean directCapture)Indicates if direct (immediate) capture for PayPal is enabled.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-- 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
-
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-
-
payerId
public PayPalInfo payerId(String payerId)
PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters.- Parameters:
payerId-- 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
-
setPayerId
public void setPayerId(String payerId)
PayPal Merchant ID. Character length and limitations: 13 single-byte alphanumeric characters.- Parameters:
payerId-
-
subject
public PayPalInfo subject(String subject)
Your business email address.- Parameters:
subject-- Returns:
- the current
PayPalInfoinstance, allowing for method chaining
-
getSubject
public String getSubject()
Your business email address.- Returns:
- subject
-
setSubject
public void setSubject(String subject)
Your business email address.- Parameters:
subject-
-
equals
public boolean equals(Object o)
Return true if this PayPalInfo object is equal to o.
-
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
-
-