nordlet 0.6.10 → 0.6.11

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 (197) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nordlet/account/client.rb +42 -0
  3. data/lib/nordlet/account/types/companies_context_account_request.rb +9 -0
  4. data/lib/nordlet/account/types/companies_context_account_response.rb +23 -0
  5. data/lib/nordlet/account/types/companies_context_account_response_bank_accounts_item.rb +23 -0
  6. data/lib/nordlet/account/types/companies_context_account_response_filings_item.rb +27 -0
  7. data/lib/nordlet/account/types/companies_context_account_response_filings_item_missing_settings.rb +17 -0
  8. data/lib/nordlet/account/types/companies_context_account_response_filings_item_missing_settings_operation.rb +13 -0
  9. data/lib/nordlet/account/types/companies_context_account_response_payroll.rb +15 -0
  10. data/lib/nordlet/account/types/companies_context_account_response_payroll_employee_fields_item.rb +17 -0
  11. data/lib/nordlet/account/types/companies_context_account_response_payroll_employee_fields_item_kind.rb +15 -0
  12. data/lib/nordlet/account/types/companies_context_account_response_periods.rb +13 -0
  13. data/lib/nordlet/account/types/companies_context_account_response_periods_locked_item.rb +13 -0
  14. data/lib/nordlet/account/types/companies_context_account_response_periods_open_item.rb +13 -0
  15. data/lib/nordlet/account/types/companies_context_account_response_profile.rb +95 -0
  16. data/lib/nordlet/account/types/companies_context_account_response_profile_accounts_kept_by.rb +14 -0
  17. data/lib/nordlet/account/types/companies_context_account_response_profile_address.rb +17 -0
  18. data/lib/nordlet/account/types/companies_context_account_response_profile_status.rb +15 -0
  19. data/lib/nordlet/account/types/companies_context_account_response_profile_vat_period.rb +17 -0
  20. data/lib/nordlet/account/types/companies_context_account_response_vat_types_used_item.rb +19 -0
  21. data/lib/nordlet/agreements/client.rb +3 -1
  22. data/lib/nordlet/assets/client.rb +9 -2
  23. data/lib/nordlet/assets/types/assets_create_assets_response.rb +2 -0
  24. data/lib/nordlet/assets/types/assets_dispose_assets_request.rb +2 -0
  25. data/lib/nordlet/assets/types/assets_dispose_assets_response.rb +2 -0
  26. data/lib/nordlet/assets/types/assets_get_assets_response.rb +2 -0
  27. data/lib/nordlet/assets/types/assets_input_vat_assets_response.rb +2 -0
  28. data/lib/nordlet/assets/types/assets_list_assets_response_rows_item.rb +2 -0
  29. data/lib/nordlet/assets/types/assets_modernize_assets_response.rb +2 -0
  30. data/lib/nordlet/assets/types/assets_update_assets_response.rb +2 -0
  31. data/lib/nordlet/audit/client.rb +3 -2
  32. data/lib/nordlet/bank/client.rb +38 -27
  33. data/lib/nordlet/bank/types/transactions_match_bank_request_document_type.rb +1 -0
  34. data/lib/nordlet/calendar/client.rb +6 -1
  35. data/lib/nordlet/calendar/types/create_calendar_response.rb +2 -0
  36. data/lib/nordlet/calendar/types/create_calendar_response_correction.rb +17 -0
  37. data/lib/nordlet/calendar/types/create_calendar_response_correction_optional_item.rb +16 -0
  38. data/lib/nordlet/calendar/types/create_calendar_response_correction_reason_codes_item.rb +13 -0
  39. data/lib/nordlet/calendar/types/create_calendar_response_correction_required_item.rb +16 -0
  40. data/lib/nordlet/calendar/types/create_calendar_response_submission.rb +4 -0
  41. data/lib/nordlet/calendar/types/create_calendar_response_submission_correction_input.rb +17 -0
  42. data/lib/nordlet/calendar/types/create_calendar_response_submissions_item.rb +4 -0
  43. data/lib/nordlet/calendar/types/create_calendar_response_submissions_item_correction_input.rb +17 -0
  44. data/lib/nordlet/calendar/types/get_calendar_response.rb +2 -0
  45. data/lib/nordlet/calendar/types/get_calendar_response_correction.rb +17 -0
  46. data/lib/nordlet/calendar/types/get_calendar_response_correction_optional_item.rb +16 -0
  47. data/lib/nordlet/calendar/types/get_calendar_response_correction_reason_codes_item.rb +13 -0
  48. data/lib/nordlet/calendar/types/get_calendar_response_correction_required_item.rb +16 -0
  49. data/lib/nordlet/calendar/types/get_calendar_response_submission.rb +4 -0
  50. data/lib/nordlet/calendar/types/get_calendar_response_submission_correction_input.rb +17 -0
  51. data/lib/nordlet/calendar/types/get_calendar_response_submissions_item.rb +4 -0
  52. data/lib/nordlet/calendar/types/get_calendar_response_submissions_item_correction_input.rb +17 -0
  53. data/lib/nordlet/calendar/types/list_calendar_response_rows_item.rb +2 -0
  54. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_correction.rb +17 -0
  55. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_correction_optional_item.rb +16 -0
  56. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_correction_reason_codes_item.rb +13 -0
  57. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_correction_required_item.rb +16 -0
  58. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submission.rb +4 -0
  59. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submission_correction_input.rb +17 -0
  60. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submissions_item.rb +4 -0
  61. data/lib/nordlet/calendar/types/list_calendar_response_rows_item_submissions_item_correction_input.rb +17 -0
  62. data/lib/nordlet/calendar/types/submit_calendar_request.rb +4 -0
  63. data/lib/nordlet/calendar/types/submit_calendar_request_correction.rb +17 -0
  64. data/lib/nordlet/calendar/types/submit_calendar_response.rb +4 -0
  65. data/lib/nordlet/calendar/types/submit_calendar_response_correction_input.rb +17 -0
  66. data/lib/nordlet/calendar/types/update_calendar_response.rb +2 -0
  67. data/lib/nordlet/calendar/types/update_calendar_response_correction.rb +17 -0
  68. data/lib/nordlet/calendar/types/update_calendar_response_correction_optional_item.rb +16 -0
  69. data/lib/nordlet/calendar/types/update_calendar_response_correction_reason_codes_item.rb +13 -0
  70. data/lib/nordlet/calendar/types/update_calendar_response_correction_required_item.rb +16 -0
  71. data/lib/nordlet/calendar/types/update_calendar_response_submission.rb +4 -0
  72. data/lib/nordlet/calendar/types/update_calendar_response_submission_correction_input.rb +17 -0
  73. data/lib/nordlet/calendar/types/update_calendar_response_submissions_item.rb +4 -0
  74. data/lib/nordlet/calendar/types/update_calendar_response_submissions_item_correction_input.rb +17 -0
  75. data/lib/nordlet/cash/client.rb +7 -5
  76. data/lib/nordlet/catalog/client.rb +3 -2
  77. data/lib/nordlet/client.rb +5 -0
  78. data/lib/nordlet/declarations/client.rb +154 -1
  79. data/lib/nordlet/declarations/types/submissions_confirm_declarations_response.rb +4 -0
  80. data/lib/nordlet/declarations/types/submissions_confirm_declarations_response_correction_input.rb +17 -0
  81. data/lib/nordlet/declarations/types/submissions_correction_preview_declarations_request.rb +11 -0
  82. data/lib/nordlet/declarations/types/submissions_correction_preview_declarations_response.rb +15 -0
  83. data/lib/nordlet/declarations/types/submissions_correction_preview_declarations_response_changes_item.rb +17 -0
  84. data/lib/nordlet/declarations/types/submissions_create_declarations_response.rb +4 -0
  85. data/lib/nordlet/declarations/types/submissions_create_declarations_response_correction_input.rb +17 -0
  86. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item.rb +8 -0
  87. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction.rb +17 -0
  88. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction_input.rb +17 -0
  89. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction_optional_item.rb +16 -0
  90. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction_reason_codes_item.rb +13 -0
  91. data/lib/nordlet/declarations/types/submissions_list_declarations_response_rows_item_correction_required_item.rb +16 -0
  92. data/lib/nordlet/declarations/types/submissions_mark_declarations_response.rb +4 -0
  93. data/lib/nordlet/declarations/types/submissions_mark_declarations_response_correction_input.rb +17 -0
  94. data/lib/nordlet/declarations/types/submissions_retry_declarations_response.rb +4 -0
  95. data/lib/nordlet/declarations/types/submissions_retry_declarations_response_correction_input.rb +17 -0
  96. data/lib/nordlet/declarations/types/vat_prorata_get_declarations_request.rb +11 -0
  97. data/lib/nordlet/declarations/types/vat_prorata_get_declarations_response.rb +13 -0
  98. data/lib/nordlet/declarations/types/vat_prorata_list_declarations_request.rb +9 -0
  99. data/lib/nordlet/declarations/types/vat_prorata_list_declarations_response.rb +11 -0
  100. data/lib/nordlet/declarations/types/vat_prorata_list_declarations_response_rows_item.rb +13 -0
  101. data/lib/nordlet/declarations/types/vat_prorata_set_declarations_request.rb +13 -0
  102. data/lib/nordlet/declarations/types/vat_prorata_set_declarations_response.rb +13 -0
  103. data/lib/nordlet/document_series/client.rb +2 -1
  104. data/lib/nordlet/files/client.rb +2 -2
  105. data/lib/nordlet/fleet/client.rb +3 -1
  106. data/lib/nordlet/hr/client.rb +9 -5
  107. data/lib/nordlet/inventory/client.rb +14 -6
  108. data/lib/nordlet/inventory/types/stock_receive_inventory_request.rb +2 -0
  109. data/lib/nordlet/inventory/types/stock_receive_inventory_response.rb +4 -0
  110. data/lib/nordlet/inventory/types/stock_receive_inventory_response_warnings_item.rb +15 -0
  111. data/lib/nordlet/leads/client.rb +2 -1
  112. data/lib/nordlet/ledger/client.rb +176 -11
  113. data/lib/nordlet/ledger/types/accruals_create_ledger_request.rb +15 -0
  114. data/lib/nordlet/ledger/types/accruals_create_ledger_request_lines_item.rb +19 -0
  115. data/lib/nordlet/ledger/types/accruals_create_ledger_response.rb +17 -0
  116. data/lib/nordlet/ledger/types/fx_revaluation_reverse_ledger_request.rb +13 -0
  117. data/lib/nordlet/ledger/types/fx_revaluation_reverse_ledger_response.rb +13 -0
  118. data/lib/nordlet/ledger/types/fx_revaluation_run_ledger_request.rb +11 -0
  119. data/lib/nordlet/ledger/types/fx_revaluation_run_ledger_response.rb +25 -0
  120. data/lib/nordlet/ledger/types/fx_revaluation_run_ledger_response_lines_item.rb +19 -0
  121. data/lib/nordlet/ledger/types/fx_revaluation_run_ledger_response_lines_item_kind.rb +15 -0
  122. data/lib/nordlet/ledger/types/journal_transactions_create_ledger_request_entries_item.rb +2 -0
  123. data/lib/nordlet/ledger/types/journal_transactions_get_ledger_response_entries_item.rb +2 -0
  124. data/lib/nordlet/ledger/types/posting_rules_update_ledger_request_rules_item_key.rb +5 -0
  125. data/lib/nordlet/ledger/types/tax_provision_post_ledger_request.rb +13 -0
  126. data/lib/nordlet/ledger/types/tax_provision_post_ledger_response.rb +17 -0
  127. data/lib/nordlet/migration/client.rb +5 -1
  128. data/lib/nordlet/operation_types/client.rb +4 -1
  129. data/lib/nordlet/partners/client.rb +14 -10
  130. data/lib/nordlet/partners/types/find_or_create_partners_request.rb +2 -0
  131. data/lib/nordlet/payroll/client.rb +24 -19
  132. data/lib/nordlet/payroll/types/runs_approve_payroll_request.rb +4 -0
  133. data/lib/nordlet/platform_sellers/client.rb +3 -1
  134. data/lib/nordlet/production/client.rb +4 -2
  135. data/lib/nordlet/projects/client.rb +3 -2
  136. data/lib/nordlet/public/types/invoices_get_public_response_status.rb +1 -0
  137. data/lib/nordlet/purchases/client.rb +20 -12
  138. data/lib/nordlet/purchases/types/invoices_create_purchases_response_warnings_item.rb +2 -0
  139. data/lib/nordlet/purchases/types/invoices_register_purchases_response_warnings_item.rb +2 -0
  140. data/lib/nordlet/reference/client.rb +4 -1
  141. data/lib/nordlet/review/client.rb +55 -0
  142. data/lib/nordlet/review/types/queue_list_review_request.rb +9 -0
  143. data/lib/nordlet/review/types/queue_list_review_response.rb +13 -0
  144. data/lib/nordlet/review/types/queue_list_review_response_items_item.rb +19 -0
  145. data/lib/nordlet/review/types/queue_list_review_response_items_item_kind.rb +16 -0
  146. data/lib/nordlet/sales/client.rb +65 -17
  147. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response.rb +6 -0
  148. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response_lines_item.rb +2 -0
  149. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response_status.rb +1 -0
  150. data/lib/nordlet/sales/types/invoices_create_sales_request_lines_item.rb +2 -0
  151. data/lib/nordlet/sales/types/invoices_create_sales_response.rb +6 -0
  152. data/lib/nordlet/sales/types/invoices_create_sales_response_lines_item.rb +2 -0
  153. data/lib/nordlet/sales/types/invoices_create_sales_response_status.rb +1 -0
  154. data/lib/nordlet/sales/types/invoices_create_sales_response_warnings_item.rb +2 -0
  155. data/lib/nordlet/sales/types/invoices_get_sales_response.rb +6 -0
  156. data/lib/nordlet/sales/types/invoices_get_sales_response_lines_item.rb +2 -0
  157. data/lib/nordlet/sales/types/invoices_get_sales_response_status.rb +1 -0
  158. data/lib/nordlet/sales/types/invoices_issue_sales_response.rb +6 -0
  159. data/lib/nordlet/sales/types/invoices_issue_sales_response_lines_item.rb +2 -0
  160. data/lib/nordlet/sales/types/invoices_issue_sales_response_status.rb +1 -0
  161. data/lib/nordlet/sales/types/invoices_issue_sales_response_warnings_item.rb +2 -0
  162. data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item.rb +6 -0
  163. data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item_status.rb +1 -0
  164. data/lib/nordlet/sales/types/invoices_lock_sales_response.rb +6 -0
  165. data/lib/nordlet/sales/types/invoices_lock_sales_response_lines_item.rb +2 -0
  166. data/lib/nordlet/sales/types/invoices_lock_sales_response_status.rb +1 -0
  167. data/lib/nordlet/sales/types/invoices_reverse_sales_request.rb +13 -0
  168. data/lib/nordlet/sales/types/invoices_reverse_sales_response.rb +149 -0
  169. data/lib/nordlet/sales/types/invoices_reverse_sales_response_lines_item.rb +61 -0
  170. data/lib/nordlet/sales/types/invoices_reverse_sales_response_lines_item_recognition_method.rb +16 -0
  171. data/lib/nordlet/sales/types/invoices_reverse_sales_response_lines_item_recognition_milestones_item.rb +15 -0
  172. data/lib/nordlet/sales/types/invoices_reverse_sales_response_payment_status.rb +15 -0
  173. data/lib/nordlet/sales/types/invoices_reverse_sales_response_status.rb +15 -0
  174. data/lib/nordlet/sales/types/invoices_reverse_sales_response_type.rb +16 -0
  175. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence.rb +25 -0
  176. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_location.rb +13 -0
  177. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_partner.rb +17 -0
  178. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_rate_table.rb +17 -0
  179. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_rates_item.rb +15 -0
  180. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_scheme.rb +15 -0
  181. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_evidence_vies.rb +23 -0
  182. data/lib/nordlet/sales/types/invoices_reverse_sales_response_vat_scheme.rb +21 -0
  183. data/lib/nordlet/sales/types/invoices_unlock_sales_response.rb +6 -0
  184. data/lib/nordlet/sales/types/invoices_unlock_sales_response_lines_item.rb +2 -0
  185. data/lib/nordlet/sales/types/invoices_unlock_sales_response_status.rb +1 -0
  186. data/lib/nordlet/sales/types/invoices_update_sales_request_lines_item.rb +2 -0
  187. data/lib/nordlet/sales/types/invoices_update_sales_response.rb +6 -0
  188. data/lib/nordlet/sales/types/invoices_update_sales_response_lines_item.rb +2 -0
  189. data/lib/nordlet/sales/types/invoices_update_sales_response_status.rb +1 -0
  190. data/lib/nordlet/sales/types/invoices_view_sales_response_status.rb +1 -0
  191. data/lib/nordlet/transport/client.rb +2 -1
  192. data/lib/nordlet/version.rb +1 -1
  193. data/lib/nordlet/webhooks/types/subscriptions_create_webhooks_request_events_item.rb +3 -0
  194. data/lib/nordlet/webhooks/types/subscriptions_update_webhooks_request_events_item.rb +3 -0
  195. data/lib/nordlet.rb +96 -0
  196. data/reference.md +1258 -480
  197. metadata +98 -2
@@ -205,9 +205,10 @@ module Nordlet
205
205
  end
206
206
 
207
207
  # List the bank transactions of the company. Filterable by id, bankAccountId, status, matchedDocumentId, date,
208
- # amount, counterpartyIban, counterpartyName, partnerId and externalId; sortable by date, createdAt and amount.
209
- # `counterpartyName` is the name as the bank wrote it; `partnerId` and `partnerName` are the partner the line
210
- # belongs to.
208
+ # amount, counterpartyIban, counterpartyName, partnerId and externalId; sortable by date, createdAt, amount,
209
+ # bankAccountName (the name of the bank account), partnerName (the name of the partner, else the counterparty
210
+ # name), description and status. `counterpartyName` is the name as the bank wrote it; `partnerId` and
211
+ # `partnerName` are the partner the line belongs to.
211
212
  #
212
213
  # @param request_options [Hash]
213
214
  # @param params [Nordlet::Bank::Types::TransactionsListBankRequest]
@@ -242,24 +243,27 @@ module Nordlet
242
243
  end
243
244
 
244
245
  # Match one new bank transaction to a document: an issued sale invoice or advance for incoming money; an issued
245
- # sale credit note, a registered purchase invoice or an approved payroll run (company currency only) for outgoing
246
- # money. Posts the payment journal transaction between the bank account and the receivable or payable account the
246
+ # sale credit note, a registered purchase invoice, an approved payroll run or an expense report (the last two in
247
+ # company currency only) for outgoing money. An expense report is paid to the employee by debiting the cash
248
+ # advances account (`cash.advances`) against the bank account, which settles the employee's advance balance in
249
+ # `cash/advance-holders/balances`; a report already paid in full or a payment above its remaining amount answers
250
+ # 409. Posts the payment journal transaction between the bank account and the receivable or payable account the
247
251
  # invoice was posted to (the account of its operation type, else the posting rule) or the net payable account,
