Package com.adyen.model.marketpayaccount
Class GetTaxFormResponse
- java.lang.Object
-
- com.adyen.model.marketpayaccount.GetTaxFormResponse
-
public class GetTaxFormResponse extends Object
GetTaxFormResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CONTENTstatic StringJSON_PROPERTY_CONTENT_TYPEstatic StringJSON_PROPERTY_INVALID_FIELDSstatic StringJSON_PROPERTY_PSP_REFERENCEstatic StringJSON_PROPERTY_RESULT_CODE
-
Constructor Summary
Constructors Constructor Description GetTaxFormResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GetTaxFormResponseaddInvalidFieldsItem(ErrorFieldType invalidFieldsItem)GetTaxFormResponsecontent(byte[] content)GetTaxFormResponsecontentType(String contentType)booleanequals(Object o)Return true if this GetTaxFormResponse object is equal to o.static GetTaxFormResponsefromJson(String jsonString)Create an instance of GetTaxFormResponse given an JSON stringbyte[]getContent()The content of the tax form in the Base64 binary format.StringgetContentType()The content type of the tax form.List<ErrorFieldType>getInvalidFields()Contains field validation errors that would prevent requests from being processed.StringgetPspReference()The reference of a request.StringgetResultCode()The result code.inthashCode()GetTaxFormResponseinvalidFields(List<ErrorFieldType> invalidFields)GetTaxFormResponsepspReference(String pspReference)GetTaxFormResponseresultCode(String resultCode)voidsetContent(byte[] content)voidsetContentType(String contentType)voidsetInvalidFields(List<ErrorFieldType> invalidFields)voidsetPspReference(String pspReference)voidsetResultCode(String resultCode)StringtoJson()Convert an instance of GetTaxFormResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CONTENT
public static final String JSON_PROPERTY_CONTENT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONTENT_TYPE
public static final String JSON_PROPERTY_CONTENT_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INVALID_FIELDS
public static final String JSON_PROPERTY_INVALID_FIELDS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PSP_REFERENCE
public static final String JSON_PROPERTY_PSP_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESULT_CODE
public static final String JSON_PROPERTY_RESULT_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
content
public GetTaxFormResponse content(byte[] content)
-
getContent
public byte[] getContent()
The content of the tax form in the Base64 binary format.- Returns:
- content
-
setContent
public void setContent(byte[] content)
-
contentType
public GetTaxFormResponse contentType(String contentType)
-
getContentType
public String getContentType()
The content type of the tax form.- Returns:
- contentType
-
setContentType
public void setContentType(String contentType)
-
invalidFields
public GetTaxFormResponse invalidFields(List<ErrorFieldType> invalidFields)
-
addInvalidFieldsItem
public GetTaxFormResponse addInvalidFieldsItem(ErrorFieldType invalidFieldsItem)
-
getInvalidFields
public List<ErrorFieldType> getInvalidFields()
Contains field validation errors that would prevent requests from being processed.- Returns:
- invalidFields
-
setInvalidFields
public void setInvalidFields(List<ErrorFieldType> invalidFields)
-
pspReference
public GetTaxFormResponse pspReference(String pspReference)
-
getPspReference
public String getPspReference()
The reference of a request. Can be used to uniquely identify the request.- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
-
resultCode
public GetTaxFormResponse resultCode(String resultCode)
-
getResultCode
public String getResultCode()
The result code.- Returns:
- resultCode
-
setResultCode
public void setResultCode(String resultCode)
-
equals
public boolean equals(Object o)
Return true if this GetTaxFormResponse object is equal to o.
-
fromJson
public static GetTaxFormResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of GetTaxFormResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GetTaxFormResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to GetTaxFormResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of GetTaxFormResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-