🐛 Trying to fix unable create order from rpc
This commit is contained in:
@@ -73,7 +73,7 @@ public class Order : ModelBase
|
|||||||
Amount = decimal.Parse(proto.Amount),
|
Amount = decimal.Parse(proto.Amount),
|
||||||
ExpiredAt = proto.ExpiredAt.ToInstant(),
|
ExpiredAt = proto.ExpiredAt.ToInstant(),
|
||||||
PayeeWalletId = proto.HasPayeeWalletId ? Guid.Parse(proto.PayeeWalletId) : null,
|
PayeeWalletId = proto.HasPayeeWalletId ? Guid.Parse(proto.PayeeWalletId) : null,
|
||||||
TransactionId = proto.HasTransactionId ? Guid.Parse(proto.TransactionId) : null,
|
TransactionId = proto.TransactionId is not null ? Guid.Parse(proto.TransactionId) : null,
|
||||||
Transaction = proto.Transaction is not null ? Transaction.FromProtoValue(proto.Transaction) : null,
|
Transaction = proto.Transaction is not null ? Transaction.FromProtoValue(proto.Transaction) : null,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -133,17 +133,17 @@ message CreateOrderRequest {
|
|||||||
message Order {
|
message Order {
|
||||||
string id = 1;
|
string id = 1;
|
||||||
optional string payee_wallet_id = 2;
|
optional string payee_wallet_id = 2;
|
||||||
string currency = 3;
|
google.protobuf.StringValue currency = 3;
|
||||||
string amount = 4;
|
string amount = 4;
|
||||||
google.protobuf.Timestamp expired_at = 5;
|
google.protobuf.Timestamp expired_at = 5;
|
||||||
optional string app_identifier = 6;
|
google.protobuf.StringValue app_identifier = 6;
|
||||||
optional string product_identifier = 12;
|
google.protobuf.StringValue product_identifier = 12;
|
||||||
// Using bytes for meta to represent JSON.
|
// Using bytes for meta to represent JSON.
|
||||||
optional bytes meta = 7;
|
optional bytes meta = 7;
|
||||||
OrderStatus status = 8;
|
OrderStatus status = 8;
|
||||||
optional string transaction_id = 9;
|
google.protobuf.StringValue transaction_id = 9;
|
||||||
optional Transaction transaction = 10;
|
optional Transaction transaction = 10;
|
||||||
optional string remarks = 11;
|
google.protobuf.StringValue remarks = 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
enum OrderStatus {
|
enum OrderStatus {
|
||||||
|
Reference in New Issue
Block a user