nordlet 0.6.5 → 0.6.8

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 (153) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nordlet/account/client.rb +130 -7
  3. data/lib/nordlet/account/types/brand_get_account_request.rb +9 -0
  4. data/lib/nordlet/account/types/brand_get_account_response.rb +17 -0
  5. data/lib/nordlet/account/types/brand_update_account_request.rb +17 -0
  6. data/lib/nordlet/account/types/brand_update_account_response.rb +17 -0
  7. data/lib/nordlet/account/types/companies_convert_to_live_account_request.rb +11 -0
  8. data/lib/nordlet/account/types/companies_convert_to_live_account_response.rb +13 -0
  9. data/lib/nordlet/account/types/companies_create_account_response.rb +10 -0
  10. data/lib/nordlet/account/types/companies_create_account_response_vat_period.rb +17 -0
  11. data/lib/nordlet/account/types/me_account_response_billing.rb +2 -0
  12. data/lib/nordlet/account/types/me_account_response_companies_item.rb +10 -0
  13. data/lib/nordlet/account/types/me_account_response_companies_item_vat_period.rb +17 -0
  14. data/lib/nordlet/account/types/me_account_response_user.rb +2 -0
  15. data/lib/nordlet/bank/client.rb +183 -14
  16. data/lib/nordlet/bank/types/reconciliation_get_bank_request.rb +15 -0
  17. data/lib/nordlet/bank/types/reconciliation_get_bank_response.rb +35 -0
  18. data/lib/nordlet/bank/types/reconciliation_get_bank_response_statement_balance_source.rb +14 -0
  19. data/lib/nordlet/bank/types/reconciliation_get_bank_response_unbooked_lines_item.rb +39 -0
  20. data/lib/nordlet/bank/types/reconciliation_get_bank_response_unbooked_lines_item_status.rb +15 -0
  21. data/lib/nordlet/bank/types/transactions_ignore_bank_request.rb +13 -0
  22. data/lib/nordlet/bank/types/transactions_ignore_bank_response.rb +39 -0
  23. data/lib/nordlet/bank/types/transactions_ignore_bank_response_status.rb +15 -0
  24. data/lib/nordlet/bank/types/transactions_import_bank_request.rb +4 -0
  25. data/lib/nordlet/bank/types/transactions_import_bank_response.rb +2 -0
  26. data/lib/nordlet/bank/types/transactions_import_bank_response_duplicates_item.rb +17 -0
  27. data/lib/nordlet/bank/types/transactions_list_bank_response_rows_item.rb +2 -0
  28. data/lib/nordlet/bank/types/transactions_list_bank_response_rows_item_status.rb +1 -0
  29. data/lib/nordlet/bank/types/transactions_match_bank_request.rb +2 -0
  30. data/lib/nordlet/bank/types/transactions_match_bank_request_remainder.rb +13 -0
  31. data/lib/nordlet/bank/types/transactions_match_bank_request_remainder_treatment.rb +15 -0
  32. data/lib/nordlet/bank/types/transactions_match_bank_response.rb +2 -0
  33. data/lib/nordlet/bank/types/transactions_match_bank_response_status.rb +1 -0
  34. data/lib/nordlet/bank/types/transactions_match_many_bank_response.rb +2 -0
  35. data/lib/nordlet/bank/types/transactions_match_many_bank_response_status.rb +1 -0
  36. data/lib/nordlet/bank/types/transactions_post_bank_request.rb +25 -0
  37. data/lib/nordlet/bank/types/transactions_post_bank_response.rb +39 -0
  38. data/lib/nordlet/bank/types/transactions_post_bank_response_status.rb +15 -0
  39. data/lib/nordlet/bank/types/transactions_record_bank_response.rb +2 -0
  40. data/lib/nordlet/bank/types/transactions_record_bank_response_status.rb +1 -0
  41. data/lib/nordlet/bank/types/transactions_unignore_bank_request.rb +11 -0
  42. data/lib/nordlet/bank/types/transactions_unignore_bank_response.rb +39 -0
  43. data/lib/nordlet/bank/types/transactions_unignore_bank_response_status.rb +15 -0
  44. data/lib/nordlet/bank/types/transactions_unmatch_bank_response.rb +2 -0
  45. data/lib/nordlet/bank/types/transactions_unmatch_bank_response_status.rb +1 -0
  46. data/lib/nordlet/billing/client.rb +50 -10
  47. data/lib/nordlet/billing/types/account_get_billing_response.rb +2 -0
  48. data/lib/nordlet/billing/types/account_get_billing_response_month_to_date.rb +0 -2
  49. data/lib/nordlet/billing/types/account_set_account_type_billing_response.rb +2 -0
  50. data/lib/nordlet/billing/types/account_set_account_type_billing_response_month_to_date.rb +0 -2
  51. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response.rb +2 -0
  52. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_month_to_date.rb +0 -2
  53. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response.rb +2 -0
  54. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_month_to_date.rb +0 -2
  55. data/lib/nordlet/billing/types/account_set_plan_billing_response.rb +2 -0
  56. data/lib/nordlet/billing/types/account_set_plan_billing_response_month_to_date.rb +0 -2
  57. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response.rb +2 -0
  58. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_month_to_date.rb +0 -2
  59. data/lib/nordlet/billing/types/flat_rate_create_billing_request.rb +2 -0
  60. data/lib/nordlet/billing/types/free_sandbox_start_billing_request.rb +9 -0
  61. data/lib/nordlet/billing/types/free_sandbox_start_billing_response.rb +55 -0
  62. data/lib/nordlet/billing/types/free_sandbox_start_billing_response_account_type.rb +14 -0
  63. data/lib/nordlet/billing/types/free_sandbox_start_billing_response_auto_top_up.rb +15 -0
  64. data/lib/nordlet/billing/types/free_sandbox_start_billing_response_month_to_date.rb +25 -0
  65. data/lib/nordlet/billing/types/free_sandbox_start_billing_response_plan.rb +16 -0
  66. data/lib/nordlet/billing/types/free_sandbox_start_billing_response_plans_value.rb +19 -0
  67. data/lib/nordlet/billing/types/free_sandbox_start_billing_response_site.rb +14 -0
  68. data/lib/nordlet/billing/types/free_sandbox_start_billing_response_status.rb +15 -0
  69. data/lib/nordlet/billing/types/free_sandbox_start_billing_response_top_up.rb +13 -0
  70. data/lib/nordlet/billing/types/subscription_cancel_billing_response.rb +2 -0
  71. data/lib/nordlet/billing/types/subscription_cancel_billing_response_month_to_date.rb +0 -2
  72. data/lib/nordlet/billing/types/topup_confirm_billing_response.rb +2 -0
  73. data/lib/nordlet/billing/types/topup_confirm_billing_response_month_to_date.rb +0 -2
  74. data/lib/nordlet/billing/types/topup_create_billing_request.rb +2 -0
  75. data/lib/nordlet/calendar/client.rb +3 -1
  76. data/lib/nordlet/capture/client.rb +6 -188
  77. data/lib/nordlet/capture/types/documents_confirm_capture_response_invoice.rb +6 -0
  78. data/lib/nordlet/capture/types/documents_confirm_capture_response_invoice_status.rb +1 -0
  79. data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice.rb +6 -0
  80. data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice_status.rb +1 -0
  81. data/lib/nordlet/cash/client.rb +11 -10
  82. data/lib/nordlet/declarations/client.rb +7 -3
  83. data/lib/nordlet/declarations/types/configs_list_declarations_response_rows_item_fields_item.rb +2 -0
  84. data/lib/nordlet/declarations/types/configs_update_declarations_response_fields_item.rb +2 -0
  85. data/lib/nordlet/hr/client.rb +3 -2
  86. data/lib/nordlet/ledger/client.rb +46 -5
  87. data/lib/nordlet/ledger/types/journal_transactions_get_ledger_response.rb +2 -0
  88. data/lib/nordlet/ledger/types/journal_transactions_reverse_ledger_request.rb +15 -0
  89. data/lib/nordlet/ledger/types/journal_transactions_reverse_ledger_response.rb +27 -0
  90. data/lib/nordlet/ledger/types/journal_transactions_reverse_ledger_response_status.rb +14 -0
  91. data/lib/nordlet/ledger/types/periods_lock_ledger_response.rb +2 -0
  92. data/lib/nordlet/ledger/types/periods_lock_ledger_response_warnings_item.rb +17 -0
  93. data/lib/nordlet/ledger/types/periods_lock_ledger_response_warnings_item_code.rb +21 -0
  94. data/lib/nordlet/partners/client.rb +10 -8
  95. data/lib/nordlet/public/types/invoices_get_public_response.rb +2 -0
  96. data/lib/nordlet/purchases/client.rb +77 -20
  97. data/lib/nordlet/purchases/types/invoices_create_purchases_request.rb +6 -0
  98. data/lib/nordlet/purchases/types/invoices_create_purchases_response.rb +8 -0
  99. data/lib/nordlet/purchases/types/invoices_create_purchases_response_status.rb +1 -0
  100. data/lib/nordlet/purchases/types/invoices_create_purchases_response_warnings_item.rb +13 -0
  101. data/lib/nordlet/purchases/types/invoices_get_purchases_response.rb +6 -0
  102. data/lib/nordlet/purchases/types/invoices_get_purchases_response_status.rb +1 -0
  103. data/lib/nordlet/purchases/types/invoices_list_purchases_response_rows_item.rb +6 -0
  104. data/lib/nordlet/purchases/types/invoices_list_purchases_response_rows_item_status.rb +1 -0
  105. data/lib/nordlet/purchases/types/invoices_register_purchases_response.rb +8 -0
  106. data/lib/nordlet/purchases/types/invoices_register_purchases_response_status.rb +1 -0
  107. data/lib/nordlet/purchases/types/invoices_register_purchases_response_warnings_item.rb +13 -0
  108. data/lib/nordlet/purchases/types/invoices_reverse_purchases_request.rb +15 -0
  109. data/lib/nordlet/purchases/types/invoices_reverse_purchases_response.rb +71 -0
  110. data/lib/nordlet/purchases/types/invoices_reverse_purchases_response_lines_item.rb +53 -0
  111. data/lib/nordlet/purchases/types/invoices_reverse_purchases_response_payment_status.rb +15 -0
  112. data/lib/nordlet/purchases/types/invoices_reverse_purchases_response_status.rb +15 -0
  113. data/lib/nordlet/{capture/types/documents_upload_capture_response_extraction_document_type.rb → purchases/types/invoices_reverse_purchases_response_type.rb} +2 -2
  114. data/lib/nordlet/purchases/types/invoices_update_purchases_request.rb +6 -0
  115. data/lib/nordlet/purchases/types/invoices_update_purchases_response.rb +6 -0
  116. data/lib/nordlet/purchases/types/invoices_update_purchases_response_status.rb +1 -0
  117. data/lib/nordlet/reference/client.rb +8 -2
  118. data/lib/nordlet/reference/types/vat_resolve_reference_request.rb +2 -0
  119. data/lib/nordlet/reference/types/vat_resolve_reference_request_side.rb +14 -0
  120. data/lib/nordlet/reference/types/vat_resolve_reference_response.rb +2 -0
  121. data/lib/nordlet/reports/client.rb +42 -0
  122. data/lib/nordlet/reports/types/period_checklist_reports_request.rb +11 -0
  123. data/lib/nordlet/reports/types/period_checklist_reports_response.rb +17 -0
  124. data/lib/nordlet/reports/types/period_checklist_reports_response_items_item.rb +17 -0
  125. data/lib/nordlet/reports/types/period_checklist_reports_response_items_item_code.rb +21 -0
  126. data/lib/nordlet/sales/client.rb +19 -8
  127. data/lib/nordlet/sales/types/invoices_create_sales_response.rb +2 -0
  128. data/lib/nordlet/sales/types/invoices_create_sales_response_warnings_item.rb +13 -0
  129. data/lib/nordlet/sales/types/invoices_issue_sales_response.rb +2 -0
  130. data/lib/nordlet/sales/types/invoices_issue_sales_response_warnings_item.rb +13 -0
  131. data/lib/nordlet/sales/types/invoices_view_sales_response.rb +2 -0
  132. data/lib/nordlet/version.rb +1 -1
  133. data/lib/nordlet.rb +55 -19
  134. data/reference.md +1672 -1145
  135. metadata +57 -21
  136. data/lib/nordlet/capture/types/documents_upload_capture_request.rb +0 -15
  137. data/lib/nordlet/capture/types/documents_upload_capture_response.rb +0 -43
  138. data/lib/nordlet/capture/types/documents_upload_capture_response_extraction.rb +0 -33
  139. data/lib/nordlet/capture/types/documents_upload_capture_response_extraction_lines_item.rb +0 -25
  140. data/lib/nordlet/capture/types/documents_upload_capture_response_extraction_opposite_lines_item.rb +0 -25
  141. data/lib/nordlet/capture/types/documents_upload_capture_response_extraction_supplier.rb +0 -19
  142. data/lib/nordlet/capture/types/documents_upload_capture_response_status.rb +0 -16
  143. data/lib/nordlet/capture/types/inbound_email_capture_request.rb +0 -27
  144. data/lib/nordlet/capture/types/inbound_email_capture_request_attachments_item.rb +0 -21
  145. data/lib/nordlet/capture/types/inbound_email_capture_request_to.rb +0 -15
  146. data/lib/nordlet/capture/types/inbound_email_capture_request_to_full_item.rb +0 -11
  147. data/lib/nordlet/capture/types/inbound_email_capture_response.rb +0 -15
  148. data/lib/nordlet/capture/types/settings_get_capture_request.rb +0 -9
  149. data/lib/nordlet/capture/types/settings_get_capture_response.rb +0 -17
  150. data/lib/nordlet/capture/types/settings_regenerate_intake_capture_request.rb +0 -9
  151. data/lib/nordlet/capture/types/settings_regenerate_intake_capture_response.rb +0 -17
  152. data/lib/nordlet/capture/types/settings_update_capture_request.rb +0 -13
  153. data/lib/nordlet/capture/types/settings_update_capture_response.rb +0 -17
