-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
676 lines (607 loc) · 28.8 KB
/
Copy pathtypes.go
File metadata and controls
676 lines (607 loc) · 28.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
package xledger
import (
"github.com/cydev/zero"
"github.com/omniboost/go-xledger/omitempty"
)
type QLQueryPaginated[T any] struct {
PageInfo struct {
HasNextPage bool
}
Edges []struct {
Cursor string
Node T
}
}
type QLQuery[T any] struct {
Edges []struct {
Node T
}
}
type Account struct {
DBID int `graphql:"dbId"`
Code string `graphql:"code"`
Description string `graphql:"description"`
OwnerDBID int `graphql:"ownerDbId"`
ModifiedAt DateTime `graphql:"modifiedAt"`
BalanceSheet bool `graphql:"balanceSheet"`
Asset bool `graphql:"asset"`
Cost bool `graphql:"cost"`
Credit bool `graphql:"credit"`
Equity bool `graphql:"equity"`
Finance bool `graphql:"finance"`
Liabilities bool `graphql:"liabilities"`
Posting bool `graphql:"posting"`
Revenue bool `graphql:"revenue"`
ChartOfAccountDBID int `graphql:"chartOfAccountDbId"`
AccountGroupDBID int `graphql:"accountGroupDbId"`
Group bool `graphql:"group"`
DescriptionTranslated string `graphql:"descriptionTranslated"`
YearEnd bool `graphql:"yearEnd"`
Vat bool `graphql:"vat"`
CostOfGoodsSold bool `graphql:"costOfGoodsSold"`
CostWagesSalaries bool `graphql:"costWagesSalaries"`
CostDepreciation bool `graphql:"costDepreciation"`
CostSalesAndMarketing bool `graphql:"costSalesAndMarketing"`
CostOtherOperating bool `graphql:"costOtherOperating"`
//SysAccount interface{} `graphql:"sysAccount"`
//AccountGroup interface{} `graphql:"accountGroup"`
//Owner interface{} `graphql:"owner"`
//AccountIndicator interface{} `graphql:"accountIndicator"`
//ChartOfAccount interface{} `graphql:"chartOfAccount"`
//LedgerType interface{} `graphql:"ledgerType"`
}
type Customer struct {
IsIntraGroup bool `graphql:"isIntraGroup"`
Email string `graphql:"email"`
DBID int `graphql:"dbId"`
ExtIdentifier string `graphql:"extIdentifier"`
CreatedAt DateTime `graphql:"createdAt"`
ModifiedAt DateTime `graphql:"modifiedAt"`
Phone string `graphql:"phone"`
InvoiceNumber string `graphql:"invoiceNumber"`
YourReference string `graphql:"yourReference"`
FromDate string `graphql:"fromDate"`
ToDate string `graphql:"toDate"`
Code string `graphql:"code"`
Description string `graphql:"description"`
OwnerDBID int `graphql:"ownerDbId"`
CodeTranslated string `graphql:"codeTranslated"`
DescriptionTranslated string `graphql:"descriptionTranslated"`
ID string `graphql:"id"`
Number int `graphql:"number"`
PaymentNotification bool `graphql:"paymentNotification"`
CreditLimit string `graphql:"creditLimit"`
Contract string `graphql:"contract"`
Notes string `graphql:"notes"`
Phone2 string `graphql:"phone2"`
TaxNo string `graphql:"taxNo"`
PayDocText string `graphql:"payDocText"`
BankAccount string `graphql:"bankAccount"`
CompanyDBID int `graphql:"companyDbId"`
SubledgerGroupDBID int `graphql:"subledgerGroupDbId"`
//HasFlexiField bool `graphql:"hasFlexiField"`
//FlexiFieldFlag1 bool `graphql:"flexiFieldFlag1"`
//FlexiFieldFlag2 bool `graphql:"flexiFieldFlag2"`
//FlexiFieldFlag3 bool `graphql:"flexiFieldFlag3"`
//FlexiFieldFlag4 bool `graphql:"flexiFieldFlag4"`
//FlexiFieldDate1 Date `graphql:"flexiFieldDate1"`
//FlexiFieldDate2 Date `graphql:"flexiFieldDate2"`
//FlexiFieldDate3 Date `graphql:"flexiFieldDate3"`
//FlexiFieldDate4 Date `graphql:"flexiFieldDate4"`
//FlexiFieldValue1 float64 `graphql:"flexiFieldValue1"`
//FlexiFieldValue2 float64 `graphql:"flexiFieldValue2"`
//FlexiFieldValue3 float64 `graphql:"flexiFieldValue3"`
//FlexiFieldValue4 float64 `graphql:"flexiFieldValue4"`
//FlexiFieldNumber1 int `graphql:"flexiFieldNumber1"`
//FlexiFieldNumber2 int `graphql:"flexiFieldNumber2"`
//FlexiFieldText1 string `graphql:"flexiFieldText1"`
//FlexiFieldText2 string `graphql:"flexiFieldText2"`
//FlexiFieldText3 string `graphql:"flexiFieldText3"`
//FlexiFieldText4 string `graphql:"flexiFieldText4"`
//FlexiFieldText5 string `graphql:"flexiFieldText5"`
//FlexiFieldText6 string `graphql:"flexiFieldText6"`
//FlexiFieldText7 string `graphql:"flexiFieldText7"`
//FlexiFieldText8 string `graphql:"flexiFieldText8"`
//FlexiFieldCode1DBID int `graphql:"flexiFieldCode1DbId"`
//FlexiFieldCode2DBID int `graphql:"flexiFieldCode2DbId"`
//FlexiFieldCode3DBID int `graphql:"flexiFieldCode3DbId"`
//FlexiFieldCode4DBID int `graphql:"flexiFieldCode4DbId"`
//FlexiFieldCode5DBID int `graphql:"flexiFieldCode5DbId"`
//FlexiFieldCode6DBID int `graphql:"flexiFieldCode6DbId"`
//FlexiFieldCode7DBID int `graphql:"flexiFieldCode7DbId"`
//FlexiFieldCode8DBID int `graphql:"flexiFieldCode8DbId"`
//PriceList interface{} `graphql:"priceList"`
//PriceGroup interface{} `graphql:"priceGroup"`
//ReportSetup interface{} `graphql:"reportSetup"`
//Changes interface{} `graphql:"_changes"`
//PayDocCode interface{} `graphql:"payDocCode"`
//SubledgerGroup interface{} `graphql:"subledgerGroup"`
//FlexiFieldsItem interface{} `graphql:"flexiFieldsItem"`
//PhoneType2 interface{} `graphql:"phoneType2"`
//PhoneType interface{} `graphql:"phoneType"`
//Language interface{} `graphql:"language"`
//InvoiceLayout interface{} `graphql:"invoiceLayout"`
//InvoiceDeliveryMethod interface{} `graphql:"invoiceDeliveryMethod"`
//Currency interface{} `graphql:"currency"`
//Xgl interface{} `graphql:"xgl"`
//ledgerType interface{} `graphql:"ledgerType"`
//PaymentCharge interface{} `graphql:"paymentCharge"`
//CultureInfo interface{} `graphql:"cultureInfo"`
//ApTaxReporting interface{} `graphql:"apTaxReporting"`
//Contact interface{} `graphql:"contact"`
//OurRef interface{} `graphql:"ourRef"`
//OurSales interface{} `graphql:"ourSales"`
//ShipAddress interface{} `graphql:"shipAddress"`
//BillAddress interface{} `graphql:"billAddress"`
//GlObject3 interface{} `graphql:"glObject3"`
//GlObject2 interface{} `graphql:"glObject2"`
//GlObject1 interface{} `graphql:"glObject1"`
//GlObject4 interface{} `graphql:"glObject4"`
//GlObject5 interface{} `graphql:"glObject5"`
Address Address `graphql:"address"`
//Company interface{} `graphql:"company"`
//Owner interface{} `graphql:"owner"`
//Collection interface{} `graphql:"collection"`
//PayTerms interface{} `graphql:"payTerms"`
//PayMethod interface{} `graphql:"payMethod"`
//TaxRule interface{} `graphql:"taxRule"`
//AccountsPayableAccount interface{} `graphql:"accountsPayableAccount"`
//Bank interface{} `graphql:"bank"`
//BankRecord interface{} `graphql:"bankRecord"`
}
type Address struct {
Country Country `graphql:"country"`
StreetAddress string `graphql:"streetAddress"`
ZipCode string `graphql:"zipCode"`
Place string `graphql:"place"`
}
type Country struct {
DBID int `graphql:"dbId"`
Code string `graphql:"code"`
Description string `graphql:"description"`
}
type Currency struct {
DBID int `graphql:"dbId"`
Description string `graphql:"description"`
Code string `graphql:"code"`
}
type SubLedger struct {
DBID int `graphql:"dbId"`
Description string `graphql:"description"`
}
type TaxCode struct {
DBID int `graphql:"dbId"`
OwnerDbId int `graphql:"ownerDbId"`
Text string `graphql:"text"`
Code string `graphql:"code"`
}
type Company struct {
DBID int `graphql:"dbId"`
Description string `graphql:"description"`
Code string `graphql:"code"`
Country string `graphql:"country"`
Address Address `graphql:"address"`
TaxNumber string `graphql:"taxNumber"`
CompanyName string `graphql:"companyName"`
CompanyNumber string `graphql:"companyNumber"`
Email string `graphql:"email"`
ModifiedAt DateTime `graphql:"modifiedAt"`
Name string `graphql:"name"`
Notes string `graphql:"notes"`
Phone string `graphql:"phone"`
Phone2 string `graphql:"phone2"`
Phone3 string `graphql:"phone3"`
TaxNo string `graphql:"taxNo"`
}
func (c Company) IsZero() bool {
return zero.IsZero(c)
}
type ObjectKind struct {
DBID string `graphql:"dbId"`
Name string `graphql:"name"`
}
type ObjectValue struct {
DBID int `graphql:"dbId"`
ObjectKind ObjectKind `graphql:"objectKind"`
Code string `graphql:"code"`
Description string `graphql:"description"`
}
type CompanyInputCountry struct {
Code string `json:"code"`
}
func (c CompanyInputCountry) MarshalJSON() ([]byte, error) {
return omitempty.MarshalJSON(c)
}
func (c CompanyInputCountry) IsEmpty() bool {
return zero.IsZero(c)
}
type CompanyInputAddress struct {
Country string `json:"country"`
StreetAddress string `json:"streetAddress,omitempty"`
ZipCode string `json:"zipCode,omitempty"`
Place string `json:"place,omitempty"`
}
// func (CompaniesInput) GetGraphQLType() string {
// return "AddCompaniesInputNode"
// }
type GLImportItem struct {
DBID string `graphql:"dbId"`
PostedDate Date `graphql:"postedDate"`
InvoiceNumber *string `graphql:"invoiceNumber"`
Text *string `graphql:"text"`
Amount Number `graphql:"amount"`
InvoiceAmount Number `graphql:"invoiceAmount"`
CreatedAt DateTime `graphql:"createdAt"`
ModifiedAt DateTime `graphql:"modifiedAt"`
InvoiceDate *Date `graphql:"invoiceDate"`
DueDate *Date `graphql:"dueDate"`
YourReference *string `graphql:"yourReference"`
PaymentReference *string `graphql:"paymentReference"`
TaxAmount Number `graphql:"taxAmount"`
TrRegNumber int `graphql:"trRegNumber"`
JobLevel JobLevel `graphql:"jobLevel"`
TransactionSource TransactionSource `graphql:"transactionSource"`
Account Account `graphql:"account"`
Currency *Currency `graphql:"currency"`
TaxRule *TaxRule `graphql:"taxRule"`
Subledger *SubLedger `graphql:"subledger"`
//OwnerDbId int `graphql:"ownerDbId"`
//ExchangeRate float64 `graphql:"exchangeRate"`
ExtIdentifier string `graphql:"extIdentifier"`
//PositionNumber int `graphql:"positionNumber"`
//FiscalYear int `graphql:"fiscalYear"`
//Amount3 Number `graphql:"amount3"`
//Amount4 Number `graphql:"amount4"`
//Amount5 Number `graphql:"amount5"`
//Archive bool `graphql:"archive"`
//Quantity float64 `graphql:"quantity"`
//TrItemNumber int `graphql:"trItemNumber"`
ExtOrderNumber string `graphql:"extOrderNumber"`
//PayDocText *string `graphql:"payDocText"`
//PeriodStart *Date `graphql:"periodStart"`
//NumberPeriod int `graphql:"numberPeriod"`
//RegAmount Number `graphql:"regAmount"`
//TaxAmount2 Number `graphql:"taxAmount2"`
//DiscountDate *Date `graphql:"discountDate"`
//Discount Number `graphql:"discount"`
//DiscountAmount Number `graphql:"discountAmount"`
//Quantity2 Number `graphql:"quantity2"`
//Quantity3 Number `graphql:"quantity3"`
//Workflow string `graphql:"workflow"`
//FiscalPeriod int `graphql:"fiscalPeriod"`
//ImportDefinitionDbId int `graphql:"importDefinitionDbId"`
}
type TaxRule struct {
Code string `graphql:"code"`
}
type JobLevel struct {
DBSubId int `json:"dbSubId"`
}
type TransactionSource struct {
Code string `graphql:"code"`
}
type GLImportItemInput struct {
Account GLImportItemInputAccount `json:"account"`
Company GLImportItemCompany `json:"company,omitzero"`
Amount Number `json:"amount"`
JobLevel GLImportItemInputJobLevel `json:"jobLevel"`
Currency GLImportItemInputCurrency `json:"currency"`
TaxRule *GLImportItemInputTaxRule `json:"taxRule"`
TransactionSource GLImportItemInputTransactionSource `json:"transactionSource"`
Subledger Ref `json:"subledger,omitzero"`
ExtIdentifier string `json:"extIdentifier"`
TaxAmount Number `json:"taxAmount,omitempty"`
TrRegNumber int `json:"trRegNumber"`
PostedDate string `json:"postedDate"`
Quantity int `json:"quantity"`
Text string `json:"text,omitempty"`
YourReference string `json:"yourReference,omitempty"`
DueDate *string `json:"dueDate,omitempty"`
InvoiceDate *string `json:"invoiceDate,omitempty"`
InvoiceNumber string `json:"invoiceNumber,omitempty"`
InvoiceAmount Number `json:"invoiceAmount,omitempty"`
ExtOrderNumber string `json:"extOrderNumber,omitempty"`
GLObject1 Ref `json:"glObject1,omitzero"`
GLObject2 Ref `json:"glObject2,omitzero"`
GLObject3 Ref `json:"glObject3,omitzero"`
GLObject4 Ref `json:"glObject4,omitzero"`
GLObject5 Ref `json:"glObject5,omitzero"`
Entity Ref `json:"entity,omitzero"`
Owner Ref `json:"owner,omitzero"`
Project Ref `json:"project,omitzero"`
}
type Ref struct {
// Lookup reference matching field code.
Code string `json:"code,omitempty"`
// Lookup reference matching field dbId.
DBID int `json:"dbId,omitempty"`
// Lookup reference matching field dbSubId.
DBSubID int `json:"dbSubId,omitempty"`
Description string `json:"description,omitempty"`
// Providing YES here indicates that you want to show what alternatives are available.
// Warning: This property is intended for exploration during development. If you use this property anywhere, the request will return an error with a list of alternatives, and no mutations will take place.
ShowAlternatives bool `json:"showAlternatives,omitempty"`
// Specifies how reference resolution will happen (defaults to EXACTLY_ONE).
Specificity string `json:"specificity,omitempty"`
// Lookup reference matching field name.
Name string `json:"name,omitempty"`
}
func (r Ref) IsZero() bool {
return zero.IsZero(r)
}
type GLImportItemCompany struct {
Code string `json:"code,omitempty"`
DBID int `json:"dbId,omitempty"`
}
type GLImportItemInputAccount struct {
Code string `json:"code"`
}
type GLImportItemInputJobLevel struct {
DBSubId int `json:"dbSubId"`
}
type GLImportItemInputCurrency struct {
Code string `json:"code"`
}
type GLImportItemInputTaxRule struct {
Code string `json:"code"`
}
type GLImportItemInputTransactionSource struct {
Code string `json:"code"`
}
type AddGLImportItemsInput []AddGLImportItemsInputNode
func (GLImportItemInput) GetGraphQLType() string {
return "AddGLImportItemsInputNode"
}
func (AddGLImportItemsInput) GetGraphQLType() string {
return "[AddGLImportItemsInput!]"
}
type AddGLImportItemsInputNode struct {
Node GLImportItemInput `graphql:"node" json:"node"`
}
func (AddGLImportItemsInputNode) GetGraphQLType() string {
return "AddGLImportItemsInputNode"
}
type AddCompaniesInput []AddCompaniesInputNode
func (AddCompaniesInput) GetGraphQLType() string {
return "[AddCompaniesInput!]"
}
type AddCompaniesInputNode struct {
Node AddCompanyInput `graphql:"node" json:"node"`
}
func (AddCompaniesInputNode) GetGraphQLType() string {
return "AddCompaniesInputNode"
}
type UpdateCompaniesInput []UpdateCompaniesInputNode
func (UpdateCompaniesInput) GetGraphQLType() string {
return "[UpdateCompaniesInput!]"
}
type UpdateCompaniesInputNode struct {
Node UpdateCompanyInput `graphql:"node" json:"node"`
}
func (UpdateCompaniesInputNode) GetGraphQLType() string {
return "UpdateCompaniesInputNode"
}
type AddCustomersInput []AddCustomersInputNode
func (AddCustomersInput) GetGraphQLType() string {
return "[AddCustomersInput!]"
}
type AddCustomersInputNode struct {
Node CustomerInput `graphql:"node" json:"node"`
}
func (AddCustomersInputNode) GetGraphQLType() string {
return "AddCustomersInputNode"
}
type CustomerInput struct {
// only used for update
DBID int `json:"dbId,omitempty"`
Code string `json:"code,omitempty"`
Description string `json:"description,omitempty"`
CompanyNumber string `json:"companyNumber,omitempty"`
Email string `json:"email,omitempty"`
StreetAddress string `json:"streetAddress,omitempty"`
ZipCode string `json:"zipCode,omitempty"`
Place string `json:"place,omitempty"`
StreetAddress2 string `json:"streetAddress2,omitempty"`
ZipCode2 string `json:"zipCode2,omitempty"`
Place2 string `json:"place2,omitempty"`
Phone string `json:"phone,omitempty"`
PhoneNumber2 string `json:"phoneNumber2,omitempty"`
TaxNumber string `json:"taxNumber,omitempty"`
BankAccount string `json:"bankAccount,omitempty"`
PaymentNotification *bool `json:"paymentNotification,omitempty"`
CompanyName string `json:"companyName,omitempty"`
Name string `json:"name,omitempty"`
YourReference string `json:"yourReference,omitempty"`
Language Ref `json:"language,omitzero"`
InvoiceDeliveryMethod Ref `json:"invoiceDeliveryMethod,omitzero"`
Company Ref `json:"company,omitzero"`
Country Ref `json:"country,omitzero"`
Address Ref `json:"address,omitzero"`
BillAddress Ref `json:"billAddress,omitzero"`
ShipAddress Ref `json:"shipAddress,omitzero"`
FlexiFieldItem FlexiFieldInput `json:"flexiFieldItem,omitzero"`
InvoiceLayout Ref `json:"invoiceLayout,omitzero"`
PayTerms Ref `json:"payTerms,omitzero"`
GLObject1 Ref `json:"glObject1,omitzero"`
GLObject2 Ref `json:"glObject2,omitzero"`
Pricelist Ref `json:"pricelist,omitzero"`
PriceGroup Ref `json:"priceGroup,omitzero"`
ReportSetup Ref `json:"reportSetup,omitzero"`
State Ref `json:"state,omitzero"`
Collection Ref `json:"collection,omitzero"`
GLObject3 Ref `json:"glObject3,omitzero"`
GLObject4 Ref `json:"glObject4,omitzero"`
GLObject5 Ref `json:"glObject5,omitzero"`
OurRef Ref `json:"ourRef,omitzero"`
Owner Ref `json:"owner,omitzero"`
SubledgerGroup Ref `json:"subledgerGroup,omitzero"`
Country3 Ref `json:"country3,omitzero"`
Contract string `json:"contract,omitempty"`
XGL Ref `json:"xgl,omitzero"`
Country2 Ref `json:"country2,omitzero"`
Notes string `json:"notes,omitempty"`
OurSales Ref `json:"ourSales,omitzero"`
PayMethod Ref `json:"payMethod,omitzero"`
FromDate Date `json:"fromDate,omitzero"`
ToDate Date `json:"toDate,omitzero"`
Currency Ref `json:"currency,omitzero"`
Bank Ref `json:"bank,omitzero"`
CreditLimit string `json:"creditLimit,omitempty"`
IsIntraGroup *bool `json:"isIntraGroup,omitempty"`
TaxRule Ref `json:"taxRule,omitzero"`
// Deprecated, argument will be removed in a future update.
Swift string `json:"swift,omitempty"`
// Deprecated, argument will be removed in a future update.
BankRouting string `json:"bankRouting,omitempty"`
}
func (c CustomerInput) MarshalJSON() ([]byte, error) {
return omitempty.MarshalJSON(c)
}
func (c CustomerInput) IsEmpty() bool {
return zero.IsZero(c)
}
type UpdateCustomerInput struct {
AddressDBID int `json:"addressDbId,omitempty"`
BankAccount string `json:"bankAccount,omitempty"`
BankRouting string `json:"bankRouting,omitempty"`
// Deprecated, argument will be removed in a future update.
BillAddressDBID int `json:"billAddressDbId,omitempty"`
Code string `json:"code,omitempty"`
CollectionDBID int `json:"collectionDbId,omitempty"`
CompanyDBID int `json:"companyDbId,omitempty"`
CompanyName string `json:"companyName,omitempty"`
CompanyNumber string `json:"companyNumber,omitempty"`
Contract string `json:"contract,omitempty"`
Country2DBID int `json:"country2DbId,omitempty"`
Country3DBID int `json:"country3DbId,omitempty"`
CountryDBID int `json:"countryDbId,omitempty"`
DBID int `json:"dbId,omitempty"`
Description string `json:"description,omitempty"`
Email string `json:"email,omitempty"`
FlexiFieldItem FlexiFieldInput `json:"flexiFieldItem,omitzero"`
FromDate Date `json:"fromDate,omitzero"`
GLObject1DBID int `json:"glObject1DbId,omitempty"`
GLObject2DBID int `json:"glObject2DbId,omitempty"`
GLObject3DBID int `json:"glObject3DbId,omitempty"`
GLObject4DBID int `json:"glObject4DbId,omitempty"`
GLObject5DBID int `json:"glObject5DbId,omitempty"`
InvoiceDeliveryMethodDBID int `json:"invoiceDeliveryMethodDbId,omitempty"`
InvoiceLayoutDBID int `json:"invoiceLayoutDbId,omitempty"`
LanguageDBID int `json:"languageDbId,omitempty"`
Name string `json:"name,omitempty"`
Notes string `json:"notes,omitempty"`
OurRefDBID int `json:"ourRefDbId,omitempty"`
OurSalesDBID int `json:"ourSalesDbId,omitempty"`
PaymentNotification *bool `json:"paymentNotification,omitempty"`
PayMethodDBID int `json:"payMethodDbId,omitempty"`
PayTermsDBID int `json:"payTermsDbId,omitempty"`
Phone string `json:"phone,omitempty"`
PhoneNumber2 string `json:"phoneNumber2,omitempty"`
PhoneNumber3 string `json:"phoneNumber3,omitempty"`
Place string `json:"place,omitempty"`
Place2 string `json:"place2,omitempty"`
PriceGroupDBID int `json:"priceGroupDbId,omitempty"`
PricelistDBID int `json:"pricelistDbId,omitempty"`
ReportSetupDBID int `json:"reportSetupDbId,omitempty"`
ShipAddressDBID int `json:"shipAddressDbId,omitempty"`
StateDBID int `json:"stateDbId,omitempty"`
StreetAddress string `json:"streetAddress,omitempty"`
StreetAddress2 string `json:"streetAddress2,omitempty"`
SubledgerGroupDBID int `json:"subledgerGroupDbId,omitempty"`
Swift string `json:"swift,omitempty"`
// Deprecated, argument will be removed in a future update.
TaxNumber string `json:"taxNumber,omitempty"`
ToDate Date `json:"toDate,omitzero"`
XGLDBID int `json:"xglDbId,omitempty"`
YourReference string `json:"yourReference,omitempty"`
ZipCode string `json:"zipCode,omitempty"`
ZipCode2 string `json:"zipCode2,omitempty"`
}
func (c UpdateCustomerInput) MarshalJSON() ([]byte, error) {
return omitempty.MarshalJSON(c)
}
func (c UpdateCustomerInput) IsEmpty() bool {
return zero.IsZero(c)
}
type FlexiFieldInput struct {
Flag1 *bool `json:"flag1,omitempty"`
Flag2 *bool `json:"flag2,omitempty"`
Flag3 *bool `json:"flag3,omitempty"`
Flag4 *bool `json:"flag4,omitempty"`
Date1 Date `json:"date1,omitzero"`
Date2 Date `json:"date2,omitzero"`
Date3 Date `json:"date3,omitzero"`
Date4 Date `json:"date4,omitzero"`
Value1 *float64 `json:"value1,omitempty"`
Value2 *float64 `json:"value2,omitempty"`
Value3 *float64 `json:"value3,omitempty"`
Value4 *float64 `json:"value4,omitempty"`
Number1 *int `json:"number1,omitempty"`
Number2 *int `json:"number2,omitempty"`
Code1DbId *int `json:"code1DbId,omitempty"`
Code2DbId *int `json:"code2DbId,omitempty"`
Code3DbId *int `json:"code3DbId,omitempty"`
Code4DbId *int `json:"code4DbId,omitempty"`
Code5DbId *int `json:"code5DbId,omitempty"`
Code6DbId *int `json:"code6DbId,omitempty"`
Code7DbId *int `json:"code7DbId,omitempty"`
Code8DbId *int `json:"code8DbId,omitempty"`
Text1 string `json:"text1,omitempty"`
Text2 string `json:"text2,omitempty"`
Text3 string `json:"text3,omitempty"`
Text4 string `json:"text4,omitempty"`
Text5 string `json:"text5,omitempty"`
Text6 string `json:"text6,omitempty"`
Text7 string `json:"text7,omitempty"`
Text8 string `json:"text8,omitempty"`
}
type UpdateCustomersInput []UpdateCustomersInputNode
func (UpdateCustomersInput) GetGraphQLType() string {
return "[UpdateCustomersInput!]"
}
type UpdateCustomersInputNode struct {
Node UpdateCustomerInput `graphql:"node" json:"node"`
}
func (UpdateCustomersInputNode) GetGraphQLType() string {
return "UpdateCustomersInputNode"
}
type UpdateCompanyInput struct {
DBID int `json:"dbId,omitempty"`
CompanyNumber string `json:"companyNumber,omitempty"`
Email string `json:"email,omitempty"`
Code string `json:"code,omitempty"`
Description string `json:"description,omitempty"`
TaxNumber string `json:"taxNumber,omitempty"`
SocialSec string `json:"socialSec,omitempty"`
Phone string `json:"phone,omitempty"`
Phone2 string `json:"phone2,omitempty"`
Country CompanyInputCountry `json:"country,omitzero"`
Address CompanyInputAddress `json:"address,omitzero"`
ShipAddress CompanyInputAddress `json:"shipAddress,omitzero"`
}
func (c UpdateCompanyInput) MarshalJSON() ([]byte, error) {
return omitempty.MarshalJSON(c)
}
func (c UpdateCompanyInput) IsEmpty() bool {
return zero.IsZero(c)
}
type AddCompanyInput struct {
CompanyNumber string `json:"companyNumber,omitempty"`
Email string `json:"email,omitempty"`
Code string `json:"code,omitempty"`
Description string `json:"description,omitempty"`
TaxNumber string `json:"taxNumber,omitempty"`
SocialSec string `json:"socialSec,omitempty"`
Phone string `json:"phone,omitempty"`
Phone2 string `json:"phone2,omitempty"`
Owner Ref `json:"owner,omitzero"`
Country CompanyInputCountry `json:"country,omitzero"`
Address CompanyInputAddress `json:"address,omitzero"`
ShipAddress CompanyInputAddress `json:"shipAddress,omitzero"`
}
func (c AddCompanyInput) MarshalJSON() ([]byte, error) {
return omitempty.MarshalJSON(c)
}
func (c AddCompanyInput) IsEmpty() bool {
return zero.IsZero(c)
}