@@ -253,6 +253,35 @@ protected function parseXML($xml){
253
253
$ i ++;
254
254
}
255
255
}
256
+ if (isset ($ item ->InvoiceData )){
257
+ if (isset ($ item ->InvoiceData ->InvoiceRequirement )){
258
+ $ this ->itemList [$ n ]['InvoiceData ' ]['InvoiceRequirement ' ] = (string )$ item ->InvoiceData ->InvoiceRequirement ;
259
+ }
260
+ if (isset ($ item ->InvoiceData ->BuyerSelectedInvoiceCategory )){
261
+ $ this ->itemList [$ n ]['InvoiceData ' ]['BuyerSelectedInvoiceCategory ' ] = (string )$ item ->InvoiceData ->BuyerSelectedInvoiceCategory ;
262
+ }
263
+ if (isset ($ item ->InvoiceData ->InvoiceTitle )){
264
+ $ this ->itemList [$ n ]['InvoiceData ' ]['InvoiceTitle ' ] = (string )$ item ->InvoiceData ->InvoiceTitle ;
265
+ }
266
+ if (isset ($ item ->InvoiceData ->InvoiceInformation )){
267
+ $ this ->itemList [$ n ]['InvoiceData ' ]['InvoiceInformation ' ] = (string )$ item ->InvoiceData ->InvoiceInformation ;
268
+ }
269
+ }
270
+ if (isset ($ item ->ConditionId )){
271
+ $ this ->itemList [$ n ]['ConditionId ' ] = (string )$ item ->ConditionId ;
272
+ }
273
+ if (isset ($ item ->ConditionSubtypeId )){
274
+ $ this ->itemList [$ n ]['ConditionSubtypeId ' ] = (string )$ item ->ConditionSubtypeId ;
275
+ }
276
+ if (isset ($ item ->ConditionNote )){
277
+ $ this ->itemList [$ n ]['ConditionNote ' ] = (string )$ item ->ConditionNote ;
278
+ }
279
+ if (isset ($ item ->ScheduledDeliveryStartDate )){
280
+ $ this ->itemList [$ n ]['ScheduledDeliveryStartDate ' ] = (string )$ item ->ScheduledDeliveryStartDate ;
281
+ }
282
+ if (isset ($ item ->ScheduledDeliveryEndDate )){
283
+ $ this ->itemList [$ n ]['ScheduledDeliveryEndDate ' ] = (string )$ item ->ScheduledDeliveryEndDate ;
284
+ }
256
285
$ this ->index ++;
257
286
}
258
287
@@ -608,7 +637,7 @@ public function getPromotionDiscount($i = 0, $only = false){
608
637
}
609
638
610
639
/**
611
- * Returns specified promotion ID for specified item.
640
+ * Returns specified promotion ID for the specified item.
612
641
*
613
642
* This method will return the entire list of Promotion IDs if <i>$j</i> is not set.
614
643
* @param int $i [optional] <p>List index to retrieve the value from. Defaults to 0.</p>
@@ -625,7 +654,129 @@ public function getPromotionIds($i = 0, $j = null){
625
654
} else {
626
655
return false ;
627
656
}
628
-
657
+ }
658
+
659
+ /**
660
+ * Returns invoice data for the specified item.
661
+ *
662
+ * This method will return <b>FALSE</b> if the list has not yet been filled.
663
+ * The array for invoice data may have the following fields:
664
+ * <ul>
665
+ * <li><b>InvoiceRequirement</b> - invoice requirement information</li>
666
+ * <li><b>BuyerSelectedInvoiceCategory</b> - invoice category information selected by the buyer</li>
667
+ * <li><b>InvoiceTitle</b> - the title of the invoice as specified by the buyer</li>
668
+ * <li><b>InvoiceInformation</b> - additional invoice information</li>
669
+ * </ul>
670
+ * @param int $i [optional] <p>List index to retrieve the value from. Defaults to 0.</p>
671
+ * @return array|boolean array, or <b>FALSE</b> if incorrect index
672
+ */
673
+ public function getInvoiceData ($ i = 0 ){
674
+ if (isset ($ this ->itemList [$ i ]['InvoiceData ' ])){
675
+ return $ this ->itemList [$ i ]['InvoiceData ' ];
676
+ } else {
677
+ return false ;
678
+ }
679
+ }
680
+
681
+ /**
682
+ * Returns the condition for the specified item.
683
+ *
684
+ * This method will return <b>FALSE</b> if the list has not yet been filled.
685
+ * Possible values for the condition ID are...
686
+ * <ul>
687
+ * <li>New</li>
688
+ * <li>Used</li>
689
+ * <li>Collectible</li>
690
+ * <li>Refurbished</li>
691
+ * <li>Preorder</li>
692
+ * <li>Club</li>
693
+ * </ul>
694
+ * @param int $i [optional] <p>List index to retrieve the value from. Defaults to 0.</p>
695
+ * @return string|boolean single value, or <b>FALSE</b> if incorrect index
696
+ */
697
+ public function getConditionId ($ i = 0 ){
698
+ if (isset ($ this ->itemList [$ i ]['ConditionId ' ])){
699
+ return $ this ->itemList [$ i ]['ConditionId ' ];
700
+ } else {
701
+ return false ;
702
+ }
703
+ }
704
+
705
+ /**
706
+ * Returns the subcondition for the specified item.
707
+ *
708
+ * This method will return <b>FALSE</b> if the list has not yet been filled.
709
+ * Possible values for the subcondition ID are...
710
+ * <ul>
711
+ * <li>New</li>
712
+ * <li>Mint</li>
713
+ * <li>Very Good</li>
714
+ * <li>Good</li>
715
+ * <li>Acceptable</li>
716
+ * <li>Poor</li>
717
+ * <li>Club</li>
718
+ * <li>OEM</li>
719
+ * <li>Warranty</li>
720
+ * <li>Refurbished Warranty</li>
721
+ * <li>Refurbished</li>
722
+ * <li>Open Box</li>
723
+ * <li>Any</li>
724
+ * <li>Other</li>
725
+ * </ul>
726
+ * @param int $i [optional] <p>List index to retrieve the value from. Defaults to 0.</p>
727
+ * @return string|boolean single value, or <b>FALSE</b> if incorrect index
728
+ */
729
+ public function getConditionSubtypeId ($ i = 0 ){
730
+ if (isset ($ this ->itemList [$ i ]['ConditionSubtypeId ' ])){
731
+ return $ this ->itemList [$ i ]['ConditionSubtypeId ' ];
732
+ } else {
733
+ return false ;
734
+ }
735
+ }
736
+
737
+ /**
738
+ * Returns the condition description for the specified item.
739
+ *
740
+ * This method will return <b>FALSE</b> if the list has not yet been filled.
741
+ * @param int $i [optional] <p>List index to retrieve the value from. Defaults to 0.</p>
742
+ * @return string|boolean single value, or <b>FALSE</b> if incorrect index
743
+ */
744
+ public function getConditionNote ($ i = 0 ){
745
+ if (isset ($ this ->itemList [$ i ]['ConditionNote ' ])){
746
+ return $ this ->itemList [$ i ]['ConditionNote ' ];
747
+ } else {
748
+ return false ;
749
+ }
750
+ }
751
+
752
+ /**
753
+ * Returns the earliest date in the scheduled delivery window for the specified item.
754
+ *
755
+ * This method will return <b>FALSE</b> if the list has not yet been filled.
756
+ * @param int $i [optional] <p>List index to retrieve the value from. Defaults to 0.</p>
757
+ * @return string|boolean single value, or <b>FALSE</b> if incorrect index
758
+ */
759
+ public function getScheduledDeliveryStartDate ($ i = 0 ){
760
+ if (isset ($ this ->itemList [$ i ]['ScheduledDeliveryStartDate ' ])){
761
+ return $ this ->itemList [$ i ]['ScheduledDeliveryStartDate ' ];
762
+ } else {
763
+ return false ;
764
+ }
765
+ }
766
+
767
+ /**
768
+ * Returns the latest date in the scheduled delivery window for the specified item.
769
+ *
770
+ * This method will return <b>FALSE</b> if the list has not yet been filled.
771
+ * @param int $i [optional] <p>List index to retrieve the value from. Defaults to 0.</p>
772
+ * @return string|boolean single value, or <b>FALSE</b> if incorrect index
773
+ */
774
+ public function getScheduledDeliveryEndDate ($ i = 0 ){
775
+ if (isset ($ this ->itemList [$ i ]['ScheduledDeliveryEndDate ' ])){
776
+ return $ this ->itemList [$ i ]['ScheduledDeliveryEndDate ' ];
777
+ } else {
778
+ return false ;
779
+ }
629
780
}
630
781
631
782
/**
0 commit comments