@@ -12,8 +12,6 @@ module Nordlet
12
12
 
13
13
  field :sale_invoices, -> { Integer }, optional: false, nullable: false, api_name: "saleInvoices"
14
14
 
15
- field :ocr_pages, -> { Integer }, optional: false, nullable: false, api_name: "ocrPages"
16
-
17
15
  field :file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "fileBytes"
18
16
 
19
17
  field :database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "databaseBytes"
@@ -16,6 +16,8 @@ module Nordlet
16
16
 
17
17
  field :trial_ends_at, -> { String }, optional: false, nullable: true, api_name: "trialEndsAt"
18
18
 
19
+ field :free_sandbox_started_at, -> { String }, optional: false, nullable: true, api_name: "freeSandboxStartedAt"
20
+
19
21
  field :first_top_up_at, -> { String }, optional: false, nullable: true, api_name: "firstTopUpAt"
20
22
 
21
23
  field :last_charged_date, -> { String }, optional: false, nullable: true, api_name: "lastChargedDate"
@@ -12,8 +12,6 @@ module Nordlet
12
12
 
13
13
  field :sale_invoices, -> { Integer }, optional: false, nullable: false, api_name: "saleInvoices"
14
14
 
15
- field :ocr_pages, -> { Integer }, optional: false, nullable: false, api_name: "ocrPages"
16
-
17
15
  field :file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "fileBytes"
18
16
 
19
17
  field :database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "databaseBytes"
@@ -16,6 +16,8 @@ module Nordlet
16
16
 
17
17
  field :trial_ends_at, -> { String }, optional: false, nullable: true, api_name: "trialEndsAt"
18
18
 
19
+ field :free_sandbox_started_at, -> { String }, optional: false, nullable: true, api_name: "freeSandboxStartedAt"
20
+
19
21
  field :first_top_up_at, -> { String }, optional: false, nullable: true, api_name: "firstTopUpAt"
20
22
 
21
23
  field :last_charged_date, -> { String }, optional: false, nullable: true, api_name: "lastChargedDate"
@@ -12,8 +12,6 @@ module Nordlet
12
12
 
13
13
  field :sale_invoices, -> { Integer }, optional: false, nullable: false, api_name: "saleInvoices"
14
14
 
15
- field :ocr_pages, -> { Integer }, optional: false, nullable: false, api_name: "ocrPages"
16
-
17
15
  field :file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "fileBytes"
18
16
 
19
17
  field :database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "databaseBytes"
@@ -16,6 +16,8 @@ module Nordlet
16
16
 
17
17
  field :trial_ends_at, -> { String }, optional: false, nullable: true, api_name: "trialEndsAt"
18
18
 
19
+ field :free_sandbox_started_at, -> { String }, optional: false, nullable: true, api_name: "freeSandboxStartedAt"
20
+
19
21
  field :first_top_up_at, -> { String }, optional: false, nullable: true, api_name: "firstTopUpAt"
20
22
 
21
23
  field :last_charged_date, -> { String }, optional: false, nullable: true, api_name: "lastChargedDate"
@@ -12,8 +12,6 @@ module Nordlet
12
12
 
13
13
  field :sale_invoices, -> { Integer }, optional: false, nullable: false, api_name: "saleInvoices"
14
14
 
15
- field :ocr_pages, -> { Integer }, optional: false, nullable: false, api_name: "ocrPages"
16
-
17
15
  field :file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "fileBytes"
18
16
 
19
17
  field :database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "databaseBytes"
@@ -7,6 +7,8 @@ module Nordlet
7
7
  field :locale, -> { Nordlet::Billing::Types::FlatRateCreateBillingRequestLocale }, optional: true, nullable: false
8
8
 
9
9
  field :plan, -> { Nordlet::Billing::Types::FlatRateCreateBillingRequestPlan }, optional: true, nullable: false
10
+
11
+ field :convert_company_id, -> { String }, optional: true, nullable: false, api_name: "convertCompanyId"
10
12
  end
11
13
  end
12
14
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class FreeSandboxStartBillingRequest < Internal::Types::Model; end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class FreeSandboxStartBillingResponse < Internal::Types::Model
7
+ field :site, -> { Nordlet::Billing::Types::FreeSandboxStartBillingResponseSite }, optional: false, nullable: false
8
+
9
+ field :plan, -> { Nordlet::Billing::Types::FreeSandboxStartBillingResponsePlan }, optional: false, nullable: false
10
+
11
+ field :account_type, -> { Nordlet::Billing::Types::FreeSandboxStartBillingResponseAccountType }, optional: false, nullable: false, api_name: "accountType"
12
+
13
+ field :status, -> { Nordlet::Billing::Types::FreeSandboxStartBillingResponseStatus }, optional: false, nullable: false
14
+
15
+ field :balance_cents, -> { Integer }, optional: false, nullable: false, api_name: "balanceCents"
16
+
17
+ field :trial_ends_at, -> { String }, optional: false, nullable: true, api_name: "trialEndsAt"
18
+
19
+ field :free_sandbox_started_at, -> { String }, optional: false, nullable: true, api_name: "freeSandboxStartedAt"
20
+
21
+ field :first_top_up_at, -> { String }, optional: false, nullable: true, api_name: "firstTopUpAt"
22
+
23
+ field :last_charged_date, -> { String }, optional: false, nullable: true, api_name: "lastChargedDate"
24
+
25
+ field :payments_configured, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "paymentsConfigured"
26
+
27
+ field :has_payment_account, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasPaymentAccount"
28
+
29
+ field :has_subscription, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasSubscription"
30
+
31
+ field :subscription_cancel_at, -> { String }, optional: false, nullable: true, api_name: "subscriptionCancelAt"
32
+
33
+ field :payment_failed_at, -> { String }, optional: false, nullable: true, api_name: "paymentFailedAt"
34
+
35
+ field :payment_failed_invoice_url, -> { String }, optional: false, nullable: true, api_name: "paymentFailedInvoiceUrl"
36
+
37
+ field :month_to_date, -> { Nordlet::Billing::Types::FreeSandboxStartBillingResponseMonthToDate }, optional: false, nullable: false, api_name: "monthToDate"
38
+
39
+ field :plans, -> { Internal::Types::Hash[String, Nordlet::Billing::Types::FreeSandboxStartBillingResponsePlansValue] }, optional: false, nullable: false
40
+
41
+ field :api_request_eur, -> { String }, optional: false, nullable: false, api_name: "apiRequestEur"
42
+
43
+ field :top_up, -> { Nordlet::Billing::Types::FreeSandboxStartBillingResponseTopUp }, optional: false, nullable: false, api_name: "topUp"
44
+
45
+ field :auto_top_up, -> { Nordlet::Billing::Types::FreeSandboxStartBillingResponseAutoTopUp }, optional: false, nullable: false, api_name: "autoTopUp"
46
+
47
+ field :overdraft_cap_cents, -> { Integer }, optional: false, nullable: false, api_name: "overdraftCapCents"
48
+
49
+ field :overdraft_cap_max_cents, -> { Integer }, optional: false, nullable: false, api_name: "overdraftCapMaxCents"
50
+
51
+ field :trial_days, -> { Integer }, optional: false, nullable: false, api_name: "trialDays"
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ module FreeSandboxStartBillingResponseAccountType
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ FLAT_RATE = "flat_rate"
10
+ PER_REQUEST = "per_request"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class FreeSandboxStartBillingResponseAutoTopUp < Internal::Types::Model
7
+ field :enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
8
+
9
+ field :amount_cents, -> { Integer }, optional: false, nullable: false, api_name: "amountCents"
10
+
11
+ field :pending, -> { Internal::Types::Boolean }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class FreeSandboxStartBillingResponseMonthToDate < Internal::Types::Model
7
+ field :from, -> { String }, optional: false, nullable: false
8
+
9
+ field :to, -> { String }, optional: false, nullable: false
10
+
11
+ field :api_requests, -> { Integer }, optional: false, nullable: false, api_name: "apiRequests"
12
+
13
+ field :sale_invoices, -> { Integer }, optional: false, nullable: false, api_name: "saleInvoices"
14
+
15
+ field :file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "fileBytes"
16
+
17
+ field :database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "databaseBytes"
18
+
19
+ field :archived_companies, -> { Integer }, optional: false, nullable: false, api_name: "archivedCompanies"
20
+
21
+ field :estimated_today_cents, -> { Integer }, optional: false, nullable: false, api_name: "estimatedTodayCents"
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ module FreeSandboxStartBillingResponsePlan
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ STARTER = "starter"
10
+ BUSINESS = "business"
11
+ SCALE = "scale"
12
+ INVOICING = "invoicing"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class FreeSandboxStartBillingResponsePlansValue < Internal::Types::Model
7
+ field :monthly_fee_eur, -> { String }, optional: false, nullable: false, api_name: "monthlyFeeEur"
8
+
9
+ field :included_invoices, -> { Integer }, optional: false, nullable: false, api_name: "includedInvoices"
10
+
11
+ field :invoice_overage_eur, -> { String }, optional: false, nullable: false, api_name: "invoiceOverageEur"
12
+
13
+ field :included_database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "includedDatabaseBytes"
14
+
15
+ field :included_file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "includedFileBytes"
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ module FreeSandboxStartBillingResponseSite
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ APP = "app"
10
+ INVOICE = "invoice"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ module FreeSandboxStartBillingResponseStatus
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ TRIAL = "trial"
10
+ ACTIVE = "active"
11
+ SUSPENDED = "suspended"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class FreeSandboxStartBillingResponseTopUp < Internal::Types::Model
7
+ field :min_cents, -> { Integer }, optional: false, nullable: false, api_name: "minCents"
8
+
9
+ field :max_cents, -> { Integer }, optional: false, nullable: false, api_name: "maxCents"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -16,6 +16,8 @@ module Nordlet
16
16
 
