| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | #!/usr/bin/perl | 
| 2 |  |  |  |  |  |  |  | 
| 3 |  |  |  |  |  |  | package eBay::API::XML::Call::IssueRefund; | 
| 4 |  |  |  |  |  |  |  | 
| 5 | 1 |  |  | 1 |  | 2348 | use strict; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 27 |  | 
| 6 | 1 |  |  | 1 |  | 4 | use warnings; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 25 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | ########################################################################## | 
| 9 |  |  |  |  |  |  | # | 
| 10 |  |  |  |  |  |  | # Module: ............... eBay/API/XML | 
| 11 |  |  |  |  |  |  | # File: ................. IssueRefund.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::IssueRefund | 
| 21 |  |  |  |  |  |  |  | 
| 22 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 23 |  |  |  |  |  |  |  | 
| 24 |  |  |  |  |  |  |  | 
| 25 |  |  |  |  |  |  |  | 
| 26 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 27 |  |  |  |  |  |  |  | 
| 28 |  |  |  |  |  |  | =cut | 
| 29 |  |  |  |  |  |  |  | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | =head1 INHERITANCE | 
| 32 |  |  |  |  |  |  |  | 
| 33 |  |  |  |  |  |  | eBay::API::XML::Call::IssueRefund 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::IssueRefund::IssueRefundRequestType; | 
| 41 |  |  |  |  |  |  | use eBay::API::XML::Call::IssueRefund::IssueRefundResponseType; | 
| 42 |  |  |  |  |  |  |  | 
| 43 |  |  |  |  |  |  |  | 
| 44 |  |  |  |  |  |  | =head1 Subroutines: | 
| 45 |  |  |  |  |  |  |  | 
| 46 |  |  |  |  |  |  | =cut | 
| 47 |  |  |  |  |  |  |  | 
| 48 |  |  |  |  |  |  | sub getApiCallName { | 
| 49 |  |  |  |  |  |  | return 'IssueRefund'; | 
| 50 |  |  |  |  |  |  | } | 
| 51 |  |  |  |  |  |  | sub getRequestDataTypeFullPackage { | 
| 52 |  |  |  |  |  |  | return 'eBay::API::XML::Call::IssueRefund::IssueRefundRequestType'; | 
| 53 |  |  |  |  |  |  | } | 
| 54 |  |  |  |  |  |  | sub getResponseDataTypeFullPackage { | 
| 55 |  |  |  |  |  |  | return 'eBay::API::XML::Call::IssueRefund::IssueRefundResponseType'; | 
| 56 |  |  |  |  |  |  | } | 
| 57 |  |  |  |  |  |  |  | 
| 58 |  |  |  |  |  |  | # | 
| 59 |  |  |  |  |  |  | # input properties | 
| 60 |  |  |  |  |  |  | # | 
| 61 |  |  |  |  |  |  |  | 
| 62 |  |  |  |  |  |  | =head2 setItemID() | 
| 63 |  |  |  |  |  |  |  | 
| 64 |  |  |  |  |  |  | ID of the Half.com item associated with the refund payment to the buyer. | 
| 65 |  |  |  |  |  |  | To uniquely identify a transaction, you need to specify both ItemID | 
| 66 |  |  |  |  |  |  | and TransactionID. Use GetSellerPayments to determine the item ID | 
| 67 |  |  |  |  |  |  | and transaction ID associated with the original sale payment. | 
| 68 |  |  |  |  |  |  |  | 
| 69 |  |  |  |  |  |  | MaxLength: 19 (Note: The eBay database specifies 38. Currently, Item IDs are usually 9 to 12 digits) | 
| 70 |  |  |  |  |  |  |  | 
| 71 |  |  |  |  |  |  | RequiredInput: Yes | 
| 72 |  |  |  |  |  |  | #    Argument: 'ns:ItemIDType' | 
| 73 |  |  |  |  |  |  |  | 
| 74 |  |  |  |  |  |  | =cut | 
| 75 |  |  |  |  |  |  |  | 
| 76 |  |  |  |  |  |  | sub setItemID { | 
| 77 |  |  |  |  |  |  | my $self   = shift; | 
| 78 |  |  |  |  |  |  | my $pItemID = shift; | 
| 79 |  |  |  |  |  |  | $self->getRequestDataType()->setItemID($pItemID); | 
| 80 |  |  |  |  |  |  | } | 
| 81 |  |  |  |  |  |  |  | 
| 82 |  |  |  |  |  |  | =head2 setRefundAmount() | 
| 83 |  |  |  |  |  |  |  | 
| 84 |  |  |  |  |  |  | The amount the seller wants to refund to the buyer, in US Dollars (USD). | 
| 85 |  |  |  |  |  |  | Must be greater than 0.00. Half.com allows a maximum of the original item | 
| 86 |  |  |  |  |  |  | sale price (transaction price plus original shipping reimbursement) plus | 
| 87 |  |  |  |  |  |  | return shipping costs (the amount the buyer paid to return the item). | 
| 88 |  |  |  |  |  |  | Typically, the return shipping cost is based on the current cost of | 
| 89 |  |  |  |  |  |  | shipping the individual item (not the discounted cost calculated during | 
| 90 |  |  |  |  |  |  | the original checkout for a multi-item order). You can also issue a | 
| 91 |  |  |  |  |  |  | partial refund for the amount you want the buyer to receive. If | 
| 92 |  |  |  |  |  |  | RefundType=Full or RefundType=FullPlusShipping and you do not pass | 
| 93 |  |  |  |  |  |  | RefundAmount in the request, Half.com will calculate the refund amount for | 
| 94 |  |  |  |  |  |  | you. If you pass RefundAmount in the request, the amount you specify will | 
| 95 |  |  |  |  |  |  | override Half.com's calculated value. Required if RefundType= | 
| 96 |  |  |  |  |  |  | CustomOrPartial. | 
| 97 |  |  |  |  |  |  |  | 
| 98 |  |  |  |  |  |  | RequiredInput: Conditionally | 
| 99 |  |  |  |  |  |  | #    Argument: 'ns:AmountType' | 
| 100 |  |  |  |  |  |  |  | 
| 101 |  |  |  |  |  |  | =cut | 
| 102 |  |  |  |  |  |  |  | 
| 103 |  |  |  |  |  |  | sub setRefundAmount { | 
| 104 |  |  |  |  |  |  | my $self   = shift; | 
| 105 |  |  |  |  |  |  | my $pRefundAmount = shift; | 
| 106 |  |  |  |  |  |  | $self->getRequestDataType()->setRefundAmount($pRefundAmount); | 
| 107 |  |  |  |  |  |  | } | 
| 108 |  |  |  |  |  |  |  | 
| 109 |  |  |  |  |  |  | =head2 setRefundMessage() | 
| 110 |  |  |  |  |  |  |  | 
| 111 |  |  |  |  |  |  | Note to the buyer. Cannot include HTML. | 
| 112 |  |  |  |  |  |  |  | 
| 113 |  |  |  |  |  |  | MaxLength: 400 | 
| 114 |  |  |  |  |  |  |  | 
| 115 |  |  |  |  |  |  | RequiredInput: No | 
| 116 |  |  |  |  |  |  | #    Argument: 'xs:string' | 
| 117 |  |  |  |  |  |  |  | 
| 118 |  |  |  |  |  |  | =cut | 
| 119 |  |  |  |  |  |  |  | 
| 120 |  |  |  |  |  |  | sub setRefundMessage { | 
| 121 |  |  |  |  |  |  | my $self   = shift; | 
| 122 |  |  |  |  |  |  | my $sRefundMessage = shift; | 
| 123 |  |  |  |  |  |  | $self->getRequestDataType()->setRefundMessage($sRefundMessage); | 
| 124 |  |  |  |  |  |  | } | 
| 125 |  |  |  |  |  |  |  | 
| 126 |  |  |  |  |  |  | =head2 setRefundReason() | 
| 127 |  |  |  |  |  |  |  | 
| 128 |  |  |  |  |  |  | Explanation of the reason that the refund is being issued. | 
| 129 |  |  |  |  |  |  |  | 
| 130 |  |  |  |  |  |  | RequiredInput: Yes | 
| 131 |  |  |  |  |  |  | #    Argument: 'ns:RefundReasonCodeType' | 
| 132 |  |  |  |  |  |  |  | 
| 133 |  |  |  |  |  |  | =cut | 
| 134 |  |  |  |  |  |  |  | 
| 135 |  |  |  |  |  |  | sub setRefundReason { | 
| 136 |  |  |  |  |  |  | my $self   = shift; | 
| 137 |  |  |  |  |  |  | my $sRefundReason = shift; | 
| 138 |  |  |  |  |  |  | $self->getRequestDataType()->setRefundReason($sRefundReason); | 
| 139 |  |  |  |  |  |  | } | 
| 140 |  |  |  |  |  |  |  | 
| 141 |  |  |  |  |  |  | =head2 setRefundType() | 
| 142 |  |  |  |  |  |  |  | 
| 143 |  |  |  |  |  |  | Explanation of the costs that the refund amount covers. | 
| 144 |  |  |  |  |  |  |  | 
| 145 |  |  |  |  |  |  | RequiredInput: Yes | 
| 146 |  |  |  |  |  |  | #    Argument: 'ns:RefundTypeCodeType' | 
| 147 |  |  |  |  |  |  |  | 
| 148 |  |  |  |  |  |  | =cut | 
| 149 |  |  |  |  |  |  |  | 
| 150 |  |  |  |  |  |  | sub setRefundType { | 
| 151 |  |  |  |  |  |  | my $self   = shift; | 
| 152 |  |  |  |  |  |  | my $sRefundType = shift; | 
| 153 |  |  |  |  |  |  | $self->getRequestDataType()->setRefundType($sRefundType); | 
| 154 |  |  |  |  |  |  | } | 
| 155 |  |  |  |  |  |  |  | 
| 156 |  |  |  |  |  |  | =head2 setTransactionID() | 
| 157 |  |  |  |  |  |  |  | 
| 158 |  |  |  |  |  |  | ID of the Half.com transaction associated with the refund payment. | 
| 159 |  |  |  |  |  |  | To uniquely identify a transaction, you need to specify both ItemID | 
| 160 |  |  |  |  |  |  | and TransactionID. Use GetSellerPayments to determine the item ID | 
| 161 |  |  |  |  |  |  | and transaction ID associated with the original sale payment. | 
| 162 |  |  |  |  |  |  |  | 
| 163 |  |  |  |  |  |  | MaxLength: 19 (Note: The eBay database specifies 38. Currently, transaction IDs are usually 9 to 12 digits.) | 
| 164 |  |  |  |  |  |  |  | 
| 165 |  |  |  |  |  |  | RequiredInput: Yes | 
| 166 |  |  |  |  |  |  | #    Argument: 'xs:string' | 
| 167 |  |  |  |  |  |  |  | 
| 168 |  |  |  |  |  |  | =cut | 
| 169 |  |  |  |  |  |  |  | 
| 170 |  |  |  |  |  |  | sub setTransactionID { | 
| 171 |  |  |  |  |  |  | my $self   = shift; | 
| 172 |  |  |  |  |  |  | my $sTransactionID = shift; | 
| 173 |  |  |  |  |  |  | $self->getRequestDataType()->setTransactionID($sTransactionID); | 
| 174 |  |  |  |  |  |  | } | 
| 175 |  |  |  |  |  |  |  | 
| 176 |  |  |  |  |  |  |  | 
| 177 |  |  |  |  |  |  |  | 
| 178 |  |  |  |  |  |  | # | 
| 179 |  |  |  |  |  |  | # output properties | 
| 180 |  |  |  |  |  |  | # | 
| 181 |  |  |  |  |  |  |  | 
| 182 |  |  |  |  |  |  | =head2 getRefundFromSeller() | 
| 183 |  |  |  |  |  |  |  | 
| 184 |  |  |  |  |  |  | Total amount that the seller asked Half.com to refund to | 
| 185 |  |  |  |  |  |  | a buyer for a Half.com transaction. | 
| 186 |  |  |  |  |  |  |  | 
| 187 |  |  |  |  |  |  | Returned: Always | 
| 188 |  |  |  |  |  |  | #    Returns: 'ns:AmountType' | 
| 189 |  |  |  |  |  |  |  | 
| 190 |  |  |  |  |  |  | =cut | 
| 191 |  |  |  |  |  |  |  | 
| 192 |  |  |  |  |  |  | sub getRefundFromSeller { | 
| 193 |  |  |  |  |  |  | my $self = shift; | 
| 194 |  |  |  |  |  |  | return $self->getResponseDataType()->getRefundFromSeller(); | 
| 195 |  |  |  |  |  |  | } | 
| 196 |  |  |  |  |  |  |  | 
| 197 |  |  |  |  |  |  | =head2 getTotalRefundToBuyer() | 
| 198 |  |  |  |  |  |  |  | 
| 199 |  |  |  |  |  |  | Total amount that Half.com refunded to the buyer (which could include the refund amount | 
| 200 |  |  |  |  |  |  | from the seller plus a refund amount from Half.com). | 
| 201 |  |  |  |  |  |  |  | 
| 202 |  |  |  |  |  |  | Returned: Always | 
| 203 |  |  |  |  |  |  | #    Returns: 'ns:AmountType' | 
| 204 |  |  |  |  |  |  |  | 
| 205 |  |  |  |  |  |  | =cut | 
| 206 |  |  |  |  |  |  |  | 
| 207 |  |  |  |  |  |  | sub getTotalRefundToBuyer { | 
| 208 |  |  |  |  |  |  | my $self = shift; | 
| 209 |  |  |  |  |  |  | return $self->getResponseDataType()->getTotalRefundToBuyer(); | 
| 210 |  |  |  |  |  |  | } | 
| 211 |  |  |  |  |  |  |  | 
| 212 |  |  |  |  |  |  |  | 
| 213 |  |  |  |  |  |  |  | 
| 214 |  |  |  |  |  |  |  | 
| 215 |  |  |  |  |  |  |  | 
| 216 |  |  |  |  |  |  | 1; |