dipps-client 0.6.0 → 0.6.1
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/dipps/client/queries/own_credit_notes_page.rb +37 -0
- data/lib/dipps/client/queries/own_invoices_page.rb +38 -0
- data/lib/dipps/client/queries.rb +2 -4
- data/lib/dipps/client/version.rb +1 -1
- data/lib/dipps/client.rb +6 -30
- data/vendor/schema.json +144 -104
- metadata +4 -6
- data/lib/dipps/client/queries/own_credit_notes.rb +0 -29
- data/lib/dipps/client/queries/own_credit_notes_pagination.rb +0 -18
- data/lib/dipps/client/queries/own_invoices.rb +0 -30
- data/lib/dipps/client/queries/own_invoices_pagination.rb +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a753ac2c07f6cc8fea6668cbcd12715ff82ff2a396a31818a829b3ba759c8376
|
4
|
+
data.tar.gz: 6ceb9f8098aedd743b8521797ade8410487d02c9401482327a4eb24d20cbe1b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b249786c90f1de9efe4587f44d50053e1084e02604733b5b3ddeff4e6e80f5eb5255fd20dfdf1c541a8ec5ce336a1e9c12927d7fa1abadefeedc1f37679c2ca6
|
7
|
+
data.tar.gz: '096f4e1a9e76b7da535976a94f539375d1641d3aa5ba4053fa1bcd23660df8c0fb6a1883fa7c2fa922ff226c1a1b59dc1751fd349c853313648928a5b589ef5e'
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,37 @@
|
|
1
|
+
module Dipps
|
2
|
+
module Client
|
3
|
+
module Queries
|
4
|
+
OwnCreditNotesPage = GraphqlClient.parse <<~GQL
|
5
|
+
query($filter: CreditNotesFilter, $sort_by: CreditNotesSortByEnum, $page: Int, $per_page: Int) {
|
6
|
+
ownCreditNotesPage(
|
7
|
+
filter: $filter, sortBy: $sort_by, page: $page, perPage: $per_page
|
8
|
+
) {
|
9
|
+
collection {
|
10
|
+
id
|
11
|
+
buyerReference
|
12
|
+
creditNoteNumber
|
13
|
+
creditedOn
|
14
|
+
orderReference
|
15
|
+
pdfDocument {
|
16
|
+
filename
|
17
|
+
downloadPath
|
18
|
+
}
|
19
|
+
receiverOrgNumber
|
20
|
+
receiverOrgName
|
21
|
+
serviceType
|
22
|
+
status
|
23
|
+
totalAmount
|
24
|
+
vat
|
25
|
+
}
|
26
|
+
_pagination {
|
27
|
+
count
|
28
|
+
currentPage
|
29
|
+
pages
|
30
|
+
perPage
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
GQL
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
module Dipps
|
2
|
+
module Client
|
3
|
+
module Queries
|
4
|
+
OwnInvoicesPage = GraphqlClient.parse <<~GQL
|
5
|
+
query($filter: InvoiceFilters, $sort_by: InvoicesSortByEnum, $page: Int, $per_page: Int) {
|
6
|
+
ownInvoicesPage(
|
7
|
+
filter: $filter, sortBy: $sort_by, page: $page, perPage: $per_page
|
8
|
+
) {
|
9
|
+
collection {
|
10
|
+
id
|
11
|
+
amount
|
12
|
+
buyerReference
|
13
|
+
invoiceNumber
|
14
|
+
invoicedOn
|
15
|
+
orderReference
|
16
|
+
pdfDocument {
|
17
|
+
filename
|
18
|
+
downloadPath
|
19
|
+
}
|
20
|
+
receiverOrgNumber
|
21
|
+
receiverOrgName
|
22
|
+
serviceType
|
23
|
+
status
|
24
|
+
totalAmount
|
25
|
+
vat
|
26
|
+
}
|
27
|
+
_pagination {
|
28
|
+
count
|
29
|
+
currentPage
|
30
|
+
pages
|
31
|
+
perPage
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
GQL
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
data/lib/dipps/client/queries.rb
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
require_relative 'graphql_client'
|
2
2
|
|
3
3
|
require_relative 'queries/create_own_invoice'
|
4
|
-
require_relative 'queries/
|
5
|
-
require_relative 'queries/own_invoices_pagination'
|
4
|
+
require_relative 'queries/own_invoices_page'
|
6
5
|
require_relative 'queries/clients'
|
7
|
-
require_relative 'queries/
|
8
|
-
require_relative 'queries/own_credit_notes_pagination'
|
6
|
+
require_relative 'queries/own_credit_notes_page'
|
9
7
|
require_relative 'queries/create_client'
|
10
8
|
require_relative 'queries/update_client'
|
11
9
|
|
data/lib/dipps/client/version.rb
CHANGED
data/lib/dipps/client.rb
CHANGED
@@ -44,10 +44,10 @@ module Dipps
|
|
44
44
|
)
|
45
45
|
end
|
46
46
|
|
47
|
-
def
|
47
|
+
def own_invoices_page(filter:, sort_by:, page: 1, per_page: 20)
|
48
48
|
perform_query(
|
49
|
-
query: Dipps::Client::Queries::
|
50
|
-
result_field: '
|
49
|
+
query: Dipps::Client::Queries::OwnInvoicesPage,
|
50
|
+
result_field: 'ownInvoicesPage',
|
51
51
|
variables: {
|
52
52
|
filter: filter,
|
53
53
|
sort_by: sort_by,
|
@@ -57,22 +57,10 @@ module Dipps
|
|
57
57
|
)
|
58
58
|
end
|
59
59
|
|
60
|
-
def
|
60
|
+
def own_credit_notes_page(filter:, sort_by:, page: 1, per_page: 20)
|
61
61
|
perform_query(
|
62
|
-
query: Dipps::Client::Queries::
|
63
|
-
result_field: '
|
64
|
-
variables: {
|
65
|
-
filter: filter,
|
66
|
-
page: page,
|
67
|
-
per_page: per_page
|
68
|
-
}
|
69
|
-
)
|
70
|
-
end
|
71
|
-
|
72
|
-
def own_credit_notes(filter:, sort_by:, page: 1, per_page: 20)
|
73
|
-
perform_query(
|
74
|
-
query: Dipps::Client::Queries::OwnCreditNotes,
|
75
|
-
result_field: 'ownCreditNotes',
|
62
|
+
query: Dipps::Client::Queries::OwnCreditNotesPage,
|
63
|
+
result_field: 'ownCreditNotesPage',
|
76
64
|
variables: {
|
77
65
|
filter: filter,
|
78
66
|
sort_by: sort_by,
|
@@ -82,18 +70,6 @@ module Dipps
|
|
82
70
|
)
|
83
71
|
end
|
84
72
|
|
85
|
-
def own_credit_notes_pagination(filter:, page: 1, per_page: 20)
|
86
|
-
perform_query(
|
87
|
-
query: Dipps::Client::Queries::OwnCreditNotesPagination,
|
88
|
-
result_field: 'ownCreditNotesPagination',
|
89
|
-
variables: {
|
90
|
-
filter: filter,
|
91
|
-
page: page,
|
92
|
-
per_page: per_page
|
93
|
-
}
|
94
|
-
)
|
95
|
-
end
|
96
|
-
|
97
73
|
def clients(freelance_profile_id:, org_number: nil, email: nil)
|
98
74
|
perform_query(
|
99
75
|
query: Dipps::Client::Queries::Clients,
|
data/vendor/schema.json
CHANGED
@@ -1449,6 +1449,63 @@
|
|
1449
1449
|
"enumValues": null,
|
1450
1450
|
"possibleTypes": null
|
1451
1451
|
},
|
1452
|
+
{
|
1453
|
+
"kind": "OBJECT",
|
1454
|
+
"name": "CreditNotePage",
|
1455
|
+
"description": null,
|
1456
|
+
"fields": [
|
1457
|
+
{
|
1458
|
+
"name": "_pagination",
|
1459
|
+
"description": null,
|
1460
|
+
"args": [
|
1461
|
+
|
1462
|
+
],
|
1463
|
+
"type": {
|
1464
|
+
"kind": "NON_NULL",
|
1465
|
+
"name": null,
|
1466
|
+
"ofType": {
|
1467
|
+
"kind": "OBJECT",
|
1468
|
+
"name": "Pagination",
|
1469
|
+
"ofType": null
|
1470
|
+
}
|
1471
|
+
},
|
1472
|
+
"isDeprecated": false,
|
1473
|
+
"deprecationReason": null
|
1474
|
+
},
|
1475
|
+
{
|
1476
|
+
"name": "collection",
|
1477
|
+
"description": null,
|
1478
|
+
"args": [
|
1479
|
+
|
1480
|
+
],
|
1481
|
+
"type": {
|
1482
|
+
"kind": "NON_NULL",
|
1483
|
+
"name": null,
|
1484
|
+
"ofType": {
|
1485
|
+
"kind": "LIST",
|
1486
|
+
"name": null,
|
1487
|
+
"ofType": {
|
1488
|
+
"kind": "NON_NULL",
|
1489
|
+
"name": null,
|
1490
|
+
"ofType": {
|
1491
|
+
"kind": "OBJECT",
|
1492
|
+
"name": "CreditNote",
|
1493
|
+
"ofType": null
|
1494
|
+
}
|
1495
|
+
}
|
1496
|
+
}
|
1497
|
+
},
|
1498
|
+
"isDeprecated": false,
|
1499
|
+
"deprecationReason": null
|
1500
|
+
}
|
1501
|
+
],
|
1502
|
+
"inputFields": null,
|
1503
|
+
"interfaces": [
|
1504
|
+
|
1505
|
+
],
|
1506
|
+
"enumValues": null,
|
1507
|
+
"possibleTypes": null
|
1508
|
+
},
|
1452
1509
|
{
|
1453
1510
|
"kind": "INPUT_OBJECT",
|
1454
1511
|
"name": "CreditNotesFilter",
|
@@ -4081,6 +4138,63 @@
|
|
4081
4138
|
"enumValues": null,
|
4082
4139
|
"possibleTypes": null
|
4083
4140
|
},
|
4141
|
+
{
|
4142
|
+
"kind": "OBJECT",
|
4143
|
+
"name": "InvoicePage",
|
4144
|
+
"description": null,
|
4145
|
+
"fields": [
|
4146
|
+
{
|
4147
|
+
"name": "_pagination",
|
4148
|
+
"description": null,
|
4149
|
+
"args": [
|
4150
|
+
|
4151
|
+
],
|
4152
|
+
"type": {
|
4153
|
+
"kind": "NON_NULL",
|
4154
|
+
"name": null,
|
4155
|
+
"ofType": {
|
4156
|
+
"kind": "OBJECT",
|
4157
|
+
"name": "Pagination",
|
4158
|
+
"ofType": null
|
4159
|
+
}
|
4160
|
+
},
|
4161
|
+
"isDeprecated": false,
|
4162
|
+
"deprecationReason": null
|
4163
|
+
},
|
4164
|
+
{
|
4165
|
+
"name": "collection",
|
4166
|
+
"description": null,
|
4167
|
+
"args": [
|
4168
|
+
|
4169
|
+
],
|
4170
|
+
"type": {
|
4171
|
+
"kind": "NON_NULL",
|
4172
|
+
"name": null,
|
4173
|
+
"ofType": {
|
4174
|
+
"kind": "LIST",
|
4175
|
+
"name": null,
|
4176
|
+
"ofType": {
|
4177
|
+
"kind": "NON_NULL",
|
4178
|
+
"name": null,
|
4179
|
+
"ofType": {
|
4180
|
+
"kind": "OBJECT",
|
4181
|
+
"name": "Invoice",
|
4182
|
+
"ofType": null
|
4183
|
+
}
|
4184
|
+
}
|
4185
|
+
}
|
4186
|
+
},
|
4187
|
+
"isDeprecated": false,
|
4188
|
+
"deprecationReason": null
|
4189
|
+
}
|
4190
|
+
],
|
4191
|
+
"inputFields": null,
|
4192
|
+
"interfaces": [
|
4193
|
+
|
4194
|
+
],
|
4195
|
+
"enumValues": null,
|
4196
|
+
"possibleTypes": null
|
4197
|
+
},
|
4084
4198
|
{
|
4085
4199
|
"kind": "ENUM",
|
4086
4200
|
"name": "InvoiceStatusEnum",
|
@@ -4713,11 +4827,6 @@
|
|
4713
4827
|
"kind": "OBJECT",
|
4714
4828
|
"name": "OccupationCode",
|
4715
4829
|
"ofType": null
|
4716
|
-
},
|
4717
|
-
{
|
4718
|
-
"kind": "OBJECT",
|
4719
|
-
"name": "Pagination",
|
4720
|
-
"ofType": null
|
4721
4830
|
}
|
4722
4831
|
]
|
4723
4832
|
},
|
@@ -4839,24 +4948,6 @@
|
|
4839
4948
|
"isDeprecated": false,
|
4840
4949
|
"deprecationReason": null
|
4841
4950
|
},
|
4842
|
-
{
|
4843
|
-
"name": "id",
|
4844
|
-
"description": "ID of the object.",
|
4845
|
-
"args": [
|
4846
|
-
|
4847
|
-
],
|
4848
|
-
"type": {
|
4849
|
-
"kind": "NON_NULL",
|
4850
|
-
"name": null,
|
4851
|
-
"ofType": {
|
4852
|
-
"kind": "SCALAR",
|
4853
|
-
"name": "ID",
|
4854
|
-
"ofType": null
|
4855
|
-
}
|
4856
|
-
},
|
4857
|
-
"isDeprecated": false,
|
4858
|
-
"deprecationReason": null
|
4859
|
-
},
|
4860
4951
|
{
|
4861
4952
|
"name": "pages",
|
4862
4953
|
"description": null,
|
@@ -4888,11 +4979,7 @@
|
|
4888
4979
|
],
|
4889
4980
|
"inputFields": null,
|
4890
4981
|
"interfaces": [
|
4891
|
-
|
4892
|
-
"kind": "INTERFACE",
|
4893
|
-
"name": "Node",
|
4894
|
-
"ofType": null
|
4895
|
-
}
|
4982
|
+
|
4896
4983
|
],
|
4897
4984
|
"enumValues": null,
|
4898
4985
|
"possibleTypes": null
|
@@ -5177,7 +5264,7 @@
|
|
5177
5264
|
"deprecationReason": null
|
5178
5265
|
},
|
5179
5266
|
{
|
5180
|
-
"name": "
|
5267
|
+
"name": "ownCreditNotesPage",
|
5181
5268
|
"description": null,
|
5182
5269
|
"args": [
|
5183
5270
|
{
|
@@ -5225,61 +5312,10 @@
|
|
5225
5312
|
"kind": "NON_NULL",
|
5226
5313
|
"name": null,
|
5227
5314
|
"ofType": {
|
5228
|
-
"kind": "
|
5229
|
-
"name":
|
5230
|
-
"ofType":
|
5231
|
-
"kind": "NON_NULL",
|
5232
|
-
"name": null,
|
5233
|
-
"ofType": {
|
5234
|
-
"kind": "OBJECT",
|
5235
|
-
"name": "CreditNote",
|
5236
|
-
"ofType": null
|
5237
|
-
}
|
5238
|
-
}
|
5239
|
-
}
|
5240
|
-
},
|
5241
|
-
"isDeprecated": false,
|
5242
|
-
"deprecationReason": null
|
5243
|
-
},
|
5244
|
-
{
|
5245
|
-
"name": "ownCreditNotesPagination",
|
5246
|
-
"description": null,
|
5247
|
-
"args": [
|
5248
|
-
{
|
5249
|
-
"name": "filter",
|
5250
|
-
"description": null,
|
5251
|
-
"type": {
|
5252
|
-
"kind": "INPUT_OBJECT",
|
5253
|
-
"name": "CreditNotesFilter",
|
5254
|
-
"ofType": null
|
5255
|
-
},
|
5256
|
-
"defaultValue": null
|
5257
|
-
},
|
5258
|
-
{
|
5259
|
-
"name": "page",
|
5260
|
-
"description": null,
|
5261
|
-
"type": {
|
5262
|
-
"kind": "SCALAR",
|
5263
|
-
"name": "Int",
|
5264
|
-
"ofType": null
|
5265
|
-
},
|
5266
|
-
"defaultValue": null
|
5267
|
-
},
|
5268
|
-
{
|
5269
|
-
"name": "perPage",
|
5270
|
-
"description": null,
|
5271
|
-
"type": {
|
5272
|
-
"kind": "SCALAR",
|
5273
|
-
"name": "Int",
|
5274
|
-
"ofType": null
|
5275
|
-
},
|
5276
|
-
"defaultValue": null
|
5315
|
+
"kind": "OBJECT",
|
5316
|
+
"name": "CreditNotePage",
|
5317
|
+
"ofType": null
|
5277
5318
|
}
|
5278
|
-
],
|
5279
|
-
"type": {
|
5280
|
-
"kind": "OBJECT",
|
5281
|
-
"name": "Pagination",
|
5282
|
-
"ofType": null
|
5283
5319
|
},
|
5284
5320
|
"isDeprecated": false,
|
5285
5321
|
"deprecationReason": null
|
@@ -5318,16 +5354,6 @@
|
|
5318
5354
|
},
|
5319
5355
|
"defaultValue": null
|
5320
5356
|
},
|
5321
|
-
{
|
5322
|
-
"name": "filter",
|
5323
|
-
"description": null,
|
5324
|
-
"type": {
|
5325
|
-
"kind": "INPUT_OBJECT",
|
5326
|
-
"name": "InvoiceFilters",
|
5327
|
-
"ofType": null
|
5328
|
-
},
|
5329
|
-
"defaultValue": null
|
5330
|
-
},
|
5331
5357
|
{
|
5332
5358
|
"name": "filters",
|
5333
5359
|
"description": null,
|
@@ -5360,21 +5386,21 @@
|
|
5360
5386
|
"deprecationReason": null
|
5361
5387
|
},
|
5362
5388
|
{
|
5363
|
-
"name": "
|
5389
|
+
"name": "ownInvoicesPage",
|
5364
5390
|
"description": null,
|
5365
5391
|
"args": [
|
5366
5392
|
{
|
5367
|
-
"name": "
|
5393
|
+
"name": "page",
|
5368
5394
|
"description": null,
|
5369
5395
|
"type": {
|
5370
|
-
"kind": "
|
5371
|
-
"name": "
|
5396
|
+
"kind": "SCALAR",
|
5397
|
+
"name": "Int",
|
5372
5398
|
"ofType": null
|
5373
5399
|
},
|
5374
5400
|
"defaultValue": null
|
5375
5401
|
},
|
5376
5402
|
{
|
5377
|
-
"name": "
|
5403
|
+
"name": "perPage",
|
5378
5404
|
"description": null,
|
5379
5405
|
"type": {
|
5380
5406
|
"kind": "SCALAR",
|
@@ -5384,20 +5410,34 @@
|
|
5384
5410
|
"defaultValue": null
|
5385
5411
|
},
|
5386
5412
|
{
|
5387
|
-
"name": "
|
5413
|
+
"name": "sortBy",
|
5388
5414
|
"description": null,
|
5389
5415
|
"type": {
|
5390
|
-
"kind": "
|
5391
|
-
"name": "
|
5416
|
+
"kind": "ENUM",
|
5417
|
+
"name": "InvoicesSortByEnum",
|
5418
|
+
"ofType": null
|
5419
|
+
},
|
5420
|
+
"defaultValue": null
|
5421
|
+
},
|
5422
|
+
{
|
5423
|
+
"name": "filter",
|
5424
|
+
"description": null,
|
5425
|
+
"type": {
|
5426
|
+
"kind": "INPUT_OBJECT",
|
5427
|
+
"name": "InvoiceFilters",
|
5392
5428
|
"ofType": null
|
5393
5429
|
},
|
5394
5430
|
"defaultValue": null
|
5395
5431
|
}
|
5396
5432
|
],
|
5397
5433
|
"type": {
|
5398
|
-
"kind": "
|
5399
|
-
"name":
|
5400
|
-
"ofType":
|
5434
|
+
"kind": "NON_NULL",
|
5435
|
+
"name": null,
|
5436
|
+
"ofType": {
|
5437
|
+
"kind": "OBJECT",
|
5438
|
+
"name": "InvoicePage",
|
5439
|
+
"ofType": null
|
5440
|
+
}
|
5401
5441
|
},
|
5402
5442
|
"isDeprecated": false,
|
5403
5443
|
"deprecationReason": null
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dipps-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roman Kuznietsov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql-client
|
@@ -62,10 +62,8 @@ files:
|
|
62
62
|
- lib/dipps/client/queries/clients.rb
|
63
63
|
- lib/dipps/client/queries/create_client.rb
|
64
64
|
- lib/dipps/client/queries/create_own_invoice.rb
|
65
|
-
- lib/dipps/client/queries/
|
66
|
-
- lib/dipps/client/queries/
|
67
|
-
- lib/dipps/client/queries/own_invoices.rb
|
68
|
-
- lib/dipps/client/queries/own_invoices_pagination.rb
|
65
|
+
- lib/dipps/client/queries/own_credit_notes_page.rb
|
66
|
+
- lib/dipps/client/queries/own_invoices_page.rb
|
69
67
|
- lib/dipps/client/queries/update_client.rb
|
70
68
|
- lib/dipps/client/schema.rb
|
71
69
|
- lib/dipps/client/transport.rb
|
@@ -1,29 +0,0 @@
|
|
1
|
-
module Dipps
|
2
|
-
module Client
|
3
|
-
module Queries
|
4
|
-
OwnCreditNotes = GraphqlClient.parse <<~GQL
|
5
|
-
query($filter: CreditNotesFilter, $sort_by: CreditNotesSortByEnum, $page: Int, $per_page: Int) {
|
6
|
-
ownCreditNotes(
|
7
|
-
filter: $filter, sortBy: $sort_by, page: $page, perPage: $per_page
|
8
|
-
) {
|
9
|
-
id
|
10
|
-
buyerReference
|
11
|
-
creditNoteNumber
|
12
|
-
creditedOn
|
13
|
-
orderReference
|
14
|
-
pdfDocument {
|
15
|
-
filename
|
16
|
-
downloadPath
|
17
|
-
}
|
18
|
-
receiverOrgNumber
|
19
|
-
receiverOrgName
|
20
|
-
serviceType
|
21
|
-
status
|
22
|
-
totalAmount
|
23
|
-
vat
|
24
|
-
}
|
25
|
-
}
|
26
|
-
GQL
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
module Dipps
|
2
|
-
module Client
|
3
|
-
module Queries
|
4
|
-
OwnCreditNotesPagination = GraphqlClient.parse <<~GQL
|
5
|
-
query($filter: CreditNotesFilter, $page: Int, $per_page: Int) {
|
6
|
-
ownCreditNotesPagination(
|
7
|
-
filter: $filter, page: $page, perPage: $per_page
|
8
|
-
) {
|
9
|
-
count
|
10
|
-
currentPage
|
11
|
-
pages
|
12
|
-
perPage
|
13
|
-
}
|
14
|
-
}
|
15
|
-
GQL
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
module Dipps
|
2
|
-
module Client
|
3
|
-
module Queries
|
4
|
-
OwnInvoices = GraphqlClient.parse <<~GQL
|
5
|
-
query($filter: InvoiceFilters, $sort_by: InvoicesSortByEnum, $page: Int, $per_page: Int) {
|
6
|
-
ownInvoices(
|
7
|
-
filter: $filter, sortBy: $sort_by, page: $page, perPage: $per_page
|
8
|
-
) {
|
9
|
-
id
|
10
|
-
amount
|
11
|
-
buyerReference
|
12
|
-
invoiceNumber
|
13
|
-
invoicedOn
|
14
|
-
orderReference
|
15
|
-
pdfDocument {
|
16
|
-
filename
|
17
|
-
downloadPath
|
18
|
-
}
|
19
|
-
receiverOrgNumber
|
20
|
-
receiverOrgName
|
21
|
-
serviceType
|
22
|
-
status
|
23
|
-
totalAmount
|
24
|
-
vat
|
25
|
-
}
|
26
|
-
}
|
27
|
-
GQL
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
module Dipps
|
2
|
-
module Client
|
3
|
-
module Queries
|
4
|
-
OwnInvoicesPagination = GraphqlClient.parse <<~GQL
|
5
|
-
query($filter: InvoiceFilters, $page: Int, $per_page: Int) {
|
6
|
-
ownInvoicesPagination(
|
7
|
-
filter: $filter, page: $page, perPage: $per_page
|
8
|
-
) {
|
9
|
-
count
|
10
|
-
currentPage
|
11
|
-
pages
|
12
|
-
perPage
|
13
|
-
}
|
14
|
-
}
|
15
|
-
GQL
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|