/// <summary> /// <b>Half.com only.</b> Issues a refund for a specific /// Half.com order line item. This can only be called by a seller. Sellers do not /// have the ability to issue a general refund (a refund not tied to an order line /// item) to a buyer. /// </summary> /// /// <param name="ItemID"> /// Unique identifier for the Half.com item listing. Unless an /// <b>OrderLineItemID</b> is specified in the <b>IssueRefund</b> request, the <b>ItemID</b> is /// required along with the corresponding <b>TransactionID</b> to identify the /// order line item that will be refunded. You can use <b>GetSellerPayments</b> to /// retrieve the <b>ItemID</b> and/or <b>TransactionID</b> associated with the order line /// item. /// </param> /// /// <param name="TransactionID"> /// Unique identifier for a Half.com order line item (transaction). An order /// line item is created once there is a commitment from a buyer to purchase /// an item. Along with its corresponding <b>ItemID</b>, a <b>TransactionID</b> is used to /// identify the order line item that will be refunded. Unless an /// <b>OrderLineItemID</b> is specified in the <b>IssueRefund</b> request, the /// <b>TransactionID</b> is required along with the corresponding <b>ItemID</b>. You can /// use <b>GetSellerPayments</b> to retrieve the <b>ItemID</b> and/or <b>TransactionID</b> /// associated with the order line item. /// </param> /// /// <param name="RefundReason"> /// Explanation of the reason that the refund is being issued. /// </param> /// /// <param name="RefundType"> /// Explanation of the costs that the refund amount covers. /// </param> /// /// <param name="RefundAmount"> /// The amount the seller wants to refund to the buyer, in US Dollars (USD). /// Must be greater than 0.00. Half.com allows a maximum of the original item /// sale price (order line item price plus original shipping reimbursement) plus /// return shipping costs (the amount the buyer paid to return the item). /// Typically, the return shipping cost is based on the current cost of /// shipping the individual item (not the discounted cost calculated during /// the original checkout for a Combined Payment order). You can also issue a /// partial refund for the amount you want the buyer to receive. If /// RefundType=Full or RefundType=FullPlusShipping and you do not pass /// <b>RefundAmount</b> in the request, Half.com will calculate the refund amount for /// you. If you pass <b>RefundAmount</b> in the request, the amount you specify will /// override Half.com's calculated value. Required if RefundType= /// CustomOrPartial. /// </param> /// /// <param name="RefundMessage"> /// Note to the buyer. Cannot include HTML. /// </param> /// /// <param name="OrderLineItemID"> /// A unique identifier for an eBay order line item. This field is created /// as soon as there is a commitment to buy from the seller, and its value /// is based upon the concatenation of <b>ItemID</b> and <b>TransactionID</b>, with a /// hyphen in between these two IDs. The <b>OrderLineItemID</b> value is used to /// identify the order line item that will be refunded. Unless an /// <b>ItemID</b>/<b>TransactionID</b> pair is specified in the <b>IssueRefund</b> request, the /// <b>OrderLineItemID</b> is required. You can use <b>GetSellerPayments</b> to retrieve /// the <b>OrderLineItemID</b> associated with the order line item. /// /// </param> /// public AmountType IssueRefund(string ItemID, string TransactionID, RefundReasonCodeType RefundReason, RefundTypeCodeType RefundType, AmountType RefundAmount, string RefundMessage, string OrderLineItemID) { this.ItemID = ItemID; this.TransactionID = TransactionID; this.RefundReason = RefundReason; this.RefundType = RefundType; this.RefundAmount = RefundAmount; this.RefundMessage = RefundMessage; this.OrderLineItemID = OrderLineItemID; Execute(); return(ApiResponse.RefundFromSeller); }
/// <summary> /// <b>Half.com only.</b> Issues a refund for a specific /// Half.com order line item. This can only be called by a seller. Sellers do not /// have the ability to issue a general refund (a refund not tied to an order line /// item) to a buyer. /// </summary> /// /// <param name="ItemID"> /// Unique identifier for the Half.com item listing. Unless an /// <b>OrderLineItemID</b> is specified in the <b>IssueRefund</b> request, the <b>ItemID</b> is /// required along with the corresponding <b>TransactionID</b> to identify the /// order line item that will be refunded. You can use <b>GetSellerPayments</b> to /// retrieve the <b>ItemID</b> and/or <b>TransactionID</b> associated with the order line /// item. /// </param> /// /// <param name="TransactionID"> /// Unique identifier for a Half.com order line item (transaction). An order /// line item is created once there is a commitment from a buyer to purchase /// an item. Along with its corresponding <b>ItemID</b>, a <b>TransactionID</b> is used to /// identify the order line item that will be refunded. Unless an /// <b>OrderLineItemID</b> is specified in the <b>IssueRefund</b> request, the /// <b>TransactionID</b> is required along with the corresponding <b>ItemID</b>. You can /// use <b>GetSellerPayments</b> to retrieve the <b>ItemID</b> and/or <b>TransactionID</b> /// associated with the order line item. /// </param> /// /// <param name="RefundReason"> /// Explanation of the reason that the refund is being issued. /// </param> /// /// <param name="RefundType"> /// Explanation of the costs that the refund amount covers. /// </param> /// /// <param name="RefundAmount"> /// The amount the seller wants to refund to the buyer, in US Dollars (USD). /// Must be greater than 0.00. Half.com allows a maximum of the original item /// sale price (order line item price plus original shipping reimbursement) plus /// return shipping costs (the amount the buyer paid to return the item). /// Typically, the return shipping cost is based on the current cost of /// shipping the individual item (not the discounted cost calculated during /// the original checkout for a Combined Payment order). You can also issue a /// partial refund for the amount you want the buyer to receive. If /// RefundType=Full or RefundType=FullPlusShipping and you do not pass /// <b>RefundAmount</b> in the request, Half.com will calculate the refund amount for /// you. If you pass <b>RefundAmount</b> in the request, the amount you specify will /// override Half.com's calculated value. Required if RefundType= /// CustomOrPartial. /// </param> /// /// <param name="RefundMessage"> /// Note to the buyer. Cannot include HTML. /// </param> /// /// <param name="OrderLineItemID"> /// A unique identifier for an eBay order line item. This field is created /// as soon as there is a commitment to buy from the seller, and its value /// is based upon the concatenation of <b>ItemID</b> and <b>TransactionID</b>, with a /// hyphen in between these two IDs. The <b>OrderLineItemID</b> value is used to /// identify the order line item that will be refunded. Unless an /// <b>ItemID</b>/<b>TransactionID</b> pair is specified in the <b>IssueRefund</b> request, the /// <b>OrderLineItemID</b> is required. You can use <b>GetSellerPayments</b> to retrieve /// the <b>OrderLineItemID</b> associated with the order line item. /// /// </param> /// public AmountType IssueRefund(string ItemID, string TransactionID, RefundReasonCodeType RefundReason, RefundTypeCodeType RefundType, AmountType RefundAmount, string RefundMessage, string OrderLineItemID) { this.ItemID = ItemID; this.TransactionID = TransactionID; this.RefundReason = RefundReason; this.RefundType = RefundType; this.RefundAmount = RefundAmount; this.RefundMessage = RefundMessage; this.OrderLineItemID = OrderLineItemID; Execute(); return ApiResponse.RefundFromSeller; }