Interface InvoicingSrv.Iface
- All Known Implementing Classes:
InvoicingSrv.Client
- Enclosing class:
- InvoicingSrv
public static interface InvoicingSrv.Iface
-
Method Summary
Modifier and TypeMethodDescriptionvoidacceptChargeback(String id, String payment_id, String chargeback_id, InvoicePaymentChargebackAcceptParams params) Принять чарджбэкvoidcancelChargeback(String id, String payment_id, String chargeback_id, InvoicePaymentChargebackCancelParams params) Отмена чарджбэка.voidcancelPayment(String id, String payment_id, String reason) voidcancelPaymentAdjustment(String id, String payment_id, String adjustment_id) voidcapturePayment(String id, String payment_id, InvoicePaymentCaptureParams params) voidcapturePaymentAdjustment(String id, String payment_id, String adjustment_id) voidcapturePaymentNew(String id, String payment_id, InvoicePaymentCaptureParams params) computeTerms(String id, PartyRevisionParam party_revision_param) create(InvoiceParams params) createChargeback(String id, String payment_id, InvoicePaymentChargebackParams params) Создать чарджбэкcreateManualRefund(String id, String payment_id, InvoicePaymentRefundParams params) Сделать ручной возврат.createPaymentAdjustment(String id, String payment_id, InvoicePaymentAdjustmentParams params) Создать поправку к платежу.explainRoute(String invoice_id, String payment_id) voidget(String id, EventRange range) getEvents(String id, EventRange range) getPayment(String id, String payment_id) getPaymentAdjustment(String id, String payment_id, String adjustment_id) getPaymentChargeback(String id, String payment_id, String chargeback_id) Найти чарджбэкgetPaymentRefund(String id, String payment_id, String refund_id) getPaymentRoutesLimitValues(String id, String payment_id) refundPayment(String id, String payment_id, InvoicePaymentRefundParams params) Сделать возврат платежа.registerPayment(String id, RegisterInvoicePaymentParams params) voidrejectChargeback(String id, String payment_id, String chargeback_id, InvoicePaymentChargebackRejectParams params) Отклонить чарджбэкvoidreopenChargeback(String id, String payment_id, String chargeback_id, InvoicePaymentChargebackReopenParams params) Открыть чарджбэк заново.voidrepair(String id, List<InvoiceChange> changes, ComplexAction action, InvoiceRepairParams params) voidrepairWithScenario(String id, InvoiceRepairScenario Scenario) voidstartPayment(String id, InvoicePaymentParams params)
-
Method Details
-
create
Invoice create(InvoiceParams params) throws InvalidRequest, PartyNotFound, ShopNotFound, InvalidPartyStatus, InvalidShopStatus, InvalidContractStatus, InvoiceTermsViolated, AllocationNotAllowed, AllocationExceededPaymentAmount, AllocationInvalidTransaction, org.apache.thrift.TException -
createWithTemplate
Invoice createWithTemplate(InvoiceWithTemplateParams params) throws InvalidRequest, InvalidPartyStatus, InvalidShopStatus, InvalidContractStatus, InvoiceTemplateNotFound, InvoiceTemplateRemoved, InvoiceTermsViolated, org.apache.thrift.TException - Throws:
InvalidRequestInvalidPartyStatusInvalidShopStatusInvalidContractStatusInvoiceTemplateNotFoundInvoiceTemplateRemovedInvoiceTermsViolatedorg.apache.thrift.TException
-
get
- Throws:
InvoiceNotFoundorg.apache.thrift.TException
-
getEvents
List<Event> getEvents(String id, EventRange range) throws InvoiceNotFound, EventNotFound, InvalidRequest, org.apache.thrift.TException - Throws:
InvoiceNotFoundEventNotFoundInvalidRequestorg.apache.thrift.TException
-
explainRoute
InvoicePaymentExplanation explainRoute(String invoice_id, String payment_id) throws InvoiceNotFound, InvoicePaymentNotFound, RouteNotChosen, org.apache.thrift.TException - Throws:
InvoiceNotFoundInvoicePaymentNotFoundRouteNotChosenorg.apache.thrift.TException
-
computeTerms
TermSet computeTerms(String id, PartyRevisionParam party_revision_param) throws InvoiceNotFound, org.apache.thrift.TException - Throws:
InvoiceNotFoundorg.apache.thrift.TException
-
startPayment
InvoicePayment startPayment(String id, InvoicePaymentParams params) throws InvoiceNotFound, InvalidInvoiceStatus, InvoicePaymentPending, InvalidRequest, InvalidPartyStatus, InvalidShopStatus, InvalidContractStatus, InvalidRecurrentParentPayment, OperationNotPermitted, org.apache.thrift.TException - Throws:
InvoiceNotFoundInvalidInvoiceStatusInvoicePaymentPendingInvalidRequestInvalidPartyStatusInvalidShopStatusInvalidContractStatusInvalidRecurrentParentPaymentOperationNotPermittedorg.apache.thrift.TException
-
registerPayment
InvoicePayment registerPayment(String id, RegisterInvoicePaymentParams params) throws InvoiceNotFound, InvalidInvoiceStatus, InvalidRequest, InvalidPartyStatus, InvalidShopStatus, InvalidContractStatus, InvalidRecurrentParentPayment, org.apache.thrift.TException - Throws:
InvoiceNotFoundInvalidInvoiceStatusInvalidRequestInvalidPartyStatusInvalidShopStatusInvalidContractStatusInvalidRecurrentParentPaymentorg.apache.thrift.TException
-
getPayment
InvoicePayment getPayment(String id, String payment_id) throws InvoiceNotFound, InvoicePaymentNotFound, org.apache.thrift.TException - Throws:
InvoiceNotFoundInvoicePaymentNotFoundorg.apache.thrift.TException
-
cancelPayment
void cancelPayment(String id, String payment_id, String reason) throws InvoiceNotFound, InvoicePaymentNotFound, InvalidPaymentStatus, InvalidRequest, OperationNotPermitted, InvalidPartyStatus, InvalidShopStatus, org.apache.thrift.TException - Throws:
InvoiceNotFoundInvoicePaymentNotFoundInvalidPaymentStatusInvalidRequestOperationNotPermittedInvalidPartyStatusInvalidShopStatusorg.apache.thrift.TException
-
capturePayment
void capturePayment(String id, String payment_id, InvoicePaymentCaptureParams params) throws InvoiceNotFound, InvoicePaymentNotFound, InvalidPaymentStatus, InvalidRequest, OperationNotPermitted, InvalidPartyStatus, InvalidShopStatus, InconsistentCaptureCurrency, AmountExceededCaptureBalance, AllocationNotAllowed, AllocationExceededPaymentAmount, AllocationInvalidTransaction, org.apache.thrift.TException - Throws:
InvoiceNotFoundInvoicePaymentNotFoundInvalidPaymentStatusInvalidRequestOperationNotPermittedInvalidPartyStatusInvalidShopStatusInconsistentCaptureCurrencyAmountExceededCaptureBalanceAllocationNotAllowedAllocationExceededPaymentAmountAllocationInvalidTransactionorg.apache.thrift.TException
-
capturePaymentNew
void capturePaymentNew(String id, String payment_id, InvoicePaymentCaptureParams params) throws InvoiceNotFound, InvoicePaymentNotFound, InvalidPaymentStatus, InvalidRequest, OperationNotPermitted, InvalidPartyStatus, InvalidShopStatus, InconsistentCaptureCurrency, AmountExceededCaptureBalance, AllocationNotAllowed, AllocationExceededPaymentAmount, AllocationInvalidTransaction, org.apache.thrift.TException - Throws:
InvoiceNotFoundInvoicePaymentNotFoundInvalidPaymentStatusInvalidRequestOperationNotPermittedInvalidPartyStatusInvalidShopStatusInconsistentCaptureCurrencyAmountExceededCaptureBalanceAllocationNotAllowedAllocationExceededPaymentAmountAllocationInvalidTransactionorg.apache.thrift.TException
-
createPaymentAdjustment
InvoicePaymentAdjustment createPaymentAdjustment(String id, String payment_id, InvoicePaymentAdjustmentParams params) throws InvoiceNotFound, InvoicePaymentNotFound, InvalidPaymentStatus, InvoicePaymentAdjustmentPending, InvalidPaymentTargetStatus, InvoicePaymentAlreadyHasStatus, InvalidRequest, org.apache.thrift.TException Создать поправку к платежу. После создания поправку необходимо либо подтвердить, если её эффекты соответствуют ожиданиям, либо отклонить в противном случае (по аналогии с заявками). Пока созданная поправка ни подтверждена, ни отклонена, другую поправку создать невозможно.- Parameters:
id-payment_id-params-- Throws:
InvoiceNotFoundInvoicePaymentNotFoundInvalidPaymentStatusInvoicePaymentAdjustmentPendingInvalidPaymentTargetStatusInvoicePaymentAlreadyHasStatusInvalidRequestorg.apache.thrift.TException
-
getPaymentAdjustment
InvoicePaymentAdjustment getPaymentAdjustment(String id, String payment_id, String adjustment_id) throws InvoiceNotFound, InvoicePaymentNotFound, InvoicePaymentAdjustmentNotFound, org.apache.thrift.TException - Throws:
InvoiceNotFoundInvoicePaymentNotFoundInvoicePaymentAdjustmentNotFoundorg.apache.thrift.TException
-
capturePaymentAdjustment
void capturePaymentAdjustment(String id, String payment_id, String adjustment_id) throws InvoiceNotFound, InvoicePaymentNotFound, InvoicePaymentAdjustmentNotFound, InvalidPaymentAdjustmentStatus, org.apache.thrift.TException - Throws:
InvoiceNotFoundInvoicePaymentNotFoundInvoicePaymentAdjustmentNotFoundInvalidPaymentAdjustmentStatusorg.apache.thrift.TException
-
cancelPaymentAdjustment
void cancelPaymentAdjustment(String id, String payment_id, String adjustment_id) throws InvoiceNotFound, InvoicePaymentNotFound, InvoicePaymentAdjustmentNotFound, InvalidPaymentAdjustmentStatus, org.apache.thrift.TException - Throws:
InvoiceNotFoundInvoicePaymentNotFoundInvoicePaymentAdjustmentNotFoundInvalidPaymentAdjustmentStatusorg.apache.thrift.TException
-
createChargeback
InvoicePaymentChargeback createChargeback(String id, String payment_id, InvoicePaymentChargebackParams params) throws InvoiceNotFound, InvoicePaymentNotFound, InvalidPaymentStatus, OperationNotPermitted, InsufficientAccountBalance, InvoicePaymentAmountExceeded, InconsistentChargebackCurrency, InvoicePaymentChargebackInvalidStatus, InvalidContractStatus, InvoicePaymentChargebackPending, org.apache.thrift.TException Создать чарджбэк- Parameters:
id-payment_id-params-- Throws:
InvoiceNotFoundInvoicePaymentNotFoundInvalidPaymentStatusOperationNotPermittedInsufficientAccountBalanceInvoicePaymentAmountExceededInconsistentChargebackCurrencyInvoicePaymentChargebackInvalidStatusInvalidContractStatusInvoicePaymentChargebackPendingorg.apache.thrift.TException
-
getPaymentChargeback
InvoicePaymentChargeback getPaymentChargeback(String id, String payment_id, String chargeback_id) throws InvoiceNotFound, InvoicePaymentNotFound, InvoicePaymentChargebackNotFound, org.apache.thrift.TException Найти чарджбэк- Parameters:
id-payment_id-chargeback_id-- Throws:
InvoiceNotFoundInvoicePaymentNotFoundInvoicePaymentChargebackNotFoundorg.apache.thrift.TException
-
acceptChargeback
void acceptChargeback(String id, String payment_id, String chargeback_id, InvoicePaymentChargebackAcceptParams params) throws InvoiceNotFound, InvoicePaymentNotFound, InvoicePaymentChargebackNotFound, OperationNotPermitted, InvoicePaymentAmountExceeded, InconsistentChargebackCurrency, InvoicePaymentChargebackInvalidStatus, InvalidContractStatus, org.apache.thrift.TException Принять чарджбэк- Parameters:
id-payment_id-chargeback_id-params-- Throws:
InvoiceNotFoundInvoicePaymentNotFoundInvoicePaymentChargebackNotFoundOperationNotPermittedInvoicePaymentAmountExceededInconsistentChargebackCurrencyInvoicePaymentChargebackInvalidStatusInvalidContractStatusorg.apache.thrift.TException
-
rejectChargeback
void rejectChargeback(String id, String payment_id, String chargeback_id, InvoicePaymentChargebackRejectParams params) throws InvoiceNotFound, InvoicePaymentNotFound, InvoicePaymentChargebackNotFound, OperationNotPermitted, InconsistentChargebackCurrency, InvoicePaymentChargebackInvalidStatus, InvalidContractStatus, org.apache.thrift.TException Отклонить чарджбэк- Parameters:
id-payment_id-chargeback_id-params-- Throws:
InvoiceNotFoundInvoicePaymentNotFoundInvoicePaymentChargebackNotFoundOperationNotPermittedInconsistentChargebackCurrencyInvoicePaymentChargebackInvalidStatusInvalidContractStatusorg.apache.thrift.TException
-
reopenChargeback
void reopenChargeback(String id, String payment_id, String chargeback_id, InvoicePaymentChargebackReopenParams params) throws InvoiceNotFound, InvoicePaymentNotFound, InvoicePaymentChargebackNotFound, OperationNotPermitted, InvoicePaymentAmountExceeded, InconsistentChargebackCurrency, InvoicePaymentChargebackInvalidStatus, InvalidContractStatus, InvoicePaymentChargebackCannotReopenAfterArbitration, InvoicePaymentChargebackInvalidStage, org.apache.thrift.TException Открыть чарджбэк заново. Переход возможен из отклонённого состояния, если покупатель не согласен с результатом и хочет его оспорить.- Parameters:
id-payment_id-chargeback_id-params-- Throws:
InvoiceNotFoundInvoicePaymentNotFoundInvoicePaymentChargebackNotFoundOperationNotPermittedInvoicePaymentAmountExceededInconsistentChargebackCurrencyInvoicePaymentChargebackInvalidStatusInvalidContractStatusInvoicePaymentChargebackCannotReopenAfterArbitrationInvoicePaymentChargebackInvalidStageorg.apache.thrift.TException
-
cancelChargeback
void cancelChargeback(String id, String payment_id, String chargeback_id, InvoicePaymentChargebackCancelParams params) throws InvoiceNotFound, InvoicePaymentNotFound, InvoicePaymentChargebackNotFound, InvoicePaymentChargebackInvalidStatus, InvoicePaymentChargebackInvalidStage, org.apache.thrift.TException Отмена чарджбэка. Комиссия с мерчанта не взимается.- Parameters:
id-payment_id-chargeback_id-params-- Throws:
InvoiceNotFoundInvoicePaymentNotFoundInvoicePaymentChargebackNotFoundInvoicePaymentChargebackInvalidStatusInvoicePaymentChargebackInvalidStageorg.apache.thrift.TException
-
refundPayment
InvoicePaymentRefund refundPayment(String id, String payment_id, InvoicePaymentRefundParams params) throws InvoiceNotFound, InvoicePaymentNotFound, InvalidPaymentStatus, OperationNotPermitted, InsufficientAccountBalance, InvalidRequest, InvoicePaymentAmountExceeded, InconsistentRefundCurrency, InvalidPartyStatus, InvalidShopStatus, InvalidContractStatus, InvoicePaymentChargebackPending, AllocationNotAllowed, AllocationExceededPaymentAmount, AllocationInvalidTransaction, AllocationNotFound, org.apache.thrift.TException Сделать возврат платежа.- Parameters:
id-payment_id-params-- Throws:
InvoiceNotFoundInvoicePaymentNotFoundInvalidPaymentStatusOperationNotPermittedInsufficientAccountBalanceInvalidRequestInvoicePaymentAmountExceededInconsistentRefundCurrencyInvalidPartyStatusInvalidShopStatusInvalidContractStatusInvoicePaymentChargebackPendingAllocationNotAllowedAllocationExceededPaymentAmountAllocationInvalidTransactionAllocationNotFoundorg.apache.thrift.TException
-
createManualRefund
InvoicePaymentRefund createManualRefund(String id, String payment_id, InvoicePaymentRefundParams params) throws InvoiceNotFound, InvoicePaymentNotFound, InvalidPaymentStatus, OperationNotPermitted, InsufficientAccountBalance, InvoicePaymentAmountExceeded, InconsistentRefundCurrency, InvalidPartyStatus, InvalidShopStatus, InvalidContractStatus, InvalidRequest, InvoicePaymentChargebackPending, AllocationNotAllowed, AllocationExceededPaymentAmount, AllocationInvalidTransaction, AllocationNotFound, org.apache.thrift.TException Сделать ручной возврат.- Parameters:
id-payment_id-params-- Throws:
InvoiceNotFoundInvoicePaymentNotFoundInvalidPaymentStatusOperationNotPermittedInsufficientAccountBalanceInvoicePaymentAmountExceededInconsistentRefundCurrencyInvalidPartyStatusInvalidShopStatusInvalidContractStatusInvalidRequestInvoicePaymentChargebackPendingAllocationNotAllowedAllocationExceededPaymentAmountAllocationInvalidTransactionAllocationNotFoundorg.apache.thrift.TException
-
getPaymentRefund
InvoicePaymentRefund getPaymentRefund(String id, String payment_id, String refund_id) throws InvoiceNotFound, InvoicePaymentNotFound, InvoicePaymentRefundNotFound, org.apache.thrift.TException - Throws:
InvoiceNotFoundInvoicePaymentNotFoundInvoicePaymentRefundNotFoundorg.apache.thrift.TException
-
fulfill
void fulfill(String id, String reason) throws InvoiceNotFound, InvalidInvoiceStatus, InvalidPartyStatus, InvalidShopStatus, InvalidContractStatus, org.apache.thrift.TException - Throws:
InvoiceNotFoundInvalidInvoiceStatusInvalidPartyStatusInvalidShopStatusInvalidContractStatusorg.apache.thrift.TException
-
rescind
void rescind(String id, String reason) throws InvoiceNotFound, InvalidInvoiceStatus, InvoicePaymentPending, InvalidPartyStatus, InvalidShopStatus, InvalidContractStatus, org.apache.thrift.TException - Throws:
InvoiceNotFoundInvalidInvoiceStatusInvoicePaymentPendingInvalidPartyStatusInvalidShopStatusInvalidContractStatusorg.apache.thrift.TException
-
repair
void repair(String id, List<InvoiceChange> changes, ComplexAction action, InvoiceRepairParams params) throws InvoiceNotFound, InvalidRequest, org.apache.thrift.TException - Throws:
InvoiceNotFoundInvalidRequestorg.apache.thrift.TException
-
repairWithScenario
void repairWithScenario(String id, InvoiceRepairScenario Scenario) throws InvoiceNotFound, InvalidRequest, org.apache.thrift.TException - Throws:
InvoiceNotFoundInvalidRequestorg.apache.thrift.TException
-
getPaymentRoutesLimitValues
Map<PaymentRoute,List<TurnoverLimitValue>> getPaymentRoutesLimitValues(String id, String payment_id) throws InvoiceNotFound, InvoicePaymentNotFound, InvalidRequest, org.apache.thrift.TException - Throws:
InvoiceNotFoundInvoicePaymentNotFoundInvalidRequestorg.apache.thrift.TException
-