using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class OnRamperCheckoutExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new OnramperApi(config);
var authorization = "authorization_example"; // string |
var accountName = "accountName_example"; // string |
var transactionInput = new TransactionInput(); // TransactionInput |
try
{
Object result = apiInstance.OnRamperCheckout(authorization, accountName, transactionInput);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OnramperApi.OnRamperCheckout: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the OnRamperCheckoutWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class OnRamperGetSupportedAssetsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new OnramperApi(config);
var authorization = "authorization_example"; // string |
var source = "source_example"; // string |
var country = "country_example"; // string |
try
{
SupportedAssetResponse result = apiInstance.OnRamperGetSupportedAssets(authorization, source, country);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OnramperApi.OnRamperGetSupportedAssets: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the OnRamperGetSupportedAssetsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class OnRamperGetSupportedCurrenciesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new OnramperApi(config);
var authorization = "authorization_example"; // string |
var type = "type_example"; // string |
try
{
SupportedCurrenciesResponse result = apiInstance.OnRamperGetSupportedCurrencies(authorization, type);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OnramperApi.OnRamperGetSupportedCurrencies: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the OnRamperGetSupportedCurrenciesWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class OnRamperGetSupportedDefaultsAllExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new OnramperApi(config);
var authorization = "authorization_example"; // string |
var country = "country_example"; // string |
var type = "type_example"; // string |
try
{
SupportedDefaultResponse result = apiInstance.OnRamperGetSupportedDefaultsAll(authorization, country, type);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OnramperApi.OnRamperGetSupportedDefaultsAll: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the OnRamperGetSupportedDefaultsAllWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class OnRamperGetSupportedOnRampsAllExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new OnramperApi(config);
var authorization = "authorization_example"; // string |
try
{
GetSupportedOnRampsResponse result = apiInstance.OnRamperGetSupportedOnRampsAll(authorization);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OnramperApi.OnRamperGetSupportedOnRampsAll: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the OnRamperGetSupportedOnRampsAllWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class OnRamperGetSupportedPaymentTypesExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new OnramperApi(config);
var authorization = "authorization_example"; // string |
var fiat = "fiat_example"; // string |
var country = "country_example"; // string |
var type = "type_example"; // string |
try
{
SupportedPaymentTypesCurrencyResponse result = apiInstance.OnRamperGetSupportedPaymentTypes(authorization, fiat, country, type);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OnramperApi.OnRamperGetSupportedPaymentTypes: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the OnRamperGetSupportedPaymentTypesWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
using System.Collections.Generic;
using System.Diagnostics;
using com.usemoon.MoonSDK.Api;
using com.usemoon.MoonSDK.Client;
using com.usemoon.MoonSDK.Model;
namespace Example
{
public class OnRamperGetSupportedPaymentTypesFiatExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://beta.usemoon.ai";
// Configure API key authorization: ApiKeyAuth
config.AddApiKey("x-api-key", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("x-api-key", "Bearer");
// Configure API key authorization: BearerAuth
config.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// config.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new OnramperApi(config);
var authorization = "authorization_example"; // string |
var fiat = "fiat_example"; // string |
var country = "country_example"; // string |
try
{
SupportedPaymentTypesCurrencyResponse result = apiInstance.OnRamperGetSupportedPaymentTypesFiat(authorization, fiat, country);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OnramperApi.OnRamperGetSupportedPaymentTypesFiat: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the OnRamperGetSupportedPaymentTypesFiatWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.