✨ Award post
This commit is contained in:
@@ -27,6 +27,7 @@ public class PaymentService(
|
||||
Duration? expiration = null,
|
||||
string? appIdentifier = null,
|
||||
string? productIdentifier = null,
|
||||
string? remarks = null,
|
||||
Dictionary<string, object>? meta = null,
|
||||
bool reuseable = true
|
||||
)
|
||||
@@ -65,6 +66,7 @@ public class PaymentService(
|
||||
ExpiredAt = SystemClock.Instance.GetCurrentInstant().Plus(expiration ?? Duration.FromHours(24)),
|
||||
AppIdentifier = appIdentifier,
|
||||
ProductIdentifier = productIdentifier,
|
||||
Remarks = remarks,
|
||||
Meta = meta
|
||||
};
|
||||
|
||||
|
@@ -15,6 +15,7 @@ public class PaymentServiceGrpc(PaymentService paymentService) : Shared.Proto.Pa
|
||||
request.Expiration is not null ? Duration.FromSeconds(request.Expiration.Seconds) : null,
|
||||
request.HasAppIdentifier ? request.AppIdentifier : Order.InternalAppIdentifier,
|
||||
request.HasProductIdentifier ? request.ProductIdentifier : null,
|
||||
request.HasRemarks ? request.Remarks : null,
|
||||
request.HasMeta
|
||||
? GrpcTypeHelper.ConvertByteStringToObject<Dictionary<string, object>>(request.Meta)
|
||||
: null,
|
||||
|
Reference in New Issue
Block a user