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.
24 lines (23 loc) • 780 B
JavaScript
import { PromotionService } from "../service/promotionService";
import { BaseProxy } from "./baseProxy";
class PromotionProxy extends BaseProxy {
promotionService;
constructor(data) {
super(data);
this.promotionService = new PromotionService(data);
}
// #region "GET"
getPromotionByCode = async (code) => {
return this.promotionService.getPromotionByCode(code);
};
getTwitterSpotlightPostIds = async () => {
return this.promotionService.getTwitterSpotlightPostIds();
};
// #endregion
// #region "PUT"
incrementPromotionParticipants = async (data) => {
const giftRewards = data;
return this.promotionService.incrementPromotionParticipants(giftRewards);
};
}
export { PromotionProxy };