File Coverage

lib/eBay/API/XML/Call/SetPromotionalSale/SetPromotionalSaleRequestType.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::SetPromotionalSale::SetPromotionalSaleRequestType;
4              
5 1     1   1366 use strict;
  1         2  
  1         25  
6 1     1   5 use warnings;
  1         2  
  1         30  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. SetPromotionalSaleRequestType.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::SetPromotionalSale::SetPromotionalSaleRequestType
21              
22             =head1 DESCRIPTION
23              
24             Creates or modifies a promotional sale. This call is part of the Promotional
25             Price Display feature, which enables sellers to apply discounts and/or free
26             shipping across many listings.
27             Promotional sales apply to single and multi-quantity Store Inventory format,
28             regular fixed-price format, auction, and auction/BIN formats.
29             Auction and auction/BIN format listings can be added to free shipping sales only.
30              
31              
32              
33             =head1 SYNOPSIS
34              
35             =cut
36              
37              
38             =head1 INHERITANCE
39              
40             eBay::API::XML::Call::SetPromotionalSale::SetPromotionalSaleRequestType inherits from the L class
41              
42             =cut
43              
44 1     1   43 use eBay::API::XML::RequestDataType;
  0            
  0            
45             our @ISA = ("eBay::API::XML::RequestDataType");
46              
47             use eBay::API::XML::DataType::PromotionalSaleType;
48             use eBay::API::XML::DataType::Enum::ModifyActionCodeType;
49              
50              
51             my @gaProperties = ( [ 'Action', 'ns:ModifyActionCodeType', ''
52             ,'eBay::API::XML::DataType::Enum::ModifyActionCodeType', '' ]
53             , [ 'PromotionalSaleDetails', 'ns:PromotionalSaleType', ''
54             ,'eBay::API::XML::DataType::PromotionalSaleType', '1' ]
55             );
56             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
57              
58             my @gaAttributes = (
59             );
60             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
61              
62             =head1 Subroutines:
63              
64             =cut
65              
66             sub new {
67             my $classname = shift;
68             my %args = @_;
69             my $self = $classname->SUPER::new(%args);
70             return $self;
71             }
72              
73             sub isScalar {
74             return 0;
75             }
76              
77              
78              
79             =head2 setAction()
80              
81             Specifies adding, removing, or modifying promotional sales.
82              
83             RequiredInput: Yes
84             # Argument: 'ns:ModifyActionCodeType'
85              
86             =cut
87              
88             sub setAction {
89             my $self = shift;
90             $self->{'Action'} = shift
91             }
92              
93             =head2 getAction()
94              
95             # Returns: 'ns:ModifyActionCodeType'
96              
97             =cut
98              
99             sub getAction {
100             my $self = shift;
101             return $self->{'Action'};
102             }
103              
104              
105             =head2 setPromotionalSaleDetails()
106              
107             Specifies details about the promotional sale.
108              
109             RequiredInput: Yes
110             # Argument: 'ns:PromotionalSaleType'
111              
112             =cut
113              
114             sub setPromotionalSaleDetails {
115             my $self = shift;
116             $self->{'PromotionalSaleDetails'} = shift
117             }
118              
119             =head2 getPromotionalSaleDetails()
120              
121             # Returns: 'ns:PromotionalSaleType'
122              
123             =cut
124              
125             sub getPromotionalSaleDetails {
126             my $self = shift;
127             return $self->_getDataTypeInstance( 'PromotionalSaleDetails'
128             ,'eBay::API::XML::DataType::PromotionalSaleType');
129             }
130              
131              
132              
133              
134              
135             ## Attribute and Property lists
136             sub getPropertiesList {
137             my $self = shift;
138             return \@gaProperties;
139             }
140              
141             sub getAttributesList {
142             my $self = shift;
143             return \@gaAttributes;
144             }
145              
146              
147              
148             1;