File Coverage

lib/eBay/API/XML/DataType/DispatchTimeMaxDetailsType.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::DispatchTimeMaxDetailsType;
4              
5 1     1   1634 use strict;
  1         2  
  1         31  
6 1     1   5 use warnings;
  1         2  
  1         34  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. DispatchTimeMaxDetailsType.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::DispatchTimeMaxDetailsType
21              
22             =head1 DESCRIPTION
23              
24             Details about a specific maximum dispatch time, the maximum number of business
25             days required to ship an item to domestic buyers after receiving a cleared
26             payment.
27              
28              
29              
30             =head1 SYNOPSIS
31              
32             =cut
33              
34              
35             =head1 INHERITANCE
36              
37             eBay::API::XML::DataType::DispatchTimeMaxDetailsType inherits from the L class
38              
39             =cut
40              
41 1     1   41 use eBay::API::XML::BaseDataType;
  0            
  0            
42             our @ISA = ("eBay::API::XML::BaseDataType");
43              
44              
45              
46             my @gaProperties = ( [ 'Description', 'xs:string', '', '', '' ]
47             , [ 'DispatchTimeMax', 'xs:int', '', '', '' ]
48             );
49             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
50              
51             my @gaAttributes = (
52             );
53             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
54              
55             =head1 Subroutines:
56              
57             =cut
58              
59             sub new {
60             my $classname = shift;
61             my %args = @_;
62             my $self = $classname->SUPER::new(%args);
63             return $self;
64             }
65              
66             sub isScalar {
67             return 0;
68             }
69              
70              
71              
72             =head2 setDescription()
73              
74             Value and unit (e.g., 10 Days) for the maximum dispatch time.
75             Useful for display purposes.
76              
77             # Argument: 'xs:string'
78              
79             =cut
80              
81             sub setDescription {
82             my $self = shift;
83             $self->{'Description'} = shift
84             }
85              
86             =head2 getDescription()
87              
88             Calls: GeteBayDetails
89             Returned: Conditionally
90              
91             # Returns: 'xs:string'
92              
93             =cut
94              
95             sub getDescription {
96             my $self = shift;
97             return $self->{'Description'};
98             }
99              
100              
101             =head2 setDispatchTimeMax()
102              
103             Integer value (1, 2, 3, 4, 5, 10, 15, or 20) corresponding to the
104             maximum dispatch time.

105             Related field:
106             Item.DispatchTimeMax in AddItem
107              
108             # Argument: 'xs:int'
109              
110             =cut
111              
112             sub setDispatchTimeMax {
113             my $self = shift;
114             $self->{'DispatchTimeMax'} = shift
115             }
116              
117             =head2 getDispatchTimeMax()
118              
119             Calls: GeteBayDetails
120             Returned: Conditionally
121              
122             # Returns: 'xs:int'
123              
124             =cut
125              
126             sub getDispatchTimeMax {
127             my $self = shift;
128             return $self->{'DispatchTimeMax'};
129             }
130              
131              
132              
133              
134              
135             ## Attribute and Property lists
136             sub getPropertiesList {
137             my $self = shift;
138             return \@gaProperties;
139             }
140              
141             sub getAttributesList {
142             my $self = shift;
143             return \@gaAttributes;
144             }
145              
146              
147              
148             1;