Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@forestvpn/forestvpn_api

Package Overview
Dependencies
Maintainers
4
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@forestvpn/forestvpn_api - npm Package Compare versions

Comparing version 3.2.8 to 3.3.0

dist/models/create-stripe-setup-intent-request.d.ts

20

apis/analytics-api.ts

@@ -29,3 +29,3 @@ /* tslint:disable */

* @summary Data Usage Stats
* @param {string} [aggr_interval] No more than 3 days for hour aggregation type
* @param {string} aggr_interval No more than 3 days for hour aggregation type
* @param {string} [date_after] No more than 3 months between date_after and date_before

@@ -39,3 +39,7 @@ * @param {string} [date_before] No more than 3 months between date_after and date_before

*/
getDataUsageStats: async (aggr_interval?: string, date_after?: string, date_before?: string, device_type__in?: Array<string>, device__in?: Array<string>, sort_by?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
getDataUsageStats: async (aggr_interval: string, date_after?: string, date_before?: string, device_type__in?: Array<string>, device__in?: Array<string>, sort_by?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'aggr_interval' is not null or undefined
if (aggr_interval === null || aggr_interval === undefined) {
throw new RequiredError('aggr_interval','Required parameter aggr_interval was null or undefined when calling getDataUsageStats.');
}
const localVarPath = `/analytics/data-usage/`;

@@ -110,3 +114,3 @@ // use dummy base URL string because the URL constructor only accepts absolute URLs.

* @summary Data Usage Stats
* @param {string} [aggr_interval] No more than 3 days for hour aggregation type
* @param {string} aggr_interval No more than 3 days for hour aggregation type
* @param {string} [date_after] No more than 3 months between date_after and date_before

@@ -120,3 +124,3 @@ * @param {string} [date_before] No more than 3 months between date_after and date_before

*/
async getDataUsageStats(aggr_interval?: string, date_after?: string, date_before?: string, device_type__in?: Array<string>, device__in?: Array<string>, sort_by?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<AggregatedDataUsageStats>>>> {
async getDataUsageStats(aggr_interval: string, date_after?: string, date_before?: string, device_type__in?: Array<string>, device__in?: Array<string>, sort_by?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<AggregatedDataUsageStats>>>> {
const localVarAxiosArgs = await AnalyticsApiAxiosParamCreator(configuration).getDataUsageStats(aggr_interval, date_after, date_before, device_type__in, device__in, sort_by, options);

@@ -140,3 +144,3 @@ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {

* @summary Data Usage Stats
* @param {string} [aggr_interval] No more than 3 days for hour aggregation type
* @param {string} aggr_interval No more than 3 days for hour aggregation type
* @param {string} [date_after] No more than 3 months between date_after and date_before

@@ -150,3 +154,3 @@ * @param {string} [date_before] No more than 3 months between date_after and date_before

*/
async getDataUsageStats(aggr_interval?: string, date_after?: string, date_before?: string, device_type__in?: Array<string>, device__in?: Array<string>, sort_by?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<AggregatedDataUsageStats>>> {
async getDataUsageStats(aggr_interval: string, date_after?: string, date_before?: string, device_type__in?: Array<string>, device__in?: Array<string>, sort_by?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<AggregatedDataUsageStats>>> {
return AnalyticsApiFp(configuration).getDataUsageStats(aggr_interval, date_after, date_before, device_type__in, device__in, sort_by, options).then((request) => request(axios, basePath));

@@ -167,3 +171,3 @@ },

* @summary Data Usage Stats
* @param {string} [aggr_interval] No more than 3 days for hour aggregation type
* @param {string} aggr_interval No more than 3 days for hour aggregation type
* @param {string} [date_after] No more than 3 months between date_after and date_before

@@ -178,5 +182,5 @@ * @param {string} [date_before] No more than 3 months between date_after and date_before

*/
public async getDataUsageStats(aggr_interval?: string, date_after?: string, date_before?: string, device_type__in?: Array<string>, device__in?: Array<string>, sort_by?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<Array<AggregatedDataUsageStats>>> {
public async getDataUsageStats(aggr_interval: string, date_after?: string, date_before?: string, device_type__in?: Array<string>, device__in?: Array<string>, sort_by?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<Array<AggregatedDataUsageStats>>> {
return AnalyticsApiFp(this.configuration).getDataUsageStats(aggr_interval, date_after, date_before, device_type__in, device__in, sort_by, options).then((request) => request(this.axios, this.basePath));
}
}

369

apis/billing-api.ts

@@ -21,4 +21,7 @@ /* tslint:disable */

import { Bundle } from '../models';
import { CreateStripeSetupIntentRequest } from '../models';
import { PaymentMethod } from '../models';
import { PaymentOption } from '../models';
import { Product } from '../models';
import { StripeSetupIntent } from '../models';
import { Subscription } from '../models';

@@ -33,2 +36,88 @@ /**

*
* @summary Create stripe's setup intent for add new payment method.
* @param {CreateStripeSetupIntentRequest} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createPaymentMethodStripeSetupIntent: async (body?: CreateStripeSetupIntentRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/billing/payment-methods/stripe/setup-intents/`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
const localVarFormParams = new URLSearchParams();
// authentication bearerAuth required
localVarHeaderParameter['Content-Type'] = 'application/json';
const query = new URLSearchParams(localVarUrlObj.search);
for (const key in localVarQueryParameter) {
query.set(key, localVarQueryParameter[key]);
}
for (const key in options.params) {
query.set(key, options.params[key]);
}
localVarUrlObj.search = (new URLSearchParams(query)).toString();
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
return {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
};
},
/**
*
* @summary Create stripe's setup intent for add new payment method.
* @param {string} [return_url]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createPaymentMethodStripeSetupIntentForm: async (return_url?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/billing/payment-methods/stripe/setup-intents/`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
const localVarFormParams = new URLSearchParams();
// authentication bearerAuth required
if (return_url !== undefined) {
localVarFormParams.set('return_url', return_url as any);
}
localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';
const query = new URLSearchParams(localVarUrlObj.search);
for (const key in localVarQueryParameter) {
query.set(key, localVarQueryParameter[key]);
}
for (const key in options.params) {
query.set(key, options.params[key]);
}
localVarUrlObj.search = (new URLSearchParams(query)).toString();
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
localVarRequestOptions.data = localVarFormParams.toString();
return {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
};
},
/**
*
* @summary Bundle info

@@ -76,14 +165,14 @@ * @param {string} bundleID

*
* @summary Payment method info
* @param {string} paymentMethodID
* @summary Payment option info
* @param {string} paymentOptionID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getBillingPaymentMethod: async (paymentMethodID: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'paymentMethodID' is not null or undefined
if (paymentMethodID === null || paymentMethodID === undefined) {
throw new RequiredError('paymentMethodID','Required parameter paymentMethodID was null or undefined when calling getBillingPaymentMethod.');
getBillingPaymentOption: async (paymentOptionID: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'paymentOptionID' is not null or undefined
if (paymentOptionID === null || paymentOptionID === undefined) {
throw new RequiredError('paymentOptionID','Required parameter paymentOptionID was null or undefined when calling getBillingPaymentOption.');
}
const localVarPath = `/billing/payment-methods/{paymentMethodID}/`
.replace(`{${"paymentMethodID"}}`, encodeURIComponent(String(paymentMethodID)));
const localVarPath = `/billing/payment-options/{paymentOptionID}/`
.replace(`{${"paymentOptionID"}}`, encodeURIComponent(String(paymentOptionID)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.

@@ -161,2 +250,44 @@ const localVarUrlObj = new URL(localVarPath, 'https://example.com');

*
* @summary Payment method info
* @param {string} paymentMethodID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getPaymentMethod: async (paymentMethodID: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'paymentMethodID' is not null or undefined
if (paymentMethodID === null || paymentMethodID === undefined) {
throw new RequiredError('paymentMethodID','Required parameter paymentMethodID was null or undefined when calling getPaymentMethod.');
}
const localVarPath = `/billing/payment-methods/{paymentMethodID}/`
.replace(`{${"paymentMethodID"}}`, encodeURIComponent(String(paymentMethodID)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication bearerAuth required
const query = new URLSearchParams(localVarUrlObj.search);
for (const key in localVarQueryParameter) {
query.set(key, localVarQueryParameter[key]);
}
for (const key in options.params) {
query.set(key, options.params[key]);
}
localVarUrlObj.search = (new URLSearchParams(query)).toString();
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
return {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
};
},
/**
*
* @summary Billing bundles list

@@ -242,8 +373,8 @@ * @param {*} [options] Override http request option.

*
* @summary Billing payment methods list
* @summary Billing payment option list
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listBillingPaymentMethods: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/billing/payment-methods/`;
listBillingPaymentOptions: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/billing/payment-options/`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.

@@ -349,2 +480,38 @@ const localVarUrlObj = new URL(localVarPath, 'https://example.com');

},
/**
*
* @summary Payment method list
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listPaymentMethods: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
const localVarPath = `/billing/payment-methods/`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication bearerAuth required
const query = new URLSearchParams(localVarUrlObj.search);
for (const key in localVarQueryParameter) {
query.set(key, localVarQueryParameter[key]);
}
for (const key in options.params) {
query.set(key, options.params[key]);
}
localVarUrlObj.search = (new URLSearchParams(query)).toString();
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
return {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
};
},
}

@@ -361,2 +528,30 @@ };

*
* @summary Create stripe's setup intent for add new payment method.
* @param {CreateStripeSetupIntentRequest} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async createPaymentMethodStripeSetupIntent(body?: CreateStripeSetupIntentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<StripeSetupIntent>>> {
const localVarAxiosArgs = await BillingApiAxiosParamCreator(configuration).createPaymentMethodStripeSetupIntent(body, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
/**
*
* @summary Create stripe's setup intent for add new payment method.
* @param {string} [return_url]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async createPaymentMethodStripeSetupIntentForm(return_url?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<StripeSetupIntent>>> {
const localVarAxiosArgs = await BillingApiAxiosParamCreator(configuration).createPaymentMethodStripeSetupIntentForm(return_url, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
/**
*
* @summary Bundle info

@@ -376,9 +571,9 @@ * @param {string} bundleID

*
* @summary Payment method info
* @param {string} paymentMethodID
* @summary Payment option info
* @param {string} paymentOptionID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getBillingPaymentMethod(paymentMethodID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaymentMethod>>> {
const localVarAxiosArgs = await BillingApiAxiosParamCreator(configuration).getBillingPaymentMethod(paymentMethodID, options);
async getBillingPaymentOption(paymentOptionID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaymentOption>>> {
const localVarAxiosArgs = await BillingApiAxiosParamCreator(configuration).getBillingPaymentOption(paymentOptionID, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {

@@ -405,2 +600,16 @@ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};

*
* @summary Payment method info
* @param {string} paymentMethodID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getPaymentMethod(paymentMethodID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaymentMethod>>> {
const localVarAxiosArgs = await BillingApiAxiosParamCreator(configuration).getPaymentMethod(paymentMethodID, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
/**
*
* @summary Billing bundles list

@@ -432,8 +641,8 @@ * @param {*} [options] Override http request option.

*
* @summary Billing payment methods list
* @summary Billing payment option list
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listBillingPaymentMethods(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<PaymentMethod>>>> {
const localVarAxiosArgs = await BillingApiAxiosParamCreator(configuration).listBillingPaymentMethods(options);
async listBillingPaymentOptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<PaymentOption>>>> {
const localVarAxiosArgs = await BillingApiAxiosParamCreator(configuration).listBillingPaymentOptions(options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {

@@ -470,2 +679,15 @@ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};

},
/**
*
* @summary Payment method list
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listPaymentMethods(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<PaymentMethod>>>> {
const localVarAxiosArgs = await BillingApiAxiosParamCreator(configuration).listPaymentMethods(options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
}

@@ -482,2 +704,22 @@ };

*
* @summary Create stripe's setup intent for add new payment method.
* @param {CreateStripeSetupIntentRequest} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async createPaymentMethodStripeSetupIntent(body?: CreateStripeSetupIntentRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<StripeSetupIntent>> {
return BillingApiFp(configuration).createPaymentMethodStripeSetupIntent(body, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Create stripe's setup intent for add new payment method.
* @param {string} [return_url]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async createPaymentMethodStripeSetupIntentForm(return_url?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StripeSetupIntent>> {
return BillingApiFp(configuration).createPaymentMethodStripeSetupIntentForm(return_url, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Bundle info

@@ -493,9 +735,9 @@ * @param {string} bundleID

*
* @summary Payment method info
* @param {string} paymentMethodID
* @summary Payment option info
* @param {string} paymentOptionID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getBillingPaymentMethod(paymentMethodID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaymentMethod>> {
return BillingApiFp(configuration).getBillingPaymentMethod(paymentMethodID, options).then((request) => request(axios, basePath));
async getBillingPaymentOption(paymentOptionID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaymentOption>> {
return BillingApiFp(configuration).getBillingPaymentOption(paymentOptionID, options).then((request) => request(axios, basePath));
},

@@ -514,2 +756,12 @@ /**

*
* @summary Payment method info
* @param {string} paymentMethodID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getPaymentMethod(paymentMethodID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaymentMethod>> {
return BillingApiFp(configuration).getPaymentMethod(paymentMethodID, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Billing bundles list

@@ -533,8 +785,8 @@ * @param {*} [options] Override http request option.

*
* @summary Billing payment methods list
* @summary Billing payment option list
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listBillingPaymentMethods(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<PaymentMethod>>> {
return BillingApiFp(configuration).listBillingPaymentMethods(options).then((request) => request(axios, basePath));
async listBillingPaymentOptions(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<PaymentOption>>> {
return BillingApiFp(configuration).listBillingPaymentOptions(options).then((request) => request(axios, basePath));
},

@@ -559,2 +811,11 @@ /**

},
/**
*
* @summary Payment method list
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listPaymentMethods(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<PaymentMethod>>> {
return BillingApiFp(configuration).listPaymentMethods(options).then((request) => request(axios, basePath));
},
};

@@ -572,2 +833,25 @@ };

*
* @summary Create stripe's setup intent for add new payment method.
* @param {CreateStripeSetupIntentRequest} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof BillingApi
*/
public async createPaymentMethodStripeSetupIntent(body?: CreateStripeSetupIntentRequest, options?: AxiosRequestConfig) : Promise<AxiosResponse<StripeSetupIntent>> {
return BillingApiFp(this.configuration).createPaymentMethodStripeSetupIntent(body, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Create stripe's setup intent for add new payment method.
* @param {string} [return_url]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof BillingApi
*/
public async createPaymentMethodStripeSetupIntentForm(return_url?: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<StripeSetupIntent>> {
return BillingApiFp(this.configuration).createPaymentMethodStripeSetupIntentForm(return_url, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Bundle info

@@ -584,4 +868,4 @@ * @param {string} bundleID

*
* @summary Payment method info
* @param {string} paymentMethodID
* @summary Payment option info
* @param {string} paymentOptionID
* @param {*} [options] Override http request option.

@@ -591,4 +875,4 @@ * @throws {RequiredError}

*/
public async getBillingPaymentMethod(paymentMethodID: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<PaymentMethod>> {
return BillingApiFp(this.configuration).getBillingPaymentMethod(paymentMethodID, options).then((request) => request(this.axios, this.basePath));
public async getBillingPaymentOption(paymentOptionID: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<PaymentOption>> {
return BillingApiFp(this.configuration).getBillingPaymentOption(paymentOptionID, options).then((request) => request(this.axios, this.basePath));
}

@@ -608,2 +892,13 @@ /**

*
* @summary Payment method info
* @param {string} paymentMethodID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof BillingApi
*/
public async getPaymentMethod(paymentMethodID: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<PaymentMethod>> {
return BillingApiFp(this.configuration).getPaymentMethod(paymentMethodID, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Billing bundles list

@@ -629,3 +924,3 @@ * @param {*} [options] Override http request option.

*
* @summary Billing payment methods list
* @summary Billing payment option list
* @param {*} [options] Override http request option.

@@ -635,4 +930,4 @@ * @throws {RequiredError}

*/
public async listBillingPaymentMethods(options?: AxiosRequestConfig) : Promise<AxiosResponse<Array<PaymentMethod>>> {
return BillingApiFp(this.configuration).listBillingPaymentMethods(options).then((request) => request(this.axios, this.basePath));
public async listBillingPaymentOptions(options?: AxiosRequestConfig) : Promise<AxiosResponse<Array<PaymentOption>>> {
return BillingApiFp(this.configuration).listBillingPaymentOptions(options).then((request) => request(this.axios, this.basePath));
}

@@ -659,2 +954,12 @@ /**

}
/**
*
* @summary Payment method list
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof BillingApi
*/
public async listPaymentMethods(options?: AxiosRequestConfig) : Promise<AxiosResponse<Array<PaymentMethod>>> {
return BillingApiFp(this.configuration).listPaymentMethods(options).then((request) => request(this.axios, this.basePath));
}
}

@@ -24,3 +24,3 @@ /**

* @summary Data Usage Stats
* @param {string} [aggr_interval] No more than 3 days for hour aggregation type
* @param {string} aggr_interval No more than 3 days for hour aggregation type
* @param {string} [date_after] No more than 3 months between date_after and date_before

@@ -34,3 +34,3 @@ * @param {string} [date_before] No more than 3 months between date_after and date_before

*/
getDataUsageStats: (aggr_interval?: string, date_after?: string, date_before?: string, device_type__in?: Array<string>, device__in?: Array<string>, sort_by?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
getDataUsageStats: (aggr_interval: string, date_after?: string, date_before?: string, device_type__in?: Array<string>, device__in?: Array<string>, sort_by?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
};

@@ -45,3 +45,3 @@ /**

* @summary Data Usage Stats
* @param {string} [aggr_interval] No more than 3 days for hour aggregation type
* @param {string} aggr_interval No more than 3 days for hour aggregation type
* @param {string} [date_after] No more than 3 months between date_after and date_before

@@ -55,3 +55,3 @@ * @param {string} [date_before] No more than 3 months between date_after and date_before

*/
getDataUsageStats(aggr_interval?: string, date_after?: string, date_before?: string, device_type__in?: Array<string>, device__in?: Array<string>, sort_by?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<AggregatedDataUsageStats>>>>;
getDataUsageStats(aggr_interval: string, date_after?: string, date_before?: string, device_type__in?: Array<string>, device__in?: Array<string>, sort_by?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<AggregatedDataUsageStats>>>>;
};

@@ -66,3 +66,3 @@ /**

* @summary Data Usage Stats
* @param {string} [aggr_interval] No more than 3 days for hour aggregation type
* @param {string} aggr_interval No more than 3 days for hour aggregation type
* @param {string} [date_after] No more than 3 months between date_after and date_before

@@ -76,3 +76,3 @@ * @param {string} [date_before] No more than 3 months between date_after and date_before

*/
getDataUsageStats(aggr_interval?: string, date_after?: string, date_before?: string, device_type__in?: Array<string>, device__in?: Array<string>, sort_by?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<AggregatedDataUsageStats>>>;
getDataUsageStats(aggr_interval: string, date_after?: string, date_before?: string, device_type__in?: Array<string>, device__in?: Array<string>, sort_by?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<AggregatedDataUsageStats>>>;
};

@@ -89,3 +89,3 @@ /**

* @summary Data Usage Stats
* @param {string} [aggr_interval] No more than 3 days for hour aggregation type
* @param {string} aggr_interval No more than 3 days for hour aggregation type
* @param {string} [date_after] No more than 3 months between date_after and date_before

@@ -100,3 +100,3 @@ * @param {string} [date_before] No more than 3 months between date_after and date_before

*/
getDataUsageStats(aggr_interval?: string, date_after?: string, date_before?: string, device_type__in?: Array<string>, device__in?: Array<string>, sort_by?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<AggregatedDataUsageStats>>>;
getDataUsageStats(aggr_interval: string, date_after?: string, date_before?: string, device_type__in?: Array<string>, device__in?: Array<string>, sort_by?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<Array<AggregatedDataUsageStats>>>;
}

@@ -91,3 +91,3 @@ "use strict";

* @summary Data Usage Stats
* @param {string} [aggr_interval] No more than 3 days for hour aggregation type
* @param {string} aggr_interval No more than 3 days for hour aggregation type
* @param {string} [date_after] No more than 3 months between date_after and date_before

@@ -106,2 +106,6 @@ * @param {string} [date_before] No more than 3 months between date_after and date_before

return __generator(this, function (_a) {
// verify required parameter 'aggr_interval' is not null or undefined
if (aggr_interval === null || aggr_interval === undefined) {
throw new base_1.RequiredError('aggr_interval', 'Required parameter aggr_interval was null or undefined when calling getDataUsageStats.');
}
localVarPath = "/analytics/data-usage/";

@@ -166,3 +170,3 @@ localVarUrlObj = new URL(localVarPath, 'https://example.com');

* @summary Data Usage Stats
* @param {string} [aggr_interval] No more than 3 days for hour aggregation type
* @param {string} aggr_interval No more than 3 days for hour aggregation type
* @param {string} [date_after] No more than 3 months between date_after and date_before

@@ -205,3 +209,3 @@ * @param {string} [date_before] No more than 3 months between date_after and date_before

* @summary Data Usage Stats
* @param {string} [aggr_interval] No more than 3 days for hour aggregation type
* @param {string} aggr_interval No more than 3 days for hour aggregation type
* @param {string} [date_after] No more than 3 months between date_after and date_before

@@ -238,3 +242,3 @@ * @param {string} [date_before] No more than 3 months between date_after and date_before

* @summary Data Usage Stats
* @param {string} [aggr_interval] No more than 3 days for hour aggregation type
* @param {string} aggr_interval No more than 3 days for hour aggregation type
* @param {string} [date_after] No more than 3 months between date_after and date_before

@@ -241,0 +245,0 @@ * @param {string} [date_before] No more than 3 months between date_after and date_before

@@ -17,4 +17,7 @@ /**

import { Bundle } from '../models';
import { CreateStripeSetupIntentRequest } from '../models';
import { PaymentMethod } from '../models';
import { PaymentOption } from '../models';
import { Product } from '../models';
import { StripeSetupIntent } from '../models';
import { Subscription } from '../models';

@@ -28,2 +31,18 @@ /**

*
* @summary Create stripe's setup intent for add new payment method.
* @param {CreateStripeSetupIntentRequest} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createPaymentMethodStripeSetupIntent: (body?: CreateStripeSetupIntentRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
*
* @summary Create stripe's setup intent for add new payment method.
* @param {string} [return_url]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createPaymentMethodStripeSetupIntentForm: (return_url?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
*
* @summary Bundle info

@@ -37,8 +56,8 @@ * @param {string} bundleID

*
* @summary Payment method info
* @param {string} paymentMethodID
* @summary Payment option info
* @param {string} paymentOptionID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getBillingPaymentMethod: (paymentMethodID: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
getBillingPaymentOption: (paymentOptionID: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**

@@ -54,2 +73,10 @@ *

*
* @summary Payment method info
* @param {string} paymentMethodID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getPaymentMethod: (paymentMethodID: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
*
* @summary Billing bundles list

@@ -69,7 +96,7 @@ * @param {*} [options] Override http request option.

*
* @summary Billing payment methods list
* @summary Billing payment option list
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listBillingPaymentMethods: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
listBillingPaymentOptions: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**

@@ -89,2 +116,9 @@ *

listBillingSubscriptions: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
*
* @summary Payment method list
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listPaymentMethods: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
};

@@ -98,2 +132,18 @@ /**

*
* @summary Create stripe's setup intent for add new payment method.
* @param {CreateStripeSetupIntentRequest} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createPaymentMethodStripeSetupIntent(body?: CreateStripeSetupIntentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<StripeSetupIntent>>>;
/**
*
* @summary Create stripe's setup intent for add new payment method.
* @param {string} [return_url]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createPaymentMethodStripeSetupIntentForm(return_url?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<StripeSetupIntent>>>;
/**
*
* @summary Bundle info

@@ -107,8 +157,8 @@ * @param {string} bundleID

*
* @summary Payment method info
* @param {string} paymentMethodID
* @summary Payment option info
* @param {string} paymentOptionID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getBillingPaymentMethod(paymentMethodID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaymentMethod>>>;
getBillingPaymentOption(paymentOptionID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaymentOption>>>;
/**

@@ -124,2 +174,10 @@ *

*
* @summary Payment method info
* @param {string} paymentMethodID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getPaymentMethod(paymentMethodID: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PaymentMethod>>>;
/**
*
* @summary Billing bundles list

@@ -139,7 +197,7 @@ * @param {*} [options] Override http request option.

*
* @summary Billing payment methods list
* @summary Billing payment option list
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listBillingPaymentMethods(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<PaymentMethod>>>>;
listBillingPaymentOptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<PaymentOption>>>>;
/**

@@ -159,2 +217,9 @@ *

listBillingSubscriptions(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<Subscription>>>>;
/**
*
* @summary Payment method list
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listPaymentMethods(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<Array<PaymentMethod>>>>;
};

@@ -168,2 +233,18 @@ /**

*
* @summary Create stripe's setup intent for add new payment method.
* @param {CreateStripeSetupIntentRequest} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createPaymentMethodStripeSetupIntent(body?: CreateStripeSetupIntentRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<StripeSetupIntent>>;
/**
*
* @summary Create stripe's setup intent for add new payment method.
* @param {string} [return_url]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createPaymentMethodStripeSetupIntentForm(return_url?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StripeSetupIntent>>;
/**
*
* @summary Bundle info

@@ -177,8 +258,8 @@ * @param {string} bundleID

*
* @summary Payment method info
* @param {string} paymentMethodID
* @summary Payment option info
* @param {string} paymentOptionID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getBillingPaymentMethod(paymentMethodID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaymentMethod>>;
getBillingPaymentOption(paymentOptionID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaymentOption>>;
/**

@@ -194,2 +275,10 @@ *

*
* @summary Payment method info
* @param {string} paymentMethodID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getPaymentMethod(paymentMethodID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaymentMethod>>;
/**
*
* @summary Billing bundles list

@@ -209,7 +298,7 @@ * @param {*} [options] Override http request option.

*
* @summary Billing payment methods list
* @summary Billing payment option list
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listBillingPaymentMethods(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<PaymentMethod>>>;
listBillingPaymentOptions(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<PaymentOption>>>;
/**

@@ -229,2 +318,9 @@ *

listBillingSubscriptions(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<Subscription>>>;
/**
*
* @summary Payment method list
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listPaymentMethods(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<PaymentMethod>>>;
};

@@ -240,2 +336,20 @@ /**

*
* @summary Create stripe's setup intent for add new payment method.
* @param {CreateStripeSetupIntentRequest} [body]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof BillingApi
*/
createPaymentMethodStripeSetupIntent(body?: CreateStripeSetupIntentRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<StripeSetupIntent>>;
/**
*
* @summary Create stripe's setup intent for add new payment method.
* @param {string} [return_url]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof BillingApi
*/
createPaymentMethodStripeSetupIntentForm(return_url?: string, options?: AxiosRequestConfig): Promise<AxiosResponse<StripeSetupIntent>>;
/**
*
* @summary Bundle info

@@ -250,4 +364,4 @@ * @param {string} bundleID

*
* @summary Payment method info
* @param {string} paymentMethodID
* @summary Payment option info
* @param {string} paymentOptionID
* @param {*} [options] Override http request option.

@@ -257,3 +371,3 @@ * @throws {RequiredError}

*/
getBillingPaymentMethod(paymentMethodID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaymentMethod>>;
getBillingPaymentOption(paymentOptionID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaymentOption>>;
/**

@@ -270,2 +384,11 @@ *

*
* @summary Payment method info
* @param {string} paymentMethodID
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof BillingApi
*/
getPaymentMethod(paymentMethodID: string, options?: AxiosRequestConfig): Promise<AxiosResponse<PaymentMethod>>;
/**
*
* @summary Billing bundles list

@@ -287,3 +410,3 @@ * @param {*} [options] Override http request option.

*
* @summary Billing payment methods list
* @summary Billing payment option list
* @param {*} [options] Override http request option.

@@ -293,3 +416,3 @@ * @throws {RequiredError}

*/
listBillingPaymentMethods(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<PaymentMethod>>>;
listBillingPaymentOptions(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<PaymentOption>>>;
/**

@@ -311,2 +434,10 @@ *

listBillingSubscriptions(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<Subscription>>>;
/**
*
* @summary Payment method list
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof BillingApi
*/
listPaymentMethods(options?: AxiosRequestConfig): Promise<AxiosResponse<Array<PaymentMethod>>>;
}

@@ -28,2 +28,3 @@ export * from './ad-placement';

export * from './create-or-update-port-forwarding-request';
export * from './create-stripe-setup-intent-request';
export * from './create-token-login';

@@ -49,2 +50,5 @@ export * from './currency';

export * from './payment-method';
export * from './payment-method-card';
export * from './payment-method-type';
export * from './payment-option';
export * from './play-store-purchase-verification-request';

@@ -58,2 +62,3 @@ export * from './port-forwarding';

export * from './stripe-payment-intent';
export * from './stripe-setup-intent';
export * from './subscription';

@@ -60,0 +65,0 @@ export * from './token-login';

@@ -40,2 +40,3 @@ "use strict";

__exportStar(require("./create-or-update-port-forwarding-request"), exports);
__exportStar(require("./create-stripe-setup-intent-request"), exports);
__exportStar(require("./create-token-login"), exports);

@@ -61,2 +62,5 @@ __exportStar(require("./currency"), exports);

__exportStar(require("./payment-method"), exports);
__exportStar(require("./payment-method-card"), exports);
__exportStar(require("./payment-method-type"), exports);
__exportStar(require("./payment-option"), exports);
__exportStar(require("./play-store-purchase-verification-request"), exports);

@@ -70,2 +74,3 @@ __exportStar(require("./port-forwarding"), exports);

__exportStar(require("./stripe-payment-intent"), exports);
__exportStar(require("./stripe-setup-intent"), exports);
__exportStar(require("./subscription"), exports);

@@ -72,0 +77,0 @@ __exportStar(require("./token-login"), exports);

@@ -12,2 +12,4 @@ /**

*/
import { PaymentMethodCard } from './payment-method-card';
import { PaymentMethodType } from './payment-method-type';
/**

@@ -27,18 +29,18 @@ *

*
* @type {string}
* @type {PaymentMethodType}
* @memberof PaymentMethod
*/
slug: string;
type: PaymentMethodType;
/**
*
* @type {string}
* @type {PaymentMethodCard}
* @memberof PaymentMethod
*/
name: string;
card?: PaymentMethodCard;
/**
*
* @type {string}
* @type {Date}
* @memberof PaymentMethod
*/
description?: string;
created_at: Date;
}

@@ -28,2 +28,3 @@ export * from './ad-placement';

export * from './create-or-update-port-forwarding-request';
export * from './create-stripe-setup-intent-request';
export * from './create-token-login';

@@ -49,2 +50,5 @@ export * from './currency';

export * from './payment-method';
export * from './payment-method-card';
export * from './payment-method-type';
export * from './payment-option';
export * from './play-store-purchase-verification-request';

@@ -58,2 +62,3 @@ export * from './port-forwarding';

export * from './stripe-payment-intent';
export * from './stripe-setup-intent';
export * from './subscription';

@@ -60,0 +65,0 @@ export * from './token-login';

@@ -14,2 +14,4 @@ /* tslint:disable */

*/
import { PaymentMethodCard } from './payment-method-card';
import { PaymentMethodType } from './payment-method-type';
/**

@@ -29,18 +31,18 @@ *

*
* @type {string}
* @type {PaymentMethodType}
* @memberof PaymentMethod
*/
slug: string;
type: PaymentMethodType;
/**
*
* @type {string}
* @type {PaymentMethodCard}
* @memberof PaymentMethod
*/
name: string;
card?: PaymentMethodCard;
/**
*
* @type {string}
* @type {Date}
* @memberof PaymentMethod
*/
description?: string;
created_at: Date;
}
{
"name": "@forestvpn/forestvpn_api",
"version": "3.2.8",
"version": "3.3.0",
"description": "A package to interact api.forestvpn.com (manage vpn profiles, check usage statistics, manage locations, ...)",

@@ -43,2 +43,2 @@ "author": "ForestVPN",

"homepage": "https://forestvpn.com/"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc