Class PreferredProgramModel

java.lang.Object
net.avalara.avatax.rest.client.models.PreferredProgramModel

public class PreferredProgramModel extends Object
A preferred program is a customs and/or duty program that can be used to handle cross-border transactions. Customers who sign up for a preferred program may obtain better terms for their customs and duty payments. To indicate that your company has signed up for a preferred program, specify the `code` value from this object as the value for the `AvaTax.LC.PreferredProgram` parameter in your transaction.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Getter for code A code that identifies this preferred program.
    Getter for destinationCountry The ISO 3166 country code for the destination permitted by this program
    Getter for effectiveDate The earliest date for which this preferred program can be used in AvaTax.
    Getter for endDate The latest date for which this preferred program can be used in AvaTax.
    Getter for id The unique ID number representing this preferred program.
    Getter for originCountry The ISO 3166 country code for the origin permitted by this program
    void
    setCode(String value)
    Setter for code A code that identifies this preferred program.
    void
    Setter for destinationCountry The ISO 3166 country code for the destination permitted by this program
    void
    Setter for effectiveDate The earliest date for which this preferred program can be used in AvaTax.
    void
    Setter for endDate The latest date for which this preferred program can be used in AvaTax.
    void
    setId(Integer value)
    Setter for id The unique ID number representing this preferred program.
    void
    Setter for originCountry The ISO 3166 country code for the origin permitted by this program
    Returns a JSON string representation of PreferredProgramModel

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PreferredProgramModel

      public PreferredProgramModel()
  • Method Details

    • getId

      public Integer getId()
      Getter for id The unique ID number representing this preferred program.
    • setId

      public void setId(Integer value)
      Setter for id The unique ID number representing this preferred program.
    • getCode

      public String getCode()
      Getter for code A code that identifies this preferred program. To select this program, specify this code value in the `AvaTax.LC.PreferredProgram` parameter.
    • setCode

      public void setCode(String value)
      Setter for code A code that identifies this preferred program. To select this program, specify this code value in the `AvaTax.LC.PreferredProgram` parameter.
    • getOriginCountry

      public String getOriginCountry()
      Getter for originCountry The ISO 3166 country code for the origin permitted by this program
    • setOriginCountry

      public void setOriginCountry(String value)
      Setter for originCountry The ISO 3166 country code for the origin permitted by this program
    • getDestinationCountry

      public String getDestinationCountry()
      Getter for destinationCountry The ISO 3166 country code for the destination permitted by this program
    • setDestinationCountry

      public void setDestinationCountry(String value)
      Setter for destinationCountry The ISO 3166 country code for the destination permitted by this program
    • getEffectiveDate

      public Date getEffectiveDate()
      Getter for effectiveDate The earliest date for which this preferred program can be used in AvaTax. If `null`, this preferred program is valid for all dates earlier than `endDate`.
    • setEffectiveDate

      public void setEffectiveDate(Date value)
      Setter for effectiveDate The earliest date for which this preferred program can be used in AvaTax. If `null`, this preferred program is valid for all dates earlier than `endDate`.
    • getEndDate

      public Date getEndDate()
      Getter for endDate The latest date for which this preferred program can be used in AvaTax. If `null`, this preferred program is valid for all dates later than `effectiveDate`.
    • setEndDate

      public void setEndDate(Date value)
      Setter for endDate The latest date for which this preferred program can be used in AvaTax. If `null`, this preferred program is valid for all dates later than `effectiveDate`.
    • toString

      public String toString()
      Returns a JSON string representation of PreferredProgramModel
      Overrides:
      toString in class Object