provider-disputes-proto/proto/admin_management.thrift

126 lines
2.8 KiB
Thrift
Raw Normal View History

namespace java dev.vality.disputes.admin
include "proto/domain.thrift"
2024-10-31 14:53:16 +00:00
typedef string ID
typedef string DisputeID
2024-10-25 05:29:22 +00:00
service AdminManagementService {
2024-09-19 10:31:25 +00:00
void CancelPending (1: CancelParamsRequest cancelParamsRequest)
2024-09-19 10:31:25 +00:00
void ApprovePending (1: ApproveParamsRequest approveParamsRequest)
void BindCreated (1: BindParamsRequest bindParamsRequest)
2024-09-19 13:53:09 +00:00
DisputeResult GetDisputes (1: DisputeParamsRequest disputeParamsRequest)
2024-09-19 11:46:37 +00:00
}
2024-10-25 05:29:22 +00:00
service AdminCallbackService {
void Notify (1: NotificationParamsRequest notificationParamsRequest)
}
struct CancelParamsRequest {
1: required list<CancelParams> cancelParams
}
struct ApproveParamsRequest {
1: required list<ApproveParams> approveParams
}
struct BindParamsRequest {
1: required list<BindParams> bindParams
}
2024-09-19 11:46:37 +00:00
struct DisputeParamsRequest {
1: required list<DisputeParams> disputeParams
2: required bool withAttachments
}
struct DisputeResult {
1: required list<Dispute> disputes
}
struct CancelParams {
2024-08-30 08:21:54 +00:00
1: required DisputeID disputeId
2: optional string cancelReason
2024-10-26 04:54:18 +00:00
3: optional string mapping
}
struct ApproveParams {
2024-08-30 08:21:54 +00:00
1: required DisputeID disputeId
2: required bool skipCallHgForCreateAdjustment
3: optional domain.Amount changedAmount
}
struct BindParams {
2024-08-30 08:21:54 +00:00
1: required DisputeID disputeId
2: required ID providerDisputeId
}
2024-09-19 11:46:37 +00:00
struct DisputeParams {
1: required DisputeID disputeId
}
struct Dispute {
1: required DisputeID disputeId
2: optional string providerDisputeId
3: required string invoiceId
4: required string paymentId
5: required string providerTrxId
6: required string status
7: optional string errorMessage
8: required string amount
9: optional string changedAmount
10: required bool skipCallHgForCreateAdjustment
11: optional list<Attachment> attachments
2024-10-26 04:54:18 +00:00
12: optional string mapping
2024-09-19 11:46:37 +00:00
}
struct Attachment {
1: required binary data
}
2024-10-25 05:29:22 +00:00
struct NotificationParamsRequest {
1: required list<Notification> notifications
}
union Notification {
1: DisputeAlreadyCreated disputeAlreadyCreated
2: DisputePoolingExpired disputePoolingExpired
3: DisputeReadyForCreateAdjustment disputeReadyForCreateAdjustment
4: DisputeFailedReviewRequired disputeFailedReviewRequired
2024-10-31 14:53:16 +00:00
5: DisputeManualCreated disputeManualCreated
6: DisputeManualPending disputeManualPending
2024-10-25 05:29:22 +00:00
}
struct DisputeAlreadyCreated {
1: required DisputeID id
}
struct DisputePoolingExpired {
1: required DisputeID id
}
struct DisputeReadyForCreateAdjustment {
1: required DisputeID id
}
struct DisputeFailedReviewRequired {
1: required DisputeID id
2: required string errorCode
3: optional string errorDescription
}
2024-10-31 14:53:16 +00:00
struct DisputeManualPending {
1: required DisputeID id
2: optional string errorMessage
}
struct DisputeManualCreated {
1: required DisputeID id
2: optional string errorMessage
}