File Coverage

lib/eBay/API/XML/DataType/InsuranceDetailsType.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::InsuranceDetailsType;
4              
5 1     1   1717 use strict;
  1         2  
  1         33  
6 1     1   5 use warnings;
  1         3  
  1         32  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. InsuranceDetailsType.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::InsuranceDetailsType
21              
22             =head1 DESCRIPTION
23              
24             some notes here.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::InsuranceDetailsType inherits from the L class
36              
37             =cut
38              
39 1     1   47 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42             use eBay::API::XML::DataType::AmountType;
43             use eBay::API::XML::DataType::Enum::InsuranceOptionCodeType;
44              
45              
46             my @gaProperties = ( [ 'InsuranceFee', 'ns:AmountType', ''
47             ,'eBay::API::XML::DataType::AmountType', '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 setInsuranceFee()
75              
76             Cost of shipping insurance set by the seller. If the
77             buyer bought more than one of this item, this is the insurance
78             for just a single item. Exception: for GetItemShipping, this is
79             proportional to QuantitySold. Default
80             is 0.00. Value should be greater than 0.00 if InsuranceOption
81             is Optional or Required. For flat shipping only.
82             Optional as input and only allowed if ChangePaymentInstructions
83             is true.
84             Also applicable to Half.com (for GetOrders).
85             This field is ignored when Item.ListingType=Express.
86              
87             Calls: AddItem
88             GetItemRecommendations
89             AddOrder
90             RelistItem
91             ReviseItem
92             VerifyAddItem
93             RequiredInput: No
94              
95             # Argument: 'ns:AmountType'
96              
97             =cut
98              
99             sub setInsuranceFee {
100             my $self = shift;
101             $self->{'InsuranceFee'} = shift
102             }
103              
104             =head2 getInsuranceFee()
105              
106             Calls: GetBidderList
107             GetItemShipping
108             Returned: Conditionally
109              
110             Calls: GetItem
111             Returned: Conditionally
112             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
113              
114             Calls: GetItemTransactions
115             GetSellerTransactions
116             Returned: Conditionally
117             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
118              
119             Calls: GetOrders
120             Returned: Always
121             Details: DetailLevel: none
122             Context: OrderArray.Order
123              
124             Calls: GetOrderTransactions
125             Returned: Always
126             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
127             Context: OrderArray.Order
128              
129             # Returns: 'ns:AmountType'
130              
131             =cut
132              
133             sub getInsuranceFee {
134             my $self = shift;
135             return $self->_getDataTypeInstance( 'InsuranceFee'
136             ,'eBay::API::XML::DataType::AmountType');
137             }
138              
139              
140             =head2 setInsuranceOption()
141              
142             Whether the seller offers shipping insurance and, if
143             so, whether the insurance is optional or required. Flat and
144             calculated shipping. Optional as input and only allowed if
145             ChangePaymentInstructions is true.
146             Also applicable to Half.com (for GetOrders).
147             This field is ignored when Item.ListingType=Express.
148              
149             Calls: AddItem
150             GetItemRecommendations
151             AddOrder
152             RelistItem
153             ReviseItem
154             VerifyAddItem
155             RequiredInput: No
156             AllValuesExcept: NotOfferedOnSite
157              
158             # Argument: 'ns:InsuranceOptionCodeType'
159              
160             =cut
161              
162             sub setInsuranceOption {
163             my $self = shift;
164             $self->{'InsuranceOption'} = shift
165             }
166              
167             =head2 getInsuranceOption()
168              
169             Calls: GetBidderList
170             GetItemShipping
171             GetSellerList
172             Returned: Conditionally
173              
174             Calls: GetItem
175             Returned: Conditionally
176             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
177              
178             Calls: GetItemTransactions
179             GetSellerTransactions
180             Returned: Conditionally
181             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
182              
183             Calls: GetOrders
184             Returned: Always
185             Context: OrderArray.Order
186              
187             Calls: GetOrderTransactions
188             Returned: Always
189             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
190             Context: OrderArray.Order
191              
192             # Returns: 'ns:InsuranceOptionCodeType'
193              
194             =cut
195              
196             sub getInsuranceOption {
197             my $self = shift;
198             return $self->{'InsuranceOption'};
199             }
200              
201              
202              
203              
204              
205             ## Attribute and Property lists
206             sub getPropertiesList {
207             my $self = shift;
208             return \@gaProperties;
209             }
210              
211             sub getAttributesList {
212             my $self = shift;
213             return \@gaAttributes;
214             }
215              
216              
217              
218             1;