Package com.labs64.netlicensing.service
Class PaymentMethodService
java.lang.Object
com.labs64.netlicensing.service.PaymentMethodService
Provides payment method entity handling routines.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentMethod
Gets payment method by its number.static Page<PaymentMethod>
Returns payment methods of a vendor.static PaymentMethod
update
(Context context, String number, PaymentMethod paymentMethod) Updates payment method properties.
-
Constructor Details
-
PaymentMethodService
public PaymentMethodService()
-
-
Method Details
-
get
Gets payment method by its number.- Parameters:
context
- determines the vendor on whose behalf the call is performednumber
- 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
Returns payment methods of a vendor.- Parameters:
context
- determines the vendor on whose behalf the call is performedfilter
- 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 performednumber
- payment method numberpaymentMethod
- 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.
-