nordlet 0.5.2 → 0.5.4

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 (26) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nordlet/declarations/types/lt_gpm312compute_declarations_response_rows_item.rb +2 -0
  3. data/lib/nordlet/ledger/client.rb +4 -3
  4. data/lib/nordlet/payroll/client.rb +32 -0
  5. data/lib/nordlet/payroll/types/calc_payroll_request.rb +2 -0
  6. data/lib/nordlet/payroll/types/calc_payroll_request_payments_item.rb +15 -0
  7. data/lib/nordlet/payroll/types/calc_payroll_response_components_item.rb +2 -0
  8. data/lib/nordlet/payroll/types/lines_attendance_payroll_response_additions_item.rb +4 -0
  9. data/lib/nordlet/payroll/types/lines_attendance_payroll_response_components_item.rb +2 -0
  10. data/lib/nordlet/payroll/types/payment_types_list_payroll_request.rb +9 -0
  11. data/lib/nordlet/payroll/types/payment_types_list_payroll_response.rb +15 -0
  12. data/lib/nordlet/payroll/types/payment_types_list_payroll_response_rows_item.rb +15 -0
  13. data/lib/nordlet/payroll/types/runs_approve_payroll_response_component_totals_item.rb +2 -0
  14. data/lib/nordlet/payroll/types/runs_create_payroll_request_lines_item_additions_item.rb +4 -0
  15. data/lib/nordlet/payroll/types/runs_create_payroll_response_component_totals_item.rb +2 -0
  16. data/lib/nordlet/payroll/types/runs_create_payroll_response_lines_item_additions_item.rb +4 -0
  17. data/lib/nordlet/payroll/types/runs_create_payroll_response_lines_item_components_item.rb +2 -0
  18. data/lib/nordlet/payroll/types/runs_get_payroll_response_component_totals_item.rb +2 -0
  19. data/lib/nordlet/payroll/types/runs_get_payroll_response_lines_item_additions_item.rb +4 -0
  20. data/lib/nordlet/payroll/types/runs_get_payroll_response_lines_item_components_item.rb +2 -0
  21. data/lib/nordlet/payroll/types/runs_list_payroll_response_rows_item_component_totals_item.rb +2 -0
  22. data/lib/nordlet/payroll/types/runs_reverse_payroll_response_component_totals_item.rb +2 -0
  23. data/lib/nordlet/version.rb +1 -1
  24. data/lib/nordlet.rb +4 -0
  25. data/reference.md +49 -1
  26. metadata +6 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b2775685b9e0dc7486b9e36c1072f11211964875997728a94b342ea1a83f13a
4
- data.tar.gz: c042e358785d4615ba57e423789d45be46ed3dee820509aa30b4d9cf0998f368
3
+ metadata.gz: f12fbedbc5b1f5390c549bd8922735902a0c2be2c8d9c82cb2e8ff2a2b1cb7ec
4
+ data.tar.gz: 344fc85edc1ffe11a51c771b54e20d507a8b9010afa0f01ac0db98ebdb22673c
5
5
  SHA512:
6
- metadata.gz: b280c4c57a2e7eeacecee255d579634aa209efba0dbc8f4966f9bde6bada3a14fae37856d2f7f17789e8877022ece8d9f787614b9ed28e025116ab469110a7f6
7
- data.tar.gz: fee07c87236e0aca812d455736b12c7fa0a64f1b1339730379b30e112a3a8be2d2f755d5b9a166df4962bd08ee6a2087c7e898b9f5e12875d7efb4a66f69fcde
6
+ metadata.gz: '0269cc9199ea5750f8c9899644cb08939f89949f206aac25888c2bcad97abd820fd16dc2f8e3ba1763a0709f1182e9109155854beaffda409c5f97052a00a4a8'
7
+ data.tar.gz: 679f30e8dedac9e4d417e2a7f835ca7eac7eaf12720c39c4e848c8adbd7430e8c90f41eb0923a51542b16894d19d490ea4c99c430811ec2bec89e57234b2391e
@@ -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
@@ -139,9 +139,10 @@ module Nordlet
139
139
  end
