e-invoice-api 0.16.1 → 0.17.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 +28 -0
- data/README.md +10 -1
- data/lib/e_invoice_api/internal/util.rb +7 -2
- data/lib/e_invoice_api/models/document_type.rb +2 -0
- data/lib/e_invoice_api/models/inbox_list_credit_notes_params.rb +44 -1
- data/lib/e_invoice_api/models/inbox_list_invoices_params.rb +44 -1
- data/lib/e_invoice_api/models/inbox_list_params.rb +46 -3
- data/lib/e_invoice_api/models/outbox_list_draft_documents_params.rb +68 -1
- data/lib/e_invoice_api/models/outbox_list_received_documents_params.rb +60 -3
- data/lib/e_invoice_api/models/paginated_document_response.rb +7 -1
- data/lib/e_invoice_api/resources/documents.rb +3 -3
- data/lib/e_invoice_api/resources/inbox.rb +16 -4
- data/lib/e_invoice_api/resources/outbox.rb +24 -4
- data/lib/e_invoice_api/version.rb +1 -1
- data/rbi/e_invoice_api/models/document_type.rbi +4 -0
- data/rbi/e_invoice_api/models/inbox_list_credit_notes_params.rbi +132 -0
- data/rbi/e_invoice_api/models/inbox_list_invoices_params.rbi +126 -0
- data/rbi/e_invoice_api/models/inbox_list_params.rbi +99 -2
- data/rbi/e_invoice_api/models/outbox_list_draft_documents_params.rbi +163 -0
- data/rbi/e_invoice_api/models/outbox_list_received_documents_params.rbi +155 -2
- data/rbi/e_invoice_api/models/paginated_document_response.rbi +6 -1
- data/rbi/e_invoice_api/resources/documents.rbi +3 -3
- data/rbi/e_invoice_api/resources/inbox.rbi +20 -1
- data/rbi/e_invoice_api/resources/outbox.rbi +32 -2
- data/sig/e_invoice_api/models/document_type.rbs +8 -1
- data/sig/e_invoice_api/models/inbox_list_credit_notes_params.rbs +56 -1
- data/sig/e_invoice_api/models/inbox_list_invoices_params.rbs +56 -1
- data/sig/e_invoice_api/models/inbox_list_params.rbs +52 -0
- data/sig/e_invoice_api/models/outbox_list_draft_documents_params.rbs +71 -1
- data/sig/e_invoice_api/models/outbox_list_received_documents_params.rbs +57 -0
- data/sig/e_invoice_api/models/paginated_document_response.rbs +5 -0
- data/sig/e_invoice_api/resources/inbox.rbs +6 -0
- data/sig/e_invoice_api/resources/outbox.rbs +8 -0
- metadata +16 -2
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
module EInvoiceAPI
|
|
2
2
|
module Models
|
|
3
3
|
type outbox_list_draft_documents_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
page: Integer,
|
|
6
|
+
page_size: Integer,
|
|
7
|
+
search: String?,
|
|
8
|
+
sort_by: EInvoiceAPI::Models::OutboxListDraftDocumentsParams::sort_by,
|
|
9
|
+
sort_order: EInvoiceAPI::Models::OutboxListDraftDocumentsParams::sort_order,
|
|
10
|
+
state: EInvoiceAPI::Models::document_state?,
|
|
11
|
+
type: EInvoiceAPI::Models::document_type?
|
|
12
|
+
}
|
|
5
13
|
& EInvoiceAPI::Internal::Type::request_parameters
|
|
6
14
|
|
|
7
15
|
class OutboxListDraftDocumentsParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
@@ -16,17 +24,79 @@ module EInvoiceAPI
|
|
|
16
24
|
|
|
17
25
|
def page_size=: (Integer) -> Integer
|
|
18
26
|
|
|
27
|
+
attr_accessor search: String?
|
|
28
|
+
|
|
29
|
+
attr_reader sort_by: EInvoiceAPI::Models::OutboxListDraftDocumentsParams::sort_by?
|
|
30
|
+
|
|
31
|
+
def sort_by=: (
|
|
32
|
+
EInvoiceAPI::Models::OutboxListDraftDocumentsParams::sort_by
|
|
33
|
+
) -> EInvoiceAPI::Models::OutboxListDraftDocumentsParams::sort_by
|
|
34
|
+
|
|
35
|
+
attr_reader sort_order: EInvoiceAPI::Models::OutboxListDraftDocumentsParams::sort_order?
|
|
36
|
+
|
|
37
|
+
def sort_order=: (
|
|
38
|
+
EInvoiceAPI::Models::OutboxListDraftDocumentsParams::sort_order
|
|
39
|
+
) -> EInvoiceAPI::Models::OutboxListDraftDocumentsParams::sort_order
|
|
40
|
+
|
|
41
|
+
attr_accessor state: EInvoiceAPI::Models::document_state?
|
|
42
|
+
|
|
43
|
+
attr_accessor type: EInvoiceAPI::Models::document_type?
|
|
44
|
+
|
|
19
45
|
def initialize: (
|
|
20
46
|
?page: Integer,
|
|
21
47
|
?page_size: Integer,
|
|
48
|
+
?search: String?,
|
|
49
|
+
?sort_by: EInvoiceAPI::Models::OutboxListDraftDocumentsParams::sort_by,
|
|
50
|
+
?sort_order: EInvoiceAPI::Models::OutboxListDraftDocumentsParams::sort_order,
|
|
51
|
+
?state: EInvoiceAPI::Models::document_state?,
|
|
52
|
+
?type: EInvoiceAPI::Models::document_type?,
|
|
22
53
|
?request_options: EInvoiceAPI::request_opts
|
|
23
54
|
) -> void
|
|
24
55
|
|
|
25
56
|
def to_hash: -> {
|
|
26
57
|
page: Integer,
|
|
27
58
|
page_size: Integer,
|
|
59
|
+
search: String?,
|
|
60
|
+
sort_by: EInvoiceAPI::Models::OutboxListDraftDocumentsParams::sort_by,
|
|
61
|
+
sort_order: EInvoiceAPI::Models::OutboxListDraftDocumentsParams::sort_order,
|
|
62
|
+
state: EInvoiceAPI::Models::document_state?,
|
|
63
|
+
type: EInvoiceAPI::Models::document_type?,
|
|
28
64
|
request_options: EInvoiceAPI::RequestOptions
|
|
29
65
|
}
|
|
66
|
+
|
|
67
|
+
type sort_by =
|
|
68
|
+
:created_at
|
|
69
|
+
| :invoice_date
|
|
70
|
+
| :due_date
|
|
71
|
+
| :invoice_total
|
|
72
|
+
| :customer_name
|
|
73
|
+
| :vendor_name
|
|
74
|
+
| :invoice_id
|
|
75
|
+
|
|
76
|
+
module SortBy
|
|
77
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
78
|
+
|
|
79
|
+
CREATED_AT: :created_at
|
|
80
|
+
INVOICE_DATE: :invoice_date
|
|
81
|
+
DUE_DATE: :due_date
|
|
82
|
+
INVOICE_TOTAL: :invoice_total
|
|
83
|
+
CUSTOMER_NAME: :customer_name
|
|
84
|
+
VENDOR_NAME: :vendor_name
|
|
85
|
+
INVOICE_ID: :invoice_id
|
|
86
|
+
|
|
87
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::OutboxListDraftDocumentsParams::sort_by]
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
type sort_order = :asc | :desc
|
|
91
|
+
|
|
92
|
+
module SortOrder
|
|
93
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
94
|
+
|
|
95
|
+
ASC: :asc
|
|
96
|
+
DESC: :desc
|
|
97
|
+
|
|
98
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::OutboxListDraftDocumentsParams::sort_order]
|
|
99
|
+
end
|
|
30
100
|
end
|
|
31
101
|
end
|
|
32
102
|
end
|
|
@@ -6,8 +6,11 @@ module EInvoiceAPI
|
|
|
6
6
|
date_to: Time?,
|
|
7
7
|
page: Integer,
|
|
8
8
|
page_size: Integer,
|
|
9
|
+
receiver: String?,
|
|
9
10
|
search: String?,
|
|
10
11
|
sender: String?,
|
|
12
|
+
sort_by: EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_by,
|
|
13
|
+
sort_order: EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_order,
|
|
11
14
|
state: EInvoiceAPI::Models::document_state?,
|
|
12
15
|
type: EInvoiceAPI::Models::document_type?
|
|
13
16
|
}
|
|
@@ -29,10 +32,24 @@ module EInvoiceAPI
|
|
|
29
32
|
|
|
30
33
|
def page_size=: (Integer) -> Integer
|
|
31
34
|
|
|
35
|
+
attr_accessor receiver: String?
|
|
36
|
+
|
|
32
37
|
attr_accessor search: String?
|
|
33
38
|
|
|
34
39
|
attr_accessor sender: String?
|
|
35
40
|
|
|
41
|
+
attr_reader sort_by: EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_by?
|
|
42
|
+
|
|
43
|
+
def sort_by=: (
|
|
44
|
+
EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_by
|
|
45
|
+
) -> EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_by
|
|
46
|
+
|
|
47
|
+
attr_reader sort_order: EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_order?
|
|
48
|
+
|
|
49
|
+
def sort_order=: (
|
|
50
|
+
EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_order
|
|
51
|
+
) -> EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_order
|
|
52
|
+
|
|
36
53
|
attr_accessor state: EInvoiceAPI::Models::document_state?
|
|
37
54
|
|
|
38
55
|
attr_accessor type: EInvoiceAPI::Models::document_type?
|
|
@@ -42,8 +59,11 @@ module EInvoiceAPI
|
|
|
42
59
|
?date_to: Time?,
|
|
43
60
|
?page: Integer,
|
|
44
61
|
?page_size: Integer,
|
|
62
|
+
?receiver: String?,
|
|
45
63
|
?search: String?,
|
|
46
64
|
?sender: String?,
|
|
65
|
+
?sort_by: EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_by,
|
|
66
|
+
?sort_order: EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_order,
|
|
47
67
|
?state: EInvoiceAPI::Models::document_state?,
|
|
48
68
|
?type: EInvoiceAPI::Models::document_type?,
|
|
49
69
|
?request_options: EInvoiceAPI::request_opts
|
|
@@ -54,12 +74,49 @@ module EInvoiceAPI
|
|
|
54
74
|
date_to: Time?,
|
|
55
75
|
page: Integer,
|
|
56
76
|
page_size: Integer,
|
|
77
|
+
receiver: String?,
|
|
57
78
|
search: String?,
|
|
58
79
|
sender: String?,
|
|
80
|
+
sort_by: EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_by,
|
|
81
|
+
sort_order: EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_order,
|
|
59
82
|
state: EInvoiceAPI::Models::document_state?,
|
|
60
83
|
type: EInvoiceAPI::Models::document_type?,
|
|
61
84
|
request_options: EInvoiceAPI::RequestOptions
|
|
62
85
|
}
|
|
86
|
+
|
|
87
|
+
type sort_by =
|
|
88
|
+
:created_at
|
|
89
|
+
| :invoice_date
|
|
90
|
+
| :due_date
|
|
91
|
+
| :invoice_total
|
|
92
|
+
| :customer_name
|
|
93
|
+
| :vendor_name
|
|
94
|
+
| :invoice_id
|
|
95
|
+
|
|
96
|
+
module SortBy
|
|
97
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
98
|
+
|
|
99
|
+
CREATED_AT: :created_at
|
|
100
|
+
INVOICE_DATE: :invoice_date
|
|
101
|
+
DUE_DATE: :due_date
|
|
102
|
+
INVOICE_TOTAL: :invoice_total
|
|
103
|
+
CUSTOMER_NAME: :customer_name
|
|
104
|
+
VENDOR_NAME: :vendor_name
|
|
105
|
+
INVOICE_ID: :invoice_id
|
|
106
|
+
|
|
107
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_by]
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
type sort_order = :asc | :desc
|
|
111
|
+
|
|
112
|
+
module SortOrder
|
|
113
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
114
|
+
|
|
115
|
+
ASC: :asc
|
|
116
|
+
DESC: :desc
|
|
117
|
+
|
|
118
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_order]
|
|
119
|
+
end
|
|
63
120
|
end
|
|
64
121
|
end
|
|
65
122
|
end
|
|
@@ -2,6 +2,7 @@ module EInvoiceAPI
|
|
|
2
2
|
module Models
|
|
3
3
|
type paginated_document_response =
|
|
4
4
|
{
|
|
5
|
+
has_next_page: bool,
|
|
5
6
|
items: ::Array[EInvoiceAPI::DocumentResponse],
|
|
6
7
|
page: Integer,
|
|
7
8
|
page_size: Integer,
|
|
@@ -10,6 +11,8 @@ module EInvoiceAPI
|
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
class PaginatedDocumentResponse < EInvoiceAPI::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor has_next_page: bool
|
|
15
|
+
|
|
13
16
|
attr_accessor items: ::Array[EInvoiceAPI::DocumentResponse]
|
|
14
17
|
|
|
15
18
|
attr_accessor page: Integer
|
|
@@ -21,6 +24,7 @@ module EInvoiceAPI
|
|
|
21
24
|
attr_accessor total: Integer
|
|
22
25
|
|
|
23
26
|
def initialize: (
|
|
27
|
+
has_next_page: bool,
|
|
24
28
|
items: ::Array[EInvoiceAPI::DocumentResponse],
|
|
25
29
|
page: Integer,
|
|
26
30
|
page_size: Integer,
|
|
@@ -29,6 +33,7 @@ module EInvoiceAPI
|
|
|
29
33
|
) -> void
|
|
30
34
|
|
|
31
35
|
def to_hash: -> {
|
|
36
|
+
has_next_page: bool,
|
|
32
37
|
items: ::Array[EInvoiceAPI::DocumentResponse],
|
|
33
38
|
page: Integer,
|
|
34
39
|
page_size: Integer,
|
|
@@ -8,6 +8,8 @@ module EInvoiceAPI
|
|
|
8
8
|
?page_size: Integer,
|
|
9
9
|
?search: String?,
|
|
10
10
|
?sender: String?,
|
|
11
|
+
?sort_by: EInvoiceAPI::Models::InboxListParams::sort_by,
|
|
12
|
+
?sort_order: EInvoiceAPI::Models::InboxListParams::sort_order,
|
|
11
13
|
?state: EInvoiceAPI::Models::document_state?,
|
|
12
14
|
?type: EInvoiceAPI::Models::document_type?,
|
|
13
15
|
?request_options: EInvoiceAPI::request_opts
|
|
@@ -16,12 +18,16 @@ module EInvoiceAPI
|
|
|
16
18
|
def list_credit_notes: (
|
|
17
19
|
?page: Integer,
|
|
18
20
|
?page_size: Integer,
|
|
21
|
+
?sort_by: EInvoiceAPI::Models::InboxListCreditNotesParams::sort_by,
|
|
22
|
+
?sort_order: EInvoiceAPI::Models::InboxListCreditNotesParams::sort_order,
|
|
19
23
|
?request_options: EInvoiceAPI::request_opts
|
|
20
24
|
) -> EInvoiceAPI::Internal::DocumentsNumberPage[EInvoiceAPI::DocumentResponse]
|
|
21
25
|
|
|
22
26
|
def list_invoices: (
|
|
23
27
|
?page: Integer,
|
|
24
28
|
?page_size: Integer,
|
|
29
|
+
?sort_by: EInvoiceAPI::Models::InboxListInvoicesParams::sort_by,
|
|
30
|
+
?sort_order: EInvoiceAPI::Models::InboxListInvoicesParams::sort_order,
|
|
25
31
|
?request_options: EInvoiceAPI::request_opts
|
|
26
32
|
) -> EInvoiceAPI::Internal::DocumentsNumberPage[EInvoiceAPI::DocumentResponse]
|
|
27
33
|
|
|
@@ -4,6 +4,11 @@ module EInvoiceAPI
|
|
|
4
4
|
def list_draft_documents: (
|
|
5
5
|
?page: Integer,
|
|
6
6
|
?page_size: Integer,
|
|
7
|
+
?search: String?,
|
|
8
|
+
?sort_by: EInvoiceAPI::Models::OutboxListDraftDocumentsParams::sort_by,
|
|
9
|
+
?sort_order: EInvoiceAPI::Models::OutboxListDraftDocumentsParams::sort_order,
|
|
10
|
+
?state: EInvoiceAPI::Models::document_state?,
|
|
11
|
+
?type: EInvoiceAPI::Models::document_type?,
|
|
7
12
|
?request_options: EInvoiceAPI::request_opts
|
|
8
13
|
) -> EInvoiceAPI::Internal::DocumentsNumberPage[EInvoiceAPI::DocumentResponse]
|
|
9
14
|
|
|
@@ -12,8 +17,11 @@ module EInvoiceAPI
|
|
|
12
17
|
?date_to: Time?,
|
|
13
18
|
?page: Integer,
|
|
14
19
|
?page_size: Integer,
|
|
20
|
+
?receiver: String?,
|
|
15
21
|
?search: String?,
|
|
16
22
|
?sender: String?,
|
|
23
|
+
?sort_by: EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_by,
|
|
24
|
+
?sort_order: EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::sort_order,
|
|
17
25
|
?state: EInvoiceAPI::Models::document_state?,
|
|
18
26
|
?type: EInvoiceAPI::Models::document_type?,
|
|
19
27
|
?request_options: EInvoiceAPI::request_opts
|
metadata
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
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.17.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:
|
|
11
|
+
date: 2026-01-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: cgi
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ">="
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0'
|
|
13
27
|
- !ruby/object:Gem::Dependency
|
|
14
28
|
name: connection_pool
|
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|