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
Exemplo n.º 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);
 }