nordlet 0.3.11 → 0.5.0

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 (141) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nordlet/account/types/me_account_response_billing.rb +8 -0
  3. data/lib/nordlet/account/types/me_account_response_billing_account_type.rb +14 -0
  4. data/lib/nordlet/bank/client.rb +96 -0
  5. data/lib/nordlet/bank/types/accounts_create_bank_request_type.rb +1 -0
  6. data/lib/nordlet/bank/types/accounts_create_bank_response_type.rb +1 -0
  7. data/lib/nordlet/bank/types/accounts_list_bank_response_rows_item_type.rb +1 -0
  8. data/lib/nordlet/bank/types/accounts_update_bank_request_type.rb +1 -0
  9. data/lib/nordlet/bank/types/accounts_update_bank_response_type.rb +1 -0
  10. data/lib/nordlet/bank/types/securities_get_bank_request.rb +11 -0
  11. data/lib/nordlet/bank/types/securities_get_bank_response.rb +35 -0
  12. data/lib/nordlet/bank/types/securities_get_bank_response_operations_item.rb +51 -0
  13. data/lib/nordlet/bank/types/securities_get_bank_response_operations_item_status.rb +14 -0
  14. data/lib/nordlet/bank/types/securities_import_bank_request.rb +15 -0
  15. data/lib/nordlet/bank/types/securities_import_bank_response.rb +33 -0
  16. data/lib/nordlet/bank/types/securities_list_bank_request.rb +19 -0
  17. data/lib/nordlet/bank/types/securities_list_bank_request_filter_item.rb +15 -0
  18. data/lib/nordlet/bank/types/securities_list_bank_request_filter_item_op.rb +18 -0
  19. data/lib/nordlet/bank/types/securities_list_bank_request_filter_item_value.rb +19 -0
  20. data/lib/nordlet/bank/types/securities_list_bank_request_filter_item_value_three_item.rb +15 -0
  21. data/lib/nordlet/bank/types/securities_list_bank_request_sort_item.rb +13 -0
  22. data/lib/nordlet/bank/types/securities_list_bank_request_sort_item_dir.rb +14 -0
  23. data/lib/nordlet/bank/types/securities_list_bank_response.rb +21 -0
  24. data/lib/nordlet/bank/types/securities_list_bank_response_rows_item.rb +33 -0
  25. data/lib/nordlet/billing/client.rb +192 -0
  26. data/lib/nordlet/billing/types/account_get_billing_response.rb +10 -0
  27. data/lib/nordlet/billing/types/account_get_billing_response_account_type.rb +14 -0
  28. data/lib/nordlet/billing/types/account_get_billing_response_auto_top_up.rb +15 -0
  29. data/lib/nordlet/billing/types/account_get_billing_response_month_to_date.rb +2 -0
  30. data/lib/nordlet/billing/types/account_get_billing_response_plans_value.rb +2 -2
  31. data/lib/nordlet/billing/types/account_set_account_type_billing_request.rb +11 -0
  32. data/lib/nordlet/billing/types/account_set_account_type_billing_request_account_type.rb +14 -0
  33. data/lib/nordlet/billing/types/account_set_account_type_billing_response.rb +49 -0
  34. data/lib/nordlet/billing/types/account_set_account_type_billing_response_account_type.rb +14 -0
  35. data/lib/nordlet/billing/types/account_set_account_type_billing_response_auto_top_up.rb +15 -0
  36. data/lib/nordlet/billing/types/account_set_account_type_billing_response_month_to_date.rb +27 -0
  37. data/lib/nordlet/billing/types/account_set_account_type_billing_response_plan.rb +15 -0
  38. data/lib/nordlet/billing/types/account_set_account_type_billing_response_plans_value.rb +19 -0
  39. data/lib/nordlet/billing/types/account_set_account_type_billing_response_status.rb +15 -0
  40. data/lib/nordlet/billing/types/account_set_account_type_billing_response_top_up.rb +13 -0
  41. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_request.rb +13 -0
  42. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response.rb +49 -0
  43. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_account_type.rb +14 -0
  44. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_auto_top_up.rb +15 -0
  45. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_month_to_date.rb +27 -0
  46. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_plan.rb +15 -0
  47. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_plans_value.rb +19 -0
  48. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_status.rb +15 -0
  49. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_top_up.rb +13 -0
  50. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_request.rb +11 -0
  51. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response.rb +49 -0
  52. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_account_type.rb +14 -0
  53. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_auto_top_up.rb +15 -0
  54. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_month_to_date.rb +27 -0
  55. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_plan.rb +15 -0
  56. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_plans_value.rb +19 -0
  57. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_status.rb +15 -0
  58. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_top_up.rb +13 -0
  59. data/lib/nordlet/billing/types/account_set_plan_billing_response.rb +10 -0
  60. data/lib/nordlet/billing/types/account_set_plan_billing_response_account_type.rb +14 -0
  61. data/lib/nordlet/billing/types/account_set_plan_billing_response_auto_top_up.rb +15 -0
  62. data/lib/nordlet/billing/types/account_set_plan_billing_response_month_to_date.rb +2 -0
  63. data/lib/nordlet/billing/types/account_set_plan_billing_response_plans_value.rb +2 -2
  64. data/lib/nordlet/billing/types/flat_rate_confirm_billing_request.rb +11 -0
  65. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response.rb +49 -0
  66. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_account_type.rb +14 -0
  67. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_auto_top_up.rb +15 -0
  68. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_month_to_date.rb +27 -0
  69. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_plan.rb +15 -0
  70. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_plans_value.rb +19 -0
  71. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_status.rb +15 -0
  72. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_top_up.rb +13 -0
  73. data/lib/nordlet/billing/types/flat_rate_create_billing_request.rb +13 -0
  74. data/lib/nordlet/billing/types/flat_rate_create_billing_request_locale.rb +15 -0
  75. data/lib/nordlet/billing/types/flat_rate_create_billing_request_plan.rb +15 -0
  76. data/lib/nordlet/billing/types/flat_rate_create_billing_response.rb +13 -0
  77. data/lib/nordlet/billing/types/topup_confirm_billing_request.rb +11 -0
  78. data/lib/nordlet/billing/types/topup_confirm_billing_response.rb +49 -0
  79. data/lib/nordlet/billing/types/topup_confirm_billing_response_account_type.rb +14 -0
  80. data/lib/nordlet/billing/types/topup_confirm_billing_response_auto_top_up.rb +15 -0
  81. data/lib/nordlet/billing/types/topup_confirm_billing_response_month_to_date.rb +27 -0
  82. data/lib/nordlet/billing/types/topup_confirm_billing_response_plan.rb +15 -0
  83. data/lib/nordlet/billing/types/topup_confirm_billing_response_plans_value.rb +19 -0
  84. data/lib/nordlet/billing/types/topup_confirm_billing_response_status.rb +15 -0
  85. data/lib/nordlet/billing/types/topup_confirm_billing_response_top_up.rb +13 -0
  86. data/lib/nordlet/billing/types/topup_create_billing_request.rb +2 -0
  87. data/lib/nordlet/billing/types/topup_create_billing_request_return_to.rb +14 -0
  88. data/lib/nordlet/billing/types/usage_list_billing_response_rows_item_metric.rb +1 -0
  89. data/lib/nordlet/declarations/client.rb +1 -1
  90. data/lib/nordlet/ledger/client.rb +1 -1
  91. data/lib/nordlet/ledger/types/posting_rules_update_ledger_request_rules_item_key.rb +8 -0
  92. data/lib/nordlet/partners/types/create_partners_request.rb +0 -4
  93. data/lib/nordlet/partners/types/create_partners_response.rb +0 -4
  94. data/lib/nordlet/partners/types/find_or_create_partners_request.rb +0 -4
  95. data/lib/nordlet/partners/types/find_or_create_partners_response_partner.rb +0 -4
  96. data/lib/nordlet/partners/types/get_partners_response.rb +0 -4
  97. data/lib/nordlet/partners/types/list_partners_response_rows_item.rb +0 -4
  98. data/lib/nordlet/partners/types/update_partners_request.rb +0 -4
  99. data/lib/nordlet/partners/types/update_partners_response.rb +0 -4
  100. data/lib/nordlet/sales/client.rb +161 -1
  101. data/lib/nordlet/sales/types/invoice_templates_create_sales_request.rb +57 -0
  102. data/lib/nordlet/sales/types/invoice_templates_create_sales_request_document_type.rb +14 -0
  103. data/lib/nordlet/sales/types/invoice_templates_create_sales_request_lines_item.rb +25 -0
  104. data/lib/nordlet/sales/types/invoice_templates_create_sales_request_supply_type.rb +15 -0
  105. data/lib/nordlet/sales/types/invoice_templates_create_sales_request_vat_scheme.rb +21 -0
  106. data/lib/nordlet/sales/types/invoice_templates_create_sales_response.rb +63 -0
  107. data/lib/nordlet/sales/types/invoice_templates_create_sales_response_document_type.rb +14 -0
  108. data/lib/nordlet/sales/types/invoice_templates_create_sales_response_lines_item.rb +25 -0
  109. data/lib/nordlet/sales/types/invoice_templates_create_sales_response_supply_type.rb +15 -0
  110. data/lib/nordlet/sales/types/invoice_templates_delete_sales_request.rb +11 -0
  111. data/lib/nordlet/sales/types/invoice_templates_delete_sales_response.rb +11 -0
  112. data/lib/nordlet/sales/types/invoice_templates_get_sales_request.rb +11 -0
  113. data/lib/nordlet/sales/types/invoice_templates_get_sales_response.rb +63 -0
  114. data/lib/nordlet/sales/types/invoice_templates_get_sales_response_document_type.rb +14 -0
  115. data/lib/nordlet/sales/types/invoice_templates_get_sales_response_lines_item.rb +25 -0
  116. data/lib/nordlet/sales/types/invoice_templates_get_sales_response_supply_type.rb +15 -0
  117. data/lib/nordlet/sales/types/invoice_templates_list_sales_request.rb +19 -0
  118. data/lib/nordlet/sales/types/invoice_templates_list_sales_request_filter_item.rb +15 -0
  119. data/lib/nordlet/sales/types/invoice_templates_list_sales_request_filter_item_op.rb +18 -0
  120. data/lib/nordlet/sales/types/invoice_templates_list_sales_request_filter_item_value.rb +19 -0
  121. data/lib/nordlet/sales/types/invoice_templates_list_sales_request_filter_item_value_three_item.rb +15 -0
  122. data/lib/nordlet/sales/types/invoice_templates_list_sales_request_sort_item.rb +13 -0
  123. data/lib/nordlet/sales/types/invoice_templates_list_sales_request_sort_item_dir.rb +14 -0
  124. data/lib/nordlet/sales/types/invoice_templates_list_sales_response.rb +21 -0
  125. data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item.rb +63 -0
  126. data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item_document_type.rb +14 -0
  127. data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item_lines_item.rb +25 -0
  128. data/lib/nordlet/sales/types/invoice_templates_list_sales_response_rows_item_supply_type.rb +15 -0
  129. data/lib/nordlet/sales/types/invoice_templates_update_sales_request.rb +59 -0
  130. data/lib/nordlet/sales/types/invoice_templates_update_sales_request_document_type.rb +14 -0
  131. data/lib/nordlet/sales/types/invoice_templates_update_sales_request_lines_item.rb +25 -0
  132. data/lib/nordlet/sales/types/invoice_templates_update_sales_request_supply_type.rb +15 -0
  133. data/lib/nordlet/sales/types/invoice_templates_update_sales_request_vat_scheme.rb +21 -0
  134. data/lib/nordlet/sales/types/invoice_templates_update_sales_response.rb +63 -0
  135. data/lib/nordlet/sales/types/invoice_templates_update_sales_response_document_type.rb +14 -0
  136. data/lib/nordlet/sales/types/invoice_templates_update_sales_response_lines_item.rb +25 -0
  137. data/lib/nordlet/sales/types/invoice_templates_update_sales_response_supply_type.rb +15 -0
  138. data/lib/nordlet/version.rb +1 -1
  139. data/lib/nordlet.rb +108 -0
  140. data/reference.md +1731 -621
  141. metadata +110 -2
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class TopupConfirmBillingResponseMonthToDate < 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 :ocr_pages, -> { Integer }, optional: false, nullable: false, api_name: "ocrPages"
16
+
17
+ field :file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "fileBytes"
18
+
19
+ field :database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "databaseBytes"
20
+
21
+ field :archived_companies, -> { Integer }, optional: false, nullable: false, api_name: "archivedCompanies"
22
+
23
+ field :estimated_today_cents, -> { Integer }, optional: false, nullable: false, api_name: "estimatedTodayCents"
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ module TopupConfirmBillingResponsePlan
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ STARTER = "starter"
10
+ BUSINESS = "business"
11
+ SCALE = "scale"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class TopupConfirmBillingResponsePlansValue < 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,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ module TopupConfirmBillingResponseStatus
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 TopupConfirmBillingResponseTopUp < 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
@@ -7,6 +7,8 @@ module Nordlet
7
7
  field :amount_cents, -> { Integer }, optional: false, nullable: false, api_name: "amountCents"
