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,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ module AccountSetAutoTopUpBillingResponseStatus
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ TRIAL = "trial"
10
+ ACTIVE = "active"
11
+ SUSPENDED = "suspended"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class AccountSetAutoTopUpBillingResponseTopUp < Internal::Types::Model
7
+ field :min_cents, -> { Integer }, optional: false, nullable: false, api_name: "minCents"
8
+
9
+ field :max_cents, -> { Integer }, optional: false, nullable: false, api_name: "maxCents"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class AccountSetOverdraftCapBillingRequest < Internal::Types::Model
7
+ field :cap_cents, -> { Integer }, optional: false, nullable: false, api_name: "capCents"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class AccountSetOverdraftCapBillingResponse < Internal::Types::Model
7
+ field :plan, -> { Nordlet::Billing::Types::AccountSetOverdraftCapBillingResponsePlan }, optional: false, nullable: false
8
+
9
+ field :account_type, -> { Nordlet::Billing::Types::AccountSetOverdraftCapBillingResponseAccountType }, optional: false, nullable: false, api_name: "accountType"
10
+
11
+ field :status, -> { Nordlet::Billing::Types::AccountSetOverdraftCapBillingResponseStatus }, optional: false, nullable: false
12
+
13
+ field :balance_cents, -> { Integer }, optional: false, nullable: false, api_name: "balanceCents"
14
+
15
+ field :trial_ends_at, -> { String }, optional: false, nullable: true, api_name: "trialEndsAt"
16
+
17
+ field :first_top_up_at, -> { String }, optional: false, nullable: true, api_name: "firstTopUpAt"
18
+
19
+ field :last_charged_date, -> { String }, optional: false, nullable: true, api_name: "lastChargedDate"
20
+
21
+ field :payments_configured, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "paymentsConfigured"
22
+
23
+ field :has_payment_account, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasPaymentAccount"
24
+
25
+ field :has_subscription, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasSubscription"
26
+
27
+ field :payment_failed_at, -> { String }, optional: false, nullable: true, api_name: "paymentFailedAt"
28
+
29
+ field :payment_failed_invoice_url, -> { String }, optional: false, nullable: true, api_name: "paymentFailedInvoiceUrl"
30
+
31
+ field :month_to_date, -> { Nordlet::Billing::Types::AccountSetOverdraftCapBillingResponseMonthToDate }, optional: false, nullable: false, api_name: "monthToDate"
32
+
33
+ field :plans, -> { Internal::Types::Hash[String, Nordlet::Billing::Types::AccountSetOverdraftCapBillingResponsePlansValue] }, optional: false, nullable: false
34
+
35
+ field :api_request_eur, -> { String }, optional: false, nullable: false, api_name: "apiRequestEur"
36
+
37
+ field :top_up, -> { Nordlet::Billing::Types::AccountSetOverdraftCapBillingResponseTopUp }, optional: false, nullable: false, api_name: "topUp"
38
+
39
+ field :auto_top_up, -> { Nordlet::Billing::Types::AccountSetOverdraftCapBillingResponseAutoTopUp }, optional: false, nullable: false, api_name: "autoTopUp"
40
+
41
+ field :overdraft_cap_cents, -> { Integer }, optional: false, nullable: false, api_name: "overdraftCapCents"
42
+
43
+ field :overdraft_cap_max_cents, -> { Integer }, optional: false, nullable: false, api_name: "overdraftCapMaxCents"
44
+
45
+ field :trial_days, -> { Integer }, optional: false, nullable: false, api_name: "trialDays"
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ module AccountSetOverdraftCapBillingResponseAccountType
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ FLAT_RATE = "flat_rate"
10
+ PER_REQUEST = "per_request"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class AccountSetOverdraftCapBillingResponseAutoTopUp < Internal::Types::Model
7
+ field :enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
8
+
9
+ field :amount_cents, -> { Integer }, optional: false, nullable: false, api_name: "amountCents"
10
+
11
+ field :pending, -> { Internal::Types::Boolean }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class AccountSetOverdraftCapBillingResponseMonthToDate < Internal::Types::Model
7
+ field :from, -> { String }, optional: false, nullable: false
8
+
9
+ field :to, -> { String }, optional: false, nullable: false
10
+
11
+ field :api_requests, -> { Integer }, optional: false, nullable: false, api_name: "apiRequests"
12
+
13
+ field :sale_invoices, -> { Integer }, optional: false, nullable: false, api_name: "saleInvoices"
14
+
15
+ field :ocr_pages, -> { Integer }, optional: false, nullable: false, api_name: "ocrPages"
16
+
17
+ field :file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "fileBytes"
18
+
19
+ field :database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "databaseBytes"
20
+
21
+ field :archived_companies, -> { Integer }, optional: false, nullable: false, api_name: "archivedCompanies"
22
+
23
+ field :estimated_today_cents, -> { Integer }, optional: false, nullable: false, api_name: "estimatedTodayCents"
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ module AccountSetOverdraftCapBillingResponsePlan
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ STARTER = "starter"
10
+ BUSINESS = "business"
11
+ SCALE = "scale"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class AccountSetOverdraftCapBillingResponsePlansValue < Internal::Types::Model
7
+ field :monthly_fee_eur, -> { String }, optional: false, nullable: false, api_name: "monthlyFeeEur"
8
+
9
+ field :included_invoices, -> { Integer }, optional: false, nullable: false, api_name: "includedInvoices"
10
+
11
+ field :invoice_overage_eur, -> { String }, optional: false, nullable: false, api_name: "invoiceOverageEur"
12
+
13
+ field :included_database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "includedDatabaseBytes"
14
+
15
+ field :included_file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "includedFileBytes"
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ module AccountSetOverdraftCapBillingResponseStatus
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ TRIAL = "trial"
10
+ ACTIVE = "active"
11
+ SUSPENDED = "suspended"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class AccountSetOverdraftCapBillingResponseTopUp < Internal::Types::Model
7
+ field :min_cents, -> { Integer }, optional: false, nullable: false, api_name: "minCents"
8
+
9
+ field :max_cents, -> { Integer }, optional: false, nullable: false, api_name: "maxCents"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -6,6 +6,8 @@ module Nordlet
6
6
  class AccountSetPlanBillingResponse < Internal::Types::Model
