internal static string ToSerializedValue(this DepositOption value) { switch (value) { case DepositOption.Unknown: return("Unknown"); case DepositOption.BankCard: return("BankCard"); case DepositOption.Other: return("Other"); } return(null); }
/// <summary> /// Get urls for payment /// </summary> /// <param name="clientId">ClientId</param> /// <param name="amount">Amount</param> /// <param name="assetId">AssetId</param> /// <param name="walletId">WalletId</param> /// <param name="firstName">First name</param> /// <param name="lastName">Last name</param> /// <param name="city">City</param> /// <param name="zip">Zip</param> /// <param name="address">Address</param> /// <param name="country">Country</param> /// <param name="email">Email</param> /// <param name="phone">Phone</param> /// <param name="depositOption">Deposit option</param> /// <param name="okUrl">OkUrl</param> /// <param name="failUrl">FailUrl</param> /// <param name="depositOptionEnum">DepositOptionEnum</param> /// <param name="cancellationToken">CancellationToken</param> /// <returns></returns> public async Task <PaymentUrlDataResponse> GetUrlDataAsync( string clientId, double?amount, string assetId, string walletId, string firstName, string lastName, string city, string zip, string address, string country, string email, string phone, DepositOption depositOption, string okUrl, string failUrl, string cancelUrl, CancellationToken cancellationToken = default(CancellationToken)) { return(await _service.PostPaymentUrlDataAsync(clientId, amount, assetId, walletId, firstName, lastName, city, zip, address, country, email, phone, depositOption, okUrl, failUrl, cancelUrl, cancellationToken)); }