140
140
 
141
141
  # Replaces the seeded chart with the chart template of the company country (the Romanian general chart for a
142
- # company registered in Romania, the Lithuanian standard chart otherwise) and switches the posting defaults with
143
- # it. Answers 409 when the company already uses that chart, has journal entries, holds accounts created by hand,
144
- # or has settings that name an account the new chart does not have.
142
+ # company registered in Romania, the Estonian e-arveldaja chart for a company registered in Estonia, the
143
+ # Lithuanian standard chart otherwise) and switches the posting defaults with it. Answers 409 when the company
144
+ # already uses that chart, has journal entries, holds accounts created by hand, or has settings that name an
145
+ # account the new chart does not have.
145
146
  #
146
147
  # @param request_options [Hash]
147
148
  # @param params [Nordlet::Ledger::Types::AccountsSwitchChartLedgerRequest]
@@ -138,6 +138,38 @@ module Nordlet
138
138
  end
139
139
  end
140
140
 
141
+ # @param request_options [Hash]
142
+ # @param params [Nordlet::Payroll::Types::PaymentTypesListPayrollRequest]
143
+ # @option request_options [String] :base_url
144
+ # @option request_options [Hash{String => Object}] :additional_headers
145
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
146
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
147
+ # @option request_options [Integer] :timeout_in_seconds
148
+ #
149
+ # @return [Nordlet::Payroll::Types::PaymentTypesListPayrollResponse]
150
+ def payment_types_list(request_options: {}, **params)
151
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
152
+ request = Nordlet::Internal::JSON::Request.new(
153
+ base_url: request_options[:base_url],
154
+ method: "POST",
155
+ path: "v1/payroll/payment-types/list",
156
+ body: Nordlet::Payroll::Types::PaymentTypesListPayrollRequest.new(params).to_h,
157
+ request_options: request_options
158
+ )
159
+ begin
160
+ response = @client.send(request)
161
+ rescue Net::HTTPRequestTimeout
162
+ raise Nordlet::Errors::TimeoutError
163
+ end
164
+ code = response.code.to_i
165
+ if code.between?(200, 299)
166
+ Nordlet::Payroll::Types::PaymentTypesListPayrollResponse.load(response.body)
167
+ else
168
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
169
+ raise error_class.new(response.body, code: code)
170
+ end
171
+ end
172
+
141
173
  # @param request_options [Hash]
142
174
  # @param params [Nordlet::Payroll::Types::CalcPayrollRequest]
143
175
  # @option request_options [String] :base_url
@@ -19,6 +19,8 @@ module Nordlet
19
19
  field :benefit_in_kind, -> { String }, optional: true, nullable: false, api_name: "benefitInKind"
20
20
 
21
21
  field :options, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
22
+
23
+ field :payments, -> { Internal::Types::Array[Nordlet::Payroll::Types::CalcPayrollRequestPaymentsItem] }, optional: true, nullable: false
22
24
  end
23
25
  end
24
26
  end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Payroll
5
+ module Types
6
+ class CalcPayrollRequestPaymentsItem < Internal::Types::Model
7
+ field :payment_type, -> { String }, optional: false, nullable: false, api_name: "paymentType"
8
+
9
+ field :amount, -> { String }, optional: false, nullable: false
10
+
11
+ field :hours, -> { String }, optional: true, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -13,6 +13,8 @@ module Nordlet
13
13
  field :rate, -> { String }, optional: true, nullable: false
14
14
 
15
15
  field :base, -> { String }, optional: true, nullable: false
16
+
17
+ field :payment_type, -> { String }, optional: true, nullable: false, api_name: "paymentType"
16
18
  end
17
19
  end
18
20
  end
@@ -9,6 +9,10 @@ module Nordlet
9
9
  field :amount, -> { String }, optional: false, nullable: false
10
10
 
11
11
  field :taxable, -> { Internal::Types::Boolean }, optional: false, nullable: false
