baasic-sdk-javascript
Version:
JavaScript SDK provides core functionality for building web and mobile applications on [Baasic](http://www.baasic.com/).
63 lines (62 loc) • 3.2 kB
TypeScript
/**
* @module commercePaymentMethodBatchClient
* @description Commerce Payment Method Batch Client provides an easy way to consume Commerce REST API end-points. In order to obtain a needed routes `commercePaymentMethodBatchClient` uses `commercePaymentMethodBatchRoute`.
*/
import { ApiClient, IHttpResponse } from '../../../../httpApi';
import { CommerceLookupsPaymentMethodBatchRoute } from '../../';
export declare class CommerceLookupsPaymentMethodBatchClient {
protected commerceLookupsPaymentMethodBatchRoute: CommerceLookupsPaymentMethodBatchRoute;
protected apiClient: ApiClient;
readonly routeDefinition: CommerceLookupsPaymentMethodBatchRoute;
constructor(commerceLookupsPaymentMethodBatchRoute: CommerceLookupsPaymentMethodBatchRoute, apiClient: ApiClient);
/**
* Returns a promise that is resolved once the create commerce action has been performed; this action creates a new commerce resources.
* @method
* @example commerceLookupsPaymentMethodBatchClient.create([{
name : '<name>',
abrv: '<abbreviation>',
description: '<description>',
published: '<published>'
}])
.then(function (data) {
// perform success action here
},
function (response, status, headers, config) {
// perform error handling here
});
**/
create(data: any): PromiseLike<IHttpResponse<any>>;
/**
* Returns a promise that is resolved once the update commerce action has been performed; this action updates specified commerce resources.
* @method
* @example commerceLookupsPaymentMethodBatchClient.update(commercePaymentMethods)
.then(function (data) {
// perform success action here
},
function (response, status, headers, config) {
// perform error handling here
});
**/
update(data: any): PromiseLike<IHttpResponse<void>>;
/**
* Returns a promise that is resolved once the remove commerce action has been performed. This action will remove commerce resources from the system if successfully completed.
* @method
* @example commerceLookupsPaymentMethodBatchClient.remove(commercePaymentMethodIds)
.then(function (data) {
// perform success action here
},
function (response, status, headers, config) {
// perform error handling here
});
**/
remove(ids: string[]): PromiseLike<IHttpResponse<void>>;
}
/**
* @copyright (c) 2017 Mono Ltd
* @license MIT
* @author Mono Ltd
* @overview
***Notes:**
- Refer to the [Baasic REST API](http://dev.baasic.com/api/reference/home) for detailed information about available Baasic REST API end-points.
- All end-point objects are transformed by the associated route service.
*/