Class PaymentWorker

java.lang.Object
org.apache.ofbiz.accounting.payment.PaymentWorker

public final class PaymentWorker extends Object
Worker methods for Payments
  • Method Details

    • getPartyPaymentMethodValueMaps

      public static List<Map<String,GenericValue>> getPartyPaymentMethodValueMaps(Delegator delegator, String partyId)
    • getPartyPaymentMethodValueMaps

      public static List<Map<String,GenericValue>> getPartyPaymentMethodValueMaps(Delegator delegator, String partyId, Boolean showOld)
    • getPaymentMethodAndRelated

      public static Map<String,Object> getPaymentMethodAndRelated(ServletRequest request, String partyId)
    • getPaymentAddress

      public static GenericValue getPaymentAddress(Delegator delegator, String partyId)
    • getPaymentsTotal

      public static BigDecimal getPaymentsTotal(List<GenericValue> payments)
      Returns the total from a list of Payment entities
      Parameters:
      payments - List of Payment GenericValue items
      Returns:
      total payments as BigDecimal
    • getPaymentApplied

      public static BigDecimal getPaymentApplied(Delegator delegator, String paymentId)
      Method to return the total amount of an payment which is applied to a payment
      Parameters:
      delegator - the delegator
      paymentId - paymentId of the Payment
      Returns:
      the applied total as BigDecimal
    • getPaymentApplied

      public static BigDecimal getPaymentApplied(Delegator delegator, String paymentId, Boolean actual)
    • getPaymentAppliedAmount

      public static BigDecimal getPaymentAppliedAmount(Delegator delegator, String paymentApplicationId)
      Method to return the amount applied converted to the currency of payment
      Parameters:
      paymentApplicationId - the payment application id
      Returns:
      appliedAmount the applied amount as BigDecimal
    • getPaymentApplied

      public static BigDecimal getPaymentApplied(GenericValue payment)
      Method to return the total amount of an payment which is applied to a payment
      Parameters:
      payment - GenericValue object of the Payment
      Returns:
      the applied total as BigDecimal in the currency of the payment
    • getPaymentApplied

      public static BigDecimal getPaymentApplied(GenericValue payment, Boolean actual)
      Method to return the total amount of a payment which is applied to a payment
      Parameters:
      payment - GenericValue object of the Payment
      actual - false for currency of the payment, true for the actual currency
      Returns:
      the applied total as BigDecimal in the currency of the payment
    • getPaymentNotApplied

      public static BigDecimal getPaymentNotApplied(GenericValue payment)
    • getPaymentNotApplied

      public static BigDecimal getPaymentNotApplied(GenericValue payment, Boolean actual)
    • getPaymentNotApplied

      public static BigDecimal getPaymentNotApplied(Delegator delegator, String paymentId)
    • getPaymentNotApplied

      public static BigDecimal getPaymentNotApplied(Delegator delegator, String paymentId, Boolean actual)