Exemplo n.º 1
0
        protected virtual void FillRefundItemOrderId(RefundItem item)
        {
            if (!Guid.TryParse(item.GetProperty <string>("OrderId"), out var orderId))
            {
                throw new OrderIdNotFoundException();
            }

            item.SetOrderId(orderId);
        }
Exemplo n.º 2
0
        protected virtual void FillRefundItemOrderId(RefundItem item)
        {
            var orderId = item.GetProperty <Guid?>(nameof(RefundItem.OrderId));

            if (orderId is null)
            {
                throw new OrderIdNotFoundException();
            }

            item.SetOrderId(orderId.Value);
        }