Subversion Repositories SmartDukaan

Rev

Rev 7473 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7473 Rev 12245
Line 35... Line 35...
35
 *         <element name="CODFee" type="{https://mws.amazonservices.com/Orders/2011-01-01}Money" minOccurs="0"/>
35
 *         <element name="CODFee" type="{https://mws.amazonservices.com/Orders/2011-01-01}Money" minOccurs="0"/>
36
 *         <element name="CODFeeDiscount" type="{https://mws.amazonservices.com/Orders/2011-01-01}Money" minOccurs="0"/>
36
 *         <element name="CODFeeDiscount" type="{https://mws.amazonservices.com/Orders/2011-01-01}Money" minOccurs="0"/>
37
 *         <element name="GiftMessageText" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
37
 *         <element name="GiftMessageText" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
38
 *         <element name="GiftWrapLevel" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
38
 *         <element name="GiftWrapLevel" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
39
 *         <element name="InvoiceData" type="{https://mws.amazonservices.com/Orders/2011-01-01}InvoiceData" minOccurs="0"/>
39
 *         <element name="InvoiceData" type="{https://mws.amazonservices.com/Orders/2011-01-01}InvoiceData" minOccurs="0"/>
-
 
40
 *         <element name="ConditionNote" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
-
 
41
 *         <element name="ConditionId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
-
 
42
 *         <element name="ConditionSubtypeId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
-
 
43
 *         <element name="ScheduledDeliveryStartDate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
-
 
44
 *         <element name="ScheduledDeliveryEndDate" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
40
 *       </sequence>
45
 *       </sequence>
41
 *     </restriction>
46
 *     </restriction>
42
 *   </complexContent>
47
 *   </complexContent>
43
 * </complexType>
48
 * </complexType>
44
 * </pre>
49
 * </pre>
Line 64... Line 69...
64
    "promotionIds",
69
    "promotionIds",
65
    "codFee",
70
    "codFee",
66
    "codFeeDiscount",
71
    "codFeeDiscount",
67
    "giftMessageText",
72
    "giftMessageText",
68
    "giftWrapLevel",
73
    "giftWrapLevel",
69
    "invoiceData"
74
    "invoiceData",
-
 
75
    "conditionNote",
-
 
76
    "conditionId",
-
 
77
    "conditionSubtypeId",
-
 
78
    "scheduledDeliveryStartDate",
-
 
79
    "scheduledDeliveryEndDate"