8
8
 
9
9
  field :locale, -> { Nordlet::Billing::Types::TopupCreateBillingRequestLocale }, optional: true, nullable: false
10
+
11
+ field :return_to, -> { Nordlet::Billing::Types::TopupCreateBillingRequestReturnTo }, optional: true, nullable: false, api_name: "returnTo"
10
12
  end
11
13
  end
12
14
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ module TopupCreateBillingRequestReturnTo
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ CREDITS = "credits"
10
+ ONBOARDING = "onboarding"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -10,6 +10,7 @@ module Nordlet
10
10
  OCR_PAGE = "ocr_page"
11
11
  FILE_STORAGE_BYTES = "file_storage_bytes"
12
12
  DATABASE_BYTES = "database_bytes"
13
+ SALE_INVOICE = "sale_invoice"
13
14
  end
14
15
  end
15
16
  end
@@ -2092,7 +2092,7 @@ module Nordlet
2092
2092
  end
2093
2093
 
2094
2094
  # Build the working paper for the Form B1 annual return of a financial year - company details, registered office,
2095
- # directors and secretary from Settings → Officers, the members from Settings → Shareholders, the issued share
2095
+ # directors and secretary from Account → Officers, the members from Account → Shareholders, the issued share
2096
2096
  # capital and the figures of the financial statements - in the order the CORE screens ask for them. The CRO
