nordlet 0.5.3 → 0.5.5

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.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nordlet/account/client.rb +125 -0
  3. data/lib/nordlet/agreements/client.rb +49 -0
  4. data/lib/nordlet/assets/client.rb +42 -0
  5. data/lib/nordlet/audit/client.rb +4 -0
  6. data/lib/nordlet/bank/client.rb +218 -0
  7. data/lib/nordlet/billing/client.rb +45 -0
  8. data/lib/nordlet/calendar/client.rb +18 -0
  9. data/lib/nordlet/capture/client.rb +33 -0
  10. data/lib/nordlet/cash/client.rb +36 -0
  11. data/lib/nordlet/catalog/client.rb +77 -0
  12. data/lib/nordlet/consolidation/client.rb +29 -0
  13. data/lib/nordlet/declarations/client.rb +209 -0
  14. data/lib/nordlet/declarations/types/lt_gpm312compute_declarations_response_rows_item.rb +2 -0
  15. data/lib/nordlet/document_series/client.rb +20 -0
  16. data/lib/nordlet/ecommerce/client.rb +41 -0
  17. data/lib/nordlet/files/client.rb +10 -0
  18. data/lib/nordlet/fleet/client.rb +26 -0
  19. data/lib/nordlet/hr/client.rb +93 -0
  20. data/lib/nordlet/inventory/client.rb +91 -0
  21. data/lib/nordlet/leads/client.rb +49 -0
  22. data/lib/nordlet/ledger/client.rb +78 -3
  23. data/lib/nordlet/officers/client.rb +8 -0
  24. data/lib/nordlet/operation_types/client.rb +20 -0
  25. data/lib/nordlet/partners/client.rb +126 -0
  26. data/lib/nordlet/payroll/client.rb +94 -0
  27. data/lib/nordlet/payroll/types/calc_payroll_request.rb +2 -0
  28. data/lib/nordlet/payroll/types/calc_payroll_request_payments_item.rb +15 -0
  29. data/lib/nordlet/payroll/types/calc_payroll_response_components_item.rb +2 -0
  30. data/lib/nordlet/payroll/types/lines_attendance_payroll_response_additions_item.rb +4 -0
  31. data/lib/nordlet/payroll/types/lines_attendance_payroll_response_components_item.rb +2 -0
  32. data/lib/nordlet/payroll/types/payment_types_list_payroll_request.rb +9 -0
  33. data/lib/nordlet/payroll/types/payment_types_list_payroll_response.rb +15 -0
  34. data/lib/nordlet/payroll/types/payment_types_list_payroll_response_rows_item.rb +15 -0
  35. data/lib/nordlet/payroll/types/runs_approve_payroll_response_component_totals_item.rb +2 -0
  36. data/lib/nordlet/payroll/types/runs_create_payroll_request_lines_item_additions_item.rb +4 -0
  37. data/lib/nordlet/payroll/types/runs_create_payroll_response_component_totals_item.rb +2 -0
  38. data/lib/nordlet/payroll/types/runs_create_payroll_response_lines_item_additions_item.rb +4 -0
  39. data/lib/nordlet/payroll/types/runs_create_payroll_response_lines_item_components_item.rb +2 -0
  40. data/lib/nordlet/payroll/types/runs_get_payroll_response_component_totals_item.rb +2 -0
  41. data/lib/nordlet/payroll/types/runs_get_payroll_response_lines_item_additions_item.rb +4 -0
  42. data/lib/nordlet/payroll/types/runs_get_payroll_response_lines_item_components_item.rb +2 -0
  43. data/lib/nordlet/payroll/types/runs_list_payroll_response_rows_item_component_totals_item.rb +2 -0
  44. data/lib/nordlet/payroll/types/runs_reverse_payroll_response_component_totals_item.rb +2 -0
  45. data/lib/nordlet/peppol/client.rb +7 -0
  46. data/lib/nordlet/platform_sellers/client.rb +13 -0
  47. data/lib/nordlet/pos/client.rb +46 -0
  48. data/lib/nordlet/production/client.rb +78 -0
  49. data/lib/nordlet/projects/client.rb +35 -0
  50. data/lib/nordlet/public/client.rb +9 -0
  51. data/lib/nordlet/purchases/client.rb +102 -0
  52. data/lib/nordlet/reference/client.rb +74 -0
  53. data/lib/nordlet/reports/client.rb +108 -0
  54. data/lib/nordlet/sales/client.rb +408 -0
  55. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response.rb +4 -0
  56. data/lib/nordlet/sales/types/invoices_create_sales_request.rb +2 -0
  57. data/lib/nordlet/sales/types/invoices_create_sales_request_locale.rb +15 -0
  58. data/lib/nordlet/sales/types/invoices_create_sales_response.rb +4 -0
  59. data/lib/nordlet/sales/types/invoices_get_sales_response.rb +4 -0
  60. data/lib/nordlet/sales/types/invoices_issue_sales_response.rb +4 -0
  61. data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item.rb +4 -0
  62. data/lib/nordlet/sales/types/invoices_lock_sales_response.rb +4 -0
  63. data/lib/nordlet/sales/types/invoices_unlock_sales_response.rb +4 -0
  64. data/lib/nordlet/sales/types/invoices_update_sales_request.rb +2 -0
  65. data/lib/nordlet/sales/types/invoices_update_sales_request_locale.rb +15 -0
  66. data/lib/nordlet/sales/types/invoices_update_sales_response.rb +4 -0
  67. data/lib/nordlet/sales/types/recurring_invoices_create_sales_request.rb +29 -0
  68. data/lib/nordlet/sales/types/recurring_invoices_create_sales_request_frequency.rb +16 -0
  69. data/lib/nordlet/sales/types/recurring_invoices_create_sales_request_locale.rb +15 -0
  70. data/lib/nordlet/sales/types/recurring_invoices_create_sales_response.rb +51 -0
  71. data/lib/nordlet/sales/types/recurring_invoices_create_sales_response_frequency.rb +16 -0
  72. data/lib/nordlet/sales/types/recurring_invoices_create_sales_response_status.rb +15 -0
  73. data/lib/nordlet/sales/types/recurring_invoices_delete_sales_request.rb +11 -0
  74. data/lib/nordlet/sales/types/recurring_invoices_delete_sales_response.rb +11 -0
  75. data/lib/nordlet/sales/types/recurring_invoices_generate_sales_request.rb +11 -0
  76. data/lib/nordlet/sales/types/recurring_invoices_generate_sales_response.rb +21 -0
  77. data/lib/nordlet/sales/types/recurring_invoices_generate_sales_response_recurring_invoice.rb +51 -0
  78. data/lib/nordlet/sales/types/recurring_invoices_generate_sales_response_recurring_invoice_frequency.rb +16 -0
  79. data/lib/nordlet/sales/types/recurring_invoices_generate_sales_response_recurring_invoice_status.rb +15 -0
  80. data/lib/nordlet/sales/types/recurring_invoices_get_sales_request.rb +11 -0
  81. data/lib/nordlet/sales/types/recurring_invoices_get_sales_response.rb +51 -0
  82. data/lib/nordlet/sales/types/recurring_invoices_get_sales_response_frequency.rb +16 -0
  83. data/lib/nordlet/sales/types/recurring_invoices_get_sales_response_status.rb +15 -0
  84. data/lib/nordlet/sales/types/recurring_invoices_list_sales_request.rb +19 -0
  85. data/lib/nordlet/sales/types/recurring_invoices_list_sales_request_filter_item.rb +15 -0
  86. data/lib/nordlet/sales/types/recurring_invoices_list_sales_request_filter_item_op.rb +18 -0
  87. data/lib/nordlet/sales/types/recurring_invoices_list_sales_request_filter_item_value.rb +19 -0
  88. data/lib/nordlet/sales/types/recurring_invoices_list_sales_request_filter_item_value_three_item.rb +15 -0
  89. data/lib/nordlet/sales/types/recurring_invoices_list_sales_request_sort_item.rb +13 -0
  90. data/lib/nordlet/sales/types/recurring_invoices_list_sales_request_sort_item_dir.rb +14 -0
  91. data/lib/nordlet/sales/types/recurring_invoices_list_sales_response.rb +21 -0
  92. data/lib/nordlet/sales/types/recurring_invoices_list_sales_response_rows_item.rb +51 -0
  93. data/lib/nordlet/sales/types/recurring_invoices_list_sales_response_rows_item_frequency.rb +16 -0
  94. data/lib/nordlet/sales/types/recurring_invoices_list_sales_response_rows_item_status.rb +15 -0
  95. data/lib/nordlet/sales/types/recurring_invoices_run_sales_request.rb +11 -0
  96. data/lib/nordlet/sales/types/recurring_invoices_run_sales_response.rb +13 -0
  97. data/lib/nordlet/sales/types/recurring_invoices_run_sales_response_errors_item.rb +13 -0
  98. data/lib/nordlet/sales/types/recurring_invoices_run_sales_response_generated_item.rb +19 -0
  99. data/lib/nordlet/sales/types/recurring_invoices_update_sales_request.rb +35 -0
  100. data/lib/nordlet/sales/types/recurring_invoices_update_sales_request_frequency.rb +16 -0
  101. data/lib/nordlet/sales/types/recurring_invoices_update_sales_request_locale.rb +15 -0
  102. data/lib/nordlet/sales/types/recurring_invoices_update_sales_request_status.rb +14 -0
  103. data/lib/nordlet/sales/types/recurring_invoices_update_sales_response.rb +51 -0
  104. data/lib/nordlet/sales/types/recurring_invoices_update_sales_response_frequency.rb +16 -0
  105. data/lib/nordlet/sales/types/recurring_invoices_update_sales_response_status.rb +15 -0
  106. data/lib/nordlet/transport/client.rb +20 -0
  107. data/lib/nordlet/version.rb +1 -1
  108. data/lib/nordlet/webhooks/client.rb +20 -0
  109. data/lib/nordlet/webhooks/types/subscriptions_create_webhooks_request_events_item.rb +1 -0
  110. data/lib/nordlet/webhooks/types/subscriptions_update_webhooks_request_events_item.rb +1 -0
  111. data/lib/nordlet.rb +45 -0
  112. data/reference.md +9789 -912
  113. metadata +47 -2
