e-invoice-api 0.16.2 → 0.18.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 +33 -0
- data/README.md +10 -1
- data/lib/e_invoice_api/models/document_response.rb +8 -1
- 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/lookup_retrieve_response.rb +17 -1
- 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/attachments.rb +4 -2
- 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_response.rbi +6 -0
- 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/lookup_retrieve_response.rbi +19 -3
- 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/attachments.rbi +4 -2
- 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_response.rbs +5 -0
- 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/lookup_retrieve_response.rbs +13 -3
- 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,12 @@
|
|
|
1
1
|
module EInvoiceAPI
|
|
2
2
|
module Models
|
|
3
3
|
type inbox_list_credit_notes_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
page: Integer,
|
|
6
|
+
page_size: Integer,
|
|
7
|
+
sort_by: EInvoiceAPI::Models::InboxListCreditNotesParams::sort_by,
|
|
8
|
+
sort_order: EInvoiceAPI::Models::InboxListCreditNotesParams::sort_order
|
|
9
|
+
}
|
|
5
10
|
& EInvoiceAPI::Internal::Type::request_parameters
|
|
6
11
|
|
|
7
12
|
class InboxListCreditNotesParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
@@ -16,17 +21,67 @@ module EInvoiceAPI
|
|
|
16
21
|
|
|
17
22
|
def page_size=: (Integer) -> Integer
|
|
18
23
|
|
|
24
|
+
attr_reader sort_by: EInvoiceAPI::Models::InboxListCreditNotesParams::sort_by?
|
|
25
|
+
|
|
26
|
+
def sort_by=: (
|
|
27
|
+
EInvoiceAPI::Models::InboxListCreditNotesParams::sort_by
|
|
28
|
+
) -> EInvoiceAPI::Models::InboxListCreditNotesParams::sort_by
|
|
29
|
+
|
|
30
|
+
attr_reader sort_order: EInvoiceAPI::Models::InboxListCreditNotesParams::sort_order?
|
|
31
|
+
|
|
32
|
+
def sort_order=: (
|
|
33
|
+
EInvoiceAPI::Models::InboxListCreditNotesParams::sort_order
|
|
34
|
+
) -> EInvoiceAPI::Models::InboxListCreditNotesParams::sort_order
|
|
35
|
+
|
|
19
36
|
def initialize: (
|
|
20
37
|
?page: Integer,
|
|
21
38
|
?page_size: Integer,
|
|
39
|
+
?sort_by: EInvoiceAPI::Models::InboxListCreditNotesParams::sort_by,
|
|
40
|
+
?sort_order: EInvoiceAPI::Models::InboxListCreditNotesParams::sort_order,
|
|
22
41
|
?request_options: EInvoiceAPI::request_opts
|
|
23
42
|
) -> void
|
|
24
43
|
|
|
25
44
|
def to_hash: -> {
|
|
26
45
|
page: Integer,
|
|
27
46
|
page_size: Integer,
|
|
47
|
+
sort_by: EInvoiceAPI::Models::InboxListCreditNotesParams::sort_by,
|
|
48
|
+
sort_order: EInvoiceAPI::Models::InboxListCreditNotesParams::sort_order,
|
|
28
49
|
request_options: EInvoiceAPI::RequestOptions
|
|
29
50
|
}
|
|
51
|
+
|
|
52
|
+
type sort_by =
|
|
53
|
+
:created_at
|
|
54
|
+
| :invoice_date
|
|
55
|
+
| :due_date
|
|
56
|
+
| :invoice_total
|
|
57
|
+
| :customer_name
|
|
58
|
+
| :vendor_name
|
|
59
|
+
| :invoice_id
|
|
60
|
+
|
|
61
|
+
module SortBy
|
|
62
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
63
|
+
|
|
64
|
+
CREATED_AT: :created_at
|
|
65
|
+
INVOICE_DATE: :invoice_date
|
|
66
|
+
DUE_DATE: :due_date
|
|
67
|
+
INVOICE_TOTAL: :invoice_total
|
|
68
|
+
CUSTOMER_NAME: :customer_name
|
|
69
|
+
VENDOR_NAME: :vendor_name
|
|
70
|
+
INVOICE_ID: :invoice_id
|
|
71
|
+
|
|
72
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::InboxListCreditNotesParams::sort_by]
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
type sort_order = :asc | :desc
|
|
76
|
+
|
|
77
|
+
module SortOrder
|
|
78
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
79
|
+
|
|
80
|
+
ASC: :asc
|
|
81
|
+
DESC: :desc
|
|
82
|
+
|
|
83
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::InboxListCreditNotesParams::sort_order]
|
|
84
|
+
end
|
|
30
85
|
end
|
|
31
86
|
end
|
|
32
87
|
end
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
module EInvoiceAPI
|
|
2
2
|
module Models
|
|
3
3
|
type inbox_list_invoices_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
page: Integer,
|
|
6
|
+
page_size: Integer,
|
|
7
|
+
sort_by: EInvoiceAPI::Models::InboxListInvoicesParams::sort_by,
|
|
8
|
+
sort_order: EInvoiceAPI::Models::InboxListInvoicesParams::sort_order
|
|
9
|
+
}
|
|
5
10
|
& EInvoiceAPI::Internal::Type::request_parameters
|
|
6
11
|
|
|
7
12
|
class InboxListInvoicesParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
@@ -16,17 +21,67 @@ module EInvoiceAPI
|
|
|
16
21
|
|
|
17
22
|
def page_size=: (Integer) -> Integer
|
|
18
23
|
|
|
24
|
+
attr_reader sort_by: EInvoiceAPI::Models::InboxListInvoicesParams::sort_by?
|
|
25
|
+
|
|
26
|
+
def sort_by=: (
|
|
27
|
+
EInvoiceAPI::Models::InboxListInvoicesParams::sort_by
|
|
28
|
+
) -> EInvoiceAPI::Models::InboxListInvoicesParams::sort_by
|
|
29
|
+
|
|
30
|
+
attr_reader sort_order: EInvoiceAPI::Models::InboxListInvoicesParams::sort_order?
|
|
31
|
+
|
|
32
|
+
def sort_order=: (
|
|
33
|
+
EInvoiceAPI::Models::InboxListInvoicesParams::sort_order
|
|
34
|
+
) -> EInvoiceAPI::Models::InboxListInvoicesParams::sort_order
|
|
35
|
+
|
|
19
36
|
def initialize: (
|
|
20
37
|
?page: Integer,
|
|
21
38
|
?page_size: Integer,
|
|
39
|
+
?sort_by: EInvoiceAPI::Models::InboxListInvoicesParams::sort_by,
|
|
40
|
+
?sort_order: EInvoiceAPI::Models::InboxListInvoicesParams::sort_order,
|
|
22
41
|
?request_options: EInvoiceAPI::request_opts
|
|
23
42
|
) -> void
|
|
24
43
|
|
|
25
44
|
def to_hash: -> {
|
|
26
45
|
page: Integer,
|
|
27
46
|
page_size: Integer,
|
|
47
|
+
sort_by: EInvoiceAPI::Models::InboxListInvoicesParams::sort_by,
|
|
48
|
+
sort_order: EInvoiceAPI::Models::InboxListInvoicesParams::sort_order,
|
|
28
49
|
request_options: EInvoiceAPI::RequestOptions
|
|
29
50
|
}
|
|
51
|
+
|
|
52
|
+
type sort_by =
|
|
53
|
+
:created_at
|
|
54
|
+
| :invoice_date
|
|
55
|
+
| :due_date
|
|
56
|
+
| :invoice_total
|
|
57
|
+
| :customer_name
|
|
58
|
+
| :vendor_name
|
|
59
|
+
| :invoice_id
|
|
60
|
+
|
|
61
|
+
module SortBy
|
|
62
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
63
|
+
|
|
64
|
+
CREATED_AT: :created_at
|
|
65
|
+
INVOICE_DATE: :invoice_date
|
|
66
|
+
DUE_DATE: :due_date
|
|
67
|
+
INVOICE_TOTAL: :invoice_total
|
|
68
|
+
CUSTOMER_NAME: :customer_name
|
|
69
|
+
VENDOR_NAME: :vendor_name
|
|
70
|
+
INVOICE_ID: :invoice_id
|
|
71
|
+
|
|
72
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::InboxListInvoicesParams::sort_by]
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
type sort_order = :asc | :desc
|
|
76
|
+
|
|
77
|
+
module SortOrder
|
|
78
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
79
|
+
|
|
80
|
+
ASC: :asc
|
|
81
|
+
DESC: :desc
|
|
82
|
+
|
|
83
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::InboxListInvoicesParams::sort_order]
|
|
84
|
+
end
|
|
30
85
|
end
|
|
31
86
|
end
|
|
32
87
|
end
|
|
@@ -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
|
}
|
|
@@ -33,6 +35,18 @@ module EInvoiceAPI
|
|
|
33
35
|
|
|
34
36
|
attr_accessor sender: String?
|
|
35
37
|
|
|
38
|
+
attr_reader sort_by: EInvoiceAPI::Models::InboxListParams::sort_by?
|
|
39
|
+
|
|
40
|
+
def sort_by=: (
|
|
41
|
+
EInvoiceAPI::Models::InboxListParams::sort_by
|
|
42
|
+
) -> EInvoiceAPI::Models::InboxListParams::sort_by
|
|
43
|
+
|
|
44
|
+
attr_reader sort_order: EInvoiceAPI::Models::InboxListParams::sort_order?
|
|
45
|
+
|
|
46
|
+
def sort_order=: (
|
|
47
|
+
EInvoiceAPI::Models::InboxListParams::sort_order
|
|
48
|
+
) -> EInvoiceAPI::Models::InboxListParams::sort_order
|
|
49
|
+
|
|
36
50
|
attr_accessor state: EInvoiceAPI::Models::document_state?
|
|
37
51
|
|
|
38
52
|
attr_accessor type: EInvoiceAPI::Models::document_type?
|
|
@@ -44,6 +58,8 @@ module EInvoiceAPI
|
|
|
44
58
|
?page_size: Integer,
|
|
45
59
|
?search: String?,
|
|
46
60
|
?sender: String?,
|
|
61
|
+
?sort_by: EInvoiceAPI::Models::InboxListParams::sort_by,
|
|
62
|
+
?sort_order: EInvoiceAPI::Models::InboxListParams::sort_order,
|
|
47
63
|
?state: EInvoiceAPI::Models::document_state?,
|
|
48
64
|
?type: EInvoiceAPI::Models::document_type?,
|
|
49
65
|
?request_options: EInvoiceAPI::request_opts
|
|
@@ -56,10 +72,46 @@ module EInvoiceAPI
|
|
|
56
72
|
page_size: Integer,
|
|
57
73
|
search: String?,
|
|
58
74
|
sender: String?,
|
|
75
|
+
sort_by: EInvoiceAPI::Models::InboxListParams::sort_by,
|
|
76
|
+
sort_order: EInvoiceAPI::Models::InboxListParams::sort_order,
|
|
59
77
|
state: EInvoiceAPI::Models::document_state?,
|
|
60
78
|
type: EInvoiceAPI::Models::document_type?,
|
|
61
79
|
request_options: EInvoiceAPI::RequestOptions
|
|
62
80
|
}
|
|
81
|
+
|
|
82
|
+
type sort_by =
|
|
83
|
+
:created_at
|
|
84
|
+
| :invoice_date
|
|
85
|
+
| :due_date
|
|
86
|
+
| :invoice_total
|
|
87
|
+
| :customer_name
|
|
88
|
+
| :vendor_name
|
|
89
|
+
| :invoice_id
|
|
90
|
+
|
|
91
|
+
module SortBy
|
|
92
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
93
|
+
|
|
94
|
+
CREATED_AT: :created_at
|
|
95
|
+
INVOICE_DATE: :invoice_date
|
|
96
|
+
DUE_DATE: :due_date
|
|
97
|
+
INVOICE_TOTAL: :invoice_total
|
|
98
|
+
CUSTOMER_NAME: :customer_name
|
|
99
|
+
VENDOR_NAME: :vendor_name
|
|
100
|
+
INVOICE_ID: :invoice_id
|
|
101
|
+
|
|
102
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::InboxListParams::sort_by]
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
type sort_order = :asc | :desc
|
|
106
|
+
|
|
107
|
+
module SortOrder
|
|
108
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
109
|
+
|
|
110
|
+
ASC: :asc
|
|
111
|
+
DESC: :desc
|
|
112
|
+
|
|
113
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::InboxListParams::sort_order]
|
|
114
|
+
end
|
|
63
115
|
end
|
|
64
116
|
end
|
|
65
117
|
end
|
|
@@ -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 }
|
|
@@ -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.18.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-21 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
|