2097
2097
  # publishes no file format for the B1, so it is keyed into CORE.
2098
2098
  #
@@ -785,7 +785,7 @@ module Nordlet
785
785
 
786
786
  # The rows or codes of each return or registry deposit of the company country that are filled from account
787
787
  # balances. Accounts fall into a row by the layout defaults for the standard chart of accounts unless mapped under
788
- # Settings → Statement rows.
788
+ # Account → Statement rows.
789
789
  #
790
790
  # @param request_options [Hash]
791
791
  # @param params [Nordlet::Ledger::Types::StatementRowsSchemesLedgerRequest]
@@ -33,6 +33,14 @@ module Nordlet
33
33
  ASSETS_DISPOSAL_LOSS = "assets.disposalLoss"
34
34
  ASSETS_DISPOSAL_PROCEEDS = "assets.disposalProceeds"
35
35
  CASH_ADVANCES = "cash.advances"
36
+ SECURITIES_INVESTMENTS = "securities.investments"
37
+ SECURITIES_GAIN = "securities.gain"
38
+ SECURITIES_LOSS = "securities.loss"
39
+ SECURITIES_DIVIDEND_INCOME = "securities.dividendIncome"
40
+ SECURITIES_WITHHOLDING_TAX = "securities.withholdingTax"
41
+ SECURITIES_INTEREST_INCOME = "securities.interestIncome"
42
+ SECURITIES_INTEREST_EXPENSE = "securities.interestExpense"
43
+ SECURITIES_FEES = "securities.fees"
36
44
  CLOSING_RETAINED_EARNINGS = "closing.retainedEarnings"
