e-invoice-api 0.7.0 → 0.8.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 +5 -5
- data/lib/e_invoice_api/client.rb +4 -0
- data/lib/e_invoice_api/internal/type/base_model.rb +5 -5
- data/lib/e_invoice_api/models/allowance.rb +96 -0
- data/lib/e_invoice_api/models/charge.rb +96 -0
- data/lib/e_invoice_api/models/document_create_from_pdf_params.rb +32 -0
- data/lib/e_invoice_api/models/document_create_from_pdf_response.rb +584 -0
- data/lib/e_invoice_api/models/document_response.rb +6 -192
- data/lib/e_invoice_api/models/document_validate_params.rb +14 -0
- data/lib/e_invoice_api/models/documents/ubl_create_from_ubl_params.rb +22 -0
- data/lib/e_invoice_api/models/me_retrieve_params.rb +14 -0
- data/lib/e_invoice_api/models/me_retrieve_response.rb +149 -0
- data/lib/e_invoice_api/models.rb +10 -0
- data/lib/e_invoice_api/resources/documents/ubl.rb +22 -0
- data/lib/e_invoice_api/resources/documents.rb +52 -0
- data/lib/e_invoice_api/resources/me.rb +32 -0
- data/lib/e_invoice_api/version.rb +1 -1
- data/lib/e_invoice_api.rb +9 -0
- data/rbi/e_invoice_api/client.rbi +3 -0
- data/rbi/e_invoice_api/models/allowance.rbi +124 -0
- data/rbi/e_invoice_api/models/charge.rbi +122 -0
- data/rbi/e_invoice_api/models/document_create_from_pdf_params.rbi +56 -0
- data/rbi/e_invoice_api/models/document_create_from_pdf_response.rbi +1014 -0
- data/rbi/e_invoice_api/models/document_response.rbi +6 -388
- data/rbi/e_invoice_api/models/document_validate_params.rbi +30 -0
- data/rbi/e_invoice_api/models/documents/ubl_create_from_ubl_params.rbi +43 -0
- data/rbi/e_invoice_api/models/me_retrieve_params.rbi +27 -0
- data/rbi/e_invoice_api/models/me_retrieve_response.rbi +195 -0
- data/rbi/e_invoice_api/models.rbi +10 -0
- data/rbi/e_invoice_api/resources/documents/ubl.rbi +10 -0
- data/rbi/e_invoice_api/resources/documents.rbi +34 -0
- data/rbi/e_invoice_api/resources/me.rbi +21 -0
- data/sig/e_invoice_api/client.rbs +2 -0
- data/sig/e_invoice_api/models/allowance.rbs +69 -0
- data/sig/e_invoice_api/models/charge.rbs +69 -0
- data/sig/e_invoice_api/models/document_create_from_pdf_params.rbs +36 -0
- data/sig/e_invoice_api/models/document_create_from_pdf_response.rbs +512 -0
- data/sig/e_invoice_api/models/document_response.rbs +8 -140
- data/sig/e_invoice_api/models/document_validate_params.rbs +15 -0
- data/sig/e_invoice_api/models/documents/ubl_create_from_ubl_params.rbs +26 -0
- data/sig/e_invoice_api/models/me_retrieve_params.rbs +15 -0
- data/sig/e_invoice_api/models/me_retrieve_response.rbs +107 -0
- data/sig/e_invoice_api/models.rbs +10 -0
- data/sig/e_invoice_api/resources/documents/ubl.rbs +5 -0
- data/sig/e_invoice_api/resources/documents.rbs +12 -0
- data/sig/e_invoice_api/resources/me.rbs +11 -0
- metadata +28 -1
@@ -0,0 +1,195 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module EInvoiceAPI
|
4
|
+
module Models
|
5
|
+
class MeRetrieveResponse < EInvoiceAPI::Internal::Type::BaseModel
|
6
|
+
OrHash =
|
7
|
+
T.type_alias do
|
8
|
+
T.any(
|
9
|
+
EInvoiceAPI::Models::MeRetrieveResponse,
|
10
|
+
EInvoiceAPI::Internal::AnyHash
|
11
|
+
)
|
12
|
+
end
|
13
|
+
|
14
|
+
# Credit balance of the tenant
|
15
|
+
sig { returns(Integer) }
|
16
|
+
attr_accessor :credit_balance
|
17
|
+
|
18
|
+
sig { returns(String) }
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
# Plan of the tenant
|
22
|
+
sig do
|
23
|
+
returns(EInvoiceAPI::Models::MeRetrieveResponse::Plan::TaggedSymbol)
|
24
|
+
end
|
25
|
+
attr_accessor :plan
|
26
|
+
|
27
|
+
# BCC recipient email to deliver documents
|
28
|
+
sig { returns(T.nilable(String)) }
|
29
|
+
attr_accessor :bcc_recipient_email
|
30
|
+
|
31
|
+
# Address of the company
|
32
|
+
sig { returns(T.nilable(String)) }
|
33
|
+
attr_accessor :company_address
|
34
|
+
|
35
|
+
# City of the company
|
36
|
+
sig { returns(T.nilable(String)) }
|
37
|
+
attr_accessor :company_city
|
38
|
+
|
39
|
+
# Country of the company
|
40
|
+
sig { returns(T.nilable(String)) }
|
41
|
+
attr_accessor :company_country
|
42
|
+
|
43
|
+
# Email of the company
|
44
|
+
sig { returns(T.nilable(String)) }
|
45
|
+
attr_accessor :company_email
|
46
|
+
|
47
|
+
# Name of the company
|
48
|
+
sig { returns(T.nilable(String)) }
|
49
|
+
attr_accessor :company_name
|
50
|
+
|
51
|
+
# Company number
|
52
|
+
sig { returns(T.nilable(String)) }
|
53
|
+
attr_accessor :company_number
|
54
|
+
|
55
|
+
# Zip code of the company
|
56
|
+
sig { returns(T.nilable(String)) }
|
57
|
+
attr_accessor :company_zip
|
58
|
+
|
59
|
+
sig { returns(T.nilable(String)) }
|
60
|
+
attr_accessor :description
|
61
|
+
|
62
|
+
# IBANs of the tenant
|
63
|
+
sig { returns(T.nilable(T::Array[String])) }
|
64
|
+
attr_accessor :ibans
|
65
|
+
|
66
|
+
# Peppol IDs of the tenant
|
67
|
+
sig { returns(T.nilable(T::Array[String])) }
|
68
|
+
attr_accessor :peppol_ids
|
69
|
+
|
70
|
+
# Whether the tenant is registered on our SMP
|
71
|
+
sig { returns(T.nilable(T::Boolean)) }
|
72
|
+
attr_accessor :smp_registration
|
73
|
+
|
74
|
+
# Date when the tenant was registered on SMP
|
75
|
+
sig { returns(T.nilable(Time)) }
|
76
|
+
attr_accessor :smp_registration_date
|
77
|
+
|
78
|
+
sig do
|
79
|
+
params(
|
80
|
+
credit_balance: Integer,
|
81
|
+
name: String,
|
82
|
+
plan: EInvoiceAPI::Models::MeRetrieveResponse::Plan::OrSymbol,
|
83
|
+
bcc_recipient_email: T.nilable(String),
|
84
|
+
company_address: T.nilable(String),
|
85
|
+
company_city: T.nilable(String),
|
86
|
+
company_country: T.nilable(String),
|
87
|
+
company_email: T.nilable(String),
|
88
|
+
company_name: T.nilable(String),
|
89
|
+
company_number: T.nilable(String),
|
90
|
+
company_zip: T.nilable(String),
|
91
|
+
description: T.nilable(String),
|
92
|
+
ibans: T.nilable(T::Array[String]),
|
93
|
+
peppol_ids: T.nilable(T::Array[String]),
|
94
|
+
smp_registration: T.nilable(T::Boolean),
|
95
|
+
smp_registration_date: T.nilable(Time)
|
96
|
+
).returns(T.attached_class)
|
97
|
+
end
|
98
|
+
def self.new(
|
99
|
+
# Credit balance of the tenant
|
100
|
+
credit_balance:,
|
101
|
+
name:,
|
102
|
+
# Plan of the tenant
|
103
|
+
plan:,
|
104
|
+
# BCC recipient email to deliver documents
|
105
|
+
bcc_recipient_email: nil,
|
106
|
+
# Address of the company
|
107
|
+
company_address: nil,
|
108
|
+
# City of the company
|
109
|
+
company_city: nil,
|
110
|
+
# Country of the company
|
111
|
+
company_country: nil,
|
112
|
+
# Email of the company
|
113
|
+
company_email: nil,
|
114
|
+
# Name of the company
|
115
|
+
company_name: nil,
|
116
|
+
# Company number
|
117
|
+
company_number: nil,
|
118
|
+
# Zip code of the company
|
119
|
+
company_zip: nil,
|
120
|
+
description: nil,
|
121
|
+
# IBANs of the tenant
|
122
|
+
ibans: nil,
|
123
|
+
# Peppol IDs of the tenant
|
124
|
+
peppol_ids: nil,
|
125
|
+
# Whether the tenant is registered on our SMP
|
126
|
+
smp_registration: nil,
|
127
|
+
# Date when the tenant was registered on SMP
|
128
|
+
smp_registration_date: nil
|
129
|
+
)
|
130
|
+
end
|
131
|
+
|
132
|
+
sig do
|
133
|
+
override.returns(
|
134
|
+
{
|
135
|
+
credit_balance: Integer,
|
136
|
+
name: String,
|
137
|
+
plan: EInvoiceAPI::Models::MeRetrieveResponse::Plan::TaggedSymbol,
|
138
|
+
bcc_recipient_email: T.nilable(String),
|
139
|
+
company_address: T.nilable(String),
|
140
|
+
company_city: T.nilable(String),
|
141
|
+
company_country: T.nilable(String),
|
142
|
+
company_email: T.nilable(String),
|
143
|
+
company_name: T.nilable(String),
|
144
|
+
company_number: T.nilable(String),
|
145
|
+
company_zip: T.nilable(String),
|
146
|
+
description: T.nilable(String),
|
147
|
+
ibans: T.nilable(T::Array[String]),
|
148
|
+
peppol_ids: T.nilable(T::Array[String]),
|
149
|
+
smp_registration: T.nilable(T::Boolean),
|
150
|
+
smp_registration_date: T.nilable(Time)
|
151
|
+
}
|
152
|
+
)
|
153
|
+
end
|
154
|
+
def to_hash
|
155
|
+
end
|
156
|
+
|
157
|
+
# Plan of the tenant
|
158
|
+
module Plan
|
159
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
160
|
+
|
161
|
+
TaggedSymbol =
|
162
|
+
T.type_alias do
|
163
|
+
T.all(Symbol, EInvoiceAPI::Models::MeRetrieveResponse::Plan)
|
164
|
+
end
|
165
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
166
|
+
|
167
|
+
STARTER =
|
168
|
+
T.let(
|
169
|
+
:starter,
|
170
|
+
EInvoiceAPI::Models::MeRetrieveResponse::Plan::TaggedSymbol
|
171
|
+
)
|
172
|
+
PRO =
|
173
|
+
T.let(
|
174
|
+
:pro,
|
175
|
+
EInvoiceAPI::Models::MeRetrieveResponse::Plan::TaggedSymbol
|
176
|
+
)
|
177
|
+
ENTERPRISE =
|
178
|
+
T.let(
|
179
|
+
:enterprise,
|
180
|
+
EInvoiceAPI::Models::MeRetrieveResponse::Plan::TaggedSymbol
|
181
|
+
)
|
182
|
+
|
183
|
+
sig do
|
184
|
+
override.returns(
|
185
|
+
T::Array[
|
186
|
+
EInvoiceAPI::Models::MeRetrieveResponse::Plan::TaggedSymbol
|
187
|
+
]
|
188
|
+
)
|
189
|
+
end
|
190
|
+
def self.values
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|
195
|
+
end
|
@@ -1,14 +1,20 @@
|
|
1
1
|
# typed: strong
|
2
2
|
|
3
3
|
module EInvoiceAPI
|
4
|
+
Allowance = EInvoiceAPI::Models::Allowance
|
5
|
+
|
4
6
|
Certificate = EInvoiceAPI::Models::Certificate
|
5
7
|
|
8
|
+
Charge = EInvoiceAPI::Models::Charge
|
9
|
+
|
6
10
|
CurrencyCode = EInvoiceAPI::Models::CurrencyCode
|
7
11
|
|
8
12
|
DocumentAttachmentCreate = EInvoiceAPI::Models::DocumentAttachmentCreate
|
9
13
|
|
10
14
|
DocumentCreate = EInvoiceAPI::Models::DocumentCreate
|
11
15
|
|
16
|
+
DocumentCreateFromPdfParams = EInvoiceAPI::Models::DocumentCreateFromPdfParams
|
17
|
+
|
12
18
|
DocumentCreateParams = EInvoiceAPI::Models::DocumentCreateParams
|
13
19
|
|
14
20
|
DocumentDeleteParams = EInvoiceAPI::Models::DocumentDeleteParams
|
@@ -27,6 +33,8 @@ module EInvoiceAPI
|
|
27
33
|
|
28
34
|
DocumentType = EInvoiceAPI::Models::DocumentType
|
29
35
|
|
36
|
+
DocumentValidateParams = EInvoiceAPI::Models::DocumentValidateParams
|
37
|
+
|
30
38
|
InboxListCreditNotesParams = EInvoiceAPI::Models::InboxListCreditNotesParams
|
31
39
|
|
32
40
|
InboxListInvoicesParams = EInvoiceAPI::Models::InboxListInvoicesParams
|
@@ -38,6 +46,8 @@ module EInvoiceAPI
|
|
38
46
|
LookupRetrieveParticipantsParams =
|
39
47
|
EInvoiceAPI::Models::LookupRetrieveParticipantsParams
|
40
48
|
|
49
|
+
MeRetrieveParams = EInvoiceAPI::Models::MeRetrieveParams
|
50
|
+
|
41
51
|
OutboxListDraftDocumentsParams =
|
42
52
|
EInvoiceAPI::Models::OutboxListDraftDocumentsParams
|
43
53
|
|
@@ -4,6 +4,16 @@ module EInvoiceAPI
|
|
4
4
|
module Resources
|
5
5
|
class Documents
|
6
6
|
class Ubl
|
7
|
+
# Create a new invoice or credit note from a UBL file
|
8
|
+
sig do
|
9
|
+
params(
|
10
|
+
file: EInvoiceAPI::Internal::FileInput,
|
11
|
+
request_options: EInvoiceAPI::RequestOptions::OrHash
|
12
|
+
).returns(EInvoiceAPI::DocumentResponse)
|
13
|
+
end
|
14
|
+
def create_from_ubl(file:, request_options: {})
|
15
|
+
end
|
16
|
+
|
7
17
|
# Get the UBL for an invoice or credit note
|
8
18
|
sig do
|
9
19
|
params(
|
@@ -162,6 +162,30 @@ module EInvoiceAPI
|
|
162
162
|
def delete(document_id, request_options: {})
|
163
163
|
end
|
164
164
|
|
165
|
+
# Create a new invoice or credit note from a PDF file. If the 'ubl_document' field
|
166
|
+
# is set in the response, it indicates that sufficient details were extracted from
|
167
|
+
# the PDF to automatically generate a valid UBL document ready for sending. If
|
168
|
+
# 'ubl_document' is not set, human intervention may be required to ensure
|
169
|
+
# compliance.
|
170
|
+
sig do
|
171
|
+
params(
|
172
|
+
file: EInvoiceAPI::Internal::FileInput,
|
173
|
+
customer_tax_id: T.nilable(String),
|
174
|
+
vendor_tax_id: T.nilable(String),
|
175
|
+
request_options: EInvoiceAPI::RequestOptions::OrHash
|
176
|
+
).returns(EInvoiceAPI::Models::DocumentCreateFromPdfResponse)
|
177
|
+
end
|
178
|
+
def create_from_pdf(
|
179
|
+
# Body param:
|
180
|
+
file:,
|
181
|
+
# Query param:
|
182
|
+
customer_tax_id: nil,
|
183
|
+
# Query param:
|
184
|
+
vendor_tax_id: nil,
|
185
|
+
request_options: {}
|
186
|
+
)
|
187
|
+
end
|
188
|
+
|
165
189
|
# Send an invoice or credit note via Peppol
|
166
190
|
sig do
|
167
191
|
params(
|
@@ -185,6 +209,16 @@ module EInvoiceAPI
|
|
185
209
|
)
|
186
210
|
end
|
187
211
|
|
212
|
+
# Validate a UBL document according to Peppol BIS Billing 3.0
|
213
|
+
sig do
|
214
|
+
params(
|
215
|
+
document_id: String,
|
216
|
+
request_options: EInvoiceAPI::RequestOptions::OrHash
|
217
|
+
).returns(EInvoiceAPI::UblDocumentValidation)
|
218
|
+
end
|
219
|
+
def validate(document_id, request_options: {})
|
220
|
+
end
|
221
|
+
|
188
222
|
# @api private
|
189
223
|
sig { params(client: EInvoiceAPI::Client).returns(T.attached_class) }
|
190
224
|
def self.new(client:)
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module EInvoiceAPI
|
4
|
+
module Resources
|
5
|
+
class Me
|
6
|
+
# Retrieve information about your account.
|
7
|
+
sig do
|
8
|
+
params(request_options: EInvoiceAPI::RequestOptions::OrHash).returns(
|
9
|
+
EInvoiceAPI::Models::MeRetrieveResponse
|
10
|
+
)
|
11
|
+
end
|
12
|
+
def retrieve(request_options: {})
|
13
|
+
end
|
14
|
+
|
15
|
+
# @api private
|
16
|
+
sig { params(client: EInvoiceAPI::Client).returns(T.attached_class) }
|
17
|
+
def self.new(client:)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
module EInvoiceAPI
|
2
|
+
module Models
|
3
|
+
type allowance =
|
4
|
+
{
|
5
|
+
amount: String?,
|
6
|
+
base_amount: String?,
|
7
|
+
multiplier_factor: String?,
|
8
|
+
reason: String?,
|
9
|
+
reason_code: String?,
|
10
|
+
tax_code: EInvoiceAPI::Models::Allowance::tax_code?,
|
11
|
+
tax_rate: String?
|
12
|
+
}
|
13
|
+
|
14
|
+
class Allowance < EInvoiceAPI::Internal::Type::BaseModel
|
15
|
+
attr_accessor amount: String?
|
16
|
+
|
17
|
+
attr_accessor base_amount: String?
|
18
|
+
|
19
|
+
attr_accessor multiplier_factor: String?
|
20
|
+
|
21
|
+
attr_accessor reason: String?
|
22
|
+
|
23
|
+
attr_accessor reason_code: String?
|
24
|
+
|
25
|
+
attr_accessor tax_code: EInvoiceAPI::Models::Allowance::tax_code?
|
26
|
+
|
27
|
+
attr_accessor tax_rate: String?
|
28
|
+
|
29
|
+
def initialize: (
|
30
|
+
?amount: String?,
|
31
|
+
?base_amount: String?,
|
32
|
+
?multiplier_factor: String?,
|
33
|
+
?reason: String?,
|
34
|
+
?reason_code: String?,
|
35
|
+
?tax_code: EInvoiceAPI::Models::Allowance::tax_code?,
|
36
|
+
?tax_rate: String?
|
37
|
+
) -> void
|
38
|
+
|
39
|
+
def to_hash: -> {
|
40
|
+
amount: String?,
|
41
|
+
base_amount: String?,
|
42
|
+
multiplier_factor: String?,
|
43
|
+
reason: String?,
|
44
|
+
reason_code: String?,
|
45
|
+
tax_code: EInvoiceAPI::Models::Allowance::tax_code?,
|
46
|
+
tax_rate: String?
|
47
|
+
}
|
48
|
+
|
49
|
+
type tax_code = :AE | :E | :S | :Z | :G | :O | :K | :L | :M | :B
|
50
|
+
|
51
|
+
module TaxCode
|
52
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
53
|
+
|
54
|
+
AE: :AE
|
55
|
+
E: :E
|
56
|
+
S: :S
|
57
|
+
Z: :Z
|
58
|
+
G: :G
|
59
|
+
O: :O
|
60
|
+
K: :K
|
61
|
+
L: :L
|
62
|
+
M: :M
|
63
|
+
B: :B
|
64
|
+
|
65
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::Allowance::tax_code]
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
module EInvoiceAPI
|
2
|
+
module Models
|
3
|
+
type charge =
|
4
|
+
{
|
5
|
+
amount: String?,
|
6
|
+
base_amount: String?,
|
7
|
+
multiplier_factor: String?,
|
8
|
+
reason: String?,
|
9
|
+
reason_code: String?,
|
10
|
+
tax_code: EInvoiceAPI::Models::Charge::tax_code?,
|
11
|
+
tax_rate: String?
|
12
|
+
}
|
13
|
+
|
14
|
+
class Charge < EInvoiceAPI::Internal::Type::BaseModel
|
15
|
+
attr_accessor amount: String?
|
16
|
+
|
17
|
+
attr_accessor base_amount: String?
|
18
|
+
|
19
|
+
attr_accessor multiplier_factor: String?
|
20
|
+
|
21
|
+
attr_accessor reason: String?
|
22
|
+
|
23
|
+
attr_accessor reason_code: String?
|
24
|
+
|
25
|
+
attr_accessor tax_code: EInvoiceAPI::Models::Charge::tax_code?
|
26
|
+
|
27
|
+
attr_accessor tax_rate: String?
|
28
|
+
|
29
|
+
def initialize: (
|
30
|
+
?amount: String?,
|
31
|
+
?base_amount: String?,
|
32
|
+
?multiplier_factor: String?,
|
33
|
+
?reason: String?,
|
34
|
+
?reason_code: String?,
|
35
|
+
?tax_code: EInvoiceAPI::Models::Charge::tax_code?,
|
36
|
+
?tax_rate: String?
|
37
|
+
) -> void
|
38
|
+
|
39
|
+
def to_hash: -> {
|
40
|
+
amount: String?,
|
41
|
+
base_amount: String?,
|
42
|
+
multiplier_factor: String?,
|
43
|
+
reason: String?,
|
44
|
+
reason_code: String?,
|
45
|
+
tax_code: EInvoiceAPI::Models::Charge::tax_code?,
|
46
|
+
tax_rate: String?
|
47
|
+
}
|
48
|
+
|
49
|
+
type tax_code = :AE | :E | :S | :Z | :G | :O | :K | :L | :M | :B
|
50
|
+
|
51
|
+
module TaxCode
|
52
|
+
extend EInvoiceAPI::Internal::Type::Enum
|
53
|
+
|
54
|
+
AE: :AE
|
55
|
+
E: :E
|
56
|
+
S: :S
|
57
|
+
Z: :Z
|
58
|
+
G: :G
|
59
|
+
O: :O
|
60
|
+
K: :K
|
61
|
+
L: :L
|
62
|
+
M: :M
|
63
|
+
B: :B
|
64
|
+
|
65
|
+
def self?.values: -> ::Array[EInvoiceAPI::Models::Charge::tax_code]
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module EInvoiceAPI
|
2
|
+
module Models
|
3
|
+
type document_create_from_pdf_params =
|
4
|
+
{
|
5
|
+
file: EInvoiceAPI::Internal::file_input,
|
6
|
+
customer_tax_id: String?,
|
7
|
+
vendor_tax_id: String?
|
8
|
+
}
|
9
|
+
& EInvoiceAPI::Internal::Type::request_parameters
|
10
|
+
|
11
|
+
class DocumentCreateFromPdfParams < EInvoiceAPI::Internal::Type::BaseModel
|
12
|
+
extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
|
13
|
+
include EInvoiceAPI::Internal::Type::RequestParameters
|
14
|
+
|
15
|
+
attr_accessor file: EInvoiceAPI::Internal::file_input
|
16
|
+
|
17
|
+
attr_accessor customer_tax_id: String?
|
18
|
+
|
19
|
+
attr_accessor vendor_tax_id: String?
|
20
|
+
|
21
|
+
def initialize: (
|
22
|
+
file: EInvoiceAPI::Internal::file_input,
|
23
|
+
?customer_tax_id: String?,
|
24
|
+
?vendor_tax_id: String?,
|
25
|
+
?request_options: EInvoiceAPI::request_opts
|
26
|
+
) -> void
|
27
|
+
|
28
|
+
def to_hash: -> {
|
29
|
+
file: EInvoiceAPI::Internal::file_input,
|
30
|
+
customer_tax_id: String?,
|
31
|
+
vendor_tax_id: String?,
|
32
|
+
request_options: EInvoiceAPI::RequestOptions
|
33
|
+
}
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|