e-invoice-api 0.17.0 → 0.19.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +23 -0
- data/README.md +1 -1
- data/lib/e_invoice_api/models/document_response.rb +8 -1
- data/lib/e_invoice_api/models/inbox_list_params.rb +3 -11
- data/lib/e_invoice_api/models/lookup_retrieve_response.rb +17 -1
- data/lib/e_invoice_api/models/me_retrieve_response.rb +17 -17
- data/lib/e_invoice_api/models/outbox_list_received_documents_params.rb +3 -13
- data/lib/e_invoice_api/resources/documents/attachments.rb +4 -2
- data/lib/e_invoice_api/resources/inbox.rb +2 -4
- data/lib/e_invoice_api/resources/outbox.rb +4 -4
- data/lib/e_invoice_api/version.rb +1 -1
- data/rbi/e_invoice_api/models/document_response.rbi +6 -0
- data/rbi/e_invoice_api/models/inbox_list_params.rbi +2 -10
- data/rbi/e_invoice_api/models/lookup_retrieve_response.rbi +19 -3
- data/rbi/e_invoice_api/models/me_retrieve_response.rbi +30 -18
- data/rbi/e_invoice_api/models/outbox_list_received_documents_params.rbi +2 -10
- data/rbi/e_invoice_api/resources/documents/attachments.rbi +4 -2
- data/rbi/e_invoice_api/resources/inbox.rbi +1 -4
- data/rbi/e_invoice_api/resources/outbox.rbi +1 -4
- data/sig/e_invoice_api/models/document_response.rbs +5 -0
- data/sig/e_invoice_api/models/inbox_list_params.rbs +0 -5
- data/sig/e_invoice_api/models/lookup_retrieve_response.rbs +13 -3
- data/sig/e_invoice_api/models/me_retrieve_response.rbs +16 -10
- data/sig/e_invoice_api/models/outbox_list_received_documents_params.rbs +0 -5
- data/sig/e_invoice_api/resources/inbox.rbs +0 -1
- data/sig/e_invoice_api/resources/outbox.rbs +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be8a7c1878f82701f52054146fcfbf34395ff5266cf49fa5055fdea3aebfe6cf
|
|
4
|
+
data.tar.gz: fd8c018479720a325c6425f6d71d15eb7af7eb71fbd469eea51d30d54a5247f7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 69310ae46feffdcd592bed4ccd5a47783bc9088b4bd31874580277b7748a5ae32109c98d22bdb28f10f96f864cbe7ec1a8a70b0b940ac56ba8dd18dc94bc8ac7
|
|
7
|
+
data.tar.gz: 89d537729f0024904db500cc9f7b9cc2b541f1bac2d3405bc3e0aa305db2eed59359b949d99ceebda0febdd0559d89fe10838826cb782ad0596907b473ab8c17
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.19.0 (2026-01-21)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.18.0...v0.19.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.18.0...v0.19.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([e13b157](https://github.com/e-invoice-be/e-invoice-rb/commit/e13b1573fd82b2e32d7d84ce58c69ba8d3f4b9d4))
|
|
10
|
+
* **api:** api update ([e27532c](https://github.com/e-invoice-be/e-invoice-rb/commit/e27532c3b1c99ac96ef8980b82a0eb53956a3b63))
|
|
11
|
+
* **api:** api update ([10b99ad](https://github.com/e-invoice-be/e-invoice-rb/commit/10b99adc5b8185d4fa8635ce62a08e911036d055))
|
|
12
|
+
|
|
13
|
+
## 0.18.0 (2026-01-19)
|
|
14
|
+
|
|
15
|
+
Full Changelog: [v0.17.0...v0.18.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.17.0...v0.18.0)
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **api:** api update ([6d3ef3b](https://github.com/e-invoice-be/e-invoice-rb/commit/6d3ef3b773cf13e36e20cef0008ad3dc75d36cfb))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Chores
|
|
23
|
+
|
|
24
|
+
* **internal:** update `actions/checkout` version ([7bb6612](https://github.com/e-invoice-be/e-invoice-rb/commit/7bb661210fda31d5e2cc09db4d02a82c1b62a97c))
|
|
25
|
+
|
|
3
26
|
## 0.17.0 (2026-01-15)
|
|
4
27
|
|
|
5
28
|
Full Changelog: [v0.16.2...v0.17.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.16.2...v0.17.0)
|
data/README.md
CHANGED
|
@@ -9,6 +9,11 @@ module EInvoiceAPI
|
|
|
9
9
|
# @return [String]
|
|
10
10
|
required :id, String
|
|
11
11
|
|
|
12
|
+
# @!attribute created_at
|
|
13
|
+
#
|
|
14
|
+
# @return [Time]
|
|
15
|
+
required :created_at, Time
|
|
16
|
+
|
|
12
17
|
# @!attribute allowances
|
|
13
18
|
#
|
|
14
19
|
# @return [Array<EInvoiceAPI::Models::DocumentResponse::Allowance>, nil]
|
|
@@ -310,12 +315,14 @@ module EInvoiceAPI
|
|
|
310
315
|
# @return [String, nil]
|
|
311
316
|
optional :vendor_tax_id, String, nil?: true
|
|
312
317
|
|
|
313
|
-
# @!method initialize(id:, allowances: nil, amount_due: nil, attachments: nil, billing_address: nil, billing_address_recipient: nil, charges: nil, currency: nil, customer_address: nil, customer_address_recipient: nil, customer_company_id: nil, customer_email: nil, customer_id: nil, customer_name: nil, customer_tax_id: nil, direction: nil, document_type: nil, due_date: nil, invoice_date: nil, invoice_id: nil, invoice_total: nil, items: nil, note: nil, payment_details: nil, payment_term: nil, purchase_order: nil, remittance_address: nil, remittance_address_recipient: nil, service_address: nil, service_address_recipient: nil, service_end_date: nil, service_start_date: nil, shipping_address: nil, shipping_address_recipient: nil, state: nil, subtotal: nil, tax_code: nil, tax_details: nil, total_discount: nil, total_tax: nil, vatex: nil, vatex_note: nil, vendor_address: nil, vendor_address_recipient: nil, vendor_company_id: nil, vendor_email: nil, vendor_name: nil, vendor_tax_id: nil)
|
|
318
|
+
# @!method initialize(id:, created_at:, allowances: nil, amount_due: nil, attachments: nil, billing_address: nil, billing_address_recipient: nil, charges: nil, currency: nil, customer_address: nil, customer_address_recipient: nil, customer_company_id: nil, customer_email: nil, customer_id: nil, customer_name: nil, customer_tax_id: nil, direction: nil, document_type: nil, due_date: nil, invoice_date: nil, invoice_id: nil, invoice_total: nil, items: nil, note: nil, payment_details: nil, payment_term: nil, purchase_order: nil, remittance_address: nil, remittance_address_recipient: nil, service_address: nil, service_address_recipient: nil, service_end_date: nil, service_start_date: nil, shipping_address: nil, shipping_address_recipient: nil, state: nil, subtotal: nil, tax_code: nil, tax_details: nil, total_discount: nil, total_tax: nil, vatex: nil, vatex_note: nil, vendor_address: nil, vendor_address_recipient: nil, vendor_company_id: nil, vendor_email: nil, vendor_name: nil, vendor_tax_id: nil)
|
|
314
319
|
# Some parameter documentations has been truncated, see
|
|
315
320
|
# {EInvoiceAPI::Models::DocumentResponse} for more details.
|
|
316
321
|
#
|
|
317
322
|
# @param id [String]
|
|
318
323
|
#
|
|
324
|
+
# @param created_at [Time]
|
|
325
|
+
#
|
|
319
326
|
# @param allowances [Array<EInvoiceAPI::Models::DocumentResponse::Allowance>, nil]
|
|
320
327
|
#
|
|
321
328
|
# @param amount_due [String, nil] The amount due for payment. Must be positive and rounded to maximum 2 decimals
|
|
@@ -55,19 +55,13 @@ module EInvoiceAPI
|
|
|
55
55
|
# @return [Symbol, EInvoiceAPI::Models::InboxListParams::SortOrder, nil]
|
|
56
56
|
optional :sort_order, enum: -> { EInvoiceAPI::InboxListParams::SortOrder }
|
|
57
57
|
|
|
58
|
-
# @!attribute state
|
|
59
|
-
# Filter by document state
|
|
60
|
-
#
|
|
61
|
-
# @return [Symbol, EInvoiceAPI::Models::DocumentState, nil]
|
|
62
|
-
optional :state, enum: -> { EInvoiceAPI::DocumentState }, nil?: true
|
|
63
|
-
|
|
64
58
|
# @!attribute type
|
|
65
|
-
# Filter by document type
|
|
59
|
+
# Filter by document type. If not provided, returns all types.
|
|
66
60
|
#
|
|
67
61
|
# @return [Symbol, EInvoiceAPI::Models::DocumentType, nil]
|
|
68
62
|
optional :type, enum: -> { EInvoiceAPI::DocumentType }, nil?: true
|
|
69
63
|
|
|
70
|
-
# @!method initialize(date_from: nil, date_to: nil, page: nil, page_size: nil, search: nil, sender: nil, sort_by: nil, sort_order: nil,
|
|
64
|
+
# @!method initialize(date_from: nil, date_to: nil, page: nil, page_size: nil, search: nil, sender: nil, sort_by: nil, sort_order: nil, type: nil, request_options: {})
|
|
71
65
|
# @param date_from [Time, nil] Filter by issue date (from)
|
|
72
66
|
#
|
|
73
67
|
# @param date_to [Time, nil] Filter by issue date (to)
|
|
@@ -84,9 +78,7 @@ module EInvoiceAPI
|
|
|
84
78
|
#
|
|
85
79
|
# @param sort_order [Symbol, EInvoiceAPI::Models::InboxListParams::SortOrder] Sort direction (asc/desc)
|
|
86
80
|
#
|
|
87
|
-
# @param
|
|
88
|
-
#
|
|
89
|
-
# @param type [Symbol, EInvoiceAPI::Models::DocumentType, nil] Filter by document type
|
|
81
|
+
# @param type [Symbol, EInvoiceAPI::Models::DocumentType, nil] Filter by document type. If not provided, returns all types.
|
|
90
82
|
#
|
|
91
83
|
# @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}]
|
|
92
84
|
|
|
@@ -192,7 +192,19 @@ module EInvoiceAPI
|
|
|
192
192
|
# @return [String, nil]
|
|
193
193
|
optional :error, String, nil?: true
|
|
194
194
|
|
|
195
|
-
# @!
|
|
195
|
+
# @!attribute lookup_method
|
|
196
|
+
# DNS lookup method used: 'naptr' (new spec) or 'busdox' (legacy)
|
|
197
|
+
#
|
|
198
|
+
# @return [String, nil]
|
|
199
|
+
optional :lookup_method, String, api_name: :lookupMethod, nil?: true
|
|
200
|
+
|
|
201
|
+
# @!attribute smp_hostname
|
|
202
|
+
# Hostname of the SMP (Service Metadata Publisher) discovered via DNS
|
|
203
|
+
#
|
|
204
|
+
# @return [String, nil]
|
|
205
|
+
optional :smp_hostname, String, api_name: :smpHostname, nil?: true
|
|
206
|
+
|
|
207
|
+
# @!method initialize(dns_records:, sml_hostname:, status:, error: nil, lookup_method: nil, smp_hostname: nil)
|
|
196
208
|
# Information about the DNS lookup performed
|
|
197
209
|
#
|
|
198
210
|
# @param dns_records [Array<EInvoiceAPI::Models::LookupRetrieveResponse::DNSInfo::DNSRecord>] List of DNS records found for the Peppol participant
|
|
@@ -202,6 +214,10 @@ module EInvoiceAPI
|
|
|
202
214
|
# @param status [String] Status of the DNS lookup: 'success', 'error', or 'pending'
|
|
203
215
|
#
|
|
204
216
|
# @param error [String, nil] Error message if the DNS lookup failed
|
|
217
|
+
#
|
|
218
|
+
# @param lookup_method [String, nil] DNS lookup method used: 'naptr' (new spec) or 'busdox' (legacy)
|
|
219
|
+
#
|
|
220
|
+
# @param smp_hostname [String, nil] Hostname of the SMP (Service Metadata Publisher) discovered via DNS
|
|
205
221
|
|
|
206
222
|
class DNSRecord < EInvoiceAPI::Internal::Type::BaseModel
|
|
207
223
|
# @!attribute ip
|
|
@@ -4,23 +4,11 @@ module EInvoiceAPI
|
|
|
4
4
|
module Models
|
|
5
5
|
# @see EInvoiceAPI::Resources::Me#retrieve
|
|
6
6
|
class MeRetrieveResponse < EInvoiceAPI::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute credit_balance
|
|
8
|
-
# Credit balance of the tenant
|
|
9
|
-
#
|
|
10
|
-
# @return [Integer]
|
|
11
|
-
required :credit_balance, Integer
|
|
12
|
-
|
|
13
7
|
# @!attribute name
|
|
14
8
|
#
|
|
15
9
|
# @return [String]
|
|
16
10
|
required :name, String
|
|
17
11
|
|
|
18
|
-
# @!attribute plan
|
|
19
|
-
# Plan of the tenant
|
|
20
|
-
#
|
|
21
|
-
# @return [Symbol, EInvoiceAPI::Models::MeRetrieveResponse::Plan]
|
|
22
|
-
required :plan, enum: -> { EInvoiceAPI::Models::MeRetrieveResponse::Plan }
|
|
23
|
-
|
|
24
12
|
# @!attribute bcc_recipient_email
|
|
25
13
|
# BCC recipient email to deliver documents
|
|
26
14
|
#
|
|
@@ -78,6 +66,12 @@ module EInvoiceAPI
|
|
|
78
66
|
# @return [String, nil]
|
|
79
67
|
optional :company_zip, String, nil?: true
|
|
80
68
|
|
|
69
|
+
# @!attribute credit_balance
|
|
70
|
+
# Credit balance of the tenant
|
|
71
|
+
#
|
|
72
|
+
# @return [Integer, nil]
|
|
73
|
+
optional :credit_balance, Integer
|
|
74
|
+
|
|
81
75
|
# @!attribute description
|
|
82
76
|
#
|
|
83
77
|
# @return [String, nil]
|
|
@@ -95,6 +89,12 @@ module EInvoiceAPI
|
|
|
95
89
|
# @return [Array<String>, nil]
|
|
96
90
|
optional :peppol_ids, EInvoiceAPI::Internal::Type::ArrayOf[String], nil?: true
|
|
97
91
|
|
|
92
|
+
# @!attribute plan
|
|
93
|
+
# Plan of the tenant
|
|
94
|
+
#
|
|
95
|
+
# @return [Symbol, EInvoiceAPI::Models::MeRetrieveResponse::Plan, nil]
|
|
96
|
+
optional :plan, enum: -> { EInvoiceAPI::Models::MeRetrieveResponse::Plan }
|
|
97
|
+
|
|
98
98
|
# @!attribute smp_registration
|
|
99
99
|
# Whether the tenant is registered on our SMP
|
|
100
100
|
#
|
|
@@ -107,16 +107,12 @@ module EInvoiceAPI
|
|
|
107
107
|
# @return [Time, nil]
|
|
108
108
|
optional :smp_registration_date, Time, nil?: true
|
|
109
109
|
|
|
110
|
-
# @!method initialize(
|
|
110
|
+
# @!method initialize(name:, bcc_recipient_email: nil, company_address: nil, company_city: nil, company_country: nil, company_email: nil, company_name: nil, company_number: nil, company_tax_id: nil, company_zip: nil, credit_balance: nil, description: nil, ibans: nil, peppol_ids: nil, plan: nil, smp_registration: nil, smp_registration_date: nil)
|
|
111
111
|
# Some parameter documentations has been truncated, see
|
|
112
112
|
# {EInvoiceAPI::Models::MeRetrieveResponse} for more details.
|
|
113
113
|
#
|
|
114
|
-
# @param credit_balance [Integer] Credit balance of the tenant
|
|
115
|
-
#
|
|
116
114
|
# @param name [String]
|
|
117
115
|
#
|
|
118
|
-
# @param plan [Symbol, EInvoiceAPI::Models::MeRetrieveResponse::Plan] Plan of the tenant
|
|
119
|
-
#
|
|
120
116
|
# @param bcc_recipient_email [String, nil] BCC recipient email to deliver documents
|
|
121
117
|
#
|
|
122
118
|
# @param company_address [String, nil] Address of the company. Must be in the form of `Street Name Street Number`
|
|
@@ -135,12 +131,16 @@ module EInvoiceAPI
|
|
|
135
131
|
#
|
|
136
132
|
# @param company_zip [String, nil] Zip code of the company
|
|
137
133
|
#
|
|
134
|
+
# @param credit_balance [Integer] Credit balance of the tenant
|
|
135
|
+
#
|
|
138
136
|
# @param description [String, nil]
|
|
139
137
|
#
|
|
140
138
|
# @param ibans [Array<String>, nil] IBANs of the tenant
|
|
141
139
|
#
|
|
142
140
|
# @param peppol_ids [Array<String>, nil] Peppol IDs of the tenant
|
|
143
141
|
#
|
|
142
|
+
# @param plan [Symbol, EInvoiceAPI::Models::MeRetrieveResponse::Plan] Plan of the tenant
|
|
143
|
+
#
|
|
144
144
|
# @param smp_registration [Boolean, nil] Whether the tenant is registered on our SMP
|
|
145
145
|
#
|
|
146
146
|
# @param smp_registration_date [Time, nil] Date when the tenant was registered on SMP
|
|
@@ -45,8 +45,6 @@ module EInvoiceAPI
|
|
|
45
45
|
optional :search, String, nil?: true
|
|
46
46
|
|
|
47
47
|
# @!attribute sender
|
|
48
|
-
# @deprecated
|
|
49
|
-
#
|
|
50
48
|
# (Deprecated) Filter by sender ID
|
|
51
49
|
#
|
|
52
50
|
# @return [String, nil]
|
|
@@ -64,19 +62,13 @@ module EInvoiceAPI
|
|
|
64
62
|
# @return [Symbol, EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::SortOrder, nil]
|
|
65
63
|
optional :sort_order, enum: -> { EInvoiceAPI::OutboxListReceivedDocumentsParams::SortOrder }
|
|
66
64
|
|
|
67
|
-
# @!attribute state
|
|
68
|
-
# Filter by document state
|
|
69
|
-
#
|
|
70
|
-
# @return [Symbol, EInvoiceAPI::Models::DocumentState, nil]
|
|
71
|
-
optional :state, enum: -> { EInvoiceAPI::DocumentState }, nil?: true
|
|
72
|
-
|
|
73
65
|
# @!attribute type
|
|
74
|
-
# Filter by document type
|
|
66
|
+
# Filter by document type. If not provided, returns all types.
|
|
75
67
|
#
|
|
76
68
|
# @return [Symbol, EInvoiceAPI::Models::DocumentType, nil]
|
|
77
69
|
optional :type, enum: -> { EInvoiceAPI::DocumentType }, nil?: true
|
|
78
70
|
|
|
79
|
-
# @!method initialize(date_from: nil, date_to: nil, page: nil, page_size: nil, receiver: nil, search: nil, sender: nil, sort_by: nil, sort_order: nil,
|
|
71
|
+
# @!method initialize(date_from: nil, date_to: nil, page: nil, page_size: nil, receiver: nil, search: nil, sender: nil, sort_by: nil, sort_order: nil, type: nil, request_options: {})
|
|
80
72
|
# Some parameter documentations has been truncated, see
|
|
81
73
|
# {EInvoiceAPI::Models::OutboxListReceivedDocumentsParams} for more details.
|
|
82
74
|
#
|
|
@@ -98,9 +90,7 @@ module EInvoiceAPI
|
|
|
98
90
|
#
|
|
99
91
|
# @param sort_order [Symbol, EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::SortOrder] Sort direction (asc/desc)
|
|
100
92
|
#
|
|
101
|
-
# @param
|
|
102
|
-
#
|
|
103
|
-
# @param type [Symbol, EInvoiceAPI::Models::DocumentType, nil] Filter by document type
|
|
93
|
+
# @param type [Symbol, EInvoiceAPI::Models::DocumentType, nil] Filter by document type. If not provided, returns all types.
|
|
104
94
|
#
|
|
105
95
|
# @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}]
|
|
106
96
|
|
|
@@ -76,8 +76,10 @@ module EInvoiceAPI
|
|
|
76
76
|
|
|
77
77
|
# @deprecated
|
|
78
78
|
#
|
|
79
|
-
# Add one or more attachments
|
|
80
|
-
#
|
|
79
|
+
# Add one or more attachments to an invoice. Be careful: the attachments ARE NOT
|
|
80
|
+
# ADDED to the UBL! They are only stored in our database and can be downloaded
|
|
81
|
+
# later. To add attachments to the UBL, you need to add the attachment(s) via POST
|
|
82
|
+
# /api/documents
|
|
81
83
|
#
|
|
82
84
|
# @overload add(document_id, file:, request_options: {})
|
|
83
85
|
#
|
|
@@ -6,7 +6,7 @@ module EInvoiceAPI
|
|
|
6
6
|
# Retrieve a paginated list of received documents with filtering options including
|
|
7
7
|
# state, type, sender, date range, and text search.
|
|
8
8
|
#
|
|
9
|
-
# @overload list(date_from: nil, date_to: nil, page: nil, page_size: nil, search: nil, sender: nil, sort_by: nil, sort_order: nil,
|
|
9
|
+
# @overload list(date_from: nil, date_to: nil, page: nil, page_size: nil, search: nil, sender: nil, sort_by: nil, sort_order: nil, type: nil, request_options: {})
|
|
10
10
|
#
|
|
11
11
|
# @param date_from [Time, nil] Filter by issue date (from)
|
|
12
12
|
#
|
|
@@ -24,9 +24,7 @@ module EInvoiceAPI
|
|
|
24
24
|
#
|
|
25
25
|
# @param sort_order [Symbol, EInvoiceAPI::Models::InboxListParams::SortOrder] Sort direction (asc/desc)
|
|
26
26
|
#
|
|
27
|
-
# @param
|
|
28
|
-
#
|
|
29
|
-
# @param type [Symbol, EInvoiceAPI::Models::DocumentType, nil] Filter by document type
|
|
27
|
+
# @param type [Symbol, EInvoiceAPI::Models::DocumentType, nil] Filter by document type. If not provided, returns all types.
|
|
30
28
|
#
|
|
31
29
|
# @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
32
30
|
#
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
module EInvoiceAPI
|
|
4
4
|
module Resources
|
|
5
5
|
class Outbox
|
|
6
|
+
# @deprecated
|
|
7
|
+
#
|
|
6
8
|
# Retrieve a paginated list of draft documents with filtering options including
|
|
7
9
|
# state and text search.
|
|
8
10
|
#
|
|
@@ -45,7 +47,7 @@ module EInvoiceAPI
|
|
|
45
47
|
# Retrieve a paginated list of sent documents with filtering options including
|
|
46
48
|
# state, type, sender, date range, and text search.
|
|
47
49
|
#
|
|
48
|
-
# @overload list_received_documents(date_from: nil, date_to: nil, page: nil, page_size: nil, receiver: nil, search: nil, sender: nil, sort_by: nil, sort_order: nil,
|
|
50
|
+
# @overload list_received_documents(date_from: nil, date_to: nil, page: nil, page_size: nil, receiver: nil, search: nil, sender: nil, sort_by: nil, sort_order: nil, type: nil, request_options: {})
|
|
49
51
|
#
|
|
50
52
|
# @param date_from [Time, nil] Filter by issue date (from)
|
|
51
53
|
#
|
|
@@ -65,9 +67,7 @@ module EInvoiceAPI
|
|
|
65
67
|
#
|
|
66
68
|
# @param sort_order [Symbol, EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::SortOrder] Sort direction (asc/desc)
|
|
67
69
|
#
|
|
68
|
-
# @param
|
|
69
|
-
#
|
|
70
|
-
# @param type [Symbol, EInvoiceAPI::Models::DocumentType, nil] Filter by document type
|
|
70
|
+
# @param type [Symbol, EInvoiceAPI::Models::DocumentType, nil] Filter by document type. If not provided, returns all types.
|
|
71
71
|
#
|
|
72
72
|
# @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
73
73
|
#
|
|
@@ -11,6 +11,9 @@ module EInvoiceAPI
|
|
|
11
11
|
sig { returns(String) }
|
|
12
12
|
attr_accessor :id
|
|
13
13
|
|
|
14
|
+
sig { returns(Time) }
|
|
15
|
+
attr_accessor :created_at
|
|
16
|
+
|
|
14
17
|
sig do
|
|
15
18
|
returns(T.nilable(T::Array[EInvoiceAPI::DocumentResponse::Allowance]))
|
|
16
19
|
end
|
|
@@ -242,6 +245,7 @@ module EInvoiceAPI
|
|
|
242
245
|
sig do
|
|
243
246
|
params(
|
|
244
247
|
id: String,
|
|
248
|
+
created_at: Time,
|
|
245
249
|
allowances:
|
|
246
250
|
T.nilable(
|
|
247
251
|
T::Array[EInvoiceAPI::DocumentResponse::Allowance::OrHash]
|
|
@@ -307,6 +311,7 @@ module EInvoiceAPI
|
|
|
307
311
|
end
|
|
308
312
|
def self.new(
|
|
309
313
|
id:,
|
|
314
|
+
created_at:,
|
|
310
315
|
allowances: nil,
|
|
311
316
|
# The amount due for payment. Must be positive and rounded to maximum 2 decimals
|
|
312
317
|
amount_due: nil,
|
|
@@ -415,6 +420,7 @@ module EInvoiceAPI
|
|
|
415
420
|
override.returns(
|
|
416
421
|
{
|
|
417
422
|
id: String,
|
|
423
|
+
created_at: Time,
|
|
418
424
|
allowances:
|
|
419
425
|
T.nilable(T::Array[EInvoiceAPI::DocumentResponse::Allowance]),
|
|
420
426
|
amount_due: T.nilable(String),
|
|
@@ -63,11 +63,7 @@ module EInvoiceAPI
|
|
|
63
63
|
end
|
|
64
64
|
attr_writer :sort_order
|
|
65
65
|
|
|
66
|
-
# Filter by document
|
|
67
|
-
sig { returns(T.nilable(EInvoiceAPI::DocumentState::OrSymbol)) }
|
|
68
|
-
attr_accessor :state
|
|
69
|
-
|
|
70
|
-
# Filter by document type
|
|
66
|
+
# Filter by document type. If not provided, returns all types.
|
|
71
67
|
sig { returns(T.nilable(EInvoiceAPI::DocumentType::OrSymbol)) }
|
|
72
68
|
attr_accessor :type
|
|
73
69
|
|
|
@@ -81,7 +77,6 @@ module EInvoiceAPI
|
|
|
81
77
|
sender: T.nilable(String),
|
|
82
78
|
sort_by: EInvoiceAPI::InboxListParams::SortBy::OrSymbol,
|
|
83
79
|
sort_order: EInvoiceAPI::InboxListParams::SortOrder::OrSymbol,
|
|
84
|
-
state: T.nilable(EInvoiceAPI::DocumentState::OrSymbol),
|
|
85
80
|
type: T.nilable(EInvoiceAPI::DocumentType::OrSymbol),
|
|
86
81
|
request_options: EInvoiceAPI::RequestOptions::OrHash
|
|
87
82
|
).returns(T.attached_class)
|
|
@@ -103,9 +98,7 @@ module EInvoiceAPI
|
|
|
103
98
|
sort_by: nil,
|
|
104
99
|
# Sort direction (asc/desc)
|
|
105
100
|
sort_order: nil,
|
|
106
|
-
# Filter by document
|
|
107
|
-
state: nil,
|
|
108
|
-
# Filter by document type
|
|
101
|
+
# Filter by document type. If not provided, returns all types.
|
|
109
102
|
type: nil,
|
|
110
103
|
request_options: {}
|
|
111
104
|
)
|
|
@@ -122,7 +115,6 @@ module EInvoiceAPI
|
|
|
122
115
|
sender: T.nilable(String),
|
|
123
116
|
sort_by: EInvoiceAPI::InboxListParams::SortBy::OrSymbol,
|
|
124
117
|
sort_order: EInvoiceAPI::InboxListParams::SortOrder::OrSymbol,
|
|
125
|
-
state: T.nilable(EInvoiceAPI::DocumentState::OrSymbol),
|
|
126
118
|
type: T.nilable(EInvoiceAPI::DocumentType::OrSymbol),
|
|
127
119
|
request_options: EInvoiceAPI::RequestOptions
|
|
128
120
|
}
|
|
@@ -306,6 +306,14 @@ module EInvoiceAPI
|
|
|
306
306
|
sig { returns(T.nilable(String)) }
|
|
307
307
|
attr_accessor :error
|
|
308
308
|
|
|
309
|
+
# DNS lookup method used: 'naptr' (new spec) or 'busdox' (legacy)
|
|
310
|
+
sig { returns(T.nilable(String)) }
|
|
311
|
+
attr_accessor :lookup_method
|
|
312
|
+
|
|
313
|
+
# Hostname of the SMP (Service Metadata Publisher) discovered via DNS
|
|
314
|
+
sig { returns(T.nilable(String)) }
|
|
315
|
+
attr_accessor :smp_hostname
|
|
316
|
+
|
|
309
317
|
# Information about the DNS lookup performed
|
|
310
318
|
sig do
|
|
311
319
|
params(
|
|
@@ -315,7 +323,9 @@ module EInvoiceAPI
|
|
|
315
323
|
],
|
|
316
324
|
sml_hostname: String,
|
|
317
325
|
status: String,
|
|
318
|
-
error: T.nilable(String)
|
|
326
|
+
error: T.nilable(String),
|
|
327
|
+
lookup_method: T.nilable(String),
|
|
328
|
+
smp_hostname: T.nilable(String)
|
|
319
329
|
).returns(T.attached_class)
|
|
320
330
|
end
|
|
321
331
|
def self.new(
|
|
@@ -326,7 +336,11 @@ module EInvoiceAPI
|
|
|
326
336
|
# Status of the DNS lookup: 'success', 'error', or 'pending'
|
|
327
337
|
status:,
|
|
328
338
|
# Error message if the DNS lookup failed
|
|
329
|
-
error: nil
|
|
339
|
+
error: nil,
|
|
340
|
+
# DNS lookup method used: 'naptr' (new spec) or 'busdox' (legacy)
|
|
341
|
+
lookup_method: nil,
|
|
342
|
+
# Hostname of the SMP (Service Metadata Publisher) discovered via DNS
|
|
343
|
+
smp_hostname: nil
|
|
330
344
|
)
|
|
331
345
|
end
|
|
332
346
|
|
|
@@ -339,7 +353,9 @@ module EInvoiceAPI
|
|
|
339
353
|
],
|
|
340
354
|
sml_hostname: String,
|
|
341
355
|
status: String,
|
|
342
|
-
error: T.nilable(String)
|
|
356
|
+
error: T.nilable(String),
|
|
357
|
+
lookup_method: T.nilable(String),
|
|
358
|
+
smp_hostname: T.nilable(String)
|
|
343
359
|
}
|
|
344
360
|
)
|
|
345
361
|
end
|
|
@@ -11,19 +11,9 @@ module EInvoiceAPI
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
# Credit balance of the tenant
|
|
15
|
-
sig { returns(Integer) }
|
|
16
|
-
attr_accessor :credit_balance
|
|
17
|
-
|
|
18
14
|
sig { returns(String) }
|
|
19
15
|
attr_accessor :name
|
|
20
16
|
|
|
21
|
-
# Plan of the tenant
|
|
22
|
-
sig do
|
|
23
|
-
returns(EInvoiceAPI::Models::MeRetrieveResponse::Plan::TaggedSymbol)
|
|
24
|
-
end
|
|
25
|
-
attr_accessor :plan
|
|
26
|
-
|
|
27
17
|
# BCC recipient email to deliver documents
|
|
28
18
|
sig { returns(T.nilable(String)) }
|
|
29
19
|
attr_accessor :bcc_recipient_email
|
|
@@ -63,6 +53,13 @@ module EInvoiceAPI
|
|
|
63
53
|
sig { returns(T.nilable(String)) }
|
|
64
54
|
attr_accessor :company_zip
|
|
65
55
|
|
|
56
|
+
# Credit balance of the tenant
|
|
57
|
+
sig { returns(T.nilable(Integer)) }
|
|
58
|
+
attr_reader :credit_balance
|
|
59
|
+
|
|
60
|
+
sig { params(credit_balance: Integer).void }
|
|
61
|
+
attr_writer :credit_balance
|
|
62
|
+
|
|
66
63
|
sig { returns(T.nilable(String)) }
|
|
67
64
|
attr_accessor :description
|
|
68
65
|
|
|
@@ -74,6 +71,21 @@ module EInvoiceAPI
|
|
|
74
71
|
sig { returns(T.nilable(T::Array[String])) }
|
|
75
72
|
attr_accessor :peppol_ids
|
|
76
73
|
|
|
74
|
+
# Plan of the tenant
|
|
75
|
+
sig do
|
|
76
|
+
returns(
|
|
77
|
+
T.nilable(EInvoiceAPI::Models::MeRetrieveResponse::Plan::TaggedSymbol)
|
|
78
|
+
)
|
|
79
|
+
end
|
|
80
|
+
attr_reader :plan
|
|
81
|
+
|
|
82
|
+
sig do
|
|
83
|
+
params(
|
|
84
|
+
plan: EInvoiceAPI::Models::MeRetrieveResponse::Plan::OrSymbol
|
|
85
|
+
).void
|
|
86
|
+
end
|
|
87
|
+
attr_writer :plan
|
|
88
|
+
|
|
77
89
|
# Whether the tenant is registered on our SMP
|
|
78
90
|
sig { returns(T.nilable(T::Boolean)) }
|
|
79
91
|
attr_accessor :smp_registration
|
|
@@ -84,9 +96,7 @@ module EInvoiceAPI
|
|
|
84
96
|
|
|
85
97
|
sig do
|
|
86
98
|
params(
|
|
87
|
-
credit_balance: Integer,
|
|
88
99
|
name: String,
|
|
89
|
-
plan: EInvoiceAPI::Models::MeRetrieveResponse::Plan::OrSymbol,
|
|
90
100
|
bcc_recipient_email: T.nilable(String),
|
|
91
101
|
company_address: T.nilable(String),
|
|
92
102
|
company_city: T.nilable(String),
|
|
@@ -96,19 +106,17 @@ module EInvoiceAPI
|
|
|
96
106
|
company_number: T.nilable(String),
|
|
97
107
|
company_tax_id: T.nilable(String),
|
|
98
108
|
company_zip: T.nilable(String),
|
|
109
|
+
credit_balance: Integer,
|
|
99
110
|
description: T.nilable(String),
|
|
100
111
|
ibans: T.nilable(T::Array[String]),
|
|
101
112
|
peppol_ids: T.nilable(T::Array[String]),
|
|
113
|
+
plan: EInvoiceAPI::Models::MeRetrieveResponse::Plan::OrSymbol,
|
|
102
114
|
smp_registration: T.nilable(T::Boolean),
|
|
103
115
|
smp_registration_date: T.nilable(Time)
|
|
104
116
|
).returns(T.attached_class)
|
|
105
117
|
end
|
|
106
118
|
def self.new(
|
|
107
|
-
# Credit balance of the tenant
|
|
108
|
-
credit_balance:,
|
|
109
119
|
name:,
|
|
110
|
-
# Plan of the tenant
|
|
111
|
-
plan:,
|
|
112
120
|
# BCC recipient email to deliver documents
|
|
113
121
|
bcc_recipient_email: nil,
|
|
114
122
|
# Address of the company. Must be in the form of `Street Name Street Number`
|
|
@@ -130,11 +138,15 @@ module EInvoiceAPI
|
|
|
130
138
|
company_tax_id: nil,
|
|
131
139
|
# Zip code of the company
|
|
132
140
|
company_zip: nil,
|
|
141
|
+
# Credit balance of the tenant
|
|
142
|
+
credit_balance: nil,
|
|
133
143
|
description: nil,
|
|
134
144
|
# IBANs of the tenant
|
|
135
145
|
ibans: nil,
|
|
136
146
|
# Peppol IDs of the tenant
|
|
137
147
|
peppol_ids: nil,
|
|
148
|
+
# Plan of the tenant
|
|
149
|
+
plan: nil,
|
|
138
150
|
# Whether the tenant is registered on our SMP
|
|
139
151
|
smp_registration: nil,
|
|
140
152
|
# Date when the tenant was registered on SMP
|
|
@@ -145,9 +157,7 @@ module EInvoiceAPI
|
|
|
145
157
|
sig do
|
|
146
158
|
override.returns(
|
|
147
159
|
{
|
|
148
|
-
credit_balance: Integer,
|
|
149
160
|
name: String,
|
|
150
|
-
plan: EInvoiceAPI::Models::MeRetrieveResponse::Plan::TaggedSymbol,
|
|
151
161
|
bcc_recipient_email: T.nilable(String),
|
|
152
162
|
company_address: T.nilable(String),
|
|
153
163
|
company_city: T.nilable(String),
|
|
@@ -157,9 +167,11 @@ module EInvoiceAPI
|
|
|
157
167
|
company_number: T.nilable(String),
|
|
158
168
|
company_tax_id: T.nilable(String),
|
|
159
169
|
company_zip: T.nilable(String),
|
|
170
|
+
credit_balance: Integer,
|
|
160
171
|
description: T.nilable(String),
|
|
161
172
|
ibans: T.nilable(T::Array[String]),
|
|
162
173
|
peppol_ids: T.nilable(T::Array[String]),
|
|
174
|
+
plan: EInvoiceAPI::Models::MeRetrieveResponse::Plan::TaggedSymbol,
|
|
163
175
|
smp_registration: T.nilable(T::Boolean),
|
|
164
176
|
smp_registration_date: T.nilable(Time)
|
|
165
177
|
}
|
|
@@ -85,11 +85,7 @@ module EInvoiceAPI
|
|
|
85
85
|
end
|
|
86
86
|
attr_writer :sort_order
|
|
87
87
|
|
|
88
|
-
# Filter by document
|
|
89
|
-
sig { returns(T.nilable(EInvoiceAPI::DocumentState::OrSymbol)) }
|
|
90
|
-
attr_accessor :state
|
|
91
|
-
|
|
92
|
-
# Filter by document type
|
|
88
|
+
# Filter by document type. If not provided, returns all types.
|
|
93
89
|
sig { returns(T.nilable(EInvoiceAPI::DocumentType::OrSymbol)) }
|
|
94
90
|
attr_accessor :type
|
|
95
91
|
|
|
@@ -106,7 +102,6 @@ module EInvoiceAPI
|
|
|
106
102
|
EInvoiceAPI::OutboxListReceivedDocumentsParams::SortBy::OrSymbol,
|
|
107
103
|
sort_order:
|
|
108
104
|
EInvoiceAPI::OutboxListReceivedDocumentsParams::SortOrder::OrSymbol,
|
|
109
|
-
state: T.nilable(EInvoiceAPI::DocumentState::OrSymbol),
|
|
110
105
|
type: T.nilable(EInvoiceAPI::DocumentType::OrSymbol),
|
|
111
106
|
request_options: EInvoiceAPI::RequestOptions::OrHash
|
|
112
107
|
).returns(T.attached_class)
|
|
@@ -131,9 +126,7 @@ module EInvoiceAPI
|
|
|
131
126
|
sort_by: nil,
|
|
132
127
|
# Sort direction (asc/desc)
|
|
133
128
|
sort_order: nil,
|
|
134
|
-
# Filter by document
|
|
135
|
-
state: nil,
|
|
136
|
-
# Filter by document type
|
|
129
|
+
# Filter by document type. If not provided, returns all types.
|
|
137
130
|
type: nil,
|
|
138
131
|
request_options: {}
|
|
139
132
|
)
|
|
@@ -153,7 +146,6 @@ module EInvoiceAPI
|
|
|
153
146
|
EInvoiceAPI::OutboxListReceivedDocumentsParams::SortBy::OrSymbol,
|
|
154
147
|
sort_order:
|
|
155
148
|
EInvoiceAPI::OutboxListReceivedDocumentsParams::SortOrder::OrSymbol,
|
|
156
|
-
state: T.nilable(EInvoiceAPI::DocumentState::OrSymbol),
|
|
157
149
|
type: T.nilable(EInvoiceAPI::DocumentType::OrSymbol),
|
|
158
150
|
request_options: EInvoiceAPI::RequestOptions
|
|
159
151
|
}
|
|
@@ -37,8 +37,10 @@ module EInvoiceAPI
|
|
|
37
37
|
def delete(attachment_id, document_id:, request_options: {})
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
-
# Add one or more attachments
|
|
41
|
-
#
|
|
40
|
+
# Add one or more attachments to an invoice. Be careful: the attachments ARE NOT
|
|
41
|
+
# ADDED to the UBL! They are only stored in our database and can be downloaded
|
|
42
|
+
# later. To add attachments to the UBL, you need to add the attachment(s) via POST
|
|
43
|
+
# /api/documents
|
|
42
44
|
sig do
|
|
43
45
|
params(
|
|
44
46
|
document_id: String,
|
|
@@ -15,7 +15,6 @@ module EInvoiceAPI
|
|
|
15
15
|
sender: T.nilable(String),
|
|
16
16
|
sort_by: EInvoiceAPI::InboxListParams::SortBy::OrSymbol,
|
|
17
17
|
sort_order: EInvoiceAPI::InboxListParams::SortOrder::OrSymbol,
|
|
18
|
-
state: T.nilable(EInvoiceAPI::DocumentState::OrSymbol),
|
|
19
18
|
type: T.nilable(EInvoiceAPI::DocumentType::OrSymbol),
|
|
20
19
|
request_options: EInvoiceAPI::RequestOptions::OrHash
|
|
21
20
|
).returns(
|
|
@@ -41,9 +40,7 @@ module EInvoiceAPI
|
|
|
41
40
|
sort_by: nil,
|
|
42
41
|
# Sort direction (asc/desc)
|
|
43
42
|
sort_order: nil,
|
|
44
|
-
# Filter by document
|
|
45
|
-
state: nil,
|
|
46
|
-
# Filter by document type
|
|
43
|
+
# Filter by document type. If not provided, returns all types.
|
|
47
44
|
type: nil,
|
|
48
45
|
request_options: {}
|
|
49
46
|
)
|
|
@@ -57,7 +57,6 @@ module EInvoiceAPI
|
|
|
57
57
|
EInvoiceAPI::OutboxListReceivedDocumentsParams::SortBy::OrSymbol,
|
|
58
58
|
sort_order:
|
|
59
59
|
EInvoiceAPI::OutboxListReceivedDocumentsParams::SortOrder::OrSymbol,
|
|
60
|
-
state: T.nilable(EInvoiceAPI::DocumentState::OrSymbol),
|
|
61
60
|
type: T.nilable(EInvoiceAPI::DocumentType::OrSymbol),
|
|
62
61
|
request_options: EInvoiceAPI::RequestOptions::OrHash
|
|
63
62
|
).returns(
|
|
@@ -86,9 +85,7 @@ module EInvoiceAPI
|
|
|
86
85
|
sort_by: nil,
|
|
87
86
|
# Sort direction (asc/desc)
|
|
88
87
|
sort_order: nil,
|
|
89
|
-
# Filter by document
|
|
90
|
-
state: nil,
|
|
91
|
-
# Filter by document type
|
|
88
|
+
# Filter by document type. If not provided, returns all types.
|
|
92
89
|
type: nil,
|
|
93
90
|
request_options: {}
|
|
94
91
|
)
|
|
@@ -3,6 +3,7 @@ module EInvoiceAPI
|
|
|
3
3
|
type document_response =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
+
created_at: Time,
|
|
6
7
|
allowances: ::Array[EInvoiceAPI::DocumentResponse::Allowance]?,
|
|
7
8
|
amount_due: String?,
|
|
8
9
|
attachments: ::Array[EInvoiceAPI::Documents::DocumentAttachment]?,
|
|
@@ -55,6 +56,8 @@ module EInvoiceAPI
|
|
|
55
56
|
class DocumentResponse < EInvoiceAPI::Internal::Type::BaseModel
|
|
56
57
|
attr_accessor id: String
|
|
57
58
|
|
|
59
|
+
attr_accessor created_at: Time
|
|
60
|
+
|
|
58
61
|
attr_accessor allowances: ::Array[EInvoiceAPI::DocumentResponse::Allowance]?
|
|
59
62
|
|
|
60
63
|
attr_accessor amount_due: String?
|
|
@@ -171,6 +174,7 @@ module EInvoiceAPI
|
|
|
171
174
|
|
|
172
175
|
def initialize: (
|
|
173
176
|
id: String,
|
|
177
|
+
created_at: Time,
|
|
174
178
|
?allowances: ::Array[EInvoiceAPI::DocumentResponse::Allowance]?,
|
|
175
179
|
?amount_due: String?,
|
|
176
180
|
?attachments: ::Array[EInvoiceAPI::Documents::DocumentAttachment]?,
|
|
@@ -222,6 +226,7 @@ module EInvoiceAPI
|
|
|
222
226
|
|
|
223
227
|
def to_hash: -> {
|
|
224
228
|
id: String,
|
|
229
|
+
created_at: Time,
|
|
225
230
|
allowances: ::Array[EInvoiceAPI::DocumentResponse::Allowance]?,
|
|
226
231
|
amount_due: String?,
|
|
227
232
|
attachments: ::Array[EInvoiceAPI::Documents::DocumentAttachment]?,
|
|
@@ -10,7 +10,6 @@ module EInvoiceAPI
|
|
|
10
10
|
sender: String?,
|
|
11
11
|
sort_by: EInvoiceAPI::Models::InboxListParams::sort_by,
|
|
12
12
|
sort_order: EInvoiceAPI::Models::InboxListParams::sort_order,
|
|
13
|
-
state: EInvoiceAPI::Models::document_state?,
|
|
14
13
|
type: EInvoiceAPI::Models::document_type?
|
|
15
14
|
}
|
|
16
15
|
& EInvoiceAPI::Internal::Type::request_parameters
|
|
@@ -47,8 +46,6 @@ module EInvoiceAPI
|
|
|
47
46
|
EInvoiceAPI::Models::InboxListParams::sort_order
|
|
48
47
|
) -> EInvoiceAPI::Models::InboxListParams::sort_order
|
|
49
48
|
|
|
50
|
-
attr_accessor state: EInvoiceAPI::Models::document_state?
|
|
51
|
-
|
|
52
49
|
attr_accessor type: EInvoiceAPI::Models::document_type?
|
|
53
50
|
|
|
54
51
|
def initialize: (
|
|
@@ -60,7 +57,6 @@ module EInvoiceAPI
|
|
|
60
57
|
?sender: String?,
|
|
61
58
|
?sort_by: EInvoiceAPI::Models::InboxListParams::sort_by,
|
|
62
59
|
?sort_order: EInvoiceAPI::Models::InboxListParams::sort_order,
|
|
63
|
-
?state: EInvoiceAPI::Models::document_state?,
|
|
64
60
|
?type: EInvoiceAPI::Models::document_type?,
|
|
65
61
|
?request_options: EInvoiceAPI::request_opts
|
|
66
62
|
) -> void
|
|
@@ -74,7 +70,6 @@ module EInvoiceAPI
|
|
|
74
70
|
sender: String?,
|
|
75
71
|
sort_by: EInvoiceAPI::Models::InboxListParams::sort_by,
|
|
76
72
|
sort_order: EInvoiceAPI::Models::InboxListParams::sort_order,
|
|
77
|
-
state: EInvoiceAPI::Models::document_state?,
|
|
78
73
|
type: EInvoiceAPI::Models::document_type?,
|
|
79
74
|
request_options: EInvoiceAPI::RequestOptions
|
|
80
75
|
}
|
|
@@ -120,7 +120,9 @@ module EInvoiceAPI
|
|
|
120
120
|
dns_records: ::Array[EInvoiceAPI::Models::LookupRetrieveResponse::DNSInfo::DNSRecord],
|
|
121
121
|
sml_hostname: String,
|
|
122
122
|
status: String,
|
|
123
|
-
error: String
|
|
123
|
+
error: String?,
|
|
124
|
+
lookup_method: String?,
|
|
125
|
+
smp_hostname: String?
|
|
124
126
|
}
|
|
125
127
|
|
|
126
128
|
class DNSInfo < EInvoiceAPI::Internal::Type::BaseModel
|
|
@@ -132,18 +134,26 @@ module EInvoiceAPI
|
|
|
132
134
|
|
|
133
135
|
attr_accessor error: String?
|
|
134
136
|
|
|
137
|
+
attr_accessor lookup_method: String?
|
|
138
|
+
|
|
139
|
+
attr_accessor smp_hostname: String?
|
|
140
|
+
|
|
135
141
|
def initialize: (
|
|
136
142
|
dns_records: ::Array[EInvoiceAPI::Models::LookupRetrieveResponse::DNSInfo::DNSRecord],
|
|
137
143
|
sml_hostname: String,
|
|
138
144
|
status: String,
|
|
139
|
-
?error: String
|
|
145
|
+
?error: String?,
|
|
146
|
+
?lookup_method: String?,
|
|
147
|
+
?smp_hostname: String?
|
|
140
148
|
) -> void
|
|
141
149
|
|
|
142
150
|
def to_hash: -> {
|
|
143
151
|
dns_records: ::Array[EInvoiceAPI::Models::LookupRetrieveResponse::DNSInfo::DNSRecord],
|
|
144
152
|
sml_hostname: String,
|
|
145
153
|
status: String,
|
|
146
|
-
error: String
|
|
154
|
+
error: String?,
|
|
155
|
+
lookup_method: String?,
|
|
156
|
+
smp_hostname: String?
|
|
147
157
|
}
|
|
148
158
|
|
|
149
159
|
type dns_record = { ip: String }
|
|
@@ -2,9 +2,7 @@ module EInvoiceAPI
|
|
|
2
2
|
module Models
|
|
3
3
|
type me_retrieve_response =
|
|
4
4
|
{
|
|
5
|
-
credit_balance: Integer,
|
|
6
5
|
name: String,
|
|
7
|
-
plan: EInvoiceAPI::Models::MeRetrieveResponse::plan,
|
|
8
6
|
bcc_recipient_email: String?,
|
|
9
7
|
company_address: String?,
|
|
10
8
|
company_city: String?,
|
|
@@ -14,20 +12,18 @@ module EInvoiceAPI
|
|
|
14
12
|
company_number: String?,
|
|
15
13
|
company_tax_id: String?,
|
|
16
14
|
company_zip: String?,
|
|
15
|
+
credit_balance: Integer,
|
|
17
16
|
description: String?,
|
|
18
17
|
ibans: ::Array[String]?,
|
|
19
18
|
peppol_ids: ::Array[String]?,
|
|
19
|
+
plan: EInvoiceAPI::Models::MeRetrieveResponse::plan,
|
|
20
20
|
smp_registration: bool?,
|
|
21
21
|
smp_registration_date: Time?
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
class MeRetrieveResponse < EInvoiceAPI::Internal::Type::BaseModel
|
|
25
|
-
attr_accessor credit_balance: Integer
|
|
26
|
-
|
|
27
25
|
attr_accessor name: String
|
|
28
26
|
|
|
29
|
-
attr_accessor plan: EInvoiceAPI::Models::MeRetrieveResponse::plan
|
|
30
|
-
|
|
31
27
|
attr_accessor bcc_recipient_email: String?
|
|
32
28
|
|
|
33
29
|
attr_accessor company_address: String?
|
|
@@ -46,20 +42,28 @@ module EInvoiceAPI
|
|
|
46
42
|
|
|
47
43
|
attr_accessor company_zip: String?
|
|
48
44
|
|
|
45
|
+
attr_reader credit_balance: Integer?
|
|
46
|
+
|
|
47
|
+
def credit_balance=: (Integer) -> Integer
|
|
48
|
+
|
|
49
49
|
attr_accessor description: String?
|
|
50
50
|
|
|
51
51
|
attr_accessor ibans: ::Array[String]?
|
|
52
52
|
|
|
53
53
|
attr_accessor peppol_ids: ::Array[String]?
|
|
54
54
|
|
|
55
|
+
attr_reader plan: EInvoiceAPI::Models::MeRetrieveResponse::plan?
|
|
56
|
+
|
|
57
|
+
def plan=: (
|
|
58
|
+
EInvoiceAPI::Models::MeRetrieveResponse::plan
|
|
59
|
+
) -> EInvoiceAPI::Models::MeRetrieveResponse::plan
|
|
60
|
+
|
|
55
61
|
attr_accessor smp_registration: bool?
|
|
56
62
|
|
|
57
63
|
attr_accessor smp_registration_date: Time?
|
|
58
64
|
|
|
59
65
|
def initialize: (
|
|
60
|
-
credit_balance: Integer,
|
|
61
66
|
name: String,
|
|
62
|
-
plan: EInvoiceAPI::Models::MeRetrieveResponse::plan,
|
|
63
67
|
?bcc_recipient_email: String?,
|
|
64
68
|
?company_address: String?,
|
|
65
69
|
?company_city: String?,
|
|
@@ -69,17 +73,17 @@ module EInvoiceAPI
|
|
|
69
73
|
?company_number: String?,
|
|
70
74
|
?company_tax_id: String?,
|
|
71
75
|
?company_zip: String?,
|
|
76
|
+
?credit_balance: Integer,
|
|
72
77
|
?description: String?,
|
|
73
78
|
?ibans: ::Array[String]?,
|
|
74
79
|
?peppol_ids: ::Array[String]?,
|
|
80
|
+
?plan: EInvoiceAPI::Models::MeRetrieveResponse::plan,
|
|
75
81
|
?smp_registration: bool?,
|
|
76
82
|
?smp_registration_date: Time?
|
|
77
83
|
) -> void
|
|
78
84
|
|
|
79
85
|
def to_hash: -> {
|
|
80
|
-
credit_balance: Integer,
|
|
81
86
|
name: String,
|
|
82
|
-
plan: EInvoiceAPI::Models::MeRetrieveResponse::plan,
|
|
83
87
|
bcc_recipient_email: String?,
|
|
84
88
|
company_address: String?,
|
|
85
89
|
company_city: String?,
|
|
@@ -89,9 +93,11 @@ module EInvoiceAPI
|
|
|
89
93
|
company_number: String?,
|
|
90
94
|
company_tax_id: String?,
|
|
91
95
|
company_zip: String?,
|
|
96
|
+
credit_balance: Integer,
|
|
92
97
|
description: String?,
|
|
93
98
|
ibans: ::Array[String]?,
|
|
94
99
|
peppol_ids: ::Array[String]?,
|
|
100
|
+
plan: EInvoiceAPI::Models::MeRetrieveResponse::plan,
|
|
95
101
|
smp_registration: bool?,
|
|
96
102
|
smp_registration_date: Time?
|
|
97
103
|
}
|
|
@@ -11,7 +11,6 @@ module EInvoiceAPI
|
|
|
11
11
|
sender: String?,
|
|
12
12
|
sort_by: EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_by,
|
|
13
13
|
sort_order: EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_order,
|
|
14
|
-
state: EInvoiceAPI::Models::document_state?,
|
|
15
14
|
type: EInvoiceAPI::Models::document_type?
|
|
16
15
|
}
|
|
17
16
|
& EInvoiceAPI::Internal::Type::request_parameters
|
|
@@ -50,8 +49,6 @@ module EInvoiceAPI
|
|
|
50
49
|
EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_order
|
|
51
50
|
) -> EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_order
|
|
52
51
|
|
|
53
|
-
attr_accessor state: EInvoiceAPI::Models::document_state?
|
|
54
|
-
|
|
55
52
|
attr_accessor type: EInvoiceAPI::Models::document_type?
|
|
56
53
|
|
|
57
54
|
def initialize: (
|
|
@@ -64,7 +61,6 @@ module EInvoiceAPI
|
|
|
64
61
|
?sender: String?,
|
|
65
62
|
?sort_by: EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_by,
|
|
66
63
|
?sort_order: EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_order,
|
|
67
|
-
?state: EInvoiceAPI::Models::document_state?,
|
|
68
64
|
?type: EInvoiceAPI::Models::document_type?,
|
|
69
65
|
?request_options: EInvoiceAPI::request_opts
|
|
70
66
|
) -> void
|
|
@@ -79,7 +75,6 @@ module EInvoiceAPI
|
|
|
79
75
|
sender: String?,
|
|
80
76
|
sort_by: EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_by,
|
|
81
77
|
sort_order: EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_order,
|
|
82
|
-
state: EInvoiceAPI::Models::document_state?,
|
|
83
78
|
type: EInvoiceAPI::Models::document_type?,
|
|
84
79
|
request_options: EInvoiceAPI::RequestOptions
|
|
85
80
|
}
|
|
@@ -10,7 +10,6 @@ module EInvoiceAPI
|
|
|
10
10
|
?sender: String?,
|
|
11
11
|
?sort_by: EInvoiceAPI::Models::InboxListParams::sort_by,
|
|
12
12
|
?sort_order: EInvoiceAPI::Models::InboxListParams::sort_order,
|
|
13
|
-
?state: EInvoiceAPI::Models::document_state?,
|
|
14
13
|
?type: EInvoiceAPI::Models::document_type?,
|
|
15
14
|
?request_options: EInvoiceAPI::request_opts
|
|
16
15
|
) -> EInvoiceAPI::Internal::DocumentsNumberPage[EInvoiceAPI::DocumentResponse]
|
|
@@ -22,7 +22,6 @@ module EInvoiceAPI
|
|
|
22
22
|
?sender: String?,
|
|
23
23
|
?sort_by: EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_by,
|
|
24
24
|
?sort_order: EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_order,
|
|
25
|
-
?state: EInvoiceAPI::Models::document_state?,
|
|
26
25
|
?type: EInvoiceAPI::Models::document_type?,
|
|
27
26
|
?request_options: EInvoiceAPI::request_opts
|
|
28
27
|
) -> EInvoiceAPI::Internal::DocumentsNumberPage[EInvoiceAPI::DocumentResponse]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: e-invoice-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.19.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- e-invoice
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|