Beispiel #1
0
 /// <summary>
 /// Returns a collection of <see cref="IAppliedPayment"/> for this <see cref="IPayment"/>
 /// </summary>
 /// <param name="payment">The <see cref="IPayment"/></param>
 /// <returns>A collection of <see cref="IAppliedPayment"/></returns>
 public static IEnumerable<IAppliedPayment> AppliedPayments(this IPayment payment)
 {
     return payment.AppliedPayments(MerchelloContext.Current);
 }
Beispiel #2
0
 /// <summary>
 /// Returns a collection of <see cref="IAppliedPayment"/> for this <see cref="IPayment"/>
 /// </summary>
 /// <param name="payment">The <see cref="IPayment"/></param>
 /// <param name="merchelloContext">The <see cref="IMerchelloContext"/></param>
 /// <returns>A collection of <see cref="IAppliedPayment"/></returns>
 internal static IEnumerable<IAppliedPayment> AppliedPayments(this IPayment payment, IMerchelloContext merchelloContext)
 {
     return payment.AppliedPayments(merchelloContext.Services.GatewayProviderService);
 }
 /// <summary>
 /// Returns a collection of <see cref="IAppliedPayment"/> for the invoice
 /// </summary>
 /// <param name="invoice">The <see cref="IInvoice"/></param>
 /// <returns>A collection of <see cref="IAppliedPayment"/></returns>
 public static IEnumerable<IAppliedPayment> AppliedPayments(this IInvoice invoice)
 {
     return invoice.AppliedPayments(MerchelloContext.Current);
 }