17
17
  field :trial_ends_at, -> { String }, optional: false, nullable: true, api_name: "trialEndsAt"
18
18
 
19
+ field :free_sandbox_started_at, -> { String }, optional: false, nullable: true, api_name: "freeSandboxStartedAt"
20
+
19
21
  field :first_top_up_at, -> { String }, optional: false, nullable: true, api_name: "firstTopUpAt"
20
22
 
21
23
  field :last_charged_date, -> { String }, optional: false, nullable: true, api_name: "lastChargedDate"
@@ -12,8 +12,6 @@ module Nordlet
12
12
 
13
13
  field :sale_invoices, -> { Integer }, optional: false, nullable: false, api_name: "saleInvoices"
14
14
 
15
- field :ocr_pages, -> { Integer }, optional: false, nullable: false, api_name: "ocrPages"
16
-
17
15
  field :file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "fileBytes"
18
16
 
19
17
  field :database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "databaseBytes"
@@ -16,6 +16,8 @@ module Nordlet
16
16
 
17
17
  field :trial_ends_at, -> { String }, optional: false, nullable: true, api_name: "trialEndsAt"
18
18
 
19
+ field :free_sandbox_started_at, -> { String }, optional: false, nullable: true, api_name: "freeSandboxStartedAt"
20
+
19
21
  field :first_top_up_at, -> { String }, optional: false, nullable: true, api_name: "firstTopUpAt"
