public CardPaymentDetailsDto(CardPaymentDetails payment) { Cardholder = new CardholderDto(payment.Cardholder); CreditCard = new CreditCardDto(payment.CreditCard); Currency = payment.Currency.ToString(); Description = payment.Description; GeneratePaymentToken = payment.GeneratePaymentToken; GenerateRecurrenceToken = payment.GenerateRecurrenceToken; Intent = payment.Intent.ToString(); Language = payment.Language.ToString(); Operation = payment.Operation.Value; PayeeInfo = new PayeeInfoResponseDto(payment.PayeeInfo); PayerReference = payment.PayerReference; PaymentToken = payment.PaymentToken; RiskIndicator = new RiskIndicatorDto(payment.RiskIndicator); Urls = new UrlsDto(payment.Urls); UserAgent = payment.UserAgent; if (payment.Metadata != null) { Metadata = new MetadataDto(payment.Metadata); } Prices = new List <PriceDto>(); foreach (var item in payment.Prices) { Prices.Add(new PriceDto(item)); } }
public PayeeInfoResponse(PayeeInfoResponseDto dto) : base(dto.Id) { OrderReference = dto.OrderReference; PayeeId = dto.PayeeId; PayeeName = dto.PayeeName; PayeeReference = dto.PayeeReference; ProductCategory = dto.ProductCategory; Subsite = dto.Subsite; }
public TrustlyPaymentDetailsDto(TrustlyPaymentDetails payment) { Currency = payment.Currency.ToString(); Description = payment.Description; Intent = payment.Intent.ToString(); Language = payment.Language.ToString(); Operation = payment.Operation.Value; PayeeInfo = new PayeeInfoResponseDto(payment.PayeeInfo); PayerReference = payment.PayerReference; Prices = new List <PriceDto>(); foreach (var item in payment.Prices) { Prices.Add(new PriceDto(item)); } Urls = new UrlsDto(payment.Urls); UserAgent = payment.UserAgent; PrefillInfo = new TrustlyPrefillInfoDto(payment.PrefillInfo); }
public CardPaymentVerifyRequestDetailsDto(CardPaymentVerifyRequestDetails payment) { Operation = payment.Operation.Value; Intent = payment.Intent.ToString(); RecurrenceToken = payment.RecurrenceToken; Currency = payment.Currency.ToString(); Amount = payment.Amount.InLowestMonetaryUnit; VatAmount = payment.VatAmount.InLowestMonetaryUnit; Description = payment.Description; UserAgent = payment.UserAgent; Language = payment.Language.ToString(); Urls = new UrlsDto(payment.Urls); PayeeInfo = new PayeeInfoResponseDto(payment.PayeeInfo); if (payment.Metadata != null) { Metadata = new MetadataDto(payment.Metadata); } }
public VippsPaymentRequestDetailsDto(VippsPaymentRequestDetails payment) { Currency = payment.Currency.ToString(); Description = payment.Description; GeneratePaymentToken = payment.GeneratePaymentToken; GenerateRecurrenceToken = payment.GenerateRecurrenceToken; Intent = payment.Intent.ToString(); Language = payment.Language.ToString(); Operation = payment.Operation.Value; PayeeInfo = new PayeeInfoResponseDto(payment.PayeeInfo); PayerReference = payment.PayerReference; PaymentToken = payment.PaymentToken; Prices = new List <PriceDto>(); foreach (var item in payment.Prices) { Prices.Add(new PriceDto(item)); } Urls = new UrlsDto(payment.Urls); UserAgent = payment.UserAgent; Metadata = payment.Metadata; }
public InvoicePaymentAuthorizationTransactionDto(IPaymentRequestDetails transaction) { Currency = transaction.Currency.ToString(); Description = transaction.Description; GeneratePaymentToken = transaction.GeneratePaymentToken; GenerateRecurrenceToken = transaction.GenerateRecurrenceToken; Intent = transaction.Intent.ToString(); Language = transaction.Language.ToString(); Operation = transaction.Operation.Value; PayeeInfo = new PayeeInfoResponseDto(transaction.PayeeInfo); PayerReference = transaction.PayerReference; PaymentToken = transaction.PaymentToken; PrefillInfo = new PrefillInfoDto(transaction.PrefillInfo); Prices = new List <PriceDto>(); foreach (var item in transaction.Prices) { Prices.Add(new PriceDto(item)); } Urls = new UrlsDto(transaction.Urls); UserAgent = transaction.UserAgent; }
public PaymentOrderRequestDetailsDto(PaymentOrderRequestDetails paymentOrder) { Amount = paymentOrder.Amount.InLowestMonetaryUnit; Currency = paymentOrder.Currency.ToString(); Description = paymentOrder.Description; GenerateRecurrenceToken = paymentOrder.GenerateRecurrenceToken; Language = paymentOrder.Language.ToString(); Operation = paymentOrder.Operation.Value; PayeeInfo = new PayeeInfoResponseDto(paymentOrder.PayeeInfo); Payer = new PayerDto(paymentOrder.Payer); RiskIndicator = new RiskIndicatorDto(paymentOrder.RiskIndicator); Urls = new UrlsDto(paymentOrder.Urls); UserAgent = paymentOrder.UserAgent; VatAmount = paymentOrder.VatAmount.InLowestMonetaryUnit; DisablePaymentMenu = paymentOrder.DisablePaymentMenu; if (paymentOrder.Metadata != null) { Metadata = new MetadataDto(paymentOrder.Metadata); } if (paymentOrder.Items != null) { Items = new List <ItemDto>(); foreach (var item in paymentOrder.Items) { Items.Add(new ItemDto(item)); } } if (paymentOrder.OrderItems != null) { OrderItems = new List <OrderItemDto>(); foreach (var item in paymentOrder.OrderItems) { OrderItems.Add(new OrderItemDto(item)); } } }
public SwishPaymentRequestDetailsDto(SwishPaymentRequestDetails payment) { Currency = payment.Currency.ToString(); Description = payment.Description; Intent = payment.Intent.ToString(); Language = payment.Language.ToString(); Operation = payment.Operation.Value; PayeeInfo = new PayeeInfoResponseDto(payment.PayeeInfo); PayerReference = payment.PayerReference; PrefillInfo = new PrefillInfoDto(payment.PrefillInfo); Prices = new List <PriceDto>(); foreach (var item in payment.Prices) { Prices.Add(new PriceDto(item)); } Swish = new SwishPaymentOptionsDto(payment.Swish); Urls = new UrlsDto(payment.Urls); UserAgent = payment.UserAgent; if (payment.Metadata != null) { Metadata = new MetadataDto(payment.Metadata); } }