From bcfcd0551c29ee671b4ba84d2a1f9dee00fb06bd Mon Sep 17 00:00:00 2001 From: Anatoly Karlov Date: Mon, 19 Aug 2024 13:40:23 +0700 Subject: [PATCH] use binary for source files --- proto/provider-disputes.thrift | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/proto/provider-disputes.thrift b/proto/provider-disputes.thrift index f47c807..bc90bca 100644 --- a/proto/provider-disputes.thrift +++ b/proto/provider-disputes.thrift @@ -42,8 +42,10 @@ struct TransactionContext { 4: optional ID paymentId } -union Attachment { - 1: Base64EncodedAttachment base64EncodedAttachment +struct Attachment { + 1: required binary source + 2: optional MIMEType mimeType + 3: optional string name } struct DisputeCreatedSuccessResult { @@ -66,12 +68,6 @@ struct DisputeStatusFailResult { struct Amount { 1: required domain.Amount value - 2: required i16 exponent - 3: optional string currencyName -} - -struct Base64EncodedAttachment { - 1: required string base64EncodedSource - 2: optional MIMEType mimeType - 3: optional string name +// ISO 4217 + 3: optional string currency }