update propertynames
All checks were successful
Build and Publish / Metadata (push) Successful in 4s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 49s
Build and Publish / BuildAndDeployArm64 (push) Successful in 3m56s

This commit is contained in:
matst80
2025-10-10 14:43:51 +00:00
parent 30c89a0394
commit 09a68db8d5
4 changed files with 136 additions and 124 deletions

View File

@@ -109,33 +109,32 @@ message OrderCompletedRequest {
OrderCreated payload = 10;
}
// -----------------------------------------------------------------------------
// Cart state snapshot (unchanged from v1 except envelope removal context)
// -----------------------------------------------------------------------------
// Excerpt: updated messages for camelCase JSON output
message CartState {
string cart_id = 1;
string id = 1; // was cart_id
repeated CartItemState items = 2;
int64 total_price = 3;
int64 total_tax = 4;
int64 total_discount = 5;
int64 totalPrice = 3; // was total_price
int64 totalTax = 4; // was total_tax
int64 totalDiscount = 5; // was total_discount
repeated DeliveryState deliveries = 6;
bool payment_in_progress = 7;
string order_reference = 8;
string payment_status = 9;
bool paymentInProgress = 7; // was payment_in_progress
string orderReference = 8; // was order_reference
string paymentStatus = 9; // was payment_status
bool processing = 10; // NEW (mirrors legacy CartGrain.processing)
}
message CartItemState {
int64 id = 1;
int64 source_item_id = 2;
int64 itemId = 2; // was source_item_id
string sku = 3;
string name = 4;
int64 unit_price = 5;
int32 quantity = 6;
int64 total_price = 7;
int64 total_tax = 8;
int64 org_price = 9;
int32 tax_rate = 10;
int64 total_discount = 11;
int64 price = 5; // was unit_price
int32 qty = 6; // was quantity
int64 totalPrice = 7; // was total_price
int64 totalTax = 8; // was total_tax
int64 orgPrice = 9; // was org_price
int32 taxRate = 10; // was tax_rate
int64 totalDiscount = 11;
string brand = 12;
string category = 13;
string category2 = 14;
@@ -143,12 +142,12 @@ message CartItemState {
string category4 = 16;
string category5 = 17;
string image = 18;
string article_type = 19;
string seller_id = 20;
string seller_name = 21;
string type = 19; // was article_type
string sellerId = 20; // was seller_id
string sellerName = 21; // was seller_name
string disclaimer = 22;
string outlet = 23;
string store_id = 24;
string storeId = 24; // was store_id
int32 stock = 25;
}
@@ -156,8 +155,8 @@ message DeliveryState {
int64 id = 1;
string provider = 2;
int64 price = 3;
repeated int64 item_ids = 4;
PickupPoint pickup_point = 5; // Defined in messages.proto
repeated int64 items = 4; // was item_ids
PickupPoint pickupPoint = 5; // was pickup_point
}
// (CheckoutRequest / CheckoutReply removed - checkout handled at HTTP layer)