private AmazonPayData GetDetails(RefundResponse response) { var data = new AmazonPayData(); data.MessageType = "GetRefundDetails"; data.MessageId = response.GetRequestId(); data.ReferenceId = response.GetRefundReferenceId(); data.Creation = response.GetCreationTimestamp(); data.Fee = new AmazonPayPrice(response.GetRefundFee(), response.GetRefundFeeCurrencyCode()); data.RefundedAmount = new AmazonPayPrice(response.GetRefundAmount(), response.GetRefundAmountCurrencyCode()); data.ReasonCode = response.GetReasonCode(); data.ReasonDescription = response.GetReasonDescription(); data.State = response.GetRefundState(); data.StateLastUpdate = response.GetLastUpdateTimestamp(); return(data); }