@@ -10,6 +10,13 @@ module Nordlet
10
10
  @client = client
11
11
  end
12
12
 
13
+ # Builds the Lithuanian Intrastat report of a month for one flow as the IDAIS INTRASTATReportSubmission XML:
14
+ # dispatches from the issued sale invoices and purchase credit notes, arrivals from the registered purchase
15
+ # invoices and sale credit notes, grouped into report items. `transactionNature`, `deliveryTerms`, `transportMode`
16
+ # and `regionCode` are the defaults for lines without their own values; `statisticalValueRequired` adds the
17
+ # statistical value to each item. Answers 422 when the company is not a VAT payer. With `persist`, the file is
18
+ # stored and a submission for `lt-intrastat-arrivals` or `lt-intrastat-dispatches` is created.
19
+ #
13
20
  # @param request_options [Hash]
14
21
  # @param params [Nordlet::Declarations::Types::LtIntrastatComputeDeclarationsRequest]
15
22
  # @option request_options [String] :base_url
@@ -42,6 +49,10 @@ module Nordlet
42
49
  end
43
50
  end
44
51
 
52
+ # Builds the i.VAZ transport document message (iVAZ1.3.3) for up to 100 issued waybills and returns the XML.
53
+ # Answers 422 when the registration code of the company is not numeric or when a waybill is not issued. With
54
+ # `persist`, the file is stored and a submission for `lt-ivaz` is created.
55
+ #
45
56
  # @param request_options [Hash]
