nordlet 0.5.6 → 0.5.7

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 (127) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nordlet/account/client.rb +2 -1
  3. data/lib/nordlet/account/types/companies_create_account_request.rb +16 -0
  4. data/lib/nordlet/account/types/companies_create_account_request_country_code.rb +222 -3
  5. data/lib/nordlet/account/types/companies_create_account_request_default_invoice_locale.rb +44 -0
  6. data/lib/nordlet/account/types/companies_create_account_response.rb +2 -0
  7. data/lib/nordlet/account/types/companies_profile_account_response.rb +18 -0
  8. data/lib/nordlet/account/types/companies_update_account_request.rb +14 -0
  9. data/lib/nordlet/account/types/companies_update_account_request_default_invoice_locale.rb +44 -0
  10. data/lib/nordlet/account/types/companies_update_account_response.rb +18 -0
  11. data/lib/nordlet/account/types/me_account_response_companies_item.rb +2 -0
  12. data/lib/nordlet/billing/client.rb +40 -3
  13. data/lib/nordlet/billing/types/account_get_billing_response.rb +2 -0
  14. data/lib/nordlet/billing/types/account_get_billing_response_plan.rb +1 -0
  15. data/lib/nordlet/billing/types/account_set_account_type_billing_response.rb +2 -0
  16. data/lib/nordlet/billing/types/account_set_account_type_billing_response_plan.rb +1 -0
  17. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response.rb +2 -0
  18. data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_plan.rb +1 -0
  19. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response.rb +2 -0
  20. data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_plan.rb +1 -0
  21. data/lib/nordlet/billing/types/account_set_plan_billing_request_plan.rb +1 -0
  22. data/lib/nordlet/billing/types/account_set_plan_billing_response.rb +2 -0
  23. data/lib/nordlet/billing/types/account_set_plan_billing_response_plan.rb +1 -0
  24. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response.rb +2 -0
  25. data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_plan.rb +1 -0
  26. data/lib/nordlet/billing/types/flat_rate_create_billing_request_plan.rb +1 -0
  27. data/lib/nordlet/billing/types/subscription_cancel_billing_request.rb +9 -0
  28. data/lib/nordlet/billing/types/subscription_cancel_billing_response.rb +51 -0
  29. data/lib/nordlet/billing/types/subscription_cancel_billing_response_account_type.rb +14 -0
  30. data/lib/nordlet/billing/types/subscription_cancel_billing_response_auto_top_up.rb +15 -0
  31. data/lib/nordlet/billing/types/subscription_cancel_billing_response_month_to_date.rb +27 -0
  32. data/lib/nordlet/billing/types/subscription_cancel_billing_response_plan.rb +16 -0
  33. data/lib/nordlet/billing/types/subscription_cancel_billing_response_plans_value.rb +19 -0
  34. data/lib/nordlet/billing/types/subscription_cancel_billing_response_status.rb +15 -0
  35. data/lib/nordlet/billing/types/subscription_cancel_billing_response_top_up.rb +13 -0
  36. data/lib/nordlet/billing/types/topup_confirm_billing_response.rb +2 -0
  37. data/lib/nordlet/billing/types/topup_confirm_billing_response_plan.rb +1 -0
  38. data/lib/nordlet/declarations/client.rb +45 -4
  39. data/lib/nordlet/declarations/types/de_euer_get_declarations_request.rb +11 -0
  40. data/lib/nordlet/declarations/types/de_euer_get_declarations_response.rb +17 -0
  41. data/lib/nordlet/declarations/types/de_euer_get_declarations_response_rows_item.rb +19 -0
  42. data/lib/nordlet/declarations/types/de_euer_get_declarations_response_rows_item_anlage.rb +14 -0
  43. data/lib/nordlet/declarations/types/de_return_facts_get_declarations_response_facts.rb +6 -0
  44. data/lib/nordlet/declarations/types/de_return_facts_get_declarations_response_facts_euer_einkunftsart.rb +15 -0
  45. data/lib/nordlet/declarations/types/de_return_facts_set_declarations_request_facts.rb +6 -0
  46. data/lib/nordlet/declarations/types/de_return_facts_set_declarations_request_facts_euer_einkunftsart.rb +15 -0
  47. data/lib/nordlet/declarations/types/de_return_facts_set_declarations_response_facts.rb +6 -0
  48. data/lib/nordlet/declarations/types/de_return_facts_set_declarations_response_facts_euer_einkunftsart.rb +15 -0
  49. data/lib/nordlet/declarations/types/de_returns_generate_declarations_request_rule_key.rb +1 -0
  50. data/lib/nordlet/partners/client.rb +11 -10
  51. data/lib/nordlet/partners/types/create_partners_request.rb +4 -0
  52. data/lib/nordlet/partners/types/create_partners_request_invoice_currency.rb +97 -0
  53. data/lib/nordlet/partners/types/create_partners_request_invoice_locale.rb +44 -0
  54. data/lib/nordlet/partners/types/create_partners_response.rb +4 -0
  55. data/lib/nordlet/partners/types/find_or_create_partners_request.rb +4 -0
  56. data/lib/nordlet/partners/types/find_or_create_partners_request_invoice_currency.rb +97 -0
  57. data/lib/nordlet/partners/types/find_or_create_partners_request_invoice_locale.rb +44 -0
  58. data/lib/nordlet/partners/types/find_or_create_partners_response_partner.rb +4 -0
  59. data/lib/nordlet/partners/types/get_partners_response.rb +4 -0
  60. data/lib/nordlet/partners/types/list_partners_response_rows_item.rb +4 -0
  61. data/lib/nordlet/partners/types/update_partners_request.rb +4 -0
  62. data/lib/nordlet/partners/types/update_partners_request_invoice_currency.rb +97 -0
  63. data/lib/nordlet/partners/types/update_partners_request_invoice_locale.rb +44 -0
  64. data/lib/nordlet/partners/types/update_partners_response.rb +4 -0
  65. data/lib/nordlet/public/client.rb +111 -2
  66. data/lib/nordlet/public/types/invoices_checkout_public_request.rb +11 -0
  67. data/lib/nordlet/public/types/invoices_checkout_public_response.rb +11 -0
  68. data/lib/nordlet/public/types/invoices_get_public_request.rb +11 -0
  69. data/lib/nordlet/public/types/invoices_get_public_response.rb +47 -0
  70. data/lib/nordlet/public/types/invoices_get_public_response_buyer.rb +17 -0
  71. data/lib/nordlet/public/types/invoices_get_public_response_buyer_address.rb +17 -0
  72. data/lib/nordlet/public/types/invoices_get_public_response_lines_item.rb +21 -0
  73. data/lib/nordlet/public/types/invoices_get_public_response_payment_status.rb +15 -0
  74. data/lib/nordlet/public/types/invoices_get_public_response_seller.rb +31 -0
  75. data/lib/nordlet/public/types/invoices_get_public_response_seller_address.rb +17 -0
  76. data/lib/nordlet/public/types/invoices_get_public_response_status.rb +14 -0
  77. data/lib/nordlet/public/types/invoices_get_public_response_type.rb +16 -0
  78. data/lib/nordlet/public/types/invoices_pdf_public_request.rb +11 -0
  79. data/lib/nordlet/public/types/invoices_pdf_public_response.rb +15 -0
  80. data/lib/nordlet/sales/client.rb +237 -9
  81. data/lib/nordlet/sales/types/exports_month_sales_request.rb +13 -0
  82. data/lib/nordlet/sales/types/exports_month_sales_request_format.rb +15 -0
  83. data/lib/nordlet/sales/types/exports_month_sales_response.rb +15 -0
  84. data/lib/nordlet/sales/types/invoices_apply_advance_sales_response.rb +8 -0
  85. data/lib/nordlet/sales/types/invoices_card_payments_connect_sales_request.rb +13 -0
  86. data/lib/nordlet/sales/types/invoices_card_payments_connect_sales_response.rb +11 -0
  87. data/lib/nordlet/sales/types/invoices_card_payments_disconnect_sales_request.rb +9 -0
  88. data/lib/nordlet/sales/types/invoices_card_payments_disconnect_sales_response.rb +15 -0
  89. data/lib/nordlet/sales/types/invoices_card_payments_get_sales_request.rb +9 -0
  90. data/lib/nordlet/sales/types/invoices_card_payments_get_sales_response.rb +15 -0
  91. data/lib/nordlet/sales/types/invoices_create_sales_request.rb +6 -0
  92. data/lib/nordlet/sales/types/invoices_create_sales_request_locale.rb +29 -0
  93. data/lib/nordlet/sales/types/invoices_create_sales_response.rb +8 -0
  94. data/lib/nordlet/sales/types/invoices_get_sales_response.rb +8 -0
  95. data/lib/nordlet/sales/types/invoices_issue_sales_response.rb +8 -0
  96. data/lib/nordlet/sales/types/invoices_list_sales_response_rows_item.rb +8 -0
  97. data/lib/nordlet/sales/types/invoices_lock_sales_response.rb +8 -0
  98. data/lib/nordlet/sales/types/invoices_payment_link_sales_response_source.rb +1 -0
  99. data/lib/nordlet/sales/types/invoices_pdf_sales_request_locale.rb +29 -0
  100. data/lib/nordlet/sales/types/invoices_send_sales_request.rb +2 -0
  101. data/lib/nordlet/sales/types/invoices_send_sales_request_locale.rb +29 -0
  102. data/lib/nordlet/sales/types/invoices_unlock_sales_response.rb +8 -0
  103. data/lib/nordlet/sales/types/invoices_update_sales_request.rb +6 -0
  104. data/lib/nordlet/sales/types/invoices_update_sales_request_locale.rb +29 -0
  105. data/lib/nordlet/sales/types/invoices_update_sales_response.rb +8 -0
  106. data/lib/nordlet/sales/types/invoices_view_sales_request.rb +11 -0
  107. data/lib/nordlet/sales/types/invoices_view_sales_response.rb +49 -0
  108. data/lib/nordlet/sales/types/invoices_view_sales_response_buyer.rb +17 -0
  109. data/lib/nordlet/sales/types/invoices_view_sales_response_buyer_address.rb +17 -0
  110. data/lib/nordlet/sales/types/invoices_view_sales_response_lines_item.rb +21 -0
  111. data/lib/nordlet/sales/types/invoices_view_sales_response_payment_status.rb +15 -0
  112. data/lib/nordlet/sales/types/invoices_view_sales_response_seller.rb +31 -0
  113. data/lib/nordlet/sales/types/invoices_view_sales_response_seller_address.rb +17 -0
  114. data/lib/nordlet/sales/types/invoices_view_sales_response_status.rb +14 -0
  115. data/lib/nordlet/sales/types/invoices_view_sales_response_type.rb +16 -0
  116. data/lib/nordlet/sales/types/payments_list_sales_request.rb +17 -0
  117. data/lib/nordlet/sales/types/payments_list_sales_response.rb +19 -0
  118. data/lib/nordlet/sales/types/payments_list_sales_response_rows_item.rb +27 -0
  119. data/lib/nordlet/sales/types/payments_list_sales_response_rows_item_method.rb +15 -0
  120. data/lib/nordlet/sales/types/recurring_invoices_create_sales_request_locale.rb +29 -0
  121. data/lib/nordlet/sales/types/recurring_invoices_update_sales_request_locale.rb +29 -0
  122. data/lib/nordlet/version.rb +1 -1
  123. data/lib/nordlet/webhooks/types/subscriptions_create_webhooks_request_events_item.rb +1 -0
  124. data/lib/nordlet/webhooks/types/subscriptions_update_webhooks_request_events_item.rb +1 -0
  125. data/lib/nordlet.rb +61 -0
  126. data/reference.md +1296 -365
  127. metadata +63 -2