20
22
 
21
23
  field :last_charged_date, -> { String }, optional: false, nullable: true, api_name: "lastChargedDate"
@@ -12,8 +12,6 @@ module Nordlet
12
12
 
13
13
  field :sale_invoices, -> { Integer }, optional: false, nullable: false, api_name: "saleInvoices"
14
14
 
15
- field :ocr_pages, -> { Integer }, optional: false, nullable: false, api_name: "ocrPages"
16
-
17
15
  field :file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "fileBytes"
18
16
 
19
17
  field :database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "databaseBytes"
@@ -9,6 +9,8 @@ module Nordlet
9
9
  field :locale, -> { Nordlet::Billing::Types::TopupCreateBillingRequestLocale }, optional: true, nullable: false
10
10
 
11
11
  field :return_to, -> { Nordlet::Billing::Types::TopupCreateBillingRequestReturnTo }, optional: true, nullable: false, api_name: "returnTo"
12
+
13
+ field :convert_company_id, -> { String }, optional: true, nullable: false, api_name: "convertCompanyId"
12
14
  end
13
15
  end
14
16
  end
@@ -119,7 +119,9 @@ module Nordlet
119
119
  end
120
120
 
121
121
  # Builds the file of a deadline whose format Nordlet produces but whose administration takes it only through the
122
- # company's own account or program. Nothing is sent and no filing is recorded.
122
+ # company's own account or program. Nothing is sent and no filing is recorded. `key` is `<ruleKey>:<period>` as
123
+ # `calendar/list` returns it. Answers 404 for an unknown rule or an invalid period, and 422 with the reason when
124
+ # Nordlet builds no single file for the deadline.
123
125
  #
124
126
  # @param request_options [Hash]
125
127
  # @param params [Nordlet::Calendar::Types::DownloadCalendarRequest]
@@ -10,191 +10,9 @@ module Nordlet
10
10
  @client = client
11
11
  end
12
12
 
