line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::CartItemType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1085
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
6
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. CartItemType.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::CartItemType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Details about an item in a cart. |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 SYNOPSIS |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 INHERITANCE |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
eBay::API::XML::DataType::CartItemType inherits from the L class |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=cut |
38
|
|
|
|
|
|
|
|
39
|
1
|
|
|
1
|
|
32
|
use eBay::API::XML::BaseDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
use eBay::API::XML::DataType::ItemType; |
43
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::ModifyActionCodeType; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
my @gaProperties = ( [ 'Action', 'ns:ModifyActionCodeType', '' |
47
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::ModifyActionCodeType', '' ] |
48
|
|
|
|
|
|
|
, [ 'Item', 'ns:ItemType', '' |
49
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::ItemType', '1' ] |
50
|
|
|
|
|
|
|
, [ 'ReferenceID', 'xs:long', '', '', '' ] |
51
|
|
|
|
|
|
|
); |
52
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
my @gaAttributes = ( |
55
|
|
|
|
|
|
|
); |
56
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 Subroutines: |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=cut |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
sub new { |
63
|
|
|
|
|
|
|
my $classname = shift; |
64
|
|
|
|
|
|
|
my %args = @_; |
65
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
66
|
|
|
|
|
|
|
return $self; |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
sub isScalar { |
70
|
|
|
|
|
|
|
return 0; |
71
|
|
|
|
|
|
|
} |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head2 setAction() |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
What is to be done with the item. If the action is Delete or Update, |
78
|
|
|
|
|
|
|
ReferenceID must be provided. (It was returned with the item |
79
|
|
|
|
|
|
|
when the item was initially added to the cart.) |
80
|
|
|
|
|
|
|
This is only required if the parent container is submitted. |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
# Argument: 'ns:ModifyActionCodeType' |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=cut |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
sub setAction { |
87
|
|
|
|
|
|
|
my $self = shift; |
88
|
|
|
|
|
|
|
$self->{'Action'} = shift |
89
|
|
|
|
|
|
|
} |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head2 getAction() |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
# Returns: 'ns:ModifyActionCodeType' |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=cut |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
sub getAction { |
98
|
|
|
|
|
|
|
my $self = shift; |
99
|
|
|
|
|
|
|
return $self->{'Action'}; |
100
|
|
|
|
|
|
|
} |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=head2 setItem() |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
When used as input, this is the item to be added, removed or updated in the cart. |
106
|
|
|
|
|
|
|
Only ItemID and Quantity apply. |
107
|
|
|
|
|
|
|
This is only required as input if the parent container is submitted. |
108
|
|
|
|
|
|
|
When returned, this is one of the items remaining in the cart. |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
# Argument: 'ns:ItemType' |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=cut |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
sub setItem { |
115
|
|
|
|
|
|
|
my $self = shift; |
116
|
|
|
|
|
|
|
$self->{'Item'} = shift |
117
|
|
|
|
|
|
|
} |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=head2 getItem() |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
# Returns: 'ns:ItemType' |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
=cut |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
sub getItem { |
126
|
|
|
|
|
|
|
my $self = shift; |
127
|
|
|
|
|
|
|
return $self->_getDataTypeInstance( 'Item' |
128
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::ItemType'); |
129
|
|
|
|
|
|
|
} |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=head2 setReferenceID() |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
An ID created by eBay and returned along with an item, if items are returned. |
135
|
|
|
|
|
|
|
This ID must be provided on input to SetCart along with the corresponding item |
136
|
|
|
|
|
|
|
when doing a Delete or Update related to that item. |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
# Argument: 'xs:long' |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=cut |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
sub setReferenceID { |
143
|
|
|
|
|
|
|
my $self = shift; |
144
|
|
|
|
|
|
|
$self->{'ReferenceID'} = shift |
145
|
|
|
|
|
|
|
} |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
=head2 getReferenceID() |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
# Returns: 'xs:long' |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=cut |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
sub getReferenceID { |
154
|
|
|
|
|
|
|
my $self = shift; |
155
|
|
|
|
|
|
|
return $self->{'ReferenceID'}; |
156
|
|
|
|
|
|
|
} |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
## Attribute and Property lists |
163
|
|
|
|
|
|
|
sub getPropertiesList { |
164
|
|
|
|
|
|
|
my $self = shift; |
165
|
|
|
|
|
|
|
return \@gaProperties; |
166
|
|
|
|
|
|
|
} |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
sub getAttributesList { |
169
|
|
|
|
|
|
|
my $self = shift; |
170
|
|
|
|
|
|
|
return \@gaAttributes; |
171
|
|
|
|
|
|
|
} |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
1; |