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_TERMS_OF_SERVICE_DOCUMENT_FORMATstatic 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.StringgetTermsOfServiceDocumentFormat()The requested format for the Terms of Service document.GetTermsOfServiceDocumentRequest.TypeEnumgetType()The type of Terms of Service.inthashCode()GetTermsOfServiceDocumentRequestlanguage(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.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.voidsetTermsOfServiceDocumentFormat(String termsOfServiceDocumentFormat)The requested format for the Terms of Service document.voidsetType(GetTermsOfServiceDocumentRequest.TypeEnum type)The type of Terms of Service.GetTermsOfServiceDocumentRequesttermsOfServiceDocumentFormat(String termsOfServiceDocumentFormat)The requested format for the Terms of Service document.StringtoJson()Convert an instance of GetTermsOfServiceDocumentRequest to an JSON stringStringtoString()GetTermsOfServiceDocumentRequesttype(GetTermsOfServiceDocumentRequest.TypeEnum type)The type of Terms of Service.
-
-
-
Field Detail
-
JSON_PROPERTY_LANGUAGE
public static final String JSON_PROPERTY_LANGUAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT
public static final String JSON_PROPERTY_TERMS_OF_SERVICE_DOCUMENT_FORMAT
- 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)
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-- Returns:
- the current
GetTermsOfServiceDocumentRequestinstance, allowing for method chaining
-
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-
-
termsOfServiceDocumentFormat
public GetTermsOfServiceDocumentRequest termsOfServiceDocumentFormat(String termsOfServiceDocumentFormat)
The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**.- Parameters:
termsOfServiceDocumentFormat-- Returns:
- the current
GetTermsOfServiceDocumentRequestinstance, allowing for method chaining
-
getTermsOfServiceDocumentFormat
public String getTermsOfServiceDocumentFormat()
The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**.- Returns:
- termsOfServiceDocumentFormat
-
setTermsOfServiceDocumentFormat
public void setTermsOfServiceDocumentFormat(String termsOfServiceDocumentFormat)
The requested format for the Terms of Service document. Default value: JSON. Possible values: **JSON**, **PDF**, or **TXT**.- Parameters:
termsOfServiceDocumentFormat-
-
type
public GetTermsOfServiceDocumentRequest type(GetTermsOfServiceDocumentRequest.TypeEnum type)
The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard**- Parameters:
type-- Returns:
- the current
GetTermsOfServiceDocumentRequestinstance, allowing for method chaining
-
getType
public GetTermsOfServiceDocumentRequest.TypeEnum getType()
The type of Terms of Service. Possible values: * **adyenForPlatformsManage** * **adyenIssuing** * **adyenForPlatformsAdvanced** * **adyenCapital** * **adyenAccount** * **adyenCard** * **adyenFranchisee** * **adyenPccr** * **adyenChargeCard**- 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** * **adyenChargeCard**- 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
-
-