File Coverage

lib/eBay/API/XML/Call/SetShippingDiscountProfiles.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::SetShippingDiscountProfiles;
4              
5 1     1   2646 use strict;
  1         3  
  1         29  
6 1     1   5 use warnings;
  1         2  
  1         34  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. SetShippingDiscountProfiles.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::SetShippingDiscountProfiles
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::SetShippingDiscountProfiles inherits from the L class
34              
35             =cut
36              
37 1     1   36 use eBay::API::XML::BaseCall;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseCall");
39              
40             use eBay::API::XML::Call::SetShippingDiscountProfiles::SetShippingDiscountProfilesRequestType;
41             use eBay::API::XML::Call::SetShippingDiscountProfiles::SetShippingDiscountProfilesResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'SetShippingDiscountProfiles';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::SetShippingDiscountProfiles::SetShippingDiscountProfilesRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::SetShippingDiscountProfiles::SetShippingDiscountProfilesResponseType';
56             }
57              
58             #
59             # input properties
60             #
61              
62             =head2 setCalculatedHandlingDiscount()
63              
64             The data for the specific packaging/handling cost details for combined payment.
65              
66             RequiredInput: No
67             # Argument: 'ns:CalculatedHandlingDiscountType'
68              
69             =cut
70            
71             sub setCalculatedHandlingDiscount {
72             my $self = shift;
73             my $pCalculatedHandlingDiscount = shift;
74             $self->getRequestDataType()->setCalculatedHandlingDiscount($pCalculatedHandlingDiscount);
75             }
76              
77             =head2 setCalculatedShippingDiscount()
78              
79             Details of a shipping cost discount profile for calculated shipping.
80             If this is provided, FlatShippingDiscount and PromotionalShippingDiscountDetails
81             should be omitted.
82              
83             RequiredInput: No
84             # Argument: 'ns:CalculatedShippingDiscountType'
85              
86             =cut
87            
88             sub setCalculatedShippingDiscount {
89             my $self = shift;
90             my $pCalculatedShippingDiscount = shift;
91             $self->getRequestDataType()->setCalculatedShippingDiscount($pCalculatedShippingDiscount);
92             }
93              
94             =head2 setCombinedDuration()
95              
96             Only those items purchased within CombinedDuration days of each other can
97             be combined into an order and benefit from any shipping discounts.
98              
99             RequiredInput: Yes
100             # Argument: 'ns:CombinedPaymentPeriodCodeType'
101              
102             =cut
103            
104             sub setCombinedDuration {
105             my $self = shift;
106             my $sCombinedDuration = shift;
107             $self->getRequestDataType()->setCombinedDuration($sCombinedDuration);
108             }
109              
110             =head2 setCurrencyID()
111              
112             The ID of the currency to be used for shipping cost discounts and
113             insurance for combined payment. A discount profile can only be
114             associated with a listing if the currency ID of the profile matches the
115             currency ID of the listing.
116             Required if the user creates flat rate shipping discount profiles, a promotional
117             discount, a packaging/handling cost profile based on a variable
118             discount rule, or if the user defines shipping insurance range/fee pairs.
119            

120             Note: There is a currencyID attribute on many elements of SetShippingDiscountProfiles.
121             To avoid an error, be sure to use the same value of CurrencyCodeType in each
122             occurrence within the same request.
123              
124             RequiredInput: Conditionally
125             # Argument: 'ns:CurrencyCodeType'
126              
127             =cut
128            
129             sub setCurrencyID {
130             my $self = shift;
131             my $sCurrencyID = shift;
132             $self->getRequestDataType()->setCurrencyID($sCurrencyID);
133             }
134              
135             =head2 setFlatShippingDiscount()
136              
137             Details of a shipping cost discount profile for flat rate shipping.
138             If this is provided, CalculatedShippingDiscount and PromotionalShippingDiscountDetails
139             should be omitted.
140              
141             RequiredInput: No
142             # Argument: 'ns:FlatShippingDiscountType'
143              
144             =cut
145            
146             sub setFlatShippingDiscount {
147             my $self = shift;
148             my $pFlatShippingDiscount = shift;
149             $self->getRequestDataType()->setFlatShippingDiscount($pFlatShippingDiscount);
150             }
151              
152             =head2 setInternationalShippingInsurance()
153              
154             Information establishing what fee to apply for international shipping
155             insurance for combined payment depending on which range the order item-
156             total price falls into.
157              
158             RequiredInput: No
159             # Argument: 'ns:ShippingInsuranceType'
160              
161             =cut
162            
163             sub setInternationalShippingInsurance {
164             my $self = shift;
165             my $pInternationalShippingInsurance = shift;
166             $self->getRequestDataType()->setInternationalShippingInsurance($pInternationalShippingInsurance);
167             }
168              
169             =head2 setModifyActionCode()
170              
171             Indicates what action to take on the specified flat shipping discount,
172             calculated shipping discount or promotional discount.
173             If the action is Delete and if a flat rate or calculated shipping discount
174             profile is specified, the discount profile identified by
175             DiscountProfile.DiscountProfileID is deleted
176             (see DiscountProfile.MappedDiscountProfileID for related details).
177              
178             RequiredInput: Yes
179             # Argument: 'ns:ModifyActionCodeType'
180              
181             =cut
182            
183             sub setModifyActionCode {
184             my $self = shift;
185             my $sModifyActionCode = shift;
186             $self->getRequestDataType()->setModifyActionCode($sModifyActionCode);
187             }
188              
189             =head2 setPromotionalShippingDiscountDetails()
190              
191             The data for the promotional shipping discount.
192             If this is provided, FlatShippingDiscount and CalculatedShippingDiscount
193             should be omitted.
194              
195             RequiredInput: No
196             # Argument: 'ns:PromotionalShippingDiscountDetailsType'
197              
198             =cut
199            
200             sub setPromotionalShippingDiscountDetails {
201             my $self = shift;
202             my $pPromotionalShippingDiscountDetails = shift;
203             $self->getRequestDataType()->setPromotionalShippingDiscountDetails($pPromotionalShippingDiscountDetails);
204             }
205              
206             =head2 setShippingInsurance()
207              
208             Information establishing what fee to apply for domestic shipping insurance
209             for combined payment depending on which range the order item-total price
210             falls into.
211              
212             RequiredInput: No
213             # Argument: 'ns:ShippingInsuranceType'
214              
215             =cut
216            
217             sub setShippingInsurance {
218             my $self = shift;
219             my $pShippingInsurance = shift;
220             $self->getRequestDataType()->setShippingInsurance($pShippingInsurance);
221             }
222              
223              
224              
225             #
226             # output properties
227             #
228              
229              
230              
231              
232              
233             1;