@@ -34,6 +34,10 @@ module Nordlet
34
34
 
35
35
  field :gross_total, -> { String }, optional: false, nullable: false, api_name: "grossTotal"
36
36
 
37
+ field :sales_tax_percent, -> { String }, optional: false, nullable: true, api_name: "salesTaxPercent"
38
+
39
+ field :sales_tax_total, -> { String }, optional: false, nullable: false, api_name: "salesTaxTotal"
40
+
37
41
  field :paid_amount, -> { String }, optional: false, nullable: false, api_name: "paidAmount"
38
42
 
39
43
  field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
@@ -94,6 +98,10 @@ module Nordlet
94
98
 
95
99
  field :pay_token, -> { String }, optional: false, nullable: true, api_name: "payToken"
96
100
 
101
+ field :pay_link_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "payLinkEnabled"
102
+
103
+ field :debt_reminders_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "debtRemindersEnabled"
104
+
97
105
  field :einvoice_system, -> { String }, optional: false, nullable: true, api_name: "einvoiceSystem"
98
106
 
99
107
  field :einvoice_transport, -> { String }, optional: false, nullable: true, api_name: "einvoiceTransport"
@@ -34,6 +34,10 @@ module Nordlet
34
34
 
35
35
  field :gross_total, -> { String }, optional: false, nullable: false, api_name: "grossTotal"
