internal static string ToSerializedValue(this HistoryOperationType value) { switch (value) { case HistoryOperationType.None: return("None"); case HistoryOperationType.Recharge: return("Recharge"); case HistoryOperationType.OutgoingInvoicePayment: return("OutgoingInvoicePayment"); case HistoryOperationType.IncomingInvoicePayment: return("IncomingInvoicePayment"); case HistoryOperationType.OutgoingExchange: return("OutgoingExchange"); case HistoryOperationType.IncomingExchange: return("IncomingExchange"); case HistoryOperationType.Withdrawal: return("Withdrawal"); case HistoryOperationType.CashOut: return("CashOut"); } return(null); }
private static OperationHistoryModel Convert(ReferralStakeResponse src, HistoryOperationType type) { return(new OperationHistoryModel { Type = type, Timestamp = src.Timestamp, Amount = src.Amount, ActionRule = src.CampaignName, }); }
private static OperationHistoryModel Convert(PartnersPaymentResponse src, HistoryOperationType type) { return(new OperationHistoryModel { Type = type, Timestamp = src.Timestamp, Amount = src.Amount, PartnerName = src.PartnerName, }); }
private static OperationHistoryModel Convert(PaymentTransferResponse src, HistoryOperationType type) { return(new OperationHistoryModel { Type = type, Timestamp = src.Timestamp, Amount = src.Amount, InstalmentName = src.InstalmentName, }); }
/// <summary> /// Initializes a new instance of the HistoryOperationViewModel class. /// </summary> /// <param name="type">Possible values include: 'None', 'Recharge', /// 'OutgoingInvoicePayment', 'IncomingInvoicePayment', /// 'OutgoingExchange', 'IncomingExchange', 'Withdrawal', /// 'CashOut'</param> public HistoryOperationViewModel(string id, HistoryOperationType type, string oppositeMerchantId, System.DateTime createdOn, double amount, string assetId, string desiredAssetId, string invoiceId, string invoiceStatus) { Id = id; Type = type; OppositeMerchantId = oppositeMerchantId; CreatedOn = createdOn; Amount = amount; AssetId = assetId; DesiredAssetId = desiredAssetId; InvoiceId = invoiceId; InvoiceStatus = invoiceStatus; CustomInit(); }
/// <summary> /// Initializes a new instance of the HistoryResponseModel class. /// </summary> /// <param name="type">Possible values include: 'CashIn', 'CashOut', /// 'Trade', 'LimitTrade', 'LimitOrderEvent'</param> /// <param name="state">Possible values include: 'InProgress', /// 'Finished', 'Canceled', 'Failed'</param> /// <param name="feeType">Possible values include: 'Unknown', /// 'Absolute', 'Relative'</param> public HistoryResponseModel(string id, System.DateTime dateTime, HistoryOperationType type, HistoryOperationState state, double amount, string asset, string assetPair, double price, double feeSize, FeeType feeType) { Id = id; DateTime = dateTime; Type = type; State = state; Amount = amount; Asset = asset; AssetPair = assetPair; Price = price; FeeSize = feeSize; FeeType = feeType; CustomInit(); }
/// <summary> /// Initializes a new instance of the HistoryOperationModel class. /// </summary> /// <param name="type">Possible values include: 'None', 'Recharge', /// 'OutgoingInvoicePayment', 'IncomingInvoicePayment', /// 'OutgoingExchange', 'IncomingExchange', 'Withdrawal', /// 'CashOut'</param> public HistoryOperationModel(string merchantId, string employeeEmail, string txHash, string id, HistoryOperationType type, string oppositeMerchantId, System.DateTime createdOn, double amount, string assetId, string desiredAssetId, string invoiceId, string invoiceStatus) { MerchantId = merchantId; EmployeeEmail = employeeEmail; TxHash = txHash; Id = id; Type = type; OppositeMerchantId = oppositeMerchantId; CreatedOn = createdOn; Amount = amount; AssetId = assetId; DesiredAssetId = desiredAssetId; InvoiceId = invoiceId; InvoiceStatus = invoiceStatus; CustomInit(); }
internal static string ToSerializedValue(this HistoryOperationType value) { switch (value) { case HistoryOperationType.CashIn: return("CashIn"); case HistoryOperationType.CashOut: return("CashOut"); case HistoryOperationType.Trade: return("Trade"); case HistoryOperationType.LimitTrade: return("LimitTrade"); case HistoryOperationType.LimitOrderEvent: return("LimitOrderEvent"); } return(null); }