e-invoice-api 0.33.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 +8 -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 webhook_history_params =
|
|
4
|
+
{ webhook_id: String } & EInvoiceAPI::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class WebhookHistoryParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
7
|
+
extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include EInvoiceAPI::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor webhook_id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
webhook_id: String,
|
|
14
|
+
?request_options: EInvoiceAPI::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
webhook_id: String,
|
|
19
|
+
request_options: EInvoiceAPI::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Models
|
|
3
|
+
type webhook_history_response = { history: ::Array[::Hash[Symbol, top]] }
|
|
4
|
+
|
|
5
|
+
class WebhookHistoryResponse < EInvoiceAPI::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor history: ::Array[::Hash[Symbol, top]]
|
|
7
|
+
|
|
8
|
+
def initialize: (history: ::Array[::Hash[Symbol, top]]) -> void
|
|
9
|
+
|
|
10
|
+
def to_hash: -> { history: ::Array[::Hash[Symbol, top]] }
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Models
|
|
3
|
+
type webhook_test_params =
|
|
4
|
+
{ webhook_id: String, data: ::Hash[Symbol, top], event_type: String }
|
|
5
|
+
& EInvoiceAPI::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class WebhookTestParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
8
|
+
extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include EInvoiceAPI::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_accessor webhook_id: String
|
|
12
|
+
|
|
13
|
+
attr_accessor data: ::Hash[Symbol, top]
|
|
14
|
+
|
|
15
|
+
attr_accessor event_type: String
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
webhook_id: String,
|
|
19
|
+
data: ::Hash[Symbol, top],
|
|
20
|
+
event_type: String,
|
|
21
|
+
?request_options: EInvoiceAPI::request_opts
|
|
22
|
+
) -> void
|
|
23
|
+
|
|
24
|
+
def to_hash: -> {
|
|
25
|
+
webhook_id: String,
|
|
26
|
+
data: ::Hash[Symbol, top],
|
|
27
|
+
event_type: String,
|
|
28
|
+
request_options: EInvoiceAPI::RequestOptions
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Models
|
|
3
|
+
type webhook_test_response =
|
|
4
|
+
{
|
|
5
|
+
message: String,
|
|
6
|
+
success: bool,
|
|
7
|
+
webhook_delivery_result: ::Hash[Symbol, top]
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class WebhookTestResponse < EInvoiceAPI::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor message: String
|
|
12
|
+
|
|
13
|
+
attr_accessor success: bool
|
|
14
|
+
|
|
15
|
+
attr_accessor webhook_delivery_result: ::Hash[Symbol, top]
|
|
16
|
+
|
|
17
|
+
def initialize: (
|
|
18
|
+
message: String,
|
|
19
|
+
success: bool,
|
|
20
|
+
webhook_delivery_result: ::Hash[Symbol, top]
|
|
21
|
+
) -> void
|
|
22
|
+
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
message: String,
|
|
25
|
+
success: bool,
|
|
26
|
+
webhook_delivery_result: ::Hash[Symbol, top]
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -5,6 +5,8 @@ module EInvoiceAPI
|
|
|
5
5
|
|
|
6
6
|
class Charge = EInvoiceAPI::Models::Charge
|
|
7
7
|
|
|
8
|
+
module Conversion = EInvoiceAPI::Models::Conversion
|
|
9
|
+
|
|
8
10
|
module CurrencyCode = EInvoiceAPI::Models::CurrencyCode
|
|
9
11
|
|
|
10
12
|
class DocumentAttachmentCreate = EInvoiceAPI::Models::DocumentAttachmentCreate
|
|
@@ -19,6 +21,8 @@ module EInvoiceAPI
|
|
|
19
21
|
|
|
20
22
|
module DocumentDirection = EInvoiceAPI::Models::DocumentDirection
|
|
21
23
|
|
|
24
|
+
class DocumentLifecycleParams = EInvoiceAPI::Models::DocumentLifecycleParams
|
|
25
|
+
|
|
22
26
|
class DocumentResponse = EInvoiceAPI::Models::DocumentResponse
|
|
23
27
|
|
|
24
28
|
class DocumentRetrieveParams = EInvoiceAPI::Models::DocumentRetrieveParams
|
|
@@ -29,10 +33,16 @@ module EInvoiceAPI
|
|
|
29
33
|
|
|
30
34
|
module DocumentState = EInvoiceAPI::Models::DocumentState
|
|
31
35
|
|
|
36
|
+
class DocumentTimelineParams = EInvoiceAPI::Models::DocumentTimelineParams
|
|
37
|
+
|
|
32
38
|
module DocumentType = EInvoiceAPI::Models::DocumentType
|
|
33
39
|
|
|
34
40
|
class DocumentValidateParams = EInvoiceAPI::Models::DocumentValidateParams
|
|
35
41
|
|
|
42
|
+
class DraftListParams = EInvoiceAPI::Models::DraftListParams
|
|
43
|
+
|
|
44
|
+
class InboundEmailResponse = EInvoiceAPI::Models::InboundEmailResponse
|
|
45
|
+
|
|
36
46
|
class InboxListCreditNotesParams = EInvoiceAPI::Models::InboxListCreditNotesParams
|
|
37
47
|
|
|
38
48
|
class InboxListInvoicesParams = EInvoiceAPI::Models::InboxListInvoicesParams
|
|
@@ -43,6 +53,14 @@ module EInvoiceAPI
|
|
|
43
53
|
|
|
44
54
|
class LookupRetrieveParticipantsParams = EInvoiceAPI::Models::LookupRetrieveParticipantsParams
|
|
45
55
|
|
|
56
|
+
class MailboxDownloadAttachmentParams = EInvoiceAPI::Models::MailboxDownloadAttachmentParams
|
|
57
|
+
|
|
58
|
+
class MailboxListParams = EInvoiceAPI::Models::MailboxListParams
|
|
59
|
+
|
|
60
|
+
class MailboxReprocessParams = EInvoiceAPI::Models::MailboxReprocessParams
|
|
61
|
+
|
|
62
|
+
class MailboxRetrieveParams = EInvoiceAPI::Models::MailboxRetrieveParams
|
|
63
|
+
|
|
46
64
|
class MeRetrieveParams = EInvoiceAPI::Models::MeRetrieveParams
|
|
47
65
|
|
|
48
66
|
class OutboxListDraftDocumentsParams = EInvoiceAPI::Models::OutboxListDraftDocumentsParams
|
|
@@ -53,6 +71,8 @@ module EInvoiceAPI
|
|
|
53
71
|
|
|
54
72
|
class PaymentDetailCreate = EInvoiceAPI::Models::PaymentDetailCreate
|
|
55
73
|
|
|
74
|
+
class StatsRetrieveParams = EInvoiceAPI::Models::StatsRetrieveParams
|
|
75
|
+
|
|
56
76
|
class UblDocumentValidation = EInvoiceAPI::Models::UblDocumentValidation
|
|
57
77
|
|
|
58
78
|
module UnitOfMeasureCode = EInvoiceAPI::Models::UnitOfMeasureCode
|
|
@@ -67,11 +87,15 @@ module EInvoiceAPI
|
|
|
67
87
|
|
|
68
88
|
class WebhookDeleteParams = EInvoiceAPI::Models::WebhookDeleteParams
|
|
69
89
|
|
|
90
|
+
class WebhookHistoryParams = EInvoiceAPI::Models::WebhookHistoryParams
|
|
91
|
+
|
|
70
92
|
class WebhookListParams = EInvoiceAPI::Models::WebhookListParams
|
|
71
93
|
|
|
72
94
|
class WebhookResponse = EInvoiceAPI::Models::WebhookResponse
|
|
73
95
|
|
|
74
96
|
class WebhookRetrieveParams = EInvoiceAPI::Models::WebhookRetrieveParams
|
|
75
97
|
|
|
98
|
+
class WebhookTestParams = EInvoiceAPI::Models::WebhookTestParams
|
|
99
|
+
|
|
76
100
|
class WebhookUpdateParams = EInvoiceAPI::Models::WebhookUpdateParams
|
|
77
101
|
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Resources
|
|
3
|
+
class Conversion
|
|
4
|
+
class Pdf
|
|
5
|
+
def create: (
|
|
6
|
+
file: EInvoiceAPI::Internal::file_input,
|
|
7
|
+
?request_options: EInvoiceAPI::request_opts
|
|
8
|
+
) -> EInvoiceAPI::Conversion::DocumentCreateFromPdfTask
|
|
9
|
+
|
|
10
|
+
def retrieve: (
|
|
11
|
+
String task_id,
|
|
12
|
+
?request_options: EInvoiceAPI::request_opts
|
|
13
|
+
) -> EInvoiceAPI::Conversion::DocumentCreateFromPdfTask
|
|
14
|
+
|
|
15
|
+
def result: (
|
|
16
|
+
String task_id,
|
|
17
|
+
?request_options: EInvoiceAPI::request_opts
|
|
18
|
+
) -> EInvoiceAPI::Models::DocumentCreateFromPdfResponse
|
|
19
|
+
|
|
20
|
+
def initialize: (client: EInvoiceAPI::Client) -> void
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -12,6 +12,7 @@ module EInvoiceAPI
|
|
|
12
12
|
?attachments: ::Array[EInvoiceAPI::DocumentAttachmentCreate]?,
|
|
13
13
|
?billing_address: String?,
|
|
14
14
|
?billing_address_recipient: String?,
|
|
15
|
+
?buyer_reference: String?,
|
|
15
16
|
?charges: ::Array[EInvoiceAPI::DocumentCreate::Charge]?,
|
|
16
17
|
?currency: EInvoiceAPI::Models::currency_code,
|
|
17
18
|
?customer_address: String?,
|
|
@@ -21,6 +22,7 @@ module EInvoiceAPI
|
|
|
21
22
|
?customer_id: String?,
|
|
22
23
|
?customer_name: String?,
|
|
23
24
|
?customer_peppol_id: String?,
|
|
25
|
+
?customer_phone: String?,
|
|
24
26
|
?customer_tax_id: String?,
|
|
25
27
|
?direction: EInvoiceAPI::Models::document_direction,
|
|
26
28
|
?document_type: EInvoiceAPI::Models::document_type,
|
|
@@ -32,10 +34,14 @@ module EInvoiceAPI
|
|
|
32
34
|
?note: String?,
|
|
33
35
|
?payment_details: ::Array[EInvoiceAPI::PaymentDetailCreate]?,
|
|
34
36
|
?payment_term: String?,
|
|
37
|
+
?preceding_invoice_date: Date?,
|
|
38
|
+
?preceding_invoice_id: String?,
|
|
35
39
|
?previous_unpaid_balance: EInvoiceAPI::Models::DocumentCreate::previous_unpaid_balance?,
|
|
36
40
|
?purchase_order: String?,
|
|
37
41
|
?remittance_address: String?,
|
|
38
42
|
?remittance_address_recipient: String?,
|
|
43
|
+
?rounding_amount: EInvoiceAPI::Models::DocumentCreate::rounding_amount?,
|
|
44
|
+
?sales_order: String?,
|
|
39
45
|
?service_address: String?,
|
|
40
46
|
?service_address_recipient: String?,
|
|
41
47
|
?service_end_date: Date?,
|
|
@@ -45,9 +51,11 @@ module EInvoiceAPI
|
|
|
45
51
|
?state: EInvoiceAPI::Models::document_state,
|
|
46
52
|
?subtotal: EInvoiceAPI::Models::DocumentCreate::subtotal?,
|
|
47
53
|
?tax_code: EInvoiceAPI::Models::DocumentCreate::tax_code,
|
|
54
|
+
?tax_currency: String?,
|
|
48
55
|
?tax_details: ::Array[EInvoiceAPI::DocumentCreate::TaxDetail]?,
|
|
49
56
|
?total_discount: EInvoiceAPI::Models::DocumentCreate::total_discount?,
|
|
50
57
|
?total_tax: EInvoiceAPI::Models::DocumentCreate::total_tax?,
|
|
58
|
+
?total_tax_in_tax_currency: EInvoiceAPI::Models::DocumentCreate::total_tax_in_tax_currency?,
|
|
51
59
|
?vatex: EInvoiceAPI::Models::DocumentCreate::vatex?,
|
|
52
60
|
?vatex_note: String?,
|
|
53
61
|
?vendor_address: String?,
|
|
@@ -55,6 +63,7 @@ module EInvoiceAPI
|
|
|
55
63
|
?vendor_company_id: String?,
|
|
56
64
|
?vendor_email: String?,
|
|
57
65
|
?vendor_name: String?,
|
|
66
|
+
?vendor_phone: String?,
|
|
58
67
|
?vendor_tax_id: String?,
|
|
59
68
|
?request_options: EInvoiceAPI::request_opts
|
|
60
69
|
) -> EInvoiceAPI::DocumentResponse
|
|
@@ -91,6 +100,16 @@ module EInvoiceAPI
|
|
|
91
100
|
?request_options: EInvoiceAPI::request_opts
|
|
92
101
|
) -> EInvoiceAPI::UblDocumentValidation
|
|
93
102
|
|
|
103
|
+
def timeline: (
|
|
104
|
+
String document_id,
|
|
105
|
+
?request_options: EInvoiceAPI::request_opts
|
|
106
|
+
) -> EInvoiceAPI::Models::DocumentTimelineResponse
|
|
107
|
+
|
|
108
|
+
def lifecycle: (
|
|
109
|
+
String document_id,
|
|
110
|
+
?request_options: EInvoiceAPI::request_opts
|
|
111
|
+
) -> EInvoiceAPI::Models::DocumentLifecycleResponse
|
|
112
|
+
|
|
94
113
|
def initialize: (client: EInvoiceAPI::Client) -> void
|
|
95
114
|
end
|
|
96
115
|
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Resources
|
|
3
|
+
class Drafts
|
|
4
|
+
def list: (
|
|
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
|
+
?request_options: EInvoiceAPI::request_opts
|
|
15
|
+
) -> EInvoiceAPI::Internal::DocumentsNumberPage[EInvoiceAPI::DocumentResponse]
|
|
16
|
+
|
|
17
|
+
def initialize: (client: EInvoiceAPI::Client) -> void
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Resources
|
|
3
|
+
class Mailbox
|
|
4
|
+
def list: (
|
|
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
|
+
?request_options: EInvoiceAPI::request_opts
|
|
15
|
+
) -> EInvoiceAPI::Internal::DocumentsNumberPage[EInvoiceAPI::InboundEmailResponse]
|
|
16
|
+
|
|
17
|
+
def retrieve: (
|
|
18
|
+
String inbound_email_id,
|
|
19
|
+
?request_options: EInvoiceAPI::request_opts
|
|
20
|
+
) -> EInvoiceAPI::InboundEmailResponse
|
|
21
|
+
|
|
22
|
+
def download_attachment: (
|
|
23
|
+
String filename,
|
|
24
|
+
inbound_email_id: String,
|
|
25
|
+
?request_options: EInvoiceAPI::request_opts
|
|
26
|
+
) -> top
|
|
27
|
+
|
|
28
|
+
def reprocess: (
|
|
29
|
+
String inbound_email_id,
|
|
30
|
+
?request_options: EInvoiceAPI::request_opts
|
|
31
|
+
) -> EInvoiceAPI::InboundEmailResponse
|
|
32
|
+
|
|
33
|
+
def initialize: (client: EInvoiceAPI::Client) -> void
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module EInvoiceAPI
|
|
2
|
+
module Resources
|
|
3
|
+
class Stats
|
|
4
|
+
def retrieve: (
|
|
5
|
+
?aggregation: EInvoiceAPI::Models::StatsRetrieveParams::aggregation?,
|
|
6
|
+
?end_date: Date?,
|
|
7
|
+
?start_date: Date?,
|
|
8
|
+
?request_options: EInvoiceAPI::request_opts
|
|
9
|
+
) -> EInvoiceAPI::Models::StatsRetrieveResponse
|
|
10
|
+
|
|
11
|
+
def initialize: (client: EInvoiceAPI::Client) -> void
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -7,6 +7,7 @@ module EInvoiceAPI
|
|
|
7
7
|
?attachments: ::Array[EInvoiceAPI::DocumentAttachmentCreate]?,
|
|
8
8
|
?billing_address: String?,
|
|
9
9
|
?billing_address_recipient: String?,
|
|
10
|
+
?buyer_reference: String?,
|
|
10
11
|
?charges: ::Array[EInvoiceAPI::DocumentCreate::Charge]?,
|
|
11
12
|
?currency: EInvoiceAPI::Models::currency_code,
|
|
12
13
|
?customer_address: String?,
|
|
@@ -16,6 +17,7 @@ module EInvoiceAPI
|
|
|
16
17
|
?customer_id: String?,
|
|
17
18
|
?customer_name: String?,
|
|
18
19
|
?customer_peppol_id: String?,
|
|
20
|
+
?customer_phone: String?,
|
|
19
21
|
?customer_tax_id: String?,
|
|
20
22
|
?direction: EInvoiceAPI::Models::document_direction,
|
|
21
23
|
?document_type: EInvoiceAPI::Models::document_type,
|
|
@@ -27,10 +29,14 @@ module EInvoiceAPI
|
|
|
27
29
|
?note: String?,
|
|
28
30
|
?payment_details: ::Array[EInvoiceAPI::PaymentDetailCreate]?,
|
|
29
31
|
?payment_term: String?,
|
|
32
|
+
?preceding_invoice_date: Date?,
|
|
33
|
+
?preceding_invoice_id: String?,
|
|
30
34
|
?previous_unpaid_balance: EInvoiceAPI::Models::DocumentCreate::previous_unpaid_balance?,
|
|
31
35
|
?purchase_order: String?,
|
|
32
36
|
?remittance_address: String?,
|
|
33
37
|
?remittance_address_recipient: String?,
|
|
38
|
+
?rounding_amount: EInvoiceAPI::Models::DocumentCreate::rounding_amount?,
|
|
39
|
+
?sales_order: String?,
|
|
34
40
|
?service_address: String?,
|
|
35
41
|
?service_address_recipient: String?,
|
|
36
42
|
?service_end_date: Date?,
|
|
@@ -40,9 +46,11 @@ module EInvoiceAPI
|
|
|
40
46
|
?state: EInvoiceAPI::Models::document_state,
|
|
41
47
|
?subtotal: EInvoiceAPI::Models::DocumentCreate::subtotal?,
|
|
42
48
|
?tax_code: EInvoiceAPI::Models::DocumentCreate::tax_code,
|
|
49
|
+
?tax_currency: String?,
|
|
43
50
|
?tax_details: ::Array[EInvoiceAPI::DocumentCreate::TaxDetail]?,
|
|
44
51
|
?total_discount: EInvoiceAPI::Models::DocumentCreate::total_discount?,
|
|
45
52
|
?total_tax: EInvoiceAPI::Models::DocumentCreate::total_tax?,
|
|
53
|
+
?total_tax_in_tax_currency: EInvoiceAPI::Models::DocumentCreate::total_tax_in_tax_currency?,
|
|
46
54
|
?vatex: EInvoiceAPI::Models::DocumentCreate::vatex?,
|
|
47
55
|
?vatex_note: String?,
|
|
48
56
|
?vendor_address: String?,
|
|
@@ -50,6 +58,7 @@ module EInvoiceAPI
|
|
|
50
58
|
?vendor_company_id: String?,
|
|
51
59
|
?vendor_email: String?,
|
|
52
60
|
?vendor_name: String?,
|
|
61
|
+
?vendor_phone: String?,
|
|
53
62
|
?vendor_tax_id: String?,
|
|
54
63
|
?request_options: EInvoiceAPI::request_opts
|
|
55
64
|
) -> EInvoiceAPI::UblDocumentValidation
|
|
@@ -30,6 +30,18 @@ module EInvoiceAPI
|
|
|
30
30
|
?request_options: EInvoiceAPI::request_opts
|
|
31
31
|
) -> EInvoiceAPI::Models::WebhookDeleteResponse
|
|
32
32
|
|
|
33
|
+
def history: (
|
|
34
|
+
String webhook_id,
|
|
35
|
+
?request_options: EInvoiceAPI::request_opts
|
|
36
|
+
) -> EInvoiceAPI::Models::WebhookHistoryResponse
|
|
37
|
+
|
|
38
|
+
def test_: (
|
|
39
|
+
String webhook_id,
|
|
40
|
+
data: ::Hash[Symbol, top],
|
|
41
|
+
event_type: String,
|
|
42
|
+
?request_options: EInvoiceAPI::request_opts
|
|
43
|
+
) -> EInvoiceAPI::Models::WebhookTestResponse
|
|
44
|
+
|
|
33
45
|
def initialize: (client: EInvoiceAPI::Client) -> void
|
|
34
46
|
end
|
|
35
47
|
end
|