248
252
  # with any exchange difference on the gain or loss account, raises the paid amount of the document and sets the
249
253
  # line to matched. A payment in another currency is converted into the invoice currency at the rate of the line
250
254
  # date, and the difference against the invoice's own rate is the exchange difference; `invoiceAmount` states the
251
255
  # amount settled instead; in the same currency it must equal the payment (422). `remainder` settles a payment that
252
256
  # differs from the remaining balance of a sale or purchase invoice in its own currency: `advance` books an
253
- # overpayment beyond the balance to the advances-received posting rule (customer payments) or to
254
- # `remainder.accountCode`, which a supplier overpayment must name, on the line's partner; `write_off` books the
255
- # over- or underpayment to `remainder.accountCode`, else to the `bank.paymentDifferenceLoss` posting rule (a
256
- # customer underpayment, a supplier overpayment, a credit note refund beyond its balance) or the
257
- # `bank.paymentDifferenceGain` rule (a supplier underpayment, a customer overpayment, a credit note refund below
258
- # its balance), and settles the invoice in full; `leave_open` settles an underpayment as a partial payment and
259
- # leaves the rest open. Answers 409 when the line is already matched or ignored, when the amount (converted,
260
- # beyond one cent of the payment) exceeds the remaining balance of the document and no `remainder` is given, or
261
- # when the accounting period of the line date is locked. A document that becomes fully paid is announced as
262
- # `sale_invoice.paid` or `purchase_invoice.paid`.
257
+ # overpayment beyond the balance to the advances-received posting rule (customer payments) or, for a supplier
258
+ # overpayment, to the `purchases.advancesPaid` posting rule, or to `remainder.accountCode` when given, on the
259
+ # line's partner; `write_off` books the over- or underpayment to `remainder.accountCode`, else to the
260
+ # `bank.paymentDifferenceLoss` posting rule (a customer underpayment, a supplier overpayment, a credit note refund
261
+ # beyond its balance) or the `bank.paymentDifferenceGain` rule (a supplier underpayment, a customer overpayment, a
262
+ # credit note refund below its balance), and settles the invoice in full; `leave_open` settles an underpayment as
263
+ # a partial payment and leaves the rest open. Answers 409 when the line is already matched or ignored, when the
264
+ # amount (converted, beyond one cent of the payment) exceeds the remaining balance of the document and no
265
+ # `remainder` is given, or when the accounting period of the line date is locked. A document that becomes fully
266
+ # paid is announced as `sale_invoice.paid` or `purchase_invoice.paid`.
263
267
  #
264
268
  # @param request_options [Hash]
265
269
  # @param params [Nordlet::Bank::Types::TransactionsMatchBankRequest]
@@ -563,11 +567,13 @@ module Nordlet
563
567
  end
564
568
  end
565
569
 
566
- # Build a SEPA credit transfer file (pain.001.001.03) that pays the remaining amount of each registered purchase
567
- # invoice from the bank account on `executionDate` (default: today), to the partner's default bank account. The
568
- # bank account needs an IBAN and every invoice must be in EUR and have a partner bank account on file (422
569
- # otherwise, see `partners/bank-accounts/create`); an invoice that is already paid answers 409. The file is
570
- # returned as `xml`; nothing is posted or marked paid.
570
+ # Build a credit transfer file (ISO 20022 pain.001.001.03) that pays the remaining amount of each registered
571
+ # purchase invoice from the bank account on `executionDate` (default: today), to the partner's default bank
572
+ # account. The bank account needs an IBAN and every invoice must be in the currency of the bank account and have a
573
+ # partner bank account on file (422 otherwise, see `partners/bank-accounts/create`); an invoice that is already
574
+ # paid answers 409. A file in EUR is a SEPA credit transfer (service level SEPA); a file in another currency is a
575
+ # generic pain.001 without the SEPA service level, in the currency of the account. The file is returned as `xml`;
576
+ # nothing is posted or marked paid.
571
577
  #
572
578
  # @param request_options [Hash]
573
579
  # @param params [Nordlet::Bank::Types::PaymentsExportBankRequest]
@@ -1099,7 +1105,8 @@ module Nordlet
1099
1105
  end
1100
1106
 
1101
1107
  # List the mandates of the company. Filterable by partnerId, status, scheme, reference and iban; sortable by
1102
- # createdAt and signatureDate.
1108
+ # createdAt, signatureDate, reference, partnerName (the name of the partner, else the debtor name), iban, scheme,
1109
+ # sequenceType, collectionsCount, expiresOn (the last collection date, else the signature date) and status.
1103
1110
  #
1104
1111
  # @param request_options [Hash]
1105
1112
  # @param params [Nordlet::Bank::Types::MandatesListBankRequest]
@@ -1135,8 +1142,9 @@ module Nordlet
1135
1142
 
1136
1143
  # List the issued EUR sale invoices that are unpaid or partly paid and whose partner holds an active mandate, each
1137
1144
  # with the mandate `bank/direct-debits/export` would use (the most recently signed active one). Filterable by
1138
- # partnerId, fullNumber, issueDate and dueDate; sortable by issueDate, dueDate, fullNumber, grossTotal and
1139
- # createdAt.
1145
+ # partnerId, fullNumber, issueDate and dueDate; sortable by issueDate, dueDate, fullNumber, grossTotal, createdAt,
1146
+ # partnerName (the name of the partner), remaining (the gross total less the paid amount) and mandateReference
1147
+ # (the reference of the mandate shown).
1140
1148
  #
1141
1149
  # @param request_options [Hash]
1142
1150
  # @param params [Nordlet::Bank::Types::DirectDebitsCandidatesBankRequest]
@@ -1215,8 +1223,8 @@ module Nordlet
1215
1223
  # purchase invoices, issued sale credit notes and approved payroll runs for outgoing money. Candidates are unpaid
1216
1224
  # documents with any remaining balance, also one below the payment, scored by an equal remaining balance, the
1217
1225
  # document number or payroll period in the payment description and a counterparty IBAN or name matching the
1218
- # partner or an employee on the run; the best `limit` come back with their reasons. A transaction that is already
1219
- # matched answers 409.
1226
+ # partner or an employee on the run; the best `limit` come back with their reasons; a candidate with no matching
1227
+ # reason (score 0) is left out. A transaction that is already matched answers 409.
1220
1228
  #
1221
1229
  # @param request_options [Hash]
1222
1230
  # @param params [Nordlet::Bank::Types::TransactionsSuggestMatchesBankRequest]
@@ -1292,7 +1300,9 @@ module Nordlet
1292
1300
  end
1293
1301
 
1294
1302
  # List the settlement batches with their line counts and the clearing figures against the bank lines. Filterable
1295
- # by provider, payoutId, status, currency and bankAccountId; sortable by payoutDate, createdAt and netTotal.
1303
+ # by provider, payoutId, status, currency and bankAccountId; sortable by payoutDate, createdAt, netTotal,
1304
+ # payoutId, provider, bankAccountName (the name of the bank account), grossTotal, feeTotal, lineCount (the number
1305
+ # of lines) and status.
1296
1306
  #
1297
1307
  # @param request_options [Hash]
1298
1308
  # @param params [Nordlet::Bank::Types::SettlementsListBankRequest]
@@ -1657,7 +1667,8 @@ module Nordlet
1657
1667
  end
1658
1668
 
1659
1669
  # List the imported securities operations, newest first; filterable by `bankAccountId`, `kind`, `status`, `symbol`
1660
- # and `date`, sortable by `date` and `createdAt`.
1670
+ # and `date`, sortable by `date`, `createdAt`, `bankAccountName` (the name of the bank account), `kind`, `symbol`,
1671
+ # `quantity`, `amount`, `fee`, `cashBase`, `costBase`, `realizedBase` and `status`.
1661
1672
  #
1662
1673
  # @param request_options [Hash]
1663
1674
  # @param params [Nordlet::Bank::Types::SecuritiesOperationsListBankRequest]
@@ -9,6 +9,7 @@ module Nordlet
9
9
  SALE_INVOICE = "sale_invoice"
10
10
  PURCHASE_INVOICE = "purchase_invoice"
11
11
  PAYROLL_RUN = "payroll_run"
12
+ EXPENSE_REPORT = "expense_report"
12
13
  end
13
14
  end
14
15
  end
