File Coverage

lib/eBay/API/XML/Call/AddOrder/AddOrderRequestType.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::AddOrder::AddOrderRequestType;
4              
5 1     1   1383 use strict;
  1         2  
  1         30  
6 1     1   4 use warnings;
  1         1  
  1         26  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. AddOrderRequestType.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::Call::AddOrder::AddOrderRequestType
21              
22             =head1 DESCRIPTION
23              
24             Combines two or more transactions into a single order, enabling a buyer
25             to pay for all of those transactions with a single payment (and, if
26             so arranged, ship all of the items together).
27            

28             Strong recommendation: avoid mixing digital and non-digital listings in the same order.
29             (In the future, AddOrder may enforce this recommendation.)
30              
31              
32              
33             =head1 SYNOPSIS
34              
35             =cut
36              
37              
38             =head1 INHERITANCE
39              
40             eBay::API::XML::Call::AddOrder::AddOrderRequestType inherits from the L class
41              
42             =cut
43              
44 1     1   33 use eBay::API::XML::RequestDataType;
  0            
  0            
45             our @ISA = ("eBay::API::XML::RequestDataType");
46              
47             use eBay::API::XML::DataType::OrderType;
48              
49              
50             my @gaProperties = ( [ 'Order', 'ns:OrderType', ''
51             ,'eBay::API::XML::DataType::OrderType', '1' ]
52             );
53             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
54              
55             my @gaAttributes = (
56             );
57             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
58              
59             =head1 Subroutines:
60              
61             =cut
62              
63             sub new {
64             my $classname = shift;
65             my %args = @_;
66             my $self = $classname->SUPER::new(%args);
67             return $self;
68             }
69              
70             sub isScalar {
71             return 0;
72             }
73              
74              
75              
76             =head2 setOrder()
77              
78             The order that is being created.
79              
80             RequiredInput: Yes
81             # Argument: 'ns:OrderType'
82              
83             =cut
84              
85             sub setOrder {
86             my $self = shift;
87             $self->{'Order'} = shift
88             }
89              
90             =head2 getOrder()
91              
92             # Returns: 'ns:OrderType'
93              
94             =cut
95              
96             sub getOrder {
97             my $self = shift;
98             return $self->_getDataTypeInstance( 'Order'
99             ,'eBay::API::XML::DataType::OrderType');
100             }
101              
102              
103              
104              
105              
106             ## Attribute and Property lists
107             sub getPropertiesList {
108             my $self = shift;
109             return \@gaProperties;
110             }
111              
112             sub getAttributesList {
113             my $self = shift;
114             return \@gaAttributes;
115             }
116              
117              
118              
119             1;