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 MoralisWebhookExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://vault-api.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 PaymentApi(config);
var id = "id_example"; // string |
var iWebhook = new IWebhook(); // IWebhook |
try
{
Object result = apiInstance.MoralisWebhook(id, iWebhook);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PaymentApi.MoralisWebhook: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the MoralisWebhookWithHttpInfo 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 PaymentCreatePaymentIntentExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://vault-api.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 PaymentApi(config);
var authorization = "authorization_example"; // string |
var createPaymentIntentInput = new CreatePaymentIntentInput(); // CreatePaymentIntentInput |
try
{
PaymentIntentResponse result = apiInstance.PaymentCreatePaymentIntent(authorization, createPaymentIntentInput);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PaymentApi.PaymentCreatePaymentIntent: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the PaymentCreatePaymentIntentWithHttpInfo 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 PaymentDeletePaymentIntentExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://vault-api.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 PaymentApi(config);
var authorization = "authorization_example"; // string |
var id = "id_example"; // string |
try
{
PaymentIntentResponse result = apiInstance.PaymentDeletePaymentIntent(authorization, id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PaymentApi.PaymentDeletePaymentIntent: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the PaymentDeletePaymentIntentWithHttpInfo 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 PaymentGetAllPaymentIntentsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://vault-api.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 PaymentApi(config);
var authorization = "authorization_example"; // string |
try
{
List<PaymentIntentResponse> result = apiInstance.PaymentGetAllPaymentIntents(authorization);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PaymentApi.PaymentGetAllPaymentIntents: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the PaymentGetAllPaymentIntentsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaymentGetAvailableChains
List<string> PaymentGetAvailableChains ()
Example
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 PaymentGetAvailableChainsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://vault-api.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 PaymentApi(config);
try
{
List<string> result = apiInstance.PaymentGetAvailableChains();
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PaymentApi.PaymentGetAvailableChains: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the PaymentGetAvailableChainsWithHttpInfo 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 PaymentGetPaymentIntentExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://vault-api.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 PaymentApi(config);
var authorization = "authorization_example"; // string |
var id = "id_example"; // string |
try
{
PaymentIntentResponse result = apiInstance.PaymentGetPaymentIntent(authorization, id);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PaymentApi.PaymentGetPaymentIntent: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the PaymentGetPaymentIntentWithHttpInfo 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 PaymentUpdatePaymentIntentExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://vault-api.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 PaymentApi(config);
var authorization = "authorization_example"; // string |
var id = "id_example"; // string |
var createPaymentIntentInput = new CreatePaymentIntentInput(); // CreatePaymentIntentInput |
try
{
PaymentIntentResponse result = apiInstance.PaymentUpdatePaymentIntent(authorization, id, createPaymentIntentInput);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PaymentApi.PaymentUpdatePaymentIntent: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the PaymentUpdatePaymentIntentWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TatumWebhook
Object TatumWebhook (string id, Object body)
Example
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 TatumWebhookExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://vault-api.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 PaymentApi(config);
var id = "id_example"; // string |
var body = null; // Object |
try
{
Object result = apiInstance.TatumWebhook(id, body);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling PaymentApi.TatumWebhook: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Using the TatumWebhookWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.