Package com.adyen.model.dataprotection
Class SubjectErasureByPspReferenceRequest
- java.lang.Object
-
- com.adyen.model.dataprotection.SubjectErasureByPspReferenceRequest
-
public class SubjectErasureByPspReferenceRequest extends Object
SubjectErasureByPspReferenceRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubjectErasureByPspReferenceRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_FORCE_ERASUREstatic StringSERIALIZED_NAME_MERCHANT_ACCOUNTstatic StringSERIALIZED_NAME_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)SubjectErasureByPspReferenceRequestforceErasure(Boolean forceErasure)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)SubjectErasureByPspReferenceRequestpspReference(String pspReference)voidsetForceErasure(Boolean forceErasure)voidsetMerchantAccount(String merchantAccount)voidsetPspReference(String pspReference)StringtoJson()Convert an instance of SubjectErasureByPspReferenceRequest 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_FORCE_ERASURE
public static final String SERIALIZED_NAME_FORCE_ERASURE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_ACCOUNT
public static final String SERIALIZED_NAME_MERCHANT_ACCOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PSP_REFERENCE
public static final String SERIALIZED_NAME_PSP_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
forceErasure
public SubjectErasureByPspReferenceRequest forceErasure(Boolean forceErasure)
-
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)
-
merchantAccount
public SubjectErasureByPspReferenceRequest merchantAccount(String merchantAccount)
-
getMerchantAccount
public String getMerchantAccount()
Your merchant account- Returns:
- merchantAccount
-
setMerchantAccount
public void setMerchantAccount(String merchantAccount)
-
pspReference
public SubjectErasureByPspReferenceRequest pspReference(String pspReference)
-
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)
-
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 SubjectErasureByPspReferenceRequest
-
fromJson
public static SubjectErasureByPspReferenceRequest fromJson(String jsonString) throws IOException
Create an instance of SubjectErasureByPspReferenceRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SubjectErasureByPspReferenceRequest
- Throws:
IOException- if the JSON string is invalid with respect to SubjectErasureByPspReferenceRequest
-
toJson
public String toJson()
Convert an instance of SubjectErasureByPspReferenceRequest to an JSON string- Returns:
- JSON string
-
-