Package org.killbill.billing.payment.api
Interface InvoicePaymentApi
-
- All Superinterfaces:
KillbillApi
public interface InvoicePaymentApi extends KillbillApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InvoicePaymentcreateChargebackForInvoicePayment(Account account, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context)Record a chargeback and allow to go through registered routing pluginsInvoicePaymentcreateChargebackReversalForInvoicePayment(Account account, UUID paymentId, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context)Reverse a chargeback and allow to go through registered routing pluginsInvoicePaymentcreateCreditForInvoicePayment(boolean isAdjusted, Map<UUID,BigDecimal> adjustments, Account account, UUID originalPaymentId, 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 for a given invoice and allow to go through registered routing pluginsInvoicePaymentcreatePurchaseForInvoicePayment(Account account, UUID invoiceId, 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 for a given invoice and allow to go through registered routing pluginsInvoicePaymentcreateRefundForInvoicePayment(boolean isAdjusted, Map<UUID,BigDecimal> adjustments, 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 pluginsInvoicePaymentgetInvoicePayment(UUID invoicePaymentId, TenantContext context)List<InvoicePayment>getInvoicePayments(UUID paymentId, TenantContext context)List<InvoicePayment>getInvoicePaymentsByAccount(UUID accountId, TenantContext context)
-
-
-
Method Detail
-
getInvoicePayment
InvoicePayment getInvoicePayment(UUID invoicePaymentId, TenantContext context) throws PaymentApiException
- Parameters:
invoicePaymentId- the id of the invoice paymentcontext- the call context- Returns:
- the invoice payment.
- Throws:
PaymentApiException
-
createPurchaseForInvoicePayment
InvoicePayment createPurchaseForInvoicePayment(Account account, UUID invoiceId, 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 for a given invoice and allow to go through registered routing plugins- Parameters:
account- the accountinvoiceId- the invoice idpaymentMethodId- 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 invoice payment
- Throws:
PaymentApiException
-
createRefundForInvoicePayment
InvoicePayment createRefundForInvoicePayment(boolean isAdjusted, Map<UUID,BigDecimal> adjustments, 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:
isAdjusted- whether to adjust the invoiceadjustments- individual adjustments per invoice item idaccount- 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
-
createCreditForInvoicePayment
InvoicePayment createCreditForInvoicePayment(boolean isAdjusted, Map<UUID,BigDecimal> adjustments, Account account, UUID originalPaymentId, 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 for a given invoice and allow to go through registered routing plugins This is also known as payment in reverse.- Parameters:
isAdjusted- whether to adjust the invoiceadjustments- individual adjustments per invoice item idaccount- the accountoriginalPaymentId- the original payment idpaymentMethodId- 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
-
createChargebackForInvoicePayment
InvoicePayment createChargebackForInvoicePayment(Account account, UUID paymentId, BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
Record a chargeback 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
-
createChargebackReversalForInvoicePayment
InvoicePayment createChargebackReversalForInvoicePayment(Account account, UUID paymentId, org.joda.time.DateTime effectiveDate, String paymentTransactionExternalKey, Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
Reverse a chargeback 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
-
getInvoicePayments
List<InvoicePayment> getInvoicePayments(UUID paymentId, TenantContext context)
-
getInvoicePaymentsByAccount
List<InvoicePayment> getInvoicePaymentsByAccount(UUID accountId, TenantContext context)
-
-