46
57
  # @param params [Nordlet::Declarations::Types::LtIvazGenerateDeclarationsRequest]
47
58
  # @option request_options [String] :base_url
@@ -74,6 +85,11 @@ module Nordlet
74
85
  end
75
86
  end
76
87
 
88
+ # Checks the Intrastat reporting obligation of a year per flow: the value of goods traded with other Member States
89
+ # in the previous year, the month from which reporting is due (January when that value already passed the
90
+ # reporting threshold, else the month the cumulative value of the year passes it), whether the statistical value
91
+ # is required, and the monthly values. Answers 422 when no thresholds are stored for the year.
92
+ #
77
93
  # @param request_options [Hash]
78
94
  # @param params [Nordlet::Declarations::Types::LtIntrastatObligationDeclarationsRequest]
79
95
  # @option request_options [String] :base_url
@@ -106,6 +122,10 @@ module Nordlet
106
122
  end
107
123
  end
108
124
 
125
+ # Builds the Lithuanian i.SAF register XML of a month: `dataType` F covers both registers, S the issued sale
126
+ # invoices only, P the registered purchase invoices only. Returns the XML without storing it;
127
+ # `declarations/submissions/create` stores it as a submission.
128
+ #
109
129
  # @param request_options [Hash]
110
130
  # @param params [Nordlet::Declarations::Types::LtIsafGenerateDeclarationsRequest]
111
131
  # @option request_options [String] :base_url
@@ -138,6 +158,10 @@ module Nordlet
138
158
  end
139
159
  end
140
160
 
161
+ # Computes the fields of the Lithuanian VAT return FR0600 for the period of `months` months starting in `month`,
162
+ # with the breakdown by VAT classifier behind them. `deductionPercent` is the share of input VAT deducted and is
163
+ # written to field 28.
164
+ #
141
165
  # @param request_options [Hash]
142
166
  # @param params [Nordlet::Declarations::Types::LtFr0600ComputeDeclarationsRequest]
143
167
  # @option request_options [String] :base_url
@@ -170,6 +194,11 @@ module Nordlet
170
194
  end
171
195
  end
172
196
 
197
+ # Computes fields 5 to 7 of the monthly GPM313 from the payroll run of the month the pay was earned: the run of
198
+ # the previous month with `payoutTiming` `next-month`, the run of the same month with `same-month`. `paymentDay`
199
+ # decides whether the withheld tax goes to field 6 (paid by the 15th) or field 7 (after it). Fields 8 to 12 are
200
+ # returned as zero.
201
+ #
173
202
  # @param request_options [Hash]
174
203
  # @param params [Nordlet::Declarations::Types::LtGpm313ComputeDeclarationsRequest]
175
204
  # @option request_options [String] :base_url
@@ -202,6 +231,10 @@ module Nordlet
202
231
  end
203
232
  end
204
233
 
234
+ # Computes the monthly SAM figures from the payroll run of the month: per employee the insured income, the
235
+ # employee and employer contributions together and the resulting tariff, plus the insured count and the totals. A
236
+ # missing run or a run still in draft is reported in the warnings.
237
+ #
205
238
  # @param request_options [Hash]
206
239
  # @param params [Nordlet::Declarations::Types::LtSamComputeDeclarationsRequest]
207
240
  # @option request_options [String] :base_url
@@ -234,6 +267,10 @@ module Nordlet
234
267
  end
235
268
  end
236
269
 
270
+ # Lists the rows of the 1-SD (employment contracts that start in the date range) or of the 2-SD (contracts that
271
+ # ended in the range, with the final insured income and contributions from the payroll line of the termination
272
+ # month). Answers 422 when `fromDate` is after `toDate`.
273
+ #
237
274
  # @param request_options [Hash]
238
275
  # @param params [Nordlet::Declarations::Types::LtSdGenerateDeclarationsRequest]
239
276
  # @option request_options [String] :base_url
@@ -266,6 +303,11 @@ module Nordlet
266
303
  end
267
304
  end
268
305
 
306
+ # Builds the Lithuanian SAF-T (version 2.01) XML for a date range: `dataType` F is the full file, GL, SI, PI, PA,
307
+ # MG and AS limit it to the general ledger, sale invoices, purchase invoices, payments, movements of goods or
308
+ # asset transactions. Answers 422 when `fromDate` is after `toDate`. With `persist`, the file is stored and a
309
+ # submission for `lt-saft` is created.
310
+ #
269
311
  # @param request_options [Hash]
270
312
  # @param params [Nordlet::Declarations::Types::LtSaftGenerateDeclarationsRequest]
271
313
  # @option request_options [String] :base_url
@@ -298,6 +340,11 @@ module Nordlet
298
340
  end
299
341
  end
300
342
 
343
+ # Builds an i.VAZ amendment message for up to 100 issued waybills, carrying their current data as
344
+ # TransportDocumentAmendment elements. Answers 422 when the registration code of the company is not numeric or
345
+ # when a waybill is not issued. With `persist`, the file is stored and a submission for `lt-ivaz-amendment` is
346
+ # created.
347
+ #
301
348
  # @param request_options [Hash]
302
349
  # @param params [Nordlet::Declarations::Types::LtIvazAmendDeclarationsRequest]
303
350
  # @option request_options [String] :base_url
@@ -330,6 +377,11 @@ module Nordlet
330
377
  end