36
36
 
37
+ field :sales_tax_percent, -> { String }, optional: false, nullable: true, api_name: "salesTaxPercent"
38
+
39
+ field :sales_tax_total, -> { String }, optional: false, nullable: false, api_name: "salesTaxTotal"
40
+
37
41
  field :paid_amount, -> { String }, optional: false, nullable: false, api_name: "paidAmount"
38
42
 
39
43
  field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
@@ -94,6 +98,10 @@ module Nordlet
94
98
 
95
99
  field :pay_token, -> { String }, optional: false, nullable: true, api_name: "payToken"
96
100
 
101
+ field :pay_link_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "payLinkEnabled"
102
+
103
+ field :debt_reminders_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "debtRemindersEnabled"
104
+
97
105
  field :einvoice_system, -> { String }, optional: false, nullable: true, api_name: "einvoiceSystem"
98
106
 
99
107
  field :einvoice_transport, -> { String }, optional: false, nullable: true, api_name: "einvoiceTransport"
@@ -34,6 +34,10 @@ module Nordlet
34
34
 
35
35
  field :gross_total, -> { String }, optional: false, nullable: false, api_name: "grossTotal"
36
36
 
37
+ field :sales_tax_percent, -> { String }, optional: false, nullable: true, api_name: "salesTaxPercent"
38
+
39
+ field :sales_tax_total, -> { String }, optional: false, nullable: false, api_name: "salesTaxTotal"
40
+
37
41
  field :paid_amount, -> { String }, optional: false, nullable: false, api_name: "paidAmount"
