File Coverage

lib/eBay/API/XML/DataType/ItemTransactionIDType.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::ItemTransactionIDType;
4              
5 1     1   1761 use strict;
  1         2  
  1         34  
6 1     1   6 use warnings;
  1         2  
  1         90  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. ItemTransactionIDType.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::ItemTransactionIDType
21              
22             =head1 DESCRIPTION
23              
24             A container for item and transaction IDs.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::ItemTransactionIDType inherits from the L class
36              
37             =cut
38              
39 1     1   47 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42             use eBay::API::XML::DataType::ItemIDType;
43              
44              
45             my @gaProperties = ( [ 'ItemID', 'ns:ItemIDType', ''
46             ,'eBay::API::XML::DataType::ItemIDType', '1' ]
47             , [ 'TransactionID', 'xs:string', '', '', '' ]
48             );
49             push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()};
50              
51             my @gaAttributes = (
52             );
53             push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
54              
55             =head1 Subroutines:
56              
57             =cut
58              
59             sub new {
60             my $classname = shift;
61             my %args = @_;
62             my $self = $classname->SUPER::new(%args);
63             return $self;
64             }
65              
66             sub isScalar {
67             return 0;
68             }
69              
70              
71              
72             =head2 setItemID()
73              
74             The ID of an item.
75              
76             MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits)
77              
78             Calls: GetOrderTransactions
79             RequiredInput: Conditionally
80              
81             # Argument: 'ns:ItemIDType'
82              
83             =cut
84              
85             sub setItemID {
86             my $self = shift;
87             $self->{'ItemID'} = shift
88             }
89              
90             =head2 getItemID()
91              
92             # Returns: 'ns:ItemIDType'
93              
94             =cut
95              
96             sub getItemID {
97             my $self = shift;
98             return $self->_getDataTypeInstance( 'ItemID'
99             ,'eBay::API::XML::DataType::ItemIDType');
100             }
101              
102              
103             =head2 setTransactionID()
104              
105             The ID of a transaction.
106              
107             MaxLength: 19 (Note: The eBay database specifies 38. Currently, transaction IDs are usually 9 to 12 digits.)
108              
109             Calls: GetOrderTransactions
110             RequiredInput: Conditionally
111              
112             # Argument: 'xs:string'
113              
114             =cut
115              
116             sub setTransactionID {
117             my $self = shift;
118             $self->{'TransactionID'} = shift
119             }
120              
121             =head2 getTransactionID()
122              
123             # Returns: 'xs:string'
124              
125             =cut
126              
127             sub getTransactionID {
128             my $self = shift;
129             return $self->{'TransactionID'};
130             }
131              
132              
133              
134              
135              
136             ## Attribute and Property lists
137             sub getPropertiesList {
138             my $self = shift;
139             return \@gaProperties;
140             }
141              
142             sub getAttributesList {
143             my $self = shift;
144             return \@gaAttributes;
145             }
146              
147              
148              
149             1;