@accounter/green-invoice-graphql 0.8.2-alpha-20251102090006-19af6733a3520f285296a817bc4c06801e8a37b4 → 0.8.2-alpha-20251102160658-6d41b0a7bb225382246645badf39a28bcd8102e1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,166 +7,173 @@ directive @enum(subgraph: String, value: String) on ENUM_VALUE
7
7
 
8
8
  directive @resolveRoot(subgraph: String) on FIELD_DEFINITION
9
9
 
10
- directive @resolveRootField(subgraph: String, field: String) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
10
+ directive @example(subgraph: String, value: ObjMap) repeatable on FIELD_DEFINITION | OBJECT | INPUT_OBJECT | ENUM | SCALAR
11
11
 
12
12
  directive @statusCodeTypeName(subgraph: String, typeName: String, statusCode: String) repeatable on UNION
13
13
 
14
- directive @example(subgraph: String, value: ObjMap) repeatable on FIELD_DEFINITION | OBJECT | INPUT_OBJECT | ENUM | SCALAR
15
-
16
14
  directive @httpOperation(subgraph: String, path: String, operationSpecificHeaders: [[String]], httpMethod: HTTPMethod, isBinary: Boolean, requestBaseBody: ObjMap, queryParamArgMap: ObjMap, queryStringOptionsByParam: ObjMap, jsonApiFields: Boolean, queryStringOptions: ObjMap) on FIELD_DEFINITION
17
15
 
18
16
  directive @transport(subgraph: String, kind: String, location: String, headers: [[String]], queryStringOptions: ObjMap, queryParams: [[String]]) repeatable on SCHEMA
19
17
 
18
+ directive @resolveRootField(subgraph: String, field: String) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
19
+
20
20
  directive @typescript(subgraph: String, type: String) on SCALAR | ENUM
21
21
 
22
22
  type Query {
23
- previewDocument(input: DocumentInputNew_Input): previewDocumentResponse @httpOperation(subgraph: "GreenInvoice", path: "/documents/preview", httpMethod: POST)
24
- getExpense(id: String!): GetExpense @httpOperation(subgraph: "GreenInvoice", path: "/expenses/{args.id}", httpMethod: GET)
25
- searchExpenses(input: searchExpensesRequest_Input): searchExpensesResponse @httpOperation(subgraph: "GreenInvoice", path: "/expenses/search", httpMethod: POST)
26
- searchDocuments(input: searchDocumentsRequest_Input): searchDocumentsResponse @httpOperation(subgraph: "GreenInvoice", path: "/documents/search", httpMethod: POST)
27
- searchExpenseDrafts(input: searchExpenseDraftsRequest_Input): searchExpenseDrafts_response @httpOperation(subgraph: "GreenInvoice", path: "/expenses/drafts/search", httpMethod: POST)
28
- getDocument(id: String!): Document @httpOperation(subgraph: "GreenInvoice", path: "/documents/{args.id}", httpMethod: GET)
29
- getLinkedDocuments(id: String!): GetLinkedDocuments @httpOperation(subgraph: "GreenInvoice", path: "/documents/{args.id}/linked", httpMethod: GET)
30
- getClient(id: String!): getClientResponse @httpOperation(subgraph: "GreenInvoice", path: "/clients/{args.id}", httpMethod: GET)
31
- getFileUploadUrl(context: String, data: queryInput_getFileUploadUrl_data_Input): getFileUploadUrlResponse @httpOperation(subgraph: "GreenInvoiceNew", path: "/file-upload/v1/url", httpMethod: GET, queryParamArgMap: "{\"context\":\"context\",\"data\":\"data\"}", queryStringOptions: "{\"jsonStringify\":true}")
32
- getBankTransactions(valueDate: queryInput_getBankTransactions_valueDate_Input, from: Float, size: Float, bookingStatus: String): getBankTransactionsResponse @httpOperation(subgraph: "GreenInvoiceNew", path: "/open-banking/v2/transactions", httpMethod: GET, queryParamArgMap: "{\"valueDate\":\"valueDate\",\"from\":\"from\",\"size\":\"size\",\"bookingStatus\":\"bookingStatus\"}", queryStringOptions: "{\"indices\":true,\"arrayFormat\":\"brackets\"}")
23
+ getDocument(id: String!): _DOLLAR_defs_Document @httpOperation(subgraph: "GreenInvoice", path: "/documents/{args.id}", httpMethod: GET)
24
+ searchDocuments(input: _DOLLAR_defs_searchDocumentsRequest_Input): _DOLLAR_defs_searchDocumentsResponse @httpOperation(subgraph: "GreenInvoice", path: "/documents/search", httpMethod: POST)
25
+ previewDocument(input: _DOLLAR_defs_DocumentInputNew_Input): _DOLLAR_defs_previewDocumentResponse @httpOperation(subgraph: "GreenInvoice", path: "/documents/preview", httpMethod: POST)
26
+ getLinkedDocuments(id: String!): _DOLLAR_defs_GetLinkedDocuments @httpOperation(subgraph: "GreenInvoice", path: "/documents/{args.id}/linked", httpMethod: GET)
27
+ getExpense(id: String!): _DOLLAR_defs_GetExpense @httpOperation(subgraph: "GreenInvoice", path: "/expenses/{args.id}", httpMethod: GET)
28
+ searchExpenses(input: _DOLLAR_defs_searchExpensesRequest_Input): _DOLLAR_defs_searchExpensesResponse @httpOperation(subgraph: "GreenInvoice", path: "/expenses/search", httpMethod: POST)
29
+ searchExpenseDrafts(input: _DOLLAR_defs_searchExpenseDraftsRequest_Input): searchExpenseDrafts_response @httpOperation(subgraph: "GreenInvoice", path: "/expenses/drafts/search", httpMethod: POST)
30
+ getClient(id: String!): _DOLLAR_defs_getClientResponse @httpOperation(subgraph: "GreenInvoice", path: "/clients/{args.id}", httpMethod: GET)
31
+ getFileUploadUrl(context: String, data: queryInput_getFileUploadUrl_data_Input): _DOLLAR_defs_getFileUploadUrlResponse @httpOperation(subgraph: "GreenInvoiceNew", path: "/file-upload/v1/url", httpMethod: GET, queryParamArgMap: "{\"context\":\"context\",\"data\":\"data\"}", queryStringOptions: "{\"jsonStringify\":true}")
32
+ getBankTransactions(valueDate: queryInput_getBankTransactions_valueDate_Input, from: Float, size: Float, bookingStatus: String): _DOLLAR_defs_getBankTransactionsResponse @httpOperation(subgraph: "GreenInvoiceNew", path: "/open-banking/v2/transactions", httpMethod: GET, queryParamArgMap: "{\"valueDate\":\"valueDate\",\"from\":\"from\",\"size\":\"size\",\"bookingStatus\":\"bookingStatus\"}", queryStringOptions: "{\"indices\":true,\"arrayFormat\":\"brackets\"}")
33
33
  }
34
34
 
35
35
  type Mutation {
36
- addExpense(input: Expense_Input): addExpenseResponse @httpOperation(subgraph: "GreenInvoice", path: "/expenses", httpMethod: POST)
37
- addDocument(input: addDocumentRequest_Input): addDocumentResponse @httpOperation(subgraph: "GreenInvoice", path: "/documents", httpMethod: POST)
38
- updateExpense(id: String, input: updateExpenseRequest_Input): updateExpenseResponse @httpOperation(subgraph: "GreenInvoice", path: "/expenses/{args.id}", httpMethod: PUT)
39
- addExpenseDraftByFile(input: addExpenseDraftByFileRequest_Input): addExpenseDraftByFile_response @httpOperation(subgraph: "GreenInvoice", path: "/expenses/file", httpMethod: POST)
36
+ addDocument(
37
+ """Add a document to the current business"""
38
+ input: _DOLLAR_defs_addDocumentRequest_Input
39
+ ): _DOLLAR_defs_addDocumentResponse @httpOperation(subgraph: "GreenInvoice", path: "/documents", httpMethod: POST)
40
40
  closeDocument(id: String!): JSON @httpOperation(subgraph: "GreenInvoice", path: "/documents/{args.id}/close", httpMethod: POST)
41
+ addExpense(input: JSON): _DOLLAR_defs_addExpenseResponse @httpOperation(subgraph: "GreenInvoice", path: "/expenses", httpMethod: POST)
42
+ updateExpense(id: String, input: _DOLLAR_defs_updateExpenseRequest_Input): _DOLLAR_defs_updateExpenseResponse @httpOperation(subgraph: "GreenInvoice", path: "/expenses/{args.id}", httpMethod: PUT)
43
+ addExpenseDraftByFile(input: _DOLLAR_defs_addExpenseDraftByFileRequest_Input): addExpenseDraftByFile_response @httpOperation(subgraph: "GreenInvoice", path: "/expenses/file", httpMethod: POST)
44
+ addClient(
45
+ """Add a new client to the current business"""
46
+ input: _DOLLAR_defs_addClientRequest_Input
47
+ ): _DOLLAR_defs_addClientResponse @httpOperation(subgraph: "GreenInvoice", path: "/clients", httpMethod: POST)
48
+ updateClient(id: String!, input: _DOLLAR_defs_updateClientRequest_Input): _DOLLAR_defs_updateClientResponse @httpOperation(subgraph: "GreenInvoice", path: "/clients/{args.id}", httpMethod: PUT)
49
+ deleteClient(id: String!): _DOLLAR_defs_deleteClientResponse @httpOperation(subgraph: "GreenInvoice", path: "/clients/{args.id}", httpMethod: DELETE)
41
50
  }
42
51
 
