File Coverage

lib/eBay/API/XML/DataType/ShippingServiceOptionsType.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::ShippingServiceOptionsType;
4              
5 1     1   1207 use strict;
  1         2  
  1         30  
6 1     1   5 use warnings;
  1         3  
  1         28  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. ShippingServiceOptionsType.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::ShippingServiceOptionsType
21              
22             =head1 DESCRIPTION
23              
24             Shipping costs and options related to a domestic shipping service.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::ShippingServiceOptionsType inherits from the L class
36              
37             =cut
38              
39 1     1   37 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42             use eBay::API::XML::DataType::AmountType;
43              
44              
45             my @gaProperties = ( [ 'ExpeditedService', 'xs:boolean', '', '', '' ]
46             , [ 'FreeShipping', 'xs:boolean', '', '', '' ]
47             , [ 'ShippingInsuranceCost', 'ns:AmountType', ''
48             ,'eBay::API::XML::DataType::AmountType', '1' ]
49             , [ 'ShippingService', 'xs:token', '', '', '' ]
50             , [ 'ShippingServiceAdditionalCost', 'ns:AmountType', ''
51             ,'eBay::API::XML::DataType::AmountType', '1' ]
52             , [ 'ShippingServiceCost', 'ns:AmountType', ''
53             ,'eBay::API::XML::DataType::AmountType', '1' ]
54             , [ 'ShippingServicePriority', 'xs:int', '', '', '' ]
55             , [ 'ShippingSurcharge', 'ns:AmountType', ''
56             ,'eBay::API::XML::DataType::AmountType', '1' ]
57             , [ 'ShippingTimeMax', 'xs:int', '', '', '' ]
58             , [ 'ShippingTimeMin', 'xs:int', '', '', '' ]
59             );
60             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
61              
62             my @gaAttributes = (
63             );
64             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
65              
66             =head1 Subroutines:
67              
68             =cut
69              
70             sub new {
71             my $classname = shift;
72             my %args = @_;
73             my $self = $classname->SUPER::new(%args);
74             return $self;
75             }
76              
77             sub isScalar {
78             return 0;
79             }
80              
81              
82              
83             =head2 setExpeditedService()
84              
85             Indicates whether the service is an expedited shipping service. See Enabling Get It Fast.
86             Not applicable to Half.com.
87              
88             # Argument: 'xs:boolean'
89              
90             =cut
91              
92             sub setExpeditedService {
93             my $self = shift;
94             $self->{'ExpeditedService'} = shift
95             }
96              
97             =head2 isExpeditedService()
98              
99             Calls: GetSellerList
100             Returned: Conditionally
101             Details: DetailLevel: ItemReturnDescription, ReturnAll
102              
103             Calls: GetItemShipping
104             Returned: Conditionally
105              
106             Calls: GetOrders
107             Returned: Conditionally
108             Details: DetailLevel: none
109              
110             Calls: GetOrderTransactions
111             Returned: Conditionally
112             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
113              
114             Calls: GetItem
115             Returned: Conditionally
116             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
117              
118             Calls: GetItemTransactions
119             GetSellerTransactions
120             Returned: Conditionally
121             Details: DetailLevel: none, ReturnAll
122              
123             # Returns: 'xs:boolean'
124              
125             =cut
126              
127             sub isExpeditedService {
128             my $self = shift;
129             return $self->{'ExpeditedService'};
130             }
131              
132              
133             =head2 setFreeShipping()
134              
135             A seller offers free shipping by setting FreeShipping to true. This free
136             shipping applies only to the first domestic shipping service. (It is ignored
137             if set for any other shipping service.) If the seller has required shipping
138             insurance as part of shipping (the seller set InsuranceOption to Required) and
139             then the seller specified FreeShipping, eBay sets the insurance cost to 0.
140             However, if the seller made shipping insurance optional, eBay preserves the
141             cost of shipping insurance; it is up to the buyer whether to buy shipping
142             insurance, regardless of whether the seller specified FreeShipping.
143              
144             SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=FreeShipping
145             Title: Specifying Free Shipping
146              
147             Calls: AddItem
148             RelistItem
149             ReviseItem
150             VerifyAddItem
151             RequiredInput: No
152              
153             # Argument: 'xs:boolean'
154              
155             =cut
156              
157             sub setFreeShipping {
158             my $self = shift;
159             $self->{'FreeShipping'} = shift
160             }
161              
162             =head2 isFreeShipping()
163              
164             Calls: GetItem
165             Returned: Conditionally
166             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
167              
168             Calls: GetItemShipping
169             Returned: Conditionally
170             Details: DetailLevel: none, ReturnAll
171              
172             # Returns: 'xs:boolean'
173              
174             =cut
175              
176             sub isFreeShipping {
177             my $self = shift;
178             return $self->{'FreeShipping'};
179             }
180              
181              
182             =head2 setShippingInsuranceCost()
183              
184             The insurance cost associated with shipping a single item
185             with this shipping service. Exception: for GetItemShipping,
186             this is proportional to QuantitySold. If the item has not yet been
187             sold, insurance information cannot be calculated and the value is
188             0.00. For calculated shipping only.
189             Also applicable to Half.com (for GetOrders).
190              
191             SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=ShippingGettingCosts
192             Title: Determining Shipping Costs for a Listing
193              
194             Calls: AddOrder
195             SendInvoice
196             RequiredInput: No
197              
198             # Argument: 'ns:AmountType'
199              
200             =cut
201              
202             sub setShippingInsuranceCost {
203             my $self = shift;
204             $self->{'ShippingInsuranceCost'} = shift
205             }
206              
207             =head2 getShippingInsuranceCost()
208              
209             Calls: GetItemShipping
210             Returned: Conditionally
211              
212             Calls: GetOrders
213             Returned: Conditionally
214             Details: DetailLevel: none
215              
216             Calls: GetOrderTransactions
217             Returned: Conditionally
218             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
219              
220             Calls: GetItemTransactions
221             GetSellerTransactions
222             Returned: Conditionally
223             Details: DetailLevel: none, ReturnAll
224              
225             # Returns: 'ns:AmountType'
226              
227             =cut
228              
229             sub getShippingInsuranceCost {
230             my $self = shift;
231             return $self->_getDataTypeInstance( 'ShippingInsuranceCost'
232             ,'eBay::API::XML::DataType::AmountType');
233             }
234              
235              
236             =head2 setShippingService()
237              
238             A domestic shipping service offered for shipping the item (for example, UPS
239             Ground). For a list of valid values that you can cache for future use, call
240             GeteBayDetails with DetailName set to ShippingServiceDetails. For flat and
241             calculated shipping.
242             Also applicable to Half.com (for GetOrders).
243              
244             SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=GeteBayDetails
245             Title: GeteBayDetails
246              
247             Calls: SendInvoice
248             RequiredInput: No
249              
250             Calls: AddItem
251             AddOrder
252             GetItemRecommendations
253             RelistItem
254             ReviseItem
255             VerifyAddItem
256             RequiredInput: Conditionally
257              
258             # Argument: 'xs:token'
259              
260             =cut
261              
262             sub setShippingService {
263             my $self = shift;
264             $self->{'ShippingService'} = shift
265             }
266              
267             =head2 getShippingService()
268              
269             Calls: GetSellerList
270             Returned: Conditionally
271             Details: DetailLevel: ItemReturnDescription, ReturnAll
272              
273             Calls: GetItemShipping
274             Returned: Conditionally
275              
276             Calls: GetOrders
277             Returned: Conditionally
278             Details: DetailLevel: none
279              
280             Calls: GetOrderTransactions
281             Returned: Conditionally
282             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
283              
284             Calls: GetItem
285             Returned: Conditionally
286             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
287              
288             Calls: GetItemTransactions
289             GetSellerTransactions
290             Returned: Conditionally
291             Details: DetailLevel: none, ReturnAll
292              
293             # Returns: 'xs:token'
294              
295             =cut
296              
297             sub getShippingService {
298             my $self = shift;
299             return $self->{'ShippingService'};
300             }
301              
302              
303             =head2 setShippingServiceAdditionalCost()
304              
305             The cost of shipping each additional item beyond the first item. For input,
306             this is required if the listing is for multiple items and should be zero for
307             single-item listings. Default value is 0.00. For flat shipping only.
308             Not applicable to Half.com.
309              
310             SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=ShippingGettingCosts
311             Title: Determining Shipping Costs for a Listing
312              
313             Calls: SendInvoice
314             RequiredInput: No
315              
316             Calls: AddItem
317             AddOrder
318             GetItemRecommendations
319             RelistItem
320             ReviseItem
321             VerifyAddItem
322             RequiredInput: No
323              
324             # Argument: 'ns:AmountType'
325              
326             =cut
327              
328             sub setShippingServiceAdditionalCost {
329             my $self = shift;
330             $self->{'ShippingServiceAdditionalCost'} = shift
331             }
332              
333             =head2 getShippingServiceAdditionalCost()
334              
335             Calls: GetSellerList
336             Returned: Conditionally
337             Details: DetailLevel: ItemReturnDescription, ReturnAll
338              
339             Calls: GetBidderList
340             GetItemShipping
341             Returned: Conditionally
342              
343             Calls: GetOrders
344             Returned: Conditionally
345             Details: DetailLevel: none
346              
347             Calls: GetOrderTransactions
348             Returned: Conditionally
349             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
350              
351             Calls: GetItem
352             Returned: Conditionally
353             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
354              
355             Calls: GetItemTransactions
356             GetSellerTransactions
357             Returned: Conditionally
358             Details: DetailLevel: none, ReturnAll
359              
360             # Returns: 'ns:AmountType'
361              
362             =cut
363              
364             sub getShippingServiceAdditionalCost {
365             my $self = shift;
366             return $self->_getDataTypeInstance( 'ShippingServiceAdditionalCost'
367             ,'eBay::API::XML::DataType::AmountType');
368             }
369              
370              
371             =head2 setShippingServiceCost()
372              
373             The meaning of this element depends on the call and on whether flat or
374             calculated shipping has been selected. (For example, it could be the
375             cost to ship a single item, the cost to ship all items, or the cost to ship
376             just the first of many items, with ShippingServiceAdditionalCost accounting
377             for the rest.) When returned by GetItemShipping, it includes the packaging and
378             handling cost. For flat and calculated shipping.
379             Also applicable to Half.com (for GetOrders).
380            