37
45
  end
38
46
  end
@@ -52,10 +52,6 @@ module Nordlet
52
52
 
53
53
  field :eori_code, -> { String }, optional: true, nullable: false, api_name: "eoriCode"
54
54
 
55
- field :other_code, -> { String }, optional: true, nullable: false, api_name: "otherCode"
56
-
57
- field :foreign_tax_number, -> { String }, optional: true, nullable: false, api_name: "foreignTaxNumber"
58
-
59
55
  field :auto_debt_reminder, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "autoDebtReminder"
60
56
 
61
57
  field :late_interest_percent, -> { String }, optional: true, nullable: false, api_name: "lateInterestPercent"
@@ -58,10 +58,6 @@ module Nordlet
58
58
 
59
59
  field :eori_code, -> { String }, optional: false, nullable: true, api_name: "eoriCode"
60
60
 
61
- field :other_code, -> { String }, optional: false, nullable: true, api_name: "otherCode"
62
-
63
- field :foreign_tax_number, -> { String }, optional: false, nullable: true, api_name: "foreignTaxNumber"
64
-
65
61
  field :auto_debt_reminder, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "autoDebtReminder"
66
62
 
67
63
  field :late_interest_percent, -> { String }, optional: false, nullable: true, api_name: "lateInterestPercent"
@@ -52,10 +52,6 @@ module Nordlet
52
52
 
53
53
  field :eori_code, -> { String }, optional: true, nullable: false, api_name: "eoriCode"
54
54
 
55
- field :other_code, -> { String }, optional: true, nullable: false, api_name: "otherCode"
56
-
57
- field :foreign_tax_number, -> { String }, optional: true, nullable: false, api_name: "foreignTaxNumber"
58
-
59
55
  field :auto_debt_reminder, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "autoDebtReminder"
60
56
 
61
57
  field :late_interest_percent, -> { String }, optional: true, nullable: false, api_name: "lateInterestPercent"
@@ -58,10 +58,6 @@ module Nordlet
58
58
 
59
59
  field :eori_code, -> { String }, optional: false, nullable: true, api_name: "eoriCode"
60
60
 
61
- field :other_code, -> { String }, optional: false, nullable: true, api_name: "otherCode"
62
-
63
- field :foreign_tax_number, -> { String }, optional: false, nullable: true, api_name: "foreignTaxNumber"
64
-
65
61
  field :auto_debt_reminder, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "autoDebtReminder"
66
62
 
67
63
  field :late_interest_percent, -> { String }, optional: false, nullable: true, api_name: "lateInterestPercent"
@@ -58,10 +58,6 @@ module Nordlet
58
58
 
