Package com.adyen.model.checkout
Class Agency
- java.lang.Object
-
- com.adyen.model.checkout.Agency
-
public class Agency extends Object
Agency
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_INVOICE_NUMBERstatic StringJSON_PROPERTY_PLAN_NAME
-
Constructor Summary
Constructors Constructor Description Agency()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this Agency object is equal to o.static AgencyfromJson(String jsonString)Create an instance of Agency given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetInvoiceNumber()The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 charactersStringgetPlanName()The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 charactersinthashCode()AgencyincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.AgencyinvoiceNumber(String invoiceNumber)The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 charactersbooleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.AgencyplanName(String planName)The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 charactersvoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetInvoiceNumber(String invoiceNumber)The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 charactersvoidsetPlanName(String planName)The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 charactersStringtoJson()Convert an instance of Agency to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_INVOICE_NUMBER
public static final String JSON_PROPERTY_INVOICE_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PLAN_NAME
public static final String JSON_PROPERTY_PLAN_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
invoiceNumber
public Agency invoiceNumber(String invoiceNumber)
The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters- Parameters:
invoiceNumber- The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters- Returns:
- the current
Agencyinstance, allowing for method chaining
-
getInvoiceNumber
public String getInvoiceNumber()
The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters- Returns:
- invoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters
-
setInvoiceNumber
public void setInvoiceNumber(String invoiceNumber)
The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters- Parameters:
invoiceNumber- The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters
-
planName
public Agency planName(String planName)
The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters- Parameters:
planName- The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters- Returns:
- the current
Agencyinstance, allowing for method chaining
-
getPlanName
public String getPlanName()
The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters- Returns:
- planName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters
-
setPlanName
public void setPlanName(String planName)
The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters- Parameters:
planName- The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters
-
includeNullValues
public Agency includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this Agency object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static Agency fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Agency given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Agency
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Agency
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Agency to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-