38
42
 
39
43
  field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
@@ -94,6 +98,10 @@ module Nordlet
94
98
 
95
99
  field :pay_token, -> { String }, optional: false, nullable: true, api_name: "payToken"
96
100
 
101
+ field :pay_link_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "payLinkEnabled"
102
+
103
+ field :debt_reminders_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "debtRemindersEnabled"
104
+
97
105
  field :einvoice_system, -> { String }, optional: false, nullable: true, api_name: "einvoiceSystem"
98
106
 
99
107
  field :einvoice_transport, -> { String }, optional: false, nullable: true, api_name: "einvoiceTransport"
@@ -34,6 +34,10 @@ module Nordlet
34
34
 
35
35
  field :gross_total, -> { String }, optional: false, nullable: false, api_name: "grossTotal"
36
36
 
37
+ field :sales_tax_percent, -> { String }, optional: false, nullable: true, api_name: "salesTaxPercent"
38
+
39
+ field :sales_tax_total, -> { String }, optional: false, nullable: false, api_name: "salesTaxTotal"
40
+
37
41
  field :paid_amount, -> { String }, optional: false, nullable: false, api_name: "paidAmount"
38
42
 
39
43
  field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
@@ -94,6 +98,10 @@ module Nordlet
94
98
 
95
99
  field :pay_token, -> { String }, optional: false, nullable: true, api_name: "payToken"
96
100
 
101
+ field :pay_link_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "payLinkEnabled"
102
+
103
+ field :debt_reminders_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "debtRemindersEnabled"
104
+
97
105
  field :einvoice_system, -> { String }, optional: false, nullable: true, api_name: "einvoiceSystem"
98
106
 
99
107
  field :einvoice_transport, -> { String }, optional: false, nullable: true, api_name: "einvoiceTransport"
@@ -6,6 +6,7 @@ module Nordlet
6
6
  module InvoicesPaymentLinkSalesResponseSource
7
7
  extend Nordlet::Internal::Types::Enum
8
8
 
9
+ STRIPE = "stripe"
9
10
  TEMPLATE = "template"
10
11
  end
11
12
  end
@@ -9,6 +9,35 @@ module Nordlet
9
9
  EN = "en"
10
10
  LT = "lt"
11
11
  DE = "de"
