e-invoice-api 0.32.0 → 0.34.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 +16 -0
- data/README.md +1 -1
- data/lib/e_invoice_api/client.rb +16 -0
- data/lib/e_invoice_api/models/conversion/document_create_from_pdf_task.rb +43 -0
- data/lib/e_invoice_api/models/conversion/pdf_create_params.rb +22 -0
- data/lib/e_invoice_api/models/conversion/pdf_result_params.rb +22 -0
- data/lib/e_invoice_api/models/conversion/pdf_retrieve_params.rb +22 -0
- data/lib/e_invoice_api/models/document_create.rb +158 -5
- data/lib/e_invoice_api/models/document_create_from_pdf_response.rb +108 -5
- data/lib/e_invoice_api/models/document_lifecycle_params.rb +20 -0
- data/lib/e_invoice_api/models/document_lifecycle_response.rb +134 -0
- data/lib/e_invoice_api/models/document_response.rb +112 -7
- data/lib/e_invoice_api/models/document_timeline_params.rb +20 -0
- data/lib/e_invoice_api/models/document_timeline_response.rb +71 -0
- data/lib/e_invoice_api/models/draft_list_params.rb +113 -0
- data/lib/e_invoice_api/models/inbound_email_response.rb +129 -0
- data/lib/e_invoice_api/models/mailbox_download_attachment_params.rb +26 -0
- data/lib/e_invoice_api/models/mailbox_list_params.rb +129 -0
- data/lib/e_invoice_api/models/mailbox_reprocess_params.rb +20 -0
- data/lib/e_invoice_api/models/mailbox_retrieve_params.rb +20 -0
- data/lib/e_invoice_api/models/me_retrieve_response.rb +8 -7
- data/lib/e_invoice_api/models/payment_detail_create.rb +4 -2
- data/lib/e_invoice_api/models/stats_retrieve_params.rb +55 -0
- data/lib/e_invoice_api/models/stats_retrieve_response.rb +141 -0
- data/lib/e_invoice_api/models/ubl_document_validation.rb +10 -1
- data/lib/e_invoice_api/models/webhook_history_params.rb +20 -0
- data/lib/e_invoice_api/models/webhook_history_response.rb +17 -0
- data/lib/e_invoice_api/models/webhook_test_params.rb +37 -0
- data/lib/e_invoice_api/models/webhook_test_response.rb +35 -0
- data/lib/e_invoice_api/models.rb +24 -0
- data/lib/e_invoice_api/resources/conversion/pdf.rb +76 -0
- data/lib/e_invoice_api/resources/conversion.rb +18 -0
- data/lib/e_invoice_api/resources/documents.rb +62 -1
- data/lib/e_invoice_api/resources/drafts.rb +55 -0
- data/lib/e_invoice_api/resources/mailbox.rb +123 -0
- data/lib/e_invoice_api/resources/stats.rb +47 -0
- data/lib/e_invoice_api/resources/validate.rb +22 -2
- data/lib/e_invoice_api/resources/webhooks.rb +45 -0
- data/lib/e_invoice_api/version.rb +1 -1
- data/lib/e_invoice_api.rb +25 -0
- data/rbi/e_invoice_api/client.rbi +12 -0
- data/rbi/e_invoice_api/models/conversion/document_create_from_pdf_task.rbi +108 -0
- data/rbi/e_invoice_api/models/conversion/pdf_create_params.rbi +43 -0
- data/rbi/e_invoice_api/models/conversion/pdf_result_params.rbi +40 -0
- data/rbi/e_invoice_api/models/conversion/pdf_retrieve_params.rbi +40 -0
- data/rbi/e_invoice_api/models/document_create.rbi +210 -3
- data/rbi/e_invoice_api/models/document_create_from_pdf_response.rbi +124 -3
- data/rbi/e_invoice_api/models/document_lifecycle_params.rbi +38 -0
- data/rbi/e_invoice_api/models/document_lifecycle_response.rbi +353 -0
- data/rbi/e_invoice_api/models/document_response.rbi +130 -5
- data/rbi/e_invoice_api/models/document_timeline_params.rbi +38 -0
- data/rbi/e_invoice_api/models/document_timeline_response.rbi +168 -0
- data/rbi/e_invoice_api/models/draft_list_params.rbi +194 -0
- data/rbi/e_invoice_api/models/inbound_email_response.rbi +189 -0
- data/rbi/e_invoice_api/models/mailbox_download_attachment_params.rbi +46 -0
- data/rbi/e_invoice_api/models/mailbox_list_params.rbi +218 -0
- data/rbi/e_invoice_api/models/mailbox_reprocess_params.rbi +41 -0
- data/rbi/e_invoice_api/models/mailbox_retrieve_params.rbi +41 -0
- data/rbi/e_invoice_api/models/me_retrieve_response.rbi +10 -8
- data/rbi/e_invoice_api/models/payment_detail_create.rbi +6 -2
- data/rbi/e_invoice_api/models/stats_retrieve_params.rbi +111 -0
- data/rbi/e_invoice_api/models/stats_retrieve_response.rbi +251 -0
- data/rbi/e_invoice_api/models/ubl_document_validation.rbi +11 -1
- data/rbi/e_invoice_api/models/webhook_history_params.rbi +38 -0
- data/rbi/e_invoice_api/models/webhook_history_response.rbi +32 -0
- data/rbi/e_invoice_api/models/webhook_test_params.rbi +57 -0
- data/rbi/e_invoice_api/models/webhook_test_response.rbi +57 -0
- data/rbi/e_invoice_api/models.rbi +25 -0
- data/rbi/e_invoice_api/resources/conversion/pdf.rbi +44 -0
- data/rbi/e_invoice_api/resources/conversion.rbi +15 -0
- data/rbi/e_invoice_api/resources/documents.rbi +67 -0
- data/rbi/e_invoice_api/resources/drafts.rbi +55 -0
- data/rbi/e_invoice_api/resources/mailbox.rbi +93 -0
- data/rbi/e_invoice_api/resources/stats.rbi +38 -0
- data/rbi/e_invoice_api/resources/validate.rbi +44 -1
- data/rbi/e_invoice_api/resources/webhooks.rbi +29 -0
- data/sig/e_invoice_api/client.rbs +8 -0
- data/sig/e_invoice_api/models/conversion/document_create_from_pdf_task.rbs +45 -0
- data/sig/e_invoice_api/models/conversion/pdf_create_params.rbs +26 -0
- data/sig/e_invoice_api/models/conversion/pdf_result_params.rbs +25 -0
- data/sig/e_invoice_api/models/conversion/pdf_retrieve_params.rbs +25 -0
- data/sig/e_invoice_api/models/document_create.rbs +87 -4
- data/sig/e_invoice_api/models/document_create_from_pdf_response.rbs +61 -4
- data/sig/e_invoice_api/models/document_lifecycle_params.rbs +23 -0
- data/sig/e_invoice_api/models/document_lifecycle_response.rbs +151 -0
- data/sig/e_invoice_api/models/document_response.rbs +61 -4
- data/sig/e_invoice_api/models/document_timeline_params.rbs +23 -0
- data/sig/e_invoice_api/models/document_timeline_response.rbs +84 -0
- data/sig/e_invoice_api/models/draft_list_params.rbs +112 -0
- data/sig/e_invoice_api/models/inbound_email_response.rbs +126 -0
- data/sig/e_invoice_api/models/mailbox_download_attachment_params.rbs +28 -0
- data/sig/e_invoice_api/models/mailbox_list_params.rbs +112 -0
- data/sig/e_invoice_api/models/mailbox_reprocess_params.rbs +24 -0
- data/sig/e_invoice_api/models/mailbox_retrieve_params.rbs +24 -0
- data/sig/e_invoice_api/models/stats_retrieve_params.rbs +48 -0
- data/sig/e_invoice_api/models/stats_retrieve_response.rbs +107 -0
- data/sig/e_invoice_api/models/webhook_history_params.rbs +23 -0
- data/sig/e_invoice_api/models/webhook_history_response.rbs +13 -0
- data/sig/e_invoice_api/models/webhook_test_params.rbs +32 -0
- data/sig/e_invoice_api/models/webhook_test_response.rbs +30 -0
- data/sig/e_invoice_api/models.rbs +24 -0
- data/sig/e_invoice_api/resources/conversion/pdf.rbs +24 -0
- data/sig/e_invoice_api/resources/conversion.rbs +9 -0
- data/sig/e_invoice_api/resources/documents.rbs +19 -0
- data/sig/e_invoice_api/resources/drafts.rbs +20 -0
- data/sig/e_invoice_api/resources/mailbox.rbs +36 -0
- data/sig/e_invoice_api/resources/stats.rbs +14 -0
- data/sig/e_invoice_api/resources/validate.rbs +9 -0
- data/sig/e_invoice_api/resources/webhooks.rbs +12 -0
- metadata +77 -2
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Models
|
|
3
|
+
type document_timeline_params =
|
|
4
|
+
{ document_id: String } & EInvoiceAPI::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class DocumentTimelineParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
7
|
+
extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include EInvoiceAPI::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor document_id: String
|
|
11
|
+
|
|
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
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Models
|
|
3
|
+
type document_timeline_response =
|
|
4
|
+
{
|
|
5
|
+
document_id: String,
|
|
6
|
+
events: ::Array[EInvoiceAPI::Models::DocumentTimelineResponse::Event]
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class DocumentTimelineResponse < EInvoiceAPI::Internal::Type::BaseModel
|
|
10
|
+
attr_accessor document_id: String
|
|
11
|
+
|
|
12
|
+
attr_accessor events: ::Array[EInvoiceAPI::Models::DocumentTimelineResponse::Event]
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
document_id: String,
|
|
16
|
+
events: ::Array[EInvoiceAPI::Models::DocumentTimelineResponse::Event]
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
document_id: String,
|
|
21
|
+
events: ::Array[EInvoiceAPI::Models::DocumentTimelineResponse::Event]
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
type event =
|
|
25
|
+
{
|
|
26
|
+
event_type: EInvoiceAPI::Models::DocumentTimelineResponse::Event::event_type,
|
|
27
|
+
timestamp: Time,
|
|
28
|
+
id: String?,
|
|
29
|
+
details: ::Hash[Symbol, top]?
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
class Event < EInvoiceAPI::Internal::Type::BaseModel
|
|
33
|
+
attr_accessor event_type: EInvoiceAPI::Models::DocumentTimelineResponse::Event::event_type
|
|
34
|
+
|
|
35
|
+
attr_accessor timestamp: Time
|
|
36
|
+
|
|
37
|
+
attr_accessor id: String?
|
|
38
|
+
|
|
39
|
+
attr_accessor details: ::Hash[Symbol, top]?
|
|
40
|
+
|
|
41
|
+
def initialize: (
|
|
42
|
+
event_type: EInvoiceAPI::Models::DocumentTimelineResponse::Event::event_type,
|
|
43
|
+
timestamp: Time,
|
|
44
|
+
?id: String?,
|
|
45
|
+
?details: ::Hash[Symbol, top]?
|
|
46
|
+
) -> void
|
|
47
|
+
|
|
48
|
+
def to_hash: -> {
|
|
49
|
+
event_type: EInvoiceAPI::Models::DocumentTimelineResponse::Event::event_type,
|
|
50
|
+
timestamp: Time,
|
|
51
|
+
id: String?,
|
|
52
|
+
details: ::Hash[Symbol, top]?
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
type event_type =
|
|
56
|
+
:email_received
|
|
57
|
+
| :email_processed
|
|
58
|
+
| :document_created
|
|
59
|
+
| :send_attempted
|
|
60
|
+
| :send_failed
|
|
61
|
+
| :send_success
|
|
62
|
+
| :receive_success
|
|
63
|
+
| :mlr_received
|
|
64
|
+
| :imr_received
|
|
65
|
+
|
|
66
|
+
module EventType
|
|
67
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
EMAIL_RECEIVED: :email_received
|
|
70
|
+
EMAIL_PROCESSED: :email_processed
|
|
71
|
+
DOCUMENT_CREATED: :document_created
|
|
72
|
+
SEND_ATTEMPTED: :send_attempted
|
|
73
|
+
SEND_FAILED: :send_failed
|
|
74
|
+
SEND_SUCCESS: :send_success
|
|
75
|
+
RECEIVE_SUCCESS: :receive_success
|
|
76
|
+
MLR_RECEIVED: :mlr_received
|
|
77
|
+
IMR_RECEIVED: :imr_received
|
|
78
|
+
|
|
79
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::DocumentTimelineResponse::Event::event_type]
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Models
|
|
3
|
+
type draft_list_params =
|
|
4
|
+
{
|
|
5
|
+
date_from: Time?,
|
|
6
|
+
date_to: Time?,
|
|
7
|
+
page: Integer,
|
|
8
|
+
page_size: Integer,
|
|
9
|
+
search: String?,
|
|
10
|
+
sort_by: EInvoiceAPI::Models::DraftListParams::sort_by,
|
|
11
|
+
sort_order: EInvoiceAPI::Models::DraftListParams::sort_order,
|
|
12
|
+
state: EInvoiceAPI::Models::document_state?,
|
|
13
|
+
type: EInvoiceAPI::Models::document_type?
|
|
14
|
+
}
|
|
15
|
+
& EInvoiceAPI::Internal::Type::request_parameters
|
|
16
|
+
|
|
17
|
+
class DraftListParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
18
|
+
extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
|
|
19
|
+
include EInvoiceAPI::Internal::Type::RequestParameters
|
|
20
|
+
|
|
21
|
+
attr_accessor date_from: Time?
|
|
22
|
+
|
|
23
|
+
attr_accessor date_to: Time?
|
|
24
|
+
|
|
25
|
+
attr_reader page: Integer?
|
|
26
|
+
|
|
27
|
+
def page=: (Integer) -> Integer
|
|
28
|
+
|
|
29
|
+
attr_reader page_size: Integer?
|
|
30
|
+
|
|
31
|
+
def page_size=: (Integer) -> Integer
|
|
32
|
+
|
|
33
|
+
attr_accessor search: String?
|
|
34
|
+
|
|
35
|
+
attr_reader sort_by: EInvoiceAPI::Models::DraftListParams::sort_by?
|
|
36
|
+
|
|
37
|
+
def sort_by=: (
|
|
38
|
+
EInvoiceAPI::Models::DraftListParams::sort_by
|
|
39
|
+
) -> EInvoiceAPI::Models::DraftListParams::sort_by
|
|
40
|
+
|
|
41
|
+
attr_reader sort_order: EInvoiceAPI::Models::DraftListParams::sort_order?
|
|
42
|
+
|
|
43
|
+
def sort_order=: (
|
|
44
|
+
EInvoiceAPI::Models::DraftListParams::sort_order
|
|
45
|
+
) -> EInvoiceAPI::Models::DraftListParams::sort_order
|
|
46
|
+
|
|
47
|
+
attr_accessor state: EInvoiceAPI::Models::document_state?
|
|
48
|
+
|
|
49
|
+
attr_accessor type: EInvoiceAPI::Models::document_type?
|
|
50
|
+
|
|
51
|
+
def initialize: (
|
|
52
|
+
?date_from: Time?,
|
|
53
|
+
?date_to: Time?,
|
|
54
|
+
?page: Integer,
|
|
55
|
+
?page_size: Integer,
|
|
56
|
+
?search: String?,
|
|
57
|
+
?sort_by: EInvoiceAPI::Models::DraftListParams::sort_by,
|
|
58
|
+
?sort_order: EInvoiceAPI::Models::DraftListParams::sort_order,
|
|
59
|
+
?state: EInvoiceAPI::Models::document_state?,
|
|
60
|
+
?type: EInvoiceAPI::Models::document_type?,
|
|
61
|
+
?request_options: EInvoiceAPI::request_opts
|
|
62
|
+
) -> void
|
|
63
|
+
|
|
64
|
+
def to_hash: -> {
|
|
65
|
+
date_from: Time?,
|
|
66
|
+
date_to: Time?,
|
|
67
|
+
page: Integer,
|
|
68
|
+
page_size: Integer,
|
|
69
|
+
search: String?,
|
|
70
|
+
sort_by: EInvoiceAPI::Models::DraftListParams::sort_by,
|
|
71
|
+
sort_order: EInvoiceAPI::Models::DraftListParams::sort_order,
|
|
72
|
+
state: EInvoiceAPI::Models::document_state?,
|
|
73
|
+
type: EInvoiceAPI::Models::document_type?,
|
|
74
|
+
request_options: EInvoiceAPI::RequestOptions
|
|
75
|
+
}
|
|
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::DraftListParams::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::DraftListParams::sort_order]
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
end
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Models
|
|
3
|
+
type inbound_email_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
created_at: Time,
|
|
7
|
+
message_id: String,
|
|
8
|
+
sender_email: String,
|
|
9
|
+
attachment_count: Integer,
|
|
10
|
+
attachments: ::Array[EInvoiceAPI::InboundEmailResponse::Attachment],
|
|
11
|
+
bcc_addresses: String?,
|
|
12
|
+
cc_addresses: String?,
|
|
13
|
+
document_id: String?,
|
|
14
|
+
error_message: String?,
|
|
15
|
+
processed: bool,
|
|
16
|
+
processed_at: Time?,
|
|
17
|
+
received_at: Time?,
|
|
18
|
+
sender_name: String?,
|
|
19
|
+
subject: String?,
|
|
20
|
+
to_addresses: String?
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
class InboundEmailResponse < EInvoiceAPI::Internal::Type::BaseModel
|
|
24
|
+
attr_accessor id: String
|
|
25
|
+
|
|
26
|
+
attr_accessor created_at: Time
|
|
27
|
+
|
|
28
|
+
attr_accessor message_id: String
|
|
29
|
+
|
|
30
|
+
attr_accessor sender_email: String
|
|
31
|
+
|
|
32
|
+
attr_reader attachment_count: Integer?
|
|
33
|
+
|
|
34
|
+
def attachment_count=: (Integer) -> Integer
|
|
35
|
+
|
|
36
|
+
attr_reader attachments: ::Array[EInvoiceAPI::InboundEmailResponse::Attachment]?
|
|
37
|
+
|
|
38
|
+
def attachments=: (
|
|
39
|
+
::Array[EInvoiceAPI::InboundEmailResponse::Attachment]
|
|
40
|
+
) -> ::Array[EInvoiceAPI::InboundEmailResponse::Attachment]
|
|
41
|
+
|
|
42
|
+
attr_accessor bcc_addresses: String?
|
|
43
|
+
|
|
44
|
+
attr_accessor cc_addresses: String?
|
|
45
|
+
|
|
46
|
+
attr_accessor document_id: String?
|
|
47
|
+
|
|
48
|
+
attr_accessor error_message: String?
|
|
49
|
+
|
|
50
|
+
attr_reader processed: bool?
|
|
51
|
+
|
|
52
|
+
def processed=: (bool) -> bool
|
|
53
|
+
|
|
54
|
+
attr_accessor processed_at: Time?
|
|
55
|
+
|
|
56
|
+
attr_accessor received_at: Time?
|
|
57
|
+
|
|
58
|
+
attr_accessor sender_name: String?
|
|
59
|
+
|
|
60
|
+
attr_accessor subject: String?
|
|
61
|
+
|
|
62
|
+
attr_accessor to_addresses: String?
|
|
63
|
+
|
|
64
|
+
def initialize: (
|
|
65
|
+
id: String,
|
|
66
|
+
created_at: Time,
|
|
67
|
+
message_id: String,
|
|
68
|
+
sender_email: String,
|
|
69
|
+
?attachment_count: Integer,
|
|
70
|
+
?attachments: ::Array[EInvoiceAPI::InboundEmailResponse::Attachment],
|
|
71
|
+
?bcc_addresses: String?,
|
|
72
|
+
?cc_addresses: String?,
|
|
73
|
+
?document_id: String?,
|
|
74
|
+
?error_message: String?,
|
|
75
|
+
?processed: bool,
|
|
76
|
+
?processed_at: Time?,
|
|
77
|
+
?received_at: Time?,
|
|
78
|
+
?sender_name: String?,
|
|
79
|
+
?subject: String?,
|
|
80
|
+
?to_addresses: String?
|
|
81
|
+
) -> void
|
|
82
|
+
|
|
83
|
+
def to_hash: -> {
|
|
84
|
+
id: String,
|
|
85
|
+
created_at: Time,
|
|
86
|
+
message_id: String,
|
|
87
|
+
sender_email: String,
|
|
88
|
+
attachment_count: Integer,
|
|
89
|
+
attachments: ::Array[EInvoiceAPI::InboundEmailResponse::Attachment],
|
|
90
|
+
bcc_addresses: String?,
|
|
91
|
+
cc_addresses: String?,
|
|
92
|
+
document_id: String?,
|
|
93
|
+
error_message: String?,
|
|
94
|
+
processed: bool,
|
|
95
|
+
processed_at: Time?,
|
|
96
|
+
received_at: Time?,
|
|
97
|
+
sender_name: String?,
|
|
98
|
+
subject: String?,
|
|
99
|
+
to_addresses: String?
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
type attachment =
|
|
103
|
+
{ filename: String, content_type: String?, size: Integer? }
|
|
104
|
+
|
|
105
|
+
class Attachment < EInvoiceAPI::Internal::Type::BaseModel
|
|
106
|
+
attr_accessor filename: String
|
|
107
|
+
|
|
108
|
+
attr_accessor content_type: String?
|
|
109
|
+
|
|
110
|
+
attr_accessor size: Integer?
|
|
111
|
+
|
|
112
|
+
def initialize: (
|
|
113
|
+
filename: String,
|
|
114
|
+
?content_type: String?,
|
|
115
|
+
?size: Integer?
|
|
116
|
+
) -> void
|
|
117
|
+
|
|
118
|
+
def to_hash: -> {
|
|
119
|
+
filename: String,
|
|
120
|
+
content_type: String?,
|
|
121
|
+
size: Integer?
|
|
122
|
+
}
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Models
|
|
3
|
+
type mailbox_download_attachment_params =
|
|
4
|
+
{ inbound_email_id: String, filename: String }
|
|
5
|
+
& EInvoiceAPI::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class MailboxDownloadAttachmentParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
8
|
+
extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include EInvoiceAPI::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor inbound_email_id: String
|
|
12
|
+
|
|
13
|
+
attr_accessor filename: String
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
inbound_email_id: String,
|
|
17
|
+
filename: String,
|
|
18
|
+
?request_options: EInvoiceAPI::request_opts
|
|
19
|
+
) -> void
|
|
20
|
+
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
inbound_email_id: String,
|
|
23
|
+
filename: String,
|
|
24
|
+
request_options: EInvoiceAPI::RequestOptions
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Models
|
|
3
|
+
type mailbox_list_params =
|
|
4
|
+
{
|
|
5
|
+
page: Integer,
|
|
6
|
+
page_size: Integer,
|
|
7
|
+
processed: bool?,
|
|
8
|
+
received_from: Time?,
|
|
9
|
+
received_to: Time?,
|
|
10
|
+
search: String?,
|
|
11
|
+
sort_by: EInvoiceAPI::Models::MailboxListParams::sort_by,
|
|
12
|
+
sort_order: EInvoiceAPI::Models::MailboxListParams::sort_order,
|
|
13
|
+
status: EInvoiceAPI::Models::MailboxListParams::status?
|
|
14
|
+
}
|
|
15
|
+
& EInvoiceAPI::Internal::Type::request_parameters
|
|
16
|
+
|
|
17
|
+
class MailboxListParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
18
|
+
extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
|
|
19
|
+
include EInvoiceAPI::Internal::Type::RequestParameters
|
|
20
|
+
|
|
21
|
+
attr_reader page: Integer?
|
|
22
|
+
|
|
23
|
+
def page=: (Integer) -> Integer
|
|
24
|
+
|
|
25
|
+
attr_reader page_size: Integer?
|
|
26
|
+
|
|
27
|
+
def page_size=: (Integer) -> Integer
|
|
28
|
+
|
|
29
|
+
attr_accessor processed: bool?
|
|
30
|
+
|
|
31
|
+
attr_accessor received_from: Time?
|
|
32
|
+
|
|
33
|
+
attr_accessor received_to: Time?
|
|
34
|
+
|
|
35
|
+
attr_accessor search: String?
|
|
36
|
+
|
|
37
|
+
attr_reader sort_by: EInvoiceAPI::Models::MailboxListParams::sort_by?
|
|
38
|
+
|
|
39
|
+
def sort_by=: (
|
|
40
|
+
EInvoiceAPI::Models::MailboxListParams::sort_by
|
|
41
|
+
) -> EInvoiceAPI::Models::MailboxListParams::sort_by
|
|
42
|
+
|
|
43
|
+
attr_reader sort_order: EInvoiceAPI::Models::MailboxListParams::sort_order?
|
|
44
|
+
|
|
45
|
+
def sort_order=: (
|
|
46
|
+
EInvoiceAPI::Models::MailboxListParams::sort_order
|
|
47
|
+
) -> EInvoiceAPI::Models::MailboxListParams::sort_order
|
|
48
|
+
|
|
49
|
+
attr_accessor status: EInvoiceAPI::Models::MailboxListParams::status?
|
|
50
|
+
|
|
51
|
+
def initialize: (
|
|
52
|
+
?page: Integer,
|
|
53
|
+
?page_size: Integer,
|
|
54
|
+
?processed: bool?,
|
|
55
|
+
?received_from: Time?,
|
|
56
|
+
?received_to: Time?,
|
|
57
|
+
?search: String?,
|
|
58
|
+
?sort_by: EInvoiceAPI::Models::MailboxListParams::sort_by,
|
|
59
|
+
?sort_order: EInvoiceAPI::Models::MailboxListParams::sort_order,
|
|
60
|
+
?status: EInvoiceAPI::Models::MailboxListParams::status?,
|
|
61
|
+
?request_options: EInvoiceAPI::request_opts
|
|
62
|
+
) -> void
|
|
63
|
+
|
|
64
|
+
def to_hash: -> {
|
|
65
|
+
page: Integer,
|
|
66
|
+
page_size: Integer,
|
|
67
|
+
processed: bool?,
|
|
68
|
+
received_from: Time?,
|
|
69
|
+
received_to: Time?,
|
|
70
|
+
search: String?,
|
|
71
|
+
sort_by: EInvoiceAPI::Models::MailboxListParams::sort_by,
|
|
72
|
+
sort_order: EInvoiceAPI::Models::MailboxListParams::sort_order,
|
|
73
|
+
status: EInvoiceAPI::Models::MailboxListParams::status?,
|
|
74
|
+
request_options: EInvoiceAPI::RequestOptions
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
type sort_by = :received_at | :created_at
|
|
78
|
+
|
|
79
|
+
module SortBy
|
|
80
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
81
|
+
|
|
82
|
+
RECEIVED_AT: :received_at
|
|
83
|
+
CREATED_AT: :created_at
|
|
84
|
+
|
|
85
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::MailboxListParams::sort_by]
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
type sort_order = :asc | :desc
|
|
89
|
+
|
|
90
|
+
module SortOrder
|
|
91
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
92
|
+
|
|
93
|
+
ASC: :asc
|
|
94
|
+
DESC: :desc
|
|
95
|
+
|
|
96
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::MailboxListParams::sort_order]
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
type status = :pending | :success | :failed
|
|
100
|
+
|
|
101
|
+
module Status
|
|
102
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
103
|
+
|
|
104
|
+
PENDING: :pending
|
|
105
|
+
SUCCESS: :success
|
|
106
|
+
FAILED: :failed
|
|
107
|
+
|
|
108
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::MailboxListParams::status]
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Models
|
|
3
|
+
type mailbox_reprocess_params =
|
|
4
|
+
{ inbound_email_id: String }
|
|
5
|
+
& EInvoiceAPI::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class MailboxReprocessParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
8
|
+
extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include EInvoiceAPI::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor inbound_email_id: String
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
inbound_email_id: String,
|
|
15
|
+
?request_options: EInvoiceAPI::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
inbound_email_id: String,
|
|
20
|
+
request_options: EInvoiceAPI::RequestOptions
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Models
|
|
3
|
+
type mailbox_retrieve_params =
|
|
4
|
+
{ inbound_email_id: String }
|
|
5
|
+
& EInvoiceAPI::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class MailboxRetrieveParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
8
|
+
extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include EInvoiceAPI::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor inbound_email_id: String
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
inbound_email_id: String,
|
|
15
|
+
?request_options: EInvoiceAPI::request_opts
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
inbound_email_id: String,
|
|
20
|
+
request_options: EInvoiceAPI::RequestOptions
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Models
|
|
3
|
+
type stats_retrieve_params =
|
|
4
|
+
{
|
|
5
|
+
aggregation: EInvoiceAPI::Models::StatsRetrieveParams::aggregation?,
|
|
6
|
+
end_date: Date?,
|
|
7
|
+
start_date: Date?
|
|
8
|
+
}
|
|
9
|
+
& EInvoiceAPI::Internal::Type::request_parameters
|
|
10
|
+
|
|
11
|
+
class StatsRetrieveParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
12
|
+
extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
|
|
13
|
+
include EInvoiceAPI::Internal::Type::RequestParameters
|
|
14
|
+
|
|
15
|
+
attr_accessor aggregation: EInvoiceAPI::Models::StatsRetrieveParams::aggregation?
|
|
16
|
+
|
|
17
|
+
attr_accessor end_date: Date?
|
|
18
|
+
|
|
19
|
+
attr_accessor start_date: Date?
|
|
20
|
+
|
|
21
|
+
def initialize: (
|
|
22
|
+
?aggregation: EInvoiceAPI::Models::StatsRetrieveParams::aggregation?,
|
|
23
|
+
?end_date: Date?,
|
|
24
|
+
?start_date: Date?,
|
|
25
|
+
?request_options: EInvoiceAPI::request_opts
|
|
26
|
+
) -> void
|
|
27
|
+
|
|
28
|
+
def to_hash: -> {
|
|
29
|
+
aggregation: EInvoiceAPI::Models::StatsRetrieveParams::aggregation?,
|
|
30
|
+
end_date: Date?,
|
|
31
|
+
start_date: Date?,
|
|
32
|
+
request_options: EInvoiceAPI::RequestOptions
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
type aggregation = :DAY | :WEEK | :MONTH
|
|
36
|
+
|
|
37
|
+
module Aggregation
|
|
38
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
39
|
+
|
|
40
|
+
DAY: :DAY
|
|
41
|
+
WEEK: :WEEK
|
|
42
|
+
MONTH: :MONTH
|
|
43
|
+
|
|
44
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::StatsRetrieveParams::aggregation]
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Models
|
|
3
|
+
type stats_retrieve_response =
|
|
4
|
+
{
|
|
5
|
+
actions: ::Array[EInvoiceAPI::Models::StatsRetrieveResponse::Action],
|
|
6
|
+
aggregation: EInvoiceAPI::Models::StatsRetrieveResponse::aggregation,
|
|
7
|
+
average_daily_usage: Float,
|
|
8
|
+
period_end: Date,
|
|
9
|
+
period_start: Date,
|
|
10
|
+
tenant_id: String,
|
|
11
|
+
total_days: Integer,
|
|
12
|
+
budget_estimation_days: Float
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class StatsRetrieveResponse < EInvoiceAPI::Internal::Type::BaseModel
|
|
16
|
+
attr_accessor actions: ::Array[EInvoiceAPI::Models::StatsRetrieveResponse::Action]
|
|
17
|
+
|
|
18
|
+
attr_accessor aggregation: EInvoiceAPI::Models::StatsRetrieveResponse::aggregation
|
|
19
|
+
|
|
20
|
+
attr_accessor average_daily_usage: Float
|
|
21
|
+
|
|
22
|
+
attr_accessor period_end: Date
|
|
23
|
+
|
|
24
|
+
attr_accessor period_start: Date
|
|
25
|
+
|
|
26
|
+
attr_accessor tenant_id: String
|
|
27
|
+
|
|
28
|
+
attr_accessor total_days: Integer
|
|
29
|
+
|
|
30
|
+
attr_reader budget_estimation_days: Float?
|
|
31
|
+
|
|
32
|
+
def budget_estimation_days=: (Float) -> Float
|
|
33
|
+
|
|
34
|
+
def initialize: (
|
|
35
|
+
actions: ::Array[EInvoiceAPI::Models::StatsRetrieveResponse::Action],
|
|
36
|
+
aggregation: EInvoiceAPI::Models::StatsRetrieveResponse::aggregation,
|
|
37
|
+
average_daily_usage: Float,
|
|
38
|
+
period_end: Date,
|
|
39
|
+
period_start: Date,
|
|
40
|
+
tenant_id: String,
|
|
41
|
+
total_days: Integer,
|
|
42
|
+
?budget_estimation_days: Float
|
|
43
|
+
) -> void
|
|
44
|
+
|
|
45
|
+
def to_hash: -> {
|
|
46
|
+
actions: ::Array[EInvoiceAPI::Models::StatsRetrieveResponse::Action],
|
|
47
|
+
aggregation: EInvoiceAPI::Models::StatsRetrieveResponse::aggregation,
|
|
48
|
+
average_daily_usage: Float,
|
|
49
|
+
period_end: Date,
|
|
50
|
+
period_start: Date,
|
|
51
|
+
tenant_id: String,
|
|
52
|
+
total_days: Integer,
|
|
53
|
+
budget_estimation_days: Float
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
type action =
|
|
57
|
+
{
|
|
58
|
+
action: EInvoiceAPI::Models::StatsRetrieveResponse::Action::action,
|
|
59
|
+
count: Integer,
|
|
60
|
+
stat_date: Date
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
class Action < EInvoiceAPI::Internal::Type::BaseModel
|
|
64
|
+
attr_accessor action: EInvoiceAPI::Models::StatsRetrieveResponse::Action::action
|
|
65
|
+
|
|
66
|
+
attr_accessor count: Integer
|
|
67
|
+
|
|
68
|
+
attr_accessor stat_date: Date
|
|
69
|
+
|
|
70
|
+
def initialize: (
|
|
71
|
+
action: EInvoiceAPI::Models::StatsRetrieveResponse::Action::action,
|
|
72
|
+
count: Integer,
|
|
73
|
+
stat_date: Date
|
|
74
|
+
) -> void
|
|
75
|
+
|
|
76
|
+
def to_hash: -> {
|
|
77
|
+
action: EInvoiceAPI::Models::StatsRetrieveResponse::Action::action,
|
|
78
|
+
count: Integer,
|
|
79
|
+
stat_date: Date
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
type action = :DOCUMENT_SENT | :DOCUMENT_RECEIVED
|
|
83
|
+
|
|
84
|
+
module Action
|
|
85
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
86
|
+
|
|
87
|
+
DOCUMENT_SENT: :DOCUMENT_SENT
|
|
88
|
+
DOCUMENT_RECEIVED: :DOCUMENT_RECEIVED
|
|
89
|
+
|
|
90
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::StatsRetrieveResponse::Action::action]
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
type aggregation = :DAY | :WEEK | :MONTH
|
|
95
|
+
|
|
96
|
+
module Aggregation
|
|
97
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
|
98
|
+
|
|
99
|
+
DAY: :DAY
|
|
100
|
+
WEEK: :WEEK
|
|
101
|
+
MONTH: :MONTH
|
|
102
|
+
|
|
103
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::StatsRetrieveResponse::aggregation]
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|