Class Agency


  • public class Agency
    extends Object
    Agency
    • Constructor Detail

      • Agency

        public Agency()
    • 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 Agency instance, 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 Agency instance, 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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