All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.canadapost.cpcdp.rating.generated.rating.MailingScenario Maven / Gradle / Ivy

The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2014.03.13 at 11:05:37 AM EDT 
//


package ca.canadapost.cpcdp.rating.generated.rating;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.NormalizedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.datatype.XMLGregorianCalendar;


/**
 * 

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { }) @XmlRootElement(name = "mailing-scenario") public class MailingScenario { @XmlElement(name = "customer-number") protected String customerNumber; @XmlElement(name = "contract-id") protected String contractId; @XmlElement(name = "promo-code") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) protected String promoCode; @XmlElement(name = "quote-type") protected String quoteType; @XmlElement(name = "expected-mailing-date") @XmlSchemaType(name = "date") protected XMLGregorianCalendar expectedMailingDate; protected MailingScenario.Options options; @XmlElement(name = "parcel-characteristics", required = true) protected MailingScenario.ParcelCharacteristics parcelCharacteristics; protected MailingScenario.Services services; @XmlElement(name = "origin-postal-code", required = true) protected String originPostalCode; @XmlElement(required = true) protected MailingScenario.Destination destination; /** * Gets the value of the customerNumber property. * * @return * possible object is * {@link String } * */ public String getCustomerNumber() { return customerNumber; } /** * Sets the value of the customerNumber property. * * @param value * allowed object is * {@link String } * */ public void setCustomerNumber(String value) { this.customerNumber = value; } /** * Gets the value of the contractId property. * * @return * possible object is * {@link String } * */ public String getContractId() { return contractId; } /** * Sets the value of the contractId property. * * @param value * allowed object is * {@link String } * */ public void setContractId(String value) { this.contractId = value; } /** * Gets the value of the promoCode property. * * @return * possible object is * {@link String } * */ public String getPromoCode() { return promoCode; } /** * Sets the value of the promoCode property. * * @param value * allowed object is * {@link String } * */ public void setPromoCode(String value) { this.promoCode = value; } /** * Gets the value of the quoteType property. * * @return * possible object is * {@link String } * */ public String getQuoteType() { return quoteType; } /** * Sets the value of the quoteType property. * * @param value * allowed object is * {@link String } * */ public void setQuoteType(String value) { this.quoteType = value; } /** * Gets the value of the expectedMailingDate property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getExpectedMailingDate() { return expectedMailingDate; } /** * Sets the value of the expectedMailingDate property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setExpectedMailingDate(XMLGregorianCalendar value) { this.expectedMailingDate = value; } /** * Gets the value of the options property. * * @return * possible object is * {@link MailingScenario.Options } * */ public MailingScenario.Options getOptions() { return options; } /** * Sets the value of the options property. * * @param value * allowed object is * {@link MailingScenario.Options } * */ public void setOptions(MailingScenario.Options value) { this.options = value; } /** * Gets the value of the parcelCharacteristics property. * * @return * possible object is * {@link MailingScenario.ParcelCharacteristics } * */ public MailingScenario.ParcelCharacteristics getParcelCharacteristics() { return parcelCharacteristics; } /** * Sets the value of the parcelCharacteristics property. * * @param value * allowed object is * {@link MailingScenario.ParcelCharacteristics } * */ public void setParcelCharacteristics(MailingScenario.ParcelCharacteristics value) { this.parcelCharacteristics = value; } /** * Gets the value of the services property. * * @return * possible object is * {@link MailingScenario.Services } * */ public MailingScenario.Services getServices() { return services; } /** * Sets the value of the services property. * * @param value * allowed object is * {@link MailingScenario.Services } * */ public void setServices(MailingScenario.Services value) { this.services = value; } /** * Gets the value of the originPostalCode property. * * @return * possible object is * {@link String } * */ public String getOriginPostalCode() { return originPostalCode; } /** * Sets the value of the originPostalCode property. * * @param value * allowed object is * {@link String } * */ public void setOriginPostalCode(String value) { this.originPostalCode = value; } /** * Gets the value of the destination property. * * @return * possible object is * {@link MailingScenario.Destination } * */ public MailingScenario.Destination getDestination() { return destination; } /** * Sets the value of the destination property. * * @param value * allowed object is * {@link MailingScenario.Destination } * */ public void setDestination(MailingScenario.Destination value) { this.destination = value; } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "international", "unitedStates", "domestic" }) public static class Destination { protected MailingScenario.Destination.International international; @XmlElement(name = "united-states") protected MailingScenario.Destination.UnitedStates unitedStates; protected MailingScenario.Destination.Domestic domestic; /** * Gets the value of the international property. * * @return * possible object is * {@link MailingScenario.Destination.International } * */ public MailingScenario.Destination.International getInternational() { return international; } /** * Sets the value of the international property. * * @param value * allowed object is * {@link MailingScenario.Destination.International } * */ public void setInternational(MailingScenario.Destination.International value) { this.international = value; } /** * Gets the value of the unitedStates property. * * @return * possible object is * {@link MailingScenario.Destination.UnitedStates } * */ public MailingScenario.Destination.UnitedStates getUnitedStates() { return unitedStates; } /** * Sets the value of the unitedStates property. * * @param value * allowed object is * {@link MailingScenario.Destination.UnitedStates } * */ public void setUnitedStates(MailingScenario.Destination.UnitedStates value) { this.unitedStates = value; } /** * Gets the value of the domestic property. * * @return * possible object is * {@link MailingScenario.Destination.Domestic } * */ public MailingScenario.Destination.Domestic getDomestic() { return domestic; } /** * Sets the value of the domestic property. * * @param value * allowed object is * {@link MailingScenario.Destination.Domestic } * */ public void setDomestic(MailingScenario.Destination.Domestic value) { this.domestic = value; } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { }) public static class Domestic { @XmlElement(name = "postal-code", required = true) protected String postalCode; /** * Gets the value of the postalCode property. * * @return * possible object is * {@link String } * */ public String getPostalCode() { return postalCode; } /** * Sets the value of the postalCode property. * * @param value * allowed object is * {@link String } * */ public void setPostalCode(String value) { this.postalCode = value; } } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { }) public static class International { @XmlElement(name = "country-code", required = true) protected String countryCode; /** * Gets the value of the countryCode property. * * @return * possible object is * {@link String } * */ public String getCountryCode() { return countryCode; } /** * Sets the value of the countryCode property. * * @param value * allowed object is * {@link String } * */ public void setCountryCode(String value) { this.countryCode = value; } } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { }) public static class UnitedStates { @XmlElement(name = "zip-code", required = true) protected String zipCode; /** * Gets the value of the zipCode property. * * @return * possible object is * {@link String } * */ public String getZipCode() { return zipCode; } /** * Sets the value of the zipCode property. * * @param value * allowed object is * {@link String } * */ public void setZipCode(String value) { this.zipCode = value; } } } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "options" }) public static class Options { @XmlElement(name = "option", required = true) protected List options; /** * Gets the value of the options property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the options property. * *

* For example, to add a new item, do as follows: *

         *    getOptions().add(newItem);
         * 
* * * @return * Objects of the following type(s) are allowed in the list * {@link MailingScenario.Options.Option } * */ public List getOptions() { if (options == null) { options = new ArrayList(); } return this.options; } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { }) public static class Option { @XmlElement(name = "option-code", required = true) @XmlJavaTypeAdapter(NormalizedStringAdapter.class) protected String optionCode; @XmlElement(name = "option-amount") protected BigDecimal optionAmount; /** * Gets the value of the optionCode property. * * @return * possible object is * {@link String } * */ public String getOptionCode() { return optionCode; } /** * Sets the value of the optionCode property. * * @param value * allowed object is * {@link String } * */ public void setOptionCode(String value) { this.optionCode = value; } /** * Gets the value of the optionAmount property. * * @return * possible object is * {@link BigDecimal } * */ public BigDecimal getOptionAmount() { return optionAmount; } /** * Sets the value of the optionAmount property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setOptionAmount(BigDecimal value) { this.optionAmount = value; } } } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { }) public static class ParcelCharacteristics { @XmlElement(required = true) protected BigDecimal weight; protected MailingScenario.ParcelCharacteristics.Dimensions dimensions; protected Boolean unpackaged; @XmlElement(name = "mailing-tube") protected Boolean mailingTube; protected Boolean oversized; /** * Gets the value of the weight property. * * @return * possible object is * {@link BigDecimal } * */ public BigDecimal getWeight() { return weight; } /** * Sets the value of the weight property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setWeight(BigDecimal value) { this.weight = value; } /** * Gets the value of the dimensions property. * * @return * possible object is * {@link MailingScenario.ParcelCharacteristics.Dimensions } * */ public MailingScenario.ParcelCharacteristics.Dimensions getDimensions() { return dimensions; } /** * Sets the value of the dimensions property. * * @param value * allowed object is * {@link MailingScenario.ParcelCharacteristics.Dimensions } * */ public void setDimensions(MailingScenario.ParcelCharacteristics.Dimensions value) { this.dimensions = value; } /** * Gets the value of the unpackaged property. * * @return * possible object is * {@link Boolean } * */ public Boolean isUnpackaged() { return unpackaged; } /** * Sets the value of the unpackaged property. * * @param value * allowed object is * {@link Boolean } * */ public void setUnpackaged(Boolean value) { this.unpackaged = value; } /** * Gets the value of the mailingTube property. * * @return * possible object is * {@link Boolean } * */ public Boolean isMailingTube() { return mailingTube; } /** * Sets the value of the mailingTube property. * * @param value * allowed object is * {@link Boolean } * */ public void setMailingTube(Boolean value) { this.mailingTube = value; } /** * Gets the value of the oversized property. * * @return * possible object is * {@link Boolean } * */ public Boolean isOversized() { return oversized; } /** * Sets the value of the oversized property. * * @param value * allowed object is * {@link Boolean } * */ public void setOversized(Boolean value) { this.oversized = value; } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { }) public static class Dimensions { @XmlElement(required = true) protected BigDecimal length; @XmlElement(required = true) protected BigDecimal width; @XmlElement(required = true) protected BigDecimal height; /** * Gets the value of the length property. * * @return * possible object is * {@link BigDecimal } * */ public BigDecimal getLength() { return length; } /** * Sets the value of the length property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setLength(BigDecimal value) { this.length = value; } /** * Gets the value of the width property. * * @return * possible object is * {@link BigDecimal } * */ public BigDecimal getWidth() { return width; } /** * Sets the value of the width property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setWidth(BigDecimal value) { this.width = value; } /** * Gets the value of the height property. * * @return * possible object is * {@link BigDecimal } * */ public BigDecimal getHeight() { return height; } /** * Sets the value of the height property. * * @param value * allowed object is * {@link BigDecimal } * */ public void setHeight(BigDecimal value) { this.height = value; } } } /** *

Java class for anonymous complex type. * *

The following schema fragment specifies the expected content contained within this class. * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "serviceCodes" }) public static class Services { @XmlElement(name = "service-code", required = true) @XmlJavaTypeAdapter(NormalizedStringAdapter.class) protected List serviceCodes; /** * Gets the value of the serviceCodes property. * *

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a set method for the serviceCodes property. * *

* For example, to add a new item, do as follows: *

         *    getServiceCodes().add(newItem);
         * 
* * * @return * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List getServiceCodes() { if (serviceCodes == null) { serviceCodes = new ArrayList(); } return this.serviceCodes; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy