protected ClientAuthInfo GetStoreAuthorization() { var auth = new ClientAuthInfo { ClientNumber = _config.GetClientNumber(PaymentType.PAYMENTPLAN, _countryCode), Password = _config.GetPassword(PaymentType.PAYMENTPLAN, _countryCode), Username = _config.GetUsername(PaymentType.PAYMENTPLAN, _countryCode) }; return(auth); }
private ClientAuthInfo GetPasswordBasedAuthorization() { var auth = new ClientAuthInfo { Username = CrOrderBuilder.GetConfig().GetUsername(PayType, CrOrderBuilder.GetCountryCode()), Password = CrOrderBuilder.GetConfig().GetPassword(PayType, CrOrderBuilder.GetCountryCode()), ClientNumber = CrOrderBuilder.GetConfig().GetClientNumber(PayType, CrOrderBuilder.GetCountryCode()) }; return(auth); }
private ClientAuthInfo GetStoreAuthorization() { PaymentType type = (_orderType == "Invoice" ? PaymentType.INVOICE : PaymentType.PAYMENTPLAN); var auth = new ClientAuthInfo { ClientNumber = _config.GetClientNumber(type, _countryCode), Password = _config.GetPassword(type, _countryCode), Username = _config.GetUsername(type, _countryCode) }; return(auth); }
protected ClientAuthInfo GetStoreAuthorization() { PaymentType type = (_order.GetOrderType() == "Invoice" ? PaymentType.INVOICE : PaymentType.PAYMENTPLAN); var auth = new ClientAuthInfo { Username = _order.GetConfig().GetUsername(type, _order.GetCountrycode()), Password = _order.GetConfig().GetPassword(type, _order.GetCountrycode()), ClientNumber = _order.GetConfig().GetClientNumber(type, _order.GetCountrycode()) }; return(auth); }
private async Task ProcessMessageAsync(ClientAuthInfo message) { var validationResult = ValidateMessage(message); if (validationResult.Any()) { var error = $"Message will be skipped: {string.Join("\r\n", validationResult)}"; _log.Warning(error, context: message.ToJson()); return; } await _cachedWalletsRepository.CacheItAsync(message.ClientId); }
private ClientAuthInfo GetStoreAuthorization() { var type = (_order.GetOrderType() == CONST.OrderType.INVOICE) ? PaymentType.INVOICE : PaymentType.PAYMENTPLAN; var auth = new ClientAuthInfo { Username = _order.GetConfig().GetUsername(type, _order.GetCountryCode()), Password = _order.GetConfig().GetPassword(type, _order.GetCountryCode()), ClientNumber = _order.GetConfig().GetClientNumber(type, _order.GetCountryCode()) }; return(auth); }
private static IReadOnlyList <string> ValidateMessage(ClientAuthInfo message) { var errors = new List <string>(); if (message == null) { errors.Add("message is null"); } else { if (string.IsNullOrEmpty(message.ClientId)) { errors.Add("Empty client id"); } } return(errors); }
private ClientAuthInfo GetStoreAuthorization() { PaymentType type = (_orderType == "Invoice" ? PaymentType.INVOICE : PaymentType.PAYMENTPLAN); var auth = new ClientAuthInfo { ClientNumber = _config.GetClientNumber(type, _countryCode), Password = _config.GetPassword(type, _countryCode), Username = _config.GetUsername(type, _countryCode) }; return auth; }
private async Task ProcessMessageAsync(ClientAuthInfo model) { await _affiliateService.Register(model.Ip, model.ClientId); }
private ClientAuthInfo GetPasswordBasedAuthorization() { var auth = new ClientAuthInfo { Username = CrOrderBuilder.GetConfig().GetUsername(PayType, CrOrderBuilder.GetCountryCode()), Password = CrOrderBuilder.GetConfig().GetPassword(PayType, CrOrderBuilder.GetCountryCode()), ClientNumber = CrOrderBuilder.GetConfig().GetClientNumber(PayType, CrOrderBuilder.GetCountryCode()) }; return auth; }
protected ClientAuthInfo GetStoreAuthorization() { PaymentType type = (_order.GetOrderType() == "Invoice" ? PaymentType.INVOICE : PaymentType.PAYMENTPLAN); var auth = new ClientAuthInfo { Username = _order.GetConfig().GetUsername(type, _order.GetCountrycode()), Password = _order.GetConfig().GetPassword(type, _order.GetCountrycode()), ClientNumber = _order.GetConfig().GetClientNumber(type, _order.GetCountrycode()) }; return auth; }
private ClientAuthInfo GetStoreAuthorization() { var type = (_order.GetOrderType() == OrderType.INVOICE) ? PaymentType.INVOICE : PaymentType.PAYMENTPLAN; var auth = new ClientAuthInfo { Username = _order.GetConfig().GetUsername(type, _order.GetCountryCode()), Password = _order.GetConfig().GetPassword(type, _order.GetCountryCode()), ClientNumber = _order.GetConfig().GetClientNumber(type, _order.GetCountryCode()) }; return auth; }
protected ClientAuthInfo GetStoreAuthorization() { var auth = new ClientAuthInfo { ClientNumber = _config.GetClientNumber(PaymentType.PAYMENTPLAN, _countryCode), Password = _config.GetPassword(PaymentType.PAYMENTPLAN, _countryCode), Username = _config.GetUsername(PaymentType.PAYMENTPLAN, _countryCode) }; return auth; }