pb: breaking change to currencyservice protos

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-06-20 16:58:26 -07:00
parent dfb0ae215f
commit 22f6fccaf7

View file

@ -119,7 +119,7 @@ message Address {
service CurrencyService {
rpc GetSupportedCurrencies(Empty) returns (GetSupportedCurrenciesResponse) {}
rpc Convert(ConversionRequest) returns (ConversionResponse) {}
rpc Convert(CurrencyConversionRequest) returns (Money) {}
}
@ -141,17 +141,13 @@ message GetSupportedCurrenciesResponse {
repeated string currency_codes = 1;
}
message ConversionRequest {
message CurrencyConversionRequest {
Money from = 1;
// The 3-letter currency code defined in ISO 4217.
string to_code = 2;
}
message ConversionResponse {
Money result = 1;
}
// -------------Payment service-----------------
service PaymentService {