/// <summary> /// A basic add example /// </summary> /// <param name="transaction">This is the value from the AR005_TSM column in AR005_TRANS_TYPES. This sets the default for various fields in the background</param> public PaymentsModel Add(string orgCode, string accountCode, string noteText, string transaction, int paidAmount, int orderNumber) { var myPayment = new PaymentsModel { Organization = orgCode, Account = accountCode, Note = noteText, Transaction = transaction, PaidAmount = paidAmount, OrderNumber = orderNumber //Note that Event information is defaulted in from the order }; return(APIUtil.AddPayment(USISDKClient, myPayment)); }
/// <summary> /// How to add a payment tied to an invoice /// </summary> /// <param name="transaction">This is the value from the AR005_TSM column in AR005_TRANS_TYPES. This sets the default for various fields in the background</param> /// <param name="invoiceNumber">This is the sequence of the invoice (This is found in v20 under Invoices window -> Sequence column in grid. Also in database as AR030_INVOICE)</param> public PaymentsModel AddInvoicePayment(string orgCode, string accountCode, string noteText, string transaction, int paidAmount, int invoiceNumber) { var myPayment = new PaymentsModel { Organization = orgCode, Account = accountCode, Note = noteText, Transaction = transaction, PaidAmount = paidAmount, Invoice = invoiceNumber, Date = System.DateTime.Now }; return(APIUtil.AddPayment(USISDKClient, myPayment)); }