1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 11:58:13 +00:00

chore: fmt

This commit is contained in:
James Cook 2023-09-18 20:52:01 +01:00
parent 41f23e01d0
commit 821a5c26ea
2 changed files with 30 additions and 38 deletions

View file

@ -59,8 +59,9 @@ export class StudentClient extends BaseClient {
const user = await this.getStudentInfo();
this.studentId = user.data.user.id;
}
/**
* Gets the current student's rewards shop
* Gets the available items in the current student's rewards shop
* @returns Array of purchasable items
*/
async getRewards(): Promise<RewardsResponse> {
@ -73,10 +74,11 @@ export class StudentClient extends BaseClient {
)
);
}
/**
* Purchase a reward item from the current student's rewards shop
* @param itemId number
* @returns An object containg balence and id
* @returns An object containing the current student's balance and item ID purchased
*/
async purchaseReward(itemId: number): Promise<RewardPurchaseResponse> {
return (