331
378
  end
332
379
 
380
+ # Builds an i.VAZ cancellation message for up to 100 waybills, each with a cancellation reason code and optional
381
+ # additional information. Answers 422 when the registration code of the company is not numeric; a waybill that was
382
+ # never issued is reported in the warnings. With `persist`, the file is stored and a submission for
383
+ # `lt-ivaz-cancellation` is created.
384
+ #
333
385
  # @param request_options [Hash]
334
386
  # @param params [Nordlet::Declarations::Types::LtIvazCancelDeclarationsRequest]
335
387
  # @option request_options [String] :base_url
@@ -362,6 +414,11 @@ module Nordlet
362
414
  end
363
415
  end
364
416
 
417
+ # Computes the rows of the Lithuanian FR0564 report of a month from the issued sale invoices and credit notes with
418
+ # the `intra_eu_b2b` or `reverse_charge` scheme: one row per buyer VAT number of another Member State, with goods
419
+ # and services split by the type of the catalogue item. Invoices not in EUR and buyers without a valid EU VAT
420
+ # number are left out and named in the warnings; the triangular column is always zero.
421
+ #
365
422
  # @param request_options [Hash]
366
423
  # @param params [Nordlet::Declarations::Types::LtFr0564ComputeDeclarationsRequest]
367
424
  # @option request_options [String] :base_url
@@ -394,6 +451,10 @@ module Nordlet
394
451
  end
395
452
  end
396
453
 
454
+ # Computes the rows of the annual GPM312 from the payroll runs of the payout months of the year (December of the
455
+ # previous year to November with `payoutTiming` `next-month`, January to December with `same-month`): one row per
456
+ # employee and payment type code, with the amount paid, the tax withheld and the rate applied.
457
+ #
397
458
  # @param request_options [Hash]
398
459
  # @param params [Nordlet::Declarations::Types::LtGpm312ComputeDeclarationsRequest]
399
460
  # @option request_options [String] :base_url
@@ -426,6 +487,12 @@ module Nordlet
426
487
  end
427
488
  end
428
489
 
490
+ # Computes the boxes of the Lithuanian annual corporate income tax return PLN204 for the fiscal year from the
491
+ # financial statements and the tax adjustments recorded with `declarations/tax-adjustments/create`: the PLN204S
492
+ # annex from the `non_deductible` adjustments and the PLN204Z annex from the `non_taxable_income` ones, by their
493
+ # `code`. The small-entity rate is applied when the size criteria allow it. Answers 422 when such an adjustment
494
+ # has no code or a code the annex does not list, or when no rate table covers the period.
495
+ #
429
496
  # @param request_options [Hash]
430
497
  # @param params [Nordlet::Declarations::Types::LtPln204ComputeDeclarationsRequest]
431
498
  # @option request_options [String] :base_url
@@ -458,6 +525,11 @@ module Nordlet
458
525
  end
459
526
  end
460
527
 
528
+ # Computes the Union OSS return of a quarter from the issued invoices and credit notes with the `oss_union` VAT
529
+ # scheme: one row per Member State of consumption and VAT rate, classified as standard or reduced, and a
530
+ # corrections section for the credit notes that credit invoices of earlier periods. Amounts are in EUR, converted
531
+ # at the official rate of the last day of the period. Answers 422 when the company is not established in the EU.
532
+ #
461
533
  # @param request_options [Hash]
462
534
  # @param params [Nordlet::Declarations::Types::EuOssComputeDeclarationsRequest]
463
535
  # @option request_options [String] :base_url
@@ -490,6 +562,10 @@ module Nordlet
490
562
  end
491
563
  end
492
564
 
565
+ # Computes the IOSS return of a month from the issued invoices and credit notes with the `ioss` VAT scheme, with
566
+ # the same rows, corrections and EUR conversion as `declarations/eu/oss/compute`. Answers 422 when the company is
567
+ # not established in the EU.
568
+ #
493
569
  # @param request_options [Hash]
494
570
  # @param params [Nordlet::Declarations::Types::EuIossComputeDeclarationsRequest]
495
571
  # @option request_options [String] :base_url
@@ -522,6 +598,11 @@ module Nordlet
522
598
  end
523
599
  end
524
600
 
601
+ # Builds the monthly return of the special scheme for transfers of own goods from the warehouse transfers between
602
+ # warehouses in two different EU Member States: one row per destination and dispatch country with the cost of the
603
+ # goods as the taxable amount in EUR, the transfers behind the rows, and the due date. Answers 422 when the
604
+ # company is not established in the EU.
605
+ #
525
606
  # @param request_options [Hash]
526
607
  # @param params [Nordlet::Declarations::Types::EuOwnGoodsTransfersComputeDeclarationsRequest]
527
608
  # @option request_options [String] :base_url
@@ -554,6 +635,12 @@ module Nordlet
554
635
  end
555
636
  end
556
637
 
638
+ # Lists the transactions of a date range that fall under EU digital reporting: issued sale invoices and credit
639
+ # notes with the `intra_eu_b2b` or `reverse_charge` scheme to EU customers, and registered purchase invoices from
640
+ # suppliers in other Member States whose lines carry a self-assessed VAT classifier. Each transaction names the
641
+ # article it is reported under, the Member State it is reported to, its deadline and the data still missing.
642
+ # Answers 422 when the company is not identified for VAT in the EU.
643
+ #
557
644
  # @param request_options [Hash]
558
645
  # @param params [Nordlet::Declarations::Types::EuDigitalReportingListDeclarationsRequest]
559
646
  # @option request_options [String] :base_url
@@ -621,6 +708,10 @@ module Nordlet
621
708
  end
622
709
  end
623
710
 
