File Coverage

lib/eBay/API/XML/DataType/BotBlockRequestType.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::BotBlockRequestType;
4              
5 1     1   1279 use strict;
  1         3  
  1         131  
6 1     1   7 use warnings;
  1         1  
  1         35  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. BotBlockRequestType.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::BotBlockRequestType
21              
22             =head1 DESCRIPTION
23              
24             Container of token and user reply.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::BotBlockRequestType inherits from the L class
36              
37             =cut
38              
39 1     1   63 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42              
43              
44             my @gaProperties = ( [ 'BotBlockToken', 'xs:string', '', '', '' ]
45             , [ 'BotBlockUserInput', '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 setBotBlockToken()
71              
72             An encrypted token that eBay generates and that applications
73             need to pass as input to subsquent calls. One use of this might
74             be to block users from the site due to multiple call requests.
75              
76             Calls: PlaceOffer
77             RequiredInput: Conditionally
78              
79             # Argument: 'xs:string'
80              
81             =cut
82              
83             sub setBotBlockToken {
84             my $self = shift;
85             $self->{'BotBlockToken'} = shift
86             }
87              
88             =head2 getBotBlockToken()
89              
90             # Returns: 'xs:string'
91              
92             =cut
93              
94             sub getBotBlockToken {
95             my $self = shift;
96             return $self->{'BotBlockToken'};
97             }
98              
99              
100             =head2 setBotBlockUserInput()
101              
102             The user's response to being asked to type the message
103             in the botblock challenge image (that is, the image
104             corresponding to BotBlockUrl that has been returned in a previous call).
105              
106             Calls: PlaceOffer
107             RequiredInput: Conditionally
108              
109             # Argument: 'xs:string'
110              
111             =cut
112              
113             sub setBotBlockUserInput {
114             my $self = shift;
115             $self->{'BotBlockUserInput'} = shift
116             }
117              
118             =head2 getBotBlockUserInput()
119              
120             # Returns: 'xs:string'
121              
122             =cut
123              
124             sub getBotBlockUserInput {
125             my $self = shift;
126             return $self->{'BotBlockUserInput'};
127             }
128              
129              
130              
131              
132              
133             ## Attribute and Property lists
134             sub getPropertiesList {
135             my $self = shift;
136             return \@gaProperties;
137             }
138              
139             sub getAttributesList {
140             my $self = shift;
141             return \@gaAttributes;
142             }
143              
144              
145              
146             1;