Restbucks.Service.Mappers.PaymentRepresentationMapper.GetRepresentation C# (CSharp) 메소드

GetRepresentation() 공개 메소드

public GetRepresentation ( PaymentInformation paymentInformation ) : PaymentRepresentation
paymentInformation Restbucks.Service.Domain.PaymentInformation
리턴 Restbucks.Service.Representations.PaymentRepresentation
        public PaymentRepresentation GetRepresentation(PaymentInformation paymentInformation)
        {
            return new PaymentRepresentation()
                       {
                           Amount = paymentInformation.Amount,
                           CardholderName = paymentInformation.CardholderName,
                           CardNumber = paymentInformation.CardNumber,
                           ExpiryMonth = paymentInformation.ExpiryMonth,
                           ExpiryYear = paymentInformation.ExpiryYear
                       };
        }
PaymentRepresentationMapper