PayPal.Api.Invoice.RecordRefund C# (CSharp) Method

RecordRefund() public method

Marks the status of an invoice, by ID, as refunded. In the JSON request body, include a payment detail object that defines the payment method and other details.
public RecordRefund ( APIContext apiContext, RefundDetail refundDetail ) : void
apiContext APIContext APIContext used for the API call.
refundDetail RefundDetail RefundDetail
return void
        public void RecordRefund(APIContext apiContext, RefundDetail refundDetail)
        {
            Invoice.RecordRefund(apiContext, this.id, refundDetail);
        }

Same methods

Invoice::RecordRefund ( APIContext apiContext, string invoiceId, RefundDetail refundDetail ) : void

Usage Example

コード例 #1
0
 /// <summary>
 /// Marks the status of an invoice, by ID, as refunded. In the JSON request body, include a payment detail object that defines the payment method and other details.
 /// </summary>
 /// <param name="apiContext">APIContext used for the API call.</param>
 /// <param name="refundDetail">RefundDetail</param>
 public void RecordRefund(APIContext apiContext, RefundDetail refundDetail)
 {
     Invoice.RecordRefund(apiContext, this.id, refundDetail);
 }