Back to Daytona

WalletApi

libs/billing-api-client/src/docs/WalletApi.md

0.178.08.1 KB
Original Source

WalletApi

All URIs are relative to http://localhost:6100

MethodHTTP requestDescription
getV2WalletGET /v2/organization/{organizationId}/walletGet organization wallet
getWalletGET /organization/{organizationId}/walletGet organization wallet
setAutomaticTopUpPUT /organization/{organizationId}/wallet/automatic-top-upSet automatic top up
setV2AutomaticTopUpPUT /v2/organization/{organizationId}/wallet/automatic-top-upSet automatic top up
topUpV2WalletPOST /v2/organization/{organizationId}/wallet/top-upTop up wallet
topUpWalletPOST /organization/{organizationId}/wallet/top-upTop up wallet

getV2Wallet

OrganizationWallet getV2Wallet()

Get organization wallet from v2 billing

Example

typescript
import {
    WalletApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new WalletApi(configuration);

let organizationId: string; //Organization ID (default to undefined)

const { status, data } = await apiInstance.getV2Wallet(
    organizationId
);

Parameters

NameTypeDescriptionNotes
organizationId[string]Organization IDdefaults to undefined

Return type

OrganizationWallet

Authorization

JwtAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getWallet

OrganizationWallet getWallet()

Get organization wallet

Example

typescript
import {
    WalletApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new WalletApi(configuration);

let organizationId: string; //Organization ID (default to undefined)

const { status, data } = await apiInstance.getWallet(
    organizationId
);

Parameters

NameTypeDescriptionNotes
organizationId[string]Organization IDdefaults to undefined

Return type

OrganizationWallet

Authorization

JwtAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

setAutomaticTopUp

setAutomaticTopUp()

Set automatic top up

Example

typescript
import {
    WalletApi,
    Configuration,
    AutomaticTopUp
} from './api';

const configuration = new Configuration();
const apiInstance = new WalletApi(configuration);

let organizationId: string; //Organization ID (default to undefined)
let automaticTopUp: AutomaticTopUp; //Automatic top up (optional)

const { status, data } = await apiInstance.setAutomaticTopUp(
    organizationId,
    automaticTopUp
);

Parameters

NameTypeDescriptionNotes
automaticTopUpAutomaticTopUpAutomatic top up
organizationId[string]Organization IDdefaults to undefined

Return type

void (empty response body)

Authorization

JwtAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status codeDescriptionResponse headers
204No Content-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

setV2AutomaticTopUp

setV2AutomaticTopUp()

Set automatic top up using v2 billing

Example

typescript
import {
    WalletApi,
    Configuration,
    AutomaticTopUp
} from './api';

const configuration = new Configuration();
const apiInstance = new WalletApi(configuration);

let organizationId: string; //Organization ID (default to undefined)
let automaticTopUp: AutomaticTopUp; //Automatic top up (optional)

const { status, data } = await apiInstance.setV2AutomaticTopUp(
    organizationId,
    automaticTopUp
);

Parameters

NameTypeDescriptionNotes
automaticTopUpAutomaticTopUpAutomatic top up
organizationId[string]Organization IDdefaults to undefined

Return type

void (empty response body)

Authorization

JwtAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status codeDescriptionResponse headers
204No Content-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

topUpV2Wallet

PaymentUrl topUpV2Wallet(topUpRequest)

Top up wallet with specified amount using v2 billing

Example

typescript
import {
    WalletApi,
    Configuration,
    WalletTopUpRequest
} from './api';

const configuration = new Configuration();
const apiInstance = new WalletApi(configuration);

let organizationId: string; //Organization ID (default to undefined)
let topUpRequest: WalletTopUpRequest; //Top up request

const { status, data } = await apiInstance.topUpV2Wallet(
    organizationId,
    topUpRequest
);

Parameters

NameTypeDescriptionNotes
topUpRequestWalletTopUpRequestTop up request
organizationId[string]Organization IDdefaults to undefined

Return type

PaymentUrl

Authorization

JwtAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-

[Back to top] [Back to API list] [Back to Model list] [Back to README]

topUpWallet

PaymentUrl topUpWallet(topUpRequest)

Top up wallet with specified amount

Example

typescript
import {
    WalletApi,
    Configuration,
    WalletTopUpRequest
} from './api';

const configuration = new Configuration();
const apiInstance = new WalletApi(configuration);

let organizationId: string; //Organization ID (default to undefined)
let topUpRequest: WalletTopUpRequest; //Top up request

const { status, data } = await apiInstance.topUpWallet(
    organizationId,
    topUpRequest
);

Parameters

NameTypeDescriptionNotes
topUpRequestWalletTopUpRequestTop up request
organizationId[string]Organization IDdefaults to undefined

Return type

PaymentUrl

Authorization

JwtAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-

[Back to top] [Back to API list] [Back to Model list] [Back to README]