// Copyright 2025 MOIA GmbH

syntax = "proto3";

package moia.type.v1;

option go_package = "./type";
option java_multiple_files = false;
option java_outer_classname = "MoneyV1";
option java_package = "io.moia.type.v1";

// Represents an amount of money with its currency type.
message Money {
  // The three-letter currency code defined in ISO 4217.
  // For example US dollars are expressed as "USD".
  string currency_code = 1;

  // The price amount in the currency's smallest unit as specified in ISO 4217.
  // For example US dollars are expressed in cents, like 515 for $5.15.
  // May be negative.
  int64 amount = 2;
}
