| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | #!/usr/bin/perl | 
| 2 |  |  |  |  |  |  |  | 
| 3 |  |  |  |  |  |  | package eBay::API::XML::Call::AddSecondChanceItem; | 
| 4 |  |  |  |  |  |  |  | 
| 5 | 1 |  |  | 1 |  | 2275 | use strict; | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 27 |  | 
| 6 | 1 |  |  | 1 |  | 4 | use warnings; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 25 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | ########################################################################## | 
| 9 |  |  |  |  |  |  | # | 
| 10 |  |  |  |  |  |  | # Module: ............... eBay/API/XML | 
| 11 |  |  |  |  |  |  | # File: ................. AddSecondChanceItem.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::AddSecondChanceItem | 
| 21 |  |  |  |  |  |  |  | 
| 22 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 23 |  |  |  |  |  |  |  | 
| 24 |  |  |  |  |  |  |  | 
| 25 |  |  |  |  |  |  |  | 
| 26 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 27 |  |  |  |  |  |  |  | 
| 28 |  |  |  |  |  |  | =cut | 
| 29 |  |  |  |  |  |  |  | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | =head1 INHERITANCE | 
| 32 |  |  |  |  |  |  |  | 
| 33 |  |  |  |  |  |  | eBay::API::XML::Call::AddSecondChanceItem 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::AddSecondChanceItem::AddSecondChanceItemRequestType; | 
| 41 |  |  |  |  |  |  | use eBay::API::XML::Call::AddSecondChanceItem::AddSecondChanceItemResponseType; | 
| 42 |  |  |  |  |  |  |  | 
| 43 |  |  |  |  |  |  |  | 
| 44 |  |  |  |  |  |  | =head1 Subroutines: | 
| 45 |  |  |  |  |  |  |  | 
| 46 |  |  |  |  |  |  | =cut | 
| 47 |  |  |  |  |  |  |  | 
| 48 |  |  |  |  |  |  | sub getApiCallName { | 
| 49 |  |  |  |  |  |  | return 'AddSecondChanceItem'; | 
| 50 |  |  |  |  |  |  | } | 
| 51 |  |  |  |  |  |  | sub getRequestDataTypeFullPackage { | 
| 52 |  |  |  |  |  |  | return 'eBay::API::XML::Call::AddSecondChanceItem::AddSecondChanceItemRequestType'; | 
| 53 |  |  |  |  |  |  | } | 
| 54 |  |  |  |  |  |  | sub getResponseDataTypeFullPackage { | 
| 55 |  |  |  |  |  |  | return 'eBay::API::XML::Call::AddSecondChanceItem::AddSecondChanceItemResponseType'; | 
| 56 |  |  |  |  |  |  | } | 
| 57 |  |  |  |  |  |  |  | 
| 58 |  |  |  |  |  |  | # | 
| 59 |  |  |  |  |  |  | # input properties | 
| 60 |  |  |  |  |  |  | # | 
| 61 |  |  |  |  |  |  |  | 
| 62 |  |  |  |  |  |  | =head2 setBuyItNowPrice() | 
| 63 |  |  |  |  |  |  |  | 
| 64 |  |  |  |  |  |  | The amount the offer recipient must pay to purchase the item | 
| 65 |  |  |  |  |  |  | from the second chance offer listing. Use only when the original | 
| 66 |  |  |  |  |  |  | item was listed in an eBay Motors vehicle category (or in some | 
| 67 |  |  |  |  |  |  | categories on U.S. and international sites for | 
| 68 |  |  |  |  |  |  | high-priced items, such as items in many U.S. and Canada | 
| 69 |  |  |  |  |  |  | Business and Industrial categories) and it ended unsold | 
| 70 |  |  |  |  |  |  | because the reserve price was not met. Otherwise, eBay | 
| 71 |  |  |  |  |  |  | establishes the price and no price should be submitted. | 
| 72 |  |  |  |  |  |  |  | 
| 73 |  |  |  |  |  |  | RequiredInput: No | 
| 74 |  |  |  |  |  |  | #    Argument: 'ns:AmountType' | 
| 75 |  |  |  |  |  |  |  | 
| 76 |  |  |  |  |  |  | =cut | 
| 77 |  |  |  |  |  |  |  | 
| 78 |  |  |  |  |  |  | sub setBuyItNowPrice { | 
| 79 |  |  |  |  |  |  | my $self   = shift; | 
| 80 |  |  |  |  |  |  | my $pBuyItNowPrice = shift; | 
| 81 |  |  |  |  |  |  | $self->getRequestDataType()->setBuyItNowPrice($pBuyItNowPrice); | 
| 82 |  |  |  |  |  |  | } | 
| 83 |  |  |  |  |  |  |  | 
| 84 |  |  |  |  |  |  | =head2 setDuration() | 
| 85 |  |  |  |  |  |  |  | 
| 86 |  |  |  |  |  |  | Specifies the length of time the second chance offer listing will be | 
| 87 |  |  |  |  |  |  | active. The recipient bidder has that much time to purchase the item or | 
| 88 |  |  |  |  |  |  | the listing expires. | 
| 89 |  |  |  |  |  |  |  | 
| 90 |  |  |  |  |  |  | RequiredInput: Yes | 
| 91 |  |  |  |  |  |  | #    Argument: 'ns:SecondChanceOfferDurationCodeType' | 
| 92 |  |  |  |  |  |  |  | 
| 93 |  |  |  |  |  |  | =cut | 
| 94 |  |  |  |  |  |  |  | 
| 95 |  |  |  |  |  |  | sub setDuration { | 
| 96 |  |  |  |  |  |  | my $self   = shift; | 
| 97 |  |  |  |  |  |  | my $sDuration = shift; | 
| 98 |  |  |  |  |  |  | $self->getRequestDataType()->setDuration($sDuration); | 
| 99 |  |  |  |  |  |  | } | 
| 100 |  |  |  |  |  |  |  | 
| 101 |  |  |  |  |  |  | =head2 setItemID() | 
| 102 |  |  |  |  |  |  |  | 
| 103 |  |  |  |  |  |  | Specifies the item ID for the original, ended listing from which the | 
| 104 |  |  |  |  |  |  | second chance offer item comes. A new ItemID is returned for the second | 
| 105 |  |  |  |  |  |  | chance offer item. | 
| 106 |  |  |  |  |  |  |  | 
| 107 |  |  |  |  |  |  | MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits) | 
| 108 |  |  |  |  |  |  |  | 
| 109 |  |  |  |  |  |  | RequiredInput: Yes | 
| 110 |  |  |  |  |  |  | #    Argument: 'ns:ItemIDType' | 
| 111 |  |  |  |  |  |  |  | 
| 112 |  |  |  |  |  |  | =cut | 
| 113 |  |  |  |  |  |  |  | 
| 114 |  |  |  |  |  |  | sub setItemID { | 
| 115 |  |  |  |  |  |  | my $self   = shift; | 
| 116 |  |  |  |  |  |  | my $pItemID = shift; | 
| 117 |  |  |  |  |  |  | $self->getRequestDataType()->setItemID($pItemID); | 
| 118 |  |  |  |  |  |  | } | 
| 119 |  |  |  |  |  |  |  | 
| 120 |  |  |  |  |  |  | =head2 setRecipientBidderUserID() | 
| 121 |  |  |  |  |  |  |  | 
| 122 |  |  |  |  |  |  | Specifies the bidder from the original, ended listing to whom the seller | 
| 123 |  |  |  |  |  |  | is extending the second chance offer. Specify only one | 
| 124 |  |  |  |  |  |  | RecipientBidderUserID per call. If multiple users are specified (each in a | 
| 125 |  |  |  |  |  |  | RecipientBidderUserID node), only the last one specified receives the | 
| 126 |  |  |  |  |  |  | offer. | 
| 127 |  |  |  |  |  |  |  | 
| 128 |  |  |  |  |  |  | RequiredInput: Yes | 
| 129 |  |  |  |  |  |  | #    Argument: 'ns:UserIDType' | 
| 130 |  |  |  |  |  |  |  | 
| 131 |  |  |  |  |  |  | =cut | 
| 132 |  |  |  |  |  |  |  | 
| 133 |  |  |  |  |  |  | sub setRecipientBidderUserID { | 
| 134 |  |  |  |  |  |  | my $self   = shift; | 
| 135 |  |  |  |  |  |  | my $pRecipientBidderUserID = shift; | 
| 136 |  |  |  |  |  |  | $self->getRequestDataType()->setRecipientBidderUserID($pRecipientBidderUserID); | 
| 137 |  |  |  |  |  |  | } | 
| 138 |  |  |  |  |  |  |  | 
| 139 |  |  |  |  |  |  | =head2 setSellerMessage() | 
| 140 |  |  |  |  |  |  |  | 
| 141 |  |  |  |  |  |  | Message content. Cannot contain HTML, asterisks, or quotes. This content | 
| 142 |  |  |  |  |  |  | is included in the second chance offer email sent to the recipient, which | 
| 143 |  |  |  |  |  |  | can be retrieved with GetMyMessages. | 
| 144 |  |  |  |  |  |  |  | 
| 145 |  |  |  |  |  |  | MaxLength: 1000 | 
| 146 |  |  |  |  |  |  |  | 
| 147 |  |  |  |  |  |  | RequiredInput: No | 
| 148 |  |  |  |  |  |  | #    Argument: 'xs:string' | 
| 149 |  |  |  |  |  |  |  | 
| 150 |  |  |  |  |  |  | =cut | 
| 151 |  |  |  |  |  |  |  | 
| 152 |  |  |  |  |  |  | sub setSellerMessage { | 
| 153 |  |  |  |  |  |  | my $self   = shift; | 
| 154 |  |  |  |  |  |  | my $sSellerMessage = shift; | 
| 155 |  |  |  |  |  |  | $self->getRequestDataType()->setSellerMessage($sSellerMessage); | 
| 156 |  |  |  |  |  |  | } | 
| 157 |  |  |  |  |  |  |  | 
| 158 |  |  |  |  |  |  |  | 
| 159 |  |  |  |  |  |  |  | 
| 160 |  |  |  |  |  |  | # | 
| 161 |  |  |  |  |  |  | # output properties | 
| 162 |  |  |  |  |  |  | # | 
| 163 |  |  |  |  |  |  |  | 
| 164 |  |  |  |  |  |  | =head2 getEndTime() | 
| 165 |  |  |  |  |  |  |  | 
| 166 |  |  |  |  |  |  | Indicates the date and time when the second chance offer listing expires, | 
| 167 |  |  |  |  |  |  | at which time the listing ends (if the recipient user does not purchase | 
| 168 |  |  |  |  |  |  | the item first). | 
| 169 |  |  |  |  |  |  |  | 
| 170 |  |  |  |  |  |  | Returned: Always | 
| 171 |  |  |  |  |  |  | #    Returns: 'xs:dateTime' | 
| 172 |  |  |  |  |  |  |  | 
| 173 |  |  |  |  |  |  | =cut | 
| 174 |  |  |  |  |  |  |  | 
| 175 |  |  |  |  |  |  | sub getEndTime { | 
| 176 |  |  |  |  |  |  | my $self = shift; | 
| 177 |  |  |  |  |  |  | return $self->getResponseDataType()->getEndTime(); | 
| 178 |  |  |  |  |  |  | } | 
| 179 |  |  |  |  |  |  |  | 
| 180 |  |  |  |  |  |  | =head2 getItemID() | 
| 181 |  |  |  |  |  |  |  | 
| 182 |  |  |  |  |  |  | Contains the item ID for the new second chance | 
| 183 |  |  |  |  |  |  | offer listing. Different from the original ItemID passed in the request. | 
| 184 |  |  |  |  |  |  |  | 
| 185 |  |  |  |  |  |  | Returned: Always | 
| 186 |  |  |  |  |  |  | #    Returns: 'ns:ItemIDType' | 
| 187 |  |  |  |  |  |  |  | 
| 188 |  |  |  |  |  |  | =cut | 
| 189 |  |  |  |  |  |  |  | 
| 190 |  |  |  |  |  |  | sub getItemID { | 
| 191 |  |  |  |  |  |  | my $self = shift; | 
| 192 |  |  |  |  |  |  | return $self->getResponseDataType()->getItemID(); | 
| 193 |  |  |  |  |  |  | } | 
| 194 |  |  |  |  |  |  |  | 
| 195 |  |  |  |  |  |  | =head2 getStartTime() | 
| 196 |  |  |  |  |  |  |  | 
| 197 |  |  |  |  |  |  | Indicates the date and time when the the new second chance offer listing | 
| 198 |  |  |  |  |  |  | became active and the recipient user could purchase the item. | 
| 199 |  |  |  |  |  |  |  | 
| 200 |  |  |  |  |  |  | Returned: Always | 
| 201 |  |  |  |  |  |  | #    Returns: 'xs:dateTime' | 
| 202 |  |  |  |  |  |  |  | 
| 203 |  |  |  |  |  |  | =cut | 
| 204 |  |  |  |  |  |  |  | 
| 205 |  |  |  |  |  |  | sub getStartTime { | 
| 206 |  |  |  |  |  |  | my $self = shift; | 
| 207 |  |  |  |  |  |  | return $self->getResponseDataType()->getStartTime(); | 
| 208 |  |  |  |  |  |  | } | 
| 209 |  |  |  |  |  |  |  | 
| 210 |  |  |  |  |  |  |  | 
| 211 |  |  |  |  |  |  |  | 
| 212 |  |  |  |  |  |  |  | 
| 213 |  |  |  |  |  |  |  | 
| 214 |  |  |  |  |  |  | 1; |