13
- # Return the company's document capture settings: whether intake by e-mail is enabled, whether e-mailed documents
14
- # are read on arrival, the company's intake e-mail address and whether a reading provider is configured. The
15
- # intake token behind the address is created on the first call.
16
- #
17
- # @param request_options [Hash]
18
- # @param params [Nordlet::Capture::Types::SettingsGetCaptureRequest]
19
- # @option request_options [String] :base_url
20
- # @option request_options [Hash{String => Object}] :additional_headers
21
- # @option request_options [Hash{String => Object}] :additional_query_parameters
22
- # @option request_options [Hash{String => Object}] :additional_body_parameters
23
- # @option request_options [Integer] :timeout_in_seconds
24
- #
25
- # @return [Nordlet::Capture::Types::SettingsGetCaptureResponse]
26
- def settings_get(request_options: {}, **params)
27
- params = Nordlet::Internal::Types::Utils.normalize_keys(params)
28
- request = Nordlet::Internal::JSON::Request.new(
29
- base_url: request_options[:base_url],
30
- method: "POST",
31
- path: "v1/capture/settings/get",
32
- body: Nordlet::Capture::Types::SettingsGetCaptureRequest.new(params).to_h,
33
- request_options: request_options
34
- )
35
- begin
36
- response = @client.send(request)
37
- rescue Net::HTTPRequestTimeout
38
- raise Nordlet::Errors::TimeoutError
39
- end
40
- code = response.code.to_i
41
- if code.between?(200, 299)
42
- Nordlet::Capture::Types::SettingsGetCaptureResponse.load(response.body)
43
- else
44
- error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
45
- raise error_class.new(response.body, code: code)
46
- end
47
- end
48
-
49
- # Switch `intakeEnabled` (documents sent to the intake address are accepted) and `captureAutoExtract` (they are
50
- # read on arrival) on or off; at least one field is required.
51
- #
52
- # @param request_options [Hash]
53
- # @param params [Nordlet::Capture::Types::SettingsUpdateCaptureRequest]
54
- # @option request_options [String] :base_url
55
- # @option request_options [Hash{String => Object}] :additional_headers
56
- # @option request_options [Hash{String => Object}] :additional_query_parameters
57
- # @option request_options [Hash{String => Object}] :additional_body_parameters
58
- # @option request_options [Integer] :timeout_in_seconds
59
- #
60
- # @return [Nordlet::Capture::Types::SettingsUpdateCaptureResponse]
61
- def settings_update(request_options: {}, **params)
62
- params = Nordlet::Internal::Types::Utils.normalize_keys(params)
63
- request = Nordlet::Internal::JSON::Request.new(
64
- base_url: request_options[:base_url],
65
- method: "POST",
66
- path: "v1/capture/settings/update",
67
- body: Nordlet::Capture::Types::SettingsUpdateCaptureRequest.new(params).to_h,
68
- request_options: request_options
69
- )
70
- begin
71
- response = @client.send(request)
72
- rescue Net::HTTPRequestTimeout
73
- raise Nordlet::Errors::TimeoutError
74
- end
75
- code = response.code.to_i
76
- if code.between?(200, 299)
77
- Nordlet::Capture::Types::SettingsUpdateCaptureResponse.load(response.body)
78
- else
79
- error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
80
- raise error_class.new(response.body, code: code)
81
- end
82
- end
83
-
84
- # Replace the company's intake token, so the previous intake e-mail address stops working and the settings come
85
- # back with the new one.
86
- #
87
- # @param request_options [Hash]
88
- # @param params [Nordlet::Capture::Types::SettingsRegenerateIntakeCaptureRequest]
89
- # @option request_options [String] :base_url
90
- # @option request_options [Hash{String => Object}] :additional_headers
91
- # @option request_options [Hash{String => Object}] :additional_query_parameters
92
- # @option request_options [Hash{String => Object}] :additional_body_parameters
93
- # @option request_options [Integer] :timeout_in_seconds
94
- #
95
- # @return [Nordlet::Capture::Types::SettingsRegenerateIntakeCaptureResponse]
96
- def settings_regenerate_intake(request_options: {}, **params)
97
- params = Nordlet::Internal::Types::Utils.normalize_keys(params)
98
- request = Nordlet::Internal::JSON::Request.new(
99
- base_url: request_options[:base_url],
100
- method: "POST",
101
- path: "v1/capture/settings/regenerate-intake",
102
- body: Nordlet::Capture::Types::SettingsRegenerateIntakeCaptureRequest.new(params).to_h,
103
- request_options: request_options
104
- )
105
- begin
106
- response = @client.send(request)
107
- rescue Net::HTTPRequestTimeout
108
- raise Nordlet::Errors::TimeoutError
109
- end
110
- code = response.code.to_i
111
- if code.between?(200, 299)
112
- Nordlet::Capture::Types::SettingsRegenerateIntakeCaptureResponse.load(response.body)
113
- else
114
- error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
115
- raise error_class.new(response.body, code: code)
116
- end
117
- end
118
-
119
- # Endpoint for the inbound e-mail provider (Postmark field names or the generic `to`, `from`, `subject` and
120
- # `attachments` form). It needs the `x-inbound-secret` header and finds the company by the `intake+<token>@`
121
- # recipient address (404 when unknown, 403 when intake is disabled). Every PDF, image, Word or PowerPoint
122
- # attachment up to 10 MB becomes a `pending` capture (`accepted`), anything else is `skipped`; when the company
123
- # has automatic reading on, is not on trial and a reading provider is configured, each capture is read at once.
124
- #
125
- # @param request_options [Hash]
126
- # @param params [Nordlet::Capture::Types::InboundEmailCaptureRequest]
127
- # @option request_options [String] :base_url
128
- # @option request_options [Hash{String => Object}] :additional_headers
129
- # @option request_options [Hash{String => Object}] :additional_query_parameters
130
- # @option request_options [Hash{String => Object}] :additional_body_parameters
131
- # @option request_options [Integer] :timeout_in_seconds
132
- #
133
- # @return [Nordlet::Capture::Types::InboundEmailCaptureResponse]
134
- def inbound_email(request_options: {}, **params)
135
- params = Nordlet::Internal::Types::Utils.normalize_keys(params)
136
- request = Nordlet::Internal::JSON::Request.new(
137
- base_url: request_options[:base_url],
138
- method: "POST",
139
- path: "v1/capture/inbound-email",
140
- body: Nordlet::Capture::Types::InboundEmailCaptureRequest.new(params).to_h,
141
- request_options: request_options
142
- )
143
- begin
144
- response = @client.send(request)
145
- rescue Net::HTTPRequestTimeout
146
- raise Nordlet::Errors::TimeoutError
147
- end
148
- code = response.code.to_i
149
- if code.between?(200, 299)
150
- Nordlet::Capture::Types::InboundEmailCaptureResponse.load(response.body)
151
- else
152
- error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
153
- raise error_class.new(response.body, code: code)
154
- end
155
- end
156
-
157
- # Upload a supplier document (PDF, image, Word or PowerPoint, up to 10 MB; 422 for any other type) as a capture
158
- # and read it at once. The result holds the extracted supplier, dates, totals and lines, the partner matched by
159
- # VAT code, then partner code, then name, the raw text, and `status` `extracted` or `failed` with `error`. Needs a
160
- # configured reading provider, is refused with 402 for a company on trial until its first top-up, and counts every
161
- # page read as `ocr_page` usage. The draft is reviewed and saved with `capture/documents/confirm`.
162
- #
163
- # @param request_options [Hash]
164
- # @param params [Nordlet::Capture::Types::DocumentsUploadCaptureRequest]
165
- # @option request_options [String] :base_url
166
- # @option request_options [Hash{String => Object}] :additional_headers
167
- # @option request_options [Hash{String => Object}] :additional_query_parameters
168
- # @option request_options [Hash{String => Object}] :additional_body_parameters
169
- # @option request_options [Integer] :timeout_in_seconds
170
- #
171
- # @return [Nordlet::Capture::Types::DocumentsUploadCaptureResponse]
172
- def documents_upload(request_options: {}, **params)
173
- params = Nordlet::Internal::Types::Utils.normalize_keys(params)
174
- request = Nordlet::Internal::JSON::Request.new(
175
- base_url: request_options[:base_url],
176
- method: "POST",
177
- path: "v1/capture/documents/upload",
178
- body: Nordlet::Capture::Types::DocumentsUploadCaptureRequest.new(params).to_h,
179
- request_options: request_options
180
- )
181
- begin
182
- response = @client.send(request)
183
- rescue Net::HTTPRequestTimeout
184
- raise Nordlet::Errors::TimeoutError
185
- end
186
- code = response.code.to_i
187
- if code.between?(200, 299)
188
- Nordlet::Capture::Types::DocumentsUploadCaptureResponse.load(response.body)
189
- else
190
- error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
191
- raise error_class.new(response.body, code: code)
192
- end
193
- end
194
-
195
- # Read a stored capture again and replace its draft (supplier, totals, lines, matched partner). A capture received
196
- # over Peppol is parsed from its document again without a reading provider; any other needs the provider and, for
197
- # a company on trial, the first top-up (402). Refused with 409 once the capture is linked to a purchase invoice.
13
+ # Parse a capture received over Peppol from its stored document again and replace its draft (supplier, totals,
14
+ # lines, matched partner). Refused with 422 for a capture that was not received over Peppol and with 409 once the
15
+ # capture is linked to a purchase invoice.
198
16
  #