59
59
  field :eori_code, -> { String }, optional: false, nullable: true, api_name: "eoriCode"
60
60
 
61
- field :other_code, -> { String }, optional: false, nullable: true, api_name: "otherCode"
62
-
63
- field :foreign_tax_number, -> { String }, optional: false, nullable: true, api_name: "foreignTaxNumber"
64
-
65
61
  field :auto_debt_reminder, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "autoDebtReminder"
66
62
 
67
63
  field :late_interest_percent, -> { String }, optional: false, nullable: true, api_name: "lateInterestPercent"
@@ -58,10 +58,6 @@ module Nordlet
58
58
 
59
59
  field :eori_code, -> { String }, optional: false, nullable: true, api_name: "eoriCode"
60
60
 
61
- field :other_code, -> { String }, optional: false, nullable: true, api_name: "otherCode"
62
-
63
- field :foreign_tax_number, -> { String }, optional: false, nullable: true, api_name: "foreignTaxNumber"
64
-
65
61
  field :auto_debt_reminder, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "autoDebtReminder"
66
62
 
67
63
  field :late_interest_percent, -> { String }, optional: false, nullable: true, api_name: "lateInterestPercent"
@@ -54,10 +54,6 @@ module Nordlet
54
54
 
55
55
  field :eori_code, -> { String }, optional: true, nullable: false, api_name: "eoriCode"
56
56
 
57
- field :other_code, -> { String }, optional: true, nullable: false, api_name: "otherCode"
58
-
59
- field :foreign_tax_number, -> { String }, optional: true, nullable: false, api_name: "foreignTaxNumber"
60
-
61
57
  field :auto_debt_reminder, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "autoDebtReminder"
62
58
 
63
59
  field :late_interest_percent, -> { String }, optional: true, nullable: false, api_name: "lateInterestPercent"
@@ -58,10 +58,6 @@ module Nordlet
58
58
 
59
59
  field :eori_code, -> { String }, optional: false, nullable: true, api_name: "eoriCode"
60
60
 
61
- field :other_code, -> { String }, optional: false, nullable: true, api_name: "otherCode"
62
-
63
- field :foreign_tax_number, -> { String }, optional: false, nullable: true, api_name: "foreignTaxNumber"
64
-
65
61
  field :auto_debt_reminder, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "autoDebtReminder"
66
62
 
67
63
  field :late_interest_percent, -> { String }, optional: false, nullable: true, api_name: "lateInterestPercent"
@@ -171,7 +171,7 @@ module Nordlet
171
171
  end
172
172
 
173
173
  # Send an issued invoice or credit note to the customer over Peppol through the company's own access point
174
- # (Settings → Compliance → EU; Nordlet supports Recommand, Storecove and e-invoice.be). Without one the call is
174
+ # (Account → Compliance → EU; Nordlet supports Recommand, Storecove and e-invoice.be). Without one the call is
175
175
  # refused with 422 and the document can only be downloaded with `sales/invoices/peppol-xml`. `status` is `pending`
176
176
  # until the receiving access point confirms, then `delivered`; `failed` and `rejected` come with `detail`, and the
177
177
  # invoice can then be sent again. Later changes arrive through the access point's webhook and are announced as
@@ -932,6 +932,166 @@ module Nordlet
932
932
  end
933
933
  end
934
934
 
