mirror of
https://github.com/valitydev/provider-disputes-proto.git
synced 2024-11-06 10:15:18 +00:00
add notify module (#7)
This commit is contained in:
parent
37a5ad105e
commit
3c7e04e434
@ -5,7 +5,7 @@ include "provider_disputes.thrift"
|
|||||||
typedef provider_disputes.ID ID
|
typedef provider_disputes.ID ID
|
||||||
typedef string DisputeID
|
typedef string DisputeID
|
||||||
|
|
||||||
service ManualParsingService {
|
service AdminManagementService {
|
||||||
|
|
||||||
void CancelPending (1: CancelParamsRequest cancelParamsRequest)
|
void CancelPending (1: CancelParamsRequest cancelParamsRequest)
|
||||||
|
|
||||||
@ -17,6 +17,12 @@ service ManualParsingService {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
service AdminCallbackService {
|
||||||
|
|
||||||
|
void Notify (1: NotificationParamsRequest notificationParamsRequest)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
struct CancelParamsRequest {
|
struct CancelParamsRequest {
|
||||||
1: required list<CancelParams> cancelParams
|
1: required list<CancelParams> cancelParams
|
||||||
}
|
}
|
||||||
@ -75,3 +81,32 @@ struct Dispute {
|
|||||||
struct Attachment {
|
struct Attachment {
|
||||||
1: required binary data
|
1: required binary data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct NotificationParamsRequest {
|
||||||
|
1: required list<Notification> notifications
|
||||||
|
}
|
||||||
|
|
||||||
|
union Notification {
|
||||||
|
1: DisputeAlreadyCreated disputeAlreadyCreated
|
||||||
|
2: DisputePoolingExpired disputePoolingExpired
|
||||||
|
3: DisputeReadyForCreateAdjustment disputeReadyForCreateAdjustment
|
||||||
|
4: DisputeFailedReviewRequired disputeFailedReviewRequired
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user