12
+ FR = "fr"
13
+ ES = "es"
14
+ IT = "it"
15
+ PT = "pt"
16
+ NL = "nl"
17
+ PL = "pl"
18
+ SV = "sv"
19
+ DA = "da"
20
+ NO = "no"
21
+ FI = "fi"
22
+ ET = "et"
23
+ LV = "lv"
24
+ CS = "cs"
25
+ SK = "sk"
26
+ HU = "hu"
27
+ RO = "ro"
28
+ BG = "bg"
29
+ HR = "hr"
30
+ SL = "sl"
31
+ EL = "el"
32
+ MT = "mt"
33
+ IS = "is"
34
+ GA = "ga"
35
+ ZH = "zh"
36
+ JA = "ja"
37
+ AR = "ar"
38
+ HI = "hi"
39
+ RU = "ru"
40
+ TR = "tr"
12
41
  end
13
42
  end
14
43
  end
@@ -9,6 +9,8 @@ module Nordlet
9
9
  field :to, -> { String }, optional: true, nullable: false
10
10
 
11
11
  field :locale, -> { Nordlet::Sales::Types::InvoicesSendSalesRequestLocale }, optional: true, nullable: false
12
+
13
+ field :quote, -> { Internal::Types::Boolean }, optional: true, nullable: false
12
14
  end
13
15
  end
14
16
  end
@@ -9,6 +9,35 @@ module Nordlet
9
9
  EN = "en"
10
10
  LT = "lt"
11
11
  DE = "de"
12
+ FR = "fr"
13
+ ES = "es"
14
+ IT = "it"
15
+ PT = "pt"
16
+ NL = "nl"
17
+ PL = "pl"
18
+ SV = "sv"
19
+ DA = "da"
20
+ NO = "no"
21
+ FI = "fi"
22
+ ET = "et"
23
+ LV = "lv"
24
+ CS = "cs"
25
+ SK = "sk"
26
+ HU = "hu"
27
+ RO = "ro"
28
+ BG = "bg"
29
+ HR = "hr"
30
+ SL = "sl"
31
+ EL = "el"
32
+ MT = "mt"
33
+ IS = "is"
34
+ GA = "ga"
35
+ ZH = "zh"
36
+ JA = "ja"
37
+ AR = "ar"
38
+ HI = "hi"
39
+ RU = "ru"
40
+ TR = "tr"
12
41
  end
13
42
  end
14
43
  end
@@ -34,6 +34,10 @@ module Nordlet
34
34
 
35
35
  field :gross_total, -> { String }, optional: false, nullable: false, api_name: "grossTotal"
36
36
 
37
+ field :sales_tax_percent, -> { String }, optional: false, nullable: true, api_name: "salesTaxPercent"
38
+
39
+ field :sales_tax_total, -> { String }, optional: false, nullable: false, api_name: "salesTaxTotal"
40
+
37
41
  field :paid_amount, -> { String }, optional: false, nullable: false, api_name: "paidAmount"
38
42
 
39
43
  field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
@@ -94,6 +98,10 @@ module Nordlet
94
98
 
95
99
  field :pay_token, -> { String }, optional: false, nullable: true, api_name: "payToken"
96
100
 
101
+ field :pay_link_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "payLinkEnabled"
102
+
103
+ field :debt_reminders_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "debtRemindersEnabled"
104
+
97
105
  field :einvoice_system, -> { String }, optional: false, nullable: true, api_name: "einvoiceSystem"
98
106
 
99
107
  field :einvoice_transport, -> { String }, optional: false, nullable: true, api_name: "einvoiceTransport"
@@ -34,6 +34,10 @@ module Nordlet
34
34
 
35
35
  field :locale, -> { Nordlet::Sales::Types::InvoicesUpdateSalesRequestLocale }, optional: true, nullable: false
36
36
 
37
+ field :pay_link_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "payLinkEnabled"
38
+
39
+ field :debt_reminders_enabled, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "debtRemindersEnabled"
40
+
37
41
  field :operation_type_id, -> { String }, optional: true, nullable: false, api_name: "operationTypeId"
38
42
 
39
43
  field :document_series_id, -> { String }, optional: true, nullable: false, api_name: "documentSeriesId"
@@ -52,6 +56,8 @@ module Nordlet
52
56
 
53
57
  field :received_by_title, -> { String }, optional: true, nullable: false, api_name: "receivedByTitle"
54
58
 
