UNPKG

wallee

Version:
82 lines (81 loc) 3.03 kB
import http = require("http"); import Promise = require("bluebird"); import { Authentication } from '../auth/Authentication'; import { EntityQuery } from '../models/EntityQuery'; import { EntityQueryFilter } from '../models/EntityQueryFilter'; import { SubscriptionCharge } from '../models/SubscriptionCharge'; import { SubscriptionChargeCreate } from '../models/SubscriptionChargeCreate'; declare class SubscriptionChargeService { protected _basePath: string; protected _defaultHeaders: any; protected _useQuerystring: boolean; protected _timeout: number; protected _defaultAuthentication: Authentication; constructor(configuration: any); /** * Set timeout in seconds. Default timeout: 25 seconds * @param {number} timeout */ set timeout(timeout: number); private setTimeout; set basePath(basePath: string); get basePath(): string; protected setDefaultAuthentication(auth: Authentication): void; private getVersion; /** * Counts the number of items in the database as restricted by the given filter. * @summary Count * @param spaceId * @param filter The filter which restricts the entities which are used to calculate the count. * @param {*} [options] Override http request options. */ count(spaceId: number, filter?: EntityQueryFilter, options?: any): Promise<{ response: http.IncomingMessage; body: number; }>; /** * The create operation creates a new subscription charge. * @summary Create * @param spaceId * @param charge * @param {*} [options] Override http request options. */ create(spaceId: number, charge: SubscriptionChargeCreate, options?: any): Promise<{ response: http.IncomingMessage; body: SubscriptionCharge; }>; /** * This operation allows to discard a scheduled charge. * @summary discard * @param spaceId * @param chargeId * @param {*} [options] Override http request options. */ discard(spaceId: number, chargeId: number, options?: any): Promise<{ response: http.IncomingMessage; body: SubscriptionCharge; }>; /** * Reads the entity with the given 'id' and returns it. * @summary Read * @param spaceId * @param id The id of the subscription charge which should be returned. * @param {*} [options] Override http request options. */ read(spaceId: number, id: number, options?: any): Promise<{ response: http.IncomingMessage; body: SubscriptionCharge; }>; /** * Searches for the entities as specified by the given query. * @summary Search * @param spaceId * @param query The query restricts the subscription charges which are returned by the search. * @param {*} [options] Override http request options. */ search(spaceId: number, query: EntityQuery, options?: any): Promise<{ response: http.IncomingMessage; body: Array<SubscriptionCharge>; }>; } export { SubscriptionChargeService };