예제 #1
0
        internal static DisbursementRefund Create(long advancedPaymentId, long disbursementId, decimal?amount, MPRequestOptions requestOptions)
        {
            var pathParams = new Dictionary <string, string>();

            pathParams.Add("advanced_payment_id", advancedPaymentId.ToString());
            pathParams.Add("disbursement_id", disbursementId.ToString());

            var disbursementRefund = new DisbursementRefund
            {
                Amount = amount
            };

            return(ProcessMethod(typeof(DisbursementRefund), disbursementRefund, "Create", pathParams, WITHOUT_CACHE, requestOptions));
        }
예제 #2
0
 public static DisbursementRefund Refund(long advancedPaymentId, long disbursementId, decimal?amount, MPRequestOptions requestOptions)
 {
     return(DisbursementRefund.Create(advancedPaymentId, disbursementId, amount, requestOptions));
 }
예제 #3
0
 public static List <DisbursementRefund> RefundAll(long advancedPaymentId, MPRequestOptions requestOptions)
 {
     return(DisbursementRefund.CreateAll(advancedPaymentId, requestOptions));
 }