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 stringStringgetInvoiceNumber()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()AgencyinvoiceNumber(String invoiceNumber)The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 charactersAgencyplanName(String planName)The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 charactersvoidsetInvoiceNumber(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
-
equals
public boolean equals(Object o)
Return true if this Agency object is equal to o.
-
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
-
-