59
+ field :sales_tax_percent, -> { String }, optional: true, nullable: false, api_name: "salesTaxPercent"
60
+
55
61
  field :lines, -> { Internal::Types::Array[Nordlet::Sales::Types::InvoicesUpdateSalesRequestLinesItem] }, optional: true, nullable: false
56
62
  end
57
63
  end
@@ -9,6 +9,35 @@ module Nordlet
9
9
  EN = "en"
10
10
  LT = "lt"
11
11
  DE = "de"
12
+ FR = "fr"
13
+ ES = "es"
14
+ IT = "it"
15
+ PT = "pt"
16
+ NL = "nl"
17
+ PL = "pl"
18
+ SV = "sv"
19
+ DA = "da"
20
+ NO = "no"
21
+ FI = "fi"
22
+ ET = "et"
23
+ LV = "lv"
24
+ CS = "cs"
25
+ SK = "sk"
26
+ HU = "hu"
27
+ RO = "ro"
28
+ BG = "bg"
29
+ HR = "hr"
30
+ SL = "sl"
31
+ EL = "el"
32
+ MT = "mt"
33
+ IS = "is"
34
+ GA = "ga"
35
+ ZH = "zh"
36
+ JA = "ja"
37
+ AR = "ar"
38
+ HI = "hi"
39
+ RU = "ru"
40
+ TR = "tr"
12
41
  end
13
42
  end
14
43
  end
@@ -34,6 +34,10 @@ module Nordlet
34
34
 
35
35
  field :gross_total, -> { String }, optional: false, nullable: false, api_name: "grossTotal"
36
36
 
37
+ field :sales_tax_percent, -> { String }, optional: false, nullable: true, api_name: "salesTaxPercent"
38
+
39
+ field :sales_tax_total, -> { String }, optional: false, nullable: false, api_name: "salesTaxTotal"
40
+
37
41
  field :paid_amount, -> { String }, optional: false, nullable: false, api_name: "paidAmount"
38
42
 
39
43
  field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
@@ -94,6 +98,10 @@ module Nordlet
94
98
 
95
99
  field :pay_token, -> { String }, optional: false, nullable: true, api_name: "payToken"
96
100
 
101
+ field :pay_link_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "payLinkEnabled"
102
+
103
+ field :debt_reminders_enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "debtRemindersEnabled"
104
+
97
105
  field :einvoice_system, -> { String }, optional: false, nullable: true, api_name: "einvoiceSystem"
98
106
 
