Package ru.loolzaaa.youkassa.processors
Class PaymentMethodProcessor
java.lang.Object
ru.loolzaaa.youkassa.processors.PaymentMethodProcessor
Processor for
PaymentMethod entity.
The API allows you to create and save payment methods, as well as receive information about them.
Use ApiClient for API server communication.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(PaymentMethod paymentMethodParams, String idempotencyKey) Creates newPaymentMethodentity with certain parameters.Receive information about somePaymentMethodby its identifier.
-
Constructor Details
-
PaymentMethodProcessor
public PaymentMethodProcessor()
-
-
Method Details
-
findById
Receive information about somePaymentMethodby its identifier.- Parameters:
paymentMethodId- payment method identifier- Returns:
- payment entity with actual status
- Throws:
IllegalArgumentException- if payment method id is null or empty
-
create
Creates newPaymentMethodentity with certain parameters.Generate random idempotency key if corresponding argument is null.
- Parameters:
paymentMethodParams- parameters for new paymentidempotencyKey- idempotency key- Returns:
- new payment method entity with actual status
- Throws:
IllegalArgumentException- if payment parameters is null
-