line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::DataType::ShippingInsuranceType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1089
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
6
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
28
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. ShippingInsuranceType.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::ShippingInsuranceType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Details about insurance for combined payment. |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 SYNOPSIS |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 INHERITANCE |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
eBay::API::XML::DataType::ShippingInsuranceType inherits from the L class |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=cut |
38
|
|
|
|
|
|
|
|
39
|
1
|
|
|
1
|
|
38
|
use eBay::API::XML::BaseDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseDataType"); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
use eBay::API::XML::DataType::FlatRateInsuranceRangeCostType; |
43
|
|
|
|
|
|
|
use eBay::API::XML::DataType::Enum::InsuranceOptionCodeType; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
my @gaProperties = ( [ 'FlatRateInsuranceRangeCost', 'ns:FlatRateInsuranceRangeCostType', '1' |
47
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::FlatRateInsuranceRangeCostType', '1' ] |
48
|
|
|
|
|
|
|
, [ 'InsuranceOption', 'ns:InsuranceOptionCodeType', '' |
49
|
|
|
|
|
|
|
,'eBay::API::XML::DataType::Enum::InsuranceOptionCodeType', '' ] |
50
|
|
|
|
|
|
|
); |
51
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
my @gaAttributes = ( |
54
|
|
|
|
|
|
|
); |
55
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()}; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 Subroutines: |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=cut |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
sub new { |
62
|
|
|
|
|
|
|
my $classname = shift; |
63
|
|
|
|
|
|
|
my %args = @_; |
64
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
65
|
|
|
|
|
|
|
return $self; |
66
|
|
|
|
|
|
|
} |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
sub isScalar { |
69
|
|
|
|
|
|
|
return 0; |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head2 setFlatRateInsuranceRangeCost() |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
A pairing of range of item price total and insurance cost. |
77
|
|
|
|
|
|
|
For SetShippingDiscountProfiles, if InsuranceOption is Optional or Required, you must |
78
|
|
|
|
|
|
|
submit all range pairs. For those ranges that do not apply, set the cost to 0. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Calls: SetShippingDiscountProfiles |
81
|
|
|
|
|
|
|
RequiredInput: Conditionally |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
# Argument: reference to an array |
84
|
|
|
|
|
|
|
of 'ns:FlatRateInsuranceRangeCostType' |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=cut |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
sub setFlatRateInsuranceRangeCost { |
89
|
|
|
|
|
|
|
my $self = shift; |
90
|
|
|
|
|
|
|
$self->{'FlatRateInsuranceRangeCost'} = |
91
|
|
|
|
|
|
|
$self->convertArray_To_RefToArrayIfNeeded(@_); |
92
|
|
|
|
|
|
|
} |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head2 getFlatRateInsuranceRangeCost() |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
Calls: GetShippingDiscountProfiles |
97
|
|
|
|
|
|
|
Returned: Conditionally |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
# Returns: reference to an array |
100
|
|
|
|
|
|
|
of 'ns:FlatRateInsuranceRangeCostType' |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=cut |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
sub getFlatRateInsuranceRangeCost { |
105
|
|
|
|
|
|
|
my $self = shift; |
106
|
|
|
|
|
|
|
return $self->_getDataTypeArray('FlatRateInsuranceRangeCost'); |
107
|
|
|
|
|
|
|
} |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=head2 setInsuranceOption() |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
Whether the seller offers shipping insurance and, if |
113
|
|
|
|
|
|
|
so, whether the insurance is optional or required. Flat and |
114
|
|
|
|
|
|
|
calculated shipping. |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
Calls: SetShippingDiscountProfiles |
117
|
|
|
|
|
|
|
RequiredInput: Conditionally |
118
|
|
|
|
|
|
|
AllValuesExcept: NotOfferedOnSite |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
# Argument: 'ns:InsuranceOptionCodeType' |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=cut |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
sub setInsuranceOption { |
125
|
|
|
|
|
|
|
my $self = shift; |
126
|
|
|
|
|
|
|
$self->{'InsuranceOption'} = shift |
127
|
|
|
|
|
|
|
} |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
=head2 getInsuranceOption() |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
Calls: GetShippingDiscountProfiles |
132
|
|
|
|
|
|
|
Returned: Conditionally |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
# Returns: 'ns:InsuranceOptionCodeType' |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=cut |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
sub getInsuranceOption { |
139
|
|
|
|
|
|
|
my $self = shift; |
140
|
|
|
|
|
|
|
return $self->{'InsuranceOption'}; |
141
|
|
|
|
|
|
|
} |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
## Attribute and Property lists |
148
|
|
|
|
|
|
|
sub getPropertiesList { |
149
|
|
|
|
|
|
|
my $self = shift; |
150
|
|
|
|
|
|
|
return \@gaProperties; |
151
|
|
|
|
|
|
|
} |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
sub getAttributesList { |
154
|
|
|
|
|
|
|
my $self = shift; |
155
|
|
|
|
|
|
|
return \@gaAttributes; |
156
|
|
|
|
|
|
|
} |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
1; |