99
107
  field :einvoice_transport, -> { String }, optional: false, nullable: true, api_name: "einvoiceTransport"
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoicesViewSalesRequest < Internal::Types::Model
7
+ field :id, -> { String }, optional: false, nullable: false
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoicesViewSalesResponse < Internal::Types::Model
7
+ field :type, -> { Nordlet::Sales::Types::InvoicesViewSalesResponseType }, optional: false, nullable: false
8
+
9
+ field :status, -> { Nordlet::Sales::Types::InvoicesViewSalesResponseStatus }, optional: false, nullable: false
10
+
11
+ field :payment_status, -> { Nordlet::Sales::Types::InvoicesViewSalesResponsePaymentStatus }, optional: false, nullable: false, api_name: "paymentStatus"
12
+
13
+ field :number, -> { String }, optional: false, nullable: true
14
+
15
+ field :issue_date, -> { String }, optional: false, nullable: true, api_name: "issueDate"
16
+
17
+ field :due_date, -> { String }, optional: false, nullable: true, api_name: "dueDate"
18
+
19
+ field :currency, -> { String }, optional: false, nullable: false
20
+
21
+ field :net_total, -> { String }, optional: false, nullable: false, api_name: "netTotal"
22
+
23
+ field :vat_total, -> { String }, optional: false, nullable: false, api_name: "vatTotal"
24
+
25
+ field :sales_tax_percent, -> { String }, optional: false, nullable: true, api_name: "salesTaxPercent"
26
+
27
+ field :sales_tax_total, -> { String }, optional: false, nullable: false, api_name: "salesTaxTotal"
28
+
29
+ field :gross_total, -> { String }, optional: false, nullable: false, api_name: "grossTotal"
30
+
31
+ field :paid_amount, -> { String }, optional: false, nullable: false, api_name: "paidAmount"
32
+
33
+ field :paid_on, -> { String }, optional: false, nullable: true, api_name: "paidOn"
34
+
35
+ field :notes, -> { String }, optional: false, nullable: true
36
+
37
+ field :pay_url, -> { String }, optional: false, nullable: true, api_name: "payUrl"
38
+
39
+ field :seller, -> { Nordlet::Sales::Types::InvoicesViewSalesResponseSeller }, optional: false, nullable: false
40
+
41
+ field :buyer, -> { Nordlet::Sales::Types::InvoicesViewSalesResponseBuyer }, optional: false, nullable: false
42
+
43
+ field :lines, -> { Internal::Types::Array[Nordlet::Sales::Types::InvoicesViewSalesResponseLinesItem] }, optional: false, nullable: false
44
+
45
+ field :token, -> { String }, optional: false, nullable: true
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoicesViewSalesResponseBuyer < Internal::Types::Model
7
+ field :name, -> { String }, optional: false, nullable: false
8
+
9
+ field :vat_code, -> { String }, optional: false, nullable: true, api_name: "vatCode"
10
+
11
+ field :address, -> { Nordlet::Sales::Types::InvoicesViewSalesResponseBuyerAddress }, optional: false, nullable: false
12
+
13
+ field :email, -> { String }, optional: false, nullable: true
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoicesViewSalesResponseBuyerAddress < Internal::Types::Model
7
+ field :street, -> { String }, optional: false, nullable: true
8
+
9
+ field :city, -> { String }, optional: false, nullable: true
10
+
11
+ field :postal_code, -> { String }, optional: false, nullable: true, api_name: "postalCode"
12
+
13
+ field :country_code, -> { String }, optional: false, nullable: true, api_name: "countryCode"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoicesViewSalesResponseLinesItem < Internal::Types::Model
7
+ field :description, -> { String }, optional: false, nullable: false
8
+
9
+ field :unit, -> { String }, optional: false, nullable: false
10
+
11
+ field :quantity, -> { String }, optional: false, nullable: false
12
+
13
+ field :unit_price, -> { String }, optional: false, nullable: true, api_name: "unitPrice"
14
+
15
+ field :vat_rate_percent, -> { String }, optional: false, nullable: false, api_name: "vatRatePercent"
16
+
17
+ field :line_net, -> { String }, optional: false, nullable: false, api_name: "lineNet"
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ module InvoicesViewSalesResponsePaymentStatus
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ UNPAID = "unpaid"
10
+ PARTIAL = "partial"
11
+ PAID = "paid"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoicesViewSalesResponseSeller < Internal::Types::Model
7
+ field :name, -> { String }, optional: false, nullable: false
8
+
9
+ field :vat_code, -> { String }, optional: false, nullable: true, api_name: "vatCode"
10
+
11
+ field :country_code, -> { String }, optional: false, nullable: true, api_name: "countryCode"
12
+
13
+ field :address, -> { Nordlet::Sales::Types::InvoicesViewSalesResponseSellerAddress }, optional: false, nullable: false
14
+
15
+ field :email, -> { String }, optional: false, nullable: true
16
+
17
+ field :iban, -> { String }, optional: false, nullable: true
18
+
19
+ field :bank_name, -> { String }, optional: false, nullable: true, api_name: "bankName"
20
+
21
+ field :bank_bic, -> { String }, optional: false, nullable: true, api_name: "bankBic"
22
+
23
+ field :bank_code, -> { String }, optional: false, nullable: true, api_name: "bankCode"
24
+
25
+ field :bank_branch_code, -> { String }, optional: false, nullable: true, api_name: "bankBranchCode"
26
+
27
+ field :bank_account_number, -> { String }, optional: false, nullable: true, api_name: "bankAccountNumber"
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoicesViewSalesResponseSellerAddress < Internal::Types::Model
7
+ field :street, -> { String }, optional: false, nullable: true
8
+
9
+ field :city, -> { String }, optional: false, nullable: true
10
+
11
+ field :postal_code, -> { String }, optional: false, nullable: true, api_name: "postalCode"
12
+
13
+ field :country_code, -> { String }, optional: false, nullable: true, api_name: "countryCode"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ module InvoicesViewSalesResponseStatus
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ DRAFT = "draft"
10
+ ISSUED = "issued"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ module InvoicesViewSalesResponseType
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ INVOICE = "invoice"
10
+ CREDIT_NOTE = "credit_note"
11
+ PROFORMA = "proforma"
12
+ ADVANCE = "advance"
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class PaymentsListSalesRequest < Internal::Types::Model
7
+ field :from, -> { String }, optional: false, nullable: false
8
+
9
+ field :to, -> { String }, optional: false, nullable: false
10
+
11
+ field :page, -> { Integer }, optional: true, nullable: false
12
+
13
+ field :page_size, -> { Integer }, optional: true, nullable: false, api_name: "pageSize"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class PaymentsListSalesResponse < Internal::Types::Model
7
+ field :rows, -> { Internal::Types::Array[Nordlet::Sales::Types::PaymentsListSalesResponseRowsItem] }, optional: false, nullable: false
8
+
9
+ field :page, -> { Integer }, optional: false, nullable: false
10
+
11
+ field :page_size, -> { Integer }, optional: false, nullable: false, api_name: "pageSize"
12
+
13
+ field :total, -> { Integer }, optional: false, nullable: false
14
+
15
+ field :totals_by_currency, -> { Internal::Types::Hash[String, String] }, optional: false, nullable: false, api_name: "totalsByCurrency"
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class PaymentsListSalesResponseRowsItem < Internal::Types::Model
7
+ field :id, -> { String }, optional: false, nullable: false
8
+
9
+ field :date, -> { String }, optional: false, nullable: false
10
+
11
+ field :invoice_id, -> { String }, optional: false, nullable: false, api_name: "invoiceId"
12
+
13
+ field :full_number, -> { String }, optional: false, nullable: true, api_name: "fullNumber"
14
+
15
+ field :partner_id, -> { String }, optional: false, nullable: false, api_name: "partnerId"
16
+
17
+ field :partner_name, -> { String }, optional: false, nullable: false, api_name: "partnerName"
18
+
19
+ field :amount, -> { String }, optional: false, nullable: false
20
+
21
+ field :currency, -> { String }, optional: false, nullable: false
22
+
23
+ field :method_, -> { Nordlet::Sales::Types::PaymentsListSalesResponseRowsItemMethod }, optional: false, nullable: false, api_name: "method"
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ module PaymentsListSalesResponseRowsItemMethod
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ BANK_TRANSFER = "bank_transfer"
10
+ CARD = "card"
11
+ CASH = "cash"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -9,6 +9,35 @@ module Nordlet
9
9
  EN = "en"
