File Coverage

lib/eBay/API/XML/DataType/StoreType.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::StoreType;
4              
5 1     1   1669 use strict;
  1         3  
  1         31  
6 1     1   6 use warnings;
  1         2  
  1         31  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. StoreType.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::StoreType
21              
22             =head1 DESCRIPTION
23              
24             The configuration of an eBay Store.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::StoreType inherits from the L class
36              
37             =cut
38              
39 1     1   41 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42             use eBay::API::XML::DataType::StoreCustomCategoryArrayType;
43             use eBay::API::XML::DataType::StoreCustomListingHeaderType;
44             use eBay::API::XML::DataType::StoreLogoType;
45             use eBay::API::XML::DataType::StoreThemeType;
46             use eBay::API::XML::DataType::Enum::MerchDisplayCodeType;
47             use eBay::API::XML::DataType::Enum::StoreCustomHeaderLayoutCodeType;
48             use eBay::API::XML::DataType::Enum::StoreHeaderStyleCodeType;
49             use eBay::API::XML::DataType::Enum::StoreItemListLayoutCodeType;
50             use eBay::API::XML::DataType::Enum::StoreItemListSortOrderCodeType;
51             use eBay::API::XML::DataType::Enum::StoreSubscriptionLevelCodeType;
52              
53              
54             my @gaProperties = ( [ 'CustomCategories', 'ns:StoreCustomCategoryArrayType', ''
55             ,'eBay::API::XML::DataType::StoreCustomCategoryArrayType', '1' ]
56             , [ 'CustomHeader', 'xs:string', '', '', '' ]
57             , [ 'CustomHeaderLayout', 'ns:StoreCustomHeaderLayoutCodeType', ''
58             ,'eBay::API::XML::DataType::Enum::StoreCustomHeaderLayoutCodeType', '' ]
59             , [ 'CustomListingHeader', 'ns:StoreCustomListingHeaderType', ''
60             ,'eBay::API::XML::DataType::StoreCustomListingHeaderType', '1' ]
61             , [ 'Description', 'xs:string', '', '', '' ]
62             , [ 'ExportListings', 'xs:boolean', '', '', '' ]
63             , [ 'HeaderStyle', 'ns:StoreHeaderStyleCodeType', ''
64             ,'eBay::API::XML::DataType::Enum::StoreHeaderStyleCodeType', '' ]
65             , [ 'HomePage', 'xs:long', '', '', '' ]
66             , [ 'ItemListLayout', 'ns:StoreItemListLayoutCodeType', ''
67             ,'eBay::API::XML::DataType::Enum::StoreItemListLayoutCodeType', '' ]
68             , [ 'ItemListSortOrder', 'ns:StoreItemListSortOrderCodeType', ''
69             ,'eBay::API::XML::DataType::Enum::StoreItemListSortOrderCodeType', '' ]
70             , [ 'LastOpenedTime', 'xs:dateTime', '', '', '' ]
71             , [ 'Logo', 'ns:StoreLogoType', ''
72             ,'eBay::API::XML::DataType::StoreLogoType', '1' ]
73             , [ 'MerchDisplay', 'ns:MerchDisplayCodeType', ''
74             ,'eBay::API::XML::DataType::Enum::MerchDisplayCodeType', '' ]
75             , [ 'Name', 'xs:string', '', '', '' ]
76             , [ 'SubscriptionLevel', 'ns:StoreSubscriptionLevelCodeType', ''
77             ,'eBay::API::XML::DataType::Enum::StoreSubscriptionLevelCodeType', '' ]
78             , [ 'Theme', 'ns:StoreThemeType', ''
79             ,'eBay::API::XML::DataType::StoreThemeType', '1' ]
80             , [ 'URL', 'xs:anyURI', '', '', '' ]
81             , [ 'URLPath', 'xs:string', '', '', '' ]
82             );
83             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
84              
85             my @gaAttributes = (
86             );
87             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
88              
89             =head1 Subroutines:
90              
91             =cut
92              
93             sub new {
94             my $classname = shift;
95             my %args = @_;
96             my $self = $classname->SUPER::new(%args);
97             return $self;
98             }
99              
100             sub isScalar {
101             return 0;
102             }
103              
104              
105              
106             =head2 setCustomCategories()
107              
108             Custom categories for the Store. Deprecated (input ignored) for SetStore
109             with request version 449 or higher. Use SetStoreCategories with
110             request verison 449 or higher to modify store category structures.
111              
112             # Argument: 'ns:StoreCustomCategoryArrayType'
113              
114             =cut
115              
116             sub setCustomCategories {
117             my $self = shift;
118             $self->{'CustomCategories'} = shift
119             }
120              
121             =head2 getCustomCategories()
122              
123             Calls: GetStore
124             Returned: Always
125              
126             # Returns: 'ns:StoreCustomCategoryArrayType'
127              
128             =cut
129              
130             sub getCustomCategories {
131             my $self = shift;
132             return $self->_getDataTypeInstance( 'CustomCategories'
133             ,'eBay::API::XML::DataType::StoreCustomCategoryArrayType');
134             }
135              
136              
137             =head2 setCustomHeader()
138              
139             Custom header text for the Store.
140              
141             Calls: SetStore
142             RequiredInput: Conditionally
143              
144             # Argument: 'xs:string'
145              
146             =cut
147              
148             sub setCustomHeader {
149             my $self = shift;
150             $self->{'CustomHeader'} = shift
151             }
152              
153             =head2 getCustomHeader()
154              
155             Calls: GetStore
156             Returned: Conditionally
157              
158             # Returns: 'xs:string'
159              
160             =cut
161              
162             sub getCustomHeader {
163             my $self = shift;
164             return $self->{'CustomHeader'};
165             }
166              
167              
168             =head2 setCustomHeaderLayout()
169              
170             Layout for the Store's custom header.
171              
172             Calls: SetStore
173             RequiredInput: Conditionally
174              
175             # Argument: 'ns:StoreCustomHeaderLayoutCodeType'
176              
177             =cut
178              
179             sub setCustomHeaderLayout {
180             my $self = shift;
181             $self->{'CustomHeaderLayout'} = shift
182             }
183              
184             =head2 getCustomHeaderLayout()
185              
186             Calls: GetStore
187             Returned: Conditionally
188              
189             # Returns: 'ns:StoreCustomHeaderLayoutCodeType'
190              
191             =cut
192              
193             sub getCustomHeaderLayout {
194             my $self = shift;
195             return $self->{'CustomHeaderLayout'};
196             }
197              
198              
199             =head2 setCustomListingHeader()
200              
201             Custom listing header for the Store.
202              
203             Calls: SetStore
204             RequiredInput: Conditionally
205              
206             # Argument: 'ns:StoreCustomListingHeaderType'
207              
208             =cut
209              
210             sub setCustomListingHeader {
211             my $self = shift;
212             $self->{'CustomListingHeader'} = shift
213             }
214              
215             =head2 getCustomListingHeader()
216              
217             Calls: GetStore
218             Returned: Conditionally
219              
220             # Returns: 'ns:StoreCustomListingHeaderType'
221              
222             =cut
223              
224             sub getCustomListingHeader {
225             my $self = shift;
226             return $self->_getDataTypeInstance( 'CustomListingHeader'
227             ,'eBay::API::XML::DataType::StoreCustomListingHeaderType');
228             }
229              
230              
231             =head2 setDescription()
232              
233             Store description (300 characters maximum).
234              
235             Calls: SetStore
236             RequiredInput: Conditionally
237              
238             # Argument: 'xs:string'
239              
240             =cut
241              
242             sub setDescription {
243             my $self = shift;
244             $self->{'Description'} = shift
245             }
246              
247             =head2 getDescription()
248              
249             Calls: GetStore
250             Returned: Always
251              
252             # Returns: 'xs:string'
253              
254             =cut
255              
256             sub getDescription {
257             my $self = shift;
258             return $self->{'Description'};
259             }
260              
261              
262             =head2 setExportListings()
263              
264             Specifies whether to export the Store listings to comparison
265             shopping websites.
266              
267             Calls: SetStore
268             RequiredInput: Conditionally
269              
270             # Argument: 'xs:boolean'
271              
272             =cut
273              
274             sub setExportListings {
275             my $self = shift;
276             $self->{'ExportListings'} = shift
277             }
278              
279             =head2 isExportListings()
280              
281             Calls: GetStore
282             Returned: Conditionally
283              
284             # Returns: 'xs:boolean'
285              
286             =cut
287              
288             sub isExportListings {
289             my $self = shift;
290             return $self->{'ExportListings'};
291             }
292              
293              
294             =head2 setHeaderStyle()
295              
296             Style for the Store header.
297              
298             Calls: SetStore
299             RequiredInput: Conditionally
300              
301             # Argument: 'ns:StoreHeaderStyleCodeType'
302              
303             =cut
304              
305             sub setHeaderStyle {
306             my $self = shift;
307             $self->{'HeaderStyle'} = shift
308             }
309              
310             =head2 getHeaderStyle()
311              
312             Calls: GetStore
313             Returned: Conditionally
314              
315             # Returns: 'ns:StoreHeaderStyleCodeType'
316              
317             =cut
318              
319             sub getHeaderStyle {
320             my $self = shift;
321             return $self->{'HeaderStyle'};
322             }
323              
324              
325             =head2 setHomePage()
326              
327             Page to use as the Store's homepage (default is 0). To change the
328             homepage, specify the PageID of one of the Store's custom pages.
329              
330             Calls: SetStore
331             RequiredInput: Conditionally
332              
333             # Argument: 'xs:long'
334              
335             =cut
336              
337             sub setHomePage {
338             my $self = shift;
339             $self->{'HomePage'} = shift
340             }
341              
342             =head2 getHomePage()
343              
344             Calls: GetStore
345             Returned: Conditionally
346              
347             # Returns: 'xs:long'
348              
349             =cut
350              
351             sub getHomePage {
352             my $self = shift;
353             return $self->{'HomePage'};
354             }
355              
356              
357             =head2 setItemListLayout()
358              
359             The default layout type to use for the Store items.
360              
361             Calls: SetStore
362             RequiredInput: Conditionally
363              
364             # Argument: 'ns:StoreItemListLayoutCodeType'
365              
366             =cut
367              
368             sub setItemListLayout {
369             my $self = shift;
370             $self->{'ItemListLayout'} = shift
371             }
372              
373             =head2 getItemListLayout()
374              
375             Calls: GetStore
376             Returned: Conditionally
377              
378             # Returns: 'ns:StoreItemListLayoutCodeType'
379              
380             =cut
381              
382             sub getItemListLayout {
383             my $self = shift;
384             return $self->{'ItemListLayout'};
385             }
386              
387              
388             =head2 setItemListSortOrder()
389              
390             The default sort order to use for the items for sale in the Store.
391              
392             Calls: SetStore
393             RequiredInput: Conditionally
394              
395             # Argument: 'ns:StoreItemListSortOrderCodeType'
396              
397             =cut
398              
399             sub setItemListSortOrder {
400             my $self = shift;
401             $self->{'ItemListSortOrder'} = shift
402             }
403              
404             =head2 getItemListSortOrder()
405              
406             Calls: GetStore
407             Returned: Conditionally
408              
409             # Returns: 'ns:StoreItemListSortOrderCodeType'
410              
411             =cut
412              
413             sub getItemListSortOrder {
414             my $self = shift;
415             return $self->{'ItemListSortOrder'};
416             }
417              
418              
419             =head2 setLastOpenedTime()
420              
421             Indicates the time the store was last opened or reopened.
422              
423             Calls: SetStore
424             RequiredInput: Conditionally
425              
426             # Argument: 'xs:dateTime'
427              
428             =cut
429              
430             sub setLastOpenedTime {
431             my $self = shift;
432             $self->{'LastOpenedTime'} = shift
433             }
434              
435             =head2 getLastOpenedTime()
436              
437             Calls: GetStore
438             Returned: Conditionally
439              
440             # Returns: 'xs:dateTime'
441              
442             =cut
443              
444             sub getLastOpenedTime {
445             my $self = shift;
446             return $self->{'LastOpenedTime'};
447             }
448              
449              
450             =head2 setLogo()
451              
452             Store logo.
453              
454             Calls: SetStore
455             RequiredInput: Conditionally
456              
457             # Argument: 'ns:StoreLogoType'
458              
459             =cut
460              
461             sub setLogo {
462             my $self = shift;
463             $self->{'Logo'} = shift
464             }
465              
466             =head2 getLogo()
467              
468             Calls: GetStore
469             Returned: Conditionally
470              
471             # Returns: 'ns:StoreLogoType'
472              
473             =cut
474              
475             sub getLogo {
476             my $self = shift;
477             return $self->_getDataTypeInstance( 'Logo'
478             ,'eBay::API::XML::DataType::StoreLogoType');
479             }
480              
481              
482             =head2 setMerchDisplay()
483              
484             Specifies the chosen customization display scheme for this store's Merch Widgets.
485             See MerchDisplayCodeType for specific values.
486              
487             Calls: SetStore
488             RequiredInput: Conditionally
489              
490             # Argument: 'ns:MerchDisplayCodeType'
491              
492             =cut
493              
494             sub setMerchDisplay {
495             my $self = shift;
496             $self->{'MerchDisplay'} = shift
497             }
498              
499             =head2 getMerchDisplay()
500              
501             Calls: GetStore
502             Returned: Conditionally
503              
504             # Returns: 'ns:MerchDisplayCodeType'
505              
506             =cut
507              
508             sub getMerchDisplay {
509             my $self = shift;
510             return $self->{'MerchDisplay'};
511             }
512              
513              
514             =head2 setName()
515              
516             Name of the eBay Store. The name is shown
517             at the top of the Store page.
518              
519             MaxLength: 35
520              
521             Calls: SetStore
522             RequiredInput: Conditionally
523              
524             # Argument: 'xs:string'
525              
526             =cut
527              
528             sub setName {
529             my $self = shift;
530             $self->{'Name'} = shift
531             }
532              
533             =head2 getName()
534              
535             Calls: GetStore
536             Returned: Always
537              
538             # Returns: 'xs:string'
539              
540             =cut
541              
542             sub getName {
543             my $self = shift;
544             return $self->{'Name'};
545             }
546              
547              
548             =head2 setSubscriptionLevel()
549              
550             Subscription level (tier) for the user's eBay Store.
551              
552             Calls: SetStore
553             RequiredInput: Conditionally
554              
555             # Argument: 'ns:StoreSubscriptionLevelCodeType'
556              
557             =cut
558              
559             sub setSubscriptionLevel {
560             my $self = shift;
561             $self->{'SubscriptionLevel'} = shift
562             }
563              
564             =head2 getSubscriptionLevel()
565              
566             Calls: GetStore
567             Returned: Always
568             OnlyTheseValues: Anchor, Basic, Featured
569              
570             # Returns: 'ns:StoreSubscriptionLevelCodeType'
571              
572             =cut
573              
574             sub getSubscriptionLevel {
575             my $self = shift;
576             return $self->{'SubscriptionLevel'};
577             }
578              
579              
580             =head2 setTheme()
581              
582             Store theme.
583              
584             Calls: SetStore
585             RequiredInput: Conditionally
586              
587             # Argument: 'ns:StoreThemeType'
588              
589             =cut
590              
591             sub setTheme {
592             my $self = shift;
593             $self->{'Theme'} = shift
594             }
595              
596             =head2 getTheme()
597              
598             Calls: GetStore
599             Returned: Conditionally
600              
601             # Returns: 'ns:StoreThemeType'
602              
603             =cut
604              
605             sub getTheme {
606             my $self = shift;
607             return $self->_getDataTypeInstance( 'Theme'
608             ,'eBay::API::XML::DataType::StoreThemeType');
609             }
610              
611              
612             =head2 setURL()
613              
614             The complete URL of the user's Store. This field is only ever
615             returned, and does not need to be explicitly set.
616              
617             Calls: SetStore
618             RequiredInput: Conditionally
619              
620             # Argument: 'xs:anyURI'
621              
622             =cut
623              
624             sub setURL {
625             my $self = shift;
626             $self->{'URL'} = shift
627             }
628              
629             =head2 getURL()
630              
631             Calls: GetStore
632             Returned: Conditionally
633              
634             # Returns: 'xs:anyURI'
635              
636             =cut
637              
638             sub getURL {
639             my $self = shift;
640             return $self->{'URL'};
641             }
642              
643              
644             =head2 setURLPath()
645              
646             The URL path of the Store (58 characters maximum). Only if you
647             are using Chinese characters in the Name property do you need to
648             use this field, such as if you are opening a Store on the Taiwan
649             site. The reason for this is that the URL path is normally derived
650             from the Store name, but it cannot be derived from the name of the
651             Store if it contains Chinese characters because URLs cannot
652             contain Chinese characters.
653              
654             Calls: SetStore
655             RequiredInput: Conditionally
656              
657             # Argument: 'xs:string'
658              
659             =cut
660              
661             sub setURLPath {
662             my $self = shift;
663             $self->{'URLPath'} = shift
664             }
665              
666             =head2 getURLPath()
667              
668             Calls: GetStore
669             Returned: Conditionally
670              
671             # Returns: 'xs:string'
672              
673             =cut
674              
675             sub getURLPath {
676             my $self = shift;
677             return $self->{'URLPath'};
678             }
679              
680              
681              
682              
683              
684             ## Attribute and Property lists
685             sub getPropertiesList {
686             my $self = shift;
687             return \@gaProperties;
688             }
689              
690             sub getAttributesList {
691             my $self = shift;
692             return \@gaAttributes;
693             }
694              
695              
696              
697             1;