// package: xrc.ecnova.accounting.v1 // file: api/ecnova/accounting/v1/accounting_proto/transaction.proto import * as jspb from "google-protobuf"; import * as google_type_money_pb from "../../../../../google/type/money_pb"; import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb"; import * as api_ecnova_accounting_v1_accounting_proto_line_item_pb from "../../../../../api/ecnova/accounting/v1/accounting_proto/line_item_pb"; export class Transaction extends jspb.Message { getName(): string; setName(value: string): void; getAccount(): string; setAccount(value: string): void; clearLineItemsList(): void; getLineItemsList(): Array; setLineItemsList(value: Array): void; addLineItems(value?: api_ecnova_accounting_v1_accounting_proto_line_item_pb.LineItem, index?: number): api_ecnova_accounting_v1_accounting_proto_line_item_pb.LineItem; hasTradeTime(): boolean; clearTradeTime(): void; getTradeTime(): google_protobuf_timestamp_pb.Timestamp | undefined; setTradeTime(value?: google_protobuf_timestamp_pb.Timestamp): void; hasTaxExclusiveGrandTotal(): boolean; clearTaxExclusiveGrandTotal(): void; getTaxExclusiveGrandTotal(): google_type_money_pb.Money | undefined; setTaxExclusiveGrandTotal(value?: google_type_money_pb.Money): void; hasTaxInclusiveGrandTotal(): boolean; clearTaxInclusiveGrandTotal(): void; getTaxInclusiveGrandTotal(): google_type_money_pb.Money | undefined; setTaxInclusiveGrandTotal(value?: google_type_money_pb.Money): void; getType(): Transaction.Type; setType(value: Transaction.Type): void; getConfirmed(): boolean; setConfirmed(value: boolean): void; hasConfirmTime(): boolean; clearConfirmTime(): void; getConfirmTime(): google_protobuf_timestamp_pb.Timestamp | undefined; setConfirmTime(value?: google_protobuf_timestamp_pb.Timestamp): void; clearLineItemIdsList(): void; getLineItemIdsList(): Array; setLineItemIdsList(value: Array): void; addLineItemIds(value: string, index?: number): string; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Transaction.AsObject; static toObject(includeInstance: boolean, msg: Transaction): Transaction.AsObject; static fromObject(obj: Transaction.AsObject): Transaction; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; static serializeBinaryToWriter(message: Transaction, writer: jspb.BinaryWriter): void; static deserializeBinary(bytes: Uint8Array): Transaction; static deserializeBinaryFromReader(message: Transaction, reader: jspb.BinaryReader): Transaction; } export namespace Transaction { export type AsObject = { name: string, account: string, lineItemsList: Array, tradeTime?: google_protobuf_timestamp_pb.Timestamp.AsObject, taxExclusiveGrandTotal?: google_type_money_pb.Money.AsObject, taxInclusiveGrandTotal?: google_type_money_pb.Money.AsObject, type: Transaction.Type, confirmed: boolean, confirmTime?: google_protobuf_timestamp_pb.Timestamp.AsObject, lineItemIdsList: Array, } export enum Type { TYPE_UNSPECIFIED = 0, RECEIVABLE = 1, PAYABLE = 2, } export enum View { BASIC = 0, FULL = 1, } }