Class PreferredProgramModel
- java.lang.Object
-
- net.avalara.avatax.rest.client.models.PreferredProgramModel
-
public class PreferredProgramModel extends java.lang.ObjectA 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 PreferredProgramModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCode()Getter for code A code that identifies this preferred program.java.lang.StringgetDestinationCountry()Getter for destinationCountry The ISO 3166 country code for the destination permitted by this programjava.util.DategetEffectiveDate()Getter for effectiveDate The earliest date for which this preferred program can be used in AvaTax.java.util.DategetEndDate()Getter for endDate The latest date for which this preferred program can be used in AvaTax.java.lang.IntegergetId()Getter for id The unique ID number representing this preferred program.java.lang.StringgetOriginCountry()Getter for originCountry The ISO 3166 country code for the origin permitted by this programvoidsetCode(java.lang.String value)Setter for code A code that identifies this preferred program.voidsetDestinationCountry(java.lang.String value)Setter for destinationCountry The ISO 3166 country code for the destination permitted by this programvoidsetEffectiveDate(java.util.Date value)Setter for effectiveDate The earliest date for which this preferred program can be used in AvaTax.voidsetEndDate(java.util.Date value)Setter for endDate The latest date for which this preferred program can be used in AvaTax.voidsetId(java.lang.Integer value)Setter for id The unique ID number representing this preferred program.voidsetOriginCountry(java.lang.String value)Setter for originCountry The ISO 3166 country code for the origin permitted by this programjava.lang.StringtoString()Returns a JSON string representation of PreferredProgramModel
-
-
-
Method Detail
-
getId
public java.lang.Integer getId()
Getter for id The unique ID number representing this preferred program.
-
setId
public void setId(java.lang.Integer value)
Setter for id The unique ID number representing this preferred program.
-
getCode
public java.lang.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(java.lang.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 java.lang.String getOriginCountry()
Getter for originCountry The ISO 3166 country code for the origin permitted by this program
-
setOriginCountry
public void setOriginCountry(java.lang.String value)
Setter for originCountry The ISO 3166 country code for the origin permitted by this program
-
getDestinationCountry
public java.lang.String getDestinationCountry()
Getter for destinationCountry The ISO 3166 country code for the destination permitted by this program
-
setDestinationCountry
public void setDestinationCountry(java.lang.String value)
Setter for destinationCountry The ISO 3166 country code for the destination permitted by this program
-
getEffectiveDate
public java.util.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(java.util.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 java.util.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(java.util.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 java.lang.String toString()
Returns a JSON string representation of PreferredProgramModel- Overrides:
toStringin classjava.lang.Object
-
-