Class ReferrerAddress

java.lang.Object
io.voucherify.client.model.ReferrerAddress

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ReferrerAddress extends Object
Customer's address.
  • Field Details

  • Constructor Details

    • ReferrerAddress

      public ReferrerAddress()
  • Method Details

    • city

      public ReferrerAddress city(String city)
    • getCity

      @Nullable public String getCity()
      City
      Returns:
      city
    • setCity

      public void setCity(String city)
    • state

      public ReferrerAddress state(String state)
    • getState

      @Nullable public String getState()
      State
      Returns:
      state
    • setState

      public void setState(String state)
    • line1

      public ReferrerAddress line1(String line1)
    • getLine1

      @Nullable public String getLine1()
      First line of address.
      Returns:
      line1
    • setLine1

      public void setLine1(String line1)
    • line2

      public ReferrerAddress line2(String line2)
    • getLine2

      @Nullable public String getLine2()
      Second line of address.
      Returns:
      line2
    • setLine2

      public void setLine2(String line2)
    • country

      public ReferrerAddress country(String country)
    • getCountry

      @Nullable public String getCountry()
      Country.
      Returns:
      country
    • setCountry

      public void setCountry(String country)
    • postalCode

      public ReferrerAddress postalCode(String postalCode)
    • getPostalCode

      @Nullable public String getPostalCode()
      Postal code.
      Returns:
      postalCode
    • setPostalCode

      public void setPostalCode(String postalCode)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromJson

      public static ReferrerAddress fromJson(String jsonString) throws IOException
      Create an instance of ReferrerAddress given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of ReferrerAddress
      Throws:
      IOException - if the JSON string is invalid with respect to ReferrerAddress
    • toJson

      public String toJson()
      Convert an instance of ReferrerAddress to an JSON string
      Returns:
      JSON string