@@ -84,7 +84,12 @@ module Nordlet
84
84
  end
85
85
 
86
86
  # With amend: true the return is filed again as a correction of the one already submitted or accepted for the
87
- # period; only returns whose format has a correction mark accept it.
87
+ # period; only deadlines whose `calendar/get` row has `correction` accept it. `correction` carries what that row's
88
+ # `correction.required` and `correction.optional` name: `reason`, `reasonCode` (one of `correction.reasonCodes`),
89
+ # `authorityReference`, the administration's own number of the filing being corrected, and `discoveredOn`, the
90
+ # date the error was found (YYYY-MM-DD, not after the company's today); a missing required one answers 422 with
91
+ # fieldErrors. For a deadline filed as one document per person, `documentKeys` limits the correction to those
92
+ # documents.
88
93
  #
89
94
  # @param request_options [Hash]
90
95
  # @param params [Nordlet::Calendar::Types::SubmitCalendarRequest]
@@ -32,6 +32,8 @@ module Nordlet
32
32
 
33
33
  field :can_amend, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "canAmend"
34
34
 
35
+ field :correction, -> { Nordlet::Calendar::Types::CreateCalendarResponseCorrection }, optional: false, nullable: true
36
+
35
37
  field :can_download, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "canDownload"
36
38
 
37
39
  field :automated, -> { Internal::Types::Boolean }, optional: false, nullable: false
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Calendar
5
+ module Types
6
+ class CreateCalendarResponseCorrection < Internal::Types::Model
7
+ field :required, -> { Internal::Types::Array[Nordlet::Calendar::Types::CreateCalendarResponseCorrectionRequiredItem] }, optional: false, nullable: false
8
+
9
+ field :optional, -> { Internal::Types::Array[Nordlet::Calendar::Types::CreateCalendarResponseCorrectionOptionalItem] }, optional: false, nullable: false
10
+
11
+ field :reason_codes, -> { Internal::Types::Array[Nordlet::Calendar::Types::CreateCalendarResponseCorrectionReasonCodesItem] }, optional: false, nullable: false, api_name: "reasonCodes"
12
+
13
+ field :carry, -> { Internal::Types::Boolean }, optional: false, nullable: false
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Calendar
5
+ module Types
6
+ module CreateCalendarResponseCorrectionOptionalItem
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ REASON = "reason"
10
+ REASON_CODE = "reasonCode"
11
+ AUTHORITY_REFERENCE = "authorityReference"
12
+ DISCOVERED_ON = "discoveredOn"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Calendar
5
+ module Types
6
+ class CreateCalendarResponseCorrectionReasonCodesItem < Internal::Types::Model
7
+ field :code, -> { String }, optional: false, nullable: false
8
+
9
+ field :label, -> { String }, optional: false, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Calendar
5
+ module Types
6
+ module CreateCalendarResponseCorrectionRequiredItem
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ REASON = "reason"
10
+ REASON_CODE = "reasonCode"
11
+ AUTHORITY_REFERENCE = "authorityReference"
12
+ DISCOVERED_ON = "discoveredOn"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -32,6 +32,10 @@ module Nordlet
32
32
 
33
33
  field :amendment, -> { Integer }, optional: false, nullable: false
34
34
 
35
+ field :authority_ref, -> { String }, optional: false, nullable: true, api_name: "authorityRef"
36
+
37
+ field :correction_input, -> { Nordlet::Calendar::Types::CreateCalendarResponseSubmissionCorrectionInput }, optional: false, nullable: true, api_name: "correctionInput"
38
+
35
39
  field :origin, -> { String }, optional: false, nullable: false
36
40
 
37
41
  field :transport_system, -> { String }, optional: false, nullable: true, api_name: "transportSystem"
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Calendar
5
+ module Types
6
+ class CreateCalendarResponseSubmissionCorrectionInput < Internal::Types::Model
7
+ field :reason, -> { String }, optional: true, nullable: false
8
+
9
+ field :reason_code, -> { String }, optional: true, nullable: false, api_name: "reasonCode"
10
+
11
+ field :authority_reference, -> { String }, optional: true, nullable: false, api_name: "authorityReference"
12
+
13
+ field :discovered_on, -> { String }, optional: true, nullable: false, api_name: "discoveredOn"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -32,6 +32,10 @@ module Nordlet
32
32
 
33
33
  field :amendment, -> { Integer }, optional: false, nullable: false
34
34
 
35
+ field :authority_ref, -> { String }, optional: false, nullable: true, api_name: "authorityRef"
36
+
37
+ field :correction_input, -> { Nordlet::Calendar::Types::CreateCalendarResponseSubmissionsItemCorrectionInput }, optional: false, nullable: true, api_name: "correctionInput"
38
+
35
39
  field :origin, -> { String }, optional: false, nullable: false
36
40
 
37
41
  field :transport_system, -> { String }, optional: false, nullable: true, api_name: "transportSystem"
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Calendar
5
+ module Types
6
+ class CreateCalendarResponseSubmissionsItemCorrectionInput < Internal::Types::Model
7
+ field :reason, -> { String }, optional: true, nullable: false
8
+
9
+ field :reason_code, -> { String }, optional: true, nullable: false, api_name: "reasonCode"
10
+
11
+ field :authority_reference, -> { String }, optional: true, nullable: false, api_name: "authorityReference"
12
+
13
+ field :discovered_on, -> { String }, optional: true, nullable: false, api_name: "discoveredOn"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -32,6 +32,8 @@ module Nordlet
32
32
 
33
33
  field :can_amend, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "canAmend"
34
34
 
