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 stringBooleangetForceErasure()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()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.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-- 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
-
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-
-
merchantAccount
public SubjectErasureByPspReferenceRequest merchantAccount(String merchantAccount)
Your merchant account- Parameters:
merchantAccount-- Returns:
- the current
SubjectErasureByPspReferenceRequestinstance, allowing for method chaining
-
getMerchantAccount
public String getMerchantAccount()
Your merchant account- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
Your merchant account- Parameters:
merchantAccount-
-
pspReference
public SubjectErasureByPspReferenceRequest pspReference(String pspReference)
The PSP reference of the payment. We will delete all shopper-related data for this payment.- Parameters:
pspReference-- 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
-
setPspReference
public void setPspReference(String pspReference)
The PSP reference of the payment. We will delete all shopper-related data for this payment.- Parameters:
pspReference-
-
equals
public boolean equals(Object o)
Return true if this SubjectErasureByPspReferenceRequest object is equal to o.
-
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
-
-