Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (19 sloc) 402 Bytes
syntax = "proto3";
import "pb/money/money.gen.proto";
package pb.money;
option go_package = "pbmoney";
message Currency {
string name = 1;
CurrencyCode code = 2;
uint32 numeric_code = 3;
uint32 minor_unit = 4;
}
message Money {
CurrencyCode currency_code = 1;
int64 value_micros = 2;
}
message ExchangeRate {
CurrencyCode from = 1;
CurrencyCode to = 2;
int64 value_micros = 3;
}