381             For applications processing an Express transaction when the transaction is part
382             of an Express Order, ShippingServiceCost will have a value of 0. This is
383             generally because the ShippingServiceCost of an Order is not returned by each
384             transaction included in that Order when making the GetItemTransactions or
385             GetSellerTransactions call. This is regardless of whether the Order is an
386             Express Order or a regular eBay site Order. This is a known issue and a current
387             product limitation for Orders and Transactions in general.
388              
389             SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=ShippingGettingCosts
390             Title: Determining Shipping Costs for a Listing
391              
392             Calls: SendInvoice
393             RequiredInput: No
394              
395             Calls: AddItem
396             AddOrder
397             GetItemRecommendations
398             RelistItem
399             ReviseItem
400             VerifyAddItem
401             RequiredInput: Conditionally
402              
403             # Argument: 'ns:AmountType'
404              
405             =cut
406              
407             sub setShippingServiceCost {
408             my $self = shift;
409             $self->{'ShippingServiceCost'} = shift
410             }
411              
412             =head2 getShippingServiceCost()
413              
414             Calls: GetSellerList
415             Returned: Conditionally
416             Details: DetailLevel: ItemReturnDescription, ReturnAll
417              
418             Calls: GetBidderList
419             GetItemShipping
420             Returned: Conditionally
421              
422             Calls: GetOrders
423             Returned: Conditionally
424             Details: DetailLevel: none
425              
426             Calls: GetOrderTransactions
427             Returned: Conditionally
428             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
429              
430             Calls: GetItem
431             Returned: Conditionally
432             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
433              
434             Calls: GetItemTransactions
435             GetSellerTransactions
436             Returned: Conditionally
437             Details: DetailLevel: none, ReturnAll
438              
439             Calls: GetMyeBayBuying
440             Returned: Conditionally
441             Details: DetailLevel: none, ReturnSummary, ReturnAll
442             Context: BidList
443             WonList
444             WatchList
445             DeletedFromWonList
446             BestOfferList
447              
448             Calls: GetMyeBaySelling
449             Returned: Conditionally
450             Details: DetailLevel: none, ReturnSummary, ReturnAll
451             Context: BidList
452             ActiveList
453             ScheduledList
454              
455             # Returns: 'ns:AmountType'
456              
457             =cut
458              
459             sub getShippingServiceCost {
460             my $self = shift;
461             return $self->_getDataTypeInstance( 'ShippingServiceCost'
462             ,'eBay::API::XML::DataType::AmountType');
463             }
464              
465              
466             =head2 setShippingServicePriority()
467              
468             Seller-preferred presentation order relative to other
469             service options. Valid values: 1 (1st choice), 2 (2nd choice),
470             3 (3rd choice). For flat and calculated shipping.
471             Not applicable to Half.com.
472              
473             Calls: SendInvoice
474             RequiredInput: No
475              
476             Calls: AddItem
477             AddOrder
478             GetItemRecommendations
479             RelistItem
480             ReviseItem
481             VerifyAddItem
482             RequiredInput: Conditionally
483              
484             # Argument: 'xs:int'
485              
486             =cut
487              
488             sub setShippingServicePriority {
489             my $self = shift;
490             $self->{'ShippingServicePriority'} = shift
491             }
492              
493             =head2 getShippingServicePriority()
494              
495             Calls: GetSellerList
496             Returned: Conditionally
497             Details: DetailLevel: ItemReturnDescription, ReturnAll
498              
499             Calls: GetBidderList
500             GetItemShipping
501             Returned: Conditionally
502              
503             Calls: GetOrders
504             Returned: Conditionally
505             Details: DetailLevel: none
506              
507             Calls: GetOrderTransactions
508             Returned: Conditionally
509             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
510              
511             Calls: GetItem
512             Returned: Conditionally
513             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
514              
515             Calls: GetItemTransactions
516             GetSellerTransactions
517             Returned: Conditionally
518             Details: DetailLevel: none, ReturnAll
519              
520             # Returns: 'xs:int'
521              
522             =cut
523              
524             sub getShippingServicePriority {
525             my $self = shift;
526             return $self->{'ShippingServicePriority'};
527             }
528              
529              
530             =head2 setShippingSurcharge()
531              
532             An additional fee to charge US buyers who ship via UPS to Alaska, Hawaii
533             or Puerto Rico. Can only be assigned a value for the eBay US site and for
534             items in the Parts and Accessories category of the eBay Motors site. Only returned if set.
535             If some transactions in an order have a surcharge, surcharge is added
536             only for those transactions.
537             Flat rate shipping only.
538              
539             Calls: SendInvoice
540             RequiredInput: No
541              
542             Calls: AddItem
543             AddOrder
544             GetItemRecommendations
545             RelistItem
546             ReviseItem
547             VerifyAddItem
548             RequiredInput: Conditionally
549             TheseSites: US, motors
550              
551             # Argument: 'ns:AmountType'
552              
553             =cut
554              
555             sub setShippingSurcharge {
556             my $self = shift;
557             $self->{'ShippingSurcharge'} = shift
558             }
559              
560             =head2 getShippingSurcharge()
561              
562             Calls: GetBidderList
563             GetItemShipping
564             Returned: Conditionally
565              
566             Calls: GetItem
567             Returned: Conditionally
568             Details: DetailLevel: none, ItemReturnDescription,
569             ItemReturnAttributes, ReturnAll
570              
571             Calls: GetSellerList
572             Returned: Conditionally
573             Details: DetailLevel: ItemReturnDescription, ReturnAll
574              
575             Calls: GetOrderTransactions
576             Returned: Conditionally
577             Details: DetailLevel: none, ItemReturnDescription, ReturnAll
578              
579             Calls: GetItemTransactions
580             GetSellerTransactions
581             Returned: Conditionally
582             Details: DetailLevel: none, ReturnAll
583              
584             Calls: GetMyeBayBuying
585             Returned: Conditionally
586             Context: BidList
587              
588             Calls: GetMyeBaySelling
589             Returned: Conditionally
590             Context: BidList
591             ScheduledList
592              
593             # Returns: 'ns:AmountType'
594              
595             =cut
596              
597             sub getShippingSurcharge {
598             my $self = shift;
599             return $self->_getDataTypeInstance( 'ShippingSurcharge'
600             ,'eBay::API::XML::DataType::AmountType');
601             }
602              
603              
604             =head2 setShippingTimeMax()
605              
606             The maximum guaranteed number of days the shipping carrier will
607             take to ship an item (not including the time it takes the seller to
608             deliver the item to the shipping carrier). See Enabling Get It Fast.
609             Not applicable to Half.com.
610              
611             # Argument: 'xs:int'
612              
613             =cut
614              
615             sub setShippingTimeMax {
616             my $self = shift;
617             $self->{'ShippingTimeMax'} = shift
618             }
619              
620             =head2 getShippingTimeMax()
621              
622             Calls: GetSellerList
623             Returned: Conditionally
624             Details: DetailLevel: ItemReturnDescription, ReturnAll
625              
626             Calls: GetItemShipping
627             Returned: Conditionally
628              
629             Calls: GetItem
630             Returned: Conditionally
631             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
632              
633             Calls: GetItemTransactions
634             GetSellerTransactions
635             Returned: Conditionally
636             Details: DetailLevel: none, ReturnAll
637              
638             # Returns: 'xs:int'
639              
640             =cut
641              
642             sub getShippingTimeMax {
643             my $self = shift;
644             return $self->{'ShippingTimeMax'};
645             }
646              
647              
648             =head2 setShippingTimeMin()
649              
650             The minimum guaranteed number of days in which the shipping carrier
651             can ship an item (not including the time it takes the seller to
652             deliver the item to the shipping carrier). See Enabling Get It Fast.
653             Not applicable to Half.com.
654              
655             # Argument: 'xs:int'
656              
657             =cut
658              
659             sub setShippingTimeMin {
660             my $self = shift;
661             $self->{'ShippingTimeMin'} = shift
662             }
663              
664             =head2 getShippingTimeMin()
665              
666             Calls: GetSellerList
667             Returned: Conditionally
668             Details: DetailLevel: ItemReturnDescription, ReturnAll
669              
670             Calls: GetItemShipping
671             Returned: Conditionally
672              
673             Calls: GetItem
674             Returned: Conditionally
675             Details: DetailLevel: none, ItemReturnDescription, ItemReturnAttributes, ReturnAll
676              
677             Calls: GetItemTransactions
678             GetSellerTransactions
679             Returned: Conditionally
680             Details: DetailLevel: none, ReturnAll
681              
682             # Returns: 'xs:int'
683              
684             =cut
685              
686             sub getShippingTimeMin {
687             my $self = shift;
688             return $self->{'ShippingTimeMin'};
689             }
690              
691              
692              
693              
694              
695             ## Attribute and Property lists
696             sub getPropertiesList {
697             my $self = shift;
698             return \@gaProperties;
699             }
700              
701             sub getAttributesList {
702             my $self = shift;
703             return \@gaAttributes;
704             }
705              
706              
707              
708             1;