libs/billing-api-client/src/docs/WalletApi.md
All URIs are relative to http://localhost:6100
| Method | HTTP request | Description |
|---|---|---|
| getV2Wallet | GET /v2/organization/{organizationId}/wallet | Get organization wallet |
| getWallet | GET /organization/{organizationId}/wallet | Get organization wallet |
| setAutomaticTopUp | PUT /organization/{organizationId}/wallet/automatic-top-up | Set automatic top up |
| setV2AutomaticTopUp | PUT /v2/organization/{organizationId}/wallet/automatic-top-up | Set automatic top up |
| topUpV2Wallet | POST /v2/organization/{organizationId}/wallet/top-up | Top up wallet |
| topUpWallet | POST /organization/{organizationId}/wallet/top-up | Top up wallet |
OrganizationWallet getV2Wallet()
Get organization wallet from v2 billing
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
);
| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | Organization ID | defaults to undefined |
OrganizationWallet
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrganizationWallet getWallet()
Get organization wallet
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
);
| Name | Type | Description | Notes |
|---|---|---|---|
| organizationId | [string] | Organization ID | defaults to undefined |
OrganizationWallet
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
setAutomaticTopUp()
Set automatic top up
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
);
| Name | Type | Description | Notes |
|---|---|---|---|
| automaticTopUp | AutomaticTopUp | Automatic top up | |
| organizationId | [string] | Organization ID | defaults to undefined |
void (empty response body)
| Status code | Description | Response headers |
|---|---|---|
| 204 | No Content | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
setV2AutomaticTopUp()
Set automatic top up using v2 billing
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
);
| Name | Type | Description | Notes |
|---|---|---|---|
| automaticTopUp | AutomaticTopUp | Automatic top up | |
| organizationId | [string] | Organization ID | defaults to undefined |
void (empty response body)
| Status code | Description | Response headers |
|---|---|---|
| 204 | No Content | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaymentUrl topUpV2Wallet(topUpRequest)
Top up wallet with specified amount using v2 billing
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
);
| Name | Type | Description | Notes |
|---|---|---|---|
| topUpRequest | WalletTopUpRequest | Top up request | |
| organizationId | [string] | Organization ID | defaults to undefined |
PaymentUrl
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PaymentUrl topUpWallet(topUpRequest)
Top up wallet with specified amount
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
);
| Name | Type | Description | Notes |
|---|---|---|---|
| topUpRequest | WalletTopUpRequest | Top up request | |
| organizationId | [string] | Organization ID | defaults to undefined |
PaymentUrl
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]