Package com.adyen.model.dataprotection
Class SubjectErasureByPspReferenceRequest
- java.lang.Object
-
- com.adyen.model.dataprotection.SubjectErasureByPspReferenceRequest
-
public class SubjectErasureByPspReferenceRequest extends Object
SubjectErasureByPspReferenceRequest
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_FORCE_ERASUREstatic StringJSON_PROPERTY_MERCHANT_ACCOUNTstatic StringJSON_PROPERTY_PSP_REFERENCE
-
Constructor Summary
Constructors Constructor Description SubjectErasureByPspReferenceRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this SubjectErasureByPspReferenceRequest object is equal to o.SubjectErasureByPspReferenceRequestforceErasure(Boolean forceErasure)Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction.static SubjectErasureByPspReferenceRequestfromJson(String jsonString)Create an instance of SubjectErasureByPspReferenceRequest given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.BooleangetForceErasure()Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction.StringgetMerchantAccount()Your merchant accountStringgetPspReference()The PSP reference of the payment.inthashCode()SubjectErasureByPspReferenceRequestincludeNullValues(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.SubjectErasureByPspReferenceRequestmerchantAccount(String merchantAccount)Your merchant accountSubjectErasureByPspReferenceRequestpspReference(String pspReference)The PSP reference of the payment.voidsetForceErasure(Boolean forceErasure)Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetMerchantAccount(String merchantAccount)Your merchant accountvoidsetPspReference(String pspReference)The PSP reference of the payment.StringtoJson()Convert an instance of SubjectErasureByPspReferenceRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_FORCE_ERASURE
public static final String JSON_PROPERTY_FORCE_ERASURE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_ACCOUNT
public static final String JSON_PROPERTY_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PSP_REFERENCE
public static final String JSON_PROPERTY_PSP_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
forceErasure
public SubjectErasureByPspReferenceRequest forceErasure(Boolean forceErasure)
Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction. This only deletes the shopper-related data for the specific payment, but does not cancel the existing recurring transaction.- Parameters:
forceErasure- Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction. This only deletes the shopper-related data for the specific payment, but does not cancel the existing recurring transaction.- Returns:
- the current
SubjectErasureByPspReferenceRequestinstance, allowing for method chaining
-
getForceErasure
public Boolean getForceErasure()
Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction. This only deletes the shopper-related data for the specific payment, but does not cancel the existing recurring transaction.- Returns:
- forceErasure Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction. This only deletes the shopper-related data for the specific payment, but does not cancel the existing recurring transaction.
-
setForceErasure
public void setForceErasure(Boolean forceErasure)
Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction. This only deletes the shopper-related data for the specific payment, but does not cancel the existing recurring transaction.- Parameters:
forceErasure- Set this to **true** if you want to delete shopper-related data, even if the shopper has an existing recurring transaction. This only deletes the shopper-related data for the specific payment, but does not cancel the existing recurring transaction.
-
merchantAccount
public SubjectErasureByPspReferenceRequest merchantAccount(String merchantAccount)
Your merchant account- Parameters:
merchantAccount- Your merchant account- Returns:
- the current
SubjectErasureByPspReferenceRequestinstance, allowing for method chaining
-
getMerchantAccount
public String getMerchantAccount()
Your merchant account- Returns:
- merchantAccount Your merchant account
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
Your merchant account- Parameters:
merchantAccount- Your merchant account
-
pspReference
public SubjectErasureByPspReferenceRequest pspReference(String pspReference)
The PSP reference of the payment. We will delete all shopper-related data for this payment.- Parameters:
pspReference- The PSP reference of the payment. We will delete all shopper-related data for this payment.- Returns:
- the current
SubjectErasureByPspReferenceRequestinstance, allowing for method chaining
-
getPspReference
public String getPspReference()
The PSP reference of the payment. We will delete all shopper-related data for this payment.- Returns:
- pspReference The PSP reference of the payment. We will delete all shopper-related data for this payment.
-
setPspReference
public void setPspReference(String pspReference)
The PSP reference of the payment. We will delete all shopper-related data for this payment.- Parameters:
pspReference- The PSP reference of the payment. We will delete all shopper-related data for this payment.
-
includeNullValues
public SubjectErasureByPspReferenceRequest 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 SubjectErasureByPspReferenceRequest 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 SubjectErasureByPspReferenceRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of SubjectErasureByPspReferenceRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SubjectErasureByPspReferenceRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to SubjectErasureByPspReferenceRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of SubjectErasureByPspReferenceRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-