Class PaymentMethodServices

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

public class PaymentMethodServices extends Object
Services for Payment maintenance
  • Constructor Details

    • PaymentMethodServices

      public PaymentMethodServices()
  • Method Details

    • deletePaymentMethod

      public static Map<String,Object> deletePaymentMethod(DispatchContext ctx, Map<String,? extends Object> context)
      Deletes a PaymentMethod entity according to the parameters passed in the context security check: userLogin partyId must equal paymentMethod partyId, or must have PAY_INFO_DELETE permission
      Parameters:
      ctx - The DispatchContext that this service is operating in
      context - Map containing the input parameters
      Returns:
      Map with the result of the service, the output parameters
    • makeExpireDate

      public static Map<String,Object> makeExpireDate(DispatchContext ctx, Map<String,? extends Object> context)
    • createCreditCard

      public static Map<String,Object> createCreditCard(DispatchContext ctx, Map<String,Object> context)
      Creates CreditCard and PaymentMethod entities according to the parameters passed in the context security check: userLogin partyId must equal partyId, or must have PAY_INFO_CREATE permission
      Parameters:
      ctx - The DispatchContext that this service is operating in
      context - Map containing the input parameters
      Returns:
      Map with the result of the service, the output parameters
    • updateCreditCard

      public static Map<String,Object> updateCreditCard(DispatchContext ctx, Map<String,Object> context)
      Updates CreditCard and PaymentMethod entities according to the parameters passed in the context security check: userLogin partyId must equal partyId, or must have PAY_INFO_UPDATE permission
      Parameters:
      ctx - The DispatchContext that this service is operating in
      context - Map containing the input parameters
      Returns:
      Map with the result of the service, the output parameters
    • clearCreditCardData

      public static Map<String,Object> clearCreditCardData(DispatchContext dctx, Map<String,? extends Object> context)
    • createGiftCard

      public static Map<String,Object> createGiftCard(DispatchContext ctx, Map<String,? extends Object> context)
    • updateGiftCard

      public static Map<String,Object> updateGiftCard(DispatchContext ctx, Map<String,Object> context)
    • createEftAccount

      public static Map<String,Object> createEftAccount(DispatchContext ctx, Map<String,? extends Object> context)
      Creates EftAccount and PaymentMethod entities according to the parameters passed in the context security check: userLogin partyId must equal partyId, or must have PAY_INFO_CREATE permission
      Parameters:
      ctx - The DispatchContext that this service is operating in
      context - Map containing the input parameters
      Returns:
      Map with the result of the service, the output parameters
    • updateEftAccount

      public static Map<String,Object> updateEftAccount(DispatchContext ctx, Map<String,? extends Object> context)
      Updates EftAccount and PaymentMethod entities according to the parameters passed in the context security check: userLogin partyId must equal partyId, or must have PAY_INFO_UPDATE permission
      Parameters:
      ctx - The DispatchContext that this service is operating in
      context - Map containing the input parameters
      Returns:
      Map with the result of the service, the output parameters
    • createCheckAccount

      public static Map<String,Object> createCheckAccount(DispatchContext ctx, Map<String,? extends Object> context)
    • updateCheckAccount

      public static Map<String,Object> updateCheckAccount(DispatchContext ctx, Map<String,? extends Object> context)