935
+ # @param request_options [Hash]
936
+ # @param params [Nordlet::Sales::Types::InvoiceTemplatesCreateSalesRequest]
937
+ # @option request_options [String] :base_url
938
+ # @option request_options [Hash{String => Object}] :additional_headers
939
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
940
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
941
+ # @option request_options [Integer] :timeout_in_seconds
942
+ #
943
+ # @return [Nordlet::Sales::Types::InvoiceTemplatesCreateSalesResponse]
944
+ def invoice_templates_create(request_options: {}, **params)
945
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
946
+ request = Nordlet::Internal::JSON::Request.new(
947
+ base_url: request_options[:base_url],
948
+ method: "POST",
949
+ path: "v1/sales/invoice-templates/create",
950
+ body: Nordlet::Sales::Types::InvoiceTemplatesCreateSalesRequest.new(params).to_h,
951
+ request_options: request_options
952
+ )
953
+ begin
954
+ response = @client.send(request)
955
+ rescue Net::HTTPRequestTimeout
956
+ raise Nordlet::Errors::TimeoutError
957
+ end
958
+ code = response.code.to_i
959
+ if code.between?(200, 299)
960
+ Nordlet::Sales::Types::InvoiceTemplatesCreateSalesResponse.load(response.body)
961
+ else
962
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
963
+ raise error_class.new(response.body, code: code)
964
+ end
965
+ end
966
+
967
+ # @param request_options [Hash]
968
+ # @param params [Nordlet::Sales::Types::InvoiceTemplatesUpdateSalesRequest]
969
+ # @option request_options [String] :base_url
970
+ # @option request_options [Hash{String => Object}] :additional_headers
971
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
972
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
973
+ # @option request_options [Integer] :timeout_in_seconds
974
+ #
975
+ # @return [Nordlet::Sales::Types::InvoiceTemplatesUpdateSalesResponse]
976
+ def invoice_templates_update(request_options: {}, **params)
977
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
978
+ request = Nordlet::Internal::JSON::Request.new(
979
+ base_url: request_options[:base_url],
980
+ method: "POST",
981
+ path: "v1/sales/invoice-templates/update",
982
+ body: Nordlet::Sales::Types::InvoiceTemplatesUpdateSalesRequest.new(params).to_h,
983
+ request_options: request_options
984
+ )
985
+ begin
986
+ response = @client.send(request)
987
+ rescue Net::HTTPRequestTimeout
988
+ raise Nordlet::Errors::TimeoutError
989
+ end
990
+ code = response.code.to_i
991
+ if code.between?(200, 299)
992
+ Nordlet::Sales::Types::InvoiceTemplatesUpdateSalesResponse.load(response.body)
993
+ else
994
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
995
+ raise error_class.new(response.body, code: code)
996
+ end
997
+ end
998
+
999
+ # @param request_options [Hash]
1000
+ # @param params [Nordlet::Sales::Types::InvoiceTemplatesGetSalesRequest]
1001
+ # @option request_options [String] :base_url
1002
+ # @option request_options [Hash{String => Object}] :additional_headers
1003
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
1004
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
1005
+ # @option request_options [Integer] :timeout_in_seconds
1006
+ #
1007
+ # @return [Nordlet::Sales::Types::InvoiceTemplatesGetSalesResponse]
1008
+ def invoice_templates_get(request_options: {}, **params)
1009
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
1010
+ request = Nordlet::Internal::JSON::Request.new(
1011
+ base_url: request_options[:base_url],
1012
+ method: "POST",
1013
+ path: "v1/sales/invoice-templates/get",
1014
+ body: Nordlet::Sales::Types::InvoiceTemplatesGetSalesRequest.new(params).to_h,
1015
+ request_options: request_options
1016
+ )
1017
+ begin
1018
+ response = @client.send(request)
1019
+ rescue Net::HTTPRequestTimeout
1020
+ raise Nordlet::Errors::TimeoutError
1021
+ end
1022
+ code = response.code.to_i
1023
+ if code.between?(200, 299)
1024
+ Nordlet::Sales::Types::InvoiceTemplatesGetSalesResponse.load(response.body)
1025
+ else
1026
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
1027
+ raise error_class.new(response.body, code: code)
1028
+ end
1029
+ end
1030
+
1031
+ # @param request_options [Hash]
1032
+ # @param params [Nordlet::Sales::Types::InvoiceTemplatesDeleteSalesRequest]
1033
+ # @option request_options [String] :base_url
1034
+ # @option request_options [Hash{String => Object}] :additional_headers
1035
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
1036
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
1037
+ # @option request_options [Integer] :timeout_in_seconds
1038
+ #
1039
+ # @return [Nordlet::Sales::Types::InvoiceTemplatesDeleteSalesResponse]
1040
+ def invoice_templates_delete(request_options: {}, **params)
1041
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
1042
+ request = Nordlet::Internal::JSON::Request.new(
1043
+ base_url: request_options[:base_url],
1044
+ method: "POST",
1045
+ path: "v1/sales/invoice-templates/delete",
1046
+ body: Nordlet::Sales::Types::InvoiceTemplatesDeleteSalesRequest.new(params).to_h,
1047
+ request_options: request_options
1048
+ )
1049
+ begin
1050
+ response = @client.send(request)
1051
+ rescue Net::HTTPRequestTimeout
1052
+ raise Nordlet::Errors::TimeoutError
1053
+ end
1054
+ code = response.code.to_i
1055
+ if code.between?(200, 299)
1056
+ Nordlet::Sales::Types::InvoiceTemplatesDeleteSalesResponse.load(response.body)
1057
+ else
1058
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
1059
+ raise error_class.new(response.body, code: code)
1060
+ end
1061
+ end
1062
+
1063
+ # @param request_options [Hash]
1064
+ # @param params [Nordlet::Sales::Types::InvoiceTemplatesListSalesRequest]
1065
+ # @option request_options [String] :base_url
1066
+ # @option request_options [Hash{String => Object}] :additional_headers
1067
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
1068
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
1069
+ # @option request_options [Integer] :timeout_in_seconds
1070
+ #
1071
+ # @return [Nordlet::Sales::Types::InvoiceTemplatesListSalesResponse]
1072
+ def invoice_templates_list(request_options: {}, **params)
1073
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
1074
+ request = Nordlet::Internal::JSON::Request.new(
1075
+ base_url: request_options[:base_url],
1076
+ method: "POST",
1077
+ path: "v1/sales/invoice-templates/list",
1078
+ body: Nordlet::Sales::Types::InvoiceTemplatesListSalesRequest.new(params).to_h,
1079
+ request_options: request_options
1080
+ )
1081
+ begin
1082
+ response = @client.send(request)
1083
+ rescue Net::HTTPRequestTimeout
1084
+ raise Nordlet::Errors::TimeoutError
1085
+ end
1086
+ code = response.code.to_i
1087
+ if code.between?(200, 299)
1088
+ Nordlet::Sales::Types::InvoiceTemplatesListSalesResponse.load(response.body)
1089
+ else
1090
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
1091
+ raise error_class.new(response.body, code: code)
1092
+ end
1093
+ end
1094
+
935
1095
  # @param request_options [Hash]
