line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::CalculatedShippingDiscountType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1044
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
6
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. CalculatedShippingDiscountType.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::CalculatedShippingDiscountType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Details of an individual discount profile defined by the |
25
|
|
|
|
|
|
|
user for calculated shipping. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 SYNOPSIS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=cut |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 INHERITANCE |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
eBay::API::XML::DataType::CalculatedShippingDiscountType inherits from the L class |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=cut |
39
|
|
|
|
|
|
|
|
40
|
1
|
|
|
1
|
|
33
|
use eBay::API::XML::BaseDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
use eBay::API::XML::DataType::DiscountProfileType; |
44
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::DiscountNameCodeType; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
my @gaProperties = ( [ 'DiscountName', 'ns:DiscountNameCodeType', '' |
48
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::DiscountNameCodeType', '' ] |
49
|
|
|
|
|
|
|
, [ 'DiscountProfile', 'ns:DiscountProfileType', '1' |
50
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::DiscountProfileType', '1' ] |
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 setDiscountName() |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
The type of discount or "rule" that is being used by the profile. Only |
78
|
|
|
|
|
|
|
WeightOff is a "variable" rule, as defined in the documentation on shipping |
79
|
|
|
|
|
|
|
discount profiles. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=ShippingDiscountProfiles |
82
|
|
|
|
|
|
|
Title: Shipping Cost Discount Profiles |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Calls: SetShippingDiscountProfiles |
85
|
|
|
|
|
|
|
RequiredInput: Conditionally |
86
|
|
|
|
|
|
|
OnlyTheseValues: |
87
|
|
|
|
|
|
|
IndividualItemWeight, CombinedItemWeight, WeightOff |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
# Argument: 'ns:DiscountNameCodeType' |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=cut |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
sub setDiscountName { |
95
|
|
|
|
|
|
|
my $self = shift; |
96
|
|
|
|
|
|
|
$self->{'DiscountName'} = shift |
97
|
|
|
|
|
|
|
} |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=head2 getDiscountName() |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
Calls: GetShippingDiscountProfiles |
102
|
|
|
|
|
|
|
Returned: Conditionally |
103
|
|
|
|
|
|
|
OnlyTheseValues: |
104
|
|
|
|
|
|
|
IndividualItemWeight, CombinedItemWeight, WeightOff |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
Calls: GetItem |
108
|
|
|
|
|
|
|
Returned: Conditionally |
109
|
|
|
|
|
|
|
Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll |
110
|
|
|
|
|
|
|
OnlyTheseValues: |
111
|
|
|
|
|
|
|
IndividualItemWeight, CombinedItemWeight, WeightOff |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
# Returns: 'ns:DiscountNameCodeType' |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=cut |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
sub getDiscountName { |
119
|
|
|
|
|
|
|
my $self = shift; |
120
|
|
|
|
|
|
|
return $self->{'DiscountName'}; |
121
|
|
|
|
|
|
|
} |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=head2 setDiscountProfile() |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
Details of this particular calculated shipping discount profile. If |
127
|
|
|
|
|
|
|
ModifyActionCode is Modify, all details of the new version of the profile must |
128
|
|
|
|
|
|
|
be provided. If ModifyActionCode is Delete, DiscountProfileID is required, |
129
|
|
|
|
|
|
|
MappingDiscountProfileID is optional, and all other fields of DiscountProfile |
130
|
|
|
|
|
|
|
are ignored. Restrictions of how many profiles you can have for a given |
131
|
|
|
|
|
|
|
discount rule are discussed in the documentation on shipping discount |
132
|
|
|
|
|
|
|
profiles. |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=ShippingDiscountProfiles |
135
|
|
|
|
|
|
|
Title: Shipping Cost Discount Profiles |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
Calls: SetShippingDiscountProfiles |
138
|
|
|
|
|
|
|
RequiredInput: Conditionally |
139
|
|
|
|
|
|
|
OnlyTheseValues: |
140
|
|
|
|
|
|
|
IndividualItemWeight, CombinedItemWeight, WeightOff |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
# Argument: reference to an array |
144
|
|
|
|
|
|
|
of 'ns:DiscountProfileType' |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
=cut |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
sub setDiscountProfile { |
149
|
|
|
|
|
|
|
my $self = shift; |
150
|
|
|
|
|
|
|
$self->{'DiscountProfile'} = |
151
|
|
|
|
|
|
|
$self->convertArray_To_RefToArrayIfNeeded(@_); |
152
|
|
|
|
|
|
|
} |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
=head2 getDiscountProfile() |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
Calls: GetShippingDiscountProfiles |
157
|
|
|
|
|
|
|
Returned: Conditionally |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
Calls: GetItem |
160
|
|
|
|
|
|
|
Returned: Conditionally |
161
|
|
|
|
|
|
|
Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
# Returns: reference to an array |
164
|
|
|
|
|
|
|
of 'ns:DiscountProfileType' |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
=cut |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
sub getDiscountProfile { |
169
|
|
|
|
|
|
|
my $self = shift; |
170
|
|
|
|
|
|
|
return $self->_getDataTypeArray('DiscountProfile'); |
171
|
|
|
|
|
|
|
} |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
## Attribute and Property lists |
178
|
|
|
|
|
|
|
sub getPropertiesList { |
179
|
|
|
|
|
|
|
my $self = shift; |
180
|
|
|
|
|
|
|
return \@gaProperties; |
181
|
|
|
|
|
|
|
} |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
sub getAttributesList { |
184
|
|
|
|
|
|
|
my $self = shift; |
185
|
|
|
|
|
|
|
return \@gaAttributes; |
186
|
|
|
|
|
|
|
} |
187
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
|
190
|
|
|
|
|
|
|
1; |