pb: breaking change to currencyservice protos
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
dfb0ae215f
commit
22f6fccaf7
1 changed files with 2 additions and 6 deletions
|
@ -119,7 +119,7 @@ message Address {
|
||||||
|
|
||||||
service CurrencyService {
|
service CurrencyService {
|
||||||
rpc GetSupportedCurrencies(Empty) returns (GetSupportedCurrenciesResponse) {}
|
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;
|
repeated string currency_codes = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ConversionRequest {
|
message CurrencyConversionRequest {
|
||||||
Money from = 1;
|
Money from = 1;
|
||||||
|
|
||||||
// The 3-letter currency code defined in ISO 4217.
|
// The 3-letter currency code defined in ISO 4217.
|
||||||
string to_code = 2;
|
string to_code = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ConversionResponse {
|
|
||||||
Money result = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
// -------------Payment service-----------------
|
// -------------Payment service-----------------
|
||||||
|
|
||||||
service PaymentService {
|
service PaymentService {
|
||||||
|
|
Loading…
Reference in a new issue