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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da8975aa9d3eceb4bc0251b665d18a4b2352247180a160c46b8c0c84c1fca2f0
4
- data.tar.gz: ee6a1780f4f7bd07078dc6e1d055436255b7ceca843d17565546e12386863f73
3
+ metadata.gz: fc4429b373b57b017ae6ecc8c251a367f581f3a145c90e8948fb5ecea033bdee
4
+ data.tar.gz: d2ed80038becfe71820f70b82636a53e1457754f0fea1d713a52a0974c1adacf
5
5
  SHA512:
6
- metadata.gz: ba6cd2c47713339057cd4214b4429c1a23ccbc986ec16b6d5d1c94002e04fb1eac8549e778a1371c6442f2812b15cc528652c28008b49222fd3211b37c38c574
7
- data.tar.gz: 169d133a643864d99cadb332d375db5fce52d26cfc8c2606ebf62f7bbe89b529f2af0b44da537a40666d4399b07b9083de6045892f9718241ea8b9397c8e5f05
6
+ metadata.gz: '03978cb09430f256717d8246e1ea7bbcd0ddd19c162d25bc81eea5bce08c339244a2349e6eec56703b51dc31d6e64d97e08ce415340c38cea93c44a869c7e4ac'
7
+ data.tar.gz: d25d8595232060cc633e16346e2db37ba717d683615db41b232794ea070b3bda4b2e80c6a4a9095662c89d84c1379343903e063dda0b3f96e534e7b44c9a0b53
@@ -10,6 +10,8 @@ module Nordlet
10
10
 
11
11
  field :balance_cents, -> { Integer }, optional: false, nullable: false, api_name: "balanceCents"
12
12
 
13
+ field :overdraft_allowance_cents, -> { Integer }, optional: false, nullable: false, api_name: "overdraftAllowanceCents"
14
+
13
15
  field :trial_ends_at, -> { String }, optional: false, nullable: true, api_name: "trialEndsAt"
14
16
 
15
17
  field :payer_user_id, -> { String }, optional: false, nullable: false, api_name: "payerUserId"
@@ -17,6 +19,12 @@ module Nordlet
17
19
  field :payer_email, -> { String }, optional: false, nullable: false, api_name: "payerEmail"
18
20
 
19
21
  field :is_payer, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "isPayer"
22
+
23
+ field :plan_chosen, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "planChosen"
24
+
25
+ field :flat_rate, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "flatRate"
26
+
27
+ field :account_type, -> { Nordlet::Account::Types::MeAccountResponseBillingAccountType }, optional: false, nullable: false, api_name: "accountType"
20
28
  end
21
29
  end
22
30
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Account
5
+ module Types
6
+ module MeAccountResponseBillingAccountType
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ FLAT_RATE = "flat_rate"
10
+ PER_REQUEST = "per_request"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -1174,6 +1174,102 @@ module Nordlet
1174
1174
  end
1175
1175
  end
1176
1176
 
1177
+ # @param request_options [Hash]
1178
+ # @param params [Nordlet::Bank::Types::SecuritiesImportBankRequest]
1179
+ # @option request_options [String] :base_url
1180
+ # @option request_options [Hash{String => Object}] :additional_headers
1181
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
1182
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
1183
+ # @option request_options [Integer] :timeout_in_seconds
1184
+ #
1185
+ # @return [Nordlet::Bank::Types::SecuritiesImportBankResponse]
1186
+ def securities_import(request_options: {}, **params)
1187
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
1188
+ request = Nordlet::Internal::JSON::Request.new(
1189
+ base_url: request_options[:base_url],
1190
+ method: "POST",
1191
+ path: "v1/bank/securities/import",
1192
+ body: Nordlet::Bank::Types::SecuritiesImportBankRequest.new(params).to_h,
1193
+ request_options: request_options
1194
+ )
1195
+ begin
1196
+ response = @client.send(request)
1197
+ rescue Net::HTTPRequestTimeout
1198
+ raise Nordlet::Errors::TimeoutError
1199
+ end
1200
+ code = response.code.to_i
1201
+ if code.between?(200, 299)
1202
+ Nordlet::Bank::Types::SecuritiesImportBankResponse.load(response.body)
1203
+ else
1204
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
1205
+ raise error_class.new(response.body, code: code)
1206
+ end
1207
+ end
1208
+
1209
+ # @param request_options [Hash]
1210
+ # @param params [Nordlet::Bank::Types::SecuritiesListBankRequest]
1211
+ # @option request_options [String] :base_url
1212
+ # @option request_options [Hash{String => Object}] :additional_headers
1213
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
1214
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
1215
+ # @option request_options [Integer] :timeout_in_seconds
1216
+ #
1217
+ # @return [Nordlet::Bank::Types::SecuritiesListBankResponse]
1218
+ def securities_list(request_options: {}, **params)
1219
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
1220
+ request = Nordlet::Internal::JSON::Request.new(
1221
+ base_url: request_options[:base_url],
1222
+ method: "POST",
1223
+ path: "v1/bank/securities/list",
1224
+ body: Nordlet::Bank::Types::SecuritiesListBankRequest.new(params).to_h,
1225
+ request_options: request_options
1226
+ )
1227
+ begin
1228
+ response = @client.send(request)
1229
+ rescue Net::HTTPRequestTimeout
1230
+ raise Nordlet::Errors::TimeoutError
1231
+ end
1232
+ code = response.code.to_i
1233
+ if code.between?(200, 299)
1234
+ Nordlet::Bank::Types::SecuritiesListBankResponse.load(response.body)
1235
+ else
1236
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
1237
+ raise error_class.new(response.body, code: code)
1238
+ end
1239
+ end
1240
+
1241
+ # @param request_options [Hash]
1242
+ # @param params [Nordlet::Bank::Types::SecuritiesGetBankRequest]
1243
+ # @option request_options [String] :base_url
1244
+ # @option request_options [Hash{String => Object}] :additional_headers
1245
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
1246
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
1247
+ # @option request_options [Integer] :timeout_in_seconds
1248
+ #
1249
+ # @return [Nordlet::Bank::Types::SecuritiesGetBankResponse]
1250
+ def securities_get(request_options: {}, **params)
1251
+ params = Nordlet::Internal::Types::Utils.normalize_keys(params)
1252
+ request = Nordlet::Internal::JSON::Request.new(
1253
+ base_url: request_options[:base_url],
1254
+ method: "POST",
1255
+ path: "v1/bank/securities/get",
1256
+ body: Nordlet::Bank::Types::SecuritiesGetBankRequest.new(params).to_h,
1257
+ request_options: request_options
1258
+ )
1259
+ begin
1260
+ response = @client.send(request)
1261
+ rescue Net::HTTPRequestTimeout
1262
+ raise Nordlet::Errors::TimeoutError
1263
+ end
1264
+ code = response.code.to_i
1265
+ if code.between?(200, 299)
1266
+ Nordlet::Bank::Types::SecuritiesGetBankResponse.load(response.body)
1267
+ else
1268
+ error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
1269
+ raise error_class.new(response.body, code: code)
1270
+ end
1271
+ end
1272
+
1177
1273
  # @param request_options [Hash]
1178
1274
  # @param params [Nordlet::Bank::Types::FeedsBanksListBankRequest]
1179
1275
  # @option request_options [String] :base_url
@@ -8,6 +8,7 @@ module Nordlet
8
8
 
9
9
  BANK = "bank"
10
10
  STRIPE = "stripe"
11
+ BROKER = "broker"
11
12
  end
12
13
  end
13
14
  end
@@ -8,6 +8,7 @@ module Nordlet
8
8
 
9
9
  BANK = "bank"
10
10
  STRIPE = "stripe"
11
+ BROKER = "broker"
11
12
  end
12
13
  end
13
14
  end
@@ -8,6 +8,7 @@ module Nordlet
8
8
 
9
9
  BANK = "bank"
10
10
  STRIPE = "stripe"
11
+ BROKER = "broker"
11
12
  end
12
13
  end
13
14
  end
@@ -8,6 +8,7 @@ module Nordlet
8
8
 
9
9
  BANK = "bank"
10
10
  STRIPE = "stripe"
11
+ BROKER = "broker"
11
12
  end
12
13
  end
13
14
  end
@@ -8,6 +8,7 @@ module Nordlet
8
8
 
9
9
  BANK = "bank"
10
10
  STRIPE = "stripe"
11
+ BROKER = "broker"
11
12
  end
12
13
  end
13
14
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Bank
5
+ module Types
6
+ class SecuritiesGetBankRequest < Internal::Types::Model
7
+ field :id, -> { String }, optional: false, nullable: false
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Bank
5
+ module Types
6
+ class SecuritiesGetBankResponse < Internal::Types::Model
7
+ field :id, -> { String }, optional: false, nullable: false
8
+
9
+ field :bank_account_id, -> { String }, optional: false, nullable: false, api_name: "bankAccountId"
10
+
11
+ field :broker, -> { String }, optional: false, nullable: false
12
+
13
+ field :broker_account, -> { String }, optional: false, nullable: false, api_name: "brokerAccount"
14
+
15
+ field :period, -> { String }, optional: false, nullable: false
16
+
17
+ field :file_name, -> { String }, optional: false, nullable: true, api_name: "fileName"
18
+
19
+ field :operation_count, -> { Integer }, optional: false, nullable: false, api_name: "operationCount"
20
+
21
+ field :duplicate_count, -> { Integer }, optional: false, nullable: false, api_name: "duplicateCount"
22
+
23
+ field :posted_count, -> { Integer }, optional: false, nullable: false, api_name: "postedCount"
24
+
25
+ field :not_posted_count, -> { Integer }, optional: false, nullable: false, api_name: "notPostedCount"
26
+
27
+ field :realized_total, -> { String }, optional: false, nullable: false, api_name: "realizedTotal"
28
+
29
+ field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
30
+
31
+ field :operations, -> { Internal::Types::Array[Nordlet::Bank::Types::SecuritiesGetBankResponseOperationsItem] }, optional: false, nullable: false
32
+ end
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Bank
5
+ module Types
6
+ class SecuritiesGetBankResponseOperationsItem < Internal::Types::Model
7
+ field :id, -> { String }, optional: false, nullable: false
8
+
9
+ field :kind, -> { String }, optional: false, nullable: false
10
+
11
+ field :date, -> { String }, optional: false, nullable: false
12
+
13
+ field :time, -> { String }, optional: false, nullable: true
14
+
15
+ field :asset_category, -> { String }, optional: false, nullable: true, api_name: "assetCategory"
16
+
17
+ field :symbol, -> { String }, optional: false, nullable: true
18
+
19
+ field :description, -> { String }, optional: false, nullable: true
20
+
21
+ field :currency, -> { String }, optional: false, nullable: false
22
+
23
+ field :quantity, -> { String }, optional: false, nullable: true
24
+
25
+ field :price, -> { String }, optional: false, nullable: true
26
+
27
+ field :amount, -> { String }, optional: false, nullable: true
28
+
29
+ field :fee, -> { String }, optional: false, nullable: true
30
+
31
+ field :broker_realized, -> { String }, optional: false, nullable: true, api_name: "brokerRealized"
32
+
33
+ field :code, -> { String }, optional: false, nullable: true
34
+
35
+ field :fx_rate, -> { String }, optional: false, nullable: true, api_name: "fxRate"
36
+
37
+ field :cash_base, -> { String }, optional: false, nullable: true, api_name: "cashBase"
38
+
39
+ field :cost_base, -> { String }, optional: false, nullable: true, api_name: "costBase"
40
+
41
+ field :realized_base, -> { String }, optional: false, nullable: true, api_name: "realizedBase"
42
+
43
+ field :status, -> { Nordlet::Bank::Types::SecuritiesGetBankResponseOperationsItemStatus }, optional: false, nullable: false
44
+
45
+ field :note, -> { String }, optional: false, nullable: true
46
+
47
+ field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Bank
5
+ module Types
6
+ module SecuritiesGetBankResponseOperationsItemStatus
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ POSTED = "posted"
10
+ NOT_POSTED = "not_posted"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Bank
5
+ module Types
6
+ class SecuritiesImportBankRequest < Internal::Types::Model
7
+ field :bank_account_id, -> { String }, optional: false, nullable: false, api_name: "bankAccountId"
8
+
9
+ field :content, -> { String }, optional: false, nullable: false
10
+
11
+ field :file_name, -> { String }, optional: true, nullable: false, api_name: "fileName"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Bank
5
+ module Types
6
+ class SecuritiesImportBankResponse < Internal::Types::Model
7
+ field :id, -> { String }, optional: false, nullable: false
8
+
9
+ field :bank_account_id, -> { String }, optional: false, nullable: false, api_name: "bankAccountId"
10
+
11
+ field :broker, -> { String }, optional: false, nullable: false
12
+
13
+ field :broker_account, -> { String }, optional: false, nullable: false, api_name: "brokerAccount"
14
+
15
+ field :period, -> { String }, optional: false, nullable: false
16
+
17
+ field :file_name, -> { String }, optional: false, nullable: true, api_name: "fileName"
18
+
19
+ field :operation_count, -> { Integer }, optional: false, nullable: false, api_name: "operationCount"
20
+
21
+ field :duplicate_count, -> { Integer }, optional: false, nullable: false, api_name: "duplicateCount"
22
+
23
+ field :posted_count, -> { Integer }, optional: false, nullable: false, api_name: "postedCount"
24
+
25
+ field :not_posted_count, -> { Integer }, optional: false, nullable: false, api_name: "notPostedCount"
26
+
27
+ field :realized_total, -> { String }, optional: false, nullable: false, api_name: "realizedTotal"
28
+
29
+ field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Bank
5
+ module Types
6
+ class SecuritiesListBankRequest < 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::Bank::Types::SecuritiesListBankRequestSortItem] }, optional: true, nullable: false
12
+
13
+ field :filter, -> { Internal::Types::Array[Nordlet::Bank::Types::SecuritiesListBankRequestFilterItem] }, 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 Bank
5
+ module Types
6
+ class SecuritiesListBankRequestFilterItem < Internal::Types::Model
7
+ field :field, -> { String }, optional: false, nullable: false
8
+
9
+ field :op, -> { Nordlet::Bank::Types::SecuritiesListBankRequestFilterItemOp }, optional: false, nullable: false
10
+
11
+ field :value, -> { Nordlet::Bank::Types::SecuritiesListBankRequestFilterItemValue }, 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 Bank
5
+ module Types
6
+ module SecuritiesListBankRequestFilterItemOp
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 Bank
5
+ module Types
6
+ class SecuritiesListBankRequestFilterItemValue < 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::Bank::Types::SecuritiesListBankRequestFilterItemValueThreeItem] }
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Bank
5
+ module Types
6
+ class SecuritiesListBankRequestFilterItemValueThreeItem < 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 Bank
5
+ module Types
6
+ class SecuritiesListBankRequestSortItem < Internal::Types::Model
7
+ field :field, -> { String }, optional: false, nullable: false
8
+
9
+ field :dir, -> { Nordlet::Bank::Types::SecuritiesListBankRequestSortItemDir }, 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 Bank
5
+ module Types
6
+ module SecuritiesListBankRequestSortItemDir
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 Bank
5
+ module Types
6
+ class SecuritiesListBankResponse < Internal::Types::Model
7
+ field :rows, -> { Internal::Types::Array[Nordlet::Bank::Types::SecuritiesListBankResponseRowsItem] }, 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,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Bank
5
+ module Types
6
+ class SecuritiesListBankResponseRowsItem < Internal::Types::Model
7
+ field :id, -> { String }, optional: false, nullable: false
8
+
9
+ field :bank_account_id, -> { String }, optional: false, nullable: false, api_name: "bankAccountId"
10
+
11
+ field :broker, -> { String }, optional: false, nullable: false
12
+
13
+ field :broker_account, -> { String }, optional: false, nullable: false, api_name: "brokerAccount"
14
+
15
+ field :period, -> { String }, optional: false, nullable: false
16
+
17
+ field :file_name, -> { String }, optional: false, nullable: true, api_name: "fileName"
18
+
19
+ field :operation_count, -> { Integer }, optional: false, nullable: false, api_name: "operationCount"
20
+
21
+ field :duplicate_count, -> { Integer }, optional: false, nullable: false, api_name: "duplicateCount"
22
+
23
+ field :posted_count, -> { Integer }, optional: false, nullable: false, api_name: "postedCount"
24
+
25
+ field :not_posted_count, -> { Integer }, optional: false, nullable: false, api_name: "notPostedCount"
26
+
27
+ field :realized_total, -> { String }, optional: false, nullable: false, api_name: "realizedTotal"
28
+
29
+ field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
30
+ end
31
+ end
32
+ end
33
+ end