e-invoice-api 0.24.1 → 0.25.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 +17 -0
- data/README.md +1 -1
- data/lib/e_invoice_api/internal/util.rb +31 -0
- data/lib/e_invoice_api/models/document_create.rb +1 -9
- data/lib/e_invoice_api/models/document_create_from_pdf_response.rb +1 -9
- data/lib/e_invoice_api/models/document_create_params.rb +1 -13
- data/lib/e_invoice_api/models/document_delete_params.rb +7 -1
- data/lib/e_invoice_api/models/document_response.rb +1 -16
- data/lib/e_invoice_api/models/document_retrieve_params.rb +7 -1
- data/lib/e_invoice_api/models/document_send_params.rb +7 -1
- data/lib/e_invoice_api/models/document_type.rb +0 -2
- data/lib/e_invoice_api/models/document_validate_params.rb +7 -1
- data/lib/e_invoice_api/models/documents/attachment_add_params.rb +7 -1
- data/lib/e_invoice_api/models/documents/attachment_delete_params.rb +7 -1
- data/lib/e_invoice_api/models/documents/attachment_list_params.rb +7 -1
- data/lib/e_invoice_api/models/documents/attachment_retrieve_params.rb +7 -1
- data/lib/e_invoice_api/models/documents/ubl_get_params.rb +7 -1
- data/lib/e_invoice_api/models/inbox_list_credit_notes_params.rb +1 -44
- data/lib/e_invoice_api/models/inbox_list_invoices_params.rb +1 -44
- data/lib/e_invoice_api/models/inbox_list_params.rb +10 -45
- data/lib/e_invoice_api/models/lookup_retrieve_response.rb +1 -17
- data/lib/e_invoice_api/models/me_retrieve_response.rb +17 -17
- data/lib/e_invoice_api/models/outbox_list_draft_documents_params.rb +1 -68
- data/lib/e_invoice_api/models/outbox_list_received_documents_params.rb +10 -57
- data/lib/e_invoice_api/models/paginated_document_response.rb +1 -7
- data/lib/e_invoice_api/models/webhook_delete_params.rb +7 -1
- data/lib/e_invoice_api/models/webhook_retrieve_params.rb +7 -1
- data/lib/e_invoice_api/models/webhook_update_params.rb +7 -1
- data/lib/e_invoice_api/resources/documents/attachments.rb +2 -4
- data/lib/e_invoice_api/resources/documents.rb +56 -65
- data/lib/e_invoice_api/resources/inbox.rb +12 -19
- data/lib/e_invoice_api/resources/lookup.rb +4 -2
- data/lib/e_invoice_api/resources/outbox.rb +10 -28
- data/lib/e_invoice_api/resources/validate.rb +3 -4
- data/lib/e_invoice_api/version.rb +1 -1
- data/rbi/e_invoice_api/internal/util.rbi +20 -0
- data/rbi/e_invoice_api/models/document_create.rbi +0 -8
- data/rbi/e_invoice_api/models/document_create_from_pdf_response.rbi +0 -8
- data/rbi/e_invoice_api/models/document_create_params.rbi +5 -26
- data/rbi/e_invoice_api/models/document_delete_params.rbi +13 -5
- data/rbi/e_invoice_api/models/document_response.rbi +0 -14
- data/rbi/e_invoice_api/models/document_retrieve_params.rbi +13 -5
- data/rbi/e_invoice_api/models/document_send_params.rbi +6 -0
- data/rbi/e_invoice_api/models/document_type.rbi +0 -4
- data/rbi/e_invoice_api/models/document_validate_params.rbi +13 -5
- data/rbi/e_invoice_api/models/documents/attachment_add_params.rbi +6 -1
- data/rbi/e_invoice_api/models/documents/attachment_delete_params.rbi +6 -1
- data/rbi/e_invoice_api/models/documents/attachment_list_params.rbi +14 -5
- data/rbi/e_invoice_api/models/documents/attachment_retrieve_params.rbi +6 -1
- data/rbi/e_invoice_api/models/documents/ubl_get_params.rbi +14 -5
- data/rbi/e_invoice_api/models/inbox_list_credit_notes_params.rbi +0 -132
- data/rbi/e_invoice_api/models/inbox_list_invoices_params.rbi +0 -126
- data/rbi/e_invoice_api/models/inbox_list_params.rbi +11 -100
- data/rbi/e_invoice_api/models/lookup_retrieve_response.rbi +3 -19
- data/rbi/e_invoice_api/models/me_retrieve_response.rbi +18 -30
- data/rbi/e_invoice_api/models/outbox_list_draft_documents_params.rbi +0 -163
- data/rbi/e_invoice_api/models/outbox_list_received_documents_params.rbi +11 -156
- data/rbi/e_invoice_api/models/paginated_document_response.rbi +1 -6
- data/rbi/e_invoice_api/models/webhook_delete_params.rbi +13 -5
- data/rbi/e_invoice_api/models/webhook_retrieve_params.rbi +13 -5
- data/rbi/e_invoice_api/models/webhook_update_params.rbi +12 -1
- data/rbi/e_invoice_api/resources/documents/attachments.rbi +2 -4
- data/rbi/e_invoice_api/resources/documents.rbi +56 -78
- data/rbi/e_invoice_api/resources/inbox.rbi +5 -21
- data/rbi/e_invoice_api/resources/outbox.rbi +6 -33
- data/rbi/e_invoice_api/resources/validate.rbi +0 -3
- data/sig/e_invoice_api/internal/util.rbs +10 -0
- data/sig/e_invoice_api/models/document_create.rbs +0 -5
- data/sig/e_invoice_api/models/document_create_from_pdf_response.rbs +0 -5
- data/sig/e_invoice_api/models/document_create_params.rbs +3 -13
- data/sig/e_invoice_api/models/document_delete_params.rbs +11 -3
- data/sig/e_invoice_api/models/document_response.rbs +0 -10
- data/sig/e_invoice_api/models/document_retrieve_params.rbs +11 -3
- data/sig/e_invoice_api/models/document_send_params.rbs +5 -0
- data/sig/e_invoice_api/models/document_type.rbs +1 -8
- data/sig/e_invoice_api/models/document_validate_params.rbs +11 -3
- data/sig/e_invoice_api/models/documents/attachment_add_params.rbs +5 -1
- data/sig/e_invoice_api/models/documents/attachment_delete_params.rbs +5 -1
- data/sig/e_invoice_api/models/documents/attachment_list_params.rbs +12 -3
- data/sig/e_invoice_api/models/documents/attachment_retrieve_params.rbs +5 -1
- data/sig/e_invoice_api/models/documents/ubl_get_params.rbs +12 -3
- data/sig/e_invoice_api/models/inbox_list_credit_notes_params.rbs +1 -56
- data/sig/e_invoice_api/models/inbox_list_invoices_params.rbs +1 -56
- data/sig/e_invoice_api/models/inbox_list_params.rbs +4 -51
- data/sig/e_invoice_api/models/lookup_retrieve_response.rbs +3 -13
- data/sig/e_invoice_api/models/me_retrieve_response.rbs +10 -16
- data/sig/e_invoice_api/models/outbox_list_draft_documents_params.rbs +1 -71
- data/sig/e_invoice_api/models/outbox_list_received_documents_params.rbs +4 -56
- data/sig/e_invoice_api/models/paginated_document_response.rbs +0 -5
- data/sig/e_invoice_api/models/webhook_delete_params.rbs +11 -3
- data/sig/e_invoice_api/models/webhook_retrieve_params.rbs +11 -3
- data/sig/e_invoice_api/models/webhook_update_params.rbs +10 -1
- data/sig/e_invoice_api/resources/documents.rbs +0 -2
- data/sig/e_invoice_api/resources/inbox.rbs +1 -6
- data/sig/e_invoice_api/resources/outbox.rbs +1 -8
- data/sig/e_invoice_api/resources/validate.rbs +0 -1
- metadata +2 -2
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module EInvoiceAPI
|
|
2
2
|
module Models
|
|
3
3
|
type document_validate_params =
|
|
4
|
-
{
|
|
4
|
+
{ document_id: String } & EInvoiceAPI::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class DocumentValidateParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
7
7
|
extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include EInvoiceAPI::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor document_id: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
document_id: String,
|
|
14
|
+
?request_options: EInvoiceAPI::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
document_id: String,
|
|
19
|
+
request_options: EInvoiceAPI::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|
|
@@ -2,21 +2,25 @@ module EInvoiceAPI
|
|
|
2
2
|
module Models
|
|
3
3
|
module Documents
|
|
4
4
|
type attachment_add_params =
|
|
5
|
-
{ file: EInvoiceAPI::Internal::file_input }
|
|
5
|
+
{ document_id: String, file: EInvoiceAPI::Internal::file_input }
|
|
6
6
|
& EInvoiceAPI::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class AttachmentAddParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
9
9
|
extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include EInvoiceAPI::Internal::Type::RequestParameters
|
|
11
11
|
|
|
12
|
+
attr_accessor document_id: String
|
|
13
|
+
|
|
12
14
|
attr_accessor file: EInvoiceAPI::Internal::file_input
|
|
13
15
|
|
|
14
16
|
def initialize: (
|
|
17
|
+
document_id: String,
|
|
15
18
|
file: EInvoiceAPI::Internal::file_input,
|
|
16
19
|
?request_options: EInvoiceAPI::request_opts
|
|
17
20
|
) -> void
|
|
18
21
|
|
|
19
22
|
def to_hash: -> {
|
|
23
|
+
document_id: String,
|
|
20
24
|
file: EInvoiceAPI::Internal::file_input,
|
|
21
25
|
request_options: EInvoiceAPI::RequestOptions
|
|
22
26
|
}
|
|
@@ -2,7 +2,7 @@ module EInvoiceAPI
|
|
|
2
2
|
module Models
|
|
3
3
|
module Documents
|
|
4
4
|
type attachment_delete_params =
|
|
5
|
-
{ document_id: String }
|
|
5
|
+
{ document_id: String, attachment_id: String }
|
|
6
6
|
& EInvoiceAPI::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class AttachmentDeleteParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
@@ -11,13 +11,17 @@ module EInvoiceAPI
|
|
|
11
11
|
|
|
12
12
|
attr_accessor document_id: String
|
|
13
13
|
|
|
14
|
+
attr_accessor attachment_id: String
|
|
15
|
+
|
|
14
16
|
def initialize: (
|
|
15
17
|
document_id: String,
|
|
18
|
+
attachment_id: String,
|
|
16
19
|
?request_options: EInvoiceAPI::request_opts
|
|
17
20
|
) -> void
|
|
18
21
|
|
|
19
22
|
def to_hash: -> {
|
|
20
23
|
document_id: String,
|
|
24
|
+
attachment_id: String,
|
|
21
25
|
request_options: EInvoiceAPI::RequestOptions
|
|
22
26
|
}
|
|
23
27
|
end
|
|
@@ -2,15 +2,24 @@ module EInvoiceAPI
|
|
|
2
2
|
module Models
|
|
3
3
|
module Documents
|
|
4
4
|
type attachment_list_params =
|
|
5
|
-
{
|
|
5
|
+
{ document_id: String }
|
|
6
|
+
& EInvoiceAPI::Internal::Type::request_parameters
|
|
6
7
|
|
|
7
8
|
class AttachmentListParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
8
9
|
extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
|
|
9
10
|
include EInvoiceAPI::Internal::Type::RequestParameters
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
attr_accessor document_id: String
|
|
12
13
|
|
|
13
|
-
def
|
|
14
|
+
def initialize: (
|
|
15
|
+
document_id: String,
|
|
16
|
+
?request_options: EInvoiceAPI::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
document_id: String,
|
|
21
|
+
request_options: EInvoiceAPI::RequestOptions
|
|
22
|
+
}
|
|
14
23
|
end
|
|
15
24
|
end
|
|
16
25
|
end
|
|
@@ -2,7 +2,7 @@ module EInvoiceAPI
|
|
|
2
2
|
module Models
|
|
3
3
|
module Documents
|
|
4
4
|
type attachment_retrieve_params =
|
|
5
|
-
{ document_id: String }
|
|
5
|
+
{ document_id: String, attachment_id: String }
|
|
6
6
|
& EInvoiceAPI::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class AttachmentRetrieveParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
@@ -11,13 +11,17 @@ module EInvoiceAPI
|
|
|
11
11
|
|
|
12
12
|
attr_accessor document_id: String
|
|
13
13
|
|
|
14
|
+
attr_accessor attachment_id: String
|
|
15
|
+
|
|
14
16
|
def initialize: (
|
|
15
17
|
document_id: String,
|
|
18
|
+
attachment_id: String,
|
|
16
19
|
?request_options: EInvoiceAPI::request_opts
|
|
17
20
|
) -> void
|
|
18
21
|
|
|
19
22
|
def to_hash: -> {
|
|
20
23
|
document_id: String,
|
|
24
|
+
attachment_id: String,
|
|
21
25
|
request_options: EInvoiceAPI::RequestOptions
|
|
22
26
|
}
|
|
23
27
|
end
|
|
@@ -2,15 +2,24 @@ module EInvoiceAPI
|
|
|
2
2
|
module Models
|
|
3
3
|
module Documents
|
|
4
4
|
type ubl_get_params =
|
|
5
|
-
{
|
|
5
|
+
{ document_id: String }
|
|
6
|
+
& EInvoiceAPI::Internal::Type::request_parameters
|
|
6
7
|
|
|
7
8
|
class UblGetParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
8
9
|
extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
|
|
9
10
|
include EInvoiceAPI::Internal::Type::RequestParameters
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
attr_accessor document_id: String
|
|
12
13
|
|
|
13
|
-
def
|
|
14
|
+
def initialize: (
|
|
15
|
+
document_id: String,
|
|
16
|
+
?request_options: EInvoiceAPI::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
document_id: String,
|
|
21
|
+
request_options: EInvoiceAPI::RequestOptions
|
|
22
|
+
}
|
|
14
23
|
end
|
|
15
24
|
end
|
|
16
25
|
end
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
module EInvoiceAPI
|
|
2
2
|
module Models
|
|
3
3
|
type inbox_list_credit_notes_params =
|
|
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
|
-
}
|
|
4
|
+
{ page: Integer, page_size: Integer }
|
|
10
5
|
& EInvoiceAPI::Internal::Type::request_parameters
|
|
11
6
|
|
|
12
7
|
class InboxListCreditNotesParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
@@ -21,67 +16,17 @@ module EInvoiceAPI
|
|
|
21
16
|
|
|
22
17
|
def page_size=: (Integer) -> Integer
|
|
23
18
|
|
|
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
|
-
|
|
36
19
|
def initialize: (
|
|
37
20
|
?page: Integer,
|
|
38
21
|
?page_size: Integer,
|
|
39
|
-
?sort_by: EInvoiceAPI::Models::InboxListCreditNotesParams::sort_by,
|
|
40
|
-
?sort_order: EInvoiceAPI::Models::InboxListCreditNotesParams::sort_order,
|
|
41
22
|
?request_options: EInvoiceAPI::request_opts
|
|
42
23
|
) -> void
|
|
43
24
|
|
|
44
25
|
def to_hash: -> {
|
|
45
26
|
page: Integer,
|
|
46
27
|
page_size: Integer,
|
|
47
|
-
sort_by: EInvoiceAPI::Models::InboxListCreditNotesParams::sort_by,
|
|
48
|
-
sort_order: EInvoiceAPI::Models::InboxListCreditNotesParams::sort_order,
|
|
49
28
|
request_options: EInvoiceAPI::RequestOptions
|
|
50
29
|
}
|
|
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
|
|
85
30
|
end
|
|
86
31
|
end
|
|
87
32
|
end
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
module EInvoiceAPI
|
|
2
2
|
module Models
|
|
3
3
|
type inbox_list_invoices_params =
|
|
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
|
-
}
|
|
4
|
+
{ page: Integer, page_size: Integer }
|
|
10
5
|
& EInvoiceAPI::Internal::Type::request_parameters
|
|
11
6
|
|
|
12
7
|
class InboxListInvoicesParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
@@ -21,67 +16,17 @@ module EInvoiceAPI
|
|
|
21
16
|
|
|
22
17
|
def page_size=: (Integer) -> Integer
|
|
23
18
|
|
|
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
|
-
|
|
36
19
|
def initialize: (
|
|
37
20
|
?page: Integer,
|
|
38
21
|
?page_size: Integer,
|
|
39
|
-
?sort_by: EInvoiceAPI::Models::InboxListInvoicesParams::sort_by,
|
|
40
|
-
?sort_order: EInvoiceAPI::Models::InboxListInvoicesParams::sort_order,
|
|
41
22
|
?request_options: EInvoiceAPI::request_opts
|
|
42
23
|
) -> void
|
|
43
24
|
|
|
44
25
|
def to_hash: -> {
|
|
45
26
|
page: Integer,
|
|
46
27
|
page_size: Integer,
|
|
47
|
-
sort_by: EInvoiceAPI::Models::InboxListInvoicesParams::sort_by,
|
|
48
|
-
sort_order: EInvoiceAPI::Models::InboxListInvoicesParams::sort_order,
|
|
49
28
|
request_options: EInvoiceAPI::RequestOptions
|
|
50
29
|
}
|
|
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
|
|
85
30
|
end
|
|
86
31
|
end
|
|
87
32
|
end
|
|
@@ -8,8 +8,7 @@ module EInvoiceAPI
|
|
|
8
8
|
page_size: Integer,
|
|
9
9
|
search: String?,
|
|
10
10
|
sender: String?,
|
|
11
|
-
|
|
12
|
-
sort_order: EInvoiceAPI::Models::InboxListParams::sort_order,
|
|
11
|
+
state: EInvoiceAPI::Models::document_state?,
|
|
13
12
|
type: EInvoiceAPI::Models::document_type?
|
|
14
13
|
}
|
|
15
14
|
& EInvoiceAPI::Internal::Type::request_parameters
|
|
@@ -34,17 +33,7 @@ module EInvoiceAPI
|
|
|
34
33
|
|
|
35
34
|
attr_accessor sender: String?
|
|
36
35
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
def sort_by=: (
|
|
40
|
-
EInvoiceAPI::Models::InboxListParams::sort_by
|
|
41
|
-
) -> EInvoiceAPI::Models::InboxListParams::sort_by
|
|
42
|
-
|
|
43
|
-
attr_reader sort_order: EInvoiceAPI::Models::InboxListParams::sort_order?
|
|
44
|
-
|
|
45
|
-
def sort_order=: (
|
|
46
|
-
EInvoiceAPI::Models::InboxListParams::sort_order
|
|
47
|
-
) -> EInvoiceAPI::Models::InboxListParams::sort_order
|
|
36
|
+
attr_accessor state: EInvoiceAPI::Models::document_state?
|
|
48
37
|
|
|
49
38
|
attr_accessor type: EInvoiceAPI::Models::document_type?
|
|
50
39
|
|
|
@@ -55,8 +44,7 @@ module EInvoiceAPI
|
|
|
55
44
|
?page_size: Integer,
|
|
56
45
|
?search: String?,
|
|
57
46
|
?sender: String?,
|
|
58
|
-
?
|
|
59
|
-
?sort_order: EInvoiceAPI::Models::InboxListParams::sort_order,
|
|
47
|
+
?state: EInvoiceAPI::Models::document_state?,
|
|
60
48
|
?type: EInvoiceAPI::Models::document_type?,
|
|
61
49
|
?request_options: EInvoiceAPI::request_opts
|
|
62
50
|
) -> void
|
|
@@ -68,45 +56,10 @@ module EInvoiceAPI
|
|
|
68
56
|
page_size: Integer,
|
|
69
57
|
search: String?,
|
|
70
58
|
sender: String?,
|
|
71
|
-
|
|
72
|
-
sort_order: EInvoiceAPI::Models::InboxListParams::sort_order,
|
|
59
|
+
state: EInvoiceAPI::Models::document_state?,
|
|
73
60
|
type: EInvoiceAPI::Models::document_type?,
|
|
74
61
|
request_options: EInvoiceAPI::RequestOptions
|
|
75
62
|
}
|
|
76
|
-
|
|
77
|
-
type sort_by =
|
|
78
|
-
:created_at
|
|
79
|
-
| :invoice_date
|
|
80
|
-
| :due_date
|
|
81
|
-
| :invoice_total
|
|
82
|
-
| :customer_name
|
|
83
|
-
| :vendor_name
|
|
84
|
-
| :invoice_id
|
|
85
|
-
|
|
86
|
-
module SortBy
|
|
87
|
-
extend EInvoiceAPI::Internal::Type::Enum
|
|
88
|
-
|
|
89
|
-
CREATED_AT: :created_at
|
|
90
|
-
INVOICE_DATE: :invoice_date
|
|
91
|
-
DUE_DATE: :due_date
|
|
92
|
-
INVOICE_TOTAL: :invoice_total
|
|
93
|
-
CUSTOMER_NAME: :customer_name
|
|
94
|
-
VENDOR_NAME: :vendor_name
|
|
95
|
-
INVOICE_ID: :invoice_id
|
|
96
|
-
|
|
97
|
-
def self?.values: -> ::Array[EInvoiceAPI::Models::InboxListParams::sort_by]
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
type sort_order = :asc | :desc
|
|
101
|
-
|
|
102
|
-
module SortOrder
|
|
103
|
-
extend EInvoiceAPI::Internal::Type::Enum
|
|
104
|
-
|
|
105
|
-
ASC: :asc
|
|
106
|
-
DESC: :desc
|
|
107
|
-
|
|
108
|
-
def self?.values: -> ::Array[EInvoiceAPI::Models::InboxListParams::sort_order]
|
|
109
|
-
end
|
|
110
63
|
end
|
|
111
64
|
end
|
|
112
65
|
end
|
|
@@ -120,9 +120,7 @@ module EInvoiceAPI
|
|
|
120
120
|
dns_records: ::Array[EInvoiceAPI::Models::LookupRetrieveResponse::DNSInfo::DNSRecord],
|
|
121
121
|
sml_hostname: String,
|
|
122
122
|
status: String,
|
|
123
|
-
error: String
|
|
124
|
-
lookup_method: String?,
|
|
125
|
-
smp_hostname: String?
|
|
123
|
+
error: String?
|
|
126
124
|
}
|
|
127
125
|
|
|
128
126
|
class DNSInfo < EInvoiceAPI::Internal::Type::BaseModel
|
|
@@ -134,26 +132,18 @@ module EInvoiceAPI
|
|
|
134
132
|
|
|
135
133
|
attr_accessor error: String?
|
|
136
134
|
|
|
137
|
-
attr_accessor lookup_method: String?
|
|
138
|
-
|
|
139
|
-
attr_accessor smp_hostname: String?
|
|
140
|
-
|
|
141
135
|
def initialize: (
|
|
142
136
|
dns_records: ::Array[EInvoiceAPI::Models::LookupRetrieveResponse::DNSInfo::DNSRecord],
|
|
143
137
|
sml_hostname: String,
|
|
144
138
|
status: String,
|
|
145
|
-
?error: String
|
|
146
|
-
?lookup_method: String?,
|
|
147
|
-
?smp_hostname: String?
|
|
139
|
+
?error: String?
|
|
148
140
|
) -> void
|
|
149
141
|
|
|
150
142
|
def to_hash: -> {
|
|
151
143
|
dns_records: ::Array[EInvoiceAPI::Models::LookupRetrieveResponse::DNSInfo::DNSRecord],
|
|
152
144
|
sml_hostname: String,
|
|
153
145
|
status: String,
|
|
154
|
-
error: String
|
|
155
|
-
lookup_method: String?,
|
|
156
|
-
smp_hostname: String?
|
|
146
|
+
error: String?
|
|
157
147
|
}
|
|
158
148
|
|
|
159
149
|
type dns_record = { ip: String }
|
|
@@ -2,7 +2,9 @@ module EInvoiceAPI
|
|
|
2
2
|
module Models
|
|
3
3
|
type me_retrieve_response =
|
|
4
4
|
{
|
|
5
|
+
credit_balance: Integer,
|
|
5
6
|
name: String,
|
|
7
|
+
plan: EInvoiceAPI::Models::MeRetrieveResponse::plan,
|
|
6
8
|
bcc_recipient_email: String?,
|
|
7
9
|
company_address: String?,
|
|
8
10
|
company_city: String?,
|
|
@@ -12,18 +14,20 @@ module EInvoiceAPI
|
|
|
12
14
|
company_number: String?,
|
|
13
15
|
company_tax_id: String?,
|
|
14
16
|
company_zip: String?,
|
|
15
|
-
credit_balance: Integer,
|
|
16
17
|
description: String?,
|
|
17
18
|
ibans: ::Array[String]?,
|
|
18
19
|
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
|
+
|
|
25
27
|
attr_accessor name: String
|
|
26
28
|
|
|
29
|
+
attr_accessor plan: EInvoiceAPI::Models::MeRetrieveResponse::plan
|
|
30
|
+
|
|
27
31
|
attr_accessor bcc_recipient_email: String?
|
|
28
32
|
|
|
29
33
|
attr_accessor company_address: String?
|
|
@@ -42,28 +46,20 @@ module EInvoiceAPI
|
|
|
42
46
|
|
|
43
47
|
attr_accessor company_zip: String?
|
|
44
48
|
|
|
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
|
-
|
|
61
55
|
attr_accessor smp_registration: bool?
|
|
62
56
|
|
|
63
57
|
attr_accessor smp_registration_date: Time?
|
|
64
58
|
|
|
65
59
|
def initialize: (
|
|
60
|
+
credit_balance: Integer,
|
|
66
61
|
name: String,
|
|
62
|
+
plan: EInvoiceAPI::Models::MeRetrieveResponse::plan,
|
|
67
63
|
?bcc_recipient_email: String?,
|
|
68
64
|
?company_address: String?,
|
|
69
65
|
?company_city: String?,
|
|
@@ -73,17 +69,17 @@ module EInvoiceAPI
|
|
|
73
69
|
?company_number: String?,
|
|
74
70
|
?company_tax_id: String?,
|
|
75
71
|
?company_zip: String?,
|
|
76
|
-
?credit_balance: Integer,
|
|
77
72
|
?description: String?,
|
|
78
73
|
?ibans: ::Array[String]?,
|
|
79
74
|
?peppol_ids: ::Array[String]?,
|
|
80
|
-
?plan: EInvoiceAPI::Models::MeRetrieveResponse::plan,
|
|
81
75
|
?smp_registration: bool?,
|
|
82
76
|
?smp_registration_date: Time?
|
|
83
77
|
) -> void
|
|
84
78
|
|
|
85
79
|
def to_hash: -> {
|
|
80
|
+
credit_balance: Integer,
|
|
86
81
|
name: String,
|
|
82
|
+
plan: EInvoiceAPI::Models::MeRetrieveResponse::plan,
|
|
87
83
|
bcc_recipient_email: String?,
|
|
88
84
|
company_address: String?,
|
|
89
85
|
company_city: String?,
|
|
@@ -93,11 +89,9 @@ module EInvoiceAPI
|
|
|
93
89
|
company_number: String?,
|
|
94
90
|
company_tax_id: String?,
|
|
95
91
|
company_zip: String?,
|
|
96
|
-
credit_balance: Integer,
|
|
97
92
|
description: String?,
|
|
98
93
|
ibans: ::Array[String]?,
|
|
99
94
|
peppol_ids: ::Array[String]?,
|
|
100
|
-
plan: EInvoiceAPI::Models::MeRetrieveResponse::plan,
|
|
101
95
|
smp_registration: bool?,
|
|
102
96
|
smp_registration_date: Time?
|
|
103
97
|
}
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
module EInvoiceAPI
|
|
2
2
|
module Models
|
|
3
3
|
type outbox_list_draft_documents_params =
|
|
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
|
-
}
|
|
4
|
+
{ page: Integer, page_size: Integer }
|
|
13
5
|
& EInvoiceAPI::Internal::Type::request_parameters
|
|
14
6
|
|
|
15
7
|
class OutboxListDraftDocumentsParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
@@ -24,79 +16,17 @@ module EInvoiceAPI
|
|
|
24
16
|
|
|
25
17
|
def page_size=: (Integer) -> Integer
|
|
26
18
|
|
|
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
|
-
|
|
45
19
|
def initialize: (
|
|
46
20
|
?page: Integer,
|
|
47
21
|
?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?,
|
|
53
22
|
?request_options: EInvoiceAPI::request_opts
|
|
54
23
|
) -> void
|
|
55
24
|
|
|
56
25
|
def to_hash: -> {
|
|
57
26
|
page: Integer,
|
|
58
27
|
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?,
|
|
64
28
|
request_options: EInvoiceAPI::RequestOptions
|
|
65
29
|
}
|
|
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
|
|
100
30
|
end
|
|
101
31
|
end
|
|
102
32
|
end
|