711
+ # Builds the DAC7 (DPI) XML report of a year for the Member State of the company and returns it base64-encoded
712
+ # with the file name the administration expects. Answers 422 when no DAC7 filing channel exists for the company
713
+ # country. The sellers and the missing data behind it come from `declarations/eu/dac7/preview`.
714
+ #
624
715
  # @param request_options [Hash]
625
716
  # @param params [Nordlet::Declarations::Types::EuDac7XMLDeclarationsRequest]
626
717
  # @option request_options [String] :base_url
@@ -653,6 +744,11 @@ module Nordlet
653
744
  end
654
745
  end
655
746
 
747
+ # Sums the cross-border sales to EU consumers (invoices under the `oss_union` scheme, and domestic-scheme invoices
748
+ # to partners without a VAT number in another Member State) of the current and the preceding calendar year as of
749
+ # `date` (default: the current date of the company) and compares both with the EUR 10 000 distance sales
750
+ # threshold.
751
+ #
656
752
  # @param request_options [Hash]
657
753
  # @param params [Nordlet::Declarations::Types::EuDistanceSalesThresholdGetDeclarationsRequest]
658
754
  # @option request_options [String] :base_url
@@ -685,6 +781,11 @@ module Nordlet
685
781
  end
686
782
  end
687
783
 
784
+ # Sums the turnover of the company within the Union (issued invoices and credit notes other than export and
785
+ # out-of-scope supplies) for the current and the previous calendar year as of `date` (default: the current date of
786
+ # the company) and compares it with the EUR 100 000 cap of the cross-border SME scheme. The status is
787
+ # `not_applicable` for a registered VAT payer, otherwise `below`, `approaching` or `exceeded`.
788
+ #
688
789
  # @param request_options [Hash]
689
790
  # @param params [Nordlet::Declarations::Types::EuUnionTurnoverGetDeclarationsRequest]
690
791
  # @option request_options [String] :base_url
@@ -717,6 +818,11 @@ module Nordlet
717
818
  end
718
819
  end
719
820
 
821
+ # Builds the quarterly report of the cross-border SME scheme: the value of the issued supplies within the Union
822
+ # per Member State of supply (the VAT country of the invoice, else the country of the partner, else the home
823
+ # country), in the base currency of the company. Supplies that resolve to a non-EU country are left out and named
824
+ # in the warnings.
825
+ #
720
826
  # @param request_options [Hash]
721
827
  # @param params [Nordlet::Declarations::Types::EuSmeCrossBorderReportComputeDeclarationsRequest]
722
828
  # @option request_options [String] :base_url
@@ -749,6 +855,10 @@ module Nordlet
749
855
  end
750
856
  end
751
857
 
858
+ # Returns the stored table of national SME VAT exemption thresholds per Member State, with sector thresholds and
859
+ # intra-EU acquisition triggers where recorded, and the national and Union-wide caps of the directive. No company
860
+ # data is read.
861
+ #
752
862
  # @param request_options [Hash]
753
863
  # @param params [Nordlet::Declarations::Types::EuSmeThresholdsListDeclarationsRequest]
754
864
  # @option request_options [String] :base_url
@@ -781,6 +891,12 @@ module Nordlet
781
891
  end
782
892
  end
783
893
 
894
+ # Compares the gross turnover of the company in the current calendar year as of `date` (default: the current date
895
+ # of the company) with the national SME exemption threshold of its country. The status is `not_applicable` for a
896
+ # registered VAT payer, `unknown` when no threshold is on file or its currency differs from the base currency,
897
+ # otherwise `below`, `approaching` or `exceeded`; when the country has an intra-EU acquisitions trigger, the
898
+ # acquisitions from and services to other Member States are compared with it too.
899
+ #
784
900
  # @param request_options [Hash]
785
901
  # @param params [Nordlet::Declarations::Types::EuSmeThresholdGetDeclarationsRequest]
786
902
  # @option request_options [String] :base_url
@@ -813,6 +929,9 @@ module Nordlet
813
929
  end
814
930
  end
815
931
 
932
+ # Lists the national VAT return forms Nordlet can compute, with the country, form key, form name, filing frequency
933
+ # and source.
934
+ #
816
935
  # @param request_options [Hash]
817
936
  # @param params [Nordlet::Declarations::Types::EuVatReturnPacksListDeclarationsRequest]
818
937
  # @option request_options [String] :base_url
@@ -845,6 +964,10 @@ module Nordlet
845
964
  end
846
965
  end
847
966
 
967
+ # Computes the national VAT return of `countryCode` for the period of `months` months starting in `month`, as the
968
+ # numbered boxes of the form with labels and amounts. Answers 422 when no return pack is registered for the
969
+ # country; the packs are listed by `declarations/eu/vat-return/packs/list`.
970
+ #
848
971
  # @param request_options [Hash]
849
972
  # @param params [Nordlet::Declarations::Types::EuVatReturnComputeDeclarationsRequest]
850
973
  # @option request_options [String] :base_url
@@ -1130,6 +1253,9 @@ module Nordlet
1130
1253
  end
1131
1254
  end
1132
1255
 
1256
+ # Records a tax adjustment of one kind for a tax year, with an optional form `code`. Answers 422 when the amount
1257
+ # is zero.
1258
+ #
1133
1259
  # @param request_options [Hash]
1134
1260
  # @param params [Nordlet::Declarations::Types::TaxAdjustmentsCreateDeclarationsRequest]
1135
1261
  # @option request_options [String] :base_url
@@ -1162,6 +1288,9 @@ module Nordlet
1162
1288
  end
1163
1289
  end
1164
1290
 
1291
+ # Changes the kind, code, amount or description of a recorded tax adjustment; fields left out keep their value and
1292
+ # an empty `code` clears it. Answers 422 when the new amount is zero.
1293
+ #
1165
1294
  # @param request_options [Hash]