7
7
  field :plan, -> { Nordlet::Billing::Types::AccountSetPlanBillingResponsePlan }, optional: false, nullable: false
8
8
 
9
+ field :account_type, -> { Nordlet::Billing::Types::AccountSetPlanBillingResponseAccountType }, optional: false, nullable: false, api_name: "accountType"
10
+
9
11
  field :status, -> { Nordlet::Billing::Types::AccountSetPlanBillingResponseStatus }, optional: false, nullable: false
10
12
 
11
13
  field :balance_cents, -> { Integer }, optional: false, nullable: false, api_name: "balanceCents"
@@ -30,8 +32,16 @@ module Nordlet
30
32
 
31
33
  field :plans, -> { Internal::Types::Hash[String, Nordlet::Billing::Types::AccountSetPlanBillingResponsePlansValue] }, optional: false, nullable: false
32
34
 
35
+ field :api_request_eur, -> { String }, optional: false, nullable: false, api_name: "apiRequestEur"
36
+
33
37
  field :top_up, -> { Nordlet::Billing::Types::AccountSetPlanBillingResponseTopUp }, optional: false, nullable: false, api_name: "topUp"
34
38
 
39
+ field :auto_top_up, -> { Nordlet::Billing::Types::AccountSetPlanBillingResponseAutoTopUp }, optional: false, nullable: false, api_name: "autoTopUp"
40
+
41
+ field :overdraft_cap_cents, -> { Integer }, optional: false, nullable: false, api_name: "overdraftCapCents"
42
+
43
+ field :overdraft_cap_max_cents, -> { Integer }, optional: false, nullable: false, api_name: "overdraftCapMaxCents"
44
+
35
45
  field :trial_days, -> { Integer }, optional: false, nullable: false, api_name: "trialDays"
