This commit is contained in:
2022-05-31 09:30:19 +02:00
parent 9de85ee1ec
commit ccc96319a3
72 changed files with 11971 additions and 4 deletions

7
shopapis/buf.lock Normal file
View File

@@ -0,0 +1,7 @@
# Generated by buf. DO NOT EDIT.
version: v1
deps:
- remote: buf.build
owner: googleapis
repository: googleapis
commit: 68946673f2d94bb2b24e6e97a208b752

10
shopapis/buf.yaml Normal file
View File

@@ -0,0 +1,10 @@
version: v1
name: buf.build/acme/shopapis
deps:
- buf.build/googleapis/googleapis
lint:
use:
- DEFAULT
breaking:
use:
- FILE

View File

@@ -0,0 +1,37 @@
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);
}