File Coverage

lib/eBay/API/XML/Call/GetCart/GetCartRequestType.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::Call::GetCart::GetCartRequestType;
4              
5 1     1   1633 use strict;
  1         3  
  1         34  
6 1     1   6 use warnings;
  1         1  
  1         32  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. GetCartRequestType.pm
12             # Generated by: ......... genEBayApiDataTypes.pl
13             # Last Generated: ....... 07/07/2008 17:42
14             # API Release Number: ... 571
15             #
16             ##########################################################################
17              
18             =head1 NAME
19              
20             eBay::API::XML::Call::GetCart::GetCartRequestType
21              
22             =head1 DESCRIPTION
23              
24             Retrieves information about an eBay Express shopping cart.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::Call::GetCart::GetCartRequestType inherits from the L class
36              
37             =cut
38              
39 1     1   42 use eBay::API::XML::RequestDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::RequestDataType");
41              
42             use eBay::API::XML::DataType::AddressType;
43             use eBay::API::XML::DataType::AffiliateTrackingDetailsType;
44              
45              
46             my @gaProperties = ( [ 'AffiliateTrackingDetails', 'ns:AffiliateTrackingDetailsType', ''
47             ,'eBay::API::XML::DataType::AffiliateTrackingDetailsType', '1' ]
48             , [ 'CartID', 'xs:long', '', '', '' ]
49             , [ 'ShippingAddress', 'ns:AddressType', ''
50             ,'eBay::API::XML::DataType::AddressType', '1' ]
51             );
52             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
53              
54             my @gaAttributes = (
55             );
56             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
57              
58             =head1 Subroutines:
59              
60             =cut
61              
62             sub new {
63             my $classname = shift;
64             my %args = @_;
65             my $self = $classname->SUPER::new(%args);
66             return $self;
67             }
68              
69             sub isScalar {
70             return 0;
71             }
72              
73              
74              
75             =head2 setAffiliateTrackingDetails()
76              
77             Container for affiliate tags.
78             If you use affiliate tags, it is possible to get affiliate commissions
79             based on calls made by your application.
80             (See the eBay Partner Network
81             for information about commissions.)
82             Affiliate tags enable the tracking of user activity.
83             You can use child tags of AffiliateTrackingDetails if you want
84             call output to include a string, in
85             Item.ListingDetails.ViewItemURL, that includes
86             affiliate tracking information.
87             Affiliate details that you provide appear in the CheckoutURL that is returned by GetCart.
88             Child elements of this element that are marked as conditionally required are required
89             only if this container is present.
90              
91             SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=AffiliateTrackingConcepts
92             Title: Affiliate Tracking Concepts
93              
94             RequiredInput: No
95             # Argument: 'ns:AffiliateTrackingDetailsType'
96              
97             =cut
98              
99             sub setAffiliateTrackingDetails {
100             my $self = shift;
101             $self->{'AffiliateTrackingDetails'} = shift
102             }
103              
104             =head2 getAffiliateTrackingDetails()
105              
106             # Returns: 'ns:AffiliateTrackingDetailsType'
107              
108             =cut
109              
110             sub getAffiliateTrackingDetails {
111             my $self = shift;
112             return $self->_getDataTypeInstance( 'AffiliateTrackingDetails'
113             ,'eBay::API::XML::DataType::AffiliateTrackingDetailsType');
114             }
115              
116              
117             =head2 setCartID()
118              
119             The ID of the shopping cart to inspect, obtained from a prior run of SetCart.
120              
121             RequiredInput: Yes
122             # Argument: 'xs:long'
123              
124             =cut
125              
126             sub setCartID {
127             my $self = shift;
128             $self->{'CartID'} = shift
129             }
130              
131             =head2 getCartID()
132              
133             # Returns: 'xs:long'
134              
135             =cut
136              
137             sub getCartID {
138             my $self = shift;
139             return $self->{'CartID'};
140             }
141              
142              
143             =head2 setShippingAddress()
144              
145             The country and postal code to which the items in the cart are to be shipped. Required only
146             if you want shipping costs calculated for those items for which calculated
147             shipping applies. Of no value if there are no items in the cart with calculated shipping.
148              
149             RequiredInput: No
150             # Argument: 'ns:AddressType'
151              
152             =cut
153              
154             sub setShippingAddress {
155             my $self = shift;
156             $self->{'ShippingAddress'} = shift
157             }
158              
159             =head2 getShippingAddress()
160              
161             # Returns: 'ns:AddressType'
162              
163             =cut
164              
165             sub getShippingAddress {
166             my $self = shift;
167             return $self->_getDataTypeInstance( 'ShippingAddress'
168             ,'eBay::API::XML::DataType::AddressType');
169             }
170              
171              
172              
173              
174              
175             ## Attribute and Property lists
176             sub getPropertiesList {
177             my $self = shift;
178             return \@gaProperties;
179             }
180              
181             sub getAttributesList {
182             my $self = shift;
183             return \@gaAttributes;
184             }
185              
186              
187              
188             1;