36
46
  end
37
47
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ module AccountSetPlanBillingResponseAccountType
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ FLAT_RATE = "flat_rate"
10
+ PER_REQUEST = "per_request"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class AccountSetPlanBillingResponseAutoTopUp < Internal::Types::Model
7
+ field :enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
8
+
9
+ field :amount_cents, -> { Integer }, optional: false, nullable: false, api_name: "amountCents"
10
+
11
+ field :pending, -> { Internal::Types::Boolean }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -10,6 +10,8 @@ module Nordlet
10
10
 
11
11
  field :api_requests, -> { Integer }, optional: false, nullable: false, api_name: "apiRequests"
12
12
 
13
+ field :sale_invoices, -> { Integer }, optional: false, nullable: false, api_name: "saleInvoices"
14
+
13
15
  field :ocr_pages, -> { Integer }, optional: false, nullable: false, api_name: "ocrPages"
14
16
 
15
17
  field :file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "fileBytes"
@@ -6,9 +6,9 @@ module Nordlet
6
6
  class AccountSetPlanBillingResponsePlansValue < Internal::Types::Model
7
7
  field :monthly_fee_eur, -> { String }, optional: false, nullable: false, api_name: "monthlyFeeEur"
8
8
 
9
- field :included_requests, -> { Integer }, optional: false, nullable: false, api_name: "includedRequests"
9
+ field :included_invoices, -> { Integer }, optional: false, nullable: false, api_name: "includedInvoices"
10
10
 
11
- field :request_overage_eur, -> { String }, optional: false, nullable: false, api_name: "requestOverageEur"
11
+ field :invoice_overage_eur, -> { String }, optional: false, nullable: false, api_name: "invoiceOverageEur"
12
12
 
13
13
  field :included_database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "includedDatabaseBytes"
14
14
 
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class FlatRateConfirmBillingRequest < Internal::Types::Model
7
+ field :session_id, -> { String }, optional: false, nullable: false, api_name: "sessionId"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class FlatRateConfirmBillingResponse < Internal::Types::Model
7
+ field :plan, -> { Nordlet::Billing::Types::FlatRateConfirmBillingResponsePlan }, optional: false, nullable: false
8
+
9
+ field :account_type, -> { Nordlet::Billing::Types::FlatRateConfirmBillingResponseAccountType }, optional: false, nullable: false, api_name: "accountType"
10
+
11
+ field :status, -> { Nordlet::Billing::Types::FlatRateConfirmBillingResponseStatus }, optional: false, nullable: false
12
+
13
+ field :balance_cents, -> { Integer }, optional: false, nullable: false, api_name: "balanceCents"
14
+
15
+ field :trial_ends_at, -> { String }, optional: false, nullable: true, api_name: "trialEndsAt"
16
+
17
+ field :first_top_up_at, -> { String }, optional: false, nullable: true, api_name: "firstTopUpAt"
18
+
19
+ field :last_charged_date, -> { String }, optional: false, nullable: true, api_name: "lastChargedDate"
20
+
21
+ field :payments_configured, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "paymentsConfigured"
22
+
23
+ field :has_payment_account, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasPaymentAccount"
24
+
25
+ field :has_subscription, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasSubscription"
26
+
27
+ field :payment_failed_at, -> { String }, optional: false, nullable: true, api_name: "paymentFailedAt"
28
+
29
+ field :payment_failed_invoice_url, -> { String }, optional: false, nullable: true, api_name: "paymentFailedInvoiceUrl"
30
+
31
+ field :month_to_date, -> { Nordlet::Billing::Types::FlatRateConfirmBillingResponseMonthToDate }, optional: false, nullable: false, api_name: "monthToDate"
32
+
33
+ field :plans, -> { Internal::Types::Hash[String, Nordlet::Billing::Types::FlatRateConfirmBillingResponsePlansValue] }, optional: false, nullable: false
34
+
35
+ field :api_request_eur, -> { String }, optional: false, nullable: false, api_name: "apiRequestEur"
36
+
37
+ field :top_up, -> { Nordlet::Billing::Types::FlatRateConfirmBillingResponseTopUp }, optional: false, nullable: false, api_name: "topUp"
38
+
39
+ field :auto_top_up, -> { Nordlet::Billing::Types::FlatRateConfirmBillingResponseAutoTopUp }, optional: false, nullable: false, api_name: "autoTopUp"
40
+
41
+ field :overdraft_cap_cents, -> { Integer }, optional: false, nullable: false, api_name: "overdraftCapCents"
42
+
43
+ field :overdraft_cap_max_cents, -> { Integer }, optional: false, nullable: false, api_name: "overdraftCapMaxCents"
44
+
45
+ field :trial_days, -> { Integer }, optional: false, nullable: false, api_name: "trialDays"
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ module FlatRateConfirmBillingResponseAccountType
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ FLAT_RATE = "flat_rate"
10
+ PER_REQUEST = "per_request"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class FlatRateConfirmBillingResponseAutoTopUp < Internal::Types::Model
7
+ field :enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
8
+
9
+ field :amount_cents, -> { Integer }, optional: false, nullable: false, api_name: "amountCents"
10
+
11
+ field :pending, -> { Internal::Types::Boolean }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class FlatRateConfirmBillingResponseMonthToDate < Internal::Types::Model
7
+ field :from, -> { String }, optional: false, nullable: false
8
+
9
+ field :to, -> { String }, optional: false, nullable: false
10
+
11
+ field :api_requests, -> { Integer }, optional: false, nullable: false, api_name: "apiRequests"
12
+
13
+ field :sale_invoices, -> { Integer }, optional: false, nullable: false, api_name: "saleInvoices"
14
+
15
+ field :ocr_pages, -> { Integer }, optional: false, nullable: false, api_name: "ocrPages"
16
+
17
+ field :file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "fileBytes"
18
+
19
+ field :database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "databaseBytes"
20
+
21
+ field :archived_companies, -> { Integer }, optional: false, nullable: false, api_name: "archivedCompanies"
22
+
23
+ field :estimated_today_cents, -> { Integer }, optional: false, nullable: false, api_name: "estimatedTodayCents"
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ module FlatRateConfirmBillingResponsePlan
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ STARTER = "starter"
10
+ BUSINESS = "business"
11
+ SCALE = "scale"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class FlatRateConfirmBillingResponsePlansValue < Internal::Types::Model
7
+ field :monthly_fee_eur, -> { String }, optional: false, nullable: false, api_name: "monthlyFeeEur"
8
+
9
+ field :included_invoices, -> { Integer }, optional: false, nullable: false, api_name: "includedInvoices"
10
+
11
+ field :invoice_overage_eur, -> { String }, optional: false, nullable: false, api_name: "invoiceOverageEur"
12
+
13
+ field :included_database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "includedDatabaseBytes"
14
+
15
+ field :included_file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "includedFileBytes"
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ module FlatRateConfirmBillingResponseStatus
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ TRIAL = "trial"
10
+ ACTIVE = "active"
11
+ SUSPENDED = "suspended"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class FlatRateConfirmBillingResponseTopUp < Internal::Types::Model
7
+ field :min_cents, -> { Integer }, optional: false, nullable: false, api_name: "minCents"
8
+
9
+ field :max_cents, -> { Integer }, optional: false, nullable: false, api_name: "maxCents"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class FlatRateCreateBillingRequest < Internal::Types::Model
7
+ field :locale, -> { Nordlet::Billing::Types::FlatRateCreateBillingRequestLocale }, optional: true, nullable: false
8
+
9
+ field :plan, -> { Nordlet::Billing::Types::FlatRateCreateBillingRequestPlan }, optional: true, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ module FlatRateCreateBillingRequestLocale
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ EN = "en"
10
+ LT = "lt"
11
+ DE = "de"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ module FlatRateCreateBillingRequestPlan
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ STARTER = "starter"
10
+ BUSINESS = "business"
11
+ SCALE = "scale"
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class FlatRateCreateBillingResponse < Internal::Types::Model
7
+ field :url, -> { String }, optional: false, nullable: false
8
+
9
+ field :session_id, -> { String }, optional: false, nullable: false, api_name: "sessionId"
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class TopupConfirmBillingRequest < Internal::Types::Model
7
+ field :session_id, -> { String }, optional: false, nullable: false, api_name: "sessionId"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class TopupConfirmBillingResponse < Internal::Types::Model
7
+ field :plan, -> { Nordlet::Billing::Types::TopupConfirmBillingResponsePlan }, optional: false, nullable: false
8
+
9
+ field :account_type, -> { Nordlet::Billing::Types::TopupConfirmBillingResponseAccountType }, optional: false, nullable: false, api_name: "accountType"
10
+
11
+ field :status, -> { Nordlet::Billing::Types::TopupConfirmBillingResponseStatus }, optional: false, nullable: false
12
+
13
+ field :balance_cents, -> { Integer }, optional: false, nullable: false, api_name: "balanceCents"
14
+
15
+ field :trial_ends_at, -> { String }, optional: false, nullable: true, api_name: "trialEndsAt"
16
+
17
+ field :first_top_up_at, -> { String }, optional: false, nullable: true, api_name: "firstTopUpAt"
18
+
19
+ field :last_charged_date, -> { String }, optional: false, nullable: true, api_name: "lastChargedDate"
20
+
21
+ field :payments_configured, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "paymentsConfigured"
22
+
23
+ field :has_payment_account, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasPaymentAccount"
24
+
25
+ field :has_subscription, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "hasSubscription"
26
+
27
+ field :payment_failed_at, -> { String }, optional: false, nullable: true, api_name: "paymentFailedAt"
28
+
29
+ field :payment_failed_invoice_url, -> { String }, optional: false, nullable: true, api_name: "paymentFailedInvoiceUrl"
30
+
31
+ field :month_to_date, -> { Nordlet::Billing::Types::TopupConfirmBillingResponseMonthToDate }, optional: false, nullable: false, api_name: "monthToDate"
32
+
33
+ field :plans, -> { Internal::Types::Hash[String, Nordlet::Billing::Types::TopupConfirmBillingResponsePlansValue] }, optional: false, nullable: false
34
+
35
+ field :api_request_eur, -> { String }, optional: false, nullable: false, api_name: "apiRequestEur"
36
+
37
+ field :top_up, -> { Nordlet::Billing::Types::TopupConfirmBillingResponseTopUp }, optional: false, nullable: false, api_name: "topUp"
38
+
39
+ field :auto_top_up, -> { Nordlet::Billing::Types::TopupConfirmBillingResponseAutoTopUp }, optional: false, nullable: false, api_name: "autoTopUp"
40
+
41
+ field :overdraft_cap_cents, -> { Integer }, optional: false, nullable: false, api_name: "overdraftCapCents"
42
+
43
+ field :overdraft_cap_max_cents, -> { Integer }, optional: false, nullable: false, api_name: "overdraftCapMaxCents"
44
+
45
+ field :trial_days, -> { Integer }, optional: false, nullable: false, api_name: "trialDays"
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ module TopupConfirmBillingResponseAccountType
7
+ extend Nordlet::Internal::Types::Enum
8
+
9
+ FLAT_RATE = "flat_rate"
10
+ PER_REQUEST = "per_request"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Nordlet
4
+ module Billing
5
+ module Types
6
+ class TopupConfirmBillingResponseAutoTopUp < Internal::Types::Model
7
+ field :enabled, -> { Internal::Types::Boolean }, optional: false, nullable: false
8
+
9
+ field :amount_cents, -> { Integer }, optional: false, nullable: false, api_name: "amountCents"
10
+
11
+ field :pending, -> { Internal::Types::Boolean }, optional: false, nullable: false
12
+ end
13
+ end
14
+ end
15
+ end