10
10
  LT = "lt"
11
11
  DE = "de"
12
+ FR = "fr"
13
+ ES = "es"
14
+ IT = "it"
15
+ PT = "pt"
16
+ NL = "nl"
17
+ PL = "pl"
18
+ SV = "sv"
19
+ DA = "da"
20
+ NO = "no"
21
+ FI = "fi"
22
+ ET = "et"
23
+ LV = "lv"
24
+ CS = "cs"
25
+ SK = "sk"
26
+ HU = "hu"
27
+ RO = "ro"
28
+ BG = "bg"
29
+ HR = "hr"
30
+ SL = "sl"
31
+ EL = "el"
32
+ MT = "mt"
33
+ IS = "is"
34
+ GA = "ga"
35
+ ZH = "zh"
36
+ JA = "ja"
37
+ AR = "ar"
38
+ HI = "hi"
39
+ RU = "ru"
40
+ TR = "tr"
12
41
  end
13
42
  end
14
43
  end
@@ -9,6 +9,35 @@ module Nordlet
9
9
  EN = "en"
10
10
  LT = "lt"
11
11
  DE = "de"
12
+ FR = "fr"
13
+ ES = "es"
14
+ IT = "it"
15
+ PT = "pt"
16
+ NL = "nl"
17
+ PL = "pl"
18
+ SV = "sv"
19
+ DA = "da"
20
+ NO = "no"
21
+ FI = "fi"
22
+ ET = "et"
23
+ LV = "lv"
24
+ CS = "cs"
25
+ SK = "sk"
26
+ HU = "hu"
27
+ RO = "ro"
28
+ BG = "bg"
29
+ HR = "hr"
30
+ SL = "sl"
31
+ EL = "el"
32
+ MT = "mt"
33
+ IS = "is"
34
+ GA = "ga"
35
+ ZH = "zh"
36
+ JA = "ja"
37
+ AR = "ar"
38
+ HI = "hi"
39
+ RU = "ru"
40
+ TR = "tr"
12
41
  end
13
42
  end
14
43
  end