Class PaymentMethodService

java.lang.Object
com.labs64.netlicensing.service.PaymentMethodService

public class PaymentMethodService extends Object
Provides payment method entity handling routines.
  • Constructor Details

    • PaymentMethodService

      public PaymentMethodService()
  • Method Details

    • get

      public static PaymentMethod get(Context context, String number) throws NetLicensingException
      Gets payment method by its number.
      Parameters:
      context - determines the vendor on whose behalf the call is performed
      number - the payment method number
      Returns:
      the payment method
      Throws:
      NetLicensingException - any subclass of NetLicensingException. These exceptions will be transformed to the corresponding service response messages.
    • list

      public static Page<PaymentMethod> list(Context context, String filter) throws NetLicensingException
      Returns payment methods of a vendor.
      Parameters:
      context - determines the vendor on whose behalf the call is performed
      filter - reserved for the future use, must be omitted / set to NULL
      Returns:
      collection of payment method entities or null/empty list if nothing found.
      Throws:
      NetLicensingException - any subclass of NetLicensingException. These exceptions will be transformed to the corresponding service response messages.
    • update

      public static PaymentMethod update(Context context, String number, PaymentMethod paymentMethod) throws NetLicensingException
      Updates payment method properties.
      Parameters:
      context - determines the vendor on whose behalf the call is performed
      number - payment method number
      paymentMethod - non-null properties will be updated to the provided values, null properties will stay unchanged.
      Returns:
      updated PaymentMethod.
      Throws:
      NetLicensingException - any subclass of NetLicensingException. These exceptions will be transformed to the corresponding service response messages.