File Coverage

lib/eBay/API/XML/DataType/AddressType.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             #!/usr/bin/perl
2              
3             package eBay::API::XML::DataType::AddressType;
4              
5 1     1   1245 use strict;
  1         3  
  1         28  
6 1     1   5 use warnings;
  1         1  
  1         26  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. AddressType.pm
12             # Generated by: ......... genEBayApiDataTypes.pl
13             # Last Generated: ....... 08/24/2008 16:44
14             # API Release Number: ... 579
15             #
16             ##########################################################################
17              
18             =head1 NAME
19              
20             eBay::API::XML::DataType::AddressType
21              
22             =head1 DESCRIPTION
23              
24             Contains the data for one user address. This is the base type for a
25             number of user addresses, including seller payment address, buyer
26             shipping address and buyer and seller registration address.
27              
28              
29              
30             =head1 SYNOPSIS
31              
32             =cut
33              
34              
35             =head1 INHERITANCE
36              
37             eBay::API::XML::DataType::AddressType inherits from the L class
38              
39             =cut
40              
41 1     1   34 use eBay::API::XML::BaseDataType;
  0            
  0            
42             our @ISA = ("eBay::API::XML::BaseDataType");
43              
44             use eBay::API::XML::DataType::Enum::AddressOwnerCodeType;
45             use eBay::API::XML::DataType::Enum::AddressRecordTypeCodeType;
46             use eBay::API::XML::DataType::Enum::AddressStatusCodeType;
47             use eBay::API::XML::DataType::Enum::CountryCodeType;
48              
49              
50             my @gaProperties = ( [ 'AddressID', 'xs:string', '', '', '' ]
51             , [ 'AddressOwner', 'ns:AddressOwnerCodeType', ''
52             ,'eBay::API::XML::DataType::Enum::AddressOwnerCodeType', '' ]
53             , [ 'AddressRecordType', 'ns:AddressRecordTypeCodeType', ''
54             ,'eBay::API::XML::DataType::Enum::AddressRecordTypeCodeType', '' ]
55             , [ 'AddressStatus', 'ns:AddressStatusCodeType', ''
56             ,'eBay::API::XML::DataType::Enum::AddressStatusCodeType', '' ]
57             , [ 'CityName', 'xs:string', '', '', '' ]
58             , [ 'CompanyName', 'xs:string', '', '', '' ]
59             , [ 'Country', 'ns:CountryCodeType', ''
60             ,'eBay::API::XML::DataType::Enum::CountryCodeType', '' ]
61             , [ 'CountryName', 'xs:string', '', '', '' ]
62             , [ 'County', 'xs:string', '', '', '' ]
63             , [ 'ExternalAddressID', 'xs:string', '', '', '' ]
64             , [ 'FirstName', 'xs:string', '', '', '' ]
65             , [ 'InternationalName', 'xs:string', '', '', '' ]
66             , [ 'InternationalStateAndCity', 'xs:string', '', '', '' ]
67             , [ 'InternationalStreet', 'xs:string', '', '', '' ]
68             , [ 'LastName', 'xs:string', '', '', '' ]
69             , [ 'Name', 'xs:string', '', '', '' ]
70             , [ 'Phone', 'xs:string', '', '', '' ]
71             , [ 'Phone2', 'xs:string', '', '', '' ]
72             , [ 'Phone2AreaOrCityCode', 'xs:string', '', '', '' ]
73             , [ 'Phone2CountryCode', 'ns:CountryCodeType', ''
74             ,'eBay::API::XML::DataType::Enum::CountryCodeType', '' ]
75             , [ 'Phone2CountryPrefix', 'xs:string', '', '', '' ]
76             , [ 'Phone2LocalNumber', 'xs:string', '', '', '' ]
77             , [ 'PhoneAreaOrCityCode', 'xs:string', '', '', '' ]
78             , [ 'PhoneCountryCode', 'ns:CountryCodeType', ''
79             ,'eBay::API::XML::DataType::Enum::CountryCodeType', '' ]
80             , [ 'PhoneCountryPrefix', 'xs:string', '', '', '' ]
81             , [ 'PhoneLocalNumber', 'xs:string', '', '', '' ]
82             , [ 'PostalCode', 'xs:string', '', '', '' ]
83             , [ 'StateOrProvince', 'xs:string', '', '', '' ]
84             , [ 'Street', 'xs:string', '', '', '' ]
85             , [ 'Street1', 'xs:string', '', '', '' ]
86             , [ 'Street2', 'xs:string', '', '', '' ]
87             );
88             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
89              
90             my @gaAttributes = (
91             );
92             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
93              
94             =head1 Subroutines:
95              
96             =cut
97              
98             sub new {
99             my $classname = shift;
100             my %args = @_;
101             my $self = $classname->SUPER::new(%args);
102             return $self;
103             }
104              
105             sub isScalar {
106             return 0;
107             }
108              
109              
110              
111             =head2 setAddressID()
112              
113             ID assigned to the address in the eBay database.
114             For GetOrders, applies only to Half.com.
115              
116             # Argument: 'xs:string'
117              
118             =cut
119              
120             sub setAddressID {
121             my $self = shift;
122             $self->{'AddressID'} = shift
123             }
124              
125             =head2 getAddressID()
126              
127             Calls: GetOrders
128             Returned: Always
129             Details: DetailLevel: none
130              
131             Calls: GetOrderTransactions
132             Returned: Conditionally
133             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
134              
135             # Returns: 'xs:string'
136              
137             =cut
138              
139             sub getAddressID {
140             my $self = shift;
141             return $self->{'AddressID'};
142             }
143              
144              
145             =head2 setAddressOwner()
146              
147             The realm to which the address belongs (e.g. eBay vs PayPal).
148             For GetOrders, applies only to Half.com.
149              
150             # Argument: 'ns:AddressOwnerCodeType'
151              
152             =cut
153              
154             sub setAddressOwner {
155             my $self = shift;
156             $self->{'AddressOwner'} = shift
157             }
158              
159             =head2 getAddressOwner()
160              
161             Calls: GetOrderTransactions
162             Returned: Conditionally
163             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
164              
165             Calls: GetOrders
166             Returned: Always
167             Details: DetailLevel: none
168              
169             # Returns: 'ns:AddressOwnerCodeType'
170              
171             =cut
172              
173             sub getAddressOwner {
174             my $self = shift;
175             return $self->{'AddressOwner'};
176             }
177              
178              
179             =head2 setAddressRecordType()
180              
181             Indicates the nature of the address (e.g., residential or business).
182             Not applicable to Half.com.
183              
184             # Argument: 'ns:AddressRecordTypeCodeType'
185              
186             =cut
187              
188             sub setAddressRecordType {
189             my $self = shift;
190             $self->{'AddressRecordType'} = shift
191             }
192              
193             =head2 getAddressRecordType()
194              
195             # Returns: 'ns:AddressRecordTypeCodeType'
196              
197             =cut
198              
199             sub getAddressRecordType {
200             my $self = shift;
201             return $self->{'AddressRecordType'};
202             }
203              
204              
205             =head2 setAddressStatus()
206              
207             PayPal address status.
208             Not applicable to Half.com.
209              
210             # Argument: 'ns:AddressStatusCodeType'
211              
212             =cut
213              
214             sub setAddressStatus {
215             my $self = shift;
216             $self->{'AddressStatus'} = shift
217             }
218              
219             =head2 getAddressStatus()
220              
221             # Returns: 'ns:AddressStatusCodeType'
222              
223             =cut
224              
225             sub getAddressStatus {
226             my $self = shift;
227             return $self->{'AddressStatus'};
228             }
229              
230              
231             =head2 setCityName()
232              
233             The name of the user's city.
234             Also applicable to Half.com (for GetOrders).
235              
236             MaxLength: 64
237              
238             # Argument: 'xs:string'
239              
240             =cut
241              
242             sub setCityName {
243             my $self = shift;
244             $self->{'CityName'} = shift
245             }
246              
247             =head2 getCityName()
248              
249             Calls: GetAdFormatLeads
250             Returned: Conditionally
251             Details: DetailLevel: ReturnAll
252              
253             Calls: GetBidderList
254             Returned: Conditionally
255             Context: ShippingAddress
256              
257             Calls: GetItem
258             Returned: Conditionally
259             Details: DetailLevel: none, ItemReturnAttributes, ItemReturnDescription, ReturnAll
260             Context: RegistrationAddress
261              
262             Calls: GetItemTransactions
263             GetSellerTransactions
264             Returned: Conditionally
265             Details: DetailLevel: none, ReturnAll
266             Context: ShippingAddress
267              
268             Calls: GetUser
269             Returned: Conditionally
270             Details: DetailLevel: ReturnAll, ReturnSummary, none
271             Context: RegistrationAddress
272              
273             Calls: GetUser
274             Returned: Conditionally
275             Details: DetailLevel: ReturnAll
276             Context: SellerPaymentAddress
277              
278             Calls: GetUserContactDetails
279             Returned: Always
280              
281             Calls: GetOrders
282             Returned: Always
283             Details: DetailLevel: none
284              
285             Calls: GetOrderTransactions
286             Returned: Conditionally
287             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
288              
289             # Returns: 'xs:string'
290              
291             =cut
292              
293             sub getCityName {
294             my $self = shift;
295             return $self->{'CityName'};
296             }
297              
298              
299             =head2 setCompanyName()
300              
301             User's company name. Only returned if available.
302             Not applicable to Half.com.
303              
304             Calls: AddItem
305             RelistItem
306             ReviseItem
307             VerifyAddItem
308             RequiredInput: No
309              
310             # Argument: 'xs:string'
311              
312             =cut
313              
314             sub setCompanyName {
315             my $self = shift;
316             $self->{'CompanyName'} = shift
317             }
318              
319             =head2 getCompanyName()
320              
321             Calls: GetUserContactDetails
322             Returned: Always
323              
324             Calls: GetBidderList
325             Returned: Conditionally
326             Context: ShippingAddress
327              
328             Calls: GetItem
329             Returned: Conditionally
330             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
331             Context: SellerContactDetails
332              
333             Calls: GetUser
334             Returned: Conditionally
335             Details: DetailLevel: ReturnAll, ReturnSummary, none
336             Context: RegistrationAddress
337              
338             # Returns: 'xs:string'
339              
340             =cut
341              
342             sub getCompanyName {
343             my $self = shift;
344             return $self->{'CompanyName'};
345             }
346              
347              
348             =head2 setCountry()
349              
350             The country code of the user.
351            
352             If not provided as input for GetCart or SetCart, eBay uses the country associated
353             with the SiteID in effect when the call is made.
354            
355             Also applicable to Half.com (for GetOrders).
356              
357             Calls: SetUserPreferences
358             RequiredInput: No
359              
360             # Argument: 'ns:CountryCodeType'
361              
362             =cut
363              
364             sub setCountry {
365             my $self = shift;
366             $self->{'Country'} = shift
367             }
368              
369             =head2 getCountry()
370              
371             Calls: GetAllBidders
372             GetHighBidders
373             GetUserContactDetails
374             Returned: Always
375              
376             Calls: GetBidderList
377             GetUserPreferences
378             Returned: Conditionally
379              
380             Calls: GetItem
381             Returned: Conditionally
382             Details: DetailLevel: none, ItemReturnAttributes, ItemReturnDescription, ReturnAll
383             Context: RegistrationAddress
384             ShippingAddress
385              
386             Calls: GetItemTransactions
387             GetSellerTransactions
388             Returned: Conditionally
389             Details: DetailLevel: none, ReturnAll
390             Context: ShippingAddress
391              
392             Calls: GetOrders
393             Returned: Always
394             Details: DetailLevel: none
395              
396             Calls: GetOrderTransactions
397             Returned: Conditionally
398             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
399              
400             Calls: GetSellerList
401             Returned: Conditionally
402             Details: DetailLevel: ItemReturnDescription, ReturnAll
403             GranularityLevel: Fine
404              
405             Context: HighBidder
406              
407             Calls: GetUser
408             Returned: Conditionally
409             Details: DetailLevel: ReturnAll, ReturnSummary, none
410             Context: RegistrationAddress
411              
412             Calls: GetUser
413             Returned: Conditionally
414             Details: DetailLevel: ReturnAll
415             Context: SellerPaymentAddress
416              
417             # Returns: 'ns:CountryCodeType'
418              
419             =cut
420              
421             sub getCountry {
422             my $self = shift;
423             return $self->{'Country'};
424             }
425              
426              
427             =head2 setCountryName()
428              
429             The name of the user's country.
430             Also applicable to Half.com (for GetOrders).
431              
432             # Argument: 'xs:string'
433              
434             =cut
435              
436             sub setCountryName {
437             my $self = shift;
438             $self->{'CountryName'} = shift
439             }
440              
441             =head2 getCountryName()
442              
443             Calls: GetBidderList
444             Returned: Conditionally
445             Context: ShippingAddress
446              
447             Calls: GetItem
448             Returned: Conditionally
449             Details: DetailLevel: none, ItemReturnAttributes, ItemReturnDescription, ReturnAll
450             Context: RegistrationAddress
451              
452             Calls: GetItemTransactions
453             GetSellerTransactions
454             Returned: Conditionally
455             Details: DetailLevel: none, ReturnAll
456             Context: ShippingAddress
457              
458             Calls: GetUser
459             Returned: Conditionally
460             Details: DetailLevel: ReturnAll, ReturnSummary, none
461             Context: RegistrationAddress
462              
463             Calls: GetUser
464             Returned: Conditionally
465             Details: DetailLevel: ReturnAll
466             Context: SellerPaymentAddress
467              
468             Calls: GetOrders
469             Returned: Always
470             Details: DetailLevel: none
471              
472             Calls: GetOrderTransactions
473             Returned: Conditionally
474             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
475              
476             # Returns: 'xs:string'
477              
478             =cut
479              
480             sub getCountryName {
481             my $self = shift;
482             return $self->{'CountryName'};
483             }
484              
485              
486             =head2 setCounty()
487              
488             County information for the user.
489             This field applies to Classified Ad format listings and to the UK only.
490             Not applicable to Half.com.
491              
492             Calls: AddItem
493             RelistItem
494             ReviseItem
495             VerifyAddItem
496             RequiredInput: No
497              
498             # Argument: 'xs:string'
499              
500             =cut
501              
502             sub setCounty {
503             my $self = shift;
504             $self->{'County'} = shift
505             }
506              
507             =head2 getCounty()
508              
509             Calls: GetItem
510             Returned: Conditionally
511             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
512             Context: SellerContactDetails
513              
514             # Returns: 'xs:string'
515              
516             =cut
517              
518             sub getCounty {
519             my $self = shift;
520             return $self->{'County'};
521             }
522              
523              
524             =head2 setExternalAddressID()
525              
526             ID assigned to the address by the owner of the address (fitting
527             only if the address is owned by PayPal; see AddressOwner).
528             Also applicable to Half.com (for GetOrders).
529              
530             MaxLength: 20
531              
532             # Argument: 'xs:string'
533              
534             =cut
535              
536             sub setExternalAddressID {
537             my $self = shift;
538             $self->{'ExternalAddressID'} = shift
539             }
540              
541             =head2 getExternalAddressID()
542              
543             Calls: GetOrders
544             Returned: Always
545             Details: DetailLevel: none
546              
547             Calls: GetOrderTransactions
548             Returned: Conditionally
549             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
550              
551             Calls: GetItemTransactions
552             GetSellerTransactions
553             Returned: Conditionally
554             Details: DetailLevel: none, ReturnAll
555              
556             # Returns: 'xs:string'
557              
558             =cut
559              
560             sub getExternalAddressID {
561             my $self = shift;
562             return $self->{'ExternalAddressID'};
563             }
564              
565              
566             =head2 setFirstName()
567              
568             Displays the first name of the seller (in a business card
569             format) if the seller's SellerBusinessCodeType is set to
570             'Commercial'.
571              
572             # Argument: 'xs:string'
573              
574             =cut
575              
576             sub setFirstName {
577             my $self = shift;
578             $self->{'FirstName'} = shift
579             }
580              
581             =head2 getFirstName()
582              
583             Calls: GetItem
584             GetAdFormatLeads
585             Returned: Conditionally
586             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
587              
588             # Returns: 'xs:string'
589              
590             =cut
591              
592             sub getFirstName {
593             my $self = shift;
594             return $self->{'FirstName'};
595             }
596              
597              
598             =head2 setInternationalName()
599              
600             Seller's international name that is associated with the payment address.
601             Only applicable to SellerPaymentAddress.
602             Not applicable to Half.com.
603              
604             # Argument: 'xs:string'
605              
606             =cut
607              
608             sub setInternationalName {
609             my $self = shift;
610             $self->{'InternationalName'} = shift
611             }
612              
613             =head2 getInternationalName()
614              
615             Calls: GetUser
616             Returned: Conditionally
617             Details: DetailLevel: ReturnAll
618             Context: SellerPaymentAddress
619              
620             Calls: GetBidderList
621             Returned: Conditionally
622             Context: ShippingAddress
623              
624             # Returns: 'xs:string'
625              
626             =cut
627              
628             sub getInternationalName {
629             my $self = shift;
630             return $self->{'InternationalName'};
631             }
632              
633              
634             =head2 setInternationalStateAndCity()
635              
636             International state and city for the seller's payment address.
637             Only applicable to SellerPaymentAddress.
638             Not applicable to Half.com.
639              
640             # Argument: 'xs:string'
641              
642             =cut
643              
644             sub setInternationalStateAndCity {
645             my $self = shift;
646             $self->{'InternationalStateAndCity'} = shift
647             }
648              
649             =head2 getInternationalStateAndCity()
650              
651             Calls: GetUser
652             Returned: Conditionally
653             Details: DetailLevel: ReturnAll
654             Context: SellerPaymentAddress
655              
656             Calls: GetBidderList
657             Returned: Conditionally
658             Context: ShippingAddress
659              
660             # Returns: 'xs:string'
661              
662             =cut
663              
664             sub getInternationalStateAndCity {
665             my $self = shift;
666             return $self->{'InternationalStateAndCity'};
667             }
668              
669              
670             =head2 setInternationalStreet()
671              
672             Seller's international street address that is associated with the payment address.
673             Only applicable to SellerPaymentAddress.
674             Not applicable to Half.com.
675              
676             # Argument: 'xs:string'
677              
678             =cut
679              
680             sub setInternationalStreet {
681             my $self = shift;
682             $self->{'InternationalStreet'} = shift
683             }
684              
685             =head2 getInternationalStreet()
686              
687             Calls: GetUser
688             Returned: Conditionally
689             Details: DetailLevel: ReturnAll
690             Context: SellerPaymentAddress
691              
692             Calls: GetBidderList
693             Returned: Conditionally
694             Context: ShippingAddress
695              
696             # Returns: 'xs:string'
697              
698             =cut
699              
700             sub getInternationalStreet {
701             my $self = shift;
702             return $self->{'InternationalStreet'};
703             }
704              
705              
706             =head2 setLastName()
707              
708             Displays the last name of the seller (in a business card
709             format) if the seller's SellerBusinessCodeType is set to
710             'Commercial'.
711              
712             # Argument: 'xs:string'
713              
714             =cut
715              
716             sub setLastName {
717             my $self = shift;
718             $self->{'LastName'} = shift
719             }
720              
721             =head2 getLastName()
722              
723             Calls: GetItem
724             GetAdFormatLeads
725             Returned: Conditionally
726             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
727              
728             # Returns: 'xs:string'
729              
730             =cut
731              
732             sub getLastName {
733             my $self = shift;
734             return $self->{'LastName'};
735             }
736              
737              
738             =head2 setName()
739              
740             User's name for the address.
741             Also applicable to Half.com (for GetOrders).
742              
743             MaxLength: 64
744              
745             # Argument: 'xs:string'
746              
747             =cut
748              
749             sub setName {
750             my $self = shift;
751             $self->{'Name'} = shift
752             }
753              
754             =head2 getName()
755              
756             Calls: GetItem
757             Returned: Conditionally
758             Details: DetailLevel: none, ItemReturnAttributes, ItemReturnDescription, ReturnAll
759             Context: RegistrationAddress
760              
761             Calls: GetUser
762             Returned: Conditionally
763             Details: DetailLevel: ReturnAll, ReturnSummary, none
764             Context: RegistrationAddress
765              
766             Calls: GetUser
767             Returned: Conditionally
768             Details: DetailLevel: ReturnAll
769             Context: SellerPaymentAddress
770              
771             Calls: GetUserContactDetails
772             Returned: Always
773              
774             Calls: GetOrders
775             Returned: Always
776             Details: DetailLevel: none
777              
778             Calls: GetOrderTransactions
779             Returned: Conditionally
780             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
781              
782             Calls: GetItemTransactions
783             GetSellerTransactions
784             Returned: Conditionally
785             Details: DetailLevel: none, ReturnAll
786              
787             # Returns: 'xs:string'
788              
789             =cut
790              
791             sub getName {
792             my $self = shift;
793             return $self->{'Name'};
794             }
795              
796              
797             =head2 setPhone()
798              
799             User's primary phone number. This may return a value of
800             "Invalid Request" if you are not authorized to see the
801             user's phone number.
802             Also applicable to Half.com (for GetOrders).
803              
804             # Argument: 'xs:string'
805              
806             =cut
807              
808             sub setPhone {
809             my $self = shift;
810             $self->{'Phone'} = shift
811             }
812              
813             =head2 getPhone()
814              
815             Calls: GetItem
816             Returned: Conditionally
817             Details: DetailLevel: none, ItemReturnAttributes, ItemReturnDescription, ReturnAll
818             Context: RegistrationAddress
819              
820             Calls: GetItemTransactions
821             GetSellerTransactions
822             Returned: Conditionally
823             Details: DetailLevel: none, ReturnAll
824             Context: ShippingAddress
825              
826             Calls: GetBidderList
827             Returned: Conditionally
828             Context: ShippingAddress
829              
830             Calls: GetUser
831             Returned: Conditionally
832             Details: DetailLevel: ReturnAll, ReturnSummary, none
833             Context: RegistrationAddress
834              
835             Calls: GetUser
836             Returned: Conditionally
837             Details: DetailLevel: ReturnAll
838             Context: SellerPaymentAddress
839              
840             Calls: GetUserContactDetails
841             Returned: Always
842              
843             Calls: GetOrders
844             Returned: Always
845             Details: DetailLevel: none
846              
847             Calls: GetOrderTransactions
848             Returned: Conditionally
849             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
850              
851             Calls: GetAdFormatLeads
852             Returned: Conditionally
853             Details: DetailLevel: ReturnAll
854              
855             # Returns: 'xs:string'
856              
857             =cut
858              
859             sub getPhone {
860             my $self = shift;
861             return $self->{'Phone'};
862             }
863              
864              
865             =head2 setPhone2()
866              
867             Secondary Phone number of the lead. Not returned if information is unavailable.
868              
869             # Argument: 'xs:string'
870              
871             =cut
872              
873             sub setPhone2 {
874             my $self = shift;
875             $self->{'Phone2'} = shift
876             }
877              
878             =head2 getPhone2()
879              
880             Calls: GetAdFormatLeads
881             Returned: Conditionally
882             Details: DetailLevel: ReturnAll
883              
884             # Returns: 'xs:string'
885              
886             =cut
887              
888             sub getPhone2 {
889             my $self = shift;
890             return $self->{'Phone2'};
891             }
892              
893              
894             =head2 setPhone2AreaOrCityCode()
895              
896             Area or City Code of a user's secondary phone number.
897             This field applies to Classified Ad format listings only.
898              
899             Calls: AddItem
900             RelistItem
901             ReviseItem
902             VerifyAddItem
903             RequiredInput: No
904              
905             # Argument: 'xs:string'
906              
907             =cut
908              
909             sub setPhone2AreaOrCityCode {
910             my $self = shift;
911             $self->{'Phone2AreaOrCityCode'} = shift
912             }
913              
914             =head2 getPhone2AreaOrCityCode()
915              
916             Calls: GetItem
917             Returned: Conditionally
918             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
919             Context: SellerContactDetails
920              
921             # Returns: 'xs:string'
922              
923             =cut
924              
925             sub getPhone2AreaOrCityCode {
926             my $self = shift;
927             return $self->{'Phone2AreaOrCityCode'};
928             }
929              
930              
931             =head2 setPhone2CountryCode()
932              
933             Standard ISO code for the country of a user's secondary telephone phone
934             number. For Classifed Ad format listings, this code is used to look up the
935             country's international calling prefix. Both the ISO code and country phone
936             prefix are stored with listings of this type.
937             This field applies to Classified Ad format listings only.
938              
939             Calls: AddItem
940             RelistItem
941             ReviseItem
942             VerifyAddItem
943             RequiredInput: No
944              
945             # Argument: 'ns:CountryCodeType'
946              
947             =cut
948              
949             sub setPhone2CountryCode {
950             my $self = shift;
951             $self->{'Phone2CountryCode'} = shift
952             }
953              
954             =head2 getPhone2CountryCode()
955              
956             Calls: GetItem
957             Returned: Conditionally
958             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
959             Context: SellerContactDetails
960              
961             # Returns: 'ns:CountryCodeType'
962              
963             =cut
964              
965             sub getPhone2CountryCode {
966             my $self = shift;
967             return $self->{'Phone2CountryCode'};
968             }
969              
970              
971             =head2 setPhone2CountryPrefix()
972              
973             Country prefix of a user's secondary phone number. This value is derived from
974             inputs supplied for Phone2CountryCode.
975             This field applies to Classified Ad format listings only.
976              
977             # Argument: 'xs:string'
978              
979             =cut
980              
981             sub setPhone2CountryPrefix {
982             my $self = shift;
983             $self->{'Phone2CountryPrefix'} = shift
984             }
985              
986             =head2 getPhone2CountryPrefix()
987              
988             Calls: GetItem
989             Returned: Conditionally
990             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
991             Context: SellerContactDetails
992              
993             # Returns: 'xs:string'
994              
995             =cut
996              
997             sub getPhone2CountryPrefix {
998             my $self = shift;
999             return $self->{'Phone2CountryPrefix'};
1000             }
1001              
1002              
1003             =head2 setPhone2LocalNumber()
1004              
1005             The local number portion of the user's secondary phone number.
1006             This field applies to Classified Ad format listings only.
1007            
1008             Note: The full secondary phone number is constructed by
1009             combining Phone2LocalNumber with Phone2AreaOrCityCode and Phone2CountryPrefix.
1010             Starting with API release 497, the full phone number can be entered in
1011             Phone2LocalNumber. Refer to the release notes for additional information.
1012              
1013             MaxLength: 30
1014              
1015             Calls: AddItem
1016             RelistItem
1017             ReviseItem
1018             VerifyAddItem
1019             RequiredInput: No
1020              
1021             # Argument: 'xs:string'
1022              
1023             =cut
1024              
1025             sub setPhone2LocalNumber {
1026             my $self = shift;
1027             $self->{'Phone2LocalNumber'} = shift
1028             }
1029              
1030             =head2 getPhone2LocalNumber()
1031              
1032             Calls: GetItem
1033             Returned: Conditionally
1034             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
1035             Context: SellerContactDetails
1036              
1037             # Returns: 'xs:string'
1038              
1039             =cut
1040              
1041             sub getPhone2LocalNumber {
1042             my $self = shift;
1043             return $self->{'Phone2LocalNumber'};
1044             }
1045              
1046              
1047             =head2 setPhoneAreaOrCityCode()
1048              
1049             Area or City Code of a user's primary phone number.
1050             This field applies to Classified Ad format listings only.
1051              
1052             Calls: AddItem
1053             RelistItem
1054             ReviseItem
1055             VerifyAddItem
1056             RequiredInput: No
1057              
1058             # Argument: 'xs:string'
1059              
1060             =cut
1061              
1062             sub setPhoneAreaOrCityCode {
1063             my $self = shift;
1064             $self->{'PhoneAreaOrCityCode'} = shift
1065             }
1066              
1067             =head2 getPhoneAreaOrCityCode()
1068              
1069             Calls: GetItem
1070             Returned: Conditionally
1071             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
1072             Context: SellerContactDetails
1073              
1074             # Returns: 'xs:string'
1075              
1076             =cut
1077              
1078             sub getPhoneAreaOrCityCode {
1079             my $self = shift;
1080             return $self->{'PhoneAreaOrCityCode'};
1081             }
1082              
1083              
1084             =head2 setPhoneCountryCode()
1085              
1086             Standard ISO code for the country of the user's primay telephone phone number.
1087             For Classifed Ad format listings, this code is used to look up the country's
1088             international calling prefix. Both the ISO code and country phone prefix are
1089             stored with listings of this type.
1090             This field applies to Classified Ad format listings only.
1091              
1092             Calls: AddItem
1093             RelistItem
1094             ReviseItem
1095             VerifyAddItem
1096             RequiredInput: No
1097              
1098             # Argument: 'ns:CountryCodeType'
1099              
1100             =cut
1101              
1102             sub setPhoneCountryCode {
1103             my $self = shift;
1104             $self->{'PhoneCountryCode'} = shift
1105             }
1106              
1107             =head2 getPhoneCountryCode()
1108              
1109             Calls: GetItem
1110             Returned: Conditionally
1111             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
1112             Context: SellerContactDetails
1113              
1114             # Returns: 'ns:CountryCodeType'
1115              
1116             =cut
1117              
1118             sub getPhoneCountryCode {
1119             my $self = shift;
1120             return $self->{'PhoneCountryCode'};
1121             }
1122              
1123              
1124             =head2 setPhoneCountryPrefix()
1125              
1126             Country Prefix of the secondary phone number. This value is derived from
1127             inputs supplied for PhoneCountryCode.
1128             This field applies to Classified Ad format listings only.
1129              
1130             # Argument: 'xs:string'
1131              
1132             =cut
1133              
1134             sub setPhoneCountryPrefix {
1135             my $self = shift;
1136             $self->{'PhoneCountryPrefix'} = shift
1137             }
1138              
1139             =head2 getPhoneCountryPrefix()
1140              
1141             Calls: GetItem
1142             Returned: Conditionally
1143             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
1144             Context: SellerContactDetails
1145              
1146             # Returns: 'xs:string'
1147              
1148             =cut
1149              
1150             sub getPhoneCountryPrefix {
1151             my $self = shift;
1152             return $self->{'PhoneCountryPrefix'};
1153             }
1154              
1155              
1156             =head2 setPhoneLocalNumber()
1157              
1158             The local number portion of the user's primary phone number.
1159             This field applies to Classified Ad format listings only.
1160            
1161             Note: The full primary phone number is constructed by
1162             combining PhoneLocalNumber with PhoneAreaOrCityCode and PhoneCountryPrefix.
1163             Starting with API release 497, the full phone number can be entered in
1164             PhoneLocalNumber. Refer to the release notes for additional information.
1165              
1166             MaxLength: 30
1167              
1168             Calls: AddItem
1169             RelistItem
1170             ReviseItem
1171             VerifyAddItem
1172             RequiredInput: No
1173              
1174             # Argument: 'xs:string'
1175              
1176             =cut
1177              
1178             sub setPhoneLocalNumber {
1179             my $self = shift;
1180             $self->{'PhoneLocalNumber'} = shift
1181             }
1182              
1183             =head2 getPhoneLocalNumber()
1184              
1185             Calls: GetItem
1186             Returned: Conditionally
1187             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
1188             Context: SellerContactDetails
1189              
1190             # Returns: 'xs:string'
1191              
1192             =cut
1193              
1194             sub getPhoneLocalNumber {
1195             my $self = shift;
1196             return $self->{'PhoneLocalNumber'};
1197             }
1198              
1199              
1200             =head2 setPostalCode()
1201              
1202             User's postal code.
1203            
1204             If not provided as input for GetCart or SetCart, eBay uses the country associated
1205             with the SiteID in effect when the call is made.
1206            
1207             Also applicable to Half.com (for GetOrders).
1208              
1209             MaxLength: 12
1210              
1211             # Argument: 'xs:string'
1212              
1213             =cut
1214              
1215             sub setPostalCode {
1216             my $self = shift;
1217             $self->{'PostalCode'} = shift
1218             }
1219              
1220             =head2 getPostalCode()
1221              
1222             Calls: GetBidderList
1223             Returned: Conditionally
1224              
1225             Calls: GetAdFormatLeads
1226             Returned: Conditionally
1227             Details: DetailLevel: ReturnAll
1228              
1229             Calls: GetSellerList
1230             Returned: Conditionally
1231             Details: DetailLevel: ItemReturnDescription, ReturnAll
1232             GranularityLevel: Fine
1233              
1234             Context: HighBidder
1235              
1236             Calls: GetItem
1237             Returned: Conditionally
1238             Details: DetailLevel: none, ItemReturnAttributes, ItemReturnDescription, ReturnAll
1239             Context: RegistrationAddress
1240             ShippingAddress
1241              
1242             Calls: GetItemTransactions
1243             GetSellerTransactions
1244             Returned: Conditionally
1245             Details: DetailLevel: none, ReturnAll
1246             Context: ShippingAddress
1247              
1248             Calls: GetUser
1249             Returned: Conditionally
1250             Details: DetailLevel: ReturnAll, ReturnSummary, none
1251             Context: RegistrationAddress
1252              
1253             Calls: GetUser
1254             Returned: Conditionally
1255             Details: DetailLevel: ReturnAll
1256             Context: SellerPaymentAddress
1257              
1258             Calls: GetMyeBaySelling
1259             Returned: Conditionally
1260             Details: DetailLevel: none, ReturnSummary, ReturnAll
1261             Context: SoldList
1262              
1263             Calls: GetAllBidders
1264             GetHighBidders
1265             Returned: Always
1266              
1267             Calls: GetOrders
1268             Returned: Always
1269             Details: DetailLevel: none
1270              
1271             Calls: GetOrderTransactions
1272             Returned: Conditionally
1273             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
1274              
1275             # Returns: 'xs:string'
1276              
1277             =cut
1278              
1279             sub getPostalCode {
1280             my $self = shift;
1281             return $self->{'PostalCode'};
1282             }
1283              
1284              
1285             =head2 setStateOrProvince()
1286              
1287             The region of the user's address.
1288             Also applicable to Half.com (for GetOrders).
1289              
1290             MaxLength: 64
1291              
1292             # Argument: 'xs:string'
1293              
1294             =cut
1295              
1296             sub setStateOrProvince {
1297             my $self = shift;
1298             $self->{'StateOrProvince'} = shift
1299             }
1300              
1301             =head2 getStateOrProvince()
1302              
1303             Calls: GetAdFormatLeads
1304             Returned: Conditionally
1305             Details: DetailLevel: ReturnAll
1306              
1307             Calls: GetBidderList
1308             Returned: Conditionally
1309             Context: ShippingAddress
1310              
1311             Calls: GetItemTransactions
1312             GetSellerTransactions
1313             Returned: Conditionally
1314             Details: DetailLevel: none, ReturnAll
1315             Context: ShippingAddress
1316              
1317             Calls: GetUser
1318             Returned: Conditionally
1319             Details: DetailLevel: ReturnAll, ReturnSummary, none
1320             Context: RegistrationAddress
1321              
1322             Calls: GetUser
1323             Returned: Conditionally
1324             Details: DetailLevel: ReturnAll
1325             Context: SellerPaymentAddress
1326              
1327             Calls: GetUserContactDetails
1328             Returned: Always
1329              
1330             Calls: GetOrders
1331             Returned: Always
1332             Details: DetailLevel: none
1333              
1334             Calls: GetOrderTransactions
1335             Returned: Conditionally
1336             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
1337              
1338             # Returns: 'xs:string'
1339              
1340             =cut
1341              
1342             sub getStateOrProvince {
1343             my $self = shift;
1344             return $self->{'StateOrProvince'};
1345             }
1346              
1347              
1348             =head2 setStreet()
1349              
1350             A concatenation of Street1 and Street2, primarily for RegistrationAddress.
1351             Not applicable to Half.com.
1352              
1353             Calls: AddItem
1354             RelistItem
1355             ReviseItem
1356             VerifyAddItem
1357             RequiredInput: No
1358              
1359             # Argument: 'xs:string'
1360              
1361             =cut
1362              
1363             sub setStreet {
1364             my $self = shift;
1365             $self->{'Street'} = shift
1366             }
1367              
1368             =head2 getStreet()
1369              
1370             Calls: GetBidderList
1371             Returned: Conditionally
1372             Context: ShippingAddress
1373              
1374             Calls: GetItem
1375             Returned: Conditionally
1376             Details: DetailLevel: none, ItemReturnAttributes, ItemReturnDescription, ReturnAll
1377             Context: RegistrationAddress
1378              
1379             Calls: GetItemTransactions
1380             GetSellerTransactions
1381             Returned: Conditionally
1382             Details: DetailLevel: none, ReturnAll
1383             Context: ShippingAddress
1384              
1385             Calls: GetUser
1386             Returned: Conditionally
1387             Details: DetailLevel: ReturnAll, ReturnSummary, none
1388             Context: RegistrationAddress
1389              
1390             # Returns: 'xs:string'
1391              
1392             =cut
1393              
1394             sub getStreet {
1395             my $self = shift;
1396             return $self->{'Street'};
1397             }
1398              
1399              
1400             =head2 setStreet1()
1401              
1402             Line 1 of the user's street address.
1403             Also applicable to Half.com (for GetOrders).
1404              
1405             MaxLength: 100
1406              
1407             # Argument: 'xs:string'
1408              
1409             =cut
1410              
1411             sub setStreet1 {
1412             my $self = shift;
1413             $self->{'Street1'} = shift
1414             }
1415              
1416             =head2 getStreet1()
1417              
1418             Calls: GetBidderList
1419             Returned: Conditionally
1420             Context: ShippingAddress
1421              
1422             Calls: GetItemTransactions
1423             GetSellerTransactions
1424             Returned: Conditionally
1425             Details: DetailLevel: none, ReturnAll
1426             Context: ShippingAddress
1427              
1428             Calls: GetAdFormatLeads
1429             Returned: Conditionally
1430             Details: DetailLevel: ReturnAll
1431              
1432             Calls: GetItem
1433             Returned: Conditionally
1434             Details: DetailLevel: none, ItemReturnAttributes, ItemReturnDescription, ReturnAll
1435             Context: RegistrationAddress
1436              
1437             Calls: GetItem
1438             Returned: Conditionally
1439             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
1440             Context: SellerContactDetails
1441              
1442             Calls: GetUser
1443             Returned: Conditionally
1444             Details: DetailLevel: ReturnAll, ReturnSummary, none
1445             Context: RegistrationAddress
1446              
1447             Calls: GetUser
1448             Returned: Conditionally
1449             Details: DetailLevel: ReturnAll
1450             Context: SellerPaymentAddress
1451              
1452             Calls: GetOrders
1453             Returned: Always
1454             Details: DetailLevel: none
1455              
1456             Calls: GetOrderTransactions
1457             Returned: Conditionally
1458             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
1459              
1460             # Returns: 'xs:string'
1461              
1462             =cut
1463              
1464             sub getStreet1 {
1465             my $self = shift;
1466             return $self->{'Street1'};
1467             }
1468              
1469              
1470             =head2 setStreet2()
1471              
1472             Line 2 of the user's address (such as an apartment number).
1473             Returned if the user specified a second street value for their address.
1474             Also applicable to Half.com (for GetOrders).
1475             In case of Item.SellerContactDetails, Street2 can be used to provide City, Address, State, and Zip code (if applicable).
1476              
1477             MaxLength: 100
1478              
1479             Calls: AddItem
1480             RelistItem
1481             ReviseItem
1482             VerifyAddItem
1483             RequiredInput: No
1484              
1485             # Argument: 'xs:string'
1486              
1487             =cut
1488              
1489             sub setStreet2 {
1490             my $self = shift;
1491             $self->{'Street2'} = shift
1492             }
1493              
1494             =head2 getStreet2()
1495              
1496             Calls: GetBidderList
1497             Returned: Conditionally
1498             Context: ShippingAddress
1499              
1500             Calls: GetItem
1501             Returned: Conditionally
1502             Details: DetailLevel: none, ItemReturnAttributes, ItemReturnDescription, ReturnAll
1503             Context: RegistrationAddress
1504              
1505             Calls: GetItem
1506             Returned: Conditionally
1507             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
1508             Context: SellerContactDetails
1509              
1510             Calls: GetItemTransactions
1511             GetSellerTransactions
1512             Returned: Conditionally
1513             Details: DetailLevel: none, ReturnAll
1514             Context: ShippingAddress
1515              
1516             Calls: GetUser
1517             Returned: Conditionally
1518             Details: DetailLevel: ReturnAll, ReturnSummary, none
1519             Context: RegistrationAddress
1520              
1521             Calls: GetUser
1522             Returned: Conditionally
1523             Details: DetailLevel: ReturnAll
1524             Context: SellerPaymentAddress
1525              
1526             Calls: GetOrders
1527             Returned: Always
1528             Details: DetailLevel: none
1529              
1530             Calls: GetOrderTransactions
1531             Returned: Conditionally
1532             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
1533              
1534             # Returns: 'xs:string'
1535              
1536             =cut
1537              
1538             sub getStreet2 {
1539             my $self = shift;
1540             return $self->{'Street2'};
1541             }
1542              
1543              
1544              
1545              
1546              
1547             ## Attribute and Property lists
1548             sub getPropertiesList {
1549             my $self = shift;
1550             return \@gaProperties;
1551             }
1552              
1553             sub getAttributesList {
1554             my $self = shift;
1555             return \@gaAttributes;
1556             }
1557              
1558              
1559              
1560             1;