diff --git a/DysonNetwork.Shared/Models/Subscription.cs b/DysonNetwork.Shared/Models/Subscription.cs index 75aa0703..ee54d53e 100644 --- a/DysonNetwork.Shared/Models/Subscription.cs +++ b/DysonNetwork.Shared/Models/Subscription.cs @@ -533,11 +533,20 @@ public class SnPaymentDetails public string Currency { get; set; } = null!; public string? OrderId { get; set; } - public Proto.PaymentDetails ToProtoValue() => new() + public Proto.PaymentDetails ToProtoValue() { - Currency = Currency, - OrderId = OrderId, - }; + var proto = new Proto.PaymentDetails + { + Currency = Currency + }; + + if (OrderId != null) + { + proto.OrderId = OrderId; + } + + return proto; + } public static SnPaymentDetails FromProtoValue(Proto.PaymentDetails proto) => new() {