35
+ field :correction, -> { Nordlet::Calendar::Types::GetCalendarResponseCorrection }, optional: false, nullable: true
36
+
35
37
  field :can_download, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "canDownload"
36
38
 
37
39
  field :automated, -> { Internal::Types::Boolean }, optional: false, nullable: false
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Calendar
5
+ module Types
6
+ class GetCalendarResponseCorrection < Internal::Types::Model
7
+ field :required, -> { Internal::Types::Array[Nordlet::Calendar::Types::GetCalendarResponseCorrectionRequiredItem] }, optional: false, nullable: false
8
+
9
+ field :optional, -> { Internal::Types::Array[Nordlet::Calendar::Types::GetCalendarResponseCorrectionOptionalItem] }, optional: false, nullable: false
10
+
11
+ field :reason_codes, -> { Internal::Types::Array[Nordlet::Calendar::Types::GetCalendarResponseCorrectionReasonCodesItem] }, optional: false, nullable: false, api_name: "reasonCodes"
12
+
13
+ field :carry, -> { Internal::Types::Boolean }, optional: false, nullable: false
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Calendar
5
+ module Types
6
+ module GetCalendarResponseCorrectionOptionalItem
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ REASON = "reason"
10
+ REASON_CODE = "reasonCode"
11
+ AUTHORITY_REFERENCE = "authorityReference"
12
+ DISCOVERED_ON = "discoveredOn"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Calendar
5
+ module Types
6
+ class GetCalendarResponseCorrectionReasonCodesItem < Internal::Types::Model
7
+ field :code, -> { String }, optional: false, nullable: false
8
+
9
+ field :label, -> { String }, optional: false, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Calendar
5
+ module Types
6
+ module GetCalendarResponseCorrectionRequiredItem
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ REASON = "reason"
10
+ REASON_CODE = "reasonCode"
11
+ AUTHORITY_REFERENCE = "authorityReference"
12
+ DISCOVERED_ON = "discoveredOn"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -32,6 +32,10 @@ module Nordlet
32
32
 
33
33
  field :amendment, -> { Integer }, optional: false, nullable: false
34
34
 
35
+ field :authority_ref, -> { String }, optional: false, nullable: true, api_name: "authorityRef"
36
+
37
+ field :correction_input, -> { Nordlet::Calendar::Types::GetCalendarResponseSubmissionCorrectionInput }, optional: false, nullable: true, api_name: "correctionInput"
38
+
35
39
  field :origin, -> { String }, optional: false, nullable: false
36
40
 
37
41
  field :transport_system, -> { String }, optional: false, nullable: true, api_name: "transportSystem"
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Calendar
5
+ module Types
6
+ class GetCalendarResponseSubmissionCorrectionInput < Internal::Types::Model
7
+ field :reason, -> { String }, optional: true, nullable: false
8
+
9
+ field :reason_code, -> { String }, optional: true, nullable: false, api_name: "reasonCode"
10
+
11
+ field :authority_reference, -> { String }, optional: true, nullable: false, api_name: "authorityReference"
12
+
13
+ field :discovered_on, -> { String }, optional: true, nullable: false, api_name: "discoveredOn"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -32,6 +32,10 @@ module Nordlet
32
32
 
33
33
  field :amendment, -> { Integer }, optional: false, nullable: false
34
34
 
35
+ field :authority_ref, -> { String }, optional: false, nullable: true, api_name: "authorityRef"
36
+
37
+ field :correction_input, -> { Nordlet::Calendar::Types::GetCalendarResponseSubmissionsItemCorrectionInput }, optional: false, nullable: true, api_name: "correctionInput"
38
+
35
39
  field :origin, -> { String }, optional: false, nullable: false
36
40
 
37
41
  field :transport_system, -> { String }, optional: false, nullable: true, api_name: "transportSystem"
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Calendar
5
+ module Types
6
+ class GetCalendarResponseSubmissionsItemCorrectionInput < Internal::Types::Model
7
+ field :reason, -> { String }, optional: true, nullable: false
8
+
9
+ field :reason_code, -> { String }, optional: true, nullable: false, api_name: "reasonCode"
10
+
11
+ field :authority_reference, -> { String }, optional: true, nullable: false, api_name: "authorityReference"
12
+
13
+ field :discovered_on, -> { String }, optional: true, nullable: false, api_name: "discoveredOn"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -32,6 +32,8 @@ module Nordlet
32
32
 
33
33
  field :can_amend, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "canAmend"
34
34
 
35
+ field :correction, -> { Nordlet::Calendar::Types::ListCalendarResponseRowsItemCorrection }, optional: false, nullable: true
36
+
35
37
  field :can_download, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "canDownload"
36
38
 
37
39
  field :automated, -> { Internal::Types::Boolean }, optional: false, nullable: false
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Calendar
5
+ module Types
6
+ class ListCalendarResponseRowsItemCorrection < Internal::Types::Model
7
+ field :required, -> { Internal::Types::Array[Nordlet::Calendar::Types::ListCalendarResponseRowsItemCorrectionRequiredItem] }, optional: false, nullable: false
8
+
9
+ field :optional, -> { Internal::Types::Array[Nordlet::Calendar::Types::ListCalendarResponseRowsItemCorrectionOptionalItem] }, optional: false, nullable: false
10
+
11
+ field :reason_codes, -> { Internal::Types::Array[Nordlet::Calendar::Types::ListCalendarResponseRowsItemCorrectionReasonCodesItem] }, optional: false, nullable: false, api_name: "reasonCodes"
12
+
13
+ field :carry, -> { Internal::Types::Boolean }, optional: false, nullable: false
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Calendar
5
+ module Types
6
+ module ListCalendarResponseRowsItemCorrectionOptionalItem
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ REASON = "reason"
10
+ REASON_CODE = "reasonCode"
11
+ AUTHORITY_REFERENCE = "authorityReference"
12
+ DISCOVERED_ON = "discoveredOn"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Calendar
5
+ module Types
6
+ class ListCalendarResponseRowsItemCorrectionReasonCodesItem < Internal::Types::Model
7
+ field :code, -> { String }, optional: false, nullable: false
8
+
9
+ field :label, -> { String }, optional: false, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Calendar
5
+ module Types
6
+ module ListCalendarResponseRowsItemCorrectionRequiredItem
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ REASON = "reason"
10
+ REASON_CODE = "reasonCode"
11
+ AUTHORITY_REFERENCE = "authorityReference"
12
+ DISCOVERED_ON = "discoveredOn"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -32,6 +32,10 @@ module Nordlet
32
32
 
