mirror of
https://github.com/valitydev/provider-disputes-proto.git
synced 2024-11-06 02:05:21 +00:00
refactor ManualParsingService, add ProviderDisputesCallbackService
This commit is contained in:
parent
55b451db21
commit
be95a94217
44
proto/manual_parsing.thrift
Normal file
44
proto/manual_parsing.thrift
Normal file
@ -0,0 +1,44 @@
|
||||
namespace java dev.vality.disputes.admin
|
||||
include "proto/domain.thrift"
|
||||
include "provider_disputes.thrift"
|
||||
|
||||
typedef provider_disputes.ID ID
|
||||
typedef string DisputeID
|
||||
|
||||
service ManualParsingService {
|
||||
|
||||
void CancelPending (1: CancelParamsRequest CancelParamsRequest)
|
||||
|
||||
void ApprovePending (1: ApproveParamsRequest ApproveParamsRequest)
|
||||
|
||||
void BindCreated (1: BindParamsRequest bindParamsRequest)
|
||||
|
||||
}
|
||||
|
||||
struct CancelParamsRequest {
|
||||
1: required list<CancelParams> cancelParams
|
||||
}
|
||||
|
||||
struct ApproveParamsRequest {
|
||||
1: required list<ApproveParams> approveParams
|
||||
}
|
||||
|
||||
struct BindParamsRequest {
|
||||
1: required list<BindParams> bindParams
|
||||
}
|
||||
|
||||
struct CancelParams {
|
||||
1: required DisputeID disputeID
|
||||
2: optional string cancelReason
|
||||
}
|
||||
|
||||
struct ApproveParams {
|
||||
1: required DisputeID disputeID
|
||||
2: required bool skipCallHgForCreateAdjustment
|
||||
3: optional domain.Amount changedAmount
|
||||
}
|
||||
|
||||
struct BindParams {
|
||||
1: required DisputeID disputeID
|
||||
2: required ID providerDisputeId
|
||||
}
|
@ -2,6 +2,7 @@ namespace java dev.vality.disputes
|
||||
include "proto/domain.thrift"
|
||||
|
||||
typedef string ID
|
||||
typedef string ProviderDisputeID
|
||||
typedef string MIMEType
|
||||
|
||||
service ProviderDisputesService {
|
||||
@ -12,16 +13,6 @@ service ProviderDisputesService {
|
||||
|
||||
}
|
||||
|
||||
service ManualParsingService {
|
||||
|
||||
void CancelPending (1: ID disputeId, 2: string cancelReason)
|
||||
|
||||
void ApprovePending (1: ID disputeId, 2: domain.Amount changedAmount)
|
||||
|
||||
void BindCreated (1: ID disputeId, 2: ID providerDisputeId)
|
||||
|
||||
}
|
||||
|
||||
struct DisputeParams {
|
||||
1: required TransactionContext transactionContext
|
||||
2: required list<Attachment> attachments
|
||||
@ -35,7 +26,7 @@ union DisputeCreatedResult {
|
||||
}
|
||||
|
||||
struct DisputeContext {
|
||||
1: required ID disputeId
|
||||
1: required ProviderDisputeID providerDisputeId
|
||||
2: required domain.Currency currency
|
||||
3: required domain.ProxyOptions terminalOptions
|
||||
}
|
||||
@ -59,7 +50,7 @@ struct Attachment {
|
||||
}
|
||||
|
||||
struct DisputeCreatedSuccessResult {
|
||||
1: required ID disputeId
|
||||
1: required ProviderDisputeID providerDisputeId
|
||||
}
|
||||
|
||||
struct DisputeCreatedFailResult {
|
20
proto/provider_disputes_callback.thrift
Normal file
20
proto/provider_disputes_callback.thrift
Normal file
@ -0,0 +1,20 @@
|
||||
namespace java dev.vality.disputes.callback
|
||||
include "proto/domain.thrift"
|
||||
include "provider_disputes.thrift"
|
||||
|
||||
typedef provider_disputes.ID ID
|
||||
typedef provider_disputes.ProviderDisputeID ProviderDisputeID
|
||||
typedef provider_disputes.TransactionContext TransactionContext
|
||||
typedef provider_disputes.DisputeStatusResult DisputeStatusResult
|
||||
|
||||
service ProviderDisputesCallbackService {
|
||||
|
||||
void ChangeStatus (1: DisputeCallbackParams disputeCallbackParams)
|
||||
|
||||
}
|
||||
|
||||
struct DisputeCallbackParams {
|
||||
1: required TransactionContext transactionContext
|
||||
2: required ProviderDisputeID providerDisputeID
|
||||
3: required DisputeStatusResult disputeStatusResult
|
||||
}
|
Loading…
Reference in New Issue
Block a user