UNPKG

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.

48 lines (47 loc) 1.36 kB
import { PromotionType, PromotionVisibility, PromotionStatus, PromotionGames, GGEZGiftType, OrderStatus } from "../constants"; export type Amount = { amount: number; asset: string; }; export type LotteryPrize = { prize_name: string; prize_name_locale: string; prize_desc: string; prize_desc_locale: string; number_of_prizes: number; prize_amount: Amount; }; export type PromotionDetails = { id: number; code: string; name: string; locale_name: string; type: PromotionType; referral_code?: string; visibility: PromotionVisibility; status: PromotionStatus; start_date: string; end_date: string; allowed_participants: number; claimed_participants: number; total_promotion_amount: Amount; min_prize: number; max_prize: number; promotion_prizes: Amount[]; claimed_amounts: number; enabled_games: PromotionGames[]; enable_lottery: boolean; lottery_prizes?: LotteryPrize[]; }; export type SocialMediaPlatform = "twitter" | "instagram" | "facebook" | "linkedin" | "youtube"; export interface Gift { id: number; promotion_id: number; promotion_code: string; type: GGEZGiftType; order_status: OrderStatus; formatted_claimed_date: string; claimed_date: string; claimed_prize_amount: number; claimed_prize_asset: string; }