| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | #!/usr/bin/perl | 
| 2 |  |  |  |  |  |  |  | 
| 3 |  |  |  |  |  |  | package eBay::API::XML::Call::RespondToBestOffer; | 
| 4 |  |  |  |  |  |  |  | 
| 5 | 1 |  |  | 1 |  | 3322 | use strict; | 
|  | 1 |  |  |  |  | 3 |  | 
|  | 1 |  |  |  |  | 38 |  | 
| 6 | 1 |  |  | 1 |  | 6 | use warnings; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 35 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | ########################################################################## | 
| 9 |  |  |  |  |  |  | # | 
| 10 |  |  |  |  |  |  | # Module: ............... eBay/API/XML | 
| 11 |  |  |  |  |  |  | # File: ................. RespondToBestOffer.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::RespondToBestOffer | 
| 21 |  |  |  |  |  |  |  | 
| 22 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 23 |  |  |  |  |  |  |  | 
| 24 |  |  |  |  |  |  |  | 
| 25 |  |  |  |  |  |  |  | 
| 26 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 27 |  |  |  |  |  |  |  | 
| 28 |  |  |  |  |  |  | =cut | 
| 29 |  |  |  |  |  |  |  | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | =head1 INHERITANCE | 
| 32 |  |  |  |  |  |  |  | 
| 33 |  |  |  |  |  |  | eBay::API::XML::Call::RespondToBestOffer inherits from the L class | 
| 34 |  |  |  |  |  |  |  | 
| 35 |  |  |  |  |  |  | =cut | 
| 36 |  |  |  |  |  |  |  | 
| 37 | 1 |  |  | 1 |  | 48 | use eBay::API::XML::BaseCall; | 
|  | 0 |  |  |  |  |  |  | 
|  | 0 |  |  |  |  |  |  | 
| 38 |  |  |  |  |  |  | our @ISA = ("eBay::API::XML::BaseCall"); | 
| 39 |  |  |  |  |  |  |  | 
| 40 |  |  |  |  |  |  | use eBay::API::XML::Call::RespondToBestOffer::RespondToBestOfferRequestType; | 
| 41 |  |  |  |  |  |  | use eBay::API::XML::Call::RespondToBestOffer::RespondToBestOfferResponseType; | 
| 42 |  |  |  |  |  |  |  | 
| 43 |  |  |  |  |  |  |  | 
| 44 |  |  |  |  |  |  | =head1 Subroutines: | 
| 45 |  |  |  |  |  |  |  | 
| 46 |  |  |  |  |  |  | =cut | 
| 47 |  |  |  |  |  |  |  | 
| 48 |  |  |  |  |  |  | sub getApiCallName { | 
| 49 |  |  |  |  |  |  | return 'RespondToBestOffer'; | 
| 50 |  |  |  |  |  |  | } | 
| 51 |  |  |  |  |  |  | sub getRequestDataTypeFullPackage { | 
| 52 |  |  |  |  |  |  | return 'eBay::API::XML::Call::RespondToBestOffer::RespondToBestOfferRequestType'; | 
| 53 |  |  |  |  |  |  | } | 
| 54 |  |  |  |  |  |  | sub getResponseDataTypeFullPackage { | 
| 55 |  |  |  |  |  |  | return 'eBay::API::XML::Call::RespondToBestOffer::RespondToBestOfferResponseType'; | 
| 56 |  |  |  |  |  |  | } | 
| 57 |  |  |  |  |  |  |  | 
| 58 |  |  |  |  |  |  | # | 
| 59 |  |  |  |  |  |  | # input properties | 
| 60 |  |  |  |  |  |  | # | 
| 61 |  |  |  |  |  |  |  | 
| 62 |  |  |  |  |  |  | =head2 setAction() | 
| 63 |  |  |  |  |  |  |  | 
| 64 |  |  |  |  |  |  | The action taken on the best offer by the seller (e.g., | 
| 65 |  |  |  |  |  |  | Accept, Decline, or Counter). Bulk Accept and Bulk | 
| 66 |  |  |  |  |  |  | Counter are not supported. That is, you cannot accept or | 
| 67 |  |  |  |  |  |  | counter multiple offers in a single call. You can, | 
| 68 |  |  |  |  |  |  | however, decline multiple offers in a single call. | 
| 69 |  |  |  |  |  |  |  | 
| 70 |  |  |  |  |  |  | RequiredInput: Yes | 
| 71 |  |  |  |  |  |  | #    Argument: 'ns:BestOfferActionCodeType' | 
| 72 |  |  |  |  |  |  |  | 
| 73 |  |  |  |  |  |  | =cut | 
| 74 |  |  |  |  |  |  |  | 
| 75 |  |  |  |  |  |  | sub setAction { | 
| 76 |  |  |  |  |  |  | my $self   = shift; | 
| 77 |  |  |  |  |  |  | my $sAction = shift; | 
| 78 |  |  |  |  |  |  | $self->getRequestDataType()->setAction($sAction); | 
| 79 |  |  |  |  |  |  | } | 
| 80 |  |  |  |  |  |  |  | 
| 81 |  |  |  |  |  |  | =head2 setBestOfferID() | 
| 82 |  |  |  |  |  |  |  | 
| 83 |  |  |  |  |  |  | The ID of a Best Offer for the item. | 
| 84 |  |  |  |  |  |  |  | 
| 85 |  |  |  |  |  |  | RequiredInput: Yes | 
| 86 |  |  |  |  |  |  | #    Argument: reference to an array | 
| 87 |  |  |  |  |  |  | of 'ns:BestOfferIDType' | 
| 88 |  |  |  |  |  |  |  | 
| 89 |  |  |  |  |  |  | =cut | 
| 90 |  |  |  |  |  |  |  | 
| 91 |  |  |  |  |  |  | sub setBestOfferID { | 
| 92 |  |  |  |  |  |  | my $self   = shift; | 
| 93 |  |  |  |  |  |  | my $pBestOfferID = shift; | 
| 94 |  |  |  |  |  |  | $self->getRequestDataType()->setBestOfferID($pBestOfferID); | 
| 95 |  |  |  |  |  |  | } | 
| 96 |  |  |  |  |  |  |  | 
| 97 |  |  |  |  |  |  | =head2 setCounterOfferPrice() | 
| 98 |  |  |  |  |  |  |  | 
| 99 |  |  |  |  |  |  | The counter offer price. When Action is set to Counter, | 
| 100 |  |  |  |  |  |  | you must specify the amount for the counteroffer with | 
| 101 |  |  |  |  |  |  | CounterOfferPrice. The value of CounterOfferPrice cannot | 
| 102 |  |  |  |  |  |  | exceed the Buy It Now price for a single quantity item. | 
| 103 |  |  |  |  |  |  | The value of CounterOfferPrice may exceed the Buy It Now | 
| 104 |  |  |  |  |  |  | price if the value for CounterOfferQuantity is greater | 
| 105 |  |  |  |  |  |  | than 1. | 
| 106 |  |  |  |  |  |  |  | 
| 107 |  |  |  |  |  |  | RequiredInput: Conditionally | 
| 108 |  |  |  |  |  |  | #    Argument: 'ns:AmountType' | 
| 109 |  |  |  |  |  |  |  | 
| 110 |  |  |  |  |  |  | =cut | 
| 111 |  |  |  |  |  |  |  | 
| 112 |  |  |  |  |  |  | sub setCounterOfferPrice { | 
| 113 |  |  |  |  |  |  | my $self   = shift; | 
| 114 |  |  |  |  |  |  | my $pCounterOfferPrice = shift; | 
| 115 |  |  |  |  |  |  | $self->getRequestDataType()->setCounterOfferPrice($pCounterOfferPrice); | 
| 116 |  |  |  |  |  |  | } | 
| 117 |  |  |  |  |  |  |  | 
| 118 |  |  |  |  |  |  | =head2 setCounterOfferQuantity() | 
| 119 |  |  |  |  |  |  |  | 
| 120 |  |  |  |  |  |  | The counter offer quantity. When Action is set to | 
| 121 |  |  |  |  |  |  | Counter you must specify the quantity of items for the | 
| 122 |  |  |  |  |  |  | counteroffer with CounterOfferQuantity. | 
| 123 |  |  |  |  |  |  |  | 
| 124 |  |  |  |  |  |  | RequiredInput: Conditionally | 
| 125 |  |  |  |  |  |  | #    Argument: 'xs:int' | 
| 126 |  |  |  |  |  |  |  | 
| 127 |  |  |  |  |  |  | =cut | 
| 128 |  |  |  |  |  |  |  | 
| 129 |  |  |  |  |  |  | sub setCounterOfferQuantity { | 
| 130 |  |  |  |  |  |  | my $self   = shift; | 
| 131 |  |  |  |  |  |  | my $sCounterOfferQuantity = shift; | 
| 132 |  |  |  |  |  |  | $self->getRequestDataType()->setCounterOfferQuantity($sCounterOfferQuantity); | 
| 133 |  |  |  |  |  |  | } | 
| 134 |  |  |  |  |  |  |  | 
| 135 |  |  |  |  |  |  | =head2 setItemID() | 
| 136 |  |  |  |  |  |  |  | 
| 137 |  |  |  |  |  |  | Specifies the item for which the BestOffer data is to be returned. | 
| 138 |  |  |  |  |  |  |  | 
| 139 |  |  |  |  |  |  | MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits) | 
| 140 |  |  |  |  |  |  |  | 
| 141 |  |  |  |  |  |  | RequiredInput: Yes | 
| 142 |  |  |  |  |  |  | #    Argument: 'ns:ItemIDType' | 
| 143 |  |  |  |  |  |  |  | 
| 144 |  |  |  |  |  |  | =cut | 
| 145 |  |  |  |  |  |  |  | 
| 146 |  |  |  |  |  |  | sub setItemID { | 
| 147 |  |  |  |  |  |  | my $self   = shift; | 
| 148 |  |  |  |  |  |  | my $pItemID = shift; | 
| 149 |  |  |  |  |  |  | $self->getRequestDataType()->setItemID($pItemID); | 
| 150 |  |  |  |  |  |  | } | 
| 151 |  |  |  |  |  |  |  | 
| 152 |  |  |  |  |  |  | =head2 setSellerResponse() | 
| 153 |  |  |  |  |  |  |  | 
| 154 |  |  |  |  |  |  | A comment from the seller to the buyer. | 
| 155 |  |  |  |  |  |  |  | 
| 156 |  |  |  |  |  |  | MaxLength: 250 | 
| 157 |  |  |  |  |  |  |  | 
| 158 |  |  |  |  |  |  | RequiredInput: Conditionally | 
| 159 |  |  |  |  |  |  | #    Argument: 'xs:string' | 
| 160 |  |  |  |  |  |  |  | 
| 161 |  |  |  |  |  |  | =cut | 
| 162 |  |  |  |  |  |  |  | 
| 163 |  |  |  |  |  |  | sub setSellerResponse { | 
| 164 |  |  |  |  |  |  | my $self   = shift; | 
| 165 |  |  |  |  |  |  | my $sSellerResponse = shift; | 
| 166 |  |  |  |  |  |  | $self->getRequestDataType()->setSellerResponse($sSellerResponse); | 
| 167 |  |  |  |  |  |  | } | 
| 168 |  |  |  |  |  |  |  | 
| 169 |  |  |  |  |  |  |  | 
| 170 |  |  |  |  |  |  |  | 
| 171 |  |  |  |  |  |  | # | 
| 172 |  |  |  |  |  |  | # output properties | 
| 173 |  |  |  |  |  |  | # | 
| 174 |  |  |  |  |  |  |  | 
| 175 |  |  |  |  |  |  | =head2 getRespondToBestOffer() | 
| 176 |  |  |  |  |  |  |  | 
| 177 |  |  |  |  |  |  | A list of BestOffers that were either accepted or declined. | 
| 178 |  |  |  |  |  |  |  | 
| 179 |  |  |  |  |  |  | Returned: Always | 
| 180 |  |  |  |  |  |  | #    Returns: 'ns:BestOfferArrayType' | 
| 181 |  |  |  |  |  |  |  | 
| 182 |  |  |  |  |  |  | =cut | 
| 183 |  |  |  |  |  |  |  | 
| 184 |  |  |  |  |  |  | sub getRespondToBestOffer { | 
| 185 |  |  |  |  |  |  | my $self = shift; | 
| 186 |  |  |  |  |  |  | return $self->getResponseDataType()->getRespondToBestOffer(); | 
| 187 |  |  |  |  |  |  | } | 
| 188 |  |  |  |  |  |  |  | 
| 189 |  |  |  |  |  |  |  | 
| 190 |  |  |  |  |  |  |  | 
| 191 |  |  |  |  |  |  |  | 
| 192 |  |  |  |  |  |  |  | 
| 193 |  |  |  |  |  |  | 1; |