♻️ Refactored order handling

This commit is contained in:
2025-09-05 00:13:58 +08:00
parent 3ee04d0b24
commit ddd109c77c
22 changed files with 2414 additions and 61 deletions

View File

@@ -123,6 +123,7 @@ message CreateOrderRequest {
string amount = 3;
optional google.protobuf.Duration expiration = 4;
optional string app_identifier = 5;
optional string product_identifier = 8;
// Using bytes for meta to represent JSON.
optional bytes meta = 6;
bool reuseable = 7;
@@ -135,6 +136,7 @@ message Order {
string amount = 4;
google.protobuf.Timestamp expired_at = 5;
optional string app_identifier = 6;
optional string product_identifier = 12;
// Using bytes for meta to represent JSON.
optional bytes meta = 7;
OrderStatus status = 8;