public interface InvoicePaymentApi extends KillbillApi
Modifier and Type | Method and Description |
---|---|
InvoicePayment |
createChargebackForInvoicePayment(Account account,
java.util.UUID paymentId,
java.math.BigDecimal amount,
Currency currency,
org.joda.time.DateTime effectiveDate,
java.lang.String paymentTransactionExternalKey,
java.lang.Iterable<PluginProperty> properties,
PaymentOptions paymentOptions,
CallContext context)
Record a chargeback and allow to go through registered routing plugins
|
InvoicePayment |
createChargebackReversalForInvoicePayment(Account account,
java.util.UUID paymentId,
org.joda.time.DateTime effectiveDate,
java.lang.String paymentTransactionExternalKey,
java.lang.Iterable<PluginProperty> properties,
PaymentOptions paymentOptions,
CallContext context)
Reverse a chargeback and allow to go through registered routing plugins
|
InvoicePayment |
createCreditForInvoicePayment(boolean isAdjusted,
java.util.Map<java.util.UUID,java.math.BigDecimal> adjustments,
Account account,
java.util.UUID originalPaymentId,
java.util.UUID paymentMethodId,
java.util.UUID paymentId,
java.math.BigDecimal amount,
Currency currency,
org.joda.time.DateTime effectiveDate,
java.lang.String paymentExternalKey,
java.lang.String paymentTransactionExternalKey,
java.lang.Iterable<PluginProperty> properties,
PaymentOptions paymentOptions,
CallContext context)
Credit a payment method for a given invoice and allow to go through registered routing plugins
This is also known as payment in reverse.
|
InvoicePayment |
createPurchaseForInvoicePayment(Account account,
java.util.UUID invoiceId,
java.util.UUID paymentMethodId,
java.util.UUID paymentId,
java.math.BigDecimal amount,
Currency currency,
org.joda.time.DateTime effectiveDate,
java.lang.String paymentExternalKey,
java.lang.String paymentTransactionExternalKey,
java.lang.Iterable<PluginProperty> properties,
PaymentOptions paymentOptions,
CallContext context)
Combine an authorize and capture payment for a given invoice and allow to go through registered routing plugins
|
InvoicePayment |
createRefundForInvoicePayment(boolean isAdjusted,
java.util.Map<java.util.UUID,java.math.BigDecimal> adjustments,
Account account,
java.util.UUID paymentId,
java.math.BigDecimal amount,
Currency currency,
org.joda.time.DateTime effectiveDate,
java.lang.String paymentTransactionExternalKey,
java.lang.Iterable<PluginProperty> properties,
PaymentOptions paymentOptions,
CallContext context)
Refund a previously captured payment and allow to go through registered routing plugins
|
InvoicePayment |
getInvoicePayment(java.util.UUID invoicePaymentId,
TenantContext context) |
java.util.List<InvoicePayment> |
getInvoicePayments(java.util.UUID paymentId,
TenantContext context) |
java.util.List<InvoicePayment> |
getInvoicePaymentsByAccount(java.util.UUID accountId,
TenantContext context) |
InvoicePayment getInvoicePayment(java.util.UUID invoicePaymentId, TenantContext context) throws PaymentApiException
invoicePaymentId
- the id of the invoice paymentcontext
- the call contextPaymentApiException
InvoicePayment createPurchaseForInvoicePayment(Account account, java.util.UUID invoiceId, java.util.UUID paymentMethodId, java.util.UUID paymentId, java.math.BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, java.lang.String paymentExternalKey, java.lang.String paymentTransactionExternalKey, java.lang.Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
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 contextPaymentApiException
InvoicePayment createRefundForInvoicePayment(boolean isAdjusted, java.util.Map<java.util.UUID,java.math.BigDecimal> adjustments, Account account, java.util.UUID paymentId, java.math.BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, java.lang.String paymentTransactionExternalKey, java.lang.Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
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 contextPaymentApiException
InvoicePayment createCreditForInvoicePayment(boolean isAdjusted, java.util.Map<java.util.UUID,java.math.BigDecimal> adjustments, Account account, java.util.UUID originalPaymentId, java.util.UUID paymentMethodId, java.util.UUID paymentId, java.math.BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, java.lang.String paymentExternalKey, java.lang.String paymentTransactionExternalKey, java.lang.Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
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 contextPaymentApiException
InvoicePayment createChargebackForInvoicePayment(Account account, java.util.UUID paymentId, java.math.BigDecimal amount, Currency currency, org.joda.time.DateTime effectiveDate, java.lang.String paymentTransactionExternalKey, java.lang.Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
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 contextPaymentApiException
InvoicePayment createChargebackReversalForInvoicePayment(Account account, java.util.UUID paymentId, org.joda.time.DateTime effectiveDate, java.lang.String paymentTransactionExternalKey, java.lang.Iterable<PluginProperty> properties, PaymentOptions paymentOptions, CallContext context) throws PaymentApiException
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 contextPaymentApiException
java.util.List<InvoicePayment> getInvoicePayments(java.util.UUID paymentId, TenantContext context)
java.util.List<InvoicePayment> getInvoicePaymentsByAccount(java.util.UUID accountId, TenantContext context)
Copyright © 2010-2019. All Rights Reserved.