File Coverage

lib/eBay/API/XML/DataType/InternationalShippingServiceOptionsType.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::InternationalShippingServiceOptionsType;
4              
5 1     1   1880 use strict;
  1         3  
  1         76  
6 1     1   7 use warnings;
  1         2  
  1         39  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. InternationalShippingServiceOptionsType.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::InternationalShippingServiceOptionsType
21              
22             =head1 DESCRIPTION
23              
24             Shipping costs and options related to an international shipping service. When used
25             as input, if one is provided, at least one domestic ShippingService must be
26             provided.
27              
28              
29              
30             =head1 SYNOPSIS
31              
32             =cut
33              
34              
35             =head1 INHERITANCE
36              
37             eBay::API::XML::DataType::InternationalShippingServiceOptionsType inherits from the L class
38              
39             =cut
40              
41 1     1   72 use eBay::API::XML::BaseDataType;
  0            
  0            
42             our @ISA = ("eBay::API::XML::BaseDataType");
43              
44             use eBay::API::XML::DataType::AmountType;
45              
46              
47             my @gaProperties = ( [ 'ShipToLocation', 'xs:string', '1', '', '' ]
48             , [ 'ShippingInsuranceCost', 'ns:AmountType', ''
49             ,'eBay::API::XML::DataType::AmountType', '1' ]
50             , [ 'ShippingService', 'xs:token', '', '', '' ]
51             , [ 'ShippingServiceAdditionalCost', 'ns:AmountType', ''
52             ,'eBay::API::XML::DataType::AmountType', '1' ]
53             , [ 'ShippingServiceCost', 'ns:AmountType', ''
54             ,'eBay::API::XML::DataType::AmountType', '1' ]
55             , [ 'ShippingServicePriority', 'xs:int', '', '', '' ]
56             );
57             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
58              
59             my @gaAttributes = (
60             );
61             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
62              
63             =head1 Subroutines:
64              
65             =cut
66              
67             sub new {
68             my $classname = shift;
69             my %args = @_;
70             my $self = $classname->SUPER::new(%args);
71             return $self;
72             }
73              
74             sub isScalar {
75             return 0;
76             }
77              
78              
79              
80             =head2 setShipToLocation()
81              
82             An international location or region to which the item may be
83             shipped via this particular shipping service. Associated with
84             the shipping service by the seller. Use GeteBayDetails to
85             determine which locations are valid per site. These values
86             are string equivalents of values found in
87             ShippingRegionCodeType and CountryCodeType. For the AddItem family
88             of calls, this field is required if any international shipping service
89             has been specified.
90              
91             SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=ShipToLocation
92             Title: ShipToLocation
93              
94             Calls: SendInvoice
95             RequiredInput: No
96              
97             Calls: AddItem
98             GetItemRecommendations
99             AddOrder
100             RelistItem
101             ReviseItem
102             VerifyAddItem
103             RequiredInput: Conditionally
104              
105             # Argument: reference to an array
106             of 'xs:string'
107              
108             =cut
109              
110             sub setShipToLocation {
111             my $self = shift;
112             $self->{'ShipToLocation'} =
113             $self->convertArray_To_RefToArrayIfNeeded(@_);
114             }
115              
116             =head2 getShipToLocation()
117              
118             Calls: GetSellerList
119             Returned: Conditionally
120             Details: DetailLevel: ItemReturnDescription, ReturnAll
121              
122             Calls: GetBidderList
123             GetItemShipping
124             Returned: Conditionally
125              
126             Calls: GetItem
127             Returned: Conditionally
128             Details: DetailLevel: none, ItemReturnDescription,
129             ItemReturnAttributes, ReturnAll
130              
131             Calls: GetOrders
132             Returned: Conditionally
133             Details: DetailLevel: none
134              
135             Calls: GetOrderTransactions
136             Returned: Conditionally
137             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
138              
139             Calls: GetItemTransactions
140             Returned: Conditionally
141             Details: DetailLevel: none, ReturnAll
142              
143             # Returns: reference to an array
144             of 'xs:string'
145              
146             =cut
147              
148             sub getShipToLocation {
149             my $self = shift;
150             return $self->_getDataTypeArray('ShipToLocation');
151             }
152              
153              
154             =head2 setShippingInsuranceCost()
155              
156             The insurance cost associated with shipping a single item
157             with this shipping service. Exception: for GetItemShipping,
158             this is proportional to QuantitySold. If the item has not yet been
159             sold, insurance information cannot be calculated and the value is
160             0.00. For calculated shipping only.
161             Also applicable to Half.com (for GetOrders).
162              
163             SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=Shipping
164             Title: Shipping
165              
166             Calls: AddOrder
167             SendInvoice
168             RequiredInput: No
169              
170             # Argument: 'ns:AmountType'
171              
172             =cut
173              
174             sub setShippingInsuranceCost {
175             my $self = shift;
176             $self->{'ShippingInsuranceCost'} = shift
177             }
178              
179             =head2 getShippingInsuranceCost()
180              
181             Calls: GetItemShipping
182             Returned: Conditionally
183              
184             Calls: GetOrders
185             Returned: Conditionally
186             Details: DetailLevel: none
187              
188             Calls: GetOrderTransactions
189             Returned: Conditionally
190             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
191              
192             Calls: GetItemTransactions
193             GetSellerTransactions
194             Returned: Conditionally
195             Details: DetailLevel: none, ReturnAll
196              
197             # Returns: 'ns:AmountType'
198              
199             =cut
200              
201             sub getShippingInsuranceCost {
202             my $self = shift;
203             return $self->_getDataTypeInstance( 'ShippingInsuranceCost'
204             ,'eBay::API::XML::DataType::AmountType');
205             }
206              
207              
208             =head2 setShippingService()
209              
210             An international shipping service offered for shipping the item.
211             For a list of valid values that you can cache for future
212             use, call GeteBayDetails with DetailName set to ShippingServiceDetails. For
213             flat and calculated shipping.
214              
215             SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=GeteBayDetails
216             Title: GeteBayDetails
217              
218             Calls: SendInvoice
219             RequiredInput: No
220              
221             Calls: AddItem
222             AddOrder
223             GetItemRecommendations
224             RelistItem
225             ReviseItem
226             VerifyAddItem
227             RequiredInput: Conditionally
228              
229             # Argument: 'xs:token'
230              
231             =cut
232              
233             sub setShippingService {
234             my $self = shift;
235             $self->{'ShippingService'} = shift
236             }
237              
238             =head2 getShippingService()
239              
240             Calls: GetSellerList
241             Returned: Conditionally
242             Details: DetailLevel: ItemReturnDescription, ReturnAll
243              
244             Calls: GetBidderList
245             GetItemShipping
246             Returned: Conditionally
247              
248             Calls: GetItem
249             Returned: Conditionally
250             Details: DetailLevel: none, ItemReturnDescription,
251             ItemReturnAttributes, ReturnAll
252              
253             Calls: GetOrders
254             Returned: Conditionally
255             Details: DetailLevel: none
256              
257             Calls: GetOrderTransactions
258             Returned: Conditionally
259             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
260              
261             Calls: GetItemTransactions
262             Returned: Conditionally
263             Details: DetailLevel: none, ReturnAll
264              
265             # Returns: 'xs:token'
266              
267             =cut
268              
269             sub getShippingService {
270             my $self = shift;
271             return $self->{'ShippingService'};
272             }
273              
274              
275             =head2 setShippingServiceAdditionalCost()
276              
277             Cost of shipping each additional item beyond the first
278             item. Should be zero for single-item listings. Default value is
279             0.00. For flat shipping only.
280              
281             Calls: SendInvoice
282             RequiredInput: No
283              
284             Calls: AddItem
285             GetItemRecommendations
286             AddOrder
287             RelistItem
288             ReviseItem
289             VerifyAddItem
290             RequiredInput: No
291              
292             # Argument: 'ns:AmountType'
293              
294             =cut
295              
296             sub setShippingServiceAdditionalCost {
297             my $self = shift;
298             $self->{'ShippingServiceAdditionalCost'} = shift
299             }
300              
301             =head2 getShippingServiceAdditionalCost()
302              
303             Calls: GetSellerList
304             Returned: Conditionally
305             Details: DetailLevel: ItemReturnDescription, ReturnAll
306              
307             Calls: GetItem
308             Returned: Conditionally
309             Details: DetailLevel: none, ItemReturnDescription,
310             ItemReturnAttributes, ReturnAll
311              
312             Calls: GetBidderList
313             GetItemShipping
314             Returned: Conditionally
315              
316             Calls: GetOrders
317             Returned: Conditionally
318             Details: DetailLevel: none
319              
320             Calls: GetOrderTransactions
321             Returned: Conditionally
322             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
323              
324             Calls: GetItemTransactions
325             Returned: Conditionally
326             Details: DetailLevel: none, ReturnAll
327              
328             # Returns: 'ns:AmountType'
329              
330             =cut
331              
332             sub getShippingServiceAdditionalCost {
333             my $self = shift;
334             return $self->_getDataTypeInstance( 'ShippingServiceAdditionalCost'
335             ,'eBay::API::XML::DataType::AmountType');
336             }
337              
338              
339             =head2 setShippingServiceCost()
340              
341             The meaning of this element depends on the call and on whether flat
342             or calculated shipping has been selected. (For example, it could be the cost
343             to ship a single item, the cost to ship all items, or the cost to ship just
344             the first of many items, with ShippingServiceAdditionalCost accounting for the
345             rest.) When returned by GetItemShipping, it includes the packaging and
346             handling cost. For flat and calculated shipping.
347              
348             SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=Shipping
349             Title: Shipping
350              
351             Calls: SendInvoice
352             RequiredInput: No
353              
354             Calls: AddItem
355             GetItemRecommendations
356             AddOrder
357             RelistItem
358             ReviseItem
359             VerifyAddItem
360             RequiredInput: Conditionally
361              
362             # Argument: 'ns:AmountType'
363              
364             =cut
365              
366             sub setShippingServiceCost {
367             my $self = shift;
368             $self->{'ShippingServiceCost'} = shift
369             }
370              
371             =head2 getShippingServiceCost()
372              
373             Calls: GetSellerList
374             Returned: Conditionally
375             Details: DetailLevel: ItemReturnDescription, ReturnAll
376              
377             Calls: GetItem
378             Returned: Conditionally
379             Details: DetailLevel: none, ItemReturnDescription,
380             ItemReturnAttributes, ReturnAll
381              
382             Calls: GetBidderList
383             GetItemShipping
384             Returned: Conditionally
385              
386             Calls: GetOrders
387             Returned: Conditionally
388             Details: DetailLevel: none
389              
390             Calls: GetOrderTransactions
391             Returned: Conditionally
392             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
393              
394             Calls: GetItemTransactions
395             Returned: Conditionally
396             Details: DetailLevel: none, ReturnAll
397              
398             # Returns: 'ns:AmountType'
399              
400             =cut
401              
402             sub getShippingServiceCost {
403             my $self = shift;
404             return $self->_getDataTypeInstance( 'ShippingServiceCost'
405             ,'eBay::API::XML::DataType::AmountType');
406             }
407              
408              
409             =head2 setShippingServicePriority()
410              
411             Seller-preferred presentation order relative to other
412             service options. Valid values are: 1, 2 and 3 (first, second
413             and third choices). For flat and calculated shipping.
414              
415             Calls: SendInvoice
416             RequiredInput: No
417              
418             Calls: AddItem
419             GetItemRecommendations
420             AddOrder
421             RelistItem
422             ReviseItem
423             VerifyAddItem
424             RequiredInput: Conditionally
425              
426             # Argument: 'xs:int'
427              
428             =cut
429              
430             sub setShippingServicePriority {
431             my $self = shift;
432             $self->{'ShippingServicePriority'} = shift
433             }
434              
435             =head2 getShippingServicePriority()
436              
437             Calls: GetSellerList
438             Returned: Conditionally
439             Details: DetailLevel: ItemReturnDescription, ReturnAll
440              
441             Calls: GetBidderList
442             GetItemShipping
443             Returned: Conditionally
444              
445             Calls: GetItem
446             Returned: Conditionally
447             Details: DetailLevel: none, ItemReturnDescription,
448             ItemReturnAttributes, ReturnAll
449              
450             Calls: GetOrders
451             Returned: Conditionally
452             Details: DetailLevel: none
453              
454             Calls: GetOrderTransactions
455             Returned: Conditionally
456             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
457              
458             Calls: GetItemTransactions
459             Returned: Conditionally
460             Details: DetailLevel: none, ReturnAll
461              
462             # Returns: 'xs:int'
463              
464             =cut
465              
466             sub getShippingServicePriority {
467             my $self = shift;
468             return $self->{'ShippingServicePriority'};
469             }
470              
471              
472              
473              
474              
475             ## Attribute and Property lists
476             sub getPropertiesList {
477             my $self = shift;
478             return \@gaProperties;
479             }
480              
481             sub getAttributesList {
482             my $self = shift;
483             return \@gaAttributes;
484             }
485              
486              
487              
488             1;