e-invoice-api 0.33.0 → 0.35.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 +31 -0
- data/LICENSE +201 -0
- data/README.md +18 -7
- data/SECURITY.md +6 -16
- data/lib/e_invoice_api/client.rb +16 -0
- data/lib/e_invoice_api/internal/transport/base_client.rb +43 -78
- data/lib/e_invoice_api/internal/transport/pooled_net_requester.rb +8 -8
- data/lib/e_invoice_api/internal/type/array_of.rb +12 -12
- data/lib/e_invoice_api/internal/type/base_model.rb +18 -18
- data/lib/e_invoice_api/internal/type/boolean.rb +6 -6
- data/lib/e_invoice_api/internal/type/converter.rb +24 -24
- data/lib/e_invoice_api/internal/type/enum.rb +6 -6
- data/lib/e_invoice_api/internal/type/file_input.rb +6 -6
- data/lib/e_invoice_api/internal/type/hash_of.rb +12 -12
- data/lib/e_invoice_api/internal/type/request_parameters.rb +1 -1
- data/lib/e_invoice_api/internal/type/union.rb +10 -10
- data/lib/e_invoice_api/internal/type/unknown.rb +6 -6
- data/lib/e_invoice_api/internal/util.rb +15 -57
- 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 +203 -17
- data/lib/e_invoice_api/models/document_create_from_pdf_response.rb +153 -17
- 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 +161 -21
- 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 +8 -4
- 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/unit_of_measure_code.rb +1349 -0
- 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/attachments.rb +11 -11
- data/lib/e_invoice_api/resources/documents/ubl.rb +4 -4
- data/lib/e_invoice_api/resources/documents.rb +130 -69
- data/lib/e_invoice_api/resources/drafts.rb +55 -0
- data/lib/e_invoice_api/resources/inbox.rb +20 -20
- data/lib/e_invoice_api/resources/lookup.rb +5 -5
- data/lib/e_invoice_api/resources/mailbox.rb +123 -0
- data/lib/e_invoice_api/resources/me.rb +1 -1
- data/lib/e_invoice_api/resources/outbox.rb +19 -19
- data/lib/e_invoice_api/resources/stats.rb +47 -0
- data/lib/e_invoice_api/resources/validate.rb +76 -56
- data/lib/e_invoice_api/resources/webhooks.rb +59 -14
- data/lib/e_invoice_api/version.rb +1 -1
- data/lib/e_invoice_api.rb +25 -1
- data/rbi/e_invoice_api/client.rbi +12 -0
- data/rbi/e_invoice_api/internal/transport/base_client.rbi +2 -10
- data/rbi/e_invoice_api/internal/util.rbi +0 -12
- 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 +366 -15
- data/rbi/e_invoice_api/models/document_create_from_pdf_response.rbi +280 -15
- 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 +292 -19
- 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 +12 -4
- 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/unit_of_measure_code.rbi +1349 -0
- 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 +77 -5
- 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 +52 -6
- data/rbi/e_invoice_api/resources/webhooks.rbi +29 -0
- data/sig/e_invoice_api/client.rbs +8 -0
- data/sig/e_invoice_api/internal/transport/base_client.rbs +1 -4
- data/sig/e_invoice_api/internal/util.rbs +0 -4
- 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 +139 -4
- data/sig/e_invoice_api/models/document_create_from_pdf_response.rbs +113 -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 +113 -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/unit_of_measure_code.rbs +2698 -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 +102 -7
|
@@ -31,6 +31,11 @@ module EInvoiceAPI
|
|
|
31
31
|
sig { returns(T.nilable(String)) }
|
|
32
32
|
attr_accessor :billing_address_recipient
|
|
33
33
|
|
|
34
|
+
# The buyer reference (BT-10), e.g. a cost centre or accounting reference
|
|
35
|
+
# requested by the buyer
|
|
36
|
+
sig { returns(T.nilable(String)) }
|
|
37
|
+
attr_accessor :buyer_reference
|
|
38
|
+
|
|
34
39
|
sig { returns(T.nilable(T::Array[EInvoiceAPI::Charge])) }
|
|
35
40
|
attr_accessor :charges
|
|
36
41
|
|
|
@@ -45,7 +50,8 @@ module EInvoiceAPI
|
|
|
45
50
|
sig { returns(T.nilable(String)) }
|
|
46
51
|
attr_accessor :customer_address
|
|
47
52
|
|
|
48
|
-
# The recipient name at the customer address
|
|
53
|
+
# The recipient name at the customer address. Also the customer contact name
|
|
54
|
+
# (BT-56) in the UBL.
|
|
49
55
|
sig { returns(T.nilable(String)) }
|
|
50
56
|
attr_accessor :customer_address_recipient
|
|
51
57
|
|
|
@@ -70,6 +76,10 @@ module EInvoiceAPI
|
|
|
70
76
|
sig { returns(T.nilable(String)) }
|
|
71
77
|
attr_accessor :customer_peppol_id
|
|
72
78
|
|
|
79
|
+
# The telephone number of the customer contact (BT-57)
|
|
80
|
+
sig { returns(T.nilable(String)) }
|
|
81
|
+
attr_accessor :customer_phone
|
|
82
|
+
|
|
73
83
|
# Customer tax ID. For Belgium this is the VAT number. Must include the country
|
|
74
84
|
# prefix
|
|
75
85
|
sig { returns(T.nilable(String)) }
|
|
@@ -145,7 +155,16 @@ module EInvoiceAPI
|
|
|
145
155
|
sig { returns(T.nilable(String)) }
|
|
146
156
|
attr_accessor :payment_term
|
|
147
157
|
|
|
148
|
-
# The
|
|
158
|
+
# The preceding invoice issue date (BT-26)
|
|
159
|
+
sig { returns(T.nilable(Date)) }
|
|
160
|
+
attr_accessor :preceding_invoice_date
|
|
161
|
+
|
|
162
|
+
# The preceding invoice reference (BT-25): the number of the invoice this document
|
|
163
|
+
# corrects, for example the invoice a credit note credits
|
|
164
|
+
sig { returns(T.nilable(String)) }
|
|
165
|
+
attr_accessor :preceding_invoice_id
|
|
166
|
+
|
|
167
|
+
# The purchase order reference number (BT-13)
|
|
149
168
|
sig { returns(T.nilable(String)) }
|
|
150
169
|
attr_accessor :purchase_order
|
|
151
170
|
|
|
@@ -157,6 +176,17 @@ module EInvoiceAPI
|
|
|
157
176
|
sig { returns(T.nilable(String)) }
|
|
158
177
|
attr_accessor :remittance_address_recipient
|
|
159
178
|
|
|
179
|
+
# The amount added to the invoice total to round the amount for payment (BT-114),
|
|
180
|
+
# for example to whole kronor (amount_due = invoice_total + rounding_amount when
|
|
181
|
+
# nothing is prepaid). Can be negative. Between -5.00 and 5.00, rounded to maximum
|
|
182
|
+
# 2 decimals
|
|
183
|
+
sig { returns(T.nilable(String)) }
|
|
184
|
+
attr_accessor :rounding_amount
|
|
185
|
+
|
|
186
|
+
# The sales order reference (BT-14) assigned by the seller
|
|
187
|
+
sig { returns(T.nilable(String)) }
|
|
188
|
+
attr_accessor :sales_order
|
|
189
|
+
|
|
160
190
|
# The address where services were performed or goods were delivered
|
|
161
191
|
sig { returns(T.nilable(String)) }
|
|
162
192
|
attr_accessor :service_address
|
|
@@ -177,7 +207,7 @@ module EInvoiceAPI
|
|
|
177
207
|
sig { returns(T.nilable(String)) }
|
|
178
208
|
attr_accessor :shipping_address
|
|
179
209
|
|
|
180
|
-
# The
|
|
210
|
+
# The name of the deliver-to party (BT-70)
|
|
181
211
|
sig { returns(T.nilable(String)) }
|
|
182
212
|
attr_accessor :shipping_address_recipient
|
|
183
213
|
|
|
@@ -220,6 +250,12 @@ module EInvoiceAPI
|
|
|
220
250
|
end
|
|
221
251
|
attr_writer :tax_code
|
|
222
252
|
|
|
253
|
+
# The VAT accounting currency (BT-6, ISO 4217 currency code), when VAT is
|
|
254
|
+
# accounted in a currency other than the invoice currency. Must differ from
|
|
255
|
+
# currency and requires total_tax_in_tax_currency
|
|
256
|
+
sig { returns(T.nilable(String)) }
|
|
257
|
+
attr_accessor :tax_currency
|
|
258
|
+
|
|
223
259
|
sig do
|
|
224
260
|
returns(
|
|
225
261
|
T.nilable(
|
|
@@ -242,6 +278,11 @@ module EInvoiceAPI
|
|
|
242
278
|
sig { returns(T.nilable(String)) }
|
|
243
279
|
attr_accessor :total_tax
|
|
244
280
|
|
|
281
|
+
# The total VAT amount in the VAT accounting currency tax_currency (BT-111). Does
|
|
282
|
+
# not add to invoice_total. Requires tax_currency. Rounded to maximum 2 decimals
|
|
283
|
+
sig { returns(T.nilable(String)) }
|
|
284
|
+
attr_accessor :total_tax_in_tax_currency
|
|
285
|
+
|
|
245
286
|
# The UBL document as an XML string
|
|
246
287
|
sig { returns(T.nilable(String)) }
|
|
247
288
|
attr_accessor :ubl_document
|
|
@@ -258,7 +299,8 @@ module EInvoiceAPI
|
|
|
258
299
|
end
|
|
259
300
|
attr_accessor :vatex
|
|
260
301
|
|
|
261
|
-
#
|
|
302
|
+
# VAT exemption reason text (BT-120). An exemption reason (vatex or vatex_note) is
|
|
303
|
+
# required for tax_code E, AE, K, G and O, and not allowed for S, Z, L and M
|
|
262
304
|
sig { returns(T.nilable(String)) }
|
|
263
305
|
attr_accessor :vatex_note
|
|
264
306
|
|
|
@@ -266,7 +308,8 @@ module EInvoiceAPI
|
|
|
266
308
|
sig { returns(T.nilable(String)) }
|
|
267
309
|
attr_accessor :vendor_address
|
|
268
310
|
|
|
269
|
-
# The recipient name at the vendor address
|
|
311
|
+
# The recipient name at the vendor address. Also the vendor contact name (BT-41)
|
|
312
|
+
# in the UBL, required when vendor and customer are both in Germany (DE-R-005).
|
|
270
313
|
sig { returns(T.nilable(String)) }
|
|
271
314
|
attr_accessor :vendor_address_recipient
|
|
272
315
|
|
|
@@ -283,6 +326,12 @@ module EInvoiceAPI
|
|
|
283
326
|
sig { returns(T.nilable(String)) }
|
|
284
327
|
attr_accessor :vendor_name
|
|
285
328
|
|
|
329
|
+
# The telephone number of the vendor contact (BT-42). Required when vendor and
|
|
330
|
+
# customer are both in Germany (DE-R-006); it must then hold at least 3 digits
|
|
331
|
+
# (DE-R-027, a warning).
|
|
332
|
+
sig { returns(T.nilable(String)) }
|
|
333
|
+
attr_accessor :vendor_phone
|
|
334
|
+
|
|
286
335
|
# Vendor tax ID. For Belgium this is the VAT number. Must include the country
|
|
287
336
|
# prefix
|
|
288
337
|
sig { returns(T.nilable(String)) }
|
|
@@ -296,6 +345,7 @@ module EInvoiceAPI
|
|
|
296
345
|
T.nilable(T::Array[EInvoiceAPI::DocumentAttachmentCreate::OrHash]),
|
|
297
346
|
billing_address: T.nilable(String),
|
|
298
347
|
billing_address_recipient: T.nilable(String),
|
|
348
|
+
buyer_reference: T.nilable(String),
|
|
299
349
|
charges: T.nilable(T::Array[EInvoiceAPI::Charge::OrHash]),
|
|
300
350
|
currency: EInvoiceAPI::CurrencyCode::OrSymbol,
|
|
301
351
|
customer_address: T.nilable(String),
|
|
@@ -305,6 +355,7 @@ module EInvoiceAPI
|
|
|
305
355
|
customer_id: T.nilable(String),
|
|
306
356
|
customer_name: T.nilable(String),
|
|
307
357
|
customer_peppol_id: T.nilable(String),
|
|
358
|
+
customer_phone: T.nilable(String),
|
|
308
359
|
customer_tax_id: T.nilable(String),
|
|
309
360
|
direction: EInvoiceAPI::DocumentDirection::OrSymbol,
|
|
310
361
|
document_type: EInvoiceAPI::DocumentType::OrSymbol,
|
|
@@ -322,9 +373,13 @@ module EInvoiceAPI
|
|
|
322
373
|
payment_details:
|
|
323
374
|
T.nilable(T::Array[EInvoiceAPI::PaymentDetailCreate::OrHash]),
|
|
324
375
|
payment_term: T.nilable(String),
|
|
376
|
+
preceding_invoice_date: T.nilable(Date),
|
|
377
|
+
preceding_invoice_id: T.nilable(String),
|
|
325
378
|
purchase_order: T.nilable(String),
|
|
326
379
|
remittance_address: T.nilable(String),
|
|
327
380
|
remittance_address_recipient: T.nilable(String),
|
|
381
|
+
rounding_amount: T.nilable(String),
|
|
382
|
+
sales_order: T.nilable(String),
|
|
328
383
|
service_address: T.nilable(String),
|
|
329
384
|
service_address_recipient: T.nilable(String),
|
|
330
385
|
service_end_date: T.nilable(Date),
|
|
@@ -336,6 +391,7 @@ module EInvoiceAPI
|
|
|
336
391
|
success: T::Boolean,
|
|
337
392
|
tax_code:
|
|
338
393
|
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::TaxCode::OrSymbol,
|
|
394
|
+
tax_currency: T.nilable(String),
|
|
339
395
|
tax_details:
|
|
340
396
|
T.nilable(
|
|
341
397
|
T::Array[
|
|
@@ -344,6 +400,7 @@ module EInvoiceAPI
|
|
|
344
400
|
),
|
|
345
401
|
total_discount: T.nilable(String),
|
|
346
402
|
total_tax: T.nilable(String),
|
|
403
|
+
total_tax_in_tax_currency: T.nilable(String),
|
|
347
404
|
ubl_document: T.nilable(String),
|
|
348
405
|
vatex:
|
|
349
406
|
T.nilable(
|
|
@@ -355,6 +412,7 @@ module EInvoiceAPI
|
|
|
355
412
|
vendor_company_id: T.nilable(String),
|
|
356
413
|
vendor_email: T.nilable(String),
|
|
357
414
|
vendor_name: T.nilable(String),
|
|
415
|
+
vendor_phone: T.nilable(String),
|
|
358
416
|
vendor_tax_id: T.nilable(String)
|
|
359
417
|
).returns(T.attached_class)
|
|
360
418
|
end
|
|
@@ -367,12 +425,16 @@ module EInvoiceAPI
|
|
|
367
425
|
billing_address: nil,
|
|
368
426
|
# The recipient name at the billing address
|
|
369
427
|
billing_address_recipient: nil,
|
|
428
|
+
# The buyer reference (BT-10), e.g. a cost centre or accounting reference
|
|
429
|
+
# requested by the buyer
|
|
430
|
+
buyer_reference: nil,
|
|
370
431
|
charges: nil,
|
|
371
432
|
# Currency of the invoice (ISO 4217 currency code)
|
|
372
433
|
currency: nil,
|
|
373
434
|
# The address of the customer/buyer
|
|
374
435
|
customer_address: nil,
|
|
375
|
-
# The recipient name at the customer address
|
|
436
|
+
# The recipient name at the customer address. Also the customer contact name
|
|
437
|
+
# (BT-56) in the UBL.
|
|
376
438
|
customer_address_recipient: nil,
|
|
377
439
|
# Customer company ID. For Belgium this is the CBE number or their EUID (European
|
|
378
440
|
# Unique Identifier) number. In the Netherlands this is the KVK number.
|
|
@@ -385,6 +447,8 @@ module EInvoiceAPI
|
|
|
385
447
|
customer_name: nil,
|
|
386
448
|
# Customer Peppol ID
|
|
387
449
|
customer_peppol_id: nil,
|
|
450
|
+
# The telephone number of the customer contact (BT-57)
|
|
451
|
+
customer_phone: nil,
|
|
388
452
|
# Customer tax ID. For Belgium this is the VAT number. Must include the country
|
|
389
453
|
# prefix
|
|
390
454
|
customer_tax_id: nil,
|
|
@@ -412,12 +476,24 @@ module EInvoiceAPI
|
|
|
412
476
|
payment_details: nil,
|
|
413
477
|
# The payment terms (e.g., 'Net 30', 'Due on receipt', '2/10 Net 30')
|
|
414
478
|
payment_term: nil,
|
|
415
|
-
# The
|
|
479
|
+
# The preceding invoice issue date (BT-26)
|
|
480
|
+
preceding_invoice_date: nil,
|
|
481
|
+
# The preceding invoice reference (BT-25): the number of the invoice this document
|
|
482
|
+
# corrects, for example the invoice a credit note credits
|
|
483
|
+
preceding_invoice_id: nil,
|
|
484
|
+
# The purchase order reference number (BT-13)
|
|
416
485
|
purchase_order: nil,
|
|
417
486
|
# The address where payment should be sent or remitted to
|
|
418
487
|
remittance_address: nil,
|
|
419
488
|
# The recipient name at the remittance address
|
|
420
489
|
remittance_address_recipient: nil,
|
|
490
|
+
# The amount added to the invoice total to round the amount for payment (BT-114),
|
|
491
|
+
# for example to whole kronor (amount_due = invoice_total + rounding_amount when
|
|
492
|
+
# nothing is prepaid). Can be negative. Between -5.00 and 5.00, rounded to maximum
|
|
493
|
+
# 2 decimals
|
|
494
|
+
rounding_amount: nil,
|
|
495
|
+
# The sales order reference (BT-14) assigned by the seller
|
|
496
|
+
sales_order: nil,
|
|
421
497
|
# The address where services were performed or goods were delivered
|
|
422
498
|
service_address: nil,
|
|
423
499
|
# The recipient name at the service address
|
|
@@ -428,7 +504,7 @@ module EInvoiceAPI
|
|
|
428
504
|
service_start_date: nil,
|
|
429
505
|
# The shipping/delivery address
|
|
430
506
|
shipping_address: nil,
|
|
431
|
-
# The
|
|
507
|
+
# The name of the deliver-to party (BT-70)
|
|
432
508
|
shipping_address_recipient: nil,
|
|
433
509
|
# The current state of the document: DRAFT, TRANSIT, FAILED, SENT, or RECEIVED
|
|
434
510
|
state: nil,
|
|
@@ -441,6 +517,10 @@ module EInvoiceAPI
|
|
|
441
517
|
# Tax category code of the invoice (e.g., S for standard rate, Z for zero rate, E
|
|
442
518
|
# for exempt)
|
|
443
519
|
tax_code: nil,
|
|
520
|
+
# The VAT accounting currency (BT-6, ISO 4217 currency code), when VAT is
|
|
521
|
+
# accounted in a currency other than the invoice currency. Must differ from
|
|
522
|
+
# currency and requires total_tax_in_tax_currency
|
|
523
|
+
tax_currency: nil,
|
|
444
524
|
tax_details: nil,
|
|
445
525
|
# The net financial discount/charge of the invoice (non-VAT charges minus non-VAT
|
|
446
526
|
# allowances). Can be positive (net charge), negative (net discount), or zero.
|
|
@@ -449,17 +529,22 @@ module EInvoiceAPI
|
|
|
449
529
|
# The total tax amount of the invoice. Must be positive and rounded to maximum 2
|
|
450
530
|
# decimals
|
|
451
531
|
total_tax: nil,
|
|
532
|
+
# The total VAT amount in the VAT accounting currency tax_currency (BT-111). Does
|
|
533
|
+
# not add to invoice_total. Requires tax_currency. Rounded to maximum 2 decimals
|
|
534
|
+
total_tax_in_tax_currency: nil,
|
|
452
535
|
# The UBL document as an XML string
|
|
453
536
|
ubl_document: nil,
|
|
454
537
|
# VATEX code list for VAT exemption reasons
|
|
455
538
|
#
|
|
456
539
|
# Agency: CEF Identifier: vatex
|
|
457
540
|
vatex: nil,
|
|
458
|
-
#
|
|
541
|
+
# VAT exemption reason text (BT-120). An exemption reason (vatex or vatex_note) is
|
|
542
|
+
# required for tax_code E, AE, K, G and O, and not allowed for S, Z, L and M
|
|
459
543
|
vatex_note: nil,
|
|
460
544
|
# The address of the vendor/seller
|
|
461
545
|
vendor_address: nil,
|
|
462
|
-
# The recipient name at the vendor address
|
|
546
|
+
# The recipient name at the vendor address. Also the vendor contact name (BT-41)
|
|
547
|
+
# in the UBL, required when vendor and customer are both in Germany (DE-R-005).
|
|
463
548
|
vendor_address_recipient: nil,
|
|
464
549
|
# Vendor company ID. For Belgium this is the CBE number or their EUID (European
|
|
465
550
|
# Unique Identifier) number. In the Netherlands this is the KVK number.
|
|
@@ -468,6 +553,10 @@ module EInvoiceAPI
|
|
|
468
553
|
vendor_email: nil,
|
|
469
554
|
# The name of the vendor/seller/supplier
|
|
470
555
|
vendor_name: nil,
|
|
556
|
+
# The telephone number of the vendor contact (BT-42). Required when vendor and
|
|
557
|
+
# customer are both in Germany (DE-R-006); it must then hold at least 3 digits
|
|
558
|
+
# (DE-R-027, a warning).
|
|
559
|
+
vendor_phone: nil,
|
|
471
560
|
# Vendor tax ID. For Belgium this is the VAT number. Must include the country
|
|
472
561
|
# prefix
|
|
473
562
|
vendor_tax_id: nil
|
|
@@ -483,6 +572,7 @@ module EInvoiceAPI
|
|
|
483
572
|
T.nilable(T::Array[EInvoiceAPI::DocumentAttachmentCreate]),
|
|
484
573
|
billing_address: T.nilable(String),
|
|
485
574
|
billing_address_recipient: T.nilable(String),
|
|
575
|
+
buyer_reference: T.nilable(String),
|
|
486
576
|
charges: T.nilable(T::Array[EInvoiceAPI::Charge]),
|
|
487
577
|
currency: EInvoiceAPI::CurrencyCode::TaggedSymbol,
|
|
488
578
|
customer_address: T.nilable(String),
|
|
@@ -492,6 +582,7 @@ module EInvoiceAPI
|
|
|
492
582
|
customer_id: T.nilable(String),
|
|
493
583
|
customer_name: T.nilable(String),
|
|
494
584
|
customer_peppol_id: T.nilable(String),
|
|
585
|
+
customer_phone: T.nilable(String),
|
|
495
586
|
customer_tax_id: T.nilable(String),
|
|
496
587
|
direction: EInvoiceAPI::DocumentDirection::TaggedSymbol,
|
|
497
588
|
document_type: EInvoiceAPI::DocumentType::TaggedSymbol,
|
|
@@ -509,9 +600,13 @@ module EInvoiceAPI
|
|
|
509
600
|
payment_details:
|
|
510
601
|
T.nilable(T::Array[EInvoiceAPI::PaymentDetailCreate]),
|
|
511
602
|
payment_term: T.nilable(String),
|
|
603
|
+
preceding_invoice_date: T.nilable(Date),
|
|
604
|
+
preceding_invoice_id: T.nilable(String),
|
|
512
605
|
purchase_order: T.nilable(String),
|
|
513
606
|
remittance_address: T.nilable(String),
|
|
514
607
|
remittance_address_recipient: T.nilable(String),
|
|
608
|
+
rounding_amount: T.nilable(String),
|
|
609
|
+
sales_order: T.nilable(String),
|
|
515
610
|
service_address: T.nilable(String),
|
|
516
611
|
service_address_recipient: T.nilable(String),
|
|
517
612
|
service_end_date: T.nilable(Date),
|
|
@@ -523,6 +618,7 @@ module EInvoiceAPI
|
|
|
523
618
|
success: T::Boolean,
|
|
524
619
|
tax_code:
|
|
525
620
|
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::TaxCode::TaggedSymbol,
|
|
621
|
+
tax_currency: T.nilable(String),
|
|
526
622
|
tax_details:
|
|
527
623
|
T.nilable(
|
|
528
624
|
T::Array[
|
|
@@ -531,6 +627,7 @@ module EInvoiceAPI
|
|
|
531
627
|
),
|
|
532
628
|
total_discount: T.nilable(String),
|
|
533
629
|
total_tax: T.nilable(String),
|
|
630
|
+
total_tax_in_tax_currency: T.nilable(String),
|
|
534
631
|
ubl_document: T.nilable(String),
|
|
535
632
|
vatex:
|
|
536
633
|
T.nilable(
|
|
@@ -542,6 +639,7 @@ module EInvoiceAPI
|
|
|
542
639
|
vendor_company_id: T.nilable(String),
|
|
543
640
|
vendor_email: T.nilable(String),
|
|
544
641
|
vendor_name: T.nilable(String),
|
|
642
|
+
vendor_phone: T.nilable(String),
|
|
545
643
|
vendor_tax_id: T.nilable(String)
|
|
546
644
|
}
|
|
547
645
|
)
|
|
@@ -573,10 +671,14 @@ module EInvoiceAPI
|
|
|
573
671
|
sig { returns(T.nilable(T::Array[EInvoiceAPI::Charge])) }
|
|
574
672
|
attr_accessor :charges
|
|
575
673
|
|
|
576
|
-
sig { returns(
|
|
674
|
+
sig { returns(T.nilable(Date)) }
|
|
577
675
|
attr_accessor :date
|
|
578
676
|
|
|
579
|
-
# The description of the line item.
|
|
677
|
+
# The description of the line item (BT-154). Doubles as the item name when `name`
|
|
678
|
+
# is omitted, so a posted line item needs a `name` or a `description`. On a
|
|
679
|
+
# received document it holds the item description, or the item name (BT-153) when
|
|
680
|
+
# the document has no item description; CII documents with both combine them as
|
|
681
|
+
# `name: description`.
|
|
580
682
|
sig { returns(T.nilable(String)) }
|
|
581
683
|
attr_accessor :description
|
|
582
684
|
|
|
@@ -592,6 +694,22 @@ module EInvoiceAPI
|
|
|
592
694
|
end
|
|
593
695
|
attr_accessor :item_attributes
|
|
594
696
|
|
|
697
|
+
# The item name (BT-153), for example the product name. Written to
|
|
698
|
+
# cac:Item/cbc:Name. When omitted or blank, `description` (BT-154) is used as the
|
|
699
|
+
# item name. A posted line item needs a `name` or a `description`; a line item
|
|
700
|
+
# with neither is rejected with 422.
|
|
701
|
+
sig { returns(T.nilable(String)) }
|
|
702
|
+
attr_accessor :name
|
|
703
|
+
|
|
704
|
+
# The item price base quantity (BT-149). The number of item units to which the
|
|
705
|
+
# unit price applies, for example 100 when the unit price is a price for each 100
|
|
706
|
+
# units. Must be greater than 0. Defaults to 1.
|
|
707
|
+
sig { returns(T.nilable(String)) }
|
|
708
|
+
attr_reader :price_base_quantity
|
|
709
|
+
|
|
710
|
+
sig { params(price_base_quantity: String).void }
|
|
711
|
+
attr_writer :price_base_quantity
|
|
712
|
+
|
|
595
713
|
# The product code of the line item.
|
|
596
714
|
sig { returns(T.nilable(String)) }
|
|
597
715
|
attr_accessor :product_code
|
|
@@ -625,7 +743,7 @@ module EInvoiceAPI
|
|
|
625
743
|
allowances: T.nilable(T::Array[EInvoiceAPI::Allowance::OrHash]),
|
|
626
744
|
amount: T.nilable(String),
|
|
627
745
|
charges: T.nilable(T::Array[EInvoiceAPI::Charge::OrHash]),
|
|
628
|
-
date:
|
|
746
|
+
date: T.nilable(Date),
|
|
629
747
|
description: T.nilable(String),
|
|
630
748
|
item_attributes:
|
|
631
749
|
T.nilable(
|
|
@@ -633,6 +751,8 @@ module EInvoiceAPI
|
|
|
633
751
|
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item::ItemAttribute::OrHash
|
|
634
752
|
]
|
|
635
753
|
),
|
|
754
|
+
name: T.nilable(String),
|
|
755
|
+
price_base_quantity: String,
|
|
636
756
|
product_code: T.nilable(String),
|
|
637
757
|
quantity: T.nilable(String),
|
|
638
758
|
tax: T.nilable(String),
|
|
@@ -652,10 +772,23 @@ module EInvoiceAPI
|
|
|
652
772
|
# The charges of the line item.
|
|
653
773
|
charges: nil,
|
|
654
774
|
date: nil,
|
|
655
|
-
# The description of the line item.
|
|
775
|
+
# The description of the line item (BT-154). Doubles as the item name when `name`
|
|
776
|
+
# is omitted, so a posted line item needs a `name` or a `description`. On a
|
|
777
|
+
# received document it holds the item description, or the item name (BT-153) when
|
|
778
|
+
# the document has no item description; CII documents with both combine them as
|
|
779
|
+
# `name: description`.
|
|
656
780
|
description: nil,
|
|
657
781
|
# Item-level attributes (BG-32) from cac:AdditionalItemProperty.
|
|
658
782
|
item_attributes: nil,
|
|
783
|
+
# The item name (BT-153), for example the product name. Written to
|
|
784
|
+
# cac:Item/cbc:Name. When omitted or blank, `description` (BT-154) is used as the
|
|
785
|
+
# item name. A posted line item needs a `name` or a `description`; a line item
|
|
786
|
+
# with neither is rejected with 422.
|
|
787
|
+
name: nil,
|
|
788
|
+
# The item price base quantity (BT-149). The number of item units to which the
|
|
789
|
+
# unit price applies, for example 100 when the unit price is a price for each 100
|
|
790
|
+
# units. Must be greater than 0. Defaults to 1.
|
|
791
|
+
price_base_quantity: nil,
|
|
659
792
|
# The product code of the line item.
|
|
660
793
|
product_code: nil,
|
|
661
794
|
# The quantity of items (goods or services) that is the subject of the line item.
|
|
@@ -681,7 +814,7 @@ module EInvoiceAPI
|
|
|
681
814
|
allowances: T.nilable(T::Array[EInvoiceAPI::Allowance]),
|
|
682
815
|
amount: T.nilable(String),
|
|
683
816
|
charges: T.nilable(T::Array[EInvoiceAPI::Charge]),
|
|
684
|
-
date:
|
|
817
|
+
date: T.nilable(Date),
|
|
685
818
|
description: T.nilable(String),
|
|
686
819
|
item_attributes:
|
|
687
820
|
T.nilable(
|
|
@@ -689,6 +822,8 @@ module EInvoiceAPI
|
|
|
689
822
|
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item::ItemAttribute
|
|
690
823
|
]
|
|
691
824
|
),
|
|
825
|
+
name: T.nilable(String),
|
|
826
|
+
price_base_quantity: String,
|
|
692
827
|
product_code: T.nilable(String),
|
|
693
828
|
quantity: T.nilable(String),
|
|
694
829
|
tax: T.nilable(String),
|
|
@@ -964,6 +1099,11 @@ module EInvoiceAPI
|
|
|
964
1099
|
:"VATEX-EU-132-1Q",
|
|
965
1100
|
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
966
1101
|
)
|
|
1102
|
+
VATEX_EU_135_1 =
|
|
1103
|
+
T.let(
|
|
1104
|
+
:"VATEX-EU-135-1",
|
|
1105
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1106
|
+
)
|
|
967
1107
|
VATEX_EU_143 =
|
|
968
1108
|
T.let(
|
|
969
1109
|
:"VATEX-EU-143",
|
|
@@ -1119,6 +1259,11 @@ module EInvoiceAPI
|
|
|
1119
1259
|
:"VATEX-EU-151-1E",
|
|
1120
1260
|
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1121
1261
|
)
|
|
1262
|
+
VATEX_EU_153 =
|
|
1263
|
+
T.let(
|
|
1264
|
+
:"VATEX-EU-153",
|
|
1265
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1266
|
+
)
|
|
1122
1267
|
VATEX_EU_159 =
|
|
1123
1268
|
T.let(
|
|
1124
1269
|
:"VATEX-EU-159",
|
|
@@ -1169,6 +1314,126 @@ module EInvoiceAPI
|
|
|
1169
1314
|
:"VATEX-EU-J",
|
|
1170
1315
|
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1171
1316
|
)
|
|
1317
|
+
VATEX_FR_298_SEXDECIESA =
|
|
1318
|
+
T.let(
|
|
1319
|
+
:"VATEX-FR-298SEXDECIESA",
|
|
1320
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1321
|
+
)
|
|
1322
|
+
VATEX_FR_AE =
|
|
1323
|
+
T.let(
|
|
1324
|
+
:"VATEX-FR-AE",
|
|
1325
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1326
|
+
)
|
|
1327
|
+
VATEX_FR_CGI261_1 =
|
|
1328
|
+
T.let(
|
|
1329
|
+
:"VATEX-FR-CGI261-1",
|
|
1330
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1331
|
+
)
|
|
1332
|
+
VATEX_FR_CGI261_2 =
|
|
1333
|
+
T.let(
|
|
1334
|
+
:"VATEX-FR-CGI261-2",
|
|
1335
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1336
|
+
)
|
|
1337
|
+
VATEX_FR_CGI261_3 =
|
|
1338
|
+
T.let(
|
|
1339
|
+
:"VATEX-FR-CGI261-3",
|
|
1340
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1341
|
+
)
|
|
1342
|
+
VATEX_FR_CGI261_4 =
|
|
1343
|
+
T.let(
|
|
1344
|
+
:"VATEX-FR-CGI261-4",
|
|
1345
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1346
|
+
)
|
|
1347
|
+
VATEX_FR_CGI261_5 =
|
|
1348
|
+
T.let(
|
|
1349
|
+
:"VATEX-FR-CGI261-5",
|
|
1350
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1351
|
+
)
|
|
1352
|
+
VATEX_FR_CGI261_7 =
|
|
1353
|
+
T.let(
|
|
1354
|
+
:"VATEX-FR-CGI261-7",
|
|
1355
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1356
|
+
)
|
|
1357
|
+
VATEX_FR_CGI261_8 =
|
|
1358
|
+
T.let(
|
|
1359
|
+
:"VATEX-FR-CGI261-8",
|
|
1360
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1361
|
+
)
|
|
1362
|
+
VATEX_FR_CGI261A =
|
|
1363
|
+
T.let(
|
|
1364
|
+
:"VATEX-FR-CGI261A",
|
|
1365
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1366
|
+
)
|
|
1367
|
+
VATEX_FR_CGI261B =
|
|
1368
|
+
T.let(
|
|
1369
|
+
:"VATEX-FR-CGI261B",
|
|
1370
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1371
|
+
)
|
|
1372
|
+
VATEX_FR_CGI261C_1 =
|
|
1373
|
+
T.let(
|
|
1374
|
+
:"VATEX-FR-CGI261C-1",
|
|
1375
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1376
|
+
)
|
|
1377
|
+
VATEX_FR_CGI261C_2 =
|
|
1378
|
+
T.let(
|
|
1379
|
+
:"VATEX-FR-CGI261C-2",
|
|
1380
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1381
|
+
)
|
|
1382
|
+
VATEX_FR_CGI261C_3 =
|
|
1383
|
+
T.let(
|
|
1384
|
+
:"VATEX-FR-CGI261C-3",
|
|
1385
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1386
|
+
)
|
|
1387
|
+
VATEX_FR_CGI261D_1 =
|
|
1388
|
+
T.let(
|
|
1389
|
+
:"VATEX-FR-CGI261D-1",
|
|
1390
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1391
|
+
)
|
|
1392
|
+
VATEX_FR_CGI261D_1_BIS =
|
|
1393
|
+
T.let(
|
|
1394
|
+
:"VATEX-FR-CGI261D-1BIS",
|
|
1395
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1396
|
+
)
|
|
1397
|
+
VATEX_FR_CGI261D_2 =
|
|
1398
|
+
T.let(
|
|
1399
|
+
:"VATEX-FR-CGI261D-2",
|
|
1400
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1401
|
+
)
|
|
1402
|
+
VATEX_FR_CGI261D_3 =
|
|
1403
|
+
T.let(
|
|
1404
|
+
:"VATEX-FR-CGI261D-3",
|
|
1405
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1406
|
+
)
|
|
1407
|
+
VATEX_FR_CGI261D_4 =
|
|
1408
|
+
T.let(
|
|
1409
|
+
:"VATEX-FR-CGI261D-4",
|
|
1410
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1411
|
+
)
|
|
1412
|
+
VATEX_FR_CGI261E_1 =
|
|
1413
|
+
T.let(
|
|
1414
|
+
:"VATEX-FR-CGI261E-1",
|
|
1415
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1416
|
+
)
|
|
1417
|
+
VATEX_FR_CGI261E_2 =
|
|
1418
|
+
T.let(
|
|
1419
|
+
:"VATEX-FR-CGI261E-2",
|
|
1420
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1421
|
+
)
|
|
1422
|
+
VATEX_FR_CGI275 =
|
|
1423
|
+
T.let(
|
|
1424
|
+
:"VATEX-FR-CGI275",
|
|
1425
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1426
|
+
)
|
|
1427
|
+
VATEX_FR_CGI277A =
|
|
1428
|
+
T.let(
|
|
1429
|
+
:"VATEX-FR-CGI277A",
|
|
1430
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1431
|
+
)
|
|
1432
|
+
VATEX_FR_CGI295 =
|
|
1433
|
+
T.let(
|
|
1434
|
+
:"VATEX-FR-CGI295",
|
|
1435
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex::TaggedSymbol
|
|
1436
|
+
)
|
|
1172
1437
|
VATEX_FR_FRANCHISE =
|
|
1173
1438
|
T.let(
|
|
1174
1439
|
:"VATEX-FR-FRANCHISE",
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module EInvoiceAPI
|
|
4
|
+
module Models
|
|
5
|
+
class DocumentLifecycleParams < EInvoiceAPI::Internal::Type::BaseModel
|
|
6
|
+
extend EInvoiceAPI::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include EInvoiceAPI::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
EInvoiceAPI::DocumentLifecycleParams,
|
|
13
|
+
EInvoiceAPI::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :document_id
|
|
19
|
+
|
|
20
|
+
sig do
|
|
21
|
+
params(
|
|
22
|
+
document_id: String,
|
|
23
|
+
request_options: EInvoiceAPI::RequestOptions::OrHash
|
|
24
|
+
).returns(T.attached_class)
|
|
25
|
+
end
|
|
26
|
+
def self.new(document_id:, request_options: {})
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
override.returns(
|
|
31
|
+
{ document_id: String, request_options: EInvoiceAPI::RequestOptions }
|
|
32
|
+
)
|
|
33
|
+
end
|
|
34
|
+
def to_hash
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|