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,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoiceTemplatesCreateSalesResponseLinesItem < 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 InvoiceTemplatesCreateSalesResponseSupplyType
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,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoiceTemplatesDeleteSalesRequest < Internal::Types::Model
7
+ field :id, -> { String }, optional: false, nullable: false
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoiceTemplatesDeleteSalesResponse < Internal::Types::Model
7
+ field :deleted, -> { Internal::Types::Boolean }, optional: false, nullable: false
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoiceTemplatesGetSalesRequest < Internal::Types::Model
7
+ field :id, -> { String }, optional: false, nullable: false
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,63 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoiceTemplatesGetSalesResponse < 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::InvoiceTemplatesGetSalesResponseDocumentType }, 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::InvoiceTemplatesGetSalesResponseSupplyType }, 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::InvoiceTemplatesGetSalesResponseLinesItem] }, 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 InvoiceTemplatesGetSalesResponseDocumentType
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 InvoiceTemplatesGetSalesResponseLinesItem < 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 InvoiceTemplatesGetSalesResponseSupplyType
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,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoiceTemplatesListSalesRequest < Internal::Types::Model
7
+ field :page, -> { Integer }, optional: true, nullable: false
8
+
9
+ field :page_size, -> { Integer }, optional: true, nullable: false, api_name: "pageSize"
10
+
11
+ field :sort, -> { Internal::Types::Array[Nordlet::Sales::Types::InvoiceTemplatesListSalesRequestSortItem] }, optional: true, nullable: false
12
+
13
+ field :filter, -> { Internal::Types::Array[Nordlet::Sales::Types::InvoiceTemplatesListSalesRequestFilterItem] }, optional: true, nullable: false
14
+
15
+ field :totals, -> { Internal::Types::Array[String] }, optional: true, nullable: false
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoiceTemplatesListSalesRequestFilterItem < Internal::Types::Model
7
+ field :field, -> { String }, optional: false, nullable: false
8
+
9
+ field :op, -> { Nordlet::Sales::Types::InvoiceTemplatesListSalesRequestFilterItemOp }, optional: false, nullable: false
10
+
11
+ field :value, -> { Nordlet::Sales::Types::InvoiceTemplatesListSalesRequestFilterItemValue }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ module InvoiceTemplatesListSalesRequestFilterItemOp
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ EQ = "eq"
10
+ NE = "ne"
11
+ CONTAINS = "contains"
12
+ GTE = "gte"
13
+ LTE = "lte"
14
+ IN = "in"
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoiceTemplatesListSalesRequestFilterItemValue < Internal::Types::Model
7
+ extend Nordlet::Internal::Types::Union
8
+
9
+ member -> { String }
10
+
11
+ member -> { Integer }
12
+
13
+ member -> { Internal::Types::Boolean }
14
+
15
+ member -> { Internal::Types::Array[Nordlet::Sales::Types::InvoiceTemplatesListSalesRequestFilterItemValueThreeItem] }
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoiceTemplatesListSalesRequestFilterItemValueThreeItem < Internal::Types::Model
7
+ extend Nordlet::Internal::Types::Union
8
+
9
+ member -> { String }
10
+
11
+ member -> { Integer }
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoiceTemplatesListSalesRequestSortItem < Internal::Types::Model
7
+ field :field, -> { String }, optional: false, nullable: false
8
+
9
+ field :dir, -> { Nordlet::Sales::Types::InvoiceTemplatesListSalesRequestSortItemDir }, optional: true, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ module InvoiceTemplatesListSalesRequestSortItemDir
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ ASC = "asc"
10
+ DESC = "desc"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoiceTemplatesListSalesResponse < Internal::Types::Model
7
+ field :rows, -> { Internal::Types::Array[Nordlet::Sales::Types::InvoiceTemplatesListSalesResponseRowsItem] }, 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, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false
16
+
17
+ field :totals_by_currency, -> { Internal::Types::Hash[String, Internal::Types::Hash[String, String]] }, optional: true, nullable: false, api_name: "totalsByCurrency"
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 InvoiceTemplatesListSalesResponseRowsItem < 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::InvoiceTemplatesListSalesResponseRowsItemDocumentType }, 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::InvoiceTemplatesListSalesResponseRowsItemSupplyType }, 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::InvoiceTemplatesListSalesResponseRowsItemLinesItem] }, 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 InvoiceTemplatesListSalesResponseRowsItemDocumentType
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 InvoiceTemplatesListSalesResponseRowsItemLinesItem < 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 InvoiceTemplatesListSalesResponseRowsItemSupplyType
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,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ class InvoiceTemplatesUpdateSalesRequest < Internal::Types::Model
7
+ field :id, -> { String }, optional: false, nullable: false
8
+
9
+ field :name, -> { String }, optional: true, nullable: false
10
+
11
+ field :document_type, -> { Nordlet::Sales::Types::InvoiceTemplatesUpdateSalesRequestDocumentType }, optional: true, nullable: false, api_name: "documentType"
12
+
13
+ field :partner_id, -> { String }, optional: true, nullable: false, api_name: "partnerId"
14
+
15
+ field :currency, -> { String }, optional: true, nullable: false
16
+
17
+ field :payment_term_days, -> { Integer }, optional: true, nullable: false, api_name: "paymentTermDays"
18
+
19
+ field :vat_scheme, -> { Nordlet::Sales::Types::InvoiceTemplatesUpdateSalesRequestVatScheme }, optional: true, nullable: false, api_name: "vatScheme"
20
+
21
+ field :vat_country_code, -> { String }, optional: true, nullable: false, api_name: "vatCountryCode"
22
+
23
+ field :agreement_id, -> { String }, optional: true, nullable: false, api_name: "agreementId"
24
+
25
+ field :operation_type_id, -> { String }, optional: true, nullable: false, api_name: "operationTypeId"
26
+
27
+ field :document_series_id, -> { String }, optional: true, nullable: false, api_name: "documentSeriesId"
28
+
29
+ field :discount_percent, -> { String }, optional: true, nullable: false, api_name: "discountPercent"
30
+
31
+ field :issued_by_name, -> { String }, optional: true, nullable: false, api_name: "issuedByName"
32
+
33
+ field :issued_by_title, -> { String }, optional: true, nullable: false, api_name: "issuedByTitle"
34
+
35
+ field :received_by_name, -> { String }, optional: true, nullable: false, api_name: "receivedByName"
36
+
37
+ field :received_by_title, -> { String }, optional: true, nullable: false, api_name: "receivedByTitle"
38
+
39
+ field :notes, -> { String }, optional: true, nullable: false
40
+
41
+ field :supply_type, -> { Nordlet::Sales::Types::InvoiceTemplatesUpdateSalesRequestSupplyType }, optional: true, nullable: false, api_name: "supplyType"
42
+
43
+ field :series_label, -> { String }, optional: true, nullable: false, api_name: "seriesLabel"
44
+
45
+ field :order_number, -> { String }, optional: true, nullable: false, api_name: "orderNumber"
46
+
47
+ field :intrastat_transport_mode, -> { String }, optional: true, nullable: false, api_name: "intrastatTransportMode"
48
+
49
+ field :intrastat_delivery_terms, -> { String }, optional: true, nullable: false, api_name: "intrastatDeliveryTerms"
50
+
51
+ field :intrastat_region, -> { String }, optional: true, nullable: false, api_name: "intrastatRegion"
52
+
53
+ field :intrastat_nature_of_transaction, -> { String }, optional: true, nullable: false, api_name: "intrastatNatureOfTransaction"
54
+
55
+ field :lines, -> { Internal::Types::Array[Nordlet::Sales::Types::InvoiceTemplatesUpdateSalesRequestLinesItem] }, optional: true, nullable: false
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Sales
5
+ module Types
6
+ module InvoiceTemplatesUpdateSalesRequestDocumentType
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 InvoiceTemplatesUpdateSalesRequestLinesItem < 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 InvoiceTemplatesUpdateSalesRequestSupplyType
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 InvoiceTemplatesUpdateSalesRequestVatScheme
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