File Coverage

lib/eBay/API/XML/DataType/ProStoresCheckoutPreferenceType.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::ProStoresCheckoutPreferenceType;
4              
5 1     1   1916 use strict;
  1         3  
  1         40  
6 1     1   5 use warnings;
  1         3  
  1         110  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. ProStoresCheckoutPreferenceType.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::ProStoresCheckoutPreferenceType
21              
22             =head1 DESCRIPTION
23              
24             Details about ProStores and checkout preferences.
25              
26              
27              
28             =head1 SYNOPSIS
29              
30             =cut
31              
32              
33             =head1 INHERITANCE
34              
35             eBay::API::XML::DataType::ProStoresCheckoutPreferenceType inherits from the L class
36              
37             =cut
38              
39 1     1   55 use eBay::API::XML::BaseDataType;
  0            
  0            
40             our @ISA = ("eBay::API::XML::BaseDataType");
41              
42             use eBay::API::XML::DataType::ProStoresDetailsType;
43              
44              
45             my @gaProperties = ( [ 'CheckoutRedirectProStores', 'xs:boolean', '', '', '' ]
46             , [ 'ProStoresDetails', 'ns:ProStoresDetailsType', ''
47             ,'eBay::API::XML::DataType::ProStoresDetailsType', '1' ]
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 setCheckoutRedirectProStores()
73              
74             Indicates whether third party checkout is to be redirected to
75             the ProStores application specified via My eBay preferences.
76              
77             # Argument: 'xs:boolean'
78              
79             =cut
80              
81             sub setCheckoutRedirectProStores {
82             my $self = shift;
83             $self->{'CheckoutRedirectProStores'} = shift
84             }
85              
86             =head2 isCheckoutRedirectProStores()
87              
88             Calls: GetUserPreferences
89             Returned: Conditionally
90              
91             # Returns: 'xs:boolean'
92              
93             =cut
94              
95             sub isCheckoutRedirectProStores {
96             my $self = shift;
97             return $self->{'CheckoutRedirectProStores'};
98             }
99              
100              
101             =head2 setProStoresDetails()
102              
103             Details about the store.
104              
105             # Argument: 'ns:ProStoresDetailsType'
106              
107             =cut
108              
109             sub setProStoresDetails {
110             my $self = shift;
111             $self->{'ProStoresDetails'} = shift
112             }
113              
114             =head2 getProStoresDetails()
115              
116             Calls: GetUserPreferences
117             Returned: Conditionally
118              
119             # Returns: 'ns:ProStoresDetailsType'
120              
121             =cut
122              
123             sub getProStoresDetails {
124             my $self = shift;
125             return $self->_getDataTypeInstance( 'ProStoresDetails'
126             ,'eBay::API::XML::DataType::ProStoresDetailsType');
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;