Package org.killbill.billing.payment.api
Interface PaymentApi
-
- All Superinterfaces:
KillbillApi
public interface PaymentApi extends KillbillApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UUIDaddPaymentMethod(Account account, String paymentMethodExternalKey, String pluginName, boolean setDefault, PaymentMethodPlugin paymentMethodInfo, Iterable<PluginProperty> properties, CallContext context)UUIDaddPaymentMethodWithPaymentControl(Account account, String paymentMethodExternalKey, String pluginName, boolean setDefault, PaymentMethodPlugin paymentMethodInfo, Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context)voidcancelScheduledPaymentTransaction(String paymentTransactionExternalKey, CallContext context)Cancel scheduled future payment retryvoidcancelScheduledPaymentTransaction(UUID paymentTransactionId, CallContext context)Cancel scheduled future payment retryPaymentcreateAuthorization(Account account, UUID paymentMethodId, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentExternalKey, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, CallContext context)Authorize a payment.PaymentcreateAuthorizationWithPaymentControl(Account account, UUID paymentMethodId, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentExternalKey, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context)Authorize a payment and allow to go through registered routing pluginsPaymentcreateCapture(Account account, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, CallContext context)Capture a previously authorized payment.PaymentcreateCaptureWithPaymentControl(Account account, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context)Capture a previously authorized payment and allow to go through registered routing pluginsPaymentcreateChargeback(Account account, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, CallContext context)Record a chargebackPaymentcreateChargebackReversal(Account account, UUID paymentId, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, CallContext context)Reverse a chargebackPaymentcreateChargebackReversalWithPaymentControl(Account account, UUID paymentId, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, PaymentOptions paymentOptions, CallContext context)Reverse a chargebackPaymentcreateChargebackWithPaymentControl(Account account, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, PaymentOptions paymentOptions, CallContext context)Record a chargebackPaymentcreateCredit(Account account, UUID paymentMethodId, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentExternalKey, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, CallContext context)Credit a payment method.PaymentcreateCreditWithPaymentControl(Account account, UUID paymentMethodId, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentExternalKey, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context)Credit a payment method and allow to go through registered routing pluginsPaymentcreatePurchase(Account account, UUID paymentMethodId, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentExternalKey, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, CallContext context)Combine an authorize and capture payment.PaymentcreatePurchaseWithPaymentControl(Account account, UUID paymentMethodId, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentExternalKey, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context)Combine an authorize and capture payment and allow to go through registered routing pluginsPaymentcreateRefund(Account account, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, CallContext context)Refund a previously captured payment.PaymentcreateRefundWithPaymentControl(Account account, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context)Refund a previously captured payment and allow to go through registered routing pluginsPaymentcreateVoid(Account account, UUID paymentId, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, CallContext context)Void a previously authorized payment.PaymentcreateVoidWithPaymentControl(Account account, UUID paymentId, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context)Void a previously authorized payment and allow to go through registered routing pluginsvoiddeletePaymentMethod(Account account, UUID paymentMethodId, boolean deleteDefaultPaymentMethodWithAutoPayOff, boolean forceDefaultPaymentMethodDeletion, Iterable<PluginProperty> properties, CallContext context)List<PaymentMethod>getAccountPaymentMethods(UUID accountId, boolean includedInactive, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context)List<Payment>getAccountPayments(UUID accountId, boolean withPluginInfo, boolean withAttempts, Iterable<PluginProperty> properties, TenantContext context)PaymentgetPayment(UUID paymentId, boolean withPluginInfo, boolean withAttempts, Iterable<PluginProperty> properties, TenantContext context)List<AuditLogWithHistory>getPaymentAttemptAuditLogsWithHistoryForId(UUID paymentAttemptId, AuditLevel auditLevel, TenantContext context)Get all the audit entries with history for a given payment attempt.List<AuditLogWithHistory>getPaymentAuditLogsWithHistoryForId(UUID paymentId, AuditLevel auditLevel, TenantContext context)Get all the audit entries with history for a given payment.PaymentgetPaymentByExternalKey(String paymentExternalKey, boolean withPluginInfo, boolean withAttempts, Iterable<PluginProperty> properties, TenantContext context)PaymentgetPaymentByTransactionExternalKey(String transactionExternalKey, boolean withPluginInfo, boolean withAttempts, Iterable<PluginProperty> properties, TenantContext context)PaymentgetPaymentByTransactionId(UUID transactionId, boolean withPluginInfo, boolean withAttempts, Iterable<PluginProperty> properties, TenantContext context)List<AuditLogWithHistory>getPaymentMethodAuditLogsWithHistoryForId(UUID paymentMethodId, AuditLevel auditLevel, TenantContext context)Get all the audit entries with history for a given payment method.PaymentMethodgetPaymentMethodByExternalKey(String paymentMethodExternalKey, boolean includedInactive, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context)PaymentMethodgetPaymentMethodById(UUID paymentMethodId, boolean includedInactive, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context)Pagination<PaymentMethod>getPaymentMethods(Long offset, Long limit, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context)Find all payment methods across all pluginsPagination<PaymentMethod>getPaymentMethods(Long offset, Long limit, String pluginName, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context)Find all payment methods in a given pluginPagination<Payment>getPayments(Long offset, Long limit, boolean withPluginInfo, boolean withAttempts, Iterable<PluginProperty> properties, TenantContext context)Find all payments across all pluginsPagination<Payment>getPayments(Long offset, Long limit, String pluginName, boolean withPluginInfo, boolean withAttempts, Iterable<PluginProperty> properties, TenantContext context)Find all payments in a given pluginList<AuditLogWithHistory>getPaymentTransactionAuditLogsWithHistoryForId(UUID paymentTransactionId, AuditLevel auditLevel, TenantContext context)Get all the audit entries with history for a given payment transaction.PaymentnotifyPendingTransactionOfStateChanged(Account account, UUID paymentTransactionId, boolean isSuccess, CallContext context)Transition a currently PENDING transaction into either a SUCCESS or a FAILUREPaymentnotifyPendingTransactionOfStateChangedWithPaymentControl(Account account, UUID paymentTransactionId, boolean isSuccess, PaymentOptions paymentOptions, CallContext context)Transition a currently PENDING transaction into either a SUCCESS or a FAILUREList<PaymentMethod>refreshPaymentMethods(Account account, Iterable<PluginProperty> properties, CallContext context)Refresh all payment methods across all pluginsList<PaymentMethod>refreshPaymentMethods(Account account, String pluginName, Iterable<PluginProperty> properties, CallContext context)Pagination<PaymentMethod>searchPaymentMethods(String searchKey, Long offset, Long limit, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context)Find all payment methods matching the search key across all pluginsPagination<PaymentMethod>searchPaymentMethods(String searchKey, Long offset, Long limit, String pluginName, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context)Find all payment methods matching the search key in a given pluginPagination<Payment>searchPayments(String searchKey, Long offset, Long limit, boolean withPluginInfo, boolean withAttempts, Iterable<PluginProperty> properties, TenantContext context)Find all payments matching the search key across all pluginsPagination<Payment>searchPayments(String searchKey, Long offset, Long limit, String pluginName, boolean withPluginInfo, boolean withAttempts, Iterable<PluginProperty> properties, TenantContext context)Find all payments matching the search key in a given pluginvoidsetDefaultPaymentMethod(Account account, UUID paymentMethodId, Iterable<PluginProperty> properties, CallContext context)
-
-
-
Method Detail
-
createAuthorization
Payment createAuthorization(Account account, UUID paymentMethodId, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentExternalKey, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
Authorize a payment.- Parameters:
account- the accountpaymentMethodId- the payment method id to usepaymentId- the payment id (non-null for multi-steps flows, such as 3D Secure)amount- the amount to paycurrency- the amount currencyeffectiveDate- the effectiveDate of the payment operationpaymentExternalKey- the payment external keypaymentTransactionExternalKey- the payment transaction external keyproperties- plugin specific propertiescontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
createAuthorizationWithPaymentControl
Payment createAuthorizationWithPaymentControl(Account account, UUID paymentMethodId, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentExternalKey, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
Authorize a payment and allow to go through registered routing plugins- Parameters:
account- the accountpaymentMethodId- the payment method id to usepaymentId- the payment id (non-null for multi-steps flows, such as 3D Secure)amount- the amount to paycurrency- the amount currencyeffectiveDate- the effectiveDate of the payment operationpaymentExternalKey- the payment external keypaymentTransactionExternalKey- the payment transaction external keyproperties- plugin specific propertiespaymentOptions- options to control payment behaviorcontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
createCapture
Payment createCapture(Account account, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
Capture a previously authorized payment.- Parameters:
account- the accountamount- the amount to paycurrency- the amount currencyeffectiveDate- the effectiveDate of the payment operationpaymentTransactionExternalKey- the payment transaction external keyproperties- plugin specific propertiescontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
createCaptureWithPaymentControl
Payment createCaptureWithPaymentControl(Account account, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
Capture a previously authorized payment and allow to go through registered routing plugins- Parameters:
account- the accountamount- the amount to paycurrency- the amount currencyeffectiveDate- the effectiveDate of the payment operationpaymentTransactionExternalKey- the payment transaction external keyproperties- plugin specific propertiespaymentOptions- options to control payment behaviorcontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
createPurchase
Payment createPurchase(Account account, UUID paymentMethodId, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentExternalKey, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
Combine an authorize and capture payment.- Parameters:
account- the accountpaymentMethodId- the payment method id to usepaymentId- the payment id (non-null for multi-steps flows, such as 3D Secure)amount- the amount to paycurrency- the amount currencyeffectiveDate- the effectiveDate of the payment operationpaymentExternalKey- the payment external keypaymentTransactionExternalKey- the payment transaction external keyproperties- plugin specific propertiescontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
createPurchaseWithPaymentControl
Payment createPurchaseWithPaymentControl(Account account, UUID paymentMethodId, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentExternalKey, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
Combine an authorize and capture payment and allow to go through registered routing plugins- Parameters:
account- the accountpaymentMethodId- the payment method id to usepaymentId- the payment id (non-null for multi-steps flows, such as 3D Secure)amount- the amount to paycurrency- the amount currencyeffectiveDate- the effectiveDate of the payment operationpaymentExternalKey- the payment external keypaymentTransactionExternalKey- the payment transaction external keyproperties- plugin specific propertiespaymentOptions- options to control payment behaviorcontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
createVoid
Payment createVoid(Account account, UUID paymentId, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
Void a previously authorized payment.- Parameters:
account- the accountpaymentId- the payment ideffectiveDate- the effectiveDate of the payment operationpaymentTransactionExternalKey- the payment transaction external keyproperties- plugin specific propertiescontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
createVoidWithPaymentControl
Payment createVoidWithPaymentControl(Account account, UUID paymentId, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
Void a previously authorized payment and allow to go through registered routing plugins- Parameters:
account- the accountpaymentId- the payment ideffectiveDate- the effectiveDate of the payment operationpaymentTransactionExternalKey- the payment transaction external keyproperties- plugin specific propertiespaymentOptions- options to control payment behaviorcontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
createRefund
Payment createRefund(Account account, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
Refund a previously captured payment.- Parameters:
account- the accountpaymentId- the payment ideffectiveDate- the effectiveDate of the payment operationamount- the amount to refundcurrency- the amount currencypaymentTransactionExternalKey- the payment transaction external keyproperties- plugin specific propertiescontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
createRefundWithPaymentControl
Payment createRefundWithPaymentControl(Account account, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
Refund a previously captured payment and allow to go through registered routing plugins- Parameters:
account- the accountpaymentId- the payment ideffectiveDate- the effectiveDate of the payment operationamount- the amount to refundcurrency- the amount currencypaymentTransactionExternalKey- the payment transaction external keyproperties- plugin specific propertiespaymentOptions- options to control payment behaviorcontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
createCredit
Payment createCredit(Account account, UUID paymentMethodId, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentExternalKey, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
Credit a payment method. This is also known as payment in reverse.- Parameters:
account- the accountpaymentMethodId- the payment method id to usepaymentId- the payment id (non-null for multi-steps flows)effectiveDate- the effectiveDate of the payment operationamount- the amount to creditcurrency- the amount currencypaymentExternalKey- the payment external keypaymentTransactionExternalKey- the payment transaction external keyproperties- plugin specific propertiescontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
createCreditWithPaymentControl
Payment createCreditWithPaymentControl(Account account, UUID paymentMethodId, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentExternalKey, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
Credit a payment method and allow to go through registered routing plugins This is also known as payment in reverse.- Parameters:
account- the accountpaymentMethodId- the payment method id to usepaymentId- the payment id (non-null for multi-steps flows)amount- the amount to creditcurrency- the amount currencyeffectiveDate- the effectiveDate of the payment operationpaymentExternalKey- the payment external keypaymentTransactionExternalKey- the payment transaction external keyproperties- plugin specific propertiespaymentOptions- options to control payment behaviorcontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
cancelScheduledPaymentTransaction
void cancelScheduledPaymentTransaction(String paymentTransactionExternalKey, CallContext context) throws PaymentApiException
Cancel scheduled future payment retry- Parameters:
paymentTransactionExternalKey- the key identifying the transactioncontext- the call context- Throws:
PaymentApiException
-
cancelScheduledPaymentTransaction
void cancelScheduledPaymentTransaction(UUID paymentTransactionId, CallContext context) throws PaymentApiException
Cancel scheduled future payment retry- Parameters:
paymentTransactionId- the id identifying the transactioncontext- the call context- Throws:
PaymentApiException
-
createChargeback
Payment createChargeback(Account account, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, CallContext context) throws PaymentApiException
Record a chargeback- Parameters:
account- the accountpaymentId- the payment idpaymentTransactionExternalKey- the chargeback external keyamount- the amount to chargebackcurrency- the amount currencyeffectiveDate- the effectiveDate of the payment operationcontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
createChargebackWithPaymentControl
Payment createChargebackWithPaymentControl(Account account, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
Record a chargeback- Parameters:
account- the accountpaymentId- the payment idpaymentTransactionExternalKey- the chargeback external keyamount- the amount to chargebackcurrency- the amount currencyeffectiveDate- the effectiveDate of the payment operationpaymentOptions- options to control payment behaviorcontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
createChargebackReversal
Payment createChargebackReversal(Account account, UUID paymentId, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, CallContext context) throws PaymentApiException
Reverse a chargeback- Parameters:
account- the accountpaymentId- the payment ideffectiveDate- the effectiveDate of the payment operationpaymentTransactionExternalKey- the external key of the chargeback to reversecontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
createChargebackReversalWithPaymentControl
Payment createChargebackReversalWithPaymentControl(Account account, UUID paymentId, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
Reverse a chargeback- Parameters:
account- the accountpaymentId- the payment ideffectiveDate- the effectiveDate of the payment operationpaymentTransactionExternalKey- the external key of the chargeback to reversepaymentOptions- options to control payment behaviorcontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
notifyPendingTransactionOfStateChanged
Payment notifyPendingTransactionOfStateChanged(Account account, UUID paymentTransactionId, boolean isSuccess, CallContext context) throws PaymentApiException
Transition a currently PENDING transaction into either a SUCCESS or a FAILURE- Parameters:
account- the accountpaymentTransactionId- the transaction idisSuccess- whether the transaction is successful or notcontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
notifyPendingTransactionOfStateChangedWithPaymentControl
Payment notifyPendingTransactionOfStateChangedWithPaymentControl(Account account, UUID paymentTransactionId, boolean isSuccess, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
Transition a currently PENDING transaction into either a SUCCESS or a FAILURE- Parameters:
account- the accountpaymentTransactionId- the transaction idisSuccess- whether the transaction is successful or notpaymentOptions- options to control payment behaviorcontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
getAccountPayments
List<Payment> getAccountPayments(UUID accountId, boolean withPluginInfo, boolean withAttempts, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
- Parameters:
accountId- the account idwithPluginInfo- whether to fetch plugin infoproperties- plugin specific propertiescontext- the call context- Returns:
- the list of payments on this account
- Throws:
PaymentApiException
-
getPayment
Payment getPayment(UUID paymentId, boolean withPluginInfo, boolean withAttempts, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
- Parameters:
paymentId- the payment idwithPluginInfo- whether to fetch plugin infoproperties- plugin specific propertiescontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
getPaymentByExternalKey
Payment getPaymentByExternalKey(String paymentExternalKey, boolean withPluginInfo, boolean withAttempts, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
- Parameters:
paymentExternalKey- the payment external keywithPluginInfo- whether to fetch plugin infoproperties- plugin specific propertiescontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
getPaymentByTransactionId
Payment getPaymentByTransactionId(UUID transactionId, boolean withPluginInfo, boolean withAttempts, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
- Parameters:
transactionId- the payment transaction idcontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
getPaymentByTransactionExternalKey
Payment getPaymentByTransactionExternalKey(String transactionExternalKey, boolean withPluginInfo, boolean withAttempts, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
- Parameters:
transactionExternalKey- the payment transaction external keycontext- the call context- Returns:
- the payment
- Throws:
PaymentApiException
-
getPayments
Pagination<Payment> getPayments(Long offset, Long limit, boolean withPluginInfo, boolean withAttempts, Iterable<PluginProperty> properties, TenantContext context)
Find all payments across all plugins- Parameters:
offset- the offset of the first resultlimit- the maximum number of results to retrievewithPluginInfo- whether to fetch plugin infoproperties- plugin specific propertiescontext- the user context- Returns:
- the list of payments for that tenant
-
getPayments
Pagination<Payment> getPayments(Long offset, Long limit, String pluginName, boolean withPluginInfo, boolean withAttempts, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
Find all payments in a given plugin- Parameters:
offset- the offset of the first resultlimit- the maximum number of results to retrievepluginName- the payment plugin namewithPluginInfo- whether to fetch plugin infoproperties- plugin specific propertiescontext- the user context- Returns:
- the list of payments for that tenant
- Throws:
PaymentApiException
-
searchPayments
Pagination<Payment> searchPayments(String searchKey, Long offset, Long limit, boolean withPluginInfo, boolean withAttempts, Iterable<PluginProperty> properties, TenantContext context)
Find all payments matching the search key across all plugins The match will be plugin specific: for instance some plugins will try to match the key against the transaction ids, etc.- Parameters:
searchKey- the search keyoffset- the offset of the first resultlimit- the maximum number of results to retrievewithPluginInfo- whether to fetch plugin infoproperties- plugin specific propertiescontext- the user context- Returns:
- the list of payments matching this search key for that tenant
-
searchPayments
Pagination<Payment> searchPayments(String searchKey, Long offset, Long limit, String pluginName, boolean withPluginInfo, boolean withAttempts, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
Find all payments matching the search key in a given plugin The match will be plugin specific: for instance some plugins will try to match the key against the transaction ids, etc.- Parameters:
searchKey- the search keyoffset- the offset of the first resultlimit- the maximum number of results to retrievepluginName- the payment plugin namewithPluginInfo- whether to fetch plugin infoproperties- plugin specific propertiescontext- the user context- Returns:
- the list of payments matching this search key for that tenant
- Throws:
PaymentApiException
-
addPaymentMethod
UUID addPaymentMethod(Account account, String paymentMethodExternalKey, String pluginName, boolean setDefault, PaymentMethodPlugin paymentMethodInfo, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
- Parameters:
account- the accountpaymentMethodExternalKey- the external keypluginName- the plugin namesetDefault- whether this should be set as a default payment methodpaymentMethodInfo- the details for the payment methodproperties- plugin specific propertiescontext- the call context- Returns:
- the uuid of the payment method
- Throws:
PaymentApiException
-
addPaymentMethodWithPaymentControl
UUID addPaymentMethodWithPaymentControl(Account account, String paymentMethodExternalKey, String pluginName, boolean setDefault, PaymentMethodPlugin paymentMethodInfo, Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
- Parameters:
account- the accountpaymentMethodExternalKey- the external keypluginName- the plugin namesetDefault- whether this should be set as a default payment methodpaymentMethodInfo- the details for the payment methodproperties- plugin specific propertiespaymentOptions- options to control payment behaviorcontext- the call context- Returns:
- the uuid of the payment method
- Throws:
PaymentApiException
-
getAccountPaymentMethods
List<PaymentMethod> getAccountPaymentMethods(UUID accountId, boolean includedInactive, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
- Parameters:
accountId- the account idincludedInactive- returns the payment method even if this is not activewithPluginInfo- whether we want to retrieve the plugin info for that payment methodproperties- plugin specific propertiescontext- the call context- Returns:
- the list of payment methods
- Throws:
PaymentApiException
-
getPaymentMethodById
PaymentMethod getPaymentMethodById(UUID paymentMethodId, boolean includedInactive, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
- Parameters:
paymentMethodId- the payment method idincludedInactive- returns the payment method even if this is not activewithPluginInfo- whether we want to retrieve the plugin info for that payment methodproperties- plugin specific propertiescontext- the call context @return the payment method- Throws:
PaymentApiException
-
getPaymentMethodByExternalKey
PaymentMethod getPaymentMethodByExternalKey(String paymentMethodExternalKey, boolean includedInactive, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
- Parameters:
paymentMethodExternalKey- the payment method external keyincludedInactive- returns the payment method even if this is not activewithPluginInfo- whether we want to retrieve the plugin info for that payment methodproperties- plugin specific propertiescontext- the call context @return the payment method- Throws:
PaymentApiException
-
getPaymentMethods
Pagination<PaymentMethod> getPaymentMethods(Long offset, Long limit, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context)
Find all payment methods across all plugins- Parameters:
offset- the offset of the first resultlimit- the maximum number of results to retrievewithPluginInfo- whether to fetch plugin infoproperties- plugin specific propertiescontext- the user context- Returns:
- the list of payment methods for that tenant
-
getPaymentMethods
Pagination<PaymentMethod> getPaymentMethods(Long offset, Long limit, String pluginName, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
Find all payment methods in a given plugin- Parameters:
offset- the offset of the first resultlimit- the maximum number of results to retrievepluginName- the payment plugin namewithPluginInfo- whether to fetch plugin infoproperties- plugin specific propertiescontext- the user context- Returns:
- the list of payment methods for that tenant
- Throws:
PaymentApiException
-
searchPaymentMethods
Pagination<PaymentMethod> searchPaymentMethods(String searchKey, Long offset, Long limit, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context)
Find all payment methods matching the search key across all plugins The match will be plugin specific: for instance some plugins will try to match the key against the last 4 credit cards digits, agreement ids, etc.- Parameters:
searchKey- the search keyoffset- the offset of the first resultlimit- the maximum number of results to retrievewithPluginInfo- whether to fetch plugin infoproperties- plugin specific propertiescontext- the user context- Returns:
- the list of payment methods matching this search key for that tenant
-
searchPaymentMethods
Pagination<PaymentMethod> searchPaymentMethods(String searchKey, Long offset, Long limit, String pluginName, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
Find all payment methods matching the search key in a given plugin The match will be plugin specific: for instance some plugins will try to match the key against the last 4 credit cards digits, agreement ids, etc.- Parameters:
searchKey- the search keyoffset- the offset of the first resultlimit- the maximum number of results to retrievepluginName- the payment plugin namewithPluginInfo- whether to fetch plugin infoproperties- plugin specific propertiescontext- the user context- Returns:
- the list of payment methods matching this search key for that tenant
- Throws:
PaymentApiException
-
deletePaymentMethod
void deletePaymentMethod(Account account, UUID paymentMethodId, boolean deleteDefaultPaymentMethodWithAutoPayOff, boolean forceDefaultPaymentMethodDeletion, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
- Parameters:
account- the accountpaymentMethodId- the id of the payment methoddeleteDefaultPaymentMethodWithAutoPayOff- whether to allow deletion of default payment method and set account into AUTO_PAY_OFFproperties- plugin specific propertiescontext- the call context- Throws:
PaymentApiException
-
setDefaultPaymentMethod
void setDefaultPaymentMethod(Account account, UUID paymentMethodId, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
- Parameters:
account- the accountpaymentMethodId- the payment method idproperties- plugin specific propertiescontext- the call context- Throws:
PaymentApiException
-
refreshPaymentMethods
List<PaymentMethod> refreshPaymentMethods(Account account, String pluginName, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
- Parameters:
account- the accountpluginName- the name of the pluginproperties- plugin specific propertiescontext- the call context- Returns:
- the list of payment methods for that account
- Throws:
PaymentApiException
-
refreshPaymentMethods
List<PaymentMethod> refreshPaymentMethods(Account account, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
Refresh all payment methods across all plugins This call is not atomic.- Parameters:
account- the accountproperties- plugin specific propertiescontext- the call context- Returns:
- the list of payment methods for that account
- Throws:
PaymentApiException
-
getPaymentAuditLogsWithHistoryForId
List<AuditLogWithHistory> getPaymentAuditLogsWithHistoryForId(UUID paymentId, AuditLevel auditLevel, TenantContext context)
Get all the audit entries with history for a given payment.- Parameters:
paymentId- the payment idauditLevel- audit level (verbosity)context- the tenant context- Returns:
- all audit entries with history for a payment
-
getPaymentMethodAuditLogsWithHistoryForId
List<AuditLogWithHistory> getPaymentMethodAuditLogsWithHistoryForId(UUID paymentMethodId, AuditLevel auditLevel, TenantContext context)
Get all the audit entries with history for a given payment method.- Parameters:
paymentMethodId- the payment method idauditLevel- audit level (verbosity)context- the tenant context- Returns:
- all audit entries with history for a payment method
-
getPaymentAttemptAuditLogsWithHistoryForId
List<AuditLogWithHistory> getPaymentAttemptAuditLogsWithHistoryForId(UUID paymentAttemptId, AuditLevel auditLevel, TenantContext context)
Get all the audit entries with history for a given payment attempt.- Parameters:
paymentAttemptId- the payment attempt idauditLevel- audit level (verbosity)context- the tenant context- Returns:
- all audit entries with history for a payment attempt
-
getPaymentTransactionAuditLogsWithHistoryForId
List<AuditLogWithHistory> getPaymentTransactionAuditLogsWithHistoryForId(UUID paymentTransactionId, AuditLevel auditLevel, TenantContext context)
Get all the audit entries with history for a given payment transaction.- Parameters:
paymentTransactionId- the payment transaction idauditLevel- audit level (verbosity)context- the tenant context- Returns:
- all audit entries with history for a payment transaction
-
-