mirror of
https://github.com/valitydev/provider-disputes-proto.git
synced 2024-11-06 02:05:21 +00:00
31f31f246e
* Add internal merchant api * Add exception * Remove redundant fields
52 lines
1.1 KiB
Thrift
52 lines
1.1 KiB
Thrift
namespace java dev.vality.disputes
|
|
|
|
typedef string DisputeID
|
|
typedef string MIMEType
|
|
|
|
exception DisputeNotFound {}
|
|
|
|
service MerchantDisputesService {
|
|
|
|
DisputeCreatedResult CreateDispute (1: DisputeParams disputeParams)
|
|
|
|
DisputeStatusResult CheckDisputeStatus (1: DisputeContext disputeContext) throws (1: DisputeNotFound ex);
|
|
|
|
}
|
|
|
|
union DisputeCreatedResult {
|
|
1: DisputeCreatedSuccessResult successResult
|
|
}
|
|
|
|
struct DisputeCreatedSuccessResult {
|
|
1: required DisputeID disputeId
|
|
}
|
|
|
|
struct DisputeParams {
|
|
1: required string invoiceId
|
|
2: required string paymentId
|
|
3: required list<Attachment> attachments
|
|
}
|
|
|
|
struct Attachment {
|
|
1: required binary data
|
|
2: required MIMEType mimeType
|
|
}
|
|
|
|
union DisputeStatusResult {
|
|
1: DisputeStatusPendingResult statusPending
|
|
2: DisputeStatusSuccessResult statusSuccess
|
|
3: DisputeStatusFailResult statusFail
|
|
}
|
|
|
|
struct DisputeStatusSuccessResult {}
|
|
|
|
struct DisputeStatusPendingResult {}
|
|
|
|
struct DisputeStatusFailResult {
|
|
1: required string message
|
|
}
|
|
|
|
struct DisputeContext {
|
|
1: required DisputeID disputeId
|
|
}
|