ggez-banking-sdk
Version:
A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.
25 lines (24 loc) • 709 B
JavaScript
import { Endpoints } from "../../constant/constant";
import { BaseService } from "./baseService";
class PromotionService extends BaseService {
endpoint = Endpoints.Promotion;
constructor(data) {
super(data);
}
// #region "GET"
getPromotionByCode(promotionCode) {
const url = this.resolveURL(`/${promotionCode}`);
return this.GET(url);
}
getTwitterSpotlightPostIds() {
const url = this.resolveURL("/spotlight/twitter");
return this.GET(url);
}
// #endregion
// #region "PUT"
incrementPromotionParticipants(data) {
const url = this.resolveURL();
return this.PUT(url, data);
}
}
export { PromotionService };