Class GetTermsOfServiceDocumentRequest
- java.lang.Object
-
- com.adyen.model.legalentitymanagement.GetTermsOfServiceDocumentRequest
-
public class GetTermsOfServiceDocumentRequest extends Object
GetTermsOfServiceDocumentRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetTermsOfServiceDocumentRequest.TypeEnumThe type of Terms of Service.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_LANGUAGEstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description GetTermsOfServiceDocumentRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this GetTermsOfServiceDocumentRequest object is equal to o.static GetTermsOfServiceDocumentRequestfromJson(String jsonString)Create an instance of GetTermsOfServiceDocumentRequest given an JSON stringStringgetLanguage()The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code.GetTermsOfServiceDocumentRequest.TypeEnumgetType()The type of Terms of Service.inthashCode()GetTermsOfServiceDocumentRequestlanguage(String language)voidsetLanguage(String language)The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code.voidsetType(GetTermsOfServiceDocumentRequest.TypeEnum type)The type of Terms of Service.StringtoJson()Convert an instance of GetTermsOfServiceDocumentRequest to an JSON stringStringtoString()GetTermsOfServiceDocumentRequesttype(GetTermsOfServiceDocumentRequest.TypeEnum type)
-
-
-
Field Detail
-
JSON_PROPERTY_LANGUAGE
public static final String JSON_PROPERTY_LANGUAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
language
public GetTermsOfServiceDocumentRequest language(String language)
-
getLanguage
public String getLanguage()
The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English.- Returns:
- language
-
setLanguage
public void setLanguage(String language)
The language to be used for the Terms of Service document, specified by the two-letter [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code. Possible value: **en** for English.- Parameters:
language-
-
type
public GetTermsOfServiceDocumentRequest type(GetTermsOfServiceDocumentRequest.TypeEnum type)
-
getType
public GetTermsOfServiceDocumentRequest.TypeEnum getType()
The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr**- Returns:
- type
-
setType
public void setType(GetTermsOfServiceDocumentRequest.TypeEnum type)
The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr**- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this GetTermsOfServiceDocumentRequest object is equal to o.
-
fromJson
public static GetTermsOfServiceDocumentRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of GetTermsOfServiceDocumentRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GetTermsOfServiceDocumentRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to GetTermsOfServiceDocumentRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of GetTermsOfServiceDocumentRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-