71 lines
1.3 KiB
Protocol Buffer
71 lines
1.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
package messages;
|
|
option go_package = ".;messages";
|
|
|
|
message AddRequest {
|
|
int32 Quantity = 1;
|
|
string Sku = 2;
|
|
}
|
|
|
|
message AddItem {
|
|
int32 Quantity = 2;
|
|
int64 Price = 3;
|
|
int64 OrgPrice = 9;
|
|
string Sku = 4;
|
|
string Name = 5;
|
|
string Image = 6;
|
|
int32 Stock = 7;
|
|
int32 Tax = 8;
|
|
string Disclaimer = 10;
|
|
string ArticleType = 11;
|
|
optional string Outlet = 12;
|
|
}
|
|
|
|
message RemoveItem {
|
|
int64 Id = 1;
|
|
}
|
|
|
|
message ChangeQuantity {
|
|
int64 Id = 1;
|
|
int32 Quantity = 2;
|
|
}
|
|
|
|
message SetDelivery {
|
|
string Provider = 1;
|
|
repeated int64 Items = 2;
|
|
optional PickupPoint PickupPoint = 3;
|
|
string Country = 4;
|
|
string Zip = 5;
|
|
optional string Address = 6;
|
|
optional string City = 7;
|
|
}
|
|
|
|
message SetPickupPoint {
|
|
int64 DeliveryId = 1;
|
|
string Id = 2;
|
|
optional string Name = 3;
|
|
optional string Address = 4;
|
|
optional string City = 5;
|
|
optional string Zip = 6;
|
|
optional string Country = 7;
|
|
}
|
|
|
|
message PickupPoint {
|
|
string Id = 1;
|
|
optional string Name = 2;
|
|
optional string Address = 3;
|
|
optional string City = 4;
|
|
optional string Zip = 5;
|
|
optional string Country = 6;
|
|
}
|
|
|
|
message RemoveDelivery {
|
|
int64 Id = 1;
|
|
}
|
|
|
|
message CreateCheckoutOrder {
|
|
string Terms = 1;
|
|
string Checkout = 2;
|
|
string Confirmation = 3;
|
|
string Push = 4;
|
|
} |