Files
protobuf/shopapis/shop/v1/shop.proto
2022-05-31 09:30:19 +02:00

38 lines
907 B
Protocol Buffer

syntax = "proto3";
package shop.v1;
option go_package = "git.deineagentur.com/payment-backoffice/protobuf/gen/proto/shop";
import "google/type/money.proto";
import "google/type/datetime.proto";
// PaymentProvider represents the supported set
// of payment providers.
enum ShopType {
SHOP_TYPE_UNSPECIFIED = 0;
SHOP_TYPE_DIGITAL = 1;
SHOP_TYPE_RETAIL = 2;
}
// Order represents a monetary order.
message Shop {
optional string shop_id = 1;
string shop_name = 2;
ShopType shop_type = 3;
string shop_url_www = 4;
string shop_url_logo = 5;
string shop_url_api = 6;
string shop_currency = 7;
string shop_prefix_order = 8;
string shop_prefix_invoice = 9;
string shop_prefix_offer = 10;
}
service ShopService {
rpc List(Shop) returns (Shop);
rpc Add(Shop) returns (Shop);
rpc Update(Shop) returns (Shop);
rpc Delete(Shop) returns (Shop);
}