inventora-shopify-admin-api
Version:
Shopify Admin API is a NodeJS library built to help developers easily authenticate and make calls against the Shopify API. It was inspired by and borrows heavily from ShopifySharp.
33 lines (32 loc) • 1.09 kB
TypeScript
import { CarrierService } from '../interfaces';
import { BaseService } from '../infrastructure';
/**
* A service for manipulating Shopify's CarrierService API.
*/
export declare class CarrierServices extends BaseService {
constructor(shopDomain: string, accessToken: string);
/**
* Creates a new Carrier Service.
*/
create(carrierService: Partial<CarrierService>): Promise<CarrierService>;
/**
* Updates a new Carrier Service.
*/
update(id: number, carrierService: Partial<CarrierService>): Promise<CarrierService>;
/**
* Gets a carrier service with the given id.
* @param id The id of the carrier servuce to get.
*/
get(id: number): Promise<CarrierService>;
/**
* Deletes a carrier service with the given id.
* @param id The id of the carrier service to delete.
* @return Promise<{}> returns an empty object on success
*/
delete(id: number): Promise<{}>;
/**
* Retrieves a list of carrier services for the shop.
*/
list(): Promise<CarrierService>;
}
export default CarrierServices;