43
- union previewDocumentResponse = query_previewDocument_oneOf_0 | ErrorResponse
44
-
45
- type query_previewDocument_oneOf_0 {
46
- """Preview document file in Base64"""
47
- file: String!
48
- }
49
-
50
- """Error"""
51
- type ErrorResponse {
52
- errorCode: Float
53
- errorMessage: String
54
- }
55
-
56
- input DocumentInputNew_Input {
52
+ """A Single Document"""
53
+ type _DOLLAR_defs_Document {
54
+ """
55
+ Total amount, in requested currency (including the VAT, Discount & Rounding)
56
+ """
57
+ amount: NonNegativeFloat!
58
+ """
59
+ Amount due VAT - Amount before VAT, and before rounding & discount (if requested)
60
+ """
61
+ amountDueVat: NonNegativeFloat!
62
+ """Amount due VAT - local currency"""
63
+ amountDueVatLocal: NonNegativeFloat!
64
+ """Amount excluded VAT - Amount that is excluded of VAT"""
65
+ amountExcludeVat: NonNegativeFloat!
66
+ """
67
+ Amount exempt VAT - 0 unless there's one or more items that are excluded of VAT such as mixed documents (that have both VAT excluded & included items)
68
+ """
69
+ amountExemptVat: NonNegativeFloat!
70
+ """Amount in local currency"""
71
+ amountLocal: NonNegativeFloat!
72
+ """
73
+ Amount that is still left to be paid, exists only in payment request documents
74
+ """
75
+ amountOpened: NonNegativeFloat!
76
+ business: _DOLLAR_defs_Business!
77
+ calculatedAmountLocal: Float!
78
+ calculatedAmountOpenedLocal: Float!
79
+ calculatedIncomeAmountExcludeLocal: Float!
80
+ calculatedIncomeAmountLocal: Float!
81
+ calculatedPaymentAmountLocal: Float!
82
+ cancellable: Boolean!
83
+ cancelType: Float
84
+ client: query_getDocument_client!
85
+ """The creation date, in UNIX timestamp format"""
86
+ creationDate: NonNegativeInt!
87
+ currency: _DOLLAR_defs_Currency!
88
+ """Currency rate relative to ILS"""
89
+ currencyRate: NonNegativeFloat!
90
+ data: _DOLLAR_defs_DocumentData!
57
91
  """Document's description"""
58
- description: String
59
- remarks: String
92
+ description: NonEmptyString!
93
+ """Document reference date"""
94
+ documentDate: Date!
95
+ downloaded: Boolean!
60
96
  """Texts appearing in footer"""
61
97
  footer: String
62
- type: DocumentType!
63
- """Document date in the format YYYY-MM-DD"""
64
- date: String
65
- """Document payment due date in the format YYYY-MM-DD"""
66
- dueDate: String
67
- lang: DocumentLang!
68
- currency: Currency!
69
- vatType: VatType!
70
- discount: DocumentDiscount_Input
98
+ """Document ID"""
99
+ id: String!
100
+ income: [_DOLLAR_defs_Income]!
101
+ lang: _DOLLAR_defs_DocumentLang!
102
+ linkedDocuments: [_DOLLAR_defs_DocumentLinkedDocument]
103
+ """Document tax number"""
104
+ number: String!
105
+ payment: [_DOLLAR_defs_PaymentDocument]!
106
+ ref: [Float]!
107
+ remarks: String
108
+ reverseCharge: Boolean!
71
109
  """Round the amounts"""
72
- rounding: Boolean
110
+ rounding: Boolean!
73
111
  """Digital sign the document"""
74
- signed: Boolean
75
- """Max payments allowed (valid only on supported accounts)"""
76
- maxPayments: Int
77
- client: mutationInput_addDocument_input_allOf_0_client_Input
78
- income: [Income_Input]
79
- payment: [PaymentDocument_Input]
80
- """
81
- Linked document IDs. allows you to state the related / relevant documents, e.g.: when creating a receipt, attach your original invoice document ID as one of the ids in the linkedDocumentIds - this in turn will automatically close the original invoice if needed.
82
- """
83
- linkedDocumentIds: [String]
84
- """
85
- Linked payment ID (valid for document type 305 only). allows you to define the paymentId that the document is going to be relevant to, this can be attached only to invoice documents (type 305).
86
- """
87
- linkedPaymentId: String
88
- linkType: mutationInput_addDocument_input_allOf_0_linkType
112
+ signed: Boolean!
113
+ skinId: Float!
114
+ """Document status"""
115
+ status: Float!
116
+ taxConfirmationEligible: Boolean!
117
+ templateId: Float!
118
+ type: _DOLLAR_defs_DocumentType!
119
+ url: _DOLLAR_defs_Url!
120
+ userName: String
121
+ """VAT amount"""
122
+ vat: NonNegativeFloat!
123
+ vatLocal: Float
124
+ """VAT rate"""
125
+ vatRate: NonNegativeFloat!
126
+ vatType: _DOLLAR_defs_VatType!
89
127
  }
90
128
 
91
- """Document type"""
92
- enum DocumentType {
93
- _10 @enum(subgraph: "GreenInvoice", value: "10")
94
- _100 @enum(subgraph: "GreenInvoice", value: "100")
95
- _200 @enum(subgraph: "GreenInvoice", value: "200")
96
- _210 @enum(subgraph: "GreenInvoice", value: "210")
97
- _300 @enum(subgraph: "GreenInvoice", value: "300")
98
- _305 @enum(subgraph: "GreenInvoice", value: "305")
99
- _320 @enum(subgraph: "GreenInvoice", value: "320")
100
- _330 @enum(subgraph: "GreenInvoice", value: "330")
101
- _400 @enum(subgraph: "GreenInvoice", value: "400")
102
- _405 @enum(subgraph: "GreenInvoice", value: "405")
103
- _500 @enum(subgraph: "GreenInvoice", value: "500")
104
- _600 @enum(subgraph: "GreenInvoice", value: "600")
105
- _610 @enum(subgraph: "GreenInvoice", value: "610")
106
- }
129
+ """Floats that will have a value of 0 or more."""
130
+ scalar NonNegativeFloat
107
131
 
108
- """Document language"""
109
- enum DocumentLang {
110
- en
111
- he
132
+ type _DOLLAR_defs_Business {
133
+ accountantDocsEmailSettings: Float!
134
+ accountantEmails: [JSON]!
135
+ accountantReportEmailSettings: Float!
136
+ accountingType: Float!
137
+ active: Boolean!
138
+ advanceNationalInsuranceRate: Float!
139
+ advanceTaxRate: Float!
140
+ bankDisplay: Boolean!
141
+ bankDisplayEn: Boolean!
142
+ deductionRate: Float!
143
+ documentsEmailSettings: Float!
144
+ emailSubjectType: Float!
145
+ """Is the business exemption free or not"""
146
+ exemption: Boolean!
147
+ incomeReportEmailSettings: Float!
148
+ incomeReportFormatType: Float!
149
+ reportSendingDay: Float!
150
+ senderEmailSettings: Float!
151
+ type: query_getDocument_business_type!
112
152
  }
113
153
 
114
- """3-letter ISO item currency code"""
115
- enum Currency {
116
- ILS
117
- USD
118
- EUR
119
- GBP
120
- JPY
121
- CHF
122
- CNY
123
- AUD
124
- CAD
125
- RUB
126
- BRL
127
- HKD
128
- SGD
129
- THB
130
- MXN
131
- TRY
132
- NZD
133
- SEK
134
- NOK
135
- DKK
136
- KRW
137
- INR
138
- IDR
139
- PLN
140
- RON
141
- ZAR
142
- HRK
143
- }
154
+ """
155
+ The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
156
+ """
157
+ scalar JSON @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
144
158
 
145
- """VAT type"""
146
- enum VatType @example(subgraph: "GreenInvoice", value: "0") {
147
- _0 @enum(subgraph: "GreenInvoice", value: "0")
159
+ """The business type ID"""
160
+ enum query_getDocument_business_type {
148
161
  _1 @enum(subgraph: "GreenInvoice", value: "1")
149
162
  _2 @enum(subgraph: "GreenInvoice", value: "2")
163
+ _3 @enum(subgraph: "GreenInvoice", value: "3")
164
+ _4 @enum(subgraph: "GreenInvoice", value: "4")
165
+ _5 @enum(subgraph: "GreenInvoice", value: "5")
166
+ _6 @enum(subgraph: "GreenInvoice", value: "6")
150
167
  }
151
168
 
152
- """Discount information"""
153
- input DocumentDiscount_Input {
154
- amount: Float!
155
- type: mutationInput_addDocument_input_allOf_0_discount_type!
156
- }
157
-
158
- """Discount amount type"""
159
- enum mutationInput_addDocument_input_allOf_0_discount_type {
160
- sum
161
- percentage
162
- }
163
-
164
- input mutationInput_addDocument_input_allOf_0_client_Input {
165
- country: Country
166
- emails: [String]
167
- id: JSON!
169
+ type query_getDocument_client {
170
+ country: _DOLLAR_defs_Country
171
+ """List of email addresses"""
172
+ emails: [EmailAddress]
173
+ """The client ID"""
174
+ id: UUID
168
175
  """The client name"""
169
- name: String
176
+ name: NonEmptyString
170
177
  phone: String
171
178
  """The client tax ID"""
172
179
  taxId: String
@@ -184,10 +191,11 @@ input mutationInput_addDocument_input_allOf_0_client_Input {
184
191
  mobile: String
185
192
  """Add a temporary client to the clients' list"""
186
193
  add: Boolean
194
+ JSON: JSON @resolveRoot(subgraph: "GreenInvoice")
187
195
  }
188
196
 
189
197
  """2-letter ISO supplier country code, default is IL"""
190
- enum Country {
198
+ enum _DOLLAR_defs_Country {
191
199
  UG
192
200
  UZ
193
201
  AT
@@ -441,44 +449,143 @@ enum Country {
441
449
  }
442
450
 
443
451
  """
444
- The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
452
+ A field whose value conforms to the standard internet email address format as specified in HTML Spec: https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address.
445
453
  """
446
- scalar JSON @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
454
+ scalar EmailAddress @specifiedBy(url: "https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address")
455
+
456
+ """
457
+ A field whose value is a generic Universally Unique Identifier: https://en.wikipedia.org/wiki/Universally_unique_identifier.
458
+ """
459
+ scalar UUID
460
+
461
+ """A string that cannot be passed as an empty value"""
462
+ scalar NonEmptyString
463
+
464
+ """Integers that will have a value of 0 or more."""
465
+ scalar NonNegativeInt
466
+
467
+ """3-letter ISO item currency code"""
468
+ enum _DOLLAR_defs_Currency {
469
+ ILS
470
+ USD
471
+ EUR
472
+ GBP
473
+ JPY
474
+ CHF
475
+ CNY
476
+ AUD
477
+ CAD
478
+ RUB
479
+ BRL
480
+ HKD
481
+ SGD
482
+ THB
483
+ MXN
484
+ TRY
485
+ NZD
486
+ SEK
487
+ NOK
488
+ DKK
489
+ KRW
490
+ INR
491
+ IDR
492
+ PLN
493
+ RON
494
+ ZAR
495
+ HRK
496
+ }
497
+
498
+ type _DOLLAR_defs_DocumentData {
499
+ """TODO: implement"""
500
+ tags: [JSON]
501
+ }
447
502
 
448
- input Income_Input {
503
+ """Represents date values"""
504
+ scalar Date
505
+
506
+ type _DOLLAR_defs_Income {
449
507
  """Amount"""
450
- amount: Float
508
+ amount: NonNegativeFloat
451
509
  """Total amount"""
452
- amountTotal: Float
510
+ amountTotal: NonNegativeFloat
453
511
  """Catalog number"""
454
512
  catalogNum: String
455
- currency: Currency!
513
+ currency: _DOLLAR_defs_Currency!
456
514
  """Currency rate relative to ILS"""
457
- currencyRate: Float
515
+ currencyRate: NonNegativeFloat
458
516
  """Item description"""
459
- description: String!
517
+ description: NonEmptyString!
460
518
  """The ID of the item to attach as income"""
461
519
  itemId: String
462
520
  """Item price"""
463
- price: Float!
521
+ price: NonNegativeFloat!
464
522
  """Quantity"""
465
- quantity: Float!
523
+ quantity: NonNegativeFloat!
466
524
  """VAT amount"""
467
- vat: Float
525
+ vat: NonNegativeFloat
468
526
  """VAT rate"""
469
- vatRate: Float
470
- vatType: VatType!
527
+ vatRate: NonNegativeFloat
528
+ vatType: _DOLLAR_defs_VatType!
529
+ }
530
+
531
+ """VAT type"""
532
+ enum _DOLLAR_defs_VatType @example(subgraph: "GreenInvoice", value: "0") {
533
+ _0 @enum(subgraph: "GreenInvoice", value: "0")
534
+ _1 @enum(subgraph: "GreenInvoice", value: "1")
535
+ _2 @enum(subgraph: "GreenInvoice", value: "2")
536
+ }
537
+
538
+ """Document language"""
539
+ enum _DOLLAR_defs_DocumentLang {
540
+ en
541
+ he
471
542
  }
472
543
 
473
- input PaymentDocument_Input {
474
- currency: Currency!
544
+ """A Linked Document"""
545
+ type _DOLLAR_defs_DocumentLinkedDocument {
546
+ """
547
+ Total amount, in requested currency (including the VAT, Discount & Rounding)
548
+ """
549
+ amount: NonNegativeFloat!
550
+ currency: _DOLLAR_defs_Currency!
551
+ """Currency rate relative to ILS"""
552
+ currencyRate: NonNegativeFloat!
553
+ """Document reference date"""
554
+ documentDate: Date!
555
+ """Document ID"""
556
+ id: String!
557
+ """Document tax number"""
558
+ number: String!
559
+ reverseCharge: Boolean!
560
+ type: _DOLLAR_defs_DocumentType!
561
+ }
562
+
563
+ """Document type"""
564
+ enum _DOLLAR_defs_DocumentType {
565
+ _10 @enum(subgraph: "GreenInvoice", value: "10")
566
+ _100 @enum(subgraph: "GreenInvoice", value: "100")
567
+ _200 @enum(subgraph: "GreenInvoice", value: "200")
568
+ _210 @enum(subgraph: "GreenInvoice", value: "210")
569
+ _300 @enum(subgraph: "GreenInvoice", value: "300")
570
+ _305 @enum(subgraph: "GreenInvoice", value: "305")
571
+ _320 @enum(subgraph: "GreenInvoice", value: "320")
572
+ _330 @enum(subgraph: "GreenInvoice", value: "330")
573
+ _400 @enum(subgraph: "GreenInvoice", value: "400")
574
+ _405 @enum(subgraph: "GreenInvoice", value: "405")
575
+ _500 @enum(subgraph: "GreenInvoice", value: "500")
576
+ _600 @enum(subgraph: "GreenInvoice", value: "600")
577
+ _610 @enum(subgraph: "GreenInvoice", value: "610")
578
+ }
579
+
580
+ type _DOLLAR_defs_PaymentDocument {
581
+ currency: _DOLLAR_defs_Currency!
475
582
  """Currency rate relative to ILS"""
476
- currencyRate: Float
583
+ currencyRate: NonNegativeFloat
477
584
  date: String
478
585
  """Sum paid"""
479
586
  price: Float!
480
- type: mutationInput_addDocument_input_allOf_0_payment_items_type!
481
- subType: mutationInput_addDocument_input_allOf_0_payment_items_subType
587
+ type: query_getDocument_payment_items_type!
588
+ subType: query_getDocument_payment_items_subType
482
589
  """Bank name (required when using Cheques)"""
483
590
  bankName: String
484
591
  """Bank branch number (required when using Cheques)"""
@@ -491,11 +598,11 @@ input PaymentDocument_Input {
491
598
  accountId: String
492
599
  """Transaction ID (PayPal / Payment App / Other)"""
493
600
  transactionId: String
494
- appType: mutationInput_addDocument_input_allOf_0_payment_items_appType
495
- cardType: mutationInput_addDocument_input_allOf_0_payment_items_cardType
601
+ appType: query_getDocument_payment_items_appType
602
+ cardType: query_getDocument_payment_items_cardType
496
603
  """Credit card's last 4 digits"""
497
604
  cardNum: String
498
- dealType: mutationInput_addDocument_input_allOf_0_payment_items_dealType
605
+ dealType: query_getDocument_payment_items_dealType
499
606
  """Credit card's payments count (1-36)"""
500
607
  numPayments: Int
501
608
  """Credit card's first payment"""
@@ -503,7 +610,7 @@ input PaymentDocument_Input {
503
610
  }
504
611
 
505
612
  """Payment method"""
506
- enum mutationInput_addDocument_input_allOf_0_payment_items_type {
613
+ enum query_getDocument_payment_items_type {
507
614
  NEGATIVE_1 @enum(subgraph: "GreenInvoice", value: "-1")
508
615
  _0 @enum(subgraph: "GreenInvoice", value: "0")
509
616
  _1 @enum(subgraph: "GreenInvoice", value: "1")
@@ -517,7 +624,7 @@ enum mutationInput_addDocument_input_allOf_0_payment_items_type {
517
624
  }
518
625
 
519
626
  """Other payment sub type (required when using 'other' as a Payment type)"""
520
- enum mutationInput_addDocument_input_allOf_0_payment_items_subType {
627
+ enum query_getDocument_payment_items_subType {
521
628
  _1 @enum(subgraph: "GreenInvoice", value: "1")
522
629
  _2 @enum(subgraph: "GreenInvoice", value: "2")
523
630
  _3 @enum(subgraph: "GreenInvoice", value: "3")
@@ -529,7 +636,7 @@ enum mutationInput_addDocument_input_allOf_0_payment_items_subType {
529
636
  }
530
637
 
531
638
  """Payment app type (required when using 'payment app' as a Payment type)"""
532
- enum mutationInput_addDocument_input_allOf_0_payment_items_appType {
639
+ enum query_getDocument_payment_items_appType {
533
640
  _1 @enum(subgraph: "GreenInvoice", value: "1")
534
641
  _2 @enum(subgraph: "GreenInvoice", value: "2")
535
642
  _3 @enum(subgraph: "GreenInvoice", value: "3")
@@ -539,7 +646,7 @@ enum mutationInput_addDocument_input_allOf_0_payment_items_appType {
539
646
  }
540
647
 
541
648
  """Credit card type"""
542
- enum mutationInput_addDocument_input_allOf_0_payment_items_cardType {
649
+ enum query_getDocument_payment_items_cardType {
543
650
  _1 @enum(subgraph: "GreenInvoice", value: "1")
544
651
  _2 @enum(subgraph: "GreenInvoice", value: "2")
545
652
  _3 @enum(subgraph: "GreenInvoice", value: "3")
@@ -548,7 +655,7 @@ enum mutationInput_addDocument_input_allOf_0_payment_items_cardType {
548
655
  }
549
656
 
550
657
  """Credit card deal type"""
551
- enum mutationInput_addDocument_input_allOf_0_payment_items_dealType {
658
+ enum query_getDocument_payment_items_dealType {
552
659
  _1 @enum(subgraph: "GreenInvoice", value: "1")
553
660
  _2 @enum(subgraph: "GreenInvoice", value: "2")
554
661
  _3 @enum(subgraph: "GreenInvoice", value: "3")
@@ -557,27 +664,248 @@ enum mutationInput_addDocument_input_allOf_0_payment_items_dealType {
557
664
  _6 @enum(subgraph: "GreenInvoice", value: "6")
558
665
  }
559
666
 
560
- """Reference type (applicable only when using linkedDocumentIds)"""
561
- enum mutationInput_addDocument_input_allOf_0_linkType {
562
- LINK
563
- CANCEL
667
+ type _DOLLAR_defs_Url {
668
+ """Copy in Hebrew"""
669
+ he: String!
670
+ """Copy in English"""
671
+ en: String
672
+ """Origin"""
673
+ origin: String!
674
+ }
675
+
676
+ type _DOLLAR_defs_searchDocumentsResponse {
677
+ """Total number of items"""
678
+ total: NonNegativeFloat!
679
+ """Current page number"""
680
+ page: PositiveFloat!
681
+ """Number of items per page"""
682
+ pageSize: PositiveFloat!
683
+ """Total number of pages"""
684
+ pages: NonNegativeFloat!
685
+ """Starting index"""
686
+ from: NonNegativeFloat
687
+ """Ending index"""
688
+ to: NonNegativeFloat
689
+ items: [_DOLLAR_defs_Document]!
690
+ }
691
+
692
+ """Floats that will have a value greater than 0."""
693
+ scalar PositiveFloat
694
+
695
+ input _DOLLAR_defs_searchDocumentsRequest_Input {
696
+ """Page requested"""
697
+ page: Float
698
+ """Results per page"""
699
+ pageSize: Float
700
+ """Document tax number"""
701
+ number: String
702
+ """Document type"""
703
+ type: [_DOLLAR_defs_DocumentType]
704
+ """Document status"""
705
+ status: [queryInput_searchDocuments_input_status_items]
706
+ """Payment types used in this document"""
707
+ paymentTypes: [queryInput_searchDocuments_input_paymentTypes_items]
708
+ """
709
+ Documents that were created after the specified date in the format YYYY-MM-DD
710
+ """
711
+ fromDate: Date
712
+ """
713
+ Documents that were created until the specified date in the format YYYY-MM-DD
714
+ """
715
+ toDate: Date
716
+ """Client ID"""
717
+ clientId: String
718
+ """Client name"""
719
+ clientName: String
720
+ """Document description"""
721
+ description: String
722
+ """Whether document was downloaded by client"""
723
+ download: Boolean
724
+ sort: queryInput_searchDocuments_input_sort
725
+ }
726
+
727
+ enum queryInput_searchDocuments_input_status_items {
728
+ _0 @enum(subgraph: "GreenInvoice", value: "0")
729
+ _1 @enum(subgraph: "GreenInvoice", value: "1")
730
+ _2 @enum(subgraph: "GreenInvoice", value: "2")
731
+ _3 @enum(subgraph: "GreenInvoice", value: "3")
732
+ _4 @enum(subgraph: "GreenInvoice", value: "4")
733
+ }
734
+
735
+ enum queryInput_searchDocuments_input_paymentTypes_items {
736
+ NEGATIVE_1 @enum(subgraph: "GreenInvoice", value: "-1")
737
+ _0 @enum(subgraph: "GreenInvoice", value: "0")
738
+ _1 @enum(subgraph: "GreenInvoice", value: "1")
739
+ _2 @enum(subgraph: "GreenInvoice", value: "2")
740
+ _3 @enum(subgraph: "GreenInvoice", value: "3")
741
+ _4 @enum(subgraph: "GreenInvoice", value: "4")
742
+ _5 @enum(subgraph: "GreenInvoice", value: "5")
743
+ _10 @enum(subgraph: "GreenInvoice", value: "10")
744
+ _11 @enum(subgraph: "GreenInvoice", value: "11")
745
+ }
746
+
747
+ enum queryInput_searchDocuments_input_sort {
748
+ documentDate
749
+ creationDate
750
+ }
751
+
752
+ union _DOLLAR_defs_previewDocumentResponse = query_previewDocument_oneOf_0 | _DOLLAR_defs_ErrorResponse
753
+
754
+ type query_previewDocument_oneOf_0 {
755
+ """Preview document file in Base64"""
756
+ file: String!
757
+ }
758
+
759
+ """Error"""
760
+ type _DOLLAR_defs_ErrorResponse {
761
+ errorCode: Float
762
+ errorMessage: String
763
+ }
764
+
765
+ input _DOLLAR_defs_DocumentInputNew_Input {
766
+ """Document's description"""
767
+ description: NonEmptyString
768
+ remarks: String
769
+ """Texts appearing in footer"""
770
+ footer: String
771
+ type: _DOLLAR_defs_DocumentType!
772
+ """Document date in the format YYYY-MM-DD"""
773
+ date: String
774
+ """Document payment due date in the format YYYY-MM-DD"""
775
+ dueDate: String
776
+ lang: _DOLLAR_defs_DocumentLang!
777
+ currency: _DOLLAR_defs_Currency!
778
+ vatType: _DOLLAR_defs_VatType!
779
+ discount: _DOLLAR_defs_DocumentDiscount_Input
780
+ """Round the amounts"""
781
+ rounding: Boolean
782
+ """Digital sign the document"""
783
+ signed: Boolean
784
+ """Max payments allowed (valid only on supported accounts)"""
785
+ maxPayments: Int
786
+ client: JSON
787
+ income: [_DOLLAR_defs_Income_Input]
788
+ payment: [_DOLLAR_defs_PaymentDocument_Input]
789
+ """
790
+ Linked document IDs. allows you to state the related / relevant documents, e.g.: when creating a receipt, attach your original invoice document ID as one of the ids in the linkedDocumentIds - this in turn will automatically close the original invoice if needed.
791
+ """
792
+ linkedDocumentIds: [String]
793
+ """
794
+ Linked payment ID (valid for document type 305 only). allows you to define the paymentId that the document is going to be relevant to, this can be attached only to invoice documents (type 305).
795
+ """
796
+ linkedPaymentId: String
797
+ linkType: queryInput_previewDocument_input_linkType
798
+ }
799
+
800
+ """Discount information"""
801
+ input _DOLLAR_defs_DocumentDiscount_Input {
802
+ amount: Float!
803
+ type: queryInput_previewDocument_input_discount_type!
804
+ }
805
+
806
+ """Discount amount type"""
807
+ enum queryInput_previewDocument_input_discount_type {
808
+ sum
809
+ percentage
810
+ }
811
+
812
+ input _DOLLAR_defs_Income_Input {
813
+ """Amount"""
814
+ amount: NonNegativeFloat
815
+ """Total amount"""
816
+ amountTotal: NonNegativeFloat
817
+ """Catalog number"""
818
+ catalogNum: String
819
+ currency: _DOLLAR_defs_Currency!
820
+ """Currency rate relative to ILS"""
821
+ currencyRate: NonNegativeFloat
822
+ """Item description"""
823
+ description: NonEmptyString!
824
+ """The ID of the item to attach as income"""
825
+ itemId: String
826
+ """Item price"""
827
+ price: NonNegativeFloat!
828
+ """Quantity"""
829
+ quantity: NonNegativeFloat!
830
+ """VAT amount"""
831
+ vat: NonNegativeFloat
832
+ """VAT rate"""
833
+ vatRate: NonNegativeFloat
834
+ vatType: _DOLLAR_defs_VatType!
835
+ }
836
+
837
+ input _DOLLAR_defs_PaymentDocument_Input {
838
+ currency: _DOLLAR_defs_Currency!
839
+ """Currency rate relative to ILS"""
840
+ currencyRate: NonNegativeFloat
841
+ date: String
842
+ """Sum paid"""
843
+ price: Float!
844
+ type: query_getDocument_payment_items_type!
845
+ subType: query_getDocument_payment_items_subType
846
+ """Bank name (required when using Cheques)"""
847
+ bankName: String
848
+ """Bank branch number (required when using Cheques)"""
849
+ bankBranch: String
850
+ """Bank account number (required when using Cheques)"""
851
+ bankAccount: String
852
+ """Cheque number (required when using Cheques)"""
853
+ chequeNum: String
854
+ """Payer account (PayPal / Payment App / Other)"""
855
+ accountId: String
856
+ """Transaction ID (PayPal / Payment App / Other)"""
857
+ transactionId: String
858
+ appType: query_getDocument_payment_items_appType
859
+ cardType: query_getDocument_payment_items_cardType
860
+ """Credit card's last 4 digits"""
861
+ cardNum: String
862
+ dealType: query_getDocument_payment_items_dealType
863
+ """Credit card's payments count (1-36)"""
864
+ numPayments: Int
865
+ """Credit card's first payment"""
866
+ firstPayment: Float
867
+ }
868
+
869
+ """Reference type (applicable only when using linkedDocumentIds)"""
870
+ enum queryInput_previewDocument_input_linkType {
871
+ LINK
872
+ CANCEL
873
+ }
874
+
875
+ type _DOLLAR_defs_GetLinkedDocuments {
876
+ """
877
+ Total amount, in requested currency (including the VAT, Discount & Rounding)
878
+ """
879
+ amount: NonNegativeFloat
880
+ currency: _DOLLAR_defs_Currency
881
+ """Currency rate relative to ILS"""
882
+ currencyRate: NonNegativeFloat
883
+ """Document reference date"""
884
+ documentDate: Date
885
+ """Document ID"""
886
+ id: String
887
+ """Document tax number"""
888
+ number: String
889
+ """Document status"""
890
+ status: Float
891
+ type: _DOLLAR_defs_DocumentType
564
892
  }
565
893
 
566
894
  """A Single Expense"""
567
- type GetExpense {
895
+ type _DOLLAR_defs_GetExpense {
568
896
  """The amount excluding the vat"""
569
897
  amountExcludeVat: Float
570
898
  """The expense ID"""
571
899
  id: String
572
- businessType: mutation_updateExpense_oneOf_0_businessType
573
- documentType: ExpenseDocumentType
574
- status: mutation_updateExpense_oneOf_0_status
575
- paymentType: mutation_updateExpense_oneOf_0_paymentType
576
- currency: Currency
900
+ businessType: query_getExpense_businessType
901
+ documentType: _DOLLAR_defs_ExpenseDocumentType
902
+ status: query_getExpense_status
903
+ paymentType: query_getExpense_paymentType
904
+ currency: _DOLLAR_defs_Currency
577
905
  """Currency rate relative to ILS"""
578
- currencyRate: Float
906
+ currencyRate: NonNegativeFloat
579
907
  """VAT amount"""
580
- vat: Float
908
+ vat: NonNegativeFloat
581
909
  """The total amount of the expense"""
582
910
  amount: Float
583
911
  """Date of the expense"""
@@ -592,7 +920,7 @@ type GetExpense {
592
920
  description: String
593
921
  """Remarks for the expense"""
594
922
  remarks: String
595
- supplier: Supplier
923
+ supplier: _DOLLAR_defs_Supplier
596
924
  """URL of expense thumbnail"""
597
925
  thumbnail: String
598
926
  """URL to download the expense thumbnail"""
@@ -601,7 +929,7 @@ type GetExpense {
601
929
  cancellable: Boolean
602
930
  """Reporting date of the expense"""
603
931
  reportingDate: String
604
- accountingClassification: AccountingClassification
932
+ accountingClassification: _DOLLAR_defs_AccountingClassification
605
933
  """The local amount of the expense"""
606
934
  amountLocal: Float
607
935
  """The amount of accounting"""
@@ -609,13 +937,13 @@ type GetExpense {
609
937
  """The vat amount of accounting"""
610
938
  vatAccounting: Float
611
939
  """The creation date, in UNIX timestamp format"""
612
- creationDate: Int
940
+ creationDate: NonNegativeInt
613
941
  """The last update date of the expense, in UNIX timestamp format"""
614
942
  lastUpdateDate: Int
615
943
  }
616
944
 
617
945
  """The business type ID"""
618
- enum mutation_updateExpense_oneOf_0_businessType {
946
+ enum query_getExpense_businessType {
619
947
  _1 @enum(subgraph: "GreenInvoice", value: "1")
620
948
  _2 @enum(subgraph: "GreenInvoice", value: "2")
621
949
  _3 @enum(subgraph: "GreenInvoice", value: "3")
@@ -625,7 +953,7 @@ enum mutation_updateExpense_oneOf_0_businessType {
625
953
  }
626
954
 
627
955
  """Document type"""
628
- enum ExpenseDocumentType {
956
+ enum _DOLLAR_defs_ExpenseDocumentType {
629
957
  _20 @enum(subgraph: "GreenInvoice", value: "20")
630
958
  _305 @enum(subgraph: "GreenInvoice", value: "305")
631
959
  _320 @enum(subgraph: "GreenInvoice", value: "320")
@@ -635,7 +963,7 @@ enum ExpenseDocumentType {
635
963
  }
636
964
 
637
965
  """The status of the expense"""
638
- enum mutation_updateExpense_oneOf_0_status {
966
+ enum query_getExpense_status {
639
967
  _10 @enum(subgraph: "GreenInvoice", value: "10")
640
968
  _20 @enum(subgraph: "GreenInvoice", value: "20")
641
969
  _30 @enum(subgraph: "GreenInvoice", value: "30")
@@ -643,7 +971,7 @@ enum mutation_updateExpense_oneOf_0_status {
643
971
  }
644
972
 
645
973
  """Payment method"""
646
- enum mutation_updateExpense_oneOf_0_paymentType {
974
+ enum query_getExpense_paymentType {
647
975
  NEGATIVE_1 @enum(subgraph: "GreenInvoice", value: "-1")
648
976
  _0 @enum(subgraph: "GreenInvoice", value: "0")
649
977
  _1 @enum(subgraph: "GreenInvoice", value: "1")
@@ -655,8 +983,30 @@ enum mutation_updateExpense_oneOf_0_paymentType {
655
983
  _11 @enum(subgraph: "GreenInvoice", value: "11")
656
984
  }
657
985
 
658
- """Supplier of the expense"""
659
- type Supplier {
986
+ type _DOLLAR_defs_Supplier {
987
+ """Phone number"""
988
+ phone: String
989
+ """Mobile number"""
990
+ mobile: String
991
+ """Email addresses"""
992
+ emails: [EmailAddress]
993
+ """Fax number"""
994
+ fax: String
995
+ """Contact person name"""
996
+ contactPerson: String
997
+ """Street address"""
998
+ address: String
999
+ """City name"""
1000
+ city: String
1001
+ """Zip/postal code"""
1002
+ zip: String
1003
+ country: _DOLLAR_defs_Country
1004
+ """Bank name"""
1005
+ bankName: String
1006
+ """Bank branch number"""
1007
+ bankBranch: String
1008
+ """Bank account number"""
1009
+ bankAccount: String
660
1010
  """The supplier ID"""
661
1011
  id: String
662
1012
  """The supplier name"""
@@ -665,38 +1015,16 @@ type Supplier {
665
1015
  active: Boolean
666
1016
  """The supplier tax ID"""
667
1017
  taxId: String
668
- paymentTerms: mutation_addExpense_oneOf_0_allOf_0_supplier_paymentTerms
669
- """The supplier bank name"""
670
- bankName: String
671
- """The supplier bank branch number"""
672
- bankBranch: String
673
- """The supplier bank account number"""
674
- bankAccount: String
675
- country: Country
676
- """The supplier phone number"""
677
- phone: String
678
- """The supplier mobile number"""
679
- mobile: String
680
- """The supplier contact person name"""
681
- contactPerson: String
682
- emails: [String]
1018
+ paymentTerms: query_getExpense_supplier_allOf_3_paymentTerms
683
1019
  labels: [String]
684
1020
  """The creation date, in UNIX timestamp format"""
685
- creationDate: Int
1021
+ creationDate: NonNegativeInt
686
1022
  """The last update date of the supplier, in UNIX timestamp format"""
687
1023
  lastUpdateDate: Int
688
1024
  """The supplier department"""
689
1025
  department: String
690
1026
  """The supplier accounting key"""
691
1027
  accountingKey: String
692
- """The supplier address"""
693
- address: String
694
- """The supplier city"""
695
- city: String
696
- """The supplier zip code"""
697
- zip: String
698
- """The supplier fax number"""
699
- fax: String
700
1028
  """The Supplier remarks for self use"""
701
1029
  remarks: String
702
1030
  """The amount of incomes from the customer"""
@@ -707,7 +1035,7 @@ type Supplier {
707
1035
  }
708
1036
 
709
1037
  """The supplier payment term, default is 0"""
710
- enum mutation_addExpense_oneOf_0_allOf_0_supplier_paymentTerms {
1038
+ enum query_getExpense_supplier_allOf_3_paymentTerms {
711
1039
  NEGATIVE_1 @enum(subgraph: "GreenInvoice", value: "-1")
712
1040
  _0 @enum(subgraph: "GreenInvoice", value: "0")
713
1041
  _10 @enum(subgraph: "GreenInvoice", value: "10")
@@ -721,7 +1049,7 @@ enum mutation_addExpense_oneOf_0_allOf_0_supplier_paymentTerms {
721
1049
  }
722
1050
 
723
1051
  """Account classification of the expense"""
724
- type AccountingClassification {
1052
+ type _DOLLAR_defs_AccountingClassification {
725
1053
  """The classification ID, see 'Get Accounting Classifications' endpoint"""
726
1054
  id: String
727
1055
  """The classification key"""
@@ -730,7 +1058,7 @@ type AccountingClassification {
730
1058
  code: String
731
1059
  """The classification title"""
732
1060
  title: String
733
- irsCode: mutation_addExpense_oneOf_0_allOf_0_accountingClassification_irsCode
1061
+ irsCode: query_getExpense_accountingClassification_irsCode
734
1062
  """The classification income"""
735
1063
  income: Float
736
1064
  """The classification type"""
@@ -740,7 +1068,7 @@ type AccountingClassification {
740
1068
  }
741
1069
 
742
1070
  """The classification IRS code"""
743
- enum mutation_addExpense_oneOf_0_allOf_0_accountingClassification_irsCode {
1071
+ enum query_getExpense_accountingClassification_irsCode {
744
1072
  _1306 @enum(subgraph: "GreenInvoice", value: "1306")
745
1073
  _1307 @enum(subgraph: "GreenInvoice", value: "1307")
746
1074
  _1310 @enum(subgraph: "GreenInvoice", value: "1310")
@@ -798,19 +1126,23 @@ enum mutation_addExpense_oneOf_0_allOf_0_accountingClassification_irsCode {
798
1126
  _8090 @enum(subgraph: "GreenInvoice", value: "8090")
799
1127
  }
800
1128
 
801
- type searchExpensesResponse {
802
- """The total length of the items that were retrieved"""
803
- total: Float
804
- """The page that was requested to retrieve"""
805
- page: Float
806
- """The page size that was requested"""
807
- pageSize: Float
808
- """The amount of pages that exist"""
809
- pages: Float
810
- items: GetExpense
1129
+ type _DOLLAR_defs_searchExpensesResponse {
1130
+ """Total number of items"""
1131
+ total: NonNegativeFloat!
1132
+ """Current page number"""
1133
+ page: PositiveFloat!
1134
+ """Number of items per page"""
1135
+ pageSize: PositiveFloat!
1136
+ """Total number of pages"""
1137
+ pages: NonNegativeFloat!
1138
+ """Starting index"""
1139
+ from: NonNegativeFloat
1140
+ """Ending index"""
1141
+ to: NonNegativeFloat
1142
+ items: _DOLLAR_defs_GetExpense
811
1143
  }
812
1144
 
813
- input searchExpensesRequest_Input {
1145
+ input _DOLLAR_defs_searchExpensesRequest_Input {
814
1146
  """
815
1147
  Expense that were created after the specified date in the format YYYY-MM-DD
816
1148
  """
@@ -849,331 +1181,51 @@ input searchExpensesRequest_Input {
849
1181
  pageSize: Float!
850
1182
  }
851
1183
 
852
- type searchDocumentsResponse {
853
- """The total length of the items that were retrieved"""
854
- total: Float!
855
- """The page that was requested to retrieve"""
856
- page: Float!
857
- """The page size that was requested"""
858
- pageSize: Float!
859
- """The amount of pages that exist"""
860
- pages: Float!
861
- items: [Document]!
1184
+ union searchExpenseDrafts_response @statusCodeTypeName(subgraph: "GreenInvoice", statusCode: "200", typeName: "searchExpenseDrafts_200_response") @statusCodeTypeName(subgraph: "GreenInvoice", statusCode: "201", typeName: "searchExpenseDrafts_200_response") @statusCodeTypeName(subgraph: "GreenInvoice", statusCode: "404", typeName: "searchExpenseDrafts_404_response") = searchExpenseDrafts_200_response | searchExpenseDrafts_404_response
1185
+
1186
+ type searchExpenseDrafts_200_response {
1187
+ """Total number of items"""
1188
+ total: NonNegativeFloat!
1189
+ """Current page number"""
1190
+ page: PositiveFloat!
1191
+ """Number of items per page"""
1192
+ pageSize: PositiveFloat!
1193
+ """Total number of pages"""
1194
+ pages: NonNegativeFloat!
1195
+ """Starting index"""
1196
+ from: NonNegativeFloat
1197
+ """Ending index"""
1198
+ to: NonNegativeFloat
1199
+ aggregations: query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations!
1200
+ """The expense drafts that were found"""
1201
+ items: [query_searchExpenseDrafts_oneOf_0_allOf_1_items_items]!
862
1202
  }
863
1203
 
864
- """A Single Document"""
865
- type Document {
866
- """
867
- Total amount, in requested currency (including the VAT, Discount & Rounding)
868
- """
869
- amount: Float!
870
- """
871
- Amount due VAT - Amount before VAT, and before rounding & discount (if requested)
872
- """
873
- amountDueVat: Float!
874
- """Amount due VAT - local currency"""
875
- amountDueVatLocal: Float!
876
- """Amount excluded VAT - Amount that is excluded of VAT"""
877
- amountExcludeVat: Float!
878
- """
879
- Amount exempt VAT - 0 unless there's one or more items that are excluded of VAT such as mixed documents (that have both VAT excluded & included items)
880
- """
881
- amountExemptVat: Float!
882
- """Amount in local currency"""
883
- amountLocal: Float!
884
- """
885
- Amount that is still left to be paid, exists only in payment request documents
886
- """
887
- amountOpened: Float!
888
- business: Business!
889
- calculatedAmountLocal: Float!
890
- calculatedAmountOpenedLocal: Float!
891
- calculatedIncomeAmountExcludeLocal: Float!
892
- calculatedIncomeAmountLocal: Float!
893
- calculatedPaymentAmountLocal: Float!
894
- cancellable: Boolean!
895
- cancelType: Float
896
- client: Client!
897
- """The creation date, in UNIX timestamp format"""
898
- creationDate: Int!
899
- currency: Currency!
900
- """Currency rate relative to ILS"""
901
- currencyRate: Float!
902
- data: DocumentData!
903
- """Document's description"""
904
- description: String!
905
- """Document reference date"""
906
- documentDate: String!
907
- downloaded: Boolean!
908
- """Texts appearing in footer"""
909
- footer: String
910
- """Document ID"""
1204
+ type query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations {
1205
+ totalAmount: query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations_totalAmount!
1206
+ }
1207
+
1208
+ type query_searchExpenseDrafts_oneOf_0_allOf_1_aggregations_totalAmount {
1209
+ value: Float!
1210
+ }
1211
+
1212
+ """Partial Expense"""
1213
+ type query_searchExpenseDrafts_oneOf_0_allOf_1_items_items {
911
1214
  id: String!
912
- income: [Income]!
913
- lang: DocumentLang!
914
- linkedDocuments: [DocumentLinkedDocument]
915
- """Document tax number"""
916
- number: String!
917
- payment: [PaymentDocument]!
918
- ref: [Float]!
919
- remarks: String
920
- reverseCharge: Boolean!
921
- """Round the amounts"""
922
- rounding: Boolean!
923
- """Digital sign the document"""
924
- signed: Boolean!
925
- skinId: Float!
926
- """Document status"""
927
1215
  status: Float!
928
- taxConfirmationEligible: Boolean!
929
- templateId: Float!
930
- type: DocumentType!
931
- url: Url!
932
- userName: String
933
- """VAT amount"""
934
- vat: Float!
935
- vatLocal: Float
936
- """VAT rate"""
937
- vatRate: Float!
938
- vatType: VatType!
1216
+ """The creation date, in UNIX timestamp format"""
1217
+ creationDate: NonNegativeInt!
1218
+ lastUpdateDate: Float!
1219
+ reportingPeriod: String!
1220
+ hasDefaultValues: Boolean!
1221
+ url: String!
1222
+ thumbnail: String!
1223
+ expense: query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense!
939
1224
  }
940
1225
 
941
- type Business {
942
- accountantDocsEmailSettings: Float!
943
- accountantEmails: [JSON]!
944
- accountantReportEmailSettings: Float!
945
- accountingType: Float!
946
- active: Boolean!
947
- advanceNationalInsuranceRate: Float!
948
- advanceTaxRate: Float!
949
- bankDisplay: Boolean!
950
- bankDisplayEn: Boolean!
951
- deductionRate: Float!
952
- documentsEmailSettings: Float!
953
- emailSubjectType: Float!
954
- """Is the business exemption free or not"""
955
- exemption: Boolean!
956
- incomeReportEmailSettings: Float!
957
- incomeReportFormatType: Float!
958
- reportSendingDay: Float!
959
- senderEmailSettings: Float!
960
- type: query_searchDocuments_items_items_business_type!
961
- }
962
-
963
- """The business type ID"""
964
- enum query_searchDocuments_items_items_business_type {
965
- _1 @enum(subgraph: "GreenInvoice", value: "1")
966
- _2 @enum(subgraph: "GreenInvoice", value: "2")
967
- _3 @enum(subgraph: "GreenInvoice", value: "3")
968
- _4 @enum(subgraph: "GreenInvoice", value: "4")
969
- _5 @enum(subgraph: "GreenInvoice", value: "5")
970
- _6 @enum(subgraph: "GreenInvoice", value: "6")
971
- }
972
-
973
- type Client {
974
- country: Country!
975
- emails: [String]!
976
- """The client ID"""
977
- id: String!
978
- """The client name"""
979
- name: String!
980
- phone: String!
981
- """The client tax ID"""
982
- taxId: String
983
- """Whether the client is self"""
984
- self: Boolean!
985
- }
986
-
987
- type DocumentData {
988
- """TODO: implement"""
989
- tags: [JSON]
990
- }
991
-
992
- type Income {
993
- """Amount"""
994
- amount: Float
995
- """Total amount"""
996
- amountTotal: Float
997
- """Catalog number"""
998
- catalogNum: String
999
- currency: Currency!
1000
- """Currency rate relative to ILS"""
1001
- currencyRate: Float
1002
- """Item description"""
1003
- description: String!
1004
- """The ID of the item to attach as income"""
1005
- itemId: String
1006
- """Item price"""
1007
- price: Float!
1008
- """Quantity"""
1009
- quantity: Float!
1010
- """VAT amount"""
1011
- vat: Float
1012
- """VAT rate"""
1013
- vatRate: Float
1014
- vatType: VatType!
1015
- }
1016
-
1017
- """A Linked Document"""
1018
- type DocumentLinkedDocument {
1019
- """
1020
- Total amount, in requested currency (including the VAT, Discount & Rounding)
1021
- """
1022
- amount: Float!
1023
- currency: Currency!
1024
- """Currency rate relative to ILS"""
1025
- currencyRate: Float!
1026
- """Document reference date"""
1027
- documentDate: String!
1028
- """Document ID"""
1029
- id: String!
1030
- """Document tax number"""
1031
- number: String!
1032
- reverseCharge: Boolean!
1033
- type: DocumentType!
1034
- }
1035
-
1036
- type PaymentDocument {
1037
- currency: Currency!
1038
- """Currency rate relative to ILS"""
1039
- currencyRate: Float
1040
- date: String
1041
- """Sum paid"""
1042
- price: Float!
1043
- type: mutationInput_addDocument_input_allOf_0_payment_items_type!
1044
- subType: mutationInput_addDocument_input_allOf_0_payment_items_subType
1045
- """Bank name (required when using Cheques)"""
1046
- bankName: String
1047
- """Bank branch number (required when using Cheques)"""
1048
- bankBranch: String
1049
- """Bank account number (required when using Cheques)"""
1050
- bankAccount: String
1051
- """Cheque number (required when using Cheques)"""
1052
- chequeNum: String
1053
- """Payer account (PayPal / Payment App / Other)"""
1054
- accountId: String
1055
- """Transaction ID (PayPal / Payment App / Other)"""
1056
- transactionId: String
1057
- appType: mutationInput_addDocument_input_allOf_0_payment_items_appType
1058
- cardType: mutationInput_addDocument_input_allOf_0_payment_items_cardType
1059
- """Credit card's last 4 digits"""
1060
- cardNum: String
1061
- dealType: mutationInput_addDocument_input_allOf_0_payment_items_dealType
1062
- """Credit card's payments count (1-36)"""
1063
- numPayments: Int
1064
- """Credit card's first payment"""
1065
- firstPayment: Float
1066
- }
1067
-
1068
- type Url {
1069
- """Copy in Hebrew"""
1070
- he: String!
1071
- """Copy in English"""
1072
- en: String
1073
- """Origin"""
1074
- origin: String!
1075
- }
1076
-
1077
- input searchDocumentsRequest_Input {
1078
- """Page requested"""
1079
- page: Float
1080
- """Results per page"""
1081
- pageSize: Float
1082
- """Document tax number"""
1083
- number: String
1084
- """Document type"""
1085
- type: [DocumentType]
1086
- """Document status"""
1087
- status: [queryInput_searchDocuments_input_status_items]
1088
- """Payment types used in this document"""
1089
- paymentTypes: [queryInput_searchDocuments_input_paymentTypes_items]
1090
- """
1091
- Documents that were created after the specified date in the format YYYY-MM-DD
1092
- """
1093
- fromDate: String
1094
- """
1095
- Documents that were created until the specified date in the format YYYY-MM-DD
1096
- """
1097
- toDate: String
1098
- """Client ID"""
1099
- clientId: String
1100
- """Client name"""
1101
- clientName: String
1102
- """Document description"""
1103
- description: String
1104
- """Whether document was downloaded by client"""
1105
- download: Boolean
1106
- sort: queryInput_searchDocuments_input_sort
1107
- }
1108
-
1109
- enum queryInput_searchDocuments_input_status_items {
1110
- _0 @enum(subgraph: "GreenInvoice", value: "0")
1111
- _1 @enum(subgraph: "GreenInvoice", value: "1")
1112
- _2 @enum(subgraph: "GreenInvoice", value: "2")
1113
- _3 @enum(subgraph: "GreenInvoice", value: "3")
1114
- _4 @enum(subgraph: "GreenInvoice", value: "4")
1115
- }
1116
-
1117
- enum queryInput_searchDocuments_input_paymentTypes_items {
1118
- NEGATIVE_1 @enum(subgraph: "GreenInvoice", value: "-1")
1119
- _0 @enum(subgraph: "GreenInvoice", value: "0")
1120
- _1 @enum(subgraph: "GreenInvoice", value: "1")
1121
- _2 @enum(subgraph: "GreenInvoice", value: "2")
1122
- _3 @enum(subgraph: "GreenInvoice", value: "3")
1123
- _4 @enum(subgraph: "GreenInvoice", value: "4")
1124
- _5 @enum(subgraph: "GreenInvoice", value: "5")
1125
- _10 @enum(subgraph: "GreenInvoice", value: "10")
1126
- _11 @enum(subgraph: "GreenInvoice", value: "11")
1127
- }
1128
-
1129
- enum queryInput_searchDocuments_input_sort {
1130
- documentDate
1131
- creationDate
1132
- }
1133
-
1134
- union searchExpenseDrafts_response @statusCodeTypeName(subgraph: "GreenInvoice", statusCode: "200", typeName: "searchExpenseDraftsResponse") @statusCodeTypeName(subgraph: "GreenInvoice", statusCode: "201", typeName: "searchExpenseDraftsResponse") @statusCodeTypeName(subgraph: "GreenInvoice", statusCode: "404", typeName: "generalErrorResponse") = searchExpenseDraftsResponse | generalErrorResponse
1135
-
1136
- type searchExpenseDraftsResponse {
1137
- """The total length of the items that were retrieved"""
1138
- total: Float!
1139
- from: Float
1140
- to: Float
1141
- """The page that was requested to retrieve"""
1142
- page: Float!
1143
- """The page size that was requested"""
1144
- pageSize: Float!
1145
- """The amount of pages that exist"""
1146
- pages: Float!
1147
- aggregations: query_searchExpenseDrafts_oneOf_0_aggregations!
1148
- """The expense drafts that were found"""
1149
- items: [query_searchExpenseDrafts_oneOf_0_items_items]!
1150
- }
1151
-
1152
- type query_searchExpenseDrafts_oneOf_0_aggregations {
1153
- totalAmount: query_searchExpenseDrafts_oneOf_0_aggregations_totalAmount!
1154
- }
1155
-
1156
- type query_searchExpenseDrafts_oneOf_0_aggregations_totalAmount {
1157
- value: Float!
1158
- }
1159
-
1160
- """Partial Expense"""
1161
- type query_searchExpenseDrafts_oneOf_0_items_items {
1162
- id: String!
1163
- status: Float!
1164
- """The creation date, in UNIX timestamp format"""
1165
- creationDate: Int!
1166
- lastUpdateDate: Float!
1167
- reportingPeriod: String!
1168
- hasDefaultValues: Boolean!
1169
- url: String!
1170
- thumbnail: String!
1171
- expense: query_searchExpenseDrafts_oneOf_0_items_items_expense!
1172
- }
1173
-
1174
- type query_searchExpenseDrafts_oneOf_0_items_items_expense {
1175
- accountingClassification: AccountingClassification!
1176
- """Is the expense active or not"""
1226
+ type query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense {
1227
+ accountingClassification: _DOLLAR_defs_AccountingClassification!
1228
+ """Is the expense active or not"""
1177
1229
  active: Boolean!
1178
1230
  """
1179
1231
  Should we save the supplier or not (by setting this to true you are required to add a supplier)
@@ -1182,14 +1234,14 @@ type query_searchExpenseDrafts_oneOf_0_items_items_expense {
1182
1234
  """The total amount of the expense"""
1183
1235
  amount: Float
1184
1236
  confirmFromEdit: Boolean!
1185
- currency: Currency!
1237
+ currency: _DOLLAR_defs_Currency!
1186
1238
  """Currency rate relative to ILS"""
1187
- currencyRate: Float!
1239
+ currencyRate: NonNegativeFloat!
1188
1240
  """Date of the expense"""
1189
1241
  date: String
1190
1242
  """Description for the expense"""
1191
1243
  description: String!
1192
- documentType: ExpenseDocumentType!
1244
+ documentType: _DOLLAR_defs_ExpenseDocumentType!
1193
1245
  """File hash"""
1194
1246
  fileHash: String!
1195
1247
  """Key of the file location"""
@@ -1197,28 +1249,28 @@ type query_searchExpenseDrafts_oneOf_0_items_items_expense {
1197
1249
  labels: [String]!
1198
1250
  """Number of the expense"""
1199
1251
  number: String
1200
- paymentType: query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType
1252
+ paymentType: query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType
1201
1253
  """Reporting date of the expense"""
1202
1254
  reportingDate: String!
1203
- supplier: Supplier!
1255
+ supplier: _DOLLAR_defs_Supplier!
1204
1256
  tags: [String]!
1205
1257
  texts: [String]!
1206
1258
  """VAT amount"""
1207
- vat: Float!
1259
+ vat: NonNegativeFloat!
1208
1260
  }
1209
1261
 
1210
1262
  """Payment method"""
1211
- union query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType = Boolean_container | query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1_container
1263
+ union query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType = Boolean_container | query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1_container
1212
1264
 
1213
1265
  type Boolean_container {
1214
1266
  Boolean: Boolean @resolveRoot(subgraph: "GreenInvoice")
1215
1267
  }
1216
1268
 
1217
- type query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1_container {
1218
- query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1: query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1 @resolveRoot(subgraph: "GreenInvoice")
1269
+ type query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1_container {
1270
+ query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1: query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1 @resolveRoot(subgraph: "GreenInvoice")
1219
1271
  }
1220
1272
 
1221
- enum query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1 {
1273
+ enum query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1 {
1222
1274
  _1 @enum(subgraph: "GreenInvoice", value: "1")
1223
1275
  _2 @enum(subgraph: "GreenInvoice", value: "2")
1224
1276
  _3 @enum(subgraph: "GreenInvoice", value: "3")
@@ -1228,20 +1280,20 @@ enum query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1 {
1228
1280
  _11 @enum(subgraph: "GreenInvoice", value: "11")
1229
1281
  }
1230
1282
 
1231
- type generalErrorResponse {
1232
- errorCode_: Int @resolveRootField(subgraph: "GreenInvoice", field: "errorCode:")
1283
+ type searchExpenseDrafts_404_response {
1284
+ errorCode: Int
1233
1285
  errorMessage: String
1234
1286
  }
1235
1287
 
1236
- input searchExpenseDraftsRequest_Input {
1288
+ input _DOLLAR_defs_searchExpenseDraftsRequest_Input {
1237
1289
  """
1238
1290
  Expense drafts that were created after the specified date in the format YYYY-MM-DD
1239
1291
  """
1240
- fromDate: String
1292
+ fromDate: Date
1241
1293
  """
1242
1294
  Expense drafts that were created until the specified date in the format YYYY-MM-DD
1243
1295
  """
1244
- toDate: String
1296
+ toDate: Date
1245
1297
  """Expense draft description"""
1246
1298
  description: String
1247
1299
  """Supplier's ID"""
@@ -1254,51 +1306,42 @@ input searchExpenseDraftsRequest_Input {
1254
1306
  pageSize: Float
1255
1307
  }
1256
1308
 
1257
- type GetLinkedDocuments {
1258
- """
1259
- Total amount, in requested currency (including the VAT, Discount & Rounding)
1260
- """
1261
- amount: Float
1262
- currency: Currency
1263
- """Currency rate relative to ILS"""
1264
- currencyRate: Float
1265
- """Document reference date"""
1266
- documentDate: String
1267
- """Document ID"""
1268
- id: String
1269
- """Document tax number"""
1270
- number: String
1271
- """Document status"""
1272
- status: Float
1273
- type: DocumentType
1274
- }
1275
-
1276
- type getClientResponse {
1309
+ type _DOLLAR_defs_getClientResponse {
1310
+ """Phone number"""
1311
+ phone: String
1312
+ """Mobile number"""
1313
+ mobile: String
1314
+ """Email addresses"""
1315
+ emails: [EmailAddress]
1316
+ """Fax number"""
1317
+ fax: String
1318
+ """Contact person name"""
1319
+ contactPerson: String
1320
+ """Street address"""
1321
+ address: String
1322
+ """City name"""
1323
+ city: String
1324
+ """Zip/postal code"""
1325
+ zip: String
1326
+ country: _DOLLAR_defs_Country
1327
+ """Bank name"""
1328
+ bankName: String
1329
+ """Bank branch number"""
1330
+ bankBranch: String
1331
+ """Bank account number"""
1332
+ bankAccount: String
1277
1333
  """The client ID"""
1278
- id: String
1334
+ id: UUID
1279
1335
  """The client name"""
1280
- name: String
1336
+ name: NonEmptyString
1281
1337
  """Is the client currently active or not"""
1282
1338
  active: Boolean
1283
1339
  """The client tax ID"""
1284
1340
  taxId: String
1285
- paymentTerms: query_getClient_paymentTerms
1286
- """The client bank name"""
1287
- bankName: String
1288
- """The client bank branch"""
1289
- bankBranch: String
1290
- """The supplier bank account number"""
1291
- bankAccount: String
1292
- country: Country
1293
- phone: String
1294
- """The supplier mobile number"""
1295
- mobile: String
1296
- """The supplier contact person name"""
1297
- contactPerson: String
1298
- emails: [String]
1341
+ paymentTerms: query_getClient_allOf_3_paymentTerms
1299
1342
  labels: [String]
1300
1343
  """The creation date, in UNIX timestamp format"""
1301
- creationDate: Int
1344
+ creationDate: NonNegativeInt
1302
1345
  """The last update date of the supplier, in UNIX timestamp format"""
1303
1346
  lastUpdateDate: Int
1304
1347
  """
@@ -1309,18 +1352,10 @@ type getClientResponse {
1309
1352
  department: String
1310
1353
  """The supplier accounting key"""
1311
1354
  accountingKey: String
1312
- """The supplier address"""
1313
- address: String
1314
- """The supplier city"""
1315
- city: String
1316
- """The supplier zip code"""
1317
- zip: String
1318
1355
  """The category this client is related to"""
1319
1356
  category: Int
1320
1357
  """The sub category this client is related to"""
1321
1358
  subCategory: Int
1322
- """Client fax"""
1323
- fax: String
1324
1359
  """Client remarks for self use"""
1325
1360
  remarks: String
1326
1361
  """The amount of incomes from the customer"""
@@ -1331,7 +1366,7 @@ type getClientResponse {
1331
1366
  }
1332
1367
 
1333
1368
  """The client payment term, default is 0"""
1334
- enum query_getClient_paymentTerms {
1369
+ enum query_getClient_allOf_3_paymentTerms {
1335
1370
  NEGATIVE_1 @enum(subgraph: "GreenInvoice", value: "-1")
1336
1371
  _0 @enum(subgraph: "GreenInvoice", value: "0")
1337
1372
  _10 @enum(subgraph: "GreenInvoice", value: "10")
@@ -1344,128 +1379,47 @@ enum query_getClient_paymentTerms {
1344
1379
  _120 @enum(subgraph: "GreenInvoice", value: "120")
1345
1380
  }
1346
1381
 
1347
- union addExpenseResponse = Expense | ErrorResponse
1382
+ union _DOLLAR_defs_addDocumentResponse = _DOLLAR_defs_AddedDocument | _DOLLAR_defs_ErrorResponse
1348
1383
 
1349
- type Expense {
1350
- paymentType: mutation_addExpense_oneOf_0_allOf_0_paymentType
1351
- currency: JSON!
1352
- """Currency rate relative to ILS"""
1353
- currencyRate: Float
1354
- vat: JSON!
1355
- amount: JSON!
1356
- date: JSON!
1357
- """Due date of the expense"""
1358
- dueDate: String
1359
- reportingDate: JSON!
1360
- documentType: JSON!
1361
- number: JSON!
1362
- """Description for the expense"""
1363
- description: String
1364
- remarks: String
1365
- supplier: JSON!
1366
- accountingClassification: JSON!
1367
- """Is the expense active or not"""
1368
- active: Boolean
1369
- """
1370
- Should we save the supplier or not (by setting this to true you are required to add a supplier)
1371
- """
1372
- addRecipient: Boolean
1373
- """
1374
- Should we save the accounting classification (by setting this to true you are required to add an accounting classification that contains title & irsCode)
1375
- """
1376
- addAccountingClassification: Boolean
1377
- }
1378
-
1379
- """Payment method"""
1380
- union mutation_addExpense_oneOf_0_allOf_0_paymentType = Boolean_container | mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container
1381
-
1382
- type mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container {
1383
- mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1: mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1 @resolveRoot(subgraph: "GreenInvoice")
1384
- }
1385
-
1386
- enum mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1 {
1387
- _1 @enum(subgraph: "GreenInvoice", value: "1")
1388
- _2 @enum(subgraph: "GreenInvoice", value: "2")
1389
- _3 @enum(subgraph: "GreenInvoice", value: "3")
1390
- _4 @enum(subgraph: "GreenInvoice", value: "4")
1391
- _5 @enum(subgraph: "GreenInvoice", value: "5")
1392
- _10 @enum(subgraph: "GreenInvoice", value: "10")
1393
- _11 @enum(subgraph: "GreenInvoice", value: "11")
1394
- }
1395
-
1396
- input Expense_Input {
1397
- paymentType: mutation_addExpense_oneOf_0_allOf_0_paymentType_Input
1398
- currency: JSON!
1399
- """Currency rate relative to ILS"""
1400
- currencyRate: Float
1401
- vat: JSON!
1402
- amount: JSON!
1403
- date: JSON!
1404
- """Due date of the expense"""
1405
- dueDate: String
1406
- reportingDate: JSON!
1407
- documentType: JSON!
1408
- number: JSON!
1409
- """Description for the expense"""
1410
- description: String
1411
- remarks: String
1412
- supplier: JSON!
1413
- accountingClassification: JSON!
1414
- """Is the expense active or not"""
1415
- active: Boolean
1416
- """
1417
- Should we save the supplier or not (by setting this to true you are required to add a supplier)
1418
- """
1419
- addRecipient: Boolean
1420
- """
1421
- Should we save the accounting classification (by setting this to true you are required to add an accounting classification that contains title & irsCode)
1422
- """
1423
- addAccountingClassification: Boolean
1424
- }
1425
-
1426
- input mutation_addExpense_oneOf_0_allOf_0_paymentType_Input @oneOf(subgraph: "GreenInvoice") {
1427
- Boolean: Boolean
1428
- mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1: mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1
1429
- }
1430
-
1431
- union addDocumentResponse = AddedDocument | ErrorResponse
1432
-
1433
- type AddedDocument {
1384
+ type _DOLLAR_defs_AddedDocument {
1434
1385
  """Document ID"""
1435
1386
  id: String!
1436
- lang: DocumentLang!
1387
+ lang: _DOLLAR_defs_DocumentLang!
1437
1388
  """Document serial number"""
1438
- number: Int!
1389
+ number: PositiveInt!
1439
1390
  """Digital sign the document"""
1440
1391
  signed: Boolean!
1441
- url: Url!
1392
+ url: _DOLLAR_defs_Url!
1442
1393
  }
1443
1394
 
1395
+ """Integers that will have a value greater than 0."""
1396
+ scalar PositiveInt
1397
+
1444
1398
  """Add a document to the current business"""
1445
- input addDocumentRequest_Input {
1399
+ input _DOLLAR_defs_addDocumentRequest_Input {
1446
1400
  """Document's description"""
1447
- description: String
1401
+ description: NonEmptyString
1448
1402
  remarks: String
1449
1403
  """Texts appearing in footer"""
1450
1404
  footer: String
1451
- type: DocumentType!
1405
+ type: _DOLLAR_defs_DocumentType!
1452
1406
  """Document date in the format YYYY-MM-DD"""
1453
1407
  date: String
1454
1408
  """Document payment due date in the format YYYY-MM-DD"""
1455
1409
  dueDate: String
1456
- lang: DocumentLang!
1457
- currency: Currency!
1458
- vatType: VatType!
1459
- discount: DocumentDiscount_Input
1410
+ lang: _DOLLAR_defs_DocumentLang!
1411
+ currency: _DOLLAR_defs_Currency!
1412
+ vatType: _DOLLAR_defs_VatType!
1413
+ discount: _DOLLAR_defs_DocumentDiscount_Input
1460
1414
  """Round the amounts"""
1461
1415
  rounding: Boolean
1462
1416
  """Digital sign the document"""
1463
1417
  signed: Boolean
1464
1418
  """Max payments allowed (valid only on supported accounts)"""
1465
1419
  maxPayments: Int
1466
- client: mutationInput_addDocument_input_allOf_0_client_Input
1467
- income: [Income_Input]
1468
- payment: [PaymentDocument_Input]
1420
+ client: JSON
1421
+ income: [_DOLLAR_defs_Income_Input]
1422
+ payment: [_DOLLAR_defs_PaymentDocument_Input]
1469
1423
  """
1470
1424
  Linked document IDs. allows you to state the related / relevant documents, e.g.: when creating a receipt, attach your original invoice document ID as one of the ids in the linkedDocumentIds - this in turn will automatically close the original invoice if needed.
1471
1425
  """
@@ -1474,24 +1428,80 @@ input addDocumentRequest_Input {
1474
1428
  Linked payment ID (valid for document type 305 only). allows you to define the paymentId that the document is going to be relevant to, this can be attached only to invoice documents (type 305).
1475
1429
  """
1476
1430
  linkedPaymentId: String
1477
- linkType: mutationInput_addDocument_input_allOf_0_linkType
1431
+ linkType: queryInput_previewDocument_input_linkType
1478
1432
  """Email content to send with the document"""
1479
1433
  emailContent: String
1480
1434
  """Whether to attach the document to the email"""
1481
1435
  attachment: Boolean
1482
1436
  }
1483
1437
 
1484
- union updateExpenseResponse = GetExpense | ErrorResponse
1438
+ union _DOLLAR_defs_addExpenseResponse = _DOLLAR_defs_Expense | _DOLLAR_defs_ErrorResponse
1439
+
1440
+ type _DOLLAR_defs_Expense {
1441
+ paymentType: mutation_addExpense_oneOf_0_allOf_0_paymentType
1442
+ currency: _DOLLAR_defs_Currency
1443
+ """Currency rate relative to ILS"""
1444
+ currencyRate: NonNegativeFloat
1445
+ """VAT amount"""
1446
+ vat: NonNegativeFloat
1447
+ """The total amount of the expense"""
1448
+ amount: Float
1449
+ """Date of the expense"""
1450
+ date: String
1451
+ """Due date of the expense"""
1452
+ dueDate: String
1453
+ """Reporting date of the expense"""
1454
+ reportingDate: String
1455
+ documentType: _DOLLAR_defs_ExpenseDocumentType
1456
+ """Number of the expense"""
1457
+ number: String
1458
+ """Description for the expense"""
1459
+ description: String
1460
+ """Remarks for the expense"""
1461
+ remarks: String
1462
+ supplier: _DOLLAR_defs_Supplier
1463
+ accountingClassification: _DOLLAR_defs_AccountingClassification
1464
+ """Is the expense active or not"""
1465
+ active: Boolean
1466
+ """
1467
+ Should we save the supplier or not (by setting this to true you are required to add a supplier)
1468
+ """
1469
+ addRecipient: Boolean
1470
+ """
1471
+ Should we save the accounting classification (by setting this to true you are required to add an accounting classification that contains title & irsCode)
1472
+ """
1473
+ addAccountingClassification: Boolean
1474
+ JSON: JSON @resolveRoot(subgraph: "GreenInvoice")
1475
+ }
1476
+
1477
+ """Payment method"""
1478
+ union mutation_addExpense_oneOf_0_allOf_0_paymentType = Boolean_container | mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container
1479
+
1480
+ type mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1_container {
1481
+ mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1: mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1 @resolveRoot(subgraph: "GreenInvoice")
1482
+ }
1485
1483
 
1486
- input updateExpenseRequest_Input {
1484
+ enum mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1 {
1485
+ _1 @enum(subgraph: "GreenInvoice", value: "1")
1486
+ _2 @enum(subgraph: "GreenInvoice", value: "2")
1487
+ _3 @enum(subgraph: "GreenInvoice", value: "3")
1488
+ _4 @enum(subgraph: "GreenInvoice", value: "4")
1489
+ _5 @enum(subgraph: "GreenInvoice", value: "5")
1490
+ _10 @enum(subgraph: "GreenInvoice", value: "10")
1491
+ _11 @enum(subgraph: "GreenInvoice", value: "11")
1492
+ }
1493
+
1494
+ union _DOLLAR_defs_updateExpenseResponse = _DOLLAR_defs_GetExpense | _DOLLAR_defs_ErrorResponse
1495
+
1496
+ input _DOLLAR_defs_updateExpenseRequest_Input {
1487
1497
  """The expense ID"""
1488
1498
  id: String!
1489
1499
  paymentType: mutationInput_updateExpense_input_paymentType_Input
1490
- currency: Currency
1500
+ currency: _DOLLAR_defs_Currency
1491
1501
  """Currency rate relative to ILS"""
1492
- currencyRate: Float
1502
+ currencyRate: NonNegativeFloat
1493
1503
  """VAT amount"""
1494
- vat: Float
1504
+ vat: NonNegativeFloat
1495
1505
  """The total amount of the expense"""
1496
1506
  amount: Float
1497
1507
  """Date of the expense"""
@@ -1500,14 +1510,15 @@ input updateExpenseRequest_Input {
1500
1510
  dueDate: String
1501
1511
  """Reporting date of the expense"""
1502
1512
  reportingDate: String
1503
- documentType: ExpenseDocumentType
1513
+ documentType: _DOLLAR_defs_ExpenseDocumentType
1504
1514
  """Number of the expense"""
1505
1515
  number: String
1506
1516
  """Description for the expense"""
1507
1517
  description: String
1518
+ """Remarks for the expense"""
1508
1519
  remarks: String
1509
- supplier: Supplier_Input
1510
- accountingClassification: AccountingClassification_Input
1520
+ supplier: _DOLLAR_defs_Supplier_Input
1521
+ accountingClassification: _DOLLAR_defs_AccountingClassification_Input
1511
1522
  """Is the expense active or not"""
1512
1523
  active: Boolean
1513
1524
  }
@@ -1527,8 +1538,30 @@ enum mutationInput_updateExpense_input_paymentType_oneOf_1 {
1527
1538
  _11 @enum(subgraph: "GreenInvoice", value: "11")
1528
1539
  }
1529
1540
 
1530
- """Supplier of the expense"""
1531
- input Supplier_Input {
1541
+ input _DOLLAR_defs_Supplier_Input {
1542
+ """Phone number"""
1543
+ phone: String
1544
+ """Mobile number"""
1545
+ mobile: String
1546
+ """Email addresses"""
1547
+ emails: [EmailAddress]
1548
+ """Fax number"""
1549
+ fax: String
1550
+ """Contact person name"""
1551
+ contactPerson: String
1552
+ """Street address"""
1553
+ address: String
1554
+ """City name"""
1555
+ city: String
1556
+ """Zip/postal code"""
1557
+ zip: String
1558
+ country: _DOLLAR_defs_Country
1559
+ """Bank name"""
1560
+ bankName: String
1561
+ """Bank branch number"""
1562
+ bankBranch: String
1563
+ """Bank account number"""
1564
+ bankAccount: String
1532
1565
  """The supplier ID"""
1533
1566
  id: String
1534
1567
  """The supplier name"""
@@ -1537,38 +1570,16 @@ input Supplier_Input {
1537
1570
  active: Boolean
1538
1571
  """The supplier tax ID"""
1539
1572
  taxId: String
1540
- paymentTerms: mutation_addExpense_oneOf_0_allOf_0_supplier_paymentTerms
1541
- """The supplier bank name"""
1542
- bankName: String
1543
- """The supplier bank branch number"""
1544
- bankBranch: String
1545
- """The supplier bank account number"""
1546
- bankAccount: String
1547
- country: Country
1548
- """The supplier phone number"""
1549
- phone: String
1550
- """The supplier mobile number"""
1551
- mobile: String
1552
- """The supplier contact person name"""
1553
- contactPerson: String
1554
- emails: [String]
1573
+ paymentTerms: query_getExpense_supplier_allOf_3_paymentTerms
1555
1574
  labels: [String]
1556
1575
  """The creation date, in UNIX timestamp format"""
1557
- creationDate: Int
1576
+ creationDate: NonNegativeInt
1558
1577
  """The last update date of the supplier, in UNIX timestamp format"""
1559
1578
  lastUpdateDate: Int
1560
1579
  """The supplier department"""
1561
1580
  department: String
1562
1581
  """The supplier accounting key"""
1563
1582
  accountingKey: String
1564
- """The supplier address"""
1565
- address: String
1566
- """The supplier city"""
1567
- city: String
1568
- """The supplier zip code"""
1569
- zip: String
1570
- """The supplier fax number"""
1571
- fax: String
1572
1583
  """The Supplier remarks for self use"""
1573
1584
  remarks: String
1574
1585
  """The amount of incomes from the customer"""
@@ -1579,7 +1590,7 @@ input Supplier_Input {
1579
1590
  }
1580
1591
 
1581
1592
  """Account classification of the expense"""
1582
- input AccountingClassification_Input {
1593
+ input _DOLLAR_defs_AccountingClassification_Input {
1583
1594
  """The classification ID, see 'Get Accounting Classifications' endpoint"""
1584
1595
  id: String
1585
1596
  """The classification key"""
@@ -1588,7 +1599,7 @@ input AccountingClassification_Input {
1588
1599
  code: String
1589
1600
  """The classification title"""
1590
1601
  title: String
1591
- irsCode: mutation_addExpense_oneOf_0_allOf_0_accountingClassification_irsCode
1602
+ irsCode: query_getExpense_accountingClassification_irsCode
1592
1603
  """The classification income"""
1593
1604
  income: Float
1594
1605
  """The classification type"""
@@ -1597,17 +1608,17 @@ input AccountingClassification_Input {
1597
1608
  vat: Float
1598
1609
  }
1599
1610
 
1600
- union addExpenseDraftByFile_response @statusCodeTypeName(subgraph: "GreenInvoice", statusCode: "200", typeName: "GetExpenseDraft") @statusCodeTypeName(subgraph: "GreenInvoice", statusCode: "201", typeName: "GetExpenseDraft") @statusCodeTypeName(subgraph: "GreenInvoice", statusCode: "400", typeName: "generalErrorResponse") @statusCodeTypeName(subgraph: "GreenInvoice", statusCode: "404", typeName: "generalErrorResponse") @statusCodeTypeName(subgraph: "GreenInvoice", statusCode: "405", typeName: "generalErrorResponse") = GetExpenseDraft | generalErrorResponse
1611
+ union addExpenseDraftByFile_response @statusCodeTypeName(subgraph: "GreenInvoice", statusCode: "200", typeName: "addExpenseDraftByFile_200_response") @statusCodeTypeName(subgraph: "GreenInvoice", statusCode: "201", typeName: "addExpenseDraftByFile_200_response") @statusCodeTypeName(subgraph: "GreenInvoice", statusCode: "400", typeName: "searchExpenseDrafts_404_response") @statusCodeTypeName(subgraph: "GreenInvoice", statusCode: "404", typeName: "searchExpenseDrafts_404_response") @statusCodeTypeName(subgraph: "GreenInvoice", statusCode: "405", typeName: "searchExpenseDrafts_404_response") = addExpenseDraftByFile_200_response | searchExpenseDrafts_404_response
1601
1612
 
1602
- type GetExpenseDraft {
1613
+ type addExpenseDraftByFile_200_response {
1603
1614
  """The expense draft ID"""
1604
1615
  id: String
1605
1616
  status: mutation_addExpenseDraftByFile_oneOf_0_status
1606
1617
  """The creation date, in UNIX timestamp format"""
1607
- creationDate: Int
1618
+ creationDate: NonNegativeInt
1608
1619
  """The last update date of the expense draft, in UNIX timestamp format"""
1609
1620
  lastUpdateDate: Int
1610
- expense: ExpensePartial
1621
+ expense: _DOLLAR_defs_ExpensePartial
1611
1622
  """URL of expense thumbnail"""
1612
1623
  thumbnail: String
1613
1624
  """URL to download the expense thumbnail"""
@@ -1621,13 +1632,13 @@ enum mutation_addExpenseDraftByFile_oneOf_0_status {
1621
1632
  }
1622
1633
 
1623
1634
  """A Single Expense"""
1624
- type ExpensePartial {
1635
+ type _DOLLAR_defs_ExpensePartial {
1625
1636
  paymentType: mutation_addExpense_oneOf_0_allOf_0_paymentType
1626
- currency: Currency
1637
+ currency: _DOLLAR_defs_Currency
1627
1638
  """Currency rate relative to ILS"""
1628
- currencyRate: Float
1639
+ currencyRate: NonNegativeFloat
1629
1640
  """VAT amount"""
1630
- vat: Float
1641
+ vat: NonNegativeFloat
1631
1642
  """The total amount of the expense"""
1632
1643
  amount: Float
1633
1644
  """Date of the expense"""
@@ -1636,14 +1647,15 @@ type ExpensePartial {
1636
1647
  dueDate: String
1637
1648
  """Reporting date of the expense"""
1638
1649
  reportingDate: String
1639
- documentType: ExpenseDocumentType
1650
+ documentType: _DOLLAR_defs_ExpenseDocumentType
1640
1651
  """Number of the expense"""
1641
1652
  number: String
1642
1653
  """Description for the expense"""
1643
1654
  description: String
1655
+ """Remarks for the expense"""
1644
1656
  remarks: String
1645
- supplier: Supplier
1646
- accountingClassification: AccountingClassification
1657
+ supplier: _DOLLAR_defs_Supplier
1658
+ accountingClassification: _DOLLAR_defs_AccountingClassification
1647
1659
  """Is the expense active or not"""
1648
1660
  active: Boolean
1649
1661
  """
@@ -1656,11 +1668,143 @@ type ExpensePartial {
1656
1668
  addAccountingClassification: Boolean
1657
1669
  }
1658
1670
 
1659
- input addExpenseDraftByFileRequest_Input {
1671
+ input _DOLLAR_defs_addExpenseDraftByFileRequest_Input {
1660
1672
  """The file, in Base64, allowed types: GIF, PNG, JPG, SVG, PDF"""
1661
1673
  file: String
1662
1674
  }
1663
1675
 
1676
+ union _DOLLAR_defs_addClientResponse = _DOLLAR_defs_getClientResponse | _DOLLAR_defs_ErrorResponse
1677
+
1678
+ """Add a new client to the current business"""
1679
+ input _DOLLAR_defs_addClientRequest_Input {
1680
+ """Phone number"""
1681
+ phone: String
1682
+ """Mobile number"""
1683
+ mobile: String
1684
+ """Email addresses"""
1685
+ emails: [EmailAddress]
1686
+ """Fax number"""
1687
+ fax: String
1688
+ """Contact person name"""
1689
+ contactPerson: String
1690
+ """Street address"""
1691
+ address: String
1692
+ """City name"""
1693
+ city: String
1694
+ """Zip/postal code"""
1695
+ zip: String
1696
+ country: _DOLLAR_defs_Country
1697
+ """Bank name"""
1698
+ bankName: String
1699
+ """Bank branch number"""
1700
+ bankBranch: String
1701
+ """Bank account number"""
1702
+ bankAccount: String
1703
+ """The client name"""
1704
+ name: NonEmptyString!
1705
+ """Is the client currently active or not"""
1706
+ active: Boolean
1707
+ """The client tax ID"""
1708
+ taxId: String
1709
+ paymentTerms: mutationInput_addClient_input_allOf_3_paymentTerms
1710
+ labels: [String]
1711
+ """
1712
+ Whether to send emails to the user automatically when assigning him to an invoice or not
1713
+ """
1714
+ send: Boolean
1715
+ """The client department"""
1716
+ department: String
1717
+ """The client accounting key"""
1718
+ accountingKey: String
1719
+ """The category this client is related to"""
1720
+ category: Int
1721
+ """The sub category this client is related to"""
1722
+ subCategory: Int
1723
+ """Client remarks for self use"""
1724
+ remarks: String
1725
+ }
1726
+
1727
+ """The client payment term, default is 0"""
1728
+ enum mutationInput_addClient_input_allOf_3_paymentTerms {
1729
+ NEGATIVE_1 @enum(subgraph: "GreenInvoice", value: "-1")
1730
+ _0 @enum(subgraph: "GreenInvoice", value: "0")
1731
+ _10 @enum(subgraph: "GreenInvoice", value: "10")
1732
+ _15 @enum(subgraph: "GreenInvoice", value: "15")
1733
+ _30 @enum(subgraph: "GreenInvoice", value: "30")
1734
+ _45 @enum(subgraph: "GreenInvoice", value: "45")
1735
+ _60 @enum(subgraph: "GreenInvoice", value: "60")
1736
+ _75 @enum(subgraph: "GreenInvoice", value: "75")
1737
+ _90 @enum(subgraph: "GreenInvoice", value: "90")
1738
+ _120 @enum(subgraph: "GreenInvoice", value: "120")
1739
+ }
1740
+
1741
+ union _DOLLAR_defs_updateClientResponse = _DOLLAR_defs_getClientResponse | _DOLLAR_defs_ErrorResponse
1742
+
1743
+ """Update an existing client"""
1744
+ input _DOLLAR_defs_updateClientRequest_Input {
1745
+ """The client name"""
1746
+ name: NonEmptyString!
1747
+ """Is the client currently active or not"""
1748
+ active: Boolean
1749
+ """The client tax ID"""
1750
+ taxId: String
1751
+ paymentTerms: mutationInput_updateClient_input_paymentTerms
1752
+ labels: [String]
1753
+ """
1754
+ Whether to send emails to the user automatically when assigning him to an invoice or not
1755
+ """
1756
+ send: Boolean
1757
+ """The client department"""
1758
+ department: String
1759
+ """The client accounting key"""
1760
+ accountingKey: String
1761
+ """The category this client is related to"""
1762
+ category: Int
1763
+ """The sub category this client is related to"""
1764
+ subCategory: Int
1765
+ """Client remarks for self use"""
1766
+ remarks: String
1767
+ """Phone number"""
1768
+ phone: String
1769
+ """Mobile number"""
1770
+ mobile: String
1771
+ """Email addresses"""
1772
+ emails: [EmailAddress]
1773
+ """Fax number"""
1774
+ fax: String
1775
+ """Contact person name"""
1776
+ contactPerson: String
1777
+ """Street address"""
1778
+ address: String
1779
+ """City name"""
1780
+ city: String
1781
+ """Zip/postal code"""
1782
+ zip: String
1783
+ country: _DOLLAR_defs_Country
1784
+ """Bank name"""
1785
+ bankName: String
1786
+ """Bank branch number"""
1787
+ bankBranch: String
1788
+ """Bank account number"""
1789
+ bankAccount: String
1790
+ }
1791
+
1792
+ """The client payment term, default is 0"""
1793
+ enum mutationInput_updateClient_input_paymentTerms {
1794
+ NEGATIVE_1 @enum(subgraph: "GreenInvoice", value: "-1")
1795
+ _0 @enum(subgraph: "GreenInvoice", value: "0")
1796
+ _10 @enum(subgraph: "GreenInvoice", value: "10")
1797
+ _15 @enum(subgraph: "GreenInvoice", value: "15")
1798
+ _30 @enum(subgraph: "GreenInvoice", value: "30")
1799
+ _45 @enum(subgraph: "GreenInvoice", value: "45")
1800
+ _60 @enum(subgraph: "GreenInvoice", value: "60")
1801
+ _75 @enum(subgraph: "GreenInvoice", value: "75")
1802
+ _90 @enum(subgraph: "GreenInvoice", value: "90")
1803
+ _120 @enum(subgraph: "GreenInvoice", value: "120")
1804
+ }
1805
+
1806
+ union _DOLLAR_defs_deleteClientResponse = _DOLLAR_defs_getClientResponse | _DOLLAR_defs_ErrorResponse
1807
+
1664
1808
  scalar ObjMap
1665
1809
 
1666
1810
  enum HTTPMethod {
@@ -1675,7 +1819,7 @@ enum HTTPMethod {
1675
1819
  PATCH
1676
1820
  }
1677
1821
 
1678
- type getFileUploadUrlResponse {
1822
+ type _DOLLAR_defs_getFileUploadUrlResponse {
1679
1823
  """File Upload URL"""
1680
1824
  url: String!
1681
1825
  fields: query_getFileUploadUrl_fields!
@@ -1704,7 +1848,7 @@ input queryInput_getFileUploadUrl_data_Input {
1704
1848
  state: String
1705
1849
  }
1706
1850
 
1707
- type getBankTransactionsResponse {
1851
+ type _DOLLAR_defs_getBankTransactionsResponse {
1708
1852
  size: Int
1709
1853
  total: Int
1710
1854
  pages: Int
@@ -1712,10 +1856,10 @@ type getBankTransactionsResponse {
1712
1856
  from: Int
1713
1857
  to: Int
1714
1858
  aggregations: JSON
1715
- results: [BankTransaction]
1859
+ results: [_DOLLAR_defs_BankTransaction]
1716
1860
  }
1717
1861
 
1718
- type BankTransaction {
1862
+ type _DOLLAR_defs_BankTransaction {
1719
1863
  """The transaction ID"""
1720
1864
  id: String
1721
1865
  aspspCode: _12_const
@@ -1737,7 +1881,7 @@ type BankTransaction {
1737
1881
  creditorName: String
1738
1882
  """The creditor account"""
1739
1883
  creditorAccount: String
1740
- currency: Currency
1884
+ currency: _DOLLAR_defs_Currency
1741
1885
  """Value date of the transaction"""
1742
1886
  valueDate: String
1743
1887
  """Booking date of the transaction"""