public interface PaymentApi extends KillbillApi
| Modifier and Type | Method and Description |
|---|---|
UUID |
addPaymentMethod(Account account,
String paymentMethodExternalKey,
String pluginName,
boolean setDefault,
PaymentMethodPlugin paymentMethodInfo,
Iterable<PluginProperty> properties,
CallContext context) |
Payment |
createAuthorization(Account account,
UUID paymentMethodId,
UUID paymentId,
BigDecimal amount,
Currency currency,
String paymentExternalKey,
String paymentTransactionExternalKey,
Iterable<PluginProperty> properties,
CallContext context)
Authorize a payment.
|
Payment |
createCapture(Account account,
UUID paymentId,
BigDecimal amount,
Currency currency,
String paymentTransactionExternalKey,
Iterable<PluginProperty> properties,
CallContext context)
Capture a previously authorized payment.
|
Payment |
createChargeback(Account account,
UUID paymentId,
BigDecimal amount,
Currency currency,
String paymentTransactionExternalKey,
CallContext context)
Record a chargeback
|
Payment |
createChargebackWithPaymentControl(Account account,
UUID paymentId,
BigDecimal amount,
Currency currency,
String paymentTransactionExternalKey,
PaymentOptions paymentOptions,
CallContext context)
Record a chargeback
|
Payment |
createCredit(Account account,
UUID paymentMethodId,
UUID paymentId,
BigDecimal amount,
Currency currency,
String paymentExternalKey,
String paymentTransactionExternalKey,
Iterable<PluginProperty> properties,
CallContext context)
Credit a payment method.
|
Payment |
createPurchase(Account account,
UUID paymentMethodId,
UUID paymentId,
BigDecimal amount,
Currency currency,
String paymentExternalKey,
String paymentTransactionExternalKey,
Iterable<PluginProperty> properties,
CallContext context)
Combine an authorize and capture payment.
|
Payment |
createPurchaseWithPaymentControl(Account account,
UUID paymentMethodId,
UUID paymentId,
BigDecimal amount,
Currency currency,
String paymentExternalKey,
String paymentTransactionExternalKey,
Iterable<PluginProperty> properties,
PaymentOptions paymentOptions,
CallContext context)
Combine an authorize and capture payment.
|
Payment |
createRefund(Account account,
UUID paymentId,
BigDecimal amount,
Currency currency,
String paymentTransactionExternalKey,
Iterable<PluginProperty> properties,
CallContext context)
Refund a previously captured payment.
|
Payment |
createRefundWithPaymentControl(Account account,
UUID paymentId,
BigDecimal amount,
Currency currency,
String paymentTransactionExternalKey,
Iterable<PluginProperty> properties,
PaymentOptions paymentOptions,
CallContext context)
Refund a previously captured payment.
|
Payment |
createVoid(Account account,
UUID paymentId,
String paymentTransactionExternalKey,
Iterable<PluginProperty> properties,
CallContext context)
Void a previously authorized payment.
|
void |
deletePaymentMethod(Account account,
UUID paymentMethodId,
boolean deleteDefaultPaymentMethodWithAutoPayOff,
Iterable<PluginProperty> properties,
CallContext context) |
List<PaymentMethod> |
getAccountPaymentMethods(UUID accountId,
boolean withPluginInfo,
Iterable<PluginProperty> properties,
TenantContext context) |
List<Payment> |
getAccountPayments(UUID accountId,
boolean withPluginInfo,
Iterable<PluginProperty> properties,
TenantContext context) |
Payment |
getPayment(UUID paymentId,
boolean withPluginInfo,
Iterable<PluginProperty> properties,
TenantContext context) |
Payment |
getPaymentByExternalKey(String paymentExternalKey,
boolean withPluginInfo,
Iterable<PluginProperty> properties,
TenantContext context) |
PaymentMethod |
getPaymentMethodByExternalKey(String paymentMethodExternalKey,
boolean includedInactive,
boolean withPluginInfo,
Iterable<PluginProperty> properties,
TenantContext context) |
PaymentMethod |
getPaymentMethodById(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 plugins
|
Pagination<PaymentMethod> |
getPaymentMethods(Long offset,
Long limit,
String pluginName,
boolean withPluginInfo,
Iterable<PluginProperty> properties,
TenantContext context)
Find all payment methods in a given plugin
|
Pagination<Payment> |
getPayments(Long offset,
Long limit,
boolean withPluginInfo,
Iterable<PluginProperty> properties,
TenantContext context)
Find all payments across all plugins
|
Pagination<Payment> |
getPayments(Long offset,
Long limit,
String pluginName,
boolean withPluginInfo,
Iterable<PluginProperty> properties,
TenantContext context)
Find all payments in a given plugin
|
Payment |
notifyPendingTransactionOfStateChanged(Account account,
UUID paymentTransactionId,
boolean isSuccess,
CallContext context)
Transition a currently PENDING transaction into either a SUCCESS or a FAILURE
|
Payment |
notifyPendingTransactionOfStateChangedWithPaymentControl(Account account,
UUID paymentTransactionId,
boolean isSuccess,
PaymentOptions paymentOptions,
CallContext context)
Transition a currently PENDING transaction into either a SUCCESS or a FAILURE
|
List<PaymentMethod> |
refreshPaymentMethods(Account account,
Iterable<PluginProperty> properties,
CallContext context)
Refresh all payment methods across all plugins
This call is not atomic.
|
List<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 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.
|
Pagination<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 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.
|
Pagination<Payment> |
searchPayments(String searchKey,
Long offset,
Long limit,
boolean withPluginInfo,
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.
|
Pagination<Payment> |
searchPayments(String searchKey,
Long offset,
Long limit,
String pluginName,
boolean withPluginInfo,
Iterable<PluginProperty> properties,
TenantContext context)
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.
|
void |
setDefaultPaymentMethod(Account account,
UUID paymentMethodId,
Iterable<PluginProperty> properties,
CallContext context) |
Payment createAuthorization(Account account, UUID paymentMethodId, UUID paymentId, BigDecimal amount, Currency currency, String paymentExternalKey, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
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 currencypaymentExternalKey - the payment external keypaymentTransactionExternalKey - the payment transaction external keyproperties - plugin specific propertiescontext - the call contextPaymentApiExceptionPayment createCapture(Account account, UUID paymentId, BigDecimal amount, Currency currency, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
account - the accountamount - the amount to paycurrency - the amount currencypaymentTransactionExternalKey - the payment transaction external keyproperties - plugin specific propertiescontext - the call contextPaymentApiExceptionPayment createPurchase(Account account, UUID paymentMethodId, UUID paymentId, BigDecimal amount, Currency currency, String paymentExternalKey, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
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 currencypaymentExternalKey - the payment external keypaymentTransactionExternalKey - the payment transaction external keyproperties - plugin specific propertiescontext - the call contextPaymentApiExceptionPayment createPurchaseWithPaymentControl(Account account, UUID paymentMethodId, UUID paymentId, BigDecimal amount, Currency currency, String paymentExternalKey, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
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 currencypaymentExternalKey - the payment external keypaymentTransactionExternalKey - the payment transaction external keyproperties - plugin specific propertiespaymentOptions - options to control payment behaviorcontext - the call contextPaymentApiExceptionPayment createVoid(Account account, UUID paymentId, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
account - the accountpaymentId - the payment idpaymentTransactionExternalKey - the payment transaction external keyproperties - plugin specific propertiescontext - the call contextPaymentApiExceptionPayment createRefund(Account account, UUID paymentId, BigDecimal amount, Currency currency, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
account - the accountpaymentId - the payment idamount - the amount to refundcurrency - the amount currencypaymentTransactionExternalKey - the payment transaction external keyproperties - plugin specific propertiescontext - the call contextPaymentApiExceptionPayment createRefundWithPaymentControl(Account account, UUID paymentId, BigDecimal amount, Currency currency, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
account - the accountpaymentId - the payment idamount - the amount to refundcurrency - the amount currencypaymentTransactionExternalKey - the payment transaction external keyproperties - plugin specific propertiespaymentOptions - options to control payment behaviorcontext - the call contextPaymentApiExceptionPayment createCredit(Account account, UUID paymentMethodId, UUID paymentId, BigDecimal amount, Currency currency, String paymentExternalKey, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
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 currencypaymentExternalKey - the payment external keypaymentTransactionExternalKey - the payment transaction external keyproperties - plugin specific propertiescontext - the call contextPaymentApiExceptionPayment createChargeback(Account account, UUID paymentId, BigDecimal amount, Currency currency, String paymentTransactionExternalKey, CallContext context) throws PaymentApiException
account - the accountpaymentId - the payment idpaymentTransactionExternalKey - the chargeback external keyamount - the amount to chargebackcurrency - the amount currencycontext - the call contextPaymentApiExceptionPayment createChargebackWithPaymentControl(Account account, UUID paymentId, BigDecimal amount, Currency currency, String paymentTransactionExternalKey, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
account - the accountpaymentId - the payment idpaymentTransactionExternalKey - the chargeback external keyamount - the amount to chargebackcurrency - the amount currencypaymentOptions - options to control payment behaviorcontext - the call contextPaymentApiExceptionPayment notifyPendingTransactionOfStateChanged(Account account, UUID paymentTransactionId, boolean isSuccess, CallContext context) throws PaymentApiException
account - the accountpaymentTransactionId - the transaction idisSuccess - whether the transaction is successful or notcontext - the call contextPaymentApiExceptionPayment notifyPendingTransactionOfStateChangedWithPaymentControl(Account account, UUID paymentTransactionId, boolean isSuccess, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
account - the accountpaymentTransactionId - the transaction idisSuccess - whether the transaction is successful or notpaymentOptions - options to control payment behaviorcontext - the call contextPaymentApiExceptionList<Payment> getAccountPayments(UUID accountId, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
accountId - the account idwithPluginInfo - whether to fetch plugin infoproperties - plugin specific propertiescontext - the call contextPaymentApiExceptionPayment getPayment(UUID paymentId, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
paymentId - the payment idwithPluginInfo - whether to fetch plugin infoproperties - plugin specific propertiescontext - the call contextPaymentApiExceptionPayment getPaymentByExternalKey(String paymentExternalKey, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
paymentExternalKey - the payment external keywithPluginInfo - whether to fetch plugin infoproperties - plugin specific propertiescontext - the call contextPaymentApiExceptionPagination<Payment> getPayments(Long offset, Long limit, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context)
offset - the offset of the first resultlimit - the maximum number of results to retrievewithPluginInfo - whether to fetch plugin infoproperties - plugin specific propertiescontext - the user contextPagination<Payment> getPayments(Long offset, Long limit, String pluginName, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
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 contextPaymentApiExceptionPagination<Payment> searchPayments(String searchKey, Long offset, Long limit, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context)
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 contextPagination<Payment> searchPayments(String searchKey, Long offset, Long limit, String pluginName, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
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 contextPaymentApiExceptionUUID addPaymentMethod(Account account, String paymentMethodExternalKey, String pluginName, boolean setDefault, PaymentMethodPlugin paymentMethodInfo, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
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 contextPaymentApiExceptionList<PaymentMethod> getAccountPaymentMethods(UUID accountId, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
accountId - the account idwithPluginInfo - whether we want to retrieve the plugin info for that payment methodproperties - plugin specific propertiescontext - the call contextPaymentApiExceptionPaymentMethod getPaymentMethodById(UUID paymentMethodId, boolean includedInactive, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
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 methodPaymentApiExceptionPaymentMethod getPaymentMethodByExternalKey(String paymentMethodExternalKey, boolean includedInactive, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
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 methodPaymentApiExceptionPagination<PaymentMethod> getPaymentMethods(Long offset, Long limit, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context)
offset - the offset of the first resultlimit - the maximum number of results to retrievewithPluginInfo - whether to fetch plugin infoproperties - plugin specific propertiescontext - the user contextPagination<PaymentMethod> getPaymentMethods(Long offset, Long limit, String pluginName, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
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 contextPaymentApiExceptionPagination<PaymentMethod> searchPaymentMethods(String searchKey, Long offset, Long limit, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context)
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 contextPagination<PaymentMethod> searchPaymentMethods(String searchKey, Long offset, Long limit, String pluginName, boolean withPluginInfo, Iterable<PluginProperty> properties, TenantContext context) throws PaymentApiException
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 contextPaymentApiExceptionvoid deletePaymentMethod(Account account, UUID paymentMethodId, boolean deleteDefaultPaymentMethodWithAutoPayOff, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
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 contextPaymentApiExceptionvoid setDefaultPaymentMethod(Account account, UUID paymentMethodId, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
account - the accountpaymentMethodId - the payment method idproperties - plugin specific propertiescontext - the call contextPaymentApiExceptionList<PaymentMethod> refreshPaymentMethods(Account account, String pluginName, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
account - the accountpluginName - the name of the pluginproperties - plugin specific propertiescontext - the call contextPaymentApiExceptionList<PaymentMethod> refreshPaymentMethods(Account account, Iterable<PluginProperty> properties, CallContext context) throws PaymentApiException
account - the accountproperties - plugin specific propertiescontext - the call contextPaymentApiExceptionCopyright © 2010-2014. All Rights Reserved.