1166
1295
  # @param params [Nordlet::Declarations::Types::TaxAdjustmentsUpdateDeclarationsRequest]
1167
1296
  # @option request_options [String] :base_url
@@ -1194,6 +1323,8 @@ module Nordlet
1194
1323
  end
1195
1324
  end
1196
1325
 
1326
+ # Deletes a recorded tax adjustment.
1327
+ #
1197
1328
  # @param request_options [Hash]
1198
1329
  # @param params [Nordlet::Declarations::Types::TaxAdjustmentsDeleteDeclarationsRequest]
1199
1330
  # @option request_options [String] :base_url
@@ -1262,6 +1393,9 @@ module Nordlet
1262
1393
  end
1263
1394
  end
1264
1395
 
1396
+ # Records a payment made towards a tax (`tax`) of a year, and of a month when given, as an advance payment, tax
1397
+ # withheld by others, a final settlement or a refund received. Answers 422 when the amount is zero.
1398
+ #
1265
1399
  # @param request_options [Hash]
1266
1400
  # @param params [Nordlet::Declarations::Types::TaxPaymentsCreateDeclarationsRequest]
1267
1401
  # @option request_options [String] :base_url
@@ -1294,6 +1428,9 @@ module Nordlet
1294
1428
  end
1295
1429
  end
1296
1430
 
1431
+ # Changes the kind, amount, payment date, reference or description of a recorded tax payment; fields left out keep
1432
+ # their value and an empty `reference` clears it. Answers 422 when the new amount is zero.
1433
+ #
1297
1434
  # @param request_options [Hash]
1298
1435
  # @param params [Nordlet::Declarations::Types::TaxPaymentsUpdateDeclarationsRequest]
1299
1436
  # @option request_options [String] :base_url
@@ -1326,6 +1463,8 @@ module Nordlet
1326
1463
  end
1327
1464
  end
1328
1465
 
1466
+ # Deletes a recorded tax payment.
1467
+ #
1329
1468
  # @param request_options [Hash]
1330
1469
  # @param params [Nordlet::Declarations::Types::TaxPaymentsDeleteDeclarationsRequest]
1331
1470
  # @option request_options [String] :base_url
@@ -1393,6 +1532,12 @@ module Nordlet
1393
1532
  end
1394
1533
  end
1395
1534
 
1535
+ # Creates or replaces the record of a year: whether and when the accounts were adopted, when they were prepared,
1536
+ # whether they were audited (with the qualification flag and the auditor report date) or the auditor was not
1537
+ # elected, the report texts and the appropriation of the result. Answers 422 when `adopted` is true without
1538
+ # `adoptionDate`, when the adoption date is not after 31 December of the year, or when the date of preparation is
1539
+ # after the adoption date.
1540
+ #
1396
1541
  # @param request_options [Hash]
1397
1542
  # @param params [Nordlet::Declarations::Types::AnnualAccountsSetDeclarationsRequest]
1398
1543
  # @option request_options [String] :base_url
@@ -1425,6 +1570,11 @@ module Nordlet
1425
1570
  end
1426
1571
  end
1427
1572
 
1573
+ # Adds a director to the signatures of the annual accounts of the year: signed, with the date and place of
1574
+ # signature, or not signed, with the reason. Answers 422 when no annual accounts record exists for the year
1575
+ # (`declarations/annual-accounts/set` first), when a signed entry lacks the date or the place, or when an unsigned
1576
+ # entry lacks the reason.
1577
+ #
1428
1578
  # @param request_options [Hash]
1429
1579
  # @param params [Nordlet::Declarations::Types::AnnualAccountsSignaturesCreateDeclarationsRequest]
1430
1580
  # @option request_options [String] :base_url
@@ -1457,6 +1607,9 @@ module Nordlet
1457
1607
  end
1458
1608
  end
1459
1609
 
1610
+ # Replaces the name, type and signing facts of a recorded director signature. Answers 422 when a signed entry
1611
+ # lacks the date or the place of signature, or when an unsigned entry lacks the reason.
1612
+ #
1460
1613
  # @param request_options [Hash]
1461
1614
  # @param params [Nordlet::Declarations::Types::AnnualAccountsSignaturesUpdateDeclarationsRequest]
1462
1615
  # @option request_options [String] :base_url
@@ -1489,6 +1642,8 @@ module Nordlet
1489
1642
  end
1490
1643
  end
1491
1644
 
1645
+ # Deletes a recorded director signature.
1646
+ #
1492
1647
  # @param request_options [Hash]
1493
1648
  # @param params [Nordlet::Declarations::Types::AnnualAccountsSignaturesDeleteDeclarationsRequest]
1494
1649
  # @option request_options [String] :base_url
@@ -1521,6 +1676,9 @@ module Nordlet
1521
1676
  end
1522
1677
  end
1523
1678
 
1679
+ # Adds a profit distribution decision (decision date, kind, amount, description) to the annual accounts record of
1680
+ # the year. Answers 422 when no annual accounts record exists for the year.
1681
+ #
1524
1682
  # @param request_options [Hash]
1525
1683
  # @param params [Nordlet::Declarations::Types::AnnualAccountsDistributionsCreateDeclarationsRequest]
1526
1684
  # @option request_options [String] :base_url
@@ -1553,6 +1711,8 @@ module Nordlet
1553
1711
  end
1554
1712
  end
1555
1713
 
1714
+ # Replaces the decision date, kind, amount and description of a recorded profit distribution.
1715
+ #
1556
1716
  # @param request_options [Hash]
1557
1717
  # @param params [Nordlet::Declarations::Types::AnnualAccountsDistributionsUpdateDeclarationsRequest]