70
})
80
})
71
public class OrderItem {
81
public class OrderItem {
72
 
82
 
73
    @XmlElement(name = "ASIN", required = true)
83
    @XmlElement(name = "ASIN", required = true)
74
    protected String asin;
84
    private String asin;
75
    @XmlElement(name = "SellerSKU")
85
    @XmlElement(name = "SellerSKU")
76
    protected String sellerSKU;
86
    private String sellerSKU;
77
    @XmlElement(name = "OrderItemId", required = true)
87
    @XmlElement(name = "OrderItemId", required = true)
78
    protected String orderItemId;
88
    private String orderItemId;
79
    @XmlElement(name = "Title")
89
    @XmlElement(name = "Title")
80
    protected String title;
90
    private String title;
81
    @XmlElement(name = "QuantityOrdered")
91
    @XmlElement(name = "QuantityOrdered")
82
    protected int quantityOrdered;
92
    private int quantityOrdered;
83
    @XmlElement(name = "QuantityShipped")
93
    @XmlElement(name = "QuantityShipped")
84
    protected Integer quantityShipped;
94
    private Integer quantityShipped;
85
    @XmlElement(name = "ItemPrice")
95
    @XmlElement(name = "ItemPrice")
86
    protected Money itemPrice;
96
    private Money itemPrice;
87
    @XmlElement(name = "ShippingPrice")
97
    @XmlElement(name = "ShippingPrice")
88
    protected Money shippingPrice;
98
    private Money shippingPrice;
89
    @XmlElement(name = "GiftWrapPrice")
99
    @XmlElement(name = "GiftWrapPrice")
90
    protected Money giftWrapPrice;
100
    private Money giftWrapPrice;
91
    @XmlElement(name = "ItemTax")
101
    @XmlElement(name = "ItemTax")
92
    protected Money itemTax;
102
    private Money itemTax;
93
    @XmlElement(name = "ShippingTax")
103
    @XmlElement(name = "ShippingTax")
94
    protected Money shippingTax;
104
    private Money shippingTax;
95
    @XmlElement(name = "GiftWrapTax")
105
    @XmlElement(name = "GiftWrapTax")
96
    protected Money giftWrapTax;
106
    private Money giftWrapTax;
97
    @XmlElement(name = "ShippingDiscount")
107
    @XmlElement(name = "ShippingDiscount")
98
    protected Money shippingDiscount;
108
    private Money shippingDiscount;
99
    @XmlElement(name = "PromotionDiscount")
109
    @XmlElement(name = "PromotionDiscount")
100
    protected Money promotionDiscount;
110
    private Money promotionDiscount;
101
    @XmlElement(name = "PromotionIds")
111
    @XmlElement(name = "PromotionIds")
102
    protected PromotionIdList promotionIds;
112
    private PromotionIdList promotionIds;
103
    @XmlElement(name = "CODFee")
113
    @XmlElement(name = "CODFee")
104
    protected Money codFee;
114
    private Money codFee;
105
    @XmlElement(name = "CODFeeDiscount")
115
    @XmlElement(name = "CODFeeDiscount")
106
    protected Money codFeeDiscount;
116
    private Money codFeeDiscount;
107
    @XmlElement(name = "GiftMessageText")
117
    @XmlElement(name = "GiftMessageText")
108
    protected String giftMessageText;
118
    private String giftMessageText;
109
    @XmlElement(name = "GiftWrapLevel")
119
    @XmlElement(name = "GiftWrapLevel")
110
    protected String giftWrapLevel;
120
    private String giftWrapLevel;
111
    @XmlElement(name = "InvoiceData")
121
    @XmlElement(name = "InvoiceData")
112
    protected InvoiceData invoiceData;
122
    private InvoiceData invoiceData;
-
 
123
    @XmlElement(name="ConditionNote")
-
 
124
    private String conditionNote;
-
 
125
    @XmlElement(name="ConditionId")
-
 
126
    private String conditionId;
-
 
127
    @XmlElement(name="ConditionSubtypeId")
-
 
128
    private String conditionSubtypeId;
-
 
129
    @XmlElement(name="ScheduledDeliveryStartDate")
-
 
130
    private String scheduledDeliveryStartDate;
-
 
131
    @XmlElement(name="ScheduledDeliveryEndDate")
-
 
132
    private String scheduledDeliveryEndDate;
113
 
133
 
114
    /**
134
    /**
115
     * Default constructor
135
     * Default constructor
116
     * 
136
     * 
117
     */
137
     */
Line 121... Line 141...
121
 
141
 
122
    /**
142
    /**
123
     * Value constructor
143
     * Value constructor
124
     * 
144
     * 
125
     */
145
     */
126
    public OrderItem(final String asin, final String sellerSKU, final String orderItemId, final String title, final int quantityOrdered, final Integer quantityShipped, final Money itemPrice, final Money shippingPrice, final Money giftWrapPrice, final Money itemTax, final Money shippingTax, final Money giftWrapTax, final Money shippingDiscount, final Money promotionDiscount, final PromotionIdList promotionIds, final Money codFee, final Money codFeeDiscount, final String giftMessageText, final String giftWrapLevel, final InvoiceData invoiceData) {
146
    public OrderItem(final String asin, final String sellerSKU, final String orderItemId, final String title, final int quantityOrdered, final Integer quantityShipped, final Money itemPrice, final Money shippingPrice, final Money giftWrapPrice, final Money itemTax, final Money shippingTax, final Money giftWrapTax, final Money shippingDiscount, final Money promotionDiscount, final PromotionIdList promotionIds, final Money codFee, final Money codFeeDiscount, final String giftMessageText, final String giftWrapLevel, final InvoiceData invoiceData, final String conditionNote, final String conditionId, final String conditionSubtypeId, final String scheduledDeliveryStartDate, final String scheduledDeliveryEndDate) {
127
        this.asin = asin;
147
        this.asin = asin;
128
        this.sellerSKU = sellerSKU;
148
        this.sellerSKU = sellerSKU;
129
        this.orderItemId = orderItemId;
149
        this.orderItemId = orderItemId;
130
        this.title = title;
150
        this.title = title;
131
        this.quantityOrdered = quantityOrdered;
151
        this.quantityOrdered = quantityOrdered;
Line 142... Line 162...
142
        this.codFee = codFee;
162
        this.codFee = codFee;
143
        this.codFeeDiscount = codFeeDiscount;
163
        this.codFeeDiscount = codFeeDiscount;
144
        this.giftMessageText = giftMessageText;
164
        this.giftMessageText = giftMessageText;
145
        this.giftWrapLevel = giftWrapLevel;
165
        this.giftWrapLevel = giftWrapLevel;
146
        this.invoiceData = invoiceData;
166
        this.invoiceData = invoiceData;
-
 
167
        this.conditionNote = conditionNote;
-
 
168
        this.conditionId = conditionId;
-
 
169
        this.conditionSubtypeId = conditionSubtypeId;
-
 
170
        this.scheduledDeliveryStartDate = scheduledDeliveryStartDate;
-
 
171
        this.scheduledDeliveryEndDate = scheduledDeliveryEndDate;
147
    }
172
    }
148
 
173
 
149
    /**
174
    /**
150
     * Gets the value of the asin property.
175
     * Gets the value of the asin property.
151
     * 
176
     * 
Line 695... Line 720...
695
    }
720
    }
696
 
721
 
697
    public boolean isSetInvoiceData() {
722
    public boolean isSetInvoiceData() {
698
        return (this.invoiceData!= null);
723
        return (this.invoiceData!= null);
699
    }
724
    }
-
 
725
    
-
 
726
    
-
 
727
    /**
-
 
728
     * Get the value of ConditionNote.
-
 
729
     *
-
 
730
     * @return The value of ConditionNote.
-
 
731
     */
-
 
732
    public String getConditionNote() {
-
 
733
        return conditionNote;
-
 
734
    }
-
 
735
 
-
 
736
    /**
-
 
737
     * Set the value of ConditionNote.
-
 
738
     *
-
 
739
     * @param conditionNote
-
 
740
     *            The new value to set.
-
 
741
     */
-
 
742
    public void setConditionNote(String conditionNote) {
-
 
743
        this.conditionNote = conditionNote;
-
 
744
    }
-
 
745
 
-
 
746
    /**
-
 
747
     * Check to see if ConditionNote is set.
-
 
748
     *
-
 
749
     * @return true if ConditionNote is set.
-
 
750
     */
-
 
751
    public boolean isSetConditionNote() {
-
 
752
        return conditionNote != null;
-
 
753
    }
-
 
754
 
-
 
755
    /**
-
 
756
     * Get the value of ConditionId.
-
 
757
     *
-
 
758
     * @return The value of ConditionId.
-
 
759
     */
-
 
760
    public String getConditionId() {
-
 
761
        return conditionId;
-
 
762
    }
-
 
763
 
-
 
764
    /**
-
 
765
     * Set the value of ConditionId.
-
 
766
     *
-
 
767
     * @param conditionId
-
 
768
     *            The new value to set.
-
 
769
     */
-
 
770
    public void setConditionId(String conditionId) {
-
 
771
        this.conditionId = conditionId;
-
 
772
    }
-
 
773
 
-
 
774
    /**
-
 
775
     * Check to see if ConditionId is set.
-
 
776
     *
-
 
777
     * @return true if ConditionId is set.
-
 
778
     */
-
 
779
    public boolean isSetConditionId() {
-
 
780
        return conditionId != null;
-
 
781
    }
-
 
782
    
-
 
783
    /**
-
 
784
     * Get the value of ConditionSubtypeId.
-
 
785
     *
-
 
786
     * @return The value of ConditionSubtypeId.
-
 
787
     */
-
 
788
    public String getConditionSubtypeId() {
-
 
789
        return conditionSubtypeId;
-
 
790
    }
-
 
791
 
-
 
792
    /**
-
 
793
     * Set the value of ConditionSubtypeId.
-
 
794
     *
-
 
795
     * @param conditionSubtypeId
-
 
796
     *            The new value to set.
-
 
797
     */
-
 
798
    public void setConditionSubtypeId(String conditionSubtypeId) {
-
 
799
        this.conditionSubtypeId = conditionSubtypeId;
-
 
800
    }
-
 
801
 
-
 
802
    /**
-
 
803
     * Check to see if ConditionSubtypeId is set.
-
 
804
     *
-
 
805
     * @return true if ConditionSubtypeId is set.
-
 
806
     */
-
 
807
    public boolean isSetConditionSubtypeId() {
-
 
808
        return conditionSubtypeId != null;
-
 
809
    }
-
 
810
    
-
 
811
    /**
-
 
812
     * Get the value of ScheduledDeliveryStartDate.
-
 
813
     *
-
 
814
     * @return The value of ScheduledDeliveryStartDate.
-
 
815
     */
-
 
816
    public String getScheduledDeliveryStartDate() {
-
 
817
        return scheduledDeliveryStartDate;
-
 
818
    }
-
 
819
 
-
 
820
    /**
-
 
821
     * Set the value of ScheduledDeliveryStartDate.
-
 
822
     *
-
 
823
     * @param scheduledDeliveryStartDate
-
 
824
     *            The new value to set.
-
 
825
     */
-
 
826
    public void setScheduledDeliveryStartDate(String scheduledDeliveryStartDate) {
-
 
827
        this.scheduledDeliveryStartDate = scheduledDeliveryStartDate;
-
 
828
    }
-
 
829
 
-
 
830
    /**
-
 
831
     * Check to see if ScheduledDeliveryStartDate is set.
-
 
832
     *
-
 
833
     * @return true if ScheduledDeliveryStartDate is set.
-
 
834
     */
-
 
835
    public boolean isSetScheduledDeliveryStartDate() {
-
 
836
        return scheduledDeliveryStartDate != null;
-
 
837
    }
-
 
838
    
-
 
839
    /**
-
 
840
     * Get the value of ScheduledDeliveryEndDate.
-
 
841
     *
-
 
842
     * @return The value of ScheduledDeliveryEndDate.
-
 
843
     */
-
 
844
    public String getScheduledDeliveryEndDate() {
-
 
845
        return scheduledDeliveryEndDate;
-
 
846
    }
-
 
847
 
-
 
848
    /**
-
 
849
     * Set the value of ScheduledDeliveryEndDate.
-
 
850
     *
-
 
851
     * @param scheduledDeliveryEndDate
-
 
852
     *            The new value to set.
-
 
853
     */
-
 
854
    public void setScheduledDeliveryEndDate(String scheduledDeliveryEndDate) {
-
 
855
        this.scheduledDeliveryEndDate = scheduledDeliveryEndDate;
-
 
856
    }
-
 
857
 
-
 
858
    /**
-
 
859
     * Check to see if ScheduledDeliveryEndDate is set.
-
 
860
     *
-
 
861
     * @return true if ScheduledDeliveryEndDate is set.
-
 
862
     */
-
 
863
    public boolean isSetScheduledDeliveryEndDate() {
-
 
864
        return scheduledDeliveryEndDate != null;
-
 
865
    }
-
 
866
    
-
 
867
    
700
 
868
 
701
    /**
869
    /**
702
     * Sets the value of the ASIN property.
870
     * Sets the value of the ASIN property.
703
     * 
871
     * 
704
     * @param value
872
     * @param value
Line 936... Line 1104...
936
    public OrderItem withInvoiceData(InvoiceData value) {
1104
    public OrderItem withInvoiceData(InvoiceData value) {
937
        setInvoiceData(value);
1105
        setInvoiceData(value);
938
        return this;
1106
        return this;
939
    }
1107
    }
940
    
1108
    
-
 
1109
    /**
-
 
1110
     * Set the value of ConditionNote, return this.
-
 
1111
     *
-
 
1112
     * @param conditionNote
-
 
1113
     *             The new value to set.
-
 
1114
     *
-
 
1115
     * @return This instance.
-
 
1116
     */
-
 
1117
    public OrderItem withConditionNote(String conditionNote) {
-
 
1118
        this.conditionNote = conditionNote;
-
 
1119
        return this;
-
 
1120
    }
-
 
1121
    
-
 
1122
    /**
-
 
1123
     * Set the value of ConditionId, return this.
-
 
1124
     *
-
 
1125
     * @param conditionId
-
 
1126
     *             The new value to set.
-
 
1127
     *
-
 
1128
     * @return This instance.
-
 
1129
     */
-
 
1130
    public OrderItem withConditionId(String conditionId) {
-
 
1131
        this.conditionId = conditionId;
-
 
1132
        return this;
-
 
1133
    }
-
 
1134
    
-
 
1135
    /**
-
 
1136
     * Set the value of ConditionSubtypeId, return this.
-
 
1137
     *
-
 
1138
     * @param conditionSubtypeId
-
 
1139
     *             The new value to set.
-
 
1140
     *
-
 
1141
     * @return This instance.
-
 
1142
     */
-
 
1143
    public OrderItem withConditionSubtypeId(String conditionSubtypeId) {
-
 
1144
        this.conditionSubtypeId = conditionSubtypeId;
-
 
1145
        return this;
-
 
1146
    }
-
 
1147
    
-
 
1148
    
-
 
1149
    /**
-
 
1150
     * Set the value of ScheduledDeliveryStartDate, return this.
-
 
1151
     *
-
 
1152
     * @param scheduledDeliveryStartDate
-
 
1153
     *             The new value to set.
-
 
1154
     *
-
 
1155
     * @return This instance.
-
 
1156
     */
-
 
1157
    public OrderItem withScheduledDeliveryStartDate(String scheduledDeliveryStartDate) {
-
 
1158
        this.scheduledDeliveryStartDate = scheduledDeliveryStartDate;
-
 
1159
        return this;
-
 
1160
    }
941
 
1161
    
-
 
1162
    /**
-
 
1163
     * Set the value of ScheduledDeliveryEndDate, return this.
-
 
1164
     *
-
 
1165
     * @param scheduledDeliveryEndDate
-
 
1166
     *             The new value to set.
-
 
1167
     *
-
 
1168
     * @return This instance.
-
 
1169
     */
-
 
1170
    public OrderItem withScheduledDeliveryEndDate(String scheduledDeliveryEndDate) {
-
 
1171
        this.scheduledDeliveryEndDate = scheduledDeliveryEndDate;
-
 
1172
        return this;
-
 
1173
    }
942
 
1174
    
943
    /**
1175
    /**
944
     * 
1176
     * 
945
     * XML fragment representation of this object
1177
     * XML fragment representation of this object
946
     * 
1178
     * 
947
     * @return XML fragment for this object. Name for outer
1179
     * @return XML fragment for this object. Name for outer
Line 1059... Line 1291...
1059
        if (isSetInvoiceData()) {
1291
        if (isSetInvoiceData()) {
1060
            InvoiceData  invoiceData = getInvoiceData();
1292
            InvoiceData  invoiceData = getInvoiceData();
1061
            xml.append("<InvoiceData>");
1293
            xml.append("<InvoiceData>");
1062
            xml.append(invoiceData.toXMLFragment());
1294
            xml.append(invoiceData.toXMLFragment());
1063
            xml.append("</InvoiceData>");
1295
            xml.append("</InvoiceData>");
1064
        } 
1296
        }
-
 
1297
        if (isSetConditionNote()) {
-
 
1298
            xml.append("<ConditionNote>");
-
 
1299
            xml.append(escapeXML(getConditionNote()));
-
 
1300
            xml.append("</ConditionNote>");
-
 
1301
        }
-
 
1302
        if (isSetConditionId()) {
-
 
1303
            xml.append("<ConditionId>");
-
 
1304
            xml.append(escapeXML(getConditionId()));
-
 
1305
            xml.append("</ConditionId>");
-
 
1306
        }
-
 
1307
        if (isSetConditionSubtypeId()) {
-
 
1308
            xml.append("<ConditionSubtypeId>");
-
 
1309
            xml.append(escapeXML(getConditionSubtypeId()));
-
 
1310
            xml.append("</ConditionSubtypeId>");
-
 
1311
        }
-
 
1312
        if (isSetScheduledDeliveryStartDate()) {
-
 
1313
            xml.append("<ScheduledDeliveryStartDate>");
-
 
1314
            xml.append(escapeXML(getScheduledDeliveryStartDate()));
-
 
1315
            xml.append("</ScheduledDeliveryStartDate>");
-
 
1316
        }
-
 
1317
        if (isSetScheduledDeliveryEndDate()) {
-
 
1318
            xml.append("<ScheduledDeliveryEndDate>");
-
 
1319
            xml.append(escapeXML(getScheduledDeliveryEndDate()));
-
 
1320
            xml.append("</ScheduledDeliveryEndDate>");
-
 
1321
        }
1065
        return xml.toString();
1322
        return xml.toString();
1066
    }
1323
    }
1067
 
1324
 
1068
    /**
1325
    /**
1069
     * 
1326
     * 
Line 1287... Line 1544...
1287
 
1544
 
1288
            json.append(invoiceData.toJSONFragment());
1545
            json.append(invoiceData.toJSONFragment());
1289
            json.append("}");
1546
            json.append("}");
1290
            first = false;
1547
            first = false;
1291
        }
1548
        }
-
 
1549
        if (isSetConditionNote()) {
-
 
1550
            if (!first) json.append(", ");
-
 
1551
            json.append(quoteJSON("ConditionNote"));
-
 
1552
            json.append(" : ");
-
 
1553
            json.append(quoteJSON(getConditionNote()));
-
 
1554
            first = false;
-
 
1555
        }
-
 
1556
        if (isSetConditionId()) {
-
 
1557
            if (!first) json.append(", ");
-
 
1558
            json.append(quoteJSON("ConditionId"));
-
 
1559
            json.append(" : ");
-
 
1560
            json.append(quoteJSON(getConditionId()));
-
 
1561
            first = false;
-
 
1562
        }
-
 
1563
        if (isSetConditionSubtypeId()) {
-
 
1564
            if (!first) json.append(", ");
-
 
1565
            json.append(quoteJSON("ConditionSubtypeId"));
-
 
1566
            json.append(" : ");
-
 
1567
            json.append(quoteJSON(getConditionSubtypeId()));
-
 
1568
            first = false;
-
 
1569
        }
-
 
1570
        if (isSetScheduledDeliveryStartDate()) {
-
 
1571
            if (!first) json.append(", ");
-
 
1572
            json.append(quoteJSON("ScheduledDeliveryStartDate"));
-
 
1573
            json.append(" : ");
-
 
1574
            json.append(quoteJSON(getScheduledDeliveryStartDate()));
-
 
1575
            first = false;
-
 
1576
        }
-
 
1577
        if (isSetScheduledDeliveryEndDate()) {
-
 
1578
            if (!first) json.append(", ");
-
 
1579
            json.append(quoteJSON("ScheduledDeliveryEndDate"));
-
 
1580
            json.append(" : ");
-
 
1581
            json.append(quoteJSON(getScheduledDeliveryEndDate()));
-
 
1582
            first = false;
-
 
1583
        }
1292
        return json.toString();
1584
        return json.toString();
1293
    }
1585
    }
1294
 
1586
 
1295
    /**
1587
    /**
1296
     *
1588
     *