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
data/lib/nordlet/cash/client.rb
CHANGED
|
@@ -12,16 +12,17 @@ module Nordlet
|
|
|
12
12
|
|
|
13
13
|
# Creates a numbered cash receipt (series `KPO`) or cash disbursement (`KIO`) and posts it in the base currency
|
|
14
14
|
# between the cash account (`cashAccountCode`, default the cash account of the company's chart) and
|
|
15
|
-
# `counterAccountCode`; a receipt debits the cash account, a disbursement credits it.
|
|
16
|
-
#
|
|
17
|
-
#
|
|
18
|
-
#
|
|
19
|
-
#
|
|
20
|
-
#
|
|
21
|
-
#
|
|
22
|
-
#
|
|
23
|
-
#
|
|
24
|
-
#
|
|
15
|
+
# `counterAccountCode`; a receipt debits the cash account, a disbursement credits it. `counterAccountCode` is
|
|
16
|
+
# required (400 without it) unless `saleInvoiceId` or `purchaseInvoiceId` is given, also for an order with
|
|
17
|
+
# `employeeId`. Linked to an invoice - `saleInvoiceId` for a receipt against an issued invoice or advance invoice
|
|
18
|
+
# or a disbursement against an issued credit note, `purchaseInvoiceId` for a disbursement against a registered
|
|
19
|
+
# purchase invoice - the counter account is the receivable or payable account the invoice was posted to (its
|
|
20
|
+
# operation type's account, else the posting rule), the invoice's paid amount and payment status (`partial` or
|
|
21
|
+
# `paid`) are updated, and `sale_invoice.paid` or `purchase_invoice.paid` is emitted when the invoice becomes
|
|
22
|
+
# fully paid. Answers 422 when both invoice ids are given, a receipt names a purchase invoice,
|
|
23
|
+
# `counterAccountCode` differs from the invoice's account, or the invoice is in another currency or belongs to
|
|
24
|
+
# another partner; 409 when `amount` exceeds the invoice's remaining amount, a disbursement would take the balance
|
|
25
|
+
# of the cash account below zero on `date` or any later date, or the accounting period of `date` is locked.
|
|
25
26
|
#
|
|
26
27
|
# @param request_options [Hash]
|
|
27
28
|
# @param params [Nordlet::Cash::Types::OrdersCreateCashRequest]
|
|
@@ -1433,7 +1433,8 @@ module Nordlet
|
|
|
1433
1433
|
end
|
|
1434
1434
|
|
|
1435
1435
|
# Changes the kind, amount, payment date, reference or description of a recorded tax payment; fields left out keep
|
|
1436
|
-
# their value and an empty `reference` clears it. Answers 422 when the new amount is zero
|
|
1436
|
+
# their value and an empty `reference` clears it. Answers 422 when the new amount is zero, and 409 when the kind
|
|
1437
|
+
# or amount of a payment booked from a bank transaction (`bank/transactions/post`) changes.
|
|
1437
1438
|
#
|
|
1438
1439
|
# @param request_options [Hash]
|
|
1439
1440
|
# @param params [Nordlet::Declarations::Types::TaxPaymentsUpdateDeclarationsRequest]
|
|
@@ -1467,7 +1468,8 @@ module Nordlet
|
|
|
1467
1468
|
end
|
|
1468
1469
|
end
|
|
1469
1470
|
|
|
1470
|
-
# Deletes a recorded tax payment.
|
|
1471
|
+
# Deletes a recorded tax payment. Answers 409 when the payment is booked from a bank transaction
|
|
1472
|
+
# (`bank/transactions/post`).
|
|
1471
1473
|
#
|
|
1472
1474
|
# @param request_options [Hash]
|
|
1473
1475
|
# @param params [Nordlet::Declarations::Types::TaxPaymentsDeleteDeclarationsRequest]
|
|
@@ -3064,7 +3066,9 @@ module Nordlet
|
|
|
3064
3066
|
# Lists the filing systems the company can configure: those of the company country (or of `country` when given),
|
|
3065
3067
|
# the EU-wide systems and the cross-border e-invoicing systems `it_sdi`, `pl_ksef` and `ro_efactura`. Each row
|
|
3066
3068
|
# carries the stored values, with a secret or certificate field shown as `__secret_set__` and the fields taken
|
|
3067
|
-
# from the company profile filled from it.
|
|
3069
|
+
# from the company profile filled from it. Each field carries its `label` in the language of `Accept-Language`
|
|
3070
|
+
# (English otherwise) when Nordlet has one, and a `select` field its allowed values in `options`. Set the values
|
|
3071
|
+
# with `declarations/configs/update` {system, config: {key: value}}.
|
|
3068
3072
|
#
|
|
3069
3073
|
# @param request_options [Hash]
|
|
3070
3074
|
# @param params [Nordlet::Declarations::Types::ConfigsListDeclarationsRequest]
|
data/lib/nordlet/declarations/types/configs_list_declarations_response_rows_item_fields_item.rb
CHANGED
|
@@ -6,6 +6,8 @@ module Nordlet
|
|
|
6
6
|
class ConfigsListDeclarationsResponseRowsItemFieldsItem < Internal::Types::Model
|
|
7
7
|
field :key, -> { String }, optional: false, nullable: false
|
|
8
8
|
|
|
9
|
+
field :label, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
9
11
|
field :kind, -> { Nordlet::Declarations::Types::ConfigsListDeclarationsResponseRowsItemFieldsItemKind }, optional: false, nullable: false
|
|
10
12
|
|
|
11
13
|
field :multiline, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
|
@@ -6,6 +6,8 @@ module Nordlet
|
|
|
6
6
|
class ConfigsUpdateDeclarationsResponseFieldsItem < Internal::Types::Model
|
|
7
7
|
field :key, -> { String }, optional: false, nullable: false
|
|
8
8
|
|
|
9
|
+
field :label, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
9
11
|
field :kind, -> { Nordlet::Declarations::Types::ConfigsUpdateDeclarationsResponseFieldsItemKind }, optional: false, nullable: false
|
|
10
12
|
|
|
11
13
|
field :multiline, -> { Internal::Types::Boolean }, optional: true, nullable: false
|
data/lib/nordlet/hr/client.rb
CHANGED
|
@@ -113,7 +113,8 @@ module Nordlet
|
|
|
113
113
|
end
|
|
114
114
|
|
|
115
115
|
# Creates an employee record. `payrollOptions` holds the country-specific settings the payroll engine reads for
|
|
116
|
-
# the person (see `hr/employees/fields`); `applyAllowance` defaults to true and `pensionAccumulation` to false.
|
|
116
|
+
# the person (see `hr/employees/fields`); `applyAllowance` defaults to true and `pensionAccumulation` to false. An
|
|
117
|
+
# `iban` whose check digits fail (ISO 13616) is refused with 422.
|
|
117
118
|
#
|
|
118
119
|
# @param request_options [Hash]
|
|
119
120
|
# @param params [Nordlet::Hr::Types::EmployeesCreateHrRequest]
|
|
@@ -149,7 +150,7 @@ module Nordlet
|
|
|
149
150
|
|
|
150
151
|
# Changes the given fields of an employee; a null clears the fields that allow it (code, personal code, birth
|
|
151
152
|
# date, contact details, address, IBAN, social insurance number and start, hire date, notes). `status` and
|
|
152
|
-
# `terminationDate` are set here too.
|
|
153
|
+
# `terminationDate` are set here too. An `iban` whose check digits fail (ISO 13616) is refused with 422.
|
|
153
154
|
#
|
|
154
155
|
# @param request_options [Hash]
|
|
155
156
|
# @param params [Nordlet::Hr::Types::EmployeesUpdateHrRequest]
|
|
@@ -229,7 +229,9 @@ module Nordlet
|
|
|
229
229
|
# yet, posts the pending ratable revenue recognition tranches scheduled up to the month end and emits
|
|
230
230
|
# `revenue_recognition.posted` when there were any; when the month is the company's fiscal year end and no
|
|
231
231
|
# year-end close is posted for that year, posts the year-end close that moves the income and expense balances of
|
|
232
|
-
# the fiscal year to the retained earnings account (posting rule `closing.retainedEarnings`).
|
|
232
|
+
# the fiscal year to the retained earnings account (posting rule `closing.retainedEarnings`). The lock is not
|
|
233
|
+
# refused for open items: `warnings` lists them as `reports/period-checklist` does, for the month, or for the
|
|
234
|
+
# fiscal year when the month is the fiscal year end.
|
|
233
235
|
#
|
|
234
236
|
# @param request_options [Hash]
|
|
235
237
|
# @param params [Nordlet::Ledger::Types::PeriodsLockLedgerRequest]
|
|
@@ -780,7 +782,8 @@ module Nordlet
|
|
|
780
782
|
end
|
|
781
783
|
end
|
|
782
784
|
|
|
783
|
-
# Returns a journal transaction with its entries, ordered by account code.
|
|
785
|
+
# Returns a journal transaction with its entries, ordered by account code. `reversedByTransactionId` is the
|
|
786
|
+
# transaction posted by `ledger/journal/transactions/reverse` for a manual transaction, else null.
|
|
784
787
|
#
|
|
785
788
|
# @param request_options [Hash]
|
|
786
789
|
# @param params [Nordlet::Ledger::Types::JournalTransactionsGetLedgerRequest]
|
|
@@ -816,9 +819,9 @@ module Nordlet
|
|
|
816
819
|
|
|
817
820
|
# Posts a manual journal transaction (`documentType` `manual`, status `posted`) in the company's base currency.
|
|
818
821
|
# Every `accountCode` must be a postable account of the chart, cost centers must exist and be active, projects
|
|
819
|
-
# must exist, and the debits must equal the credits. Answers 422 for an amount
|
|
820
|
-
#
|
|
821
|
-
# `date` is locked.
|
|
822
|
+
# must exist, and the debits must equal the credits. Answers 422 for an amount that is not whole cents (a third or
|
|
823
|
+
# fourth decimal other than zero; `10.5000` is accepted), for a `currency` other than the base currency and for an
|
|
824
|
+
# inactive cost center, and 409 when the accounting period of `date` is locked.
|
|
822
825
|
#
|
|
823
826
|
# @param request_options [Hash]
|
|
824
827
|
# @param params [Nordlet::Ledger::Types::JournalTransactionsCreateLedgerRequest]
|
|
@@ -852,6 +855,44 @@ module Nordlet
|
|
|
852
855
|
end
|
|
853
856
|
end
|
|
854
857
|
|
|
858
|
+
# Posts a journal transaction (`documentType` `manual_reversal`, `documentId` the original) dated `date` (default
|
|
859
|
+
# the original date) whose entries mirror the original's (debits and credits swapped). Only a `manual` transaction
|
|
860
|
+
# is reversed here; a transaction posted by a document is reversed through that document. Answers 409 when the
|
|
861
|
+
# transaction is not manual, when it is already reversed and when the accounting period of `date` is locked, and
|
|
862
|
+
# 400 when `date` is before the original date.
|
|
863
|
+
#
|
|
864
|
+
# @param request_options [Hash]
|
|
865
|
+
# @param params [Nordlet::Ledger::Types::JournalTransactionsReverseLedgerRequest]
|
|
866
|
+
# @option request_options [String] :base_url
|
|
867
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
868
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
869
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
870
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
871
|
+
#
|
|
872
|
+
# @return [Nordlet::Ledger::Types::JournalTransactionsReverseLedgerResponse]
|
|
873
|
+
def journal_transactions_reverse(request_options: {}, **params)
|
|
874
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
875
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
876
|
+
base_url: request_options[:base_url],
|
|
877
|
+
method: "POST",
|
|
878
|
+
path: "v1/ledger/journal/transactions/reverse",
|
|
879
|
+
body: Nordlet::Ledger::Types::JournalTransactionsReverseLedgerRequest.new(params).to_h,
|
|
880
|
+
request_options: request_options
|
|
881
|
+
)
|
|
882
|
+
begin
|
|
883
|
+
response = @client.send(request)
|
|
884
|
+
rescue Net::HTTPRequestTimeout
|
|
885
|
+
raise Nordlet::Errors::TimeoutError
|
|
886
|
+
end
|
|
887
|
+
code = response.code.to_i
|
|
888
|
+
if code.between?(200, 299)
|
|
889
|
+
Nordlet::Ledger::Types::JournalTransactionsReverseLedgerResponse.load(response.body)
|
|
890
|
+
else
|
|
891
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
892
|
+
raise error_class.new(response.body, code: code)
|
|
893
|
+
end
|
|
894
|
+
end
|
|
895
|
+
|
|
855
896
|
# The rows or codes of each return or registry deposit of the company country that are filled from account
|
|
856
897
|
# balances. Accounts fall into a row by the layout defaults for the standard chart of accounts unless mapped under
|
|
857
898
|
# Account → Statement rows.
|
|
@@ -22,6 +22,8 @@ module Nordlet
|
|
|
22
22
|
|
|
23
23
|
field :posted_at, -> { String }, optional: false, nullable: true, api_name: "postedAt"
|
|
24
24
|
|
|
25
|
+
field :reversed_by_transaction_id, -> { String }, optional: false, nullable: true, api_name: "reversedByTransactionId"
|
|
26
|
+
|
|
25
27
|
field :entries, -> { Internal::Types::Array[Nordlet::Ledger::Types::JournalTransactionsGetLedgerResponseEntriesItem] }, optional: false, nullable: false
|
|
26
28
|
end
|
|
27
29
|
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Ledger
|
|
5
|
+
module Types
|
|
6
|
+
class JournalTransactionsReverseLedgerRequest < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :reason, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :date, -> { String }, optional: true, 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 Ledger
|
|
5
|
+
module Types
|
|
6
|
+
class JournalTransactionsReverseLedgerResponse < Internal::Types::Model
|
|
7
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :date, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :description, -> { String }, optional: false, nullable: true
|
|
12
|
+
|
|
13
|
+
field :document_type, -> { String }, optional: false, nullable: true, api_name: "documentType"
|
|
14
|
+
|
|
15
|
+
field :document_id, -> { String }, optional: false, nullable: true, api_name: "documentId"
|
|
16
|
+
|
|
17
|
+
field :partner_id, -> { String }, optional: false, nullable: true, api_name: "partnerId"
|
|
18
|
+
|
|
19
|
+
field :status, -> { Nordlet::Ledger::Types::JournalTransactionsReverseLedgerResponseStatus }, optional: false, nullable: false
|
|
20
|
+
|
|
21
|
+
field :created_at, -> { String }, optional: false, nullable: false, api_name: "createdAt"
|
|
22
|
+
|
|
23
|
+
field :posted_at, -> { String }, optional: false, nullable: true, api_name: "postedAt"
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -11,6 +11,8 @@ module Nordlet
|
|
|
11
11
|
field :month, -> { Integer }, optional: false, nullable: false
|
|
12
12
|
|
|
13
13
|
field :status, -> { Nordlet::Ledger::Types::PeriodsLockLedgerResponseStatus }, optional: false, nullable: false
|
|
14
|
+
|
|
15
|
+
field :warnings, -> { Internal::Types::Array[Nordlet::Ledger::Types::PeriodsLockLedgerResponseWarningsItem] }, optional: false, nullable: false
|
|
14
16
|
end
|
|
15
17
|
end
|
|
16
18
|
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Ledger
|
|
5
|
+
module Types
|
|
6
|
+
class PeriodsLockLedgerResponseWarningsItem < Internal::Types::Model
|
|
7
|
+
field :code, -> { Nordlet::Ledger::Types::PeriodsLockLedgerResponseWarningsItemCode }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :count, -> { Integer }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :message, -> { String }, optional: false, nullable: false
|
|
12
|
+
|
|
13
|
+
field :ids, -> { Internal::Types::Array[String] }, optional: false, nullable: false
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Ledger
|
|
5
|
+
module Types
|
|
6
|
+
module PeriodsLockLedgerResponseWarningsItemCode
|
|
7
|
+
extend Nordlet::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
DRAFT_SALE_DOCUMENTS = "draft_sale_documents"
|
|
10
|
+
DRAFT_PURCHASE_DOCUMENTS = "draft_purchase_documents"
|
|
11
|
+
UNBOOKED_BANK_LINES = "unbooked_bank_lines"
|
|
12
|
+
DEPRECIATION_NOT_POSTED = "depreciation_not_posted"
|
|
13
|
+
DEFERRALS_NOT_POSTED = "deferrals_not_posted"
|
|
14
|
+
RECURRING_INVOICES_NOT_GENERATED = "recurring_invoices_not_generated"
|
|
15
|
+
PAYROLL_RUNS_NOT_APPROVED = "payroll_runs_not_approved"
|
|
16
|
+
OPEN_FX_RECEIVABLES = "open_fx_receivables"
|
|
17
|
+
OPEN_FX_PAYABLES = "open_fx_payables"
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -282,9 +282,9 @@ module Nordlet
|
|
|
282
282
|
end
|
|
283
283
|
end
|
|
284
284
|
|
|
285
|
-
# Adds a bank account to the partner in `partnerId`. The IBAN is stored without spaces in upper case; an IBAN
|
|
286
|
-
#
|
|
287
|
-
# mark.
|
|
285
|
+
# Adds a bank account to the partner in `partnerId`. The IBAN is stored without spaces in upper case; an IBAN
|
|
286
|
+
# whose check digits fail (ISO 13616) is refused with 422 and one the partner already has with 409. With
|
|
287
|
+
# `isDefault` true the partner's other accounts lose their default mark.
|
|
288
288
|
#
|
|
289
289
|
# @param request_options [Hash]
|
|
290
290
|
# @param params [Nordlet::Partners::Types::BankAccountsCreatePartnersRequest]
|
|
@@ -319,8 +319,8 @@ module Nordlet
|
|
|
319
319
|
end
|
|
320
320
|
|
|
321
321
|
# Changes the given fields of a partner bank account. A new IBAN is stored without spaces in upper case and is
|
|
322
|
-
# refused with
|
|
323
|
-
# partner's other accounts lose their default mark.
|
|
322
|
+
# refused with 422 when its check digits fail (ISO 13616) and with 409 when the partner already has it; when the
|
|
323
|
+
# account is the default after the change, the partner's other accounts lose their default mark.
|
|
324
324
|
#
|
|
325
325
|
# @param request_options [Hash]
|
|
326
326
|
# @param params [Nordlet::Partners::Types::BankAccountsUpdatePartnersRequest]
|
|
@@ -797,9 +797,11 @@ module Nordlet
|
|
|
797
797
|
end
|
|
798
798
|
end
|
|
799
799
|
|
|
800
|
-
# Returns the live partner matched by `code`, then `vatCode
|
|
801
|
-
#
|
|
802
|
-
#
|
|
800
|
+
# Returns the live partner matched by `code`, then `vatCode` (compared without spaces, dots and dashes and without
|
|
801
|
+
# regard to case), then `email` (at least one is required), or creates one from the body with the same validation
|
|
802
|
+
# and VIES check as `partners/create`; `created` says which happened. Without `isCustomer` a new partner is a
|
|
803
|
+
# customer unless `isSupplier` is true. A creation that loses a race on the partner code returns the partner the
|
|
804
|
+
# other call created.
|
|
803
805
|
#
|
|
804
806
|
# @param request_options [Hash]
|
|
805
807
|
# @param params [Nordlet::Partners::Types::FindOrCreatePartnersRequest]
|
|
@@ -38,6 +38,8 @@ module Nordlet
|
|
|
38
38
|
|
|
39
39
|
field :card_payment_received, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "cardPaymentReceived"
|
|
40
40
|
|
|
41
|
+
field :sent_with, -> { String }, optional: false, nullable: true, api_name: "sentWith"
|
|
42
|
+
|
|
41
43
|
field :seller, -> { Nordlet::Public::Types::InvoicesGetPublicResponseSeller }, optional: false, nullable: false
|
|
42
44
|
|
|
43
45
|
field :buyer, -> { Nordlet::Public::Types::InvoicesGetPublicResponseBuyer }, optional: false, nullable: false
|
|
@@ -12,11 +12,20 @@ module Nordlet
|
|
|
12
12
|
|
|
13
13
|
# Create a draft purchase invoice or credit note (`type`) from a supplier document; it is posted with
|
|
14
14
|
# `purchases/invoices/register`. Lines without a unit price take the item's supplier or purchase price, `currency`
|
|
15
|
-
# defaults to the company's invoice currency, `documentRef` links an uploaded file, and the gross total
|
|
16
|
-
# self-assessed VAT
|
|
17
|
-
#
|
|
18
|
-
#
|
|
19
|
-
# with
|
|
15
|
+
# defaults to the company's invoice currency, `documentRef` links an uploaded file, and the gross total is the
|
|
16
|
+
# amount owed: it leaves out self-assessed VAT (reverse charge, intra-EU acquisitions and import VAT the buyer
|
|
17
|
+
# declares in its VAT return) and the value of lines whose VAT type is import VAT assessed by customs. `netTotal`,
|
|
18
|
+
# `vatTotal` and `grossTotal` are the totals printed on the document, with the meanings of the response fields: a
|
|
19
|
+
# difference of at most 0.01 from the totals of the lines is put on the line with the largest amount and the
|
|
20
|
+
# printed totals are stored, a larger one is refused with 422 naming both sets of totals. `creditedInvoiceId`
|
|
21
|
+
# (credit notes only) must be an invoice of the same partner, `purchaseOrderId` an order of the same partner that
|
|
22
|
+
# is not draft, submitted or cancelled, and `operationTypeId` an active purchase operation type, each 422
|
|
23
|
+
# otherwise; the same `documentNumber` for the same partner is refused with 409; numbers are compared without
|
|
24
|
+
# regard to case, and spaces, dashes, slashes, dots and underscores count as one separator. `warnings` lists what
|
|
25
|
+
# does not refuse the document but needs a look: `vat_type_not_valid_on_date`, `vat_type_domestic_for_eu_partner`
|
|
26
|
+
# and `vat_type_intra_eu_for_domestic_partner` as on `sales/invoices/create` (on the document date), and
|
|
27
|
+
# `possible_duplicate` when the supplier already has a document of the same type with the same document date and
|
|
28
|
+
# gross total.
|
|
20
29
|
#
|
|
21
30
|
# @param request_options [Hash]
|
|
22
31
|
# @param params [Nordlet::Purchases::Types::InvoicesCreatePurchasesRequest]
|
|
@@ -85,8 +94,10 @@ module Nordlet
|
|
|
85
94
|
end
|
|
86
95
|
|
|
87
96
|
# Change a draft purchase invoice (409 once registered); only the fields sent are changed, and `lines` replace all
|
|
88
|
-
# existing lines with the totals recomputed. `
|
|
89
|
-
# `purchases/invoices/create
|
|
97
|
+
# existing lines with the totals recomputed. `netTotal`, `vatTotal` and `grossTotal` are the printed totals as on
|
|
98
|
+
# `purchases/invoices/create`; sent without `lines`, they are applied to the stored lines. `purchaseOrderId` and
|
|
99
|
+
# `operationTypeId` are checked as on `purchases/invoices/create` (422). A `documentNumber` already used for the
|
|
100
|
+
# partner is refused with 409, compared as on `purchases/invoices/create`.
|
|
90
101
|
#
|
|
91
102
|
# @param request_options [Hash]
|
|
92
103
|
# @param params [Nordlet::Purchases::Types::InvoicesUpdatePurchasesRequest]
|
|
@@ -158,22 +169,27 @@ module Nordlet
|
|
|
158
169
|
# Register a draft purchase invoice or credit note: posts the journal entry dated `registrationDate` (default the
|
|
159
170
|
# document date) and sets the status to `registered`. The entry debits each line's expense account (the line's
|
|
160
171
|
# `accountCode`, else the item's purchase or expense account, else the operation type's expense account, else the
|
|
161
|
-
# `purchases.goodsForResale` or `purchases.defaultExpense` rule account), debits VAT receivable
|
|
162
|
-
#
|
|
163
|
-
#
|
|
164
|
-
#
|
|
165
|
-
# a
|
|
166
|
-
#
|
|
167
|
-
#
|
|
168
|
-
#
|
|
169
|
-
#
|
|
170
|
-
#
|
|
172
|
+
# `purchases.goodsForResale` or `purchases.defaultExpense` rule account), debits VAT receivable with the
|
|
173
|
+
# deductible VAT (the share of the line's VAT that its VAT type allows to deduct; the rest, and all VAT of a
|
|
174
|
+
# company that is not a VAT payer, is booked into the expense), credits payables (the operation type's credit
|
|
175
|
+
# account when set) and credits output VAT for self-assessed VAT (reverse charge, intra-EU acquisitions and import
|
|
176
|
+
# VAT the buyer declares in its VAT return); a line whose VAT type is import VAT assessed by customs posts only
|
|
177
|
+
# its VAT, owed to the document's partner, and is not received into stock; a credit note posts the reverse. Lines
|
|
178
|
+
# with `deferralStartDate` and `deferralEndDate` are debited to the `purchases.prepaidExpenses` account instead
|
|
179
|
+
# and get a monthly release schedule for `purchases/deferrals/post`. With `warehouseId` the product lines of an
|
|
180
|
+
# invoice are received into stock at their base-currency cost, into the lot named by the line's `lotNumber` (an
|
|
181
|
+
# unknown lot is created, and the line's `expiryDate` is stored on a lot that has none) (422 on an order-linked
|
|
182
|
+
# invoice, whose goods arrive through `purchases/receipts/create`, for a line that is also deferred and for a lot-
|
|
183
|
+
# or serial-tracked item without `lotNumber`); `returnFromStock` on a credit note that credits an invoice takes
|
|
184
|
+
# the goods back out of stock at their FIFO cost and books the difference to the credited amount on the
|
|
171
185
|
# `inventory.cogs` account (422 on an invoice, without `creditedInvoiceId`, or when no goods of the credited
|
|
172
186
|
# invoice are in stock). A credit note that credits a registered invoice in the same currency is applied to it as
|
|
173
187
|
# a payment up to the open amount. Refused with 409 when already registered or the accounting period is locked,
|
|
174
|
-
# and with 422 when the credit notes would exceed the credited invoice,
|
|
175
|
-
#
|
|
176
|
-
#
|
|
188
|
+
# and with 422 when the credit notes would exceed the credited invoice, the gross total differs from what the
|
|
189
|
+
# lines give by more than 0.01 (or the converted amounts by more than their conversion rounding), a posting
|
|
190
|
+
# account is missing or no exchange rate exists for the date. Emits `purchase_invoice.registered`,
|
|
191
|
+
# `purchase_invoice.paid` when the credited invoice becomes fully paid, and `stock.changed` when stock moves.
|
|
192
|
+
# `warnings` carries the VAT type warnings of `purchases/invoices/create`.
|
|
177
193
|
#
|
|
178
194
|
# @param request_options [Hash]
|
|
179
195
|
# @param params [Nordlet::Purchases::Types::InvoicesRegisterPurchasesRequest]
|
|
@@ -318,6 +334,47 @@ module Nordlet
|
|
|
318
334
|
end
|
|
319
335
|
end
|
|
320
336
|
|
|
337
|
+
# Posts a journal entry dated `date` (default the registration date) that mirrors the document's entry (debits and
|
|
338
|
+
# credits swapped), reverses the prepaid-expense releases already posted for it, cancels its pending releases and
|
|
339
|
+
# sets the status to `reversed` with the reason. The reversed document leaves the VAT returns, the open items and
|
|
340
|
+
# payment matching, and its supplier `documentNumber` can be entered again. `date` must be in the month of the
|
|
341
|
+
# registration date and not before it (422; correct an earlier month with a credit note). Answers 409 when the
|
|
342
|
+
# document is not registered, when the accounting period of `date` is locked (naming the period), when registered
|
|
343
|
+
# credit notes credit it, when payments are matched to it (naming them; unmatch them first), and when it moved
|
|
344
|
+
# goods in or out of stock or is the source of a landed cost (post a credit note with `returnFromStock` instead).
|
|
345
|
+
#
|
|
346
|
+
# @param request_options [Hash]
|
|
347
|
+
# @param params [Nordlet::Purchases::Types::InvoicesReversePurchasesRequest]
|
|
348
|
+
# @option request_options [String] :base_url
|
|
349
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
350
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
351
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
352
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
353
|
+
#
|
|
354
|
+
# @return [Nordlet::Purchases::Types::InvoicesReversePurchasesResponse]
|
|
355
|
+
def invoices_reverse(request_options: {}, **params)
|
|
356
|
+
params = Nordlet::Internal::Types::Utils.normalize_keys(params)
|
|
357
|
+
request = Nordlet::Internal::JSON::Request.new(
|
|
358
|
+
base_url: request_options[:base_url],
|
|
359
|
+
method: "POST",
|
|
360
|
+
path: "v1/purchases/invoices/reverse",
|
|
361
|
+
body: Nordlet::Purchases::Types::InvoicesReversePurchasesRequest.new(params).to_h,
|
|
362
|
+
request_options: request_options
|
|
363
|
+
)
|
|
364
|
+
begin
|
|
365
|
+
response = @client.send(request)
|
|
366
|
+
rescue Net::HTTPRequestTimeout
|
|
367
|
+
raise Nordlet::Errors::TimeoutError
|
|
368
|
+
end
|
|
369
|
+
code = response.code.to_i
|
|
370
|
+
if code.between?(200, 299)
|
|
371
|
+
Nordlet::Purchases::Types::InvoicesReversePurchasesResponse.load(response.body)
|
|
372
|
+
else
|
|
373
|
+
error_class = Nordlet::Errors::ResponseError.subclass_for_code(code)
|
|
374
|
+
raise error_class.new(response.body, code: code)
|
|
375
|
+
end
|
|
376
|
+
end
|
|
377
|
+
|
|
321
378
|
# Create a draft purchase order for a supplier. Lines without a unit price take the item's supplier or purchase
|
|
322
379
|
# price; `orderNumber` comes from the `purchase_order` series with prefix PO when not given; `currency` defaults
|
|
323
380
|
# to the company's invoice currency; `documentRef` links an uploaded file to the order. A number already in use is
|
|
@@ -37,6 +37,12 @@ module Nordlet
|
|
|
37
37
|
field :document_ref, -> { String }, optional: true, nullable: false, api_name: "documentRef"
|
|
38
38
|
|
|
39
39
|
field :lines, -> { Internal::Types::Array[Nordlet::Purchases::Types::InvoicesCreatePurchasesRequestLinesItem] }, optional: false, nullable: false
|
|
40
|
+
|
|
41
|
+
field :net_total, -> { String }, optional: true, nullable: false, api_name: "netTotal"
|
|
42
|
+
|
|
43
|
+
field :vat_total, -> { String }, optional: true, nullable: false, api_name: "vatTotal"
|
|
44
|
+
|
|
45
|
+
field :gross_total, -> { String }, optional: true, nullable: false, api_name: "grossTotal"
|
|
40
46
|
end
|
|
41
47
|
end
|
|
42
48
|
end
|
|
@@ -34,6 +34,12 @@ module Nordlet
|
|
|
34
34
|
|
|
35
35
|
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
36
36
|
|
|
37
|
+
field :reversed_at, -> { String }, optional: false, nullable: true, api_name: "reversedAt"
|
|
38
|
+
|
|
39
|
+
field :reversal_journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "reversalJournalTransactionId"
|
|
40
|
+
|
|
41
|
+
field :reversal_reason, -> { String }, optional: false, nullable: true, api_name: "reversalReason"
|
|
42
|
+
|
|
37
43
|
field :credited_invoice_id, -> { String }, optional: false, nullable: true, api_name: "creditedInvoiceId"
|
|
38
44
|
|
|
39
45
|
field :purchase_order_id, -> { String }, optional: false, nullable: true, api_name: "purchaseOrderId"
|
|
@@ -59,6 +65,8 @@ module Nordlet
|
|
|
59
65
|
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
|
60
66
|
|
|
61
67
|
field :lines, -> { Internal::Types::Array[Nordlet::Purchases::Types::InvoicesCreatePurchasesResponseLinesItem] }, optional: false, nullable: false
|
|
68
|
+
|
|
69
|
+
field :warnings, -> { Internal::Types::Array[Nordlet::Purchases::Types::InvoicesCreatePurchasesResponseWarningsItem] }, optional: false, nullable: false
|
|
62
70
|
end
|
|
63
71
|
end
|
|
64
72
|
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Nordlet
|
|
4
|
+
module Purchases
|
|
5
|
+
module Types
|
|
6
|
+
class InvoicesCreatePurchasesResponseWarningsItem < Internal::Types::Model
|
|
7
|
+
field :code, -> { String }, optional: false, nullable: false
|
|
8
|
+
|
|
9
|
+
field :message, -> { String }, optional: false, nullable: false
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -34,6 +34,12 @@ module Nordlet
|
|
|
34
34
|
|
|
35
35
|
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
36
36
|
|
|
37
|
+
field :reversed_at, -> { String }, optional: false, nullable: true, api_name: "reversedAt"
|
|
38
|
+
|
|
39
|
+
field :reversal_journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "reversalJournalTransactionId"
|
|
40
|
+
|
|
41
|
+
field :reversal_reason, -> { String }, optional: false, nullable: true, api_name: "reversalReason"
|
|
42
|
+
|
|
37
43
|
field :credited_invoice_id, -> { String }, optional: false, nullable: true, api_name: "creditedInvoiceId"
|
|
38
44
|
|
|
39
45
|
field :purchase_order_id, -> { String }, optional: false, nullable: true, api_name: "purchaseOrderId"
|
|
@@ -34,6 +34,12 @@ module Nordlet
|
|
|
34
34
|
|
|
35
35
|
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
36
36
|
|
|
37
|
+
field :reversed_at, -> { String }, optional: false, nullable: true, api_name: "reversedAt"
|
|
38
|
+
|
|
39
|
+
field :reversal_journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "reversalJournalTransactionId"
|
|
40
|
+
|
|
41
|
+
field :reversal_reason, -> { String }, optional: false, nullable: true, api_name: "reversalReason"
|
|
42
|
+
|
|
37
43
|
field :credited_invoice_id, -> { String }, optional: false, nullable: true, api_name: "creditedInvoiceId"
|
|
38
44
|
|
|
39
45
|
field :purchase_order_id, -> { String }, optional: false, nullable: true, api_name: "purchaseOrderId"
|
|
@@ -34,6 +34,12 @@ module Nordlet
|
|
|
34
34
|
|
|
35
35
|
field :journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "journalTransactionId"
|
|
36
36
|
|
|
37
|
+
field :reversed_at, -> { String }, optional: false, nullable: true, api_name: "reversedAt"
|
|
38
|
+
|
|
39
|
+
field :reversal_journal_transaction_id, -> { String }, optional: false, nullable: true, api_name: "reversalJournalTransactionId"
|
|
40
|
+
|
|
41
|
+
field :reversal_reason, -> { String }, optional: false, nullable: true, api_name: "reversalReason"
|
|
42
|
+
|
|
37
43
|
field :credited_invoice_id, -> { String }, optional: false, nullable: true, api_name: "creditedInvoiceId"
|
|
38
44
|
|
|
39
45
|
field :purchase_order_id, -> { String }, optional: false, nullable: true, api_name: "purchaseOrderId"
|
|
@@ -59,6 +65,8 @@ module Nordlet
|
|
|
59
65
|
field :updated_at, -> { String }, optional: false, nullable: false, api_name: "updatedAt"
|
|
60
66
|
|
|
61
67
|
field :lines, -> { Internal::Types::Array[Nordlet::Purchases::Types::InvoicesRegisterPurchasesResponseLinesItem] }, optional: false, nullable: false
|
|
68
|
+
|
|
69
|
+
field :warnings, -> { Internal::Types::Array[Nordlet::Purchases::Types::InvoicesRegisterPurchasesResponseWarningsItem] }, optional: false, nullable: false
|
|
62
70
|
end
|
|
63
71
|
end
|
|
64
72
|
end
|