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.
21 lines (20 loc) • 566 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Policies = void 0;
const infrastructure_1 = require("../infrastructure");
/**
* A service for reading a shop's policies.
*/
class Policies extends infrastructure_1.BaseService {
constructor(shopDomain, accessToken) {
super(shopDomain, accessToken, "policies");
}
/**
* Gets a list of the shop's policies.
*/
list() {
return this.createRequest("GET", ".json", "policies");
}
}
exports.Policies = Policies;
exports.default = Policies;