@accounter/green-invoice-graphql 0.8.2-alpha-20251102160658-6d41b0a7bb225382246645badf39a28bcd8102e1 → 0.8.2-alpha-20251102162844-adaba3b25910083f6ebd80bd580629e1c0871260

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,173 +7,166 @@ directive @enum(subgraph: String, value: String) on ENUM_VALUE
7
7
 
8
8
  directive @resolveRoot(subgraph: String) on FIELD_DEFINITION
9
9
 
10
- directive @example(subgraph: String, value: ObjMap) repeatable on FIELD_DEFINITION | OBJECT | INPUT_OBJECT | ENUM | SCALAR
10
+ directive @resolveRootField(subgraph: String, field: String) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION
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
+
14
16
  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
15
17
 
16
18
  directive @transport(subgraph: String, kind: String, location: String, headers: [[String]], queryStringOptions: ObjMap, queryParams: [[String]]) repeatable on SCHEMA
17
19
 
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
- 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\"}")
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\"}")
33
33
  }
34
34
 
35
35
  type Mutation {
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)
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)
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)
50
41
  }
51
42
 
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!
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 {
91
57
  """Document's description"""
92
- description: NonEmptyString!
93
- """Document reference date"""
94
- documentDate: Date!
95
- downloaded: Boolean!
58
+ description: String
59
+ remarks: String
96
60
  """Texts appearing in footer"""
97
61
  footer: String
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!
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
109
71
  """Round the amounts"""
110
- rounding: Boolean!
72
+ rounding: Boolean
111
73
  """Digital sign the document"""
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!
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
127
89
  }
128
90
 
129
- """Floats that will have a value of 0 or more."""
130
- scalar NonNegativeFloat
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
+ }
131
107
 
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!
108
+ """Document language"""
109
+ enum DocumentLang {
110
+ en
111
+ he
152
112
  }
153
113
 
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")
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
+ }
158
144
 
