add notify module (#7)

This commit is contained in:
Anatolii Karlov 2024-10-25 12:29:22 +07:00 committed by GitHub
parent 37a5ad105e
commit 3c7e04e434
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}