/// <summary> /// Initializes a new instance of the <see cref="AppliedPayment"/> class. /// </summary> /// <param name="paymentKey"> /// The payment key. /// </param> /// <param name="invoiceKey"> /// The invoice key. /// </param> /// <param name="appliedPaymentType"> /// The applied payment type. /// </param> public AppliedPayment(Guid paymentKey, Guid invoiceKey, AppliedPaymentType appliedPaymentType) : this( paymentKey, invoiceKey, EnumTypeFieldConverter.AppliedPayment.GetTypeField(appliedPaymentType).TypeKey) { }
/// <summary> /// Creates and saves an AppliedPayment /// </summary> /// <param name="paymentKey">The payment key</param> /// <param name="invoiceKey">The invoice 'key'</param> /// <param name="appliedPaymentType">The applied payment type</param> /// <param name="description">The description of the payment application</param> /// <param name="amount">The amount of the payment to be applied</param> /// <returns>An <see cref="IAppliedPayment"/></returns> public IAppliedPayment ApplyPaymentToInvoice(Guid paymentKey, Guid invoiceKey, AppliedPaymentType appliedPaymentType, string description, decimal amount) { return _paymentService.ApplyPaymentToInvoice(paymentKey, invoiceKey, appliedPaymentType, description, amount); }
/// <summary> /// Creates and saves an AppliedPayment /// </summary> /// <param name="paymentKey">The payment key</param> /// <param name="invoiceKey">The invoice 'key'</param> /// <param name="appliedPaymentType">The applied payment type</param> /// <param name="description">The description of the payment application</param> /// <param name="amount">The amount of the payment to be applied</param> /// <param name="raiseEvents">Optional boolean indicating whether or not to raise events</param> /// <returns>An <see cref="IAppliedPayment"/></returns> public IAppliedPayment ApplyPaymentToInvoice(Guid paymentKey, Guid invoiceKey, AppliedPaymentType appliedPaymentType, string description, decimal amount, bool raiseEvents = true) { return(_appliedPaymentService.CreateAppliedPaymentWithKey(paymentKey, invoiceKey, appliedPaymentType, description, amount, raiseEvents)); }
/// <summary> /// Creates and saves an AppliedPayment /// </summary> /// <param name="paymentKey">The payment key</param> /// <param name="invoiceKey">The invoice 'key'</param> /// <param name="appliedPaymentType">The applied payment type</param> /// <param name="description">The description of the payment application</param> /// <param name="amount">The amount of the payment to be applied</param> /// <param name="raiseEvents">Optional boolean indicating whether or not to raise events</param> /// <returns>An <see cref="IAppliedPayment"/></returns> public IAppliedPayment CreateAppliedPaymentWithKey(Guid paymentKey, Guid invoiceKey, AppliedPaymentType appliedPaymentType, string description, decimal amount, bool raiseEvents = true) { return CreateAppliedPaymentWithKey( paymentKey, invoiceKey, EnumTypeFieldConverter.AppliedPayment.GetTypeField(appliedPaymentType).TypeKey, description, amount, raiseEvents); }
/// <summary> /// Creates and saves an AppliedPayment /// </summary> /// <param name="paymentKey">The payment key</param> /// <param name="invoiceKey">The invoice 'key'</param> /// <param name="appliedPaymentType">The applied payment type</param> /// <param name="description">The description of the payment application</param> /// <param name="amount">The amount of the payment to be applied</param> /// <param name="raiseEvents">Optional boolean indicating whether or not to raise events</param> /// <returns>An <see cref="IAppliedPayment"/></returns> public IAppliedPayment CreateAppliedPaymentWithKey(Guid paymentKey, Guid invoiceKey, AppliedPaymentType appliedPaymentType, string description, decimal amount, bool raiseEvents = true) { return(CreateAppliedPaymentWithKey( paymentKey, invoiceKey, EnumTypeFieldConverter.AppliedPayment.GetTypeField(appliedPaymentType).TypeKey, description, amount, raiseEvents)); }
/// <summary> /// Creates and saves an AppliedPayment /// </summary> /// <param name="paymentKey">The payment key</param> /// <param name="invoiceKey">The invoice 'key'</param> /// <param name="appliedPaymentType">The applied payment type</param> /// <param name="description">The description of the payment application</param> /// <param name="amount">The amount of the payment to be applied</param> /// <param name="raiseEvents">Optional boolean indicating whether or not to raise events</param> /// <returns>An <see cref="IAppliedPayment"/></returns> public IAppliedPayment ApplyPaymentToInvoice(Guid paymentKey, Guid invoiceKey, AppliedPaymentType appliedPaymentType, string description, decimal amount, bool raiseEvents = true) { return _appliedPaymentService.CreateAppliedPaymentWithKey(paymentKey, invoiceKey, appliedPaymentType, description, amount, raiseEvents); }
/// <summary> /// Creates and saves an AppliedPayment /// </summary> /// <param name="paymentKey">The payment key</param> /// <param name="invoiceKey">The invoice 'key'</param> /// <param name="appliedPaymentType">The applied payment type</param> /// <param name="description">The description of the payment application</param> /// <param name="amount">The amount of the payment to be applied</param> /// <returns>An <see cref="IAppliedPayment"/></returns> public IAppliedPayment ApplyPaymentToInvoice(Guid paymentKey, Guid invoiceKey, AppliedPaymentType appliedPaymentType, string description, decimal amount) { return(_paymentService.ApplyPaymentToInvoice(paymentKey, invoiceKey, appliedPaymentType, description, amount)); }