@shopify/shopify-api
Version:
Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks
63 lines (60 loc) • 2.31 kB
JavaScript
import { Base } from '../../base.mjs';
import { ApiVersion } from '../../../lib/types.mjs';
/***********************************************************************************************************************
* This file is auto-generated. If you have an issue, please create a GitHub issue. *
***********************************************************************************************************************/
class CarrierService extends Base {
static apiVersion = ApiVersion.January24;
static hasOne = {};
static hasMany = {};
static paths = [
{ "http_method": "delete", "operation": "delete", "ids": ["id"], "path": "carrier_services/<id>.json" },
{ "http_method": "get", "operation": "get", "ids": [], "path": "carrier_services.json" },
{ "http_method": "get", "operation": "get", "ids": ["id"], "path": "carrier_services/<id>.json" },
{ "http_method": "post", "operation": "post", "ids": [], "path": "carrier_services.json" },
{ "http_method": "put", "operation": "put", "ids": ["id"], "path": "carrier_services/<id>.json" }
];
static resourceNames = [
{
"singular": "carrier_service",
"plural": "carrier_services"
}
];
static async find({ session, id }) {
const result = await this.baseFind({
session: session,
requireIds: true,
urlIds: { "id": id },
params: {},
});
return result.data ? result.data[0] : null;
}
static async delete({ session, id }) {
const response = await this.request({
http_method: "delete",
operation: "delete",
session: session,
urlIds: { "id": id },
params: {},
});
return response ? response.body : null;
}
static async all({ session, ...otherArgs }) {
const response = await this.baseFind({
session: session,
urlIds: {},
params: { ...otherArgs },
});
return response;
}
active;
admin_graphql_api_id;
callback_url;
carrier_service_type;
format;
id;
name;
service_discovery;
}
export { CarrierService };
//# sourceMappingURL=carrier_service.mjs.map