159
- """The business type ID"""
160
- enum query_getDocument_business_type {
145
+ """VAT type"""
146
+ enum VatType @example(subgraph: "GreenInvoice", value: "0") {
147
+ _0 @enum(subgraph: "GreenInvoice", value: "0")
161
148
  _1 @enum(subgraph: "GreenInvoice", value: "1")
162
149
  _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")
167
150
  }
168
151
 
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
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!
175
168
  """The client name"""
176
- name: NonEmptyString
169
+ name: String
177
170
  phone: String
178
171
  """The client tax ID"""
179
172
  taxId: String
@@ -191,11 +184,10 @@ type query_getDocument_client {
191
184
  mobile: String
192
185
  """Add a temporary client to the clients' list"""
193
186
  add: Boolean
194
- JSON: JSON @resolveRoot(subgraph: "GreenInvoice")
195
187
  }
196
188
 
197
189
  """2-letter ISO supplier country code, default is IL"""
198
- enum _DOLLAR_defs_Country {
190
+ enum Country {
199
191
  UG
200
192
  UZ
201
193
  AT
@@ -449,143 +441,44 @@ enum _DOLLAR_defs_Country {
449
441
  }
450
442
 
451
443
  """
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.
453
- """
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.
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).
458
445
  """
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
- }
502
-
503
- """Represents date values"""
504
- scalar Date
446
+ scalar JSON @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
505
447
 
506
- type _DOLLAR_defs_Income {
448
+ input Income_Input {
507
449
  """Amount"""
508
- amount: NonNegativeFloat
450
+ amount: Float
509
451
  """Total amount"""
510
- amountTotal: NonNegativeFloat
452
+ amountTotal: Float
511
453
  """Catalog number"""
512
454
  catalogNum: String
513
- currency: _DOLLAR_defs_Currency!
455
+ currency: Currency!
514
456
  """Currency rate relative to ILS"""
515
- currencyRate: NonNegativeFloat
457
+ currencyRate: Float
516
458
  """Item description"""
517
- description: NonEmptyString!
459
+ description: String!
518
460
  """The ID of the item to attach as income"""
519
461
  itemId: String
520
462
  """Item price"""
521
- price: NonNegativeFloat!
463
+ price: Float!
522
464
  """Quantity"""
523
- quantity: NonNegativeFloat!
465
+ quantity: Float!
524
466
  """VAT amount"""
525
- vat: NonNegativeFloat
467
+ vat: Float
526
468
  """VAT rate"""
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
469
+ vatRate: Float
470
+ vatType: VatType!
542
471
  }
543
472
 
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!
473
+ input PaymentDocument_Input {
474
+ currency: Currency!
582
475
  """Currency rate relative to ILS"""
583
- currencyRate: NonNegativeFloat
476
+ currencyRate: Float
584
477
  date: String
585
478
  """Sum paid"""
586
479
  price: Float!
587
- type: query_getDocument_payment_items_type!
588
- subType: query_getDocument_payment_items_subType
480
+ type: mutationInput_addDocument_input_allOf_0_payment_items_type!
481
+ subType: mutationInput_addDocument_input_allOf_0_payment_items_subType
589
482
  """Bank name (required when using Cheques)"""
590
483
  bankName: String
591
484
  """Bank branch number (required when using Cheques)"""
@@ -598,11 +491,11 @@ type _DOLLAR_defs_PaymentDocument {
598
491
  accountId: String
599
492
  """Transaction ID (PayPal / Payment App / Other)"""
600
493
  transactionId: String
601
- appType: query_getDocument_payment_items_appType
602
- cardType: query_getDocument_payment_items_cardType
494
+ appType: mutationInput_addDocument_input_allOf_0_payment_items_appType
495
+ cardType: mutationInput_addDocument_input_allOf_0_payment_items_cardType
603
496
  """Credit card's last 4 digits"""
604
497
  cardNum: String
605
- dealType: query_getDocument_payment_items_dealType
498
+ dealType: mutationInput_addDocument_input_allOf_0_payment_items_dealType
606
499
  """Credit card's payments count (1-36)"""
607
500
  numPayments: Int
608
501
  """Credit card's first payment"""
@@ -610,7 +503,7 @@ type _DOLLAR_defs_PaymentDocument {
610
503
  }
611
504
 
612
505
  """Payment method"""
613
- enum query_getDocument_payment_items_type {
506
+ enum mutationInput_addDocument_input_allOf_0_payment_items_type {
614
507
  NEGATIVE_1 @enum(subgraph: "GreenInvoice", value: "-1")
615
508
  _0 @enum(subgraph: "GreenInvoice", value: "0")
616
509
  _1 @enum(subgraph: "GreenInvoice", value: "1")
@@ -624,7 +517,7 @@ enum query_getDocument_payment_items_type {
624
517
  }
625
518
 
626
519
  """Other payment sub type (required when using 'other' as a Payment type)"""
627
- enum query_getDocument_payment_items_subType {
520
+ enum mutationInput_addDocument_input_allOf_0_payment_items_subType {
628
521
  _1 @enum(subgraph: "GreenInvoice", value: "1")
629
522
  _2 @enum(subgraph: "GreenInvoice", value: "2")
630
523
  _3 @enum(subgraph: "GreenInvoice", value: "3")
@@ -636,7 +529,7 @@ enum query_getDocument_payment_items_subType {
636
529
  }
637
530
 
638
531
  """Payment app type (required when using 'payment app' as a Payment type)"""
639
- enum query_getDocument_payment_items_appType {
532
+ enum mutationInput_addDocument_input_allOf_0_payment_items_appType {
640
533
  _1 @enum(subgraph: "GreenInvoice", value: "1")
641
534
  _2 @enum(subgraph: "GreenInvoice", value: "2")
642
535
  _3 @enum(subgraph: "GreenInvoice", value: "3")
@@ -646,7 +539,7 @@ enum query_getDocument_payment_items_appType {
646
539
  }
647
540
 
648
541
  """Credit card type"""
649
- enum query_getDocument_payment_items_cardType {
542
+ enum mutationInput_addDocument_input_allOf_0_payment_items_cardType {
650
543
  _1 @enum(subgraph: "GreenInvoice", value: "1")
651
544
  _2 @enum(subgraph: "GreenInvoice", value: "2")
652
545
  _3 @enum(subgraph: "GreenInvoice", value: "3")
@@ -655,7 +548,7 @@ enum query_getDocument_payment_items_cardType {
655
548
  }
656
549
 
657
550
  """Credit card deal type"""
658
- enum query_getDocument_payment_items_dealType {
551
+ enum mutationInput_addDocument_input_allOf_0_payment_items_dealType {
659
552
  _1 @enum(subgraph: "GreenInvoice", value: "1")
660
553
  _2 @enum(subgraph: "GreenInvoice", value: "2")
661
554
  _3 @enum(subgraph: "GreenInvoice", value: "3")
@@ -664,248 +557,27 @@ enum query_getDocument_payment_items_dealType {
664
557
  _6 @enum(subgraph: "GreenInvoice", value: "6")
665
558
  }
666
559
 
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
560
  """Reference type (applicable only when using linkedDocumentIds)"""
870
- enum queryInput_previewDocument_input_linkType {
561
+ enum mutationInput_addDocument_input_allOf_0_linkType {
871
562
  LINK
872
563
  CANCEL
873
564
  }
874
565
 
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
892
- }
893
-
894
566
  """A Single Expense"""
895
- type _DOLLAR_defs_GetExpense {
567
+ type GetExpense {
896
568
  """The amount excluding the vat"""
897
569
  amountExcludeVat: Float
898
570
  """The expense ID"""
899
571
  id: String
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
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
905
577
  """Currency rate relative to ILS"""
906
- currencyRate: NonNegativeFloat
578
+ currencyRate: Float
907
579
  """VAT amount"""
908
- vat: NonNegativeFloat
580
+ vat: Float
909
581
  """The total amount of the expense"""
910
582
  amount: Float
911
583
  """Date of the expense"""
@@ -920,7 +592,7 @@ type _DOLLAR_defs_GetExpense {
920
592
  description: String
921
593
  """Remarks for the expense"""
922
594
  remarks: String
923
- supplier: _DOLLAR_defs_Supplier
595
+ supplier: Supplier
924
596
  """URL of expense thumbnail"""
925
597
  thumbnail: String
926
598
  """URL to download the expense thumbnail"""
@@ -929,7 +601,7 @@ type _DOLLAR_defs_GetExpense {
929
601
  cancellable: Boolean
930
602
  """Reporting date of the expense"""
931
603
  reportingDate: String
932
- accountingClassification: _DOLLAR_defs_AccountingClassification
604
+ accountingClassification: AccountingClassification
933
605
  """The local amount of the expense"""
934
606
  amountLocal: Float
935
607
  """The amount of accounting"""
@@ -937,13 +609,13 @@ type _DOLLAR_defs_GetExpense {
937
609
  """The vat amount of accounting"""
938
610
  vatAccounting: Float
939
611
  """The creation date, in UNIX timestamp format"""
940
- creationDate: NonNegativeInt
612
+ creationDate: Int
941
613
  """The last update date of the expense, in UNIX timestamp format"""
942
614
  lastUpdateDate: Int
943
615
  }
944
616
 
945
617
  """The business type ID"""
946
- enum query_getExpense_businessType {
618
+ enum mutation_updateExpense_oneOf_0_businessType {
947
619
  _1 @enum(subgraph: "GreenInvoice", value: "1")
948
620
  _2 @enum(subgraph: "GreenInvoice", value: "2")
949
621
  _3 @enum(subgraph: "GreenInvoice", value: "3")
@@ -953,7 +625,7 @@ enum query_getExpense_businessType {
953
625
  }
954
626
 
955
627
  """Document type"""
956
- enum _DOLLAR_defs_ExpenseDocumentType {
628
+ enum ExpenseDocumentType {
957
629
  _20 @enum(subgraph: "GreenInvoice", value: "20")
958
630
  _305 @enum(subgraph: "GreenInvoice", value: "305")
959
631
  _320 @enum(subgraph: "GreenInvoice", value: "320")
@@ -963,7 +635,7 @@ enum _DOLLAR_defs_ExpenseDocumentType {
963
635
  }
964
636
 
965
637
  """The status of the expense"""
966
- enum query_getExpense_status {
638
+ enum mutation_updateExpense_oneOf_0_status {
967
639
  _10 @enum(subgraph: "GreenInvoice", value: "10")
968
640
  _20 @enum(subgraph: "GreenInvoice", value: "20")
969
641
  _30 @enum(subgraph: "GreenInvoice", value: "30")
@@ -971,7 +643,7 @@ enum query_getExpense_status {
971
643
  }
972
644
 
973
645
  """Payment method"""
974
- enum query_getExpense_paymentType {
646
+ enum mutation_updateExpense_oneOf_0_paymentType {
975
647
  NEGATIVE_1 @enum(subgraph: "GreenInvoice", value: "-1")
976
648
  _0 @enum(subgraph: "GreenInvoice", value: "0")
977
649
  _1 @enum(subgraph: "GreenInvoice", value: "1")
@@ -983,30 +655,8 @@ enum query_getExpense_paymentType {
983
655
  _11 @enum(subgraph: "GreenInvoice", value: "11")
984
656
  }
985
657
 
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
658
+ """Supplier of the expense"""
659
+ type Supplier {
1010
660
  """The supplier ID"""
1011
661
  id: String
1012
662
  """The supplier name"""
@@ -1015,16 +665,38 @@ type _DOLLAR_defs_Supplier {
1015
665
  active: Boolean
1016
666
  """The supplier tax ID"""
1017
667
  taxId: String
1018
- paymentTerms: query_getExpense_supplier_allOf_3_paymentTerms
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]
1019
683
  labels: [String]
1020
684
  """The creation date, in UNIX timestamp format"""
1021
- creationDate: NonNegativeInt
685
+ creationDate: Int
1022
686
  """The last update date of the supplier, in UNIX timestamp format"""
1023
687
  lastUpdateDate: Int
1024
688
  """The supplier department"""
1025
689
  department: String
1026
690
  """The supplier accounting key"""
1027
691
  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
1028
700
  """The Supplier remarks for self use"""
1029
701
  remarks: String
1030
702
  """The amount of incomes from the customer"""
@@ -1035,7 +707,7 @@ type _DOLLAR_defs_Supplier {
1035
707
  }
1036
708
 
1037
709
  """The supplier payment term, default is 0"""
1038
- enum query_getExpense_supplier_allOf_3_paymentTerms {
710
+ enum mutation_addExpense_oneOf_0_allOf_0_supplier_paymentTerms {
1039
711
  NEGATIVE_1 @enum(subgraph: "GreenInvoice", value: "-1")
1040
712
  _0 @enum(subgraph: "GreenInvoice", value: "0")
1041
713
  _10 @enum(subgraph: "GreenInvoice", value: "10")
@@ -1049,7 +721,7 @@ enum query_getExpense_supplier_allOf_3_paymentTerms {
1049
721
  }
1050
722
 
1051
723
  """Account classification of the expense"""
1052
- type _DOLLAR_defs_AccountingClassification {
724
+ type AccountingClassification {
1053
725
  """The classification ID, see 'Get Accounting Classifications' endpoint"""
1054
726
  id: String
1055
727
  """The classification key"""
@@ -1058,7 +730,7 @@ type _DOLLAR_defs_AccountingClassification {
1058
730
  code: String
1059
731
  """The classification title"""
1060
732
  title: String
1061
- irsCode: query_getExpense_accountingClassification_irsCode
733
+ irsCode: mutation_addExpense_oneOf_0_allOf_0_accountingClassification_irsCode
1062
734
  """The classification income"""
1063
735
  income: Float
1064
736
  """The classification type"""
@@ -1068,7 +740,7 @@ type _DOLLAR_defs_AccountingClassification {
1068
740
  }
1069
741
 
1070
742
  """The classification IRS code"""
1071
- enum query_getExpense_accountingClassification_irsCode {
743
+ enum mutation_addExpense_oneOf_0_allOf_0_accountingClassification_irsCode {
1072
744
  _1306 @enum(subgraph: "GreenInvoice", value: "1306")
1073
745
  _1307 @enum(subgraph: "GreenInvoice", value: "1307")
1074
746
  _1310 @enum(subgraph: "GreenInvoice", value: "1310")
@@ -1126,23 +798,19 @@ enum query_getExpense_accountingClassification_irsCode {
1126
798
  _8090 @enum(subgraph: "GreenInvoice", value: "8090")
1127
799
  }
1128
800
 
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
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
1143
811
  }
1144
812
 
1145
- input _DOLLAR_defs_searchExpensesRequest_Input {
813
+ input searchExpensesRequest_Input {
1146
814
  """
1147
815
  Expense that were created after the specified date in the format YYYY-MM-DD
1148
816
  """
@@ -1181,122 +849,402 @@ input _DOLLAR_defs_searchExpensesRequest_Input {
1181
849
  pageSize: Float!
1182
850
  }
1183
851
 
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]!
1202
- }
1203
-
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 {
1214
- id: String!
1215
- status: Float!
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!
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]!
1224
862
  }
1225
863
 
1226
- type query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense {
1227
- accountingClassification: _DOLLAR_defs_AccountingClassification!
1228
- """Is the expense active or not"""
1229
- active: Boolean!
864
+ """A Single Document"""
865
+ type Document {
1230
866
  """
1231
- Should we save the supplier or not (by setting this to true you are required to add a supplier)
867
+ Total amount, in requested currency (including the VAT, Discount & Rounding)
1232
868
  """
1233
- addRecipient: Boolean!
1234
- """The total amount of the expense"""
1235
- amount: Float
1236
- confirmFromEdit: Boolean!
1237
- currency: _DOLLAR_defs_Currency!
1238
- """Currency rate relative to ILS"""
1239
- currencyRate: NonNegativeFloat!
1240
- """Date of the expense"""
1241
- date: String
1242
- """Description for the expense"""
1243
- description: String!
1244
- documentType: _DOLLAR_defs_ExpenseDocumentType!
1245
- """File hash"""
1246
- fileHash: String!
1247
- """Key of the file location"""
1248
- fileKey: String!
1249
- labels: [String]!
1250
- """Number of the expense"""
1251
- number: String
1252
- paymentType: query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType
1253
- """Reporting date of the expense"""
1254
- reportingDate: String!
1255
- supplier: _DOLLAR_defs_Supplier!
1256
- tags: [String]!
1257
- texts: [String]!
1258
- """VAT amount"""
1259
- vat: NonNegativeFloat!
1260
- }
1261
-
1262
- """Payment method"""
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
1264
-
1265
- type Boolean_container {
1266
- Boolean: Boolean @resolveRoot(subgraph: "GreenInvoice")
1267
- }
1268
-
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")
1271
- }
1272
-
1273
- enum query_searchExpenseDrafts_oneOf_0_allOf_1_items_items_expense_paymentType_oneOf_1 {
1274
- _1 @enum(subgraph: "GreenInvoice", value: "1")
1275
- _2 @enum(subgraph: "GreenInvoice", value: "2")
1276
- _3 @enum(subgraph: "GreenInvoice", value: "3")
1277
- _4 @enum(subgraph: "GreenInvoice", value: "4")
1278
- _5 @enum(subgraph: "GreenInvoice", value: "5")
1279
- _10 @enum(subgraph: "GreenInvoice", value: "10")
1280
- _11 @enum(subgraph: "GreenInvoice", value: "11")
1281
- }
1282
-
1283
- type searchExpenseDrafts_404_response {
1284
- errorCode: Int
1285
- errorMessage: String
1286
- }
1287
-
1288
- input _DOLLAR_defs_searchExpenseDraftsRequest_Input {
869
+ amount: Float!
1289
870
  """
1290
- Expense drafts that were created after the specified date in the format YYYY-MM-DD
871
+ Amount due VAT - Amount before VAT, and before rounding & discount (if requested)
1291
872
  """
1292
- fromDate: Date
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!
1293
878
  """
1294
- Expense drafts that were created until the specified date in the format YYYY-MM-DD
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)
1295
880
  """
1296
- toDate: Date
1297
- """Expense draft description"""
1298
- description: String
1299
- """Supplier's ID"""
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"""
911
+ 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
+ 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!
939
+ }
940
+
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"""
1177
+ active: Boolean!
1178
+ """
1179
+ Should we save the supplier or not (by setting this to true you are required to add a supplier)
1180
+ """
1181
+ addRecipient: Boolean!
1182
+ """The total amount of the expense"""
1183
+ amount: Float
1184
+ confirmFromEdit: Boolean!
1185
+ currency: Currency!
1186
+ """Currency rate relative to ILS"""
1187
+ currencyRate: Float!
1188
+ """Date of the expense"""
1189
+ date: String
1190
+ """Description for the expense"""
1191
+ description: String!
1192
+ documentType: ExpenseDocumentType!
1193
+ """File hash"""
1194
+ fileHash: String!
1195
+ """Key of the file location"""
1196
+ fileKey: String!
1197
+ labels: [String]!
1198
+ """Number of the expense"""
1199
+ number: String
1200
+ paymentType: query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType
1201
+ """Reporting date of the expense"""
1202
+ reportingDate: String!
1203
+ supplier: Supplier!
1204
+ tags: [String]!
1205
+ texts: [String]!
1206
+ """VAT amount"""
1207
+ vat: Float!
1208
+ }
1209
+
1210
+ """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
1212
+
1213
+ type Boolean_container {
1214
+ Boolean: Boolean @resolveRoot(subgraph: "GreenInvoice")
1215
+ }
1216
+
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")
1219
+ }
1220
+
1221
+ enum query_searchExpenseDrafts_oneOf_0_items_items_expense_paymentType_oneOf_1 {
1222
+ _1 @enum(subgraph: "GreenInvoice", value: "1")
1223
+ _2 @enum(subgraph: "GreenInvoice", value: "2")
1224
+ _3 @enum(subgraph: "GreenInvoice", value: "3")
1225
+ _4 @enum(subgraph: "GreenInvoice", value: "4")
1226
+ _5 @enum(subgraph: "GreenInvoice", value: "5")
1227
+ _10 @enum(subgraph: "GreenInvoice", value: "10")
1228
+ _11 @enum(subgraph: "GreenInvoice", value: "11")
1229
+ }
1230
+
1231
+ type generalErrorResponse {
1232
+ errorCode_: Int @resolveRootField(subgraph: "GreenInvoice", field: "errorCode:")
1233
+ errorMessage: String
1234
+ }
1235
+
1236
+ input searchExpenseDraftsRequest_Input {
1237
+ """
1238
+ Expense drafts that were created after the specified date in the format YYYY-MM-DD
1239
+ """
1240
+ fromDate: String
1241
+ """
1242
+ Expense drafts that were created until the specified date in the format YYYY-MM-DD
1243
+ """
1244
+ toDate: String
1245
+ """Expense draft description"""
1246
+ description: String
1247
+ """Supplier's ID"""
1300
1248
  supplierId: String
1301
1249
  """Supplier's name"""
1302
1250
  supplierName: String
@@ -1306,42 +1254,51 @@ input _DOLLAR_defs_searchExpenseDraftsRequest_Input {
1306
1254
  pageSize: Float
1307
1255
  }
1308
1256
 
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
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 {
1333
1277
  """The client ID"""
1334
- id: UUID
1278
+ id: String
1335
1279
  """The client name"""
1336
- name: NonEmptyString
1280
+ name: String
1337
1281
  """Is the client currently active or not"""
1338
1282
  active: Boolean
1339
1283
  """The client tax ID"""
1340
1284
  taxId: String
1341
- paymentTerms: query_getClient_allOf_3_paymentTerms
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]
1342
1299
  labels: [String]
1343
1300
  """The creation date, in UNIX timestamp format"""
1344
- creationDate: NonNegativeInt
1301
+ creationDate: Int
1345
1302
  """The last update date of the supplier, in UNIX timestamp format"""
1346
1303
  lastUpdateDate: Int
1347
1304
  """
@@ -1352,10 +1309,18 @@ type _DOLLAR_defs_getClientResponse {
1352
1309
  department: String
1353
1310
  """The supplier accounting key"""
1354
1311
  accountingKey: String
1312
+ """The supplier address"""
1313
+ address: String
1314
+ """The supplier city"""
1315
+ city: String
1316
+ """The supplier zip code"""
1317
+ zip: String
1355
1318
  """The category this client is related to"""
1356
1319
  category: Int
1357
1320
  """The sub category this client is related to"""
1358
1321
  subCategory: Int
1322
+ """Client fax"""
1323
+ fax: String
1359
1324
  """Client remarks for self use"""
1360
1325
  remarks: String
1361
1326
  """The amount of incomes from the customer"""
@@ -1366,7 +1331,7 @@ type _DOLLAR_defs_getClientResponse {
1366
1331
  }
1367
1332
 
1368
1333
  """The client payment term, default is 0"""
1369
- enum query_getClient_allOf_3_paymentTerms {
1334
+ enum query_getClient_paymentTerms {
1370
1335
  NEGATIVE_1 @enum(subgraph: "GreenInvoice", value: "-1")
1371
1336
  _0 @enum(subgraph: "GreenInvoice", value: "0")
1372
1337
  _10 @enum(subgraph: "GreenInvoice", value: "10")
@@ -1379,88 +1344,26 @@ enum query_getClient_allOf_3_paymentTerms {
1379
1344
  _120 @enum(subgraph: "GreenInvoice", value: "120")
1380
1345
  }
1381
1346
 
1382
- union _DOLLAR_defs_addDocumentResponse = _DOLLAR_defs_AddedDocument | _DOLLAR_defs_ErrorResponse
1383
-
1384
- type _DOLLAR_defs_AddedDocument {
1385
- """Document ID"""
1386
- id: String!
1387
- lang: _DOLLAR_defs_DocumentLang!
1388
- """Document serial number"""
1389
- number: PositiveInt!
1390
- """Digital sign the document"""
1391
- signed: Boolean!
1392
- url: _DOLLAR_defs_Url!
1393
- }
1394
-
1395
- """Integers that will have a value greater than 0."""
1396
- scalar PositiveInt
1397
-
1398
- """Add a document to the current business"""
1399
- input _DOLLAR_defs_addDocumentRequest_Input {
1400
- """Document's description"""
1401
- description: NonEmptyString
1402
- remarks: String
1403
- """Texts appearing in footer"""
1404
- footer: String
1405
- type: _DOLLAR_defs_DocumentType!
1406
- """Document date in the format YYYY-MM-DD"""
1407
- date: String
1408
- """Document payment due date in the format YYYY-MM-DD"""
1409
- dueDate: String
1410
- lang: _DOLLAR_defs_DocumentLang!
1411
- currency: _DOLLAR_defs_Currency!
1412
- vatType: _DOLLAR_defs_VatType!
1413
- discount: _DOLLAR_defs_DocumentDiscount_Input
1414
- """Round the amounts"""
1415
- rounding: Boolean
1416
- """Digital sign the document"""
1417
- signed: Boolean
1418
- """Max payments allowed (valid only on supported accounts)"""
1419
- maxPayments: Int
1420
- client: JSON
1421
- income: [_DOLLAR_defs_Income_Input]
1422
- payment: [_DOLLAR_defs_PaymentDocument_Input]
1423
- """
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.
1425
- """
1426
- linkedDocumentIds: [String]
1427
- """
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).
1429
- """
1430
- linkedPaymentId: String
1431
- linkType: queryInput_previewDocument_input_linkType
1432
- """Email content to send with the document"""
1433
- emailContent: String
1434
- """Whether to attach the document to the email"""
1435
- attachment: Boolean
1436
- }
1437
-
1438
- union _DOLLAR_defs_addExpenseResponse = _DOLLAR_defs_Expense | _DOLLAR_defs_ErrorResponse
1347
+ union addExpenseResponse = Expense | ErrorResponse
1439
1348
 
1440
- type _DOLLAR_defs_Expense {
1349
+ type Expense {
1441
1350
  paymentType: mutation_addExpense_oneOf_0_allOf_0_paymentType
1442
- currency: _DOLLAR_defs_Currency
1351
+ currency: JSON!
1443
1352
  """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
1353
+ currencyRate: Float
1354
+ vat: JSON!
1355
+ amount: JSON!
1356
+ date: JSON!
1451
1357
  """Due date of the expense"""
1452
1358
  dueDate: String
1453
- """Reporting date of the expense"""
1454
- reportingDate: String
1455
- documentType: _DOLLAR_defs_ExpenseDocumentType
1456
- """Number of the expense"""
1457
- number: String
1359
+ reportingDate: JSON!
1360
+ documentType: JSON!
1361
+ number: JSON!
1458
1362
  """Description for the expense"""
1459
1363
  description: String
1460
- """Remarks for the expense"""
1461
1364
  remarks: String
1462
- supplier: _DOLLAR_defs_Supplier
1463
- accountingClassification: _DOLLAR_defs_AccountingClassification
1365
+ supplier: JSON!
1366
+ accountingClassification: JSON!
1464
1367
  """Is the expense active or not"""
1465
1368
  active: Boolean
1466
1369
  """
@@ -1471,7 +1374,6 @@ type _DOLLAR_defs_Expense {
1471
1374
  Should we save the accounting classification (by setting this to true you are required to add an accounting classification that contains title & irsCode)
1472
1375
  """
1473
1376
  addAccountingClassification: Boolean
1474
- JSON: JSON @resolveRoot(subgraph: "GreenInvoice")
1475
1377
  }
1476
1378
 
1477
1379
  """Payment method"""
@@ -1491,17 +1393,105 @@ enum mutation_addExpense_oneOf_0_allOf_0_paymentType_oneOf_1 {
1491
1393
  _11 @enum(subgraph: "GreenInvoice", value: "11")
1492
1394
  }
1493
1395
 
1494
- union _DOLLAR_defs_updateExpenseResponse = _DOLLAR_defs_GetExpense | _DOLLAR_defs_ErrorResponse
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 {
1434
+ """Document ID"""
1435
+ id: String!
1436
+ lang: DocumentLang!
1437
+ """Document serial number"""
1438
+ number: Int!
1439
+ """Digital sign the document"""
1440
+ signed: Boolean!
1441
+ url: Url!
1442
+ }
1443
+
1444
+ """Add a document to the current business"""
1445
+ input addDocumentRequest_Input {
1446
+ """Document's description"""
1447
+ description: String
1448
+ remarks: String
1449
+ """Texts appearing in footer"""
1450
+ footer: String
1451
+ type: DocumentType!
1452
+ """Document date in the format YYYY-MM-DD"""
1453
+ date: String
1454
+ """Document payment due date in the format YYYY-MM-DD"""
1455
+ dueDate: String
1456
+ lang: DocumentLang!
1457
+ currency: Currency!
1458
+ vatType: VatType!
1459
+ discount: DocumentDiscount_Input
1460
+ """Round the amounts"""
1461
+ rounding: Boolean
1462
+ """Digital sign the document"""
1463
+ signed: Boolean
1464
+ """Max payments allowed (valid only on supported accounts)"""
1465
+ maxPayments: Int
1466
+ client: mutationInput_addDocument_input_allOf_0_client_Input
1467
+ income: [Income_Input]
1468
+ payment: [PaymentDocument_Input]
1469
+ """
1470
+ 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
+ """
1472
+ linkedDocumentIds: [String]
1473
+ """
1474
+ 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
+ """
1476
+ linkedPaymentId: String
1477
+ linkType: mutationInput_addDocument_input_allOf_0_linkType
1478
+ """Email content to send with the document"""
1479
+ emailContent: String
1480
+ """Whether to attach the document to the email"""
1481
+ attachment: Boolean
1482
+ }
1483
+
1484
+ union updateExpenseResponse = GetExpense | ErrorResponse
1495
1485
 
1496
- input _DOLLAR_defs_updateExpenseRequest_Input {
1486
+ input updateExpenseRequest_Input {
1497
1487
  """The expense ID"""
1498
1488
  id: String!
1499
1489
  paymentType: mutationInput_updateExpense_input_paymentType_Input
1500
- currency: _DOLLAR_defs_Currency
1490
+ currency: Currency
1501
1491
  """Currency rate relative to ILS"""
1502
- currencyRate: NonNegativeFloat
1492
+ currencyRate: Float
1503
1493
  """VAT amount"""
1504
- vat: NonNegativeFloat
1494
+ vat: Float
1505
1495
  """The total amount of the expense"""
1506
1496
  amount: Float
1507
1497
  """Date of the expense"""
@@ -1510,15 +1500,14 @@ input _DOLLAR_defs_updateExpenseRequest_Input {
1510
1500
  dueDate: String
1511
1501
  """Reporting date of the expense"""
1512
1502
  reportingDate: String
1513
- documentType: _DOLLAR_defs_ExpenseDocumentType
1503
+ documentType: ExpenseDocumentType
1514
1504
  """Number of the expense"""
1515
1505
  number: String
1516
1506
  """Description for the expense"""
1517
1507
  description: String
1518
- """Remarks for the expense"""
1519
1508
  remarks: String
1520
- supplier: _DOLLAR_defs_Supplier_Input
1521
- accountingClassification: _DOLLAR_defs_AccountingClassification_Input
1509
+ supplier: Supplier_Input
1510
+ accountingClassification: AccountingClassification_Input
1522
1511
  """Is the expense active or not"""
1523
1512
  active: Boolean
1524
1513
  }
@@ -1538,30 +1527,8 @@ enum mutationInput_updateExpense_input_paymentType_oneOf_1 {
1538
1527
  _11 @enum(subgraph: "GreenInvoice", value: "11")
1539
1528
  }
1540
1529
 
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
1530
+ """Supplier of the expense"""
1531
+ input Supplier_Input {
1565
1532
  """The supplier ID"""
1566
1533
  id: String
1567
1534
  """The supplier name"""
@@ -1570,16 +1537,38 @@ input _DOLLAR_defs_Supplier_Input {
1570
1537
  active: Boolean
1571
1538
  """The supplier tax ID"""
1572
1539
  taxId: String
1573
- paymentTerms: query_getExpense_supplier_allOf_3_paymentTerms
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]
1574
1555
  labels: [String]
1575
1556
  """The creation date, in UNIX timestamp format"""
1576
- creationDate: NonNegativeInt
1557
+ creationDate: Int
1577
1558
  """The last update date of the supplier, in UNIX timestamp format"""
1578
1559
  lastUpdateDate: Int
1579
1560
  """The supplier department"""
1580
1561
  department: String
1581
1562
  """The supplier accounting key"""
1582
1563
  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
1583
1572
  """The Supplier remarks for self use"""
1584
1573
  remarks: String
1585
1574
  """The amount of incomes from the customer"""
@@ -1590,7 +1579,7 @@ input _DOLLAR_defs_Supplier_Input {
1590
1579
  }
1591
1580
 
1592
1581
  """Account classification of the expense"""
1593
- input _DOLLAR_defs_AccountingClassification_Input {
1582
+ input AccountingClassification_Input {
1594
1583
  """The classification ID, see 'Get Accounting Classifications' endpoint"""
1595
1584
  id: String
1596
1585
  """The classification key"""
@@ -1599,7 +1588,7 @@ input _DOLLAR_defs_AccountingClassification_Input {
1599
1588
  code: String
1600
1589
  """The classification title"""
1601
1590
  title: String
1602
- irsCode: query_getExpense_accountingClassification_irsCode
1591
+ irsCode: mutation_addExpense_oneOf_0_allOf_0_accountingClassification_irsCode
1603
1592
  """The classification income"""
1604
1593
  income: Float
1605
1594
  """The classification type"""
@@ -1608,17 +1597,17 @@ input _DOLLAR_defs_AccountingClassification_Input {
1608
1597
  vat: Float
1609
1598
  }
1610
1599
 
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
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
1612
1601
 
1613
- type addExpenseDraftByFile_200_response {
1602
+ type GetExpenseDraft {
1614
1603
  """The expense draft ID"""
1615
1604
  id: String
1616
1605
  status: mutation_addExpenseDraftByFile_oneOf_0_status
1617
1606
  """The creation date, in UNIX timestamp format"""
1618
- creationDate: NonNegativeInt
1607
+ creationDate: Int
1619
1608
  """The last update date of the expense draft, in UNIX timestamp format"""
1620
1609
  lastUpdateDate: Int
1621
- expense: _DOLLAR_defs_ExpensePartial
1610
+ expense: ExpensePartial
1622
1611
  """URL of expense thumbnail"""
1623
1612
  thumbnail: String
1624
1613
  """URL to download the expense thumbnail"""
@@ -1632,13 +1621,13 @@ enum mutation_addExpenseDraftByFile_oneOf_0_status {
1632
1621
  }
1633
1622
 
1634
1623
  """A Single Expense"""
1635
- type _DOLLAR_defs_ExpensePartial {
1624
+ type ExpensePartial {
1636
1625
  paymentType: mutation_addExpense_oneOf_0_allOf_0_paymentType
1637
- currency: _DOLLAR_defs_Currency
1626
+ currency: Currency
1638
1627
  """Currency rate relative to ILS"""
1639
- currencyRate: NonNegativeFloat
1628
+ currencyRate: Float
1640
1629
  """VAT amount"""
1641
- vat: NonNegativeFloat
1630
+ vat: Float
1642
1631
  """The total amount of the expense"""
1643
1632
  amount: Float
1644
1633
  """Date of the expense"""
@@ -1647,15 +1636,14 @@ type _DOLLAR_defs_ExpensePartial {
1647
1636
  dueDate: String
1648
1637
  """Reporting date of the expense"""
1649
1638
  reportingDate: String
1650
- documentType: _DOLLAR_defs_ExpenseDocumentType
1639
+ documentType: ExpenseDocumentType
1651
1640
  """Number of the expense"""
1652
1641
  number: String
1653
1642
  """Description for the expense"""
1654
1643
  description: String
1655
- """Remarks for the expense"""
1656
1644
  remarks: String
1657
- supplier: _DOLLAR_defs_Supplier
1658
- accountingClassification: _DOLLAR_defs_AccountingClassification
1645
+ supplier: Supplier
1646
+ accountingClassification: AccountingClassification
1659
1647
  """Is the expense active or not"""
1660
1648
  active: Boolean
1661
1649
  """
@@ -1668,143 +1656,11 @@ type _DOLLAR_defs_ExpensePartial {
1668
1656
  addAccountingClassification: Boolean
1669
1657
  }
1670
1658
 
1671
- input _DOLLAR_defs_addExpenseDraftByFileRequest_Input {
1659
+ input addExpenseDraftByFileRequest_Input {
1672
1660
  """The file, in Base64, allowed types: GIF, PNG, JPG, SVG, PDF"""
1673
1661
  file: String
1674
1662
  }
1675
1663
 
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
-
1808
1664
  scalar ObjMap
1809
1665
 
1810
1666
  enum HTTPMethod {
@@ -1819,7 +1675,7 @@ enum HTTPMethod {
1819
1675
  PATCH
1820
1676
  }
1821
1677
 
1822
- type _DOLLAR_defs_getFileUploadUrlResponse {
1678
+ type getFileUploadUrlResponse {
1823
1679
  """File Upload URL"""
1824
1680
  url: String!
1825
1681
  fields: query_getFileUploadUrl_fields!
@@ -1848,7 +1704,7 @@ input queryInput_getFileUploadUrl_data_Input {
1848
1704
  state: String
1849
1705
  }
1850
1706
 
1851
- type _DOLLAR_defs_getBankTransactionsResponse {
1707
+ type getBankTransactionsResponse {
1852
1708
  size: Int
1853
1709
  total: Int
1854
1710
  pages: Int
@@ -1856,10 +1712,10 @@ type _DOLLAR_defs_getBankTransactionsResponse {
1856
1712
  from: Int
1857
1713
  to: Int
1858
1714
  aggregations: JSON
1859
- results: [_DOLLAR_defs_BankTransaction]
1715
+ results: [BankTransaction]
1860
1716
  }
1861
1717
 
1862
- type _DOLLAR_defs_BankTransaction {
1718
+ type BankTransaction {
1863
1719
  """The transaction ID"""
1864
1720
  id: String
1865
1721
  aspspCode: _12_const
@@ -1881,7 +1737,7 @@ type _DOLLAR_defs_BankTransaction {
1881
1737
  creditorName: String
1882
1738
  """The creditor account"""
1883
1739
  creditorAccount: String
1884
- currency: _DOLLAR_defs_Currency
1740
+ currency: Currency
1885
1741
  """Value date of the transaction"""
1886
1742
  valueDate: String
1887
1743
  """Booking date of the transaction"""