File Coverage

lib/eBay/API/XML/Call/AddTransactionConfirmationItem.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::AddTransactionConfirmationItem;
4              
5 1     1   2288 use strict;
  1         3  
  1         25  
6 1     1   4 use warnings;
  1         2  
  1         26  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. AddTransactionConfirmationItem.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::AddTransactionConfirmationItem
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::AddTransactionConfirmationItem inherits from the L class
34              
35             =cut
36              
37 1     1   32 use eBay::API::XML::BaseCall;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseCall");
39              
40             use eBay::API::XML::Call::AddTransactionConfirmationItem::AddTransactionConfirmationItemRequestType;
41             use eBay::API::XML::Call::AddTransactionConfirmationItem::AddTransactionConfirmationItemResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'AddTransactionConfirmationItem';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::AddTransactionConfirmationItem::AddTransactionConfirmationItemRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::AddTransactionConfirmationItem::AddTransactionConfirmationItemResponseType';
56             }
57              
58             #
59             # input properties
60             #
61              
62             =head2 setComments()
63              
64             Comments the seller wants to send to the recipient (bidder, best offer
65             buyer, member with an ASQ question, or member with a postal code).
66              
67             RequiredInput: No
68             # Argument: 'xs:string'
69              
70             =cut
71            
72             sub setComments {
73             my $self = shift;
74             my $sComments = shift;
75             $self->getRequestDataType()->setComments($sComments);
76             }
77              
78             =head2 setItemID()
79              
80             The ItemID of the item that the seller wants to end in order to create a
81             Transaction Confirmation Request (TCR).
82              
83             RequiredInput: Yes
84             # Argument: 'ns:ItemIDType'
85              
86             =cut
87            
88             sub setItemID {
89             my $self = shift;
90             my $pItemID = shift;
91             $self->getRequestDataType()->setItemID($pItemID);
92             }
93              
94             =head2 setListingDuration()
95              
96             Specifies the length of time the item in the Transaction Confirmation
97             Request (TCR) will be available for purchase.
98              
99             RequiredInput: Yes
100             # Argument: 'ns:SecondChanceOfferDurationCodeType'
101              
102             =cut
103            
104             sub setListingDuration {
105             my $self = shift;
106             my $sListingDuration = shift;
107             $self->getRequestDataType()->setListingDuration($sListingDuration);
108             }
109              
110             =head2 setNegotiatedPrice()
111              
112             The amount the offer recipient must pay to buy the item
113             specified in the Transaction Confirmation Request (TCR).
114             A negotiated amount between the buyer and the seller.
115              
116             RequiredInput: Yes
117             # Argument: 'ns:AmountType'
118              
119             =cut
120            
121             sub setNegotiatedPrice {
122             my $self = shift;
123             my $pNegotiatedPrice = shift;
124             $self->getRequestDataType()->setNegotiatedPrice($pNegotiatedPrice);
125             }
126              
127             =head2 setRecipientPostalCode()
128              
129             Specifies the postal code of the user to whom the seller is offering the
130             Transaction Confirmation Request. Required only if the user does not meet
131             the other options listed in RecipientRelationCodeType. An error is
132             returned if RecipientUserID and RecipientPostalCode do not match for more
133             than 3 times for a seller per day.
134              
135             RequiredInput: No
136             # Argument: 'xs:string'
137              
138             =cut
139            
140             sub setRecipientPostalCode {
141             my $self = shift;
142             my $sRecipientPostalCode = shift;
143             $self->getRequestDataType()->setRecipientPostalCode($sRecipientPostalCode);
144             }
145              
146             =head2 setRecipientRelationType()
147              
148             Specifies the current relationship between the seller and the potential
149             buyer. A seller can make a Transaction Confirmation Request (TCR) for an
150             item to a potential buyer if the buyer meets one of several criteria. A
151             TCR is sent by a seller to one of the following: a bidder, a best offer
152             buyer, a member with an ASQ question, or any member with a postal code.
153             See the values and annotations in RecipientRelationCodeType.
154              
155             RequiredInput: Yes
156             # Argument: 'ns:RecipientRelationCodeType'
157              
158             =cut
159            
160             sub setRecipientRelationType {
161             my $self = shift;
162             my $sRecipientRelationType = shift;
163             $self->getRequestDataType()->setRecipientRelationType($sRecipientRelationType);
164             }
165              
166             =head2 setRecipientUserID()
167              
168             Specifies the user to whom the seller is offering the Transaction
169             Confirmation Request.
170              
171             RequiredInput: Yes
172             # Argument: 'ns:UserIDType'
173              
174             =cut
175            
176             sub setRecipientUserID {
177             my $self = shift;
178             my $pRecipientUserID = shift;
179             $self->getRequestDataType()->setRecipientUserID($pRecipientUserID);
180             }
181              
182             =head2 setVerifyEligibilityOnly()
183              
184             If true, specifies that the seller is verifying whether a new Transaction
185             Confirmation Request (TCR) can be created. Thus, if this value is passed
186             as true, then no Transaction Confirmation Request is actually made. If
187             VerifyEligibilityOnly is not passed, or is false, a Transaction
188             Confirmation Request is actually made.
189              
190             RequiredInput: No
191             # Argument: 'xs:string'
192              
193             =cut
194            
195             sub setVerifyEligibilityOnly {
196             my $self = shift;
197             my $sVerifyEligibilityOnly = shift;
198             $self->getRequestDataType()->setVerifyEligibilityOnly($sVerifyEligibilityOnly);
199             }
200              
201              
202              
203             #
204             # output properties
205             #
206              
207             =head2 getEndTime()
208              
209             The date and time when the item in the new Transaction Confirmation Request (TCR)
210             is no longer available for purchase.
211              
212             Returned: Always
213             # Returns: 'xs:dateTime'
214              
215             =cut
216            
217             sub getEndTime {
218             my $self = shift;
219             return $self->getResponseDataType()->getEndTime();
220             }
221              
222             =head2 getItemID()
223              
224             The new item ID for the item in the new Transaction Confirmation Request (TCR).
225             This field is not returned if the request was only used to verify that a new TCR could be created.
226              
227             Returned: Conditionally
228             # Returns: 'ns:ItemIDType'
229              
230             =cut
231            
232             sub getItemID {
233             my $self = shift;
234             return $self->getResponseDataType()->getItemID();
235             }
236              
237             =head2 getStartTime()
238              
239             The date and time when the item in the new Transaction Confirmation Request (TCR)
240             becomes available for purchase.
241              
242             Returned: Always
243             # Returns: 'xs:dateTime'
244              
245             =cut
246            
247             sub getStartTime {
248             my $self = shift;
249             return $self->getResponseDataType()->getStartTime();
250             }
251              
252              
253              
254              
255              
256             1;