mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
19 lines
488 B
TypeScript
19 lines
488 B
TypeScript
import { TransactionType } from '../graphql/enum/TransactionType'
|
|
import { Field, Message } from '@apollo/protobufjs'
|
|
|
|
// https://www.npmjs.com/package/@apollo/protobufjs
|
|
// eslint-disable-next-line no-use-before-define
|
|
export class TransactionBody extends Message<TransactionBody> {
|
|
@Field.d(1, TransactionType)
|
|
type: TransactionType
|
|
|
|
@Field.d(2, 'string')
|
|
amount: string
|
|
|
|
@Field.d(3, 'uint64')
|
|
createdAt: number
|
|
|
|
// @protoField.d(4, 'string')
|
|
// communitySum: Decimal
|
|
}
|