12
+
13
+ field :payment_type, -> { String }, optional: true, nullable: false, api_name: "paymentType"
14
+
15
+ field :hours, -> { String }, optional: true, nullable: false
12
16
  end
13
17
  end
14
18
  end
@@ -13,6 +13,8 @@ module Nordlet
13
13
  field :rate, -> { String }, optional: true, nullable: false
14
14
 
15
15
  field :base, -> { String }, optional: true, nullable: false
16
+
17
+ field :payment_type, -> { String }, optional: true, nullable: false, api_name: "paymentType"
16
18
  end
17
19
  end
18
20
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Payroll
5
+ module Types
6
+ class PaymentTypesListPayrollRequest < Internal::Types::Model; end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Payroll
5
+ module Types
6
+ class PaymentTypesListPayrollResponse < Internal::Types::Model
7
+ field :country_code, -> { String }, optional: false, nullable: false, api_name: "countryCode"
8
+
9
+ field :default_payment_type, -> { String }, optional: false, nullable: true, api_name: "defaultPaymentType"
10
+
11
+ field :rows, -> { Internal::Types::Array[Nordlet::Payroll::Types::PaymentTypesListPayrollResponseRowsItem] }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Payroll
5
+ module Types
6
+ class PaymentTypesListPayrollResponseRowsItem < Internal::Types::Model
7
+ field :code, -> { String }, optional: false, nullable: false
8
+
9
+ field :name, -> { String }, optional: false, nullable: false
10
+
11
+ field :applies, -> { Internal::Types::Array[String] }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -13,6 +13,8 @@ module Nordlet
13
13
  field :rate, -> { String }, optional: true, nullable: false
14
14
 
15
15
  field :base, -> { String }, optional: true, nullable: false
16
+
17
+ field :payment_type, -> { String }, optional: true, nullable: false, api_name: "paymentType"
16
18
  end
17
19
  end
18
20
  end
@@ -9,6 +9,10 @@ module Nordlet
9
9
  field :amount, -> { String }, optional: false, nullable: false
10
10
 
11
11
  field :taxable, -> { Internal::Types::Boolean }, optional: true, nullable: false
12
+
13
+ field :payment_type, -> { String }, optional: true, nullable: false, api_name: "paymentType"
14
+
15
+ field :hours, -> { String }, optional: true, nullable: false
12
16
  end
13
17
  end
14
18
  end
@@ -13,6 +13,8 @@ module Nordlet
13
13
  field :rate, -> { String }, optional: true, nullable: false
14
14
 
15
15
  field :base, -> { String }, optional: true, nullable: false
16
+
17
+ field :payment_type, -> { String }, optional: true, nullable: false, api_name: "paymentType"
16
18
  end
17
19
  end
18
20
  end
@@ -9,6 +9,10 @@ module Nordlet
9
9
  field :amount, -> { String }, optional: false, nullable: false
10
10
 
11
11
  field :taxable, -> { Internal::Types::Boolean }, optional: false, nullable: false
12
+
13
+ field :payment_type, -> { String }, optional: true, nullable: false, api_name: "paymentType"
14
+
15
+ field :hours, -> { String }, optional: true, nullable: false
12
16
  end
13
17
  end
14
18
  end
@@ -13,6 +13,8 @@ module Nordlet
13
13
  field :rate, -> { String }, optional: true, nullable: false
14
14
 
15
15
  field :base, -> { String }, optional: true, nullable: false
16
+
17
+ field :payment_type, -> { String }, optional: true, nullable: false, api_name: "paymentType"
16
18
  end
17
19
  end
18
20
  end
@@ -13,6 +13,8 @@ module Nordlet
13
13
  field :rate, -> { String }, optional: true, nullable: false
14
14
 
15
15
  field :base, -> { String }, optional: true, nullable: false
16
+
17
+ field :payment_type, -> { String }, optional: true, nullable: false, api_name: "paymentType"
16
18
  end
17
19
  end
18
20
  end
@@ -9,6 +9,10 @@ module Nordlet
9
9
  field :amount, -> { String }, optional: false, nullable: false
