syntax = "proto3";

package wix.payment.api.pay.v2;

option java_package = "com.wix.payment.api.pay.v2";

// item included in order
message OrderItem {
  // order item id (required)
  string id           = 1;
  // order item name (required)
  string name         = 2;
  // quantity (required)
  int32 quantity      = 3;
  // one item price, amount of this item is quantity * price (required). Only positive values.
  double price        = 4;
  // order item description
  string description  = 5;
  // weight of one item
  double weight_in_kg = 6;
  // whether the item is a physical good or a digital one
  OrderItemCategory category = 7;

  // The type of order item
  enum OrderItemCategory {
    UNDEFINED         = 0;
    // a physical good
    PHYSICAL          = 1;
    // a digital good
    DIGITAL           = 2;
  }
}
