Skip to content

Latest commit

 

History

History
159 lines (103 loc) · 5 KB

README.md

File metadata and controls

159 lines (103 loc) · 5 KB

BillingV1

(BillingV1)

Overview

Available Operations

GetBalance

Example Usage

using HathoraCloud;
using HathoraCloud.Models.Shared;

var sdk = new HathoraCloudSDK(
    security: new Security() {
        HathoraDevToken = "<YOUR_BEARER_TOKEN_HERE>",
    },
    appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2");


using(var res = await sdk.BillingV1.GetBalanceAsync())
{
    // handle response
}

Response

GetBalanceResponse

Errors

Error Object Status Code Content Type
HathoraCloud.Models.Errors.ApiError 401,404 application/json
HathoraCloud.Models.Errors.SDKException 4xx-5xx /

GetInvoices

Example Usage

using HathoraCloud;
using HathoraCloud.Models.Shared;

var sdk = new HathoraCloudSDK(
    security: new Security() {
        HathoraDevToken = "<YOUR_BEARER_TOKEN_HERE>",
    },
    appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2");


using(var res = await sdk.BillingV1.GetInvoicesAsync())
{
    // handle response
}

Response

GetInvoicesResponse

Errors

Error Object Status Code Content Type
HathoraCloud.Models.Errors.ApiError 401,404 application/json
HathoraCloud.Models.Errors.SDKException 4xx-5xx /

GetPaymentMethod

Example Usage

using HathoraCloud;
using HathoraCloud.Models.Shared;

var sdk = new HathoraCloudSDK(
    security: new Security() {
        HathoraDevToken = "<YOUR_BEARER_TOKEN_HERE>",
    },
    appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2");


using(var res = await sdk.BillingV1.GetPaymentMethodAsync())
{
    // handle response
}

Response

GetPaymentMethodResponse

Errors

Error Object Status Code Content Type
HathoraCloud.Models.Errors.ApiError 401,404,500 application/json
HathoraCloud.Models.Errors.SDKException 4xx-5xx /

InitStripeCustomerPortalUrl

Example Usage

using HathoraCloud;
using HathoraCloud.Models.Shared;

var sdk = new HathoraCloudSDK(
    security: new Security() {
        HathoraDevToken = "<YOUR_BEARER_TOKEN_HERE>",
    },
    appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2");

CustomerPortalUrl req = new CustomerPortalUrl() {
    ReturnUrl = "<value>",
};


using(var res = await sdk.BillingV1.InitStripeCustomerPortalUrlAsync(req))
{
    // handle response
}

Parameters

Parameter Type Required Description
request CustomerPortalUrl ✔️ The request object to use for the request.

Response

InitStripeCustomerPortalUrlResponse

Errors

Error Object Status Code Content Type
HathoraCloud.Models.Errors.ApiError 401,404,429 application/json
HathoraCloud.Models.Errors.SDKException 4xx-5xx /