mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
23 lines
509 B
TypeScript
23 lines
509 B
TypeScript
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
|
|
import { ObjectType, Field } from 'type-graphql'
|
|
import Decimal from 'decimal.js-light'
|
|
|
|
@ObjectType()
|
|
export class Balance {
|
|
constructor(json: any) {
|
|
this.balance = json.balance
|
|
this.decay = json.decay
|
|
this.decayDate = json.decay_date
|
|
}
|
|
|
|
@Field(() => Decimal)
|
|
balance: Decimal
|
|
|
|
@Field(() => Decimal)
|
|
decay: Decimal
|
|
|
|
@Field(() => Date)
|
|
decayDate: Date
|
|
}
|