Class PreferredProgramModel
java.lang.Object
net.avalara.avatax.rest.client.models.PreferredProgramModel
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 -
Method Summary
Modifier and TypeMethodDescriptiongetCode()
Getter for code A code that identifies this preferred program.Getter for destinationCountry The ISO 3166 country code for the destination permitted by this programGetter 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.getId()
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 programvoid
Setter for code A code that identifies this preferred program.void
setDestinationCountry
(String value) Setter for destinationCountry The ISO 3166 country code for the destination permitted by this programvoid
setEffectiveDate
(Date value) Setter for effectiveDate The earliest date for which this preferred program can be used in AvaTax.void
setEndDate
(Date value) Setter for endDate The latest date for which this preferred program can be used in AvaTax.void
Setter for id The unique ID number representing this preferred program.void
setOriginCountry
(String value) Setter for originCountry The ISO 3166 country code for the origin permitted by this programtoString()
Returns a JSON string representation of PreferredProgramModel
-
Constructor Details
-
PreferredProgramModel
public PreferredProgramModel()
-
-
Method Details
-
getId
Getter for id The unique ID number representing this preferred program. -
setId
Setter for id The unique ID number representing this preferred program. -
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
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
Getter for originCountry The ISO 3166 country code for the origin permitted by this program -
setOriginCountry
Setter for originCountry The ISO 3166 country code for the origin permitted by this program -
getDestinationCountry
Getter for destinationCountry The ISO 3166 country code for the destination permitted by this program -
setDestinationCountry
Setter for destinationCountry The ISO 3166 country code for the destination permitted by this program -
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
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
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
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
Returns a JSON string representation of PreferredProgramModel
-