2024-10-08 12:55:41 +00:00
|
|
|
namespace java dev.vality.disputes.merchant
|
2024-10-08 11:13:21 +00:00
|
|
|
|
|
|
|
typedef string DisputeID
|
|
|
|
typedef string MIMEType
|
2024-11-02 16:32:13 +00:00
|
|
|
typedef string ID
|
2024-10-08 11:13:21 +00:00
|
|
|
|
|
|
|
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 {
|
2024-11-02 16:32:13 +00:00
|
|
|
1: required ID invoiceId
|
|
|
|
2: required ID paymentId
|
2024-10-08 11:13:21 +00:00
|
|
|
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 {
|
2024-10-26 04:54:18 +00:00
|
|
|
1: required string mapping
|
2024-10-08 11:13:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
struct DisputeContext {
|
|
|
|
1: required DisputeID disputeId
|
|
|
|
}
|