syntax = "proto3";

package wix.payment.api.pay.v2;

import "google/protobuf/wrappers.proto";

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

// Describing additional info about the buyer like id and language. These data are optional and can be provided later on
// using [UpdateBuyerInfo][1] method.
//
//  [1]: .wix.payment.api.pay.v2.-order-service.-update-buyer-info
message OrderBuyerInfo {
  // Buyer id in the third party system to identify order owner.
  string buyer_id                         = 1;
  // Language which cashier should try to use for the user - ISO 639-1 two-letter or ISO 639-2 three-letter code.
  string buyer_language                   = 2;
  // id of Contact associated with Buyer
  google.protobuf.StringValue contact_id  = 3;
}

message BuyerLocale {
  // Language which cashier should try to use for the user - ISO 639-1 two-letter or ISO 639-2 three-letter code.
  string buyer_language                   = 2;
}
