File Coverage

lib/eBay/API/XML/DataType/ShippingLocationDetailsType.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::ShippingLocationDetailsType;
4              
5 1     1   1167 use strict;
  1         3  
  1         29  
6 1     1   5 use warnings;
  1         20  
  1         30  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. ShippingLocationDetailsType.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::ShippingLocationDetailsType
21              
22             =head1 DESCRIPTION
23              
24             Details about a region or location to which the seller is willing to ship.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::ShippingLocationDetailsType inherits from the L class
36              
37             =cut
38              
39 1     1   36 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42              
43              
44             my @gaProperties = ( [ 'Description', 'xs:string', '', '', '' ]
45             , [ 'ShippingLocation', 'xs:string', '', '', '' ]
46             );
47             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
48              
49             my @gaAttributes = (
50             );
51             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
52              
53             =head1 Subroutines:
54              
55             =cut
56              
57             sub new {
58             my $classname = shift;
59             my %args = @_;
60             my $self = $classname->SUPER::new(%args);
61             return $self;
62             }
63              
64             sub isScalar {
65             return 0;
66             }
67              
68              
69              
70             =head2 setDescription()
71              
72             Display name of region or location (sometimes more descriptive than the
73             ShippingLocation short name).
74              
75             # Argument: 'xs:string'
76              
77             =cut
78              
79             sub setDescription {
80             my $self = shift;
81             $self->{'Description'} = shift
82             }
83              
84             =head2 getDescription()
85              
86             Calls: GeteBayDetails
87             Returned: Conditionally
88              
89             # Returns: 'xs:string'
90              
91             =cut
92              
93             sub getDescription {
94             my $self = shift;
95             return $self->{'Description'};
96             }
97              
98              
99             =head2 setShippingLocation()
100              
101             Short name or abbreviation for a region (e.g., Asia) or location (e.g. Japan).

102             Related field:
103             Item.ShippingDetails.InternationalShippingServiceOption.ShipToLocation in AddItem
104              
105             # Argument: 'xs:string'
106              
107             =cut
108              
109             sub setShippingLocation {
110             my $self = shift;
111             $self->{'ShippingLocation'} = shift
112             }
113              
114             =head2 getShippingLocation()
115              
116             Calls: GeteBayDetails
117             Returned: Conditionally
118              
119             # Returns: 'xs:string'
120              
121             =cut
122              
123             sub getShippingLocation {
124             my $self = shift;
125             return $self->{'ShippingLocation'};
126             }
127              
128              
129              
130              
131              
132             ## Attribute and Property lists
133             sub getPropertiesList {
134             my $self = shift;
135             return \@gaProperties;
136             }
137              
138             sub getAttributesList {
139             my $self = shift;
140             return \@gaAttributes;
141             }
142              
143              
144              
145             1;