e-invoice-api 0.18.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 +10 -0
- data/README.md +1 -1
- data/lib/e_invoice_api/models/inbox_list_params.rb +3 -11
- 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/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/inbox_list_params.rbi +2 -10
- 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/inbox.rbi +1 -4
- data/rbi/e_invoice_api/resources/outbox.rbi +1 -4
- data/sig/e_invoice_api/models/inbox_list_params.rbs +0 -5
- 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 +1 -1
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,15 @@
|
|
|
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
|
+
|
|
3
13
|
## 0.18.0 (2026-01-19)
|
|
4
14
|
|
|
5
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)
|
data/README.md
CHANGED
|
@@ -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
|
|
|
@@ -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
|
|
|
@@ -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
|
#
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
)
|
|
@@ -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
|
}
|
|
@@ -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]
|