1558
1718
  # @option request_options [String] :base_url
@@ -1585,6 +1745,8 @@ module Nordlet
1585
1745
  end
1586
1746
  end
1587
1747
 
1748
+ # Deletes a recorded profit distribution.
1749
+ #
1588
1750
  # @param request_options [Hash]
1589
1751
  # @param params [Nordlet::Declarations::Types::AnnualAccountsDistributionsDeleteDeclarationsRequest]
1590
1752
  # @option request_options [String] :base_url
@@ -1654,6 +1816,8 @@ module Nordlet
1654
1816
  end
1655
1817
  end
1656
1818
 
1819
+ # Removes the attachment from the annual accounts and deletes its file record and the stored bytes.
1820
+ #
1657
1821
  # @param request_options [Hash]
1658
1822
  # @param params [Nordlet::Declarations::Types::AnnualAccountsAttachmentsDeleteDeclarationsRequest]
1659
1823
  # @option request_options [String] :base_url
@@ -2852,6 +3016,11 @@ module Nordlet
2852
3016
  end
2853
3017
  end
2854
3018
 
3019
+ # Lists the filing systems the company can configure: those of the company country (or of `country` when given),
3020
+ # the EU-wide systems and the cross-border e-invoicing systems `it_sdi`, `pl_ksef` and `ro_efactura`. Each row
3021
+ # carries the stored values, with a secret or certificate field shown as `__secret_set__` and the fields taken
3022
+ # from the company profile filled from it.
3023
+ #
2855
3024
  # @param request_options [Hash]
2856
3025
  # @param params [Nordlet::Declarations::Types::ConfigsListDeclarationsRequest]
2857
3026
  # @option request_options [String] :base_url
@@ -2884,6 +3053,10 @@ module Nordlet
2884
3053
  end
2885
3054
  end
2886
3055
 
3056
+ # Stores the settings of one filing system for the company, merging the given fields into the stored ones. A
3057
+ # secret or certificate value is encrypted before it is stored, an empty string clears a field, and
3058
+ # `__secret_set__` leaves a stored secret unchanged. Answers 422 for an unknown system.
3059
+ #
2887
3060
  # @param request_options [Hash]
2888
3061
  # @param params [Nordlet::Declarations::Types::ConfigsUpdateDeclarationsRequest]
2889
3062
  # @option request_options [String] :base_url
@@ -2916,6 +3089,11 @@ module Nordlet
2916
3089
  end
2917
3090
  end
2918
3091
 
3092
+ # Stores a PEM certificate, a PEM private key or a PKCS#12 bundle (base64 in `content`, opened with `passphrase`
3093
+ # when it needs one) in the settings of the filing system and replaces the earlier upload of the same kind; for a
3094
+ # PEM certificate the fingerprint, subject, issuer and validity dates are recorded. Answers 422 when the system is
3095
+ # unknown or does not authenticate with a certificate. Returns the full certificate list of the company.
3096
+ #
2919
3097
  # @param request_options [Hash]
2920
3098
  # @param params [Nordlet::Declarations::Types::CertificatesUploadDeclarationsRequest]
2921
3099
  # @option request_options [String] :base_url
@@ -2948,6 +3126,9 @@ module Nordlet
2948
3126
  end
2949
3127
  end
2950
3128
 
3129
+ # Lists the certificates and private keys stored for the filing systems of the company, ordered by system and
3130
+ # field, each with its validity facts and health (`ok`, `expiring`, `expired` or `unknown`).
3131
+ #
2951
3132
  # @param request_options [Hash]
2952
3133
  # @param params [Nordlet::Declarations::Types::CertificatesListDeclarationsRequest]
2953
3134
  # @option request_options [String] :base_url
@@ -2980,6 +3161,9 @@ module Nordlet
2980
3161
  end
2981
3162
  end
2982
3163
 
3164
+ # Removes the certificate or the private key (`fieldKey`) of a filing system from the settings of the company and
3165
+ # from the certificate list, and returns the remaining certificates.
3166
+ #
2983
3167
  # @param request_options [Hash]
2984
3168
  # @param params [Nordlet::Declarations::Types::CertificatesDeleteDeclarationsRequest]
2985
3169
  # @option request_options [String] :base_url
@@ -3012,6 +3196,10 @@ module Nordlet
3012
3196
  end
3013
3197
  end
3014
3198
 
3199
+ # Lists the filing deadlines Nordlet can file by itself for the country of the company: for each, whether
3200
+ # automatic filing is switched on, whether the rule applies to the company profile, whether its filing system is
3201
+ # configured, the state of its certificate and whether it would go to the test or the production service.
3202
+ #
3015
3203
  # @param request_options [Hash]
3016
3204
  # @param params [Nordlet::Declarations::Types::AutomationListDeclarationsRequest]
3017
3205
  # @option request_options [String] :base_url
@@ -3044,6 +3232,11 @@ module Nordlet
3044
3232
  end
3045
3233
  end
3046
3234
 
3235
+ # Switches automatic filing of one deadline on or off for the company and returns the list of
3236
+ # `declarations/automation/list`. Answers 422 when the deadline is not one Nordlet files, or when switching on
3237
+ # while the filing system is connected to the test service of the administration (unless the company is a
3238
+ # sandbox), is not configured, or has no valid certificate.
3239
+ #
3047
3240
  # @param request_options [Hash]
3048
3241
  # @param params [Nordlet::Declarations::Types::AutomationUpdateDeclarationsRequest]
3049
3242
  # @option request_options [String] :base_url
@@ -3076,6 +3269,10 @@ module Nordlet
3076
3269
  end
3077
3270
  end
3078
3271
 