199
17
  # @param request_options [Hash]
200
18
  # @param params [Nordlet::Capture::Types::DocumentsExtractCaptureRequest]
@@ -228,7 +46,7 @@ module Nordlet
228
46
  end
229
47
  end
230
48
 
231
- # Return one capture with its extraction and raw text.
49
+ # Return one document received over Peppol (a capture) with its draft: supplier, dates, totals and lines.
232
50
  #
233
51
  # @param request_options [Hash]
234
52
  # @param params [Nordlet::Capture::Types::DocumentsGetCaptureRequest]
@@ -262,8 +80,8 @@ module Nordlet
262
80
  end
263
81
  end
264
82
 
265
- # List captures without raw text. Filterable by `status`, `matchedPartnerId` and `purchaseInvoiceId`; sortable by
266
- # `createdAt` and `updatedAt`.
83
+ # List the documents received over Peppol (captures) with their drafts. Filterable by `status`, `matchedPartnerId`
84
+ # and `purchaseInvoiceId`; sortable by `createdAt` and `updatedAt`.
267
85
  #
268
86
  # @param request_options [Hash]
269
87
  # @param params [Nordlet::Capture::Types::DocumentsListCaptureRequest]
@@ -34,6 +34,12 @@ module Nordlet
34
34
 
35
35
  field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
36
36
 
37
+ field :reversed_at, -> { String }, optional: false, nullable: true, api_name: "reversedAt"
38
+
39
+ field :reversal_journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "reversalJournalTransactionId"
40
+
41
+ field :reversal_reason, -> { String }, optional: false, nullable: true, api_name: "reversalReason"
42
+
37
43
  field :credited_invoice_id, -> { String }, optional: false, nullable: true, api_name: "creditedInvoiceId"
38
44
 
39
45
  field :purchase_order_id, -> { String }, optional: false, nullable: true, api_name: "purchaseOrderId"
@@ -8,6 +8,7 @@ module Nordlet
8
8
 
9
9
  DRAFT = "draft"
10
10
  REGISTERED = "registered"
11
+ REVERSED = "reversed"
11
12
  end
12
13
  end
13
14
  end
@@ -34,6 +34,12 @@ module Nordlet
34
34
 
35
35
  field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
36
36
 
37
+ field :reversed_at, -> { String }, optional: false, nullable: true, api_name: "reversedAt"
38
+
39
+ field :reversal_journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "reversalJournalTransactionId"
40
+
41
+ field :reversal_reason, -> { String }, optional: false, nullable: true, api_name: "reversalReason"
42
+
37
43
  field :credited_invoice_id, -> { String }, optional: false, nullable: true, api_name: "creditedInvoiceId"
38
44
 
39
45
  field :purchase_order_id, -> { String }, optional: false, nullable: true, api_name: "purchaseOrderId"
@@ -8,6 +8,7 @@ module Nordlet
8
8
 
9
9
  DRAFT = "draft"
10
10
  REGISTERED = "registered"
11
+ REVERSED = "reversed"
11
12
  end
12
13
  end
13
14
  end