33
33
  field :amendment, -> { Integer }, optional: false, nullable: false
34
34
 
35
+ field :authority_ref, -> { String }, optional: false, nullable: true, api_name: "authorityRef"
36
+
37
+ field :correction_input, -> { Nordlet::Calendar::Types::ListCalendarResponseRowsItemSubmissionCorrectionInput }, optional: false, nullable: true, api_name: "correctionInput"
38
+
35
39
  field :origin, -> { String }, optional: false, nullable: false
36
40
 
37
41
  field :transport_system, -> { String }, optional: false, nullable: true, api_name: "transportSystem"
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Calendar
5
+ module Types
6
+ class ListCalendarResponseRowsItemSubmissionCorrectionInput < Internal::Types::Model
7
+ field :reason, -> { String }, optional: true, nullable: false
8
+
9
+ field :reason_code, -> { String }, optional: true, nullable: false, api_name: "reasonCode"
10
+
11
+ field :authority_reference, -> { String }, optional: true, nullable: false, api_name: "authorityReference"
12
+
13
+ field :discovered_on, -> { String }, optional: true, nullable: false, api_name: "discoveredOn"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -32,6 +32,10 @@ module Nordlet
32
32
 
33
33
  field :amendment, -> { Integer }, optional: false, nullable: false
34
34
 
35
+ field :authority_ref, -> { String }, optional: false, nullable: true, api_name: "authorityRef"
36
+
37
+ field :correction_input, -> { Nordlet::Calendar::Types::ListCalendarResponseRowsItemSubmissionsItemCorrectionInput }, optional: false, nullable: true, api_name: "correctionInput"
38
+
35
39
  field :origin, -> { String }, optional: false, nullable: false
36
40
 
37
41
  field :transport_system, -> { String }, optional: false, nullable: true, api_name: "transportSystem"
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Calendar
5
+ module Types
6
+ class ListCalendarResponseRowsItemSubmissionsItemCorrectionInput < Internal::Types::Model
7
+ field :reason, -> { String }, optional: true, nullable: false
8
+
9
+ field :reason_code, -> { String }, optional: true, nullable: false, api_name: "reasonCode"
10
+
11
+ field :authority_reference, -> { String }, optional: true, nullable: false, api_name: "authorityReference"
12
+
13
+ field :discovered_on, -> { String }, optional: true, nullable: false, api_name: "discoveredOn"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -7,6 +7,10 @@ module Nordlet
7
7
  field :key, -> { String }, optional: false, nullable: false
8
8
 
9
9
  field :amend, -> { Internal::Types::Boolean }, optional: true, nullable: false
10
+
11
+ field :correction, -> { Nordlet::Calendar::Types::SubmitCalendarRequestCorrection }, optional: true, nullable: false
12
+
13
+ field :document_keys, -> { Internal::Types::Array[String] }, optional: true, nullable: false, api_name: "documentKeys"
10
14
  end
11
15
  end
12
16
  end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Calendar
5
+ module Types
6
+ class SubmitCalendarRequestCorrection < Internal::Types::Model
7
+ field :reason, -> { String }, optional: true, nullable: false
8
+
9
+ field :reason_code, -> { String }, optional: true, nullable: false, api_name: "reasonCode"
10
+
11
+ field :authority_reference, -> { String }, optional: true, nullable: false, api_name: "authorityReference"
12
+
13
+ field :discovered_on, -> { String }, optional: true, nullable: false, api_name: "discoveredOn"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -32,6 +32,10 @@ module Nordlet
32
32
 
33
33
  field :amendment, -> { Integer }, optional: false, nullable: false
34
34
 
35
+ field :authority_ref, -> { String }, optional: false, nullable: true, api_name: "authorityRef"
36
+
37
+ field :correction_input, -> { Nordlet::Calendar::Types::SubmitCalendarResponseCorrectionInput }, optional: false, nullable: true, api_name: "correctionInput"
38
+
35
39
  field :origin, -> { String }, optional: false, nullable: false
36
40
 
37
41
  field :transport_system, -> { String }, optional: false, nullable: true, api_name: "transportSystem"
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Calendar
5
+ module Types
6
+ class SubmitCalendarResponseCorrectionInput < Internal::Types::Model
7
+ field :reason, -> { String }, optional: true, nullable: false
8
+
9
+ field :reason_code, -> { String }, optional: true, nullable: false, api_name: "reasonCode"
10
+
11
+ field :authority_reference, -> { String }, optional: true, nullable: false, api_name: "authorityReference"
12
+
13
+ field :discovered_on, -> { String }, optional: true, nullable: false, api_name: "discoveredOn"
14
+ end
15
+ end
16
+ end
17
+ end