3272
+ # Sends a submission that is still in status `generated` through its filing system once more, with the stored file
3273
+ # or, when none was stored yet, a freshly generated one, and returns the updated submission. Answers 409 when the
3274
+ # submission is already submitted, accepted or rejected.
3275
+ #
3079
3276
  # @param request_options [Hash]
3080
3277
  # @param params [Nordlet::Declarations::Types::SubmissionsRetryDeclarationsRequest]
3081
3278
  # @option request_options [String] :base_url
@@ -3108,6 +3305,11 @@ module Nordlet
3108
3305
  end
3109
3306
  end
3110
3307
 
3308
+ # Builds the Lithuanian i.SAF register file of a month (`dataType` F both registers, S sale invoices only, P
3309
+ # purchase invoices only), stores it and creates a submission in status `generated` for the obligation `lt-isaf`,
3310
+ # the only obligation accepted. The XML alone comes from `declarations/lt/isaf/generate`; the submission is moved
3311
+ # on with `declarations/submissions/mark`.
3312
+ #
3111
3313
  # @param request_options [Hash]
3112
3314
  # @param params [Nordlet::Declarations::Types::SubmissionsCreateDeclarationsRequest]
3113
3315
  # @option request_options [String] :base_url
@@ -3140,6 +3342,10 @@ module Nordlet
3140
3342
  end
3141
3343
  end
3142
3344
 
3345
+ # Records by hand that a submission was sent, accepted or rejected, with the reference and message of the
3346
+ # administration when given. The allowed moves are `generated` to `submitted` and `submitted` to `accepted` or
3347
+ # `rejected`; any other move answers 409. A submission without a transport system is marked as sent manually.
3348
+ #
3143
3349
  # @param request_options [Hash]
3144
3350
  # @param params [Nordlet::Declarations::Types::SubmissionsMarkDeclarationsRequest]
3145
3351
  # @option request_options [String] :base_url
@@ -3172,6 +3378,9 @@ module Nordlet
3172
3378
  end
3173
3379
  end
3174
3380
 
3381
+ # Lists the declaration submissions of the company, newest first, filterable by `obligation`, `status`,
3382
+ # `periodYear` and `periodMonth` and sortable by `createdAt` or `periodYear`.
3383
+ #
3175
3384
  # @param request_options [Hash]
3176
3385
  # @param params [Nordlet::Declarations::Types::SubmissionsListDeclarationsRequest]
3177
3386
  # @option request_options [String] :base_url
@@ -17,6 +17,8 @@ module Nordlet
17
17
  field :paid_amount, -> { String }, optional: false, nullable: false, api_name: "paidAmount"
18
18
 
19
19
  field :gpm_withheld, -> { String }, optional: false, nullable: false, api_name: "gpmWithheld"
20
+
21
+ field :gpm_rate_percent, -> { String }, optional: false, nullable: false, api_name: "gpmRatePercent"
20
22
  end
21
23
  end
22
24
  end
@@ -10,6 +10,14 @@ module Nordlet
10
10
  @client = client
11
11
  end
12
12
 
13
+ # Create a numbering series for sale invoices, credit notes, proformas or advance invoices (`documentType`).
14
+ # Numbers run from `nextNumber`, padded to `numberLength` digits, and are written as `prefix`-number or, with
15
+ # `printSeries` false, as the bare number; a series may be bound to an operation type (a default series of an
16
+ # operation type is picked for its documents that name no series) and to a warehouse, which `sales/invoices/issue`
17
+ # takes the goods from. `isDefault` makes it the default of its document type and clears the previous one. Answers
18
+ # 422 when only one end of the allocated range `allocatedFrom`..`allocatedTo` is given or the range is reversed,
19
+ # 409 when the prefix exists for the document type.
20
+ #
13
21
  # @param request_options [Hash]
14
22
  # @param params [Nordlet::DocumentSeries::Types::CreateDocumentSeriesRequest]
15
23
  # @option request_options [String] :base_url
@@ -42,6 +50,10 @@ module Nordlet
42
50
  end
43
51
  end
44
52
 
53
+ # Change a document series; fields left out keep their value. `nextNumber` cannot go below its current value
54
+ # (409); `isDefault` clears the previous default of the document type. Answers 422 for an incomplete or reversed
55
+ # allocated range, 409 when the prefix is taken for the document type.
56
+ #
45
57
  # @param request_options [Hash]
46
58
  # @param params [Nordlet::DocumentSeries::Types::UpdateDocumentSeriesRequest]
47
59
  # @option request_options [String] :base_url
@@ -74,6 +86,8 @@ module Nordlet
74
86
  end
75
87
  end
76
88
 
89
+ # Return one document series.
90
+ #
77
91
  # @param request_options [Hash]
78
92
  # @param params [Nordlet::DocumentSeries::Types::GetDocumentSeriesRequest]
79
93
  # @option request_options [String] :base_url
@@ -106,6 +120,9 @@ module Nordlet
106
120
  end
107
121
  end
108
122
 
123
+ # Delete a document series no sale document uses. Answers 409 when invoices reference it; deactivate it with
124
+ # `isActive` instead.
125
+ #
109
126
  # @param request_options [Hash]
110
127
  # @param params [Nordlet::DocumentSeries::Types::DeleteDocumentSeriesRequest]
111
128
  # @option request_options [String] :base_url
@@ -138,6 +155,9 @@ module Nordlet
138
155
  end
139
156
  end
140
157
 
158
+ # List document series. Filterable by documentType, prefix, operationTypeId and isActive; sortable by prefix,
159
+ # documentType and createdAt.
160
+ #
141
161
  # @param request_options [Hash]
142
162
  # @param params [Nordlet::DocumentSeries::Types::ListDocumentSeriesRequest]
143
163
  # @option request_options [String] :base_url