File Coverage

lib/eBay/API/XML/DataType/ListingEnhancementDurationReferenceType.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::ListingEnhancementDurationReferenceType;
4              
5 1     1   1677 use strict;
  1         3  
  1         144  
6 1     1   66 use warnings;
  1         2  
  1         44  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. ListingEnhancementDurationReferenceType.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::ListingEnhancementDurationReferenceType
21              
22             =head1 DESCRIPTION
23              
24             A container node for a set of durations that apply to a certain listing enhancements.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::ListingEnhancementDurationReferenceType inherits from the L class
36              
37             =cut
38              
39 1     1   46 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42              
43              
44             my @gaProperties = ( [ 'Duration', 'xs:token', '1', '', '' ]
45             );
46             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
47              
48             my @gaAttributes = (
49             );
50             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
51              
52             =head1 Subroutines:
53              
54             =cut
55              
56             sub new {
57             my $classname = shift;
58             my %args = @_;
59             my $self = $classname->SUPER::new(%args);
60             return $self;
61             }
62              
63             sub isScalar {
64             return 0;
65             }
66              
67              
68              
69             =head2 setDuration()
70              
71             Specifies a length of time that a listing enhancement can be used for a listing.
72             The value Lifetime means the listing enhancment occurs for the lifetime of the listing.
73             Instances of durations other than Lifetime can be purchased multiple times
74             while the listing is active.
75              
76             # Argument: reference to an array
77             of 'xs:token'
78              
79             =cut
80              
81             sub setDuration {
82             my $self = shift;
83             $self->{'Duration'} =
84             $self->convertArray_To_RefToArrayIfNeeded(@_);
85             }
86              
87             =head2 getDuration()
88              
89             Calls: GetCategoryFeatures
90             Returned: Conditionally
91             Details: DetailLevel: ReturnAll
92              
93             # Returns: reference to an array
94             of 'xs:token'
95              
96             =cut
97              
98             sub getDuration {
99             my $self = shift;
100             return $self->_getDataTypeArray('Duration');
101             }
102              
103              
104              
105              
106              
107             ## Attribute and Property lists
108             sub getPropertiesList {
109             my $self = shift;
110             return \@gaProperties;
111             }
112              
113             sub getAttributesList {
114             my $self = shift;
115             return \@gaAttributes;
116             }
117              
118              
119              
120             1;