936
1096
  # @param params [Nordlet::Sales::Types::RecognitionComputeSalesRequest]
937
1097
  # @option request_options [String] :base_url
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoiceTemplatesCreateSalesRequest < Internal::Types::Model
7
+ field :name, -> { String }, optional: false, nullable: false
8
+
9
+ field :document_type, -> { Nordlet::Sales::Types::InvoiceTemplatesCreateSalesRequestDocumentType }, optional: true, nullable: false, api_name: "documentType"
10
+
11
+ field :partner_id, -> { String }, optional: true, nullable: false, api_name: "partnerId"
12
+
13
+ field :currency, -> { String }, optional: true, nullable: false
14
+
15
+ field :payment_term_days, -> { Integer }, optional: true, nullable: false, api_name: "paymentTermDays"
16
+
17
+ field :vat_scheme, -> { Nordlet::Sales::Types::InvoiceTemplatesCreateSalesRequestVatScheme }, optional: true, nullable: false, api_name: "vatScheme"
18
+
19
+ field :vat_country_code, -> { String }, optional: true, nullable: false, api_name: "vatCountryCode"
20
+
21
+ field :agreement_id, -> { String }, optional: true, nullable: false, api_name: "agreementId"
22
+
23
+ field :operation_type_id, -> { String }, optional: true, nullable: false, api_name: "operationTypeId"
24
+
25
+ field :document_series_id, -> { String }, optional: true, nullable: false, api_name: "documentSeriesId"
26
+
27
+ field :discount_percent, -> { String }, optional: true, nullable: false, api_name: "discountPercent"
28
+
29
+ field :issued_by_name, -> { String }, optional: true, nullable: false, api_name: "issuedByName"
30
+
31
+ field :issued_by_title, -> { String }, optional: true, nullable: false, api_name: "issuedByTitle"
32
+
33
+ field :received_by_name, -> { String }, optional: true, nullable: false, api_name: "receivedByName"
34
+
35
+ field :received_by_title, -> { String }, optional: true, nullable: false, api_name: "receivedByTitle"
36
+
37
+ field :notes, -> { String }, optional: true, nullable: false
38
+
39
+ field :supply_type, -> { Nordlet::Sales::Types::InvoiceTemplatesCreateSalesRequestSupplyType }, optional: true, nullable: false, api_name: "supplyType"
40
+
41
+ field :series_label, -> { String }, optional: true, nullable: false, api_name: "seriesLabel"
42
+
43
+ field :order_number, -> { String }, optional: true, nullable: false, api_name: "orderNumber"
44
+
45
+ field :intrastat_transport_mode, -> { String }, optional: true, nullable: false, api_name: "intrastatTransportMode"
46
+
47
+ field :intrastat_delivery_terms, -> { String }, optional: true, nullable: false, api_name: "intrastatDeliveryTerms"
48
+
49
+ field :intrastat_region, -> { String }, optional: true, nullable: false, api_name: "intrastatRegion"
50
+
51
+ field :intrastat_nature_of_transaction, -> { String }, optional: true, nullable: false, api_name: "intrastatNatureOfTransaction"
52
+
53
+ field :lines, -> { Internal::Types::Array[Nordlet::Sales::Types::InvoiceTemplatesCreateSalesRequestLinesItem] }, optional: true, nullable: false
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ module InvoiceTemplatesCreateSalesRequestDocumentType
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ INVOICE = "invoice"
10
+ CREDIT_NOTE = "credit_note"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoiceTemplatesCreateSalesRequestLinesItem < Internal::Types::Model
7
+ field :item_id, -> { String }, optional: true, nullable: false, api_name: "itemId"
8
+
9
+ field :description, -> { String }, optional: true, nullable: false
10
+
11
+ field :quantity, -> { String }, optional: true, nullable: false
12
+
13
+ field :unit_price_excl_vat, -> { String }, optional: true, nullable: false, api_name: "unitPriceExclVat"
14
+
15
+ field :vat_rate_percent, -> { String }, optional: true, nullable: false, api_name: "vatRatePercent"
16
+
17
+ field :vat_exemption_basis, -> { String }, optional: true, nullable: false, api_name: "vatExemptionBasis"
18
+
19
+ field :project_id, -> { String }, optional: true, nullable: false, api_name: "projectId"
20
+
21
+ field :unit, -> { String }, optional: true, nullable: false
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ module InvoiceTemplatesCreateSalesRequestSupplyType
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ GOODS = "goods"
10
+ SERVICES = "services"
11
+ DIGITAL = "digital"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ module InvoiceTemplatesCreateSalesRequestVatScheme
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ DOMESTIC = "domestic"
10
+ INTRA_EU_B2B = "intra_eu_b2b"
11
+ REVERSE_CHARGE = "reverse_charge"
12
+ OSS_UNION = "oss_union"
13
+ IOSS = "ioss"
14
+ MARKETPLACE_DEEMED = "marketplace_deemed"
15
+ EXPORT = "export"
16
+ OUT_OF_SCOPE = "out_of_scope"
17
+ SME_EXEMPT = "sme_exempt"
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,63 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoiceTemplatesCreateSalesResponse < Internal::Types::Model
7
+ field :id, -> { String }, optional: false, nullable: false
8
+
9
+ field :name, -> { String }, optional: false, nullable: false
10
+
11
+ field :document_type, -> { Nordlet::Sales::Types::InvoiceTemplatesCreateSalesResponseDocumentType }, optional: false, nullable: false, api_name: "documentType"
12
+
13
+ field :partner_id, -> { String }, optional: false, nullable: true, api_name: "partnerId"
14
+
15
+ field :currency, -> { String }, optional: false, nullable: true
16
+
17
+ field :payment_term_days, -> { Integer }, optional: false, nullable: true, api_name: "paymentTermDays"
18
+
19
+ field :vat_scheme, -> { String }, optional: false, nullable: true, api_name: "vatScheme"
20
+
21
+ field :vat_country_code, -> { String }, optional: false, nullable: true, api_name: "vatCountryCode"
22
+
23
+ field :agreement_id, -> { String }, optional: false, nullable: true, api_name: "agreementId"
24
+
25
+ field :operation_type_id, -> { String }, optional: false, nullable: true, api_name: "operationTypeId"
26
+
27
+ field :document_series_id, -> { String }, optional: false, nullable: true, api_name: "documentSeriesId"
28
+
29
+ field :discount_percent, -> { String }, optional: false, nullable: true, api_name: "discountPercent"
30
+
31
+ field :issued_by_name, -> { String }, optional: false, nullable: true, api_name: "issuedByName"
32
+
33
+ field :issued_by_title, -> { String }, optional: false, nullable: true, api_name: "issuedByTitle"
34
+
35
+ field :received_by_name, -> { String }, optional: false, nullable: true, api_name: "receivedByName"
36
+
37
+ field :received_by_title, -> { String }, optional: false, nullable: true, api_name: "receivedByTitle"
38
+
39
+ field :notes, -> { String }, optional: false, nullable: true
40
+
41
+ field :supply_type, -> { Nordlet::Sales::Types::InvoiceTemplatesCreateSalesResponseSupplyType }, optional: false, nullable: true, api_name: "supplyType"
42
+
43
+ field :series_label, -> { String }, optional: false, nullable: true, api_name: "seriesLabel"
44
+
45
+ field :order_number, -> { String }, optional: false, nullable: true, api_name: "orderNumber"
46
+
47
+ field :intrastat_transport_mode, -> { String }, optional: false, nullable: true, api_name: "intrastatTransportMode"
48
+
49
+ field :intrastat_delivery_terms, -> { String }, optional: false, nullable: true, api_name: "intrastatDeliveryTerms"
50
+
51
+ field :intrastat_region, -> { String }, optional: false, nullable: true, api_name: "intrastatRegion"
52
+
53
+ field :intrastat_nature_of_transaction, -> { String }, optional: false, nullable: true, api_name: "intrastatNatureOfTransaction"
54
+
55
+ field :lines, -> { Internal::Types::Array[Nordlet::Sales::Types::InvoiceTemplatesCreateSalesResponseLinesItem] }, optional: false, nullable: false
56
+
57
+ field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
58
+
59
+ field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ module InvoiceTemplatesCreateSalesResponseDocumentType
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ INVOICE = "invoice"
10
+ CREDIT_NOTE = "credit_note"
11
+ end
12
+ end
13
+ end
14
+ end