10
10
 
11
11
  field :taxable, -> { Internal::Types::Boolean }, optional: false, nullable: false
12
+
13
+ field :payment_type, -> { String }, optional: true, nullable: false, api_name: "paymentType"
14
+
15
+ field :hours, -> { String }, optional: true, nullable: false
12
16
  end
13
17
  end
14
18
  end
@@ -13,6 +13,8 @@ module Nordlet
13
13
  field :rate, -> { String }, optional: true, nullable: false
14
14
 
15
15
  field :base, -> { String }, optional: true, nullable: false
16
+
17
+ field :payment_type, -> { String }, optional: true, nullable: false, api_name: "paymentType"
16
18
  end
17
19
  end
18
20
  end
@@ -13,6 +13,8 @@ module Nordlet
13
13
  field :rate, -> { String }, optional: true, nullable: false
14
14
 
15
15
  field :base, -> { String }, optional: true, nullable: false
16
+
17
+ field :payment_type, -> { String }, optional: true, nullable: false, api_name: "paymentType"
16
18
  end
17
19
  end
18
20
  end
@@ -13,6 +13,8 @@ module Nordlet
13
13
  field :rate, -> { String }, optional: true, nullable: false
14
14
 
15
15
  field :base, -> { String }, optional: true, nullable: false
16
+
17
+ field :payment_type, -> { String }, optional: true, nullable: false, api_name: "paymentType"
16
18
  end
17
19
  end
18
20
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nordlet
4
- VERSION = "0.5.2"
4
+ VERSION = "0.5.4"
5
5
  end
data/lib/nordlet.rb CHANGED
@@ -1708,6 +1708,9 @@ require_relative "nordlet/payroll/types/departments_list_payroll_response"
1708
1708
  require_relative "nordlet/payroll/types/schedules_create_payroll_response"
1709
1709
  require_relative "nordlet/payroll/types/schedules_list_payroll_response_rows_item"
1710
1710
  require_relative "nordlet/payroll/types/schedules_list_payroll_response"
1711
+ require_relative "nordlet/payroll/types/payment_types_list_payroll_response_rows_item"
1712
+ require_relative "nordlet/payroll/types/payment_types_list_payroll_response"
1713
+ require_relative "nordlet/payroll/types/calc_payroll_request_payments_item"
1711
1714
  require_relative "nordlet/payroll/types/calc_payroll_response_components_item_kind"
1712
1715
  require_relative "nordlet/payroll/types/calc_payroll_response_components_item"
1713
1716
  require_relative "nordlet/payroll/types/calc_payroll_response"
@@ -3177,6 +3180,7 @@ require_relative "nordlet/payroll/types/departments_create_payroll_request"
3177
3180
  require_relative "nordlet/payroll/types/departments_list_payroll_request"
3178
3181
  require_relative "nordlet/payroll/types/schedules_create_payroll_request"
3179
3182
  require_relative "nordlet/payroll/types/schedules_list_payroll_request"
3183
+ require_relative "nordlet/payroll/types/payment_types_list_payroll_request"
3180
3184
  require_relative "nordlet/payroll/types/calc_payroll_request"
3181
3185
  require_relative "nordlet/payroll/types/runs_create_payroll_request"
3182
3186
  require_relative "nordlet/payroll/types/runs_get_payroll_request"
data/reference.md CHANGED
@@ -22474,7 +22474,7 @@ client.ledger.accounts_apply_template
22474
22474
  <dl>
22475
22475
  <dd>
22476
22476
 
22477
- Replaces the seeded chart with the chart template of the company country (the Romanian general chart for a company registered in Romania, the Lithuanian standard chart otherwise) and switches the posting defaults with it. Answers 409 when the company already uses that chart, has journal entries, holds accounts created by hand, or has settings that name an account the new chart does not have.
22477
+ Replaces the seeded chart with the chart template of the company country (the Romanian general chart for a company registered in Romania, the Estonian e-arveldaja chart for a company registered in Estonia, the Lithuanian standard chart otherwise) and switches the posting defaults with it. Answers 409 when the company already uses that chart, has journal entries, holds accounts created by hand, or has settings that name an account the new chart does not have.
22478
22478
  </dd>
22479
22479
  </dl>
22480
22480
  </dd>
@@ -30020,6 +30020,46 @@ client.payroll.schedules_list
30020
30020
  </dl>
30021
30021
 
30022
30022
 
30023
+ </dd>
30024
+ </dl>
30025
+ </details>
30026
+
30027
+ <details><summary><code>client.payroll.<a href="/lib/nordlet/payroll/client.rb">payment_types_list</a>(request) -> Nordlet::Payroll::Types::PaymentTypesListPayrollResponse</code></summary>
30028
+ <dl>
30029
+ <dd>
30030
+
30031
+ #### 🔌 Usage
30032
+
30033
+ <dl>
30034
+ <dd>
30035
+
30036
+ <dl>
30037
+ <dd>
30038
+
30039
+ ```ruby
30040
+ client.payroll.payment_types_list
30041
+ ```
30042
+ </dd>
30043
+ </dl>
30044
+ </dd>
30045
+ </dl>
30046
+
30047
+ #### ⚙️ Parameters
30048
+
30049
+ <dl>
30050
+ <dd>
30051
+
30052
+ <dl>
30053
+ <dd>
30054
+
30055
+ **request_options:** `Nordlet::Payroll::RequestOptions`
30056
+
30057
+ </dd>
30058
+ </dl>
30059
+ </dd>
30060
+ </dl>
30061
+
30062
+
30023
30063
  </dd>
30024
30064
  </dl>
30025
30065
  </details>
@@ -30119,6 +30159,14 @@ client.payroll.calc(
30119
30159
  <dl>
30120
30160
  <dd>
30121
30161
 
30162
+ **payments:** `Internal::Types::Array[Nordlet::Payroll::Types::CalcPayrollRequestPaymentsItem]`
30163
+
30164
+ </dd>
30165
+ </dl>
30166
+
30167
+ <dl>
30168
+ <dd>
30169
+
30122
30170
  **request_options:** `Nordlet::Payroll::RequestOptions`
30123
30171
 
30124
30172
  </dd>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nordlet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nordlet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-10-17 00:00:00.000000000 Z
11
+ date: 2026-10-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: The Nordlet Ruby library provides convenient access to the Nordlet API
14
14
  from Ruby.
@@ -2365,6 +2365,7 @@ files:
2365
2365
  - lib/nordlet/partners/types/vat_reviews_resolve_partners_response_status.rb
2366
2366
  - lib/nordlet/payroll/client.rb
2367
2367
  - lib/nordlet/payroll/types/calc_payroll_request.rb
2368
+ - lib/nordlet/payroll/types/calc_payroll_request_payments_item.rb
2368
2369
  - lib/nordlet/payroll/types/calc_payroll_response.rb
2369
2370
  - lib/nordlet/payroll/types/calc_payroll_response_components_item.rb
2370
2371
  - lib/nordlet/payroll/types/calc_payroll_response_components_item_kind.rb
@@ -2379,6 +2380,9 @@ files:
2379
2380
  - lib/nordlet/payroll/types/lines_attendance_payroll_response_components_item.rb
2380
2381
  - lib/nordlet/payroll/types/lines_attendance_payroll_response_components_item_kind.rb
2381
2382
  - lib/nordlet/payroll/types/lines_attendance_payroll_response_deductions_item.rb
2383
+ - lib/nordlet/payroll/types/payment_types_list_payroll_request.rb
2384
+ - lib/nordlet/payroll/types/payment_types_list_payroll_response.rb
2385
+ - lib/nordlet/payroll/types/payment_types_list_payroll_response_rows_item.rb
2382
2386
  - lib/nordlet/payroll/types/payments_export_payroll_request.rb
2383
2387
  - lib/nordlet/payroll/types/payments_export_payroll_request_locale.rb
2384
2388
  - lib/nordlet/payroll/types/payments_export_payroll_response.rb