File Coverage

lib/eBay/API/XML/DataType/CartItemArrayType.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::CartItemArrayType;
4              
5 1     1   1294 use strict;
  1         3  
  1         36  
6 1     1   4 use warnings;
  1         3  
  1         26  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. CartItemArrayType.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::DataType::CartItemArrayType
21              
22             =head1 DESCRIPTION
23              
24             A collection of CartItems.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::CartItemArrayType inherits from the L class
36              
37             =cut
38              
39 1     1   34 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42             use eBay::API::XML::DataType::CartItemType;
43              
44              
45             my @gaProperties = ( [ 'CartItem', 'ns:CartItemType', '1'
46             ,'eBay::API::XML::DataType::CartItemType', '1' ]
47             );
48             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
49              
50             my @gaAttributes = (
51             );
52             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
53              
54             =head1 Subroutines:
55              
56             =cut
57              
58             sub new {
59             my $classname = shift;
60             my %args = @_;
61             my $self = $classname->SUPER::new(%args);
62             return $self;
63             }
64              
65             sub isScalar {
66             return 0;
67             }
68              
69              
70              
71             =head2 setCartItem()
72              
73             Details about a cart item and what to do with it (for example, add it
74             to the cart, remove it from the cart, or change the quantity for an item).
75             As a return type, this and its children are only returned if there are
76             items in the cart after the last SetCart operation.
77             This is only required if the parent container is submitted.
78              
79             Calls: SetCart
80             RequiredInput: Conditionally
81              
82             # Argument: reference to an array
83             of 'ns:CartItemType'
84              
85             =cut
86              
87             sub setCartItem {
88             my $self = shift;
89             $self->{'CartItem'} =
90             $self->convertArray_To_RefToArrayIfNeeded(@_);
91             }
92              
93             =head2 getCartItem()
94              
95             Calls: GetCart
96             SetCart
97             Returned: Conditionally
98              
99             # Returns: reference to an array
100             of 'ns:CartItemType'
101              
102             =cut
103              
104             sub getCartItem {
105             my $self = shift;
106             return $self->_getDataTypeArray('CartItem');
107             }
108              
109              
110              
111              
112              
113             ## Attribute and Property lists
114             sub getPropertiesList {
115             my $self = shift;
116             return \@gaProperties;
117             }
118              
119             sub getAttributesList {
120             my $self = shift;
121             return \@gaAttributes;
122             }
123              
124              
125              
126             1;