nordlet 0.6.5 → 0.6.8
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.
- checksums.yaml +4 -4
- data/lib/nordlet/account/client.rb +130 -7
- data/lib/nordlet/account/types/brand_get_account_request.rb +9 -0
- data/lib/nordlet/account/types/brand_get_account_response.rb +17 -0
- data/lib/nordlet/account/types/brand_update_account_request.rb +17 -0
- data/lib/nordlet/account/types/brand_update_account_response.rb +17 -0
- data/lib/nordlet/account/types/companies_convert_to_live_account_request.rb +11 -0
- data/lib/nordlet/account/types/companies_convert_to_live_account_response.rb +13 -0
- data/lib/nordlet/account/types/companies_create_account_response.rb +10 -0
- data/lib/nordlet/account/types/companies_create_account_response_vat_period.rb +17 -0
- data/lib/nordlet/account/types/me_account_response_billing.rb +2 -0
- data/lib/nordlet/account/types/me_account_response_companies_item.rb +10 -0
- data/lib/nordlet/account/types/me_account_response_companies_item_vat_period.rb +17 -0
- data/lib/nordlet/account/types/me_account_response_user.rb +2 -0
- data/lib/nordlet/bank/client.rb +183 -14
- data/lib/nordlet/bank/types/reconciliation_get_bank_request.rb +15 -0
- data/lib/nordlet/bank/types/reconciliation_get_bank_response.rb +35 -0
- data/lib/nordlet/bank/types/reconciliation_get_bank_response_statement_balance_source.rb +14 -0
- data/lib/nordlet/bank/types/reconciliation_get_bank_response_unbooked_lines_item.rb +39 -0
- data/lib/nordlet/bank/types/reconciliation_get_bank_response_unbooked_lines_item_status.rb +15 -0
- data/lib/nordlet/bank/types/transactions_ignore_bank_request.rb +13 -0
- data/lib/nordlet/bank/types/transactions_ignore_bank_response.rb +39 -0
- data/lib/nordlet/bank/types/transactions_ignore_bank_response_status.rb +15 -0
- data/lib/nordlet/bank/types/transactions_import_bank_request.rb +4 -0
- data/lib/nordlet/bank/types/transactions_import_bank_response.rb +2 -0
- data/lib/nordlet/bank/types/transactions_import_bank_response_duplicates_item.rb +17 -0
- data/lib/nordlet/bank/types/transactions_list_bank_response_rows_item.rb +2 -0
- data/lib/nordlet/bank/types/transactions_list_bank_response_rows_item_status.rb +1 -0
- data/lib/nordlet/bank/types/transactions_match_bank_request.rb +2 -0
- data/lib/nordlet/bank/types/transactions_match_bank_request_remainder.rb +13 -0
- data/lib/nordlet/bank/types/transactions_match_bank_request_remainder_treatment.rb +15 -0
- data/lib/nordlet/bank/types/transactions_match_bank_response.rb +2 -0
- data/lib/nordlet/bank/types/transactions_match_bank_response_status.rb +1 -0
- data/lib/nordlet/bank/types/transactions_match_many_bank_response.rb +2 -0
- data/lib/nordlet/bank/types/transactions_match_many_bank_response_status.rb +1 -0
- data/lib/nordlet/bank/types/transactions_post_bank_request.rb +25 -0
- data/lib/nordlet/bank/types/transactions_post_bank_response.rb +39 -0
- data/lib/nordlet/bank/types/transactions_post_bank_response_status.rb +15 -0
- data/lib/nordlet/bank/types/transactions_record_bank_response.rb +2 -0
- data/lib/nordlet/bank/types/transactions_record_bank_response_status.rb +1 -0
- data/lib/nordlet/bank/types/transactions_unignore_bank_request.rb +11 -0
- data/lib/nordlet/bank/types/transactions_unignore_bank_response.rb +39 -0
- data/lib/nordlet/bank/types/transactions_unignore_bank_response_status.rb +15 -0
- data/lib/nordlet/bank/types/transactions_unmatch_bank_response.rb +2 -0
- data/lib/nordlet/bank/types/transactions_unmatch_bank_response_status.rb +1 -0
- data/lib/nordlet/billing/client.rb +50 -10
- data/lib/nordlet/billing/types/account_get_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_get_billing_response_month_to_date.rb +0 -2
- data/lib/nordlet/billing/types/account_set_account_type_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_account_type_billing_response_month_to_date.rb +0 -2
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_auto_top_up_billing_response_month_to_date.rb +0 -2
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_overdraft_cap_billing_response_month_to_date.rb +0 -2
- data/lib/nordlet/billing/types/account_set_plan_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/account_set_plan_billing_response_month_to_date.rb +0 -2
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/flat_rate_confirm_billing_response_month_to_date.rb +0 -2
- data/lib/nordlet/billing/types/flat_rate_create_billing_request.rb +2 -0
- data/lib/nordlet/billing/types/free_sandbox_start_billing_request.rb +9 -0
- data/lib/nordlet/billing/types/free_sandbox_start_billing_response.rb +55 -0
- data/lib/nordlet/billing/types/free_sandbox_start_billing_response_account_type.rb +14 -0
- data/lib/nordlet/billing/types/free_sandbox_start_billing_response_auto_top_up.rb +15 -0
- data/lib/nordlet/billing/types/free_sandbox_start_billing_response_month_to_date.rb +25 -0
- data/lib/nordlet/billing/types/free_sandbox_start_billing_response_plan.rb +16 -0
- data/lib/nordlet/billing/types/free_sandbox_start_billing_response_plans_value.rb +19 -0
- data/lib/nordlet/billing/types/free_sandbox_start_billing_response_site.rb +14 -0
- data/lib/nordlet/billing/types/free_sandbox_start_billing_response_status.rb +15 -0
- data/lib/nordlet/billing/types/free_sandbox_start_billing_response_top_up.rb +13 -0
- data/lib/nordlet/billing/types/subscription_cancel_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/subscription_cancel_billing_response_month_to_date.rb +0 -2
- data/lib/nordlet/billing/types/topup_confirm_billing_response.rb +2 -0
- data/lib/nordlet/billing/types/topup_confirm_billing_response_month_to_date.rb +0 -2
- data/lib/nordlet/billing/types/topup_create_billing_request.rb +2 -0
- data/lib/nordlet/calendar/client.rb +3 -1
- data/lib/nordlet/capture/client.rb +6 -188
- data/lib/nordlet/capture/types/documents_confirm_capture_response_invoice.rb +6 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_response_invoice_status.rb +1 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice.rb +6 -0
- data/lib/nordlet/capture/types/documents_confirm_capture_response_opposite_invoice_status.rb +1 -0
- data/lib/nordlet/cash/client.rb +11 -10
- data/lib/nordlet/declarations/client.rb +7 -3
- data/lib/nordlet/declarations/types/configs_list_declarations_response_rows_item_fields_item.rb +2 -0
- data/lib/nordlet/declarations/types/configs_update_declarations_response_fields_item.rb +2 -0
- data/lib/nordlet/hr/client.rb +3 -2
- data/lib/nordlet/ledger/client.rb +46 -5
- data/lib/nordlet/ledger/types/journal_transactions_get_ledger_response.rb +2 -0
- data/lib/nordlet/ledger/types/journal_transactions_reverse_ledger_request.rb +15 -0
- data/lib/nordlet/ledger/types/journal_transactions_reverse_ledger_response.rb +27 -0
- data/lib/nordlet/ledger/types/journal_transactions_reverse_ledger_response_status.rb +14 -0
- data/lib/nordlet/ledger/types/periods_lock_ledger_response.rb +2 -0
- data/lib/nordlet/ledger/types/periods_lock_ledger_response_warnings_item.rb +17 -0
- data/lib/nordlet/ledger/types/periods_lock_ledger_response_warnings_item_code.rb +21 -0
- data/lib/nordlet/partners/client.rb +10 -8
- data/lib/nordlet/public/types/invoices_get_public_response.rb +2 -0
- data/lib/nordlet/purchases/client.rb +77 -20
- data/lib/nordlet/purchases/types/invoices_create_purchases_request.rb +6 -0
- data/lib/nordlet/purchases/types/invoices_create_purchases_response.rb +8 -0
- data/lib/nordlet/purchases/types/invoices_create_purchases_response_status.rb +1 -0
- data/lib/nordlet/purchases/types/invoices_create_purchases_response_warnings_item.rb +13 -0
- data/lib/nordlet/purchases/types/invoices_get_purchases_response.rb +6 -0
- data/lib/nordlet/purchases/types/invoices_get_purchases_response_status.rb +1 -0
- data/lib/nordlet/purchases/types/invoices_list_purchases_response_rows_item.rb +6 -0
- data/lib/nordlet/purchases/types/invoices_list_purchases_response_rows_item_status.rb +1 -0
- data/lib/nordlet/purchases/types/invoices_register_purchases_response.rb +8 -0
- data/lib/nordlet/purchases/types/invoices_register_purchases_response_status.rb +1 -0
- data/lib/nordlet/purchases/types/invoices_register_purchases_response_warnings_item.rb +13 -0
- data/lib/nordlet/purchases/types/invoices_reverse_purchases_request.rb +15 -0
- data/lib/nordlet/purchases/types/invoices_reverse_purchases_response.rb +71 -0
- data/lib/nordlet/purchases/types/invoices_reverse_purchases_response_lines_item.rb +53 -0
- data/lib/nordlet/purchases/types/invoices_reverse_purchases_response_payment_status.rb +15 -0
- data/lib/nordlet/purchases/types/invoices_reverse_purchases_response_status.rb +15 -0
- data/lib/nordlet/{capture/types/documents_upload_capture_response_extraction_document_type.rb → purchases/types/invoices_reverse_purchases_response_type.rb} +2 -2
- data/lib/nordlet/purchases/types/invoices_update_purchases_request.rb +6 -0
- data/lib/nordlet/purchases/types/invoices_update_purchases_response.rb +6 -0
- data/lib/nordlet/purchases/types/invoices_update_purchases_response_status.rb +1 -0
- data/lib/nordlet/reference/client.rb +8 -2
- data/lib/nordlet/reference/types/vat_resolve_reference_request.rb +2 -0
- data/lib/nordlet/reference/types/vat_resolve_reference_request_side.rb +14 -0
- data/lib/nordlet/reference/types/vat_resolve_reference_response.rb +2 -0
- data/lib/nordlet/reports/client.rb +42 -0
- data/lib/nordlet/reports/types/period_checklist_reports_request.rb +11 -0
- data/lib/nordlet/reports/types/period_checklist_reports_response.rb +17 -0
- data/lib/nordlet/reports/types/period_checklist_reports_response_items_item.rb +17 -0
- data/lib/nordlet/reports/types/period_checklist_reports_response_items_item_code.rb +21 -0
- data/lib/nordlet/sales/client.rb +19 -8
- data/lib/nordlet/sales/types/invoices_create_sales_response.rb +2 -0
- data/lib/nordlet/sales/types/invoices_create_sales_response_warnings_item.rb +13 -0
- data/lib/nordlet/sales/types/invoices_issue_sales_response.rb +2 -0
- data/lib/nordlet/sales/types/invoices_issue_sales_response_warnings_item.rb +13 -0
- data/lib/nordlet/sales/types/invoices_view_sales_response.rb +2 -0
- data/lib/nordlet/version.rb +1 -1
- data/lib/nordlet.rb +55 -19
- data/reference.md +1672 -1145
- metadata +57 -21
- data/lib/nordlet/capture/types/documents_upload_capture_request.rb +0 -15
- data/lib/nordlet/capture/types/documents_upload_capture_response.rb +0 -43
- data/lib/nordlet/capture/types/documents_upload_capture_response_extraction.rb +0 -33
- data/lib/nordlet/capture/types/documents_upload_capture_response_extraction_lines_item.rb +0 -25
- data/lib/nordlet/capture/types/documents_upload_capture_response_extraction_opposite_lines_item.rb +0 -25
- data/lib/nordlet/capture/types/documents_upload_capture_response_extraction_supplier.rb +0 -19
- data/lib/nordlet/capture/types/documents_upload_capture_response_status.rb +0 -16
- data/lib/nordlet/capture/types/inbound_email_capture_request.rb +0 -27
- data/lib/nordlet/capture/types/inbound_email_capture_request_attachments_item.rb +0 -21
- data/lib/nordlet/capture/types/inbound_email_capture_request_to.rb +0 -15
- data/lib/nordlet/capture/types/inbound_email_capture_request_to_full_item.rb +0 -11
- data/lib/nordlet/capture/types/inbound_email_capture_response.rb +0 -15
- data/lib/nordlet/capture/types/settings_get_capture_request.rb +0 -9
- data/lib/nordlet/capture/types/settings_get_capture_response.rb +0 -17
- data/lib/nordlet/capture/types/settings_regenerate_intake_capture_request.rb +0 -9
- data/lib/nordlet/capture/types/settings_regenerate_intake_capture_response.rb +0 -17
- data/lib/nordlet/capture/types/settings_update_capture_request.rb +0 -13
- data/lib/nordlet/capture/types/settings_update_capture_response.rb +0 -17
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Bank
|
|
5
|
+
module Types
|
|
6
|
+
class ReconciliationGetBankResponse < Internal::Types::Model
|
|
7
|
+
field :bank_account_id, -> { String }, optional: false, nullable: false, api_name: "bankAccountId"
|
|
8
|
+
|
|
9
|
+
field :account_code, -> { String }, optional: false, nullable: false, api_name: "accountCode"
|
|
10
|
+
|
|
11
|
+
field :currency, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :date, -> { String }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :statement_balance, -> { String }, optional: false, nullable: true, api_name: "statementBalance"
|
|
16
|
+
|
|
17
|
+
field :statement_balance_source, -> { Nordlet::Bank::Types::ReconciliationGetBankResponseStatementBalanceSource }, optional: false, nullable: true, api_name: "statementBalanceSource"
|
|
18
|
+
|
|
19
|
+
field :statement_closing_date, -> { String }, optional: false, nullable: true, api_name: "statementClosingDate"
|
|
20
|
+
|
|
21
|
+
field :ledger_balance, -> { String }, optional: false, nullable: false, api_name: "ledgerBalance"
|
|
22
|
+
|
|
23
|
+
field :difference, -> { String }, optional: false, nullable: true
|
|
24
|
+
|
|
25
|
+
field :unbooked_count, -> { Integer }, optional: false, nullable: false, api_name: "unbookedCount"
|
|
26
|
+
|
|
27
|
+
field :unbooked_total, -> { String }, optional: false, nullable: false, api_name: "unbookedTotal"
|
|
28
|
+
|
|
29
|
+
field :unbooked_lines, -> { Internal::Types::Array[Nordlet::Bank::Types::ReconciliationGetBankResponseUnbookedLinesItem] }, optional: false, nullable: false, api_name: "unbookedLines"
|
|
30
|
+
|
|
31
|
+
field :warnings, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Bank
|
|
5
|
+
module Types
|
|
6
|
+
module ReconciliationGetBankResponseStatementBalanceSource
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
REQUEST = "request"
|
|
10
|
+
STATEMENT = "statement"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Bank
|
|
5
|
+
module Types
|
|
6
|
+
class ReconciliationGetBankResponseUnbookedLinesItem < 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 :date, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :amount, -> { String }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :currency, -> { String }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :counterparty_name, -> { String }, optional: false, nullable: true, api_name: "counterpartyName"
|
|
18
|
+
|
|
19
|
+
field :counterparty_iban, -> { String }, optional: false, nullable: true, api_name: "counterpartyIban"
|
|
20
|
+
|
|
21
|
+
field :description, -> { String }, optional: false, nullable: true
|
|
22
|
+
|
|
23
|
+
field :external_id, -> { String }, optional: false, nullable: true, api_name: "externalId"
|
|
24
|
+
|
|
25
|
+
field :status, -> { Nordlet::Bank::Types::ReconciliationGetBankResponseUnbookedLinesItemStatus }, optional: false, nullable: false
|
|
26
|
+
|
|
27
|
+
field :matched_document_type, -> { String }, optional: false, nullable: true, api_name: "matchedDocumentType"
|
|
28
|
+
|
|
29
|
+
field :matched_document_id, -> { String }, optional: false, nullable: true, api_name: "matchedDocumentId"
|
|
30
|
+
|
|
31
|
+
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
32
|
+
|
|
33
|
+
field :ignore_reason, -> { String }, optional: false, nullable: true, api_name: "ignoreReason"
|
|
34
|
+
|
|
35
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Bank
|
|
5
|
+
module Types
|
|
6
|
+
module ReconciliationGetBankResponseUnbookedLinesItemStatus
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
NEW = "new"
|
|
10
|
+
MATCHED = "matched"
|
|
11
|
+
IGNORED = "ignored"
|
|
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 TransactionsIgnoreBankRequest < Internal::Types::Model
|
|
7
|
+
field :transaction_id, -> { String }, optional: false, nullable: false, api_name: "transactionId"
|
|
8
|
+
|
|
9
|
+
field :reason, -> { String }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Bank
|
|
5
|
+
module Types
|
|
6
|
+
class TransactionsIgnoreBankResponse < 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 :date, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :amount, -> { String }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :currency, -> { String }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :counterparty_name, -> { String }, optional: false, nullable: true, api_name: "counterpartyName"
|
|
18
|
+
|
|
19
|
+
field :counterparty_iban, -> { String }, optional: false, nullable: true, api_name: "counterpartyIban"
|
|
20
|
+
|
|
21
|
+
field :description, -> { String }, optional: false, nullable: true
|
|
22
|
+
|
|
23
|
+
field :external_id, -> { String }, optional: false, nullable: true, api_name: "externalId"
|
|
24
|
+
|
|
25
|
+
field :status, -> { Nordlet::Bank::Types::TransactionsIgnoreBankResponseStatus }, optional: false, nullable: false
|
|
26
|
+
|
|
27
|
+
field :matched_document_type, -> { String }, optional: false, nullable: true, api_name: "matchedDocumentType"
|
|
28
|
+
|
|
29
|
+
field :matched_document_id, -> { String }, optional: false, nullable: true, api_name: "matchedDocumentId"
|
|
30
|
+
|
|
31
|
+
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
32
|
+
|
|
33
|
+
field :ignore_reason, -> { String }, optional: false, nullable: true, api_name: "ignoreReason"
|
|
34
|
+
|
|
35
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Bank
|
|
5
|
+
module Types
|
|
6
|
+
module TransactionsIgnoreBankResponseStatus
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
NEW = "new"
|
|
10
|
+
MATCHED = "matched"
|
|
11
|
+
IGNORED = "ignored"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -7,6 +7,10 @@ module Nordlet
|
|
|
7
7
|
field :bank_account_id, -> { String }, optional: false, nullable: false, api_name: "bankAccountId"
|
|
8
8
|
|
|
9
9
|
field :transactions, -> { Internal::Types::Array[Nordlet::Bank::Types::TransactionsImportBankRequestTransactionsItem] }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :opening_balance, -> { String }, optional: true, nullable: false, api_name: "openingBalance"
|
|
12
|
+
|
|
13
|
+
field :closing_balance, -> { String }, optional: true, nullable: false, api_name: "closingBalance"
|
|
10
14
|
end
|
|
11
15
|
end
|
|
12
16
|
end
|
|
@@ -7,6 +7,8 @@ module Nordlet
|
|
|
7
7
|
field :imported, -> { Integer }, optional: false, nullable: false
|
|
8
8
|
|
|
9
9
|
field :skipped, -> { Integer }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :duplicates, -> { Internal::Types::Array[Nordlet::Bank::Types::TransactionsImportBankResponseDuplicatesItem] }, optional: false, nullable: false
|
|
10
12
|
end
|
|
11
13
|
end
|
|
12
14
|
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Bank
|
|
5
|
+
module Types
|
|
6
|
+
class TransactionsImportBankResponseDuplicatesItem < Internal::Types::Model
|
|
7
|
+
field :index, -> { Integer }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :existing_transaction_id, -> { String }, optional: false, nullable: false, api_name: "existingTransactionId"
|
|
10
|
+
|
|
11
|
+
field :date, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :amount, -> { String }, optional: false, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -30,6 +30,8 @@ module Nordlet
|
|
|
30
30
|
|
|
31
31
|
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
32
32
|
|
|
33
|
+
field :ignore_reason, -> { String }, optional: false, nullable: true, api_name: "ignoreReason"
|
|
34
|
+
|
|
33
35
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
34
36
|
end
|
|
35
37
|
end
|
|
@@ -11,6 +11,8 @@ module Nordlet
|
|
|
11
11
|
field :document_id, -> { String }, optional: false, nullable: false, api_name: "documentId"
|
|
12
12
|
|
|
13
13
|
field :invoice_amount, -> { String }, optional: true, nullable: false, api_name: "invoiceAmount"
|
|
14
|
+
|
|
15
|
+
field :remainder, -> { Nordlet::Bank::Types::TransactionsMatchBankRequestRemainder }, optional: true, nullable: false
|
|
14
16
|
end
|
|
15
17
|
end
|
|
16
18
|
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Bank
|
|
5
|
+
module Types
|
|
6
|
+
class TransactionsMatchBankRequestRemainder < Internal::Types::Model
|
|
7
|
+
field :treatment, -> { Nordlet::Bank::Types::TransactionsMatchBankRequestRemainderTreatment }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :account_code, -> { String }, optional: true, nullable: false, api_name: "accountCode"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Bank
|
|
5
|
+
module Types
|
|
6
|
+
module TransactionsMatchBankRequestRemainderTreatment
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
ADVANCE = "advance"
|
|
10
|
+
LEAVE_OPEN = "leave_open"
|
|
11
|
+
WRITE_OFF = "write_off"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -30,6 +30,8 @@ module Nordlet
|
|
|
30
30
|
|
|
31
31
|
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
32
32
|
|
|
33
|
+
field :ignore_reason, -> { String }, optional: false, nullable: true, api_name: "ignoreReason"
|
|
34
|
+
|
|
33
35
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
34
36
|
end
|
|
35
37
|
end
|
|
@@ -30,6 +30,8 @@ module Nordlet
|
|
|
30
30
|
|
|
31
31
|
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
32
32
|
|
|
33
|
+
field :ignore_reason, -> { String }, optional: false, nullable: true, api_name: "ignoreReason"
|
|
34
|
+
|
|
33
35
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
34
36
|
end
|
|
35
37
|
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Bank
|
|
5
|
+
module Types
|
|
6
|
+
class TransactionsPostBankRequest < Internal::Types::Model
|
|
7
|
+
field :transaction_id, -> { String }, optional: false, nullable: false, api_name: "transactionId"
|
|
8
|
+
|
|
9
|
+
field :account_code, -> { String }, optional: false, nullable: false, api_name: "accountCode"
|
|
10
|
+
|
|
11
|
+
field :tax_payment_id, -> { String }, optional: true, nullable: false, api_name: "taxPaymentId"
|
|
12
|
+
|
|
13
|
+
field :partner_id, -> { String }, optional: true, nullable: false, api_name: "partnerId"
|
|
14
|
+
|
|
15
|
+
field :cost_center_id, -> { String }, optional: true, nullable: false, api_name: "costCenterId"
|
|
16
|
+
|
|
17
|
+
field :project_id, -> { String }, optional: true, nullable: false, api_name: "projectId"
|
|
18
|
+
|
|
19
|
+
field :description, -> { String }, optional: true, nullable: false
|
|
20
|
+
|
|
21
|
+
field :vat_classifier_code, -> { String }, optional: true, nullable: false, api_name: "vatClassifierCode"
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Bank
|
|
5
|
+
module Types
|
|
6
|
+
class TransactionsPostBankResponse < 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 :date, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :amount, -> { String }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :currency, -> { String }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :counterparty_name, -> { String }, optional: false, nullable: true, api_name: "counterpartyName"
|
|
18
|
+
|
|
19
|
+
field :counterparty_iban, -> { String }, optional: false, nullable: true, api_name: "counterpartyIban"
|
|
20
|
+
|
|
21
|
+
field :description, -> { String }, optional: false, nullable: true
|
|
22
|
+
|
|
23
|
+
field :external_id, -> { String }, optional: false, nullable: true, api_name: "externalId"
|
|
24
|
+
|
|
25
|
+
field :status, -> { Nordlet::Bank::Types::TransactionsPostBankResponseStatus }, optional: false, nullable: false
|
|
26
|
+
|
|
27
|
+
field :matched_document_type, -> { String }, optional: false, nullable: true, api_name: "matchedDocumentType"
|
|
28
|
+
|
|
29
|
+
field :matched_document_id, -> { String }, optional: false, nullable: true, api_name: "matchedDocumentId"
|
|
30
|
+
|
|
31
|
+
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
32
|
+
|
|
33
|
+
field :ignore_reason, -> { String }, optional: false, nullable: true, api_name: "ignoreReason"
|
|
34
|
+
|
|
35
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Bank
|
|
5
|
+
module Types
|
|
6
|
+
module TransactionsPostBankResponseStatus
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
NEW = "new"
|
|
10
|
+
MATCHED = "matched"
|
|
11
|
+
IGNORED = "ignored"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -30,6 +30,8 @@ module Nordlet
|
|
|
30
30
|
|
|
31
31
|
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
32
32
|
|
|
33
|
+
field :ignore_reason, -> { String }, optional: false, nullable: true, api_name: "ignoreReason"
|
|
34
|
+
|
|
33
35
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
34
36
|
end
|
|
35
37
|
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Bank
|
|
5
|
+
module Types
|
|
6
|
+
class TransactionsUnignoreBankRequest < Internal::Types::Model
|
|
7
|
+
field :transaction_id, -> { String }, optional: false, nullable: false, api_name: "transactionId"
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Bank
|
|
5
|
+
module Types
|
|
6
|
+
class TransactionsUnignoreBankResponse < 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 :date, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :amount, -> { String }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :currency, -> { String }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :counterparty_name, -> { String }, optional: false, nullable: true, api_name: "counterpartyName"
|
|
18
|
+
|
|
19
|
+
field :counterparty_iban, -> { String }, optional: false, nullable: true, api_name: "counterpartyIban"
|
|
20
|
+
|
|
21
|
+
field :description, -> { String }, optional: false, nullable: true
|
|
22
|
+
|
|
23
|
+
field :external_id, -> { String }, optional: false, nullable: true, api_name: "externalId"
|
|
24
|
+
|
|
25
|
+
field :status, -> { Nordlet::Bank::Types::TransactionsUnignoreBankResponseStatus }, optional: false, nullable: false
|
|
26
|
+
|
|
27
|
+
field :matched_document_type, -> { String }, optional: false, nullable: true, api_name: "matchedDocumentType"
|
|
28
|
+
|
|
29
|
+
field :matched_document_id, -> { String }, optional: false, nullable: true, api_name: "matchedDocumentId"
|
|
30
|
+
|
|
31
|
+
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
32
|
+
|
|
33
|
+
field :ignore_reason, -> { String }, optional: false, nullable: true, api_name: "ignoreReason"
|
|
34
|
+
|
|
35
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Bank
|
|
5
|
+
module Types
|
|
6
|
+
module TransactionsUnignoreBankResponseStatus
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
NEW = "new"
|
|
10
|
+
MATCHED = "matched"
|
|
11
|
+
IGNORED = "ignored"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -30,6 +30,8 @@ module Nordlet
|
|
|
30
30
|
|
|
31
31
|
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
32
32
|
|
|
33
|
+
field :ignore_reason, -> { String }, optional: false, nullable: true, api_name: "ignoreReason"
|
|
34
|
+
|
|
33
35
|
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
34
36
|
end
|
|
35
37
|
end
|
|
@@ -198,8 +198,9 @@ module Nordlet
|
|
|
198
198
|
|
|
199
199
|
# Open a Stripe Checkout session for a one-time credit top-up of `amountCents` and return its URL; a Stripe
|
|
200
200
|
# customer is created for the user when there is none. `returnTo` chooses whether Checkout returns to the credits
|
|
201
|
-
# page or to the onboarding plan page, in `locale
|
|
202
|
-
#
|
|
201
|
+
# page or to the onboarding plan page, in `locale`; with `convertCompanyId` it returns to the onboarding plan
|
|
202
|
+
# page, which then converts that sandbox company to a live company. Answers 409 on a site without top-ups and 503
|
|
203
|
+
# when online payments are not configured.
|
|
203
204
|
#
|
|
204
205
|
# @param request_options [Hash]
|
|
205
206
|
# @param params [Nordlet::Billing::Types::TopupCreateBillingRequest]
|
|
@@ -269,13 +270,51 @@ module Nordlet
|
|
|
269
270
|
end
|
|
270
271
|
end
|
|
271
272
|
|
|
273
|
+
# Start the free sandbox plan of the caller's `app` billing account: one sandbox company, free for 14 days from
|
|
274
|
+
# now, without a payment. A free sandbox that is already running keeps its end date. After `trialEndsAt` the
|
|
275
|
+
# sandbox company answers 402 until a paid plan is chosen. Answers 409 on the `invoice` site, when a paid plan is
|
|
276
|
+
# already active, and when the free sandbox of this account has already ended.
|
|
277
|
+
#
|
|
278
|
+
# @param request_options [Hash]
|
|
279
|
+
# @param params [Nordlet::Billing::Types::FreeSandboxStartBillingRequest]
|
|
280
|
+
# @option request_options [String] :base_url
|
|
281
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
282
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
283
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
284
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
285
|
+
#
|
|
286
|
+
# @return [Nordlet::Billing::Types::FreeSandboxStartBillingResponse]
|
|
287
|
+
def free_sandbox_start(request_options: {}, **params)
|
|
288
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
289
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
290
|
+
base_url: request_options[:base_url],
|
|
291
|
+
method: "POST",
|
|
292
|
+
path: "v1/billing/free-sandbox/start",
|
|
293
|
+
body: Nordlet::Billing::Types::FreeSandboxStartBillingRequest.new(params).to_h,
|
|
294
|
+
request_options: request_options
|
|
295
|
+
)
|
|
296
|
+
begin
|
|
297
|
+
response = @client.send(request)
|
|
298
|
+
rescue Net::HTTPRequestTimeout
|
|
299
|
+
raise Nordlet::Errors::TimeoutError
|
|
300
|
+
end
|
|
301
|
+
code = response.code.to_i
|
|
302
|
+
if code.between?(200, 299)
|
|
303
|
+
Nordlet::Billing::Types::FreeSandboxStartBillingResponse.load(response.body)
|
|
304
|
+
else
|
|
305
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
306
|
+
raise error_class.new(response.body, code: code)
|
|
307
|
+
end
|
|
308
|
+
end
|
|
309
|
+
|
|
272
310
|
# Open a Stripe Checkout session for a flat-rate subscription on `plan` (by default the first plan of the
|
|
273
|
-
# request's site) for the billing account of the request's site
|
|
274
|
-
#
|
|
275
|
-
# `invoice` site takes its trial days from the server setting
|
|
276
|
-
#
|
|
277
|
-
#
|
|
278
|
-
# not
|
|
311
|
+
# request's site) for the billing account of the request's site and return its URL; a Stripe customer is created
|
|
312
|
+
# for that account when it has none. The plans of the `app` site have no trial period: the first month is charged
|
|
313
|
+
# at checkout. The `invoicing` plan of the `invoice` site takes its trial days from the server setting
|
|
314
|
+
# `INVOICE_PLAN_TRIAL_DAYS` and returns to the invoice app. With `convertCompanyId` Checkout returns to the
|
|
315
|
+
# onboarding plan page, which then converts that sandbox company to a live company. Answers 422 when the plan is
|
|
316
|
+
# not one of the site's plans, 409 when the site's flat-rate subscription is already active and 503 when online
|
|
317
|
+
# payments are not configured, the plan has no price, or the Invoicing trial is not set.
|
|
279
318
|
#
|
|
280
319
|
# @param request_options [Hash]
|
|
281
320
|
# @param params [Nordlet::Billing::Types::FlatRateCreateBillingRequest]
|
|
@@ -454,8 +493,9 @@ module Nordlet
|
|
|
454
493
|
end
|
|
455
494
|
|
|
456
495
|
# List the daily usage records of the request's site in the companies the user pays for, from `from` to `to`: one
|
|
457
|
-
# row per company, date and metric (API requests,
|
|
458
|
-
#
|
|
496
|
+
# row per company, date and metric (API requests, file storage bytes, database bytes, sale invoices; `ocr_page`
|
|
497
|
+
# rows remain from the time document scanning was charged). Requests and invoices count on the site the request
|
|
498
|
+
# came from; storage counts on the `app` site.
|
|
459
499
|
#
|
|
460
500
|
# @param request_options [Hash]
|
|
461
501
|
# @param params [Nordlet::Billing::Types::UsageListBillingRequest]
|
|
@@ -16,6 +16,8 @@ module Nordlet
|
|
|
16
16
|
|
|
17
17
|
field :trial_ends_at, -> { String }, optional: false, nullable: true, api_name: "trialEndsAt"
|
|
18
18
|
|
|
19
|
+
field :free_sandbox_started_at, -> { String }, optional: false, nullable: true, api_name: "freeSandboxStartedAt"
|
|
20
|
+
|
|
19
21
|
field :first_top_up_at, -> { String }, optional: false, nullable: true, api_name: "firstTopUpAt"
|
|
20
22
|
|
|
21
23
|
field :last_charged_date, -> { String }, optional: false, nullable: true, api_name: "lastChargedDate"
|
|
@@ -12,8 +12,6 @@ module Nordlet
|
|
|
12
12
|
|
|
13
13
|
field :sale_invoices, -> { Integer }, optional: false, nullable: false, api_name: "saleInvoices"
|
|
14
14
|
|
|
15
|
-
field :ocr_pages, -> { Integer }, optional: false, nullable: false, api_name: "ocrPages"
|
|
16
|
-
|
|
17
15
|
field :file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "fileBytes"
|
|
18
16
|
|
|
19
17
|
field :database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "databaseBytes"
|
|
@@ -16,6 +16,8 @@ module Nordlet
|
|
|
16
16
|
|
|
17
17
|
field :trial_ends_at, -> { String }, optional: false, nullable: true, api_name: "trialEndsAt"
|
|
18
18
|
|
|
19
|
+
field :free_sandbox_started_at, -> { String }, optional: false, nullable: true, api_name: "freeSandboxStartedAt"
|
|
20
|
+
|
|
19
21
|
field :first_top_up_at, -> { String }, optional: false, nullable: true, api_name: "firstTopUpAt"
|
|
20
22
|
|
|
21
23
|
field :last_charged_date, -> { String }, optional: false, nullable: true, api_name: "lastChargedDate"
|
|
@@ -12,8 +12,6 @@ module Nordlet
|
|
|
12
12
|
|
|
13
13
|
field :sale_invoices, -> { Integer }, optional: false, nullable: false, api_name: "saleInvoices"
|
|
14
14
|
|
|
15
|
-
field :ocr_pages, -> { Integer }, optional: false, nullable: false, api_name: "ocrPages"
|
|
16
|
-
|
|
17
15
|
field :file_bytes, -> { Integer }, optional: false, nullable: false, api_name: "fileBytes"
|
|
18
16
|
|
|
19
17
|
field :database_bytes, -> { Integer }, optional: false, nullable: false, api_name: "databaseBytes"
|
|
@@ -16,6 +16,8 @@ module Nordlet
|
|
|
16
16
|
|
|
17
17
|
field :trial_ends_at, -> { String }, optional: false, nullable: true, api_name: "trialEndsAt"
|
|
18
18
|
|
|
19
|
+
field :free_sandbox_started_at, -> { String }, optional: false, nullable: true, api_name: "freeSandboxStartedAt"
|
|
20
|
+
|
|
19
21
|
field :first_top_up_at, -> { String }, optional: false, nullable: true, api_name: "firstTopUpAt"
|
|
20
22
|
|
|
21
23
|
field :last_charged_date, -> { String }, optional: false, nullable: true, api_name: "lastChargedDate"
|