e-invoice-api 0.34.0 → 0.35.1
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/internal/documents_number_page.rb +11 -3
- 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/document_create.rb +45 -12
- data/lib/e_invoice_api/models/document_create_from_pdf_response.rb +45 -12
- data/lib/e_invoice_api/models/document_response.rb +49 -14
- data/lib/e_invoice_api/models/payment_detail_create.rb +4 -2
- data/lib/e_invoice_api/models/unit_of_measure_code.rb +1349 -0
- data/lib/e_invoice_api/resources/conversion/pdf.rb +6 -6
- 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 +81 -81
- data/lib/e_invoice_api/resources/drafts.rb +10 -10
- 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 +17 -17
- 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 +4 -4
- data/lib/e_invoice_api/resources/validate.rb +63 -63
- data/lib/e_invoice_api/resources/webhooks.rb +20 -20
- data/lib/e_invoice_api/version.rb +1 -1
- data/lib/e_invoice_api.rb +0 -1
- data/rbi/e_invoice_api/internal/documents_number_page.rbi +6 -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/document_create.rbi +156 -12
- data/rbi/e_invoice_api/models/document_create_from_pdf_response.rbi +156 -12
- data/rbi/e_invoice_api/models/document_response.rbi +162 -14
- data/rbi/e_invoice_api/models/payment_detail_create.rbi +6 -2
- data/rbi/e_invoice_api/models/unit_of_measure_code.rbi +1349 -0
- data/rbi/e_invoice_api/resources/documents.rbi +10 -5
- data/rbi/e_invoice_api/resources/validate.rbi +8 -5
- data/sig/e_invoice_api/internal/documents_number_page.rbs +4 -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/document_create.rbs +52 -0
- data/sig/e_invoice_api/models/document_create_from_pdf_response.rbs +52 -0
- data/sig/e_invoice_api/models/document_response.rbs +52 -0
- data/sig/e_invoice_api/models/unit_of_measure_code.rbs +2698 -0
- metadata +27 -7
|
@@ -62,7 +62,8 @@ module EInvoiceAPI
|
|
|
62
62
|
optional :customer_address, String, nil?: true
|
|
63
63
|
|
|
64
64
|
# @!attribute customer_address_recipient
|
|
65
|
-
# The recipient name at the customer address
|
|
65
|
+
# The recipient name at the customer address. Also the customer contact name
|
|
66
|
+
# (BT-56) in the UBL.
|
|
66
67
|
#
|
|
67
68
|
# @return [String, nil]
|
|
68
69
|
optional :customer_address_recipient, String, nil?: true
|
|
@@ -196,7 +197,7 @@ module EInvoiceAPI
|
|
|
196
197
|
nil?: true
|
|
197
198
|
|
|
198
199
|
# @!attribute purchase_order
|
|
199
|
-
# The purchase order reference number
|
|
200
|
+
# The purchase order reference number (BT-13)
|
|
200
201
|
#
|
|
201
202
|
# @return [String, nil]
|
|
202
203
|
optional :purchase_order, String, nil?: true
|
|
@@ -259,7 +260,7 @@ module EInvoiceAPI
|
|
|
259
260
|
optional :shipping_address, String, nil?: true
|
|
260
261
|
|
|
261
262
|
# @!attribute shipping_address_recipient
|
|
262
|
-
# The
|
|
263
|
+
# The name of the deliver-to party (BT-70)
|
|
263
264
|
#
|
|
264
265
|
# @return [String, nil]
|
|
265
266
|
optional :shipping_address_recipient, String, nil?: true
|
|
@@ -333,7 +334,8 @@ module EInvoiceAPI
|
|
|
333
334
|
optional :vatex, enum: -> { EInvoiceAPI::DocumentCreate::Vatex }, nil?: true
|
|
334
335
|
|
|
335
336
|
# @!attribute vatex_note
|
|
336
|
-
#
|
|
337
|
+
# VAT exemption reason text (BT-120). An exemption reason (vatex or vatex_note) is
|
|
338
|
+
# required for tax_code E, AE, K, G and O, and not allowed for S, Z, L and M
|
|
337
339
|
#
|
|
338
340
|
# @return [String, nil]
|
|
339
341
|
optional :vatex_note, String, nil?: true
|
|
@@ -345,7 +347,8 @@ module EInvoiceAPI
|
|
|
345
347
|
optional :vendor_address, String, nil?: true
|
|
346
348
|
|
|
347
349
|
# @!attribute vendor_address_recipient
|
|
348
|
-
# The recipient name at the vendor address
|
|
350
|
+
# The recipient name at the vendor address. Also the vendor contact name (BT-41)
|
|
351
|
+
# in the UBL, required when vendor and customer are both in Germany (DE-R-005).
|
|
349
352
|
#
|
|
350
353
|
# @return [String, nil]
|
|
351
354
|
optional :vendor_address_recipient, String, nil?: true
|
|
@@ -406,7 +409,7 @@ module EInvoiceAPI
|
|
|
406
409
|
#
|
|
407
410
|
# @param customer_address [String, nil] The address of the customer/buyer
|
|
408
411
|
#
|
|
409
|
-
# @param customer_address_recipient [String, nil] The recipient name at the customer address
|
|
412
|
+
# @param customer_address_recipient [String, nil] The recipient name at the customer address. Also the customer contact name (BT-5
|
|
410
413
|
#
|
|
411
414
|
# @param customer_company_id [String, nil] Customer company ID. For Belgium this is the CBE number or their EUID (European
|
|
412
415
|
#
|
|
@@ -448,7 +451,7 @@ module EInvoiceAPI
|
|
|
448
451
|
#
|
|
449
452
|
# @param previous_unpaid_balance [Float, String, nil] The previous unpaid balance from prior invoices, if any. Must be positive and ro
|
|
450
453
|
#
|
|
451
|
-
# @param purchase_order [String, nil] The purchase order reference number
|
|
454
|
+
# @param purchase_order [String, nil] The purchase order reference number (BT-13)
|
|
452
455
|
#
|
|
453
456
|
# @param remittance_address [String, nil] The address where payment should be sent or remitted to
|
|
454
457
|
#
|
|
@@ -468,7 +471,7 @@ module EInvoiceAPI
|
|
|
468
471
|
#
|
|
469
472
|
# @param shipping_address [String, nil] The shipping/delivery address
|
|
470
473
|
#
|
|
471
|
-
# @param shipping_address_recipient [String, nil] The
|
|
474
|
+
# @param shipping_address_recipient [String, nil] The name of the deliver-to party (BT-70)
|
|
472
475
|
#
|
|
473
476
|
# @param state [Symbol, EInvoiceAPI::Models::DocumentState] The current state of the document: DRAFT, TRANSIT, FAILED, SENT, or RECEIVED
|
|
474
477
|
#
|
|
@@ -488,11 +491,11 @@ module EInvoiceAPI
|
|
|
488
491
|
#
|
|
489
492
|
# @param vatex [Symbol, EInvoiceAPI::Models::DocumentCreate::Vatex, nil] VATEX code list for VAT exemption reasons
|
|
490
493
|
#
|
|
491
|
-
# @param vatex_note [String, nil]
|
|
494
|
+
# @param vatex_note [String, nil] VAT exemption reason text (BT-120). An exemption reason (vatex or vatex_note) is
|
|
492
495
|
#
|
|
493
496
|
# @param vendor_address [String, nil] The address of the vendor/seller
|
|
494
497
|
#
|
|
495
|
-
# @param vendor_address_recipient [String, nil] The recipient name at the vendor address
|
|
498
|
+
# @param vendor_address_recipient [String, nil] The recipient name at the vendor address. Also the vendor contact name (BT-41) i
|
|
496
499
|
#
|
|
497
500
|
# @param vendor_company_id [String, nil] Vendor company ID. For Belgium this is the CBE number or their EUID (European Un
|
|
498
501
|
#
|
|
@@ -1086,7 +1089,11 @@ module EInvoiceAPI
|
|
|
1086
1089
|
optional :date, Date, nil?: true
|
|
1087
1090
|
|
|
1088
1091
|
# @!attribute description
|
|
1089
|
-
# The description of the line item.
|
|
1092
|
+
# The description of the line item (BT-154). Doubles as the item name when `name`
|
|
1093
|
+
# is omitted, so a posted line item needs a `name` or a `description`. On a
|
|
1094
|
+
# received document it holds the item description, or the item name (BT-153) when
|
|
1095
|
+
# the document has no item description; CII documents with both combine them as
|
|
1096
|
+
# `name: description`.
|
|
1090
1097
|
#
|
|
1091
1098
|
# @return [String, nil]
|
|
1092
1099
|
optional :description, String, nil?: true
|
|
@@ -1170,7 +1177,7 @@ module EInvoiceAPI
|
|
|
1170
1177
|
#
|
|
1171
1178
|
# @param date [Date, nil]
|
|
1172
1179
|
#
|
|
1173
|
-
# @param description [String, nil] The description of the line item.
|
|
1180
|
+
# @param description [String, nil] The description of the line item (BT-154). Doubles as the item name when `name`
|
|
1174
1181
|
#
|
|
1175
1182
|
# @param item_attributes [Array<EInvoiceAPI::Models::DocumentCreate::Item::ItemAttribute>, nil] Item-level attributes (BG-32) from cac:AdditionalItemProperty.
|
|
1176
1183
|
#
|
|
@@ -2019,6 +2026,7 @@ module EInvoiceAPI
|
|
|
2019
2026
|
VATEX_EU_132_1_O = :"VATEX-EU-132-1O"
|
|
2020
2027
|
VATEX_EU_132_1_P = :"VATEX-EU-132-1P"
|
|
2021
2028
|
VATEX_EU_132_1_Q = :"VATEX-EU-132-1Q"
|
|
2029
|
+
VATEX_EU_135_1 = :"VATEX-EU-135-1"
|
|
2022
2030
|
VATEX_EU_143 = :"VATEX-EU-143"
|
|
2023
2031
|
VATEX_EU_143_1_A = :"VATEX-EU-143-1A"
|
|
2024
2032
|
VATEX_EU_143_1_B = :"VATEX-EU-143-1B"
|
|
@@ -2050,6 +2058,7 @@ module EInvoiceAPI
|
|
|
2050
2058
|
VATEX_EU_151_1_C = :"VATEX-EU-151-1C"
|
|
2051
2059
|
VATEX_EU_151_1_D = :"VATEX-EU-151-1D"
|
|
2052
2060
|
VATEX_EU_151_1_E = :"VATEX-EU-151-1E"
|
|
2061
|
+
VATEX_EU_153 = :"VATEX-EU-153"
|
|
2053
2062
|
VATEX_EU_159 = :"VATEX-EU-159"
|
|
2054
2063
|
VATEX_EU_309 = :"VATEX-EU-309"
|
|
2055
2064
|
VATEX_EU_AE = :"VATEX-EU-AE"
|
|
@@ -2060,6 +2069,30 @@ module EInvoiceAPI
|
|
|
2060
2069
|
VATEX_EU_IC = :"VATEX-EU-IC"
|
|
2061
2070
|
VATEX_EU_O = :"VATEX-EU-O"
|
|
2062
2071
|
VATEX_EU_J = :"VATEX-EU-J"
|
|
2072
|
+
VATEX_FR_298_SEXDECIESA = :"VATEX-FR-298SEXDECIESA"
|
|
2073
|
+
VATEX_FR_AE = :"VATEX-FR-AE"
|
|
2074
|
+
VATEX_FR_CGI261_1 = :"VATEX-FR-CGI261-1"
|
|
2075
|
+
VATEX_FR_CGI261_2 = :"VATEX-FR-CGI261-2"
|
|
2076
|
+
VATEX_FR_CGI261_3 = :"VATEX-FR-CGI261-3"
|
|
2077
|
+
VATEX_FR_CGI261_4 = :"VATEX-FR-CGI261-4"
|
|
2078
|
+
VATEX_FR_CGI261_5 = :"VATEX-FR-CGI261-5"
|
|
2079
|
+
VATEX_FR_CGI261_7 = :"VATEX-FR-CGI261-7"
|
|
2080
|
+
VATEX_FR_CGI261_8 = :"VATEX-FR-CGI261-8"
|
|
2081
|
+
VATEX_FR_CGI261A = :"VATEX-FR-CGI261A"
|
|
2082
|
+
VATEX_FR_CGI261B = :"VATEX-FR-CGI261B"
|
|
2083
|
+
VATEX_FR_CGI261C_1 = :"VATEX-FR-CGI261C-1"
|
|
2084
|
+
VATEX_FR_CGI261C_2 = :"VATEX-FR-CGI261C-2"
|
|
2085
|
+
VATEX_FR_CGI261C_3 = :"VATEX-FR-CGI261C-3"
|
|
2086
|
+
VATEX_FR_CGI261D_1 = :"VATEX-FR-CGI261D-1"
|
|
2087
|
+
VATEX_FR_CGI261D_1_BIS = :"VATEX-FR-CGI261D-1BIS"
|
|
2088
|
+
VATEX_FR_CGI261D_2 = :"VATEX-FR-CGI261D-2"
|
|
2089
|
+
VATEX_FR_CGI261D_3 = :"VATEX-FR-CGI261D-3"
|
|
2090
|
+
VATEX_FR_CGI261D_4 = :"VATEX-FR-CGI261D-4"
|
|
2091
|
+
VATEX_FR_CGI261E_1 = :"VATEX-FR-CGI261E-1"
|
|
2092
|
+
VATEX_FR_CGI261E_2 = :"VATEX-FR-CGI261E-2"
|
|
2093
|
+
VATEX_FR_CGI275 = :"VATEX-FR-CGI275"
|
|
2094
|
+
VATEX_FR_CGI277A = :"VATEX-FR-CGI277A"
|
|
2095
|
+
VATEX_FR_CGI295 = :"VATEX-FR-CGI295"
|
|
2063
2096
|
VATEX_FR_FRANCHISE = :"VATEX-FR-FRANCHISE"
|
|
2064
2097
|
VATEX_FR_CNWVAT = :"VATEX-FR-CNWVAT"
|
|
2065
2098
|
|
|
@@ -59,7 +59,8 @@ module EInvoiceAPI
|
|
|
59
59
|
optional :customer_address, String, nil?: true
|
|
60
60
|
|
|
61
61
|
# @!attribute customer_address_recipient
|
|
62
|
-
# The recipient name at the customer address
|
|
62
|
+
# The recipient name at the customer address. Also the customer contact name
|
|
63
|
+
# (BT-56) in the UBL.
|
|
63
64
|
#
|
|
64
65
|
# @return [String, nil]
|
|
65
66
|
optional :customer_address_recipient, String, nil?: true
|
|
@@ -197,7 +198,7 @@ module EInvoiceAPI
|
|
|
197
198
|
optional :preceding_invoice_id, String, nil?: true
|
|
198
199
|
|
|
199
200
|
# @!attribute purchase_order
|
|
200
|
-
# The purchase order reference number
|
|
201
|
+
# The purchase order reference number (BT-13)
|
|
201
202
|
#
|
|
202
203
|
# @return [String, nil]
|
|
203
204
|
optional :purchase_order, String, nil?: true
|
|
@@ -260,7 +261,7 @@ module EInvoiceAPI
|
|
|
260
261
|
optional :shipping_address, String, nil?: true
|
|
261
262
|
|
|
262
263
|
# @!attribute shipping_address_recipient
|
|
263
|
-
# The
|
|
264
|
+
# The name of the deliver-to party (BT-70)
|
|
264
265
|
#
|
|
265
266
|
# @return [String, nil]
|
|
266
267
|
optional :shipping_address_recipient, String, nil?: true
|
|
@@ -344,7 +345,8 @@ module EInvoiceAPI
|
|
|
344
345
|
optional :vatex, enum: -> { EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex }, nil?: true
|
|
345
346
|
|
|
346
347
|
# @!attribute vatex_note
|
|
347
|
-
#
|
|
348
|
+
# VAT exemption reason text (BT-120). An exemption reason (vatex or vatex_note) is
|
|
349
|
+
# required for tax_code E, AE, K, G and O, and not allowed for S, Z, L and M
|
|
348
350
|
#
|
|
349
351
|
# @return [String, nil]
|
|
350
352
|
optional :vatex_note, String, nil?: true
|
|
@@ -356,7 +358,8 @@ module EInvoiceAPI
|
|
|
356
358
|
optional :vendor_address, String, nil?: true
|
|
357
359
|
|
|
358
360
|
# @!attribute vendor_address_recipient
|
|
359
|
-
# The recipient name at the vendor address
|
|
361
|
+
# The recipient name at the vendor address. Also the vendor contact name (BT-41)
|
|
362
|
+
# in the UBL, required when vendor and customer are both in Germany (DE-R-005).
|
|
360
363
|
#
|
|
361
364
|
# @return [String, nil]
|
|
362
365
|
optional :vendor_address_recipient, String, nil?: true
|
|
@@ -417,7 +420,7 @@ module EInvoiceAPI
|
|
|
417
420
|
#
|
|
418
421
|
# @param customer_address [String, nil] The address of the customer/buyer
|
|
419
422
|
#
|
|
420
|
-
# @param customer_address_recipient [String, nil] The recipient name at the customer address
|
|
423
|
+
# @param customer_address_recipient [String, nil] The recipient name at the customer address. Also the customer contact name (BT-5
|
|
421
424
|
#
|
|
422
425
|
# @param customer_company_id [String, nil] Customer company ID. For Belgium this is the CBE number or their EUID (European
|
|
423
426
|
#
|
|
@@ -461,7 +464,7 @@ module EInvoiceAPI
|
|
|
461
464
|
#
|
|
462
465
|
# @param preceding_invoice_id [String, nil] The preceding invoice reference (BT-25): the number of the invoice this document
|
|
463
466
|
#
|
|
464
|
-
# @param purchase_order [String, nil] The purchase order reference number
|
|
467
|
+
# @param purchase_order [String, nil] The purchase order reference number (BT-13)
|
|
465
468
|
#
|
|
466
469
|
# @param remittance_address [String, nil] The address where payment should be sent or remitted to
|
|
467
470
|
#
|
|
@@ -481,7 +484,7 @@ module EInvoiceAPI
|
|
|
481
484
|
#
|
|
482
485
|
# @param shipping_address [String, nil] The shipping/delivery address
|
|
483
486
|
#
|
|
484
|
-
# @param shipping_address_recipient [String, nil] The
|
|
487
|
+
# @param shipping_address_recipient [String, nil] The name of the deliver-to party (BT-70)
|
|
485
488
|
#
|
|
486
489
|
# @param state [Symbol, EInvoiceAPI::Models::DocumentState] The current state of the document: DRAFT, TRANSIT, FAILED, SENT, or RECEIVED
|
|
487
490
|
#
|
|
@@ -505,11 +508,11 @@ module EInvoiceAPI
|
|
|
505
508
|
#
|
|
506
509
|
# @param vatex [Symbol, EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Vatex, nil] VATEX code list for VAT exemption reasons
|
|
507
510
|
#
|
|
508
|
-
# @param vatex_note [String, nil]
|
|
511
|
+
# @param vatex_note [String, nil] VAT exemption reason text (BT-120). An exemption reason (vatex or vatex_note) is
|
|
509
512
|
#
|
|
510
513
|
# @param vendor_address [String, nil] The address of the vendor/seller
|
|
511
514
|
#
|
|
512
|
-
# @param vendor_address_recipient [String, nil] The recipient name at the vendor address
|
|
515
|
+
# @param vendor_address_recipient [String, nil] The recipient name at the vendor address. Also the vendor contact name (BT-41) i
|
|
513
516
|
#
|
|
514
517
|
# @param vendor_company_id [String, nil] Vendor company ID. For Belgium this is the CBE number or their EUID (European Un
|
|
515
518
|
#
|
|
@@ -549,7 +552,11 @@ module EInvoiceAPI
|
|
|
549
552
|
optional :date, Date, nil?: true
|
|
550
553
|
|
|
551
554
|
# @!attribute description
|
|
552
|
-
# The description of the line item.
|
|
555
|
+
# The description of the line item (BT-154). Doubles as the item name when `name`
|
|
556
|
+
# is omitted, so a posted line item needs a `name` or a `description`. On a
|
|
557
|
+
# received document it holds the item description, or the item name (BT-153) when
|
|
558
|
+
# the document has no item description; CII documents with both combine them as
|
|
559
|
+
# `name: description`.
|
|
553
560
|
#
|
|
554
561
|
# @return [String, nil]
|
|
555
562
|
optional :description, String, nil?: true
|
|
@@ -631,7 +638,7 @@ module EInvoiceAPI
|
|
|
631
638
|
#
|
|
632
639
|
# @param date [Date, nil]
|
|
633
640
|
#
|
|
634
|
-
# @param description [String, nil] The description of the line item.
|
|
641
|
+
# @param description [String, nil] The description of the line item (BT-154). Doubles as the item name when `name`
|
|
635
642
|
#
|
|
636
643
|
# @param item_attributes [Array<EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item::ItemAttribute>, nil] Item-level attributes (BG-32) from cac:AdditionalItemProperty.
|
|
637
644
|
#
|
|
@@ -742,6 +749,7 @@ module EInvoiceAPI
|
|
|
742
749
|
VATEX_EU_132_1_O = :"VATEX-EU-132-1O"
|
|
743
750
|
VATEX_EU_132_1_P = :"VATEX-EU-132-1P"
|
|
744
751
|
VATEX_EU_132_1_Q = :"VATEX-EU-132-1Q"
|
|
752
|
+
VATEX_EU_135_1 = :"VATEX-EU-135-1"
|
|
745
753
|
VATEX_EU_143 = :"VATEX-EU-143"
|
|
746
754
|
VATEX_EU_143_1_A = :"VATEX-EU-143-1A"
|
|
747
755
|
VATEX_EU_143_1_B = :"VATEX-EU-143-1B"
|
|
@@ -773,6 +781,7 @@ module EInvoiceAPI
|
|
|
773
781
|
VATEX_EU_151_1_C = :"VATEX-EU-151-1C"
|
|
774
782
|
VATEX_EU_151_1_D = :"VATEX-EU-151-1D"
|
|
775
783
|
VATEX_EU_151_1_E = :"VATEX-EU-151-1E"
|
|
784
|
+
VATEX_EU_153 = :"VATEX-EU-153"
|
|
776
785
|
VATEX_EU_159 = :"VATEX-EU-159"
|
|
777
786
|
VATEX_EU_309 = :"VATEX-EU-309"
|
|
778
787
|
VATEX_EU_AE = :"VATEX-EU-AE"
|
|
@@ -783,6 +792,30 @@ module EInvoiceAPI
|
|
|
783
792
|
VATEX_EU_IC = :"VATEX-EU-IC"
|
|
784
793
|
VATEX_EU_O = :"VATEX-EU-O"
|
|
785
794
|
VATEX_EU_J = :"VATEX-EU-J"
|
|
795
|
+
VATEX_FR_298_SEXDECIESA = :"VATEX-FR-298SEXDECIESA"
|
|
796
|
+
VATEX_FR_AE = :"VATEX-FR-AE"
|
|
797
|
+
VATEX_FR_CGI261_1 = :"VATEX-FR-CGI261-1"
|
|
798
|
+
VATEX_FR_CGI261_2 = :"VATEX-FR-CGI261-2"
|
|
799
|
+
VATEX_FR_CGI261_3 = :"VATEX-FR-CGI261-3"
|
|
800
|
+
VATEX_FR_CGI261_4 = :"VATEX-FR-CGI261-4"
|
|
801
|
+
VATEX_FR_CGI261_5 = :"VATEX-FR-CGI261-5"
|
|
802
|
+
VATEX_FR_CGI261_7 = :"VATEX-FR-CGI261-7"
|
|
803
|
+
VATEX_FR_CGI261_8 = :"VATEX-FR-CGI261-8"
|
|
804
|
+
VATEX_FR_CGI261A = :"VATEX-FR-CGI261A"
|
|
805
|
+
VATEX_FR_CGI261B = :"VATEX-FR-CGI261B"
|
|
806
|
+
VATEX_FR_CGI261C_1 = :"VATEX-FR-CGI261C-1"
|
|
807
|
+
VATEX_FR_CGI261C_2 = :"VATEX-FR-CGI261C-2"
|
|
808
|
+
VATEX_FR_CGI261C_3 = :"VATEX-FR-CGI261C-3"
|
|
809
|
+
VATEX_FR_CGI261D_1 = :"VATEX-FR-CGI261D-1"
|
|
810
|
+
VATEX_FR_CGI261D_1_BIS = :"VATEX-FR-CGI261D-1BIS"
|
|
811
|
+
VATEX_FR_CGI261D_2 = :"VATEX-FR-CGI261D-2"
|
|
812
|
+
VATEX_FR_CGI261D_3 = :"VATEX-FR-CGI261D-3"
|
|
813
|
+
VATEX_FR_CGI261D_4 = :"VATEX-FR-CGI261D-4"
|
|
814
|
+
VATEX_FR_CGI261E_1 = :"VATEX-FR-CGI261E-1"
|
|
815
|
+
VATEX_FR_CGI261E_2 = :"VATEX-FR-CGI261E-2"
|
|
816
|
+
VATEX_FR_CGI275 = :"VATEX-FR-CGI275"
|
|
817
|
+
VATEX_FR_CGI277A = :"VATEX-FR-CGI277A"
|
|
818
|
+
VATEX_FR_CGI295 = :"VATEX-FR-CGI295"
|
|
786
819
|
VATEX_FR_FRANCHISE = :"VATEX-FR-FRANCHISE"
|
|
787
820
|
VATEX_FR_CNWVAT = :"VATEX-FR-CNWVAT"
|
|
788
821
|
|
|
@@ -73,7 +73,8 @@ module EInvoiceAPI
|
|
|
73
73
|
optional :customer_address, String, nil?: true
|
|
74
74
|
|
|
75
75
|
# @!attribute customer_address_recipient
|
|
76
|
-
# The recipient name at the customer address
|
|
76
|
+
# The recipient name at the customer address. Also the customer contact name
|
|
77
|
+
# (BT-56) in the UBL.
|
|
77
78
|
#
|
|
78
79
|
# @return [String, nil]
|
|
79
80
|
optional :customer_address_recipient, String, nil?: true
|
|
@@ -199,7 +200,7 @@ module EInvoiceAPI
|
|
|
199
200
|
optional :preceding_invoice_id, String, nil?: true
|
|
200
201
|
|
|
201
202
|
# @!attribute purchase_order
|
|
202
|
-
# The purchase order reference number
|
|
203
|
+
# The purchase order reference number (BT-13)
|
|
203
204
|
#
|
|
204
205
|
# @return [String, nil]
|
|
205
206
|
optional :purchase_order, String, nil?: true
|
|
@@ -262,7 +263,7 @@ module EInvoiceAPI
|
|
|
262
263
|
optional :shipping_address, String, nil?: true
|
|
263
264
|
|
|
264
265
|
# @!attribute shipping_address_recipient
|
|
265
|
-
# The
|
|
266
|
+
# The name of the deliver-to party (BT-70)
|
|
266
267
|
#
|
|
267
268
|
# @return [String, nil]
|
|
268
269
|
optional :shipping_address_recipient, String, nil?: true
|
|
@@ -334,7 +335,8 @@ module EInvoiceAPI
|
|
|
334
335
|
optional :vatex, enum: -> { EInvoiceAPI::DocumentResponse::Vatex }, nil?: true
|
|
335
336
|
|
|
336
337
|
# @!attribute vatex_note
|
|
337
|
-
#
|
|
338
|
+
# VAT exemption reason text (BT-120). An exemption reason (vatex or vatex_note) is
|
|
339
|
+
# required for tax_code E, AE, K, G and O, and not allowed for S, Z, L and M
|
|
338
340
|
#
|
|
339
341
|
# @return [String, nil]
|
|
340
342
|
optional :vatex_note, String, nil?: true
|
|
@@ -346,7 +348,8 @@ module EInvoiceAPI
|
|
|
346
348
|
optional :vendor_address, String, nil?: true
|
|
347
349
|
|
|
348
350
|
# @!attribute vendor_address_recipient
|
|
349
|
-
# The recipient name at the vendor address
|
|
351
|
+
# The recipient name at the vendor address. Also the vendor contact name (BT-41)
|
|
352
|
+
# in the UBL, required when vendor and customer are both in Germany (DE-R-005).
|
|
350
353
|
#
|
|
351
354
|
# @return [String, nil]
|
|
352
355
|
optional :vendor_address_recipient, String, nil?: true
|
|
@@ -411,7 +414,7 @@ module EInvoiceAPI
|
|
|
411
414
|
#
|
|
412
415
|
# @param customer_address [String, nil] The address of the customer/buyer
|
|
413
416
|
#
|
|
414
|
-
# @param customer_address_recipient [String, nil] The recipient name at the customer address
|
|
417
|
+
# @param customer_address_recipient [String, nil] The recipient name at the customer address. Also the customer contact name (BT-5
|
|
415
418
|
#
|
|
416
419
|
# @param customer_company_id [String, nil] Customer company ID. For Belgium this is the CBE number or their EUID (European
|
|
417
420
|
#
|
|
@@ -451,7 +454,7 @@ module EInvoiceAPI
|
|
|
451
454
|
#
|
|
452
455
|
# @param preceding_invoice_id [String, nil] The preceding invoice reference (BT-25): the number of the invoice this document
|
|
453
456
|
#
|
|
454
|
-
# @param purchase_order [String, nil] The purchase order reference number
|
|
457
|
+
# @param purchase_order [String, nil] The purchase order reference number (BT-13)
|
|
455
458
|
#
|
|
456
459
|
# @param remittance_address [String, nil] The address where payment should be sent or remitted to
|
|
457
460
|
#
|
|
@@ -471,7 +474,7 @@ module EInvoiceAPI
|
|
|
471
474
|
#
|
|
472
475
|
# @param shipping_address [String, nil] The shipping/delivery address
|
|
473
476
|
#
|
|
474
|
-
# @param shipping_address_recipient [String, nil] The
|
|
477
|
+
# @param shipping_address_recipient [String, nil] The name of the deliver-to party (BT-70)
|
|
475
478
|
#
|
|
476
479
|
# @param state [Symbol, EInvoiceAPI::Models::DocumentState] The current state of the document: DRAFT, TRANSIT, FAILED, SENT, or RECEIVED
|
|
477
480
|
#
|
|
@@ -491,11 +494,11 @@ module EInvoiceAPI
|
|
|
491
494
|
#
|
|
492
495
|
# @param vatex [Symbol, EInvoiceAPI::Models::DocumentResponse::Vatex, nil] VATEX code list for VAT exemption reasons
|
|
493
496
|
#
|
|
494
|
-
# @param vatex_note [String, nil]
|
|
497
|
+
# @param vatex_note [String, nil] VAT exemption reason text (BT-120). An exemption reason (vatex or vatex_note) is
|
|
495
498
|
#
|
|
496
499
|
# @param vendor_address [String, nil] The address of the vendor/seller
|
|
497
500
|
#
|
|
498
|
-
# @param vendor_address_recipient [String, nil] The recipient name at the vendor address
|
|
501
|
+
# @param vendor_address_recipient [String, nil] The recipient name at the vendor address. Also the vendor contact name (BT-41) i
|
|
499
502
|
#
|
|
500
503
|
# @param vendor_company_id [String, nil] Vendor company ID. For Belgium this is the CBE number or their EUID (European Un
|
|
501
504
|
#
|
|
@@ -930,7 +933,11 @@ module EInvoiceAPI
|
|
|
930
933
|
optional :date, Date, nil?: true
|
|
931
934
|
|
|
932
935
|
# @!attribute description
|
|
933
|
-
# The description of the line item.
|
|
936
|
+
# The description of the line item (BT-154). Doubles as the item name when `name`
|
|
937
|
+
# is omitted, so a posted line item needs a `name` or a `description`. On a
|
|
938
|
+
# received document it holds the item description, or the item name (BT-153) when
|
|
939
|
+
# the document has no item description; CII documents with both combine them as
|
|
940
|
+
# `name: description`.
|
|
934
941
|
#
|
|
935
942
|
# @return [String, nil]
|
|
936
943
|
optional :description, String, nil?: true
|
|
@@ -1014,7 +1021,7 @@ module EInvoiceAPI
|
|
|
1014
1021
|
#
|
|
1015
1022
|
# @param date [Date, nil]
|
|
1016
1023
|
#
|
|
1017
|
-
# @param description [String, nil] The description of the line item.
|
|
1024
|
+
# @param description [String, nil] The description of the line item (BT-154). Doubles as the item name when `name`
|
|
1018
1025
|
#
|
|
1019
1026
|
# @param item_attributes [Array<EInvoiceAPI::Models::DocumentResponse::Item::ItemAttribute>, nil] Item-level attributes (BG-32) from cac:AdditionalItemProperty.
|
|
1020
1027
|
#
|
|
@@ -1059,7 +1066,9 @@ module EInvoiceAPI
|
|
|
1059
1066
|
|
|
1060
1067
|
class PaymentDetail < EInvoiceAPI::Internal::Type::BaseModel
|
|
1061
1068
|
# @!attribute bank_account_number
|
|
1062
|
-
# Bank account number (for non-IBAN accounts)
|
|
1069
|
+
# Bank account number (for non-IBAN accounts). With `swift` `SE:BANKGIRO` or
|
|
1070
|
+
# `SE:PLUSGIRO`, the bankgiro or plusgiro number, with `iban` left empty; spaces
|
|
1071
|
+
# and hyphens are removed.
|
|
1063
1072
|
#
|
|
1064
1073
|
# @return [String, nil]
|
|
1065
1074
|
optional :bank_account_number, String, nil?: true
|
|
@@ -1089,7 +1098,7 @@ module EInvoiceAPI
|
|
|
1089
1098
|
# Some parameter documentations has been truncated, see
|
|
1090
1099
|
# {EInvoiceAPI::Models::DocumentResponse::PaymentDetail} for more details.
|
|
1091
1100
|
#
|
|
1092
|
-
# @param bank_account_number [String, nil] Bank account number (for non-IBAN accounts)
|
|
1101
|
+
# @param bank_account_number [String, nil] Bank account number (for non-IBAN accounts). With `swift` `SE:BANKGIRO` or
|
|
1093
1102
|
#
|
|
1094
1103
|
# @param iban [String, nil] International Bank Account Number for payment transfers
|
|
1095
1104
|
#
|
|
@@ -1166,6 +1175,7 @@ module EInvoiceAPI
|
|
|
1166
1175
|
VATEX_EU_132_1_O = :"VATEX-EU-132-1O"
|
|
1167
1176
|
VATEX_EU_132_1_P = :"VATEX-EU-132-1P"
|
|
1168
1177
|
VATEX_EU_132_1_Q = :"VATEX-EU-132-1Q"
|
|
1178
|
+
VATEX_EU_135_1 = :"VATEX-EU-135-1"
|
|
1169
1179
|
VATEX_EU_143 = :"VATEX-EU-143"
|
|
1170
1180
|
VATEX_EU_143_1_A = :"VATEX-EU-143-1A"
|
|
1171
1181
|
VATEX_EU_143_1_B = :"VATEX-EU-143-1B"
|
|
@@ -1197,6 +1207,7 @@ module EInvoiceAPI
|
|
|
1197
1207
|
VATEX_EU_151_1_C = :"VATEX-EU-151-1C"
|
|
1198
1208
|
VATEX_EU_151_1_D = :"VATEX-EU-151-1D"
|
|
1199
1209
|
VATEX_EU_151_1_E = :"VATEX-EU-151-1E"
|
|
1210
|
+
VATEX_EU_153 = :"VATEX-EU-153"
|
|
1200
1211
|
VATEX_EU_159 = :"VATEX-EU-159"
|
|
1201
1212
|
VATEX_EU_309 = :"VATEX-EU-309"
|
|
1202
1213
|
VATEX_EU_AE = :"VATEX-EU-AE"
|
|
@@ -1207,6 +1218,30 @@ module EInvoiceAPI
|
|
|
1207
1218
|
VATEX_EU_IC = :"VATEX-EU-IC"
|
|
1208
1219
|
VATEX_EU_O = :"VATEX-EU-O"
|
|
1209
1220
|
VATEX_EU_J = :"VATEX-EU-J"
|
|
1221
|
+
VATEX_FR_298_SEXDECIESA = :"VATEX-FR-298SEXDECIESA"
|
|
1222
|
+
VATEX_FR_AE = :"VATEX-FR-AE"
|
|
1223
|
+
VATEX_FR_CGI261_1 = :"VATEX-FR-CGI261-1"
|
|
1224
|
+
VATEX_FR_CGI261_2 = :"VATEX-FR-CGI261-2"
|
|
1225
|
+
VATEX_FR_CGI261_3 = :"VATEX-FR-CGI261-3"
|
|
1226
|
+
VATEX_FR_CGI261_4 = :"VATEX-FR-CGI261-4"
|
|
1227
|
+
VATEX_FR_CGI261_5 = :"VATEX-FR-CGI261-5"
|
|
1228
|
+
VATEX_FR_CGI261_7 = :"VATEX-FR-CGI261-7"
|
|
1229
|
+
VATEX_FR_CGI261_8 = :"VATEX-FR-CGI261-8"
|
|
1230
|
+
VATEX_FR_CGI261A = :"VATEX-FR-CGI261A"
|
|
1231
|
+
VATEX_FR_CGI261B = :"VATEX-FR-CGI261B"
|
|
1232
|
+
VATEX_FR_CGI261C_1 = :"VATEX-FR-CGI261C-1"
|
|
1233
|
+
VATEX_FR_CGI261C_2 = :"VATEX-FR-CGI261C-2"
|
|
1234
|
+
VATEX_FR_CGI261C_3 = :"VATEX-FR-CGI261C-3"
|
|
1235
|
+
VATEX_FR_CGI261D_1 = :"VATEX-FR-CGI261D-1"
|
|
1236
|
+
VATEX_FR_CGI261D_1_BIS = :"VATEX-FR-CGI261D-1BIS"
|
|
1237
|
+
VATEX_FR_CGI261D_2 = :"VATEX-FR-CGI261D-2"
|
|
1238
|
+
VATEX_FR_CGI261D_3 = :"VATEX-FR-CGI261D-3"
|
|
1239
|
+
VATEX_FR_CGI261D_4 = :"VATEX-FR-CGI261D-4"
|
|
1240
|
+
VATEX_FR_CGI261E_1 = :"VATEX-FR-CGI261E-1"
|
|
1241
|
+
VATEX_FR_CGI261E_2 = :"VATEX-FR-CGI261E-2"
|
|
1242
|
+
VATEX_FR_CGI275 = :"VATEX-FR-CGI275"
|
|
1243
|
+
VATEX_FR_CGI277A = :"VATEX-FR-CGI277A"
|
|
1244
|
+
VATEX_FR_CGI295 = :"VATEX-FR-CGI295"
|
|
1210
1245
|
VATEX_FR_FRANCHISE = :"VATEX-FR-FRANCHISE"
|
|
1211
1246
|
VATEX_FR_CNWVAT = :"VATEX-FR-CNWVAT"
|
|
1212
1247
|
|
|
@@ -4,7 +4,9 @@ module EInvoiceAPI
|
|
|
4
4
|
module Models
|
|
5
5
|
class PaymentDetailCreate < EInvoiceAPI::Internal::Type::BaseModel
|
|
6
6
|
# @!attribute bank_account_number
|
|
7
|
-
# Bank account number (for non-IBAN accounts)
|
|
7
|
+
# Bank account number (for non-IBAN accounts). With `swift` `SE:BANKGIRO` or
|
|
8
|
+
# `SE:PLUSGIRO`, the bankgiro or plusgiro number, with `iban` left empty; spaces
|
|
9
|
+
# and hyphens are removed.
|
|
8
10
|
#
|
|
9
11
|
# @return [String, nil]
|
|
10
12
|
optional :bank_account_number, String, nil?: true
|
|
@@ -34,7 +36,7 @@ module EInvoiceAPI
|
|
|
34
36
|
# Some parameter documentations has been truncated, see
|
|
35
37
|
# {EInvoiceAPI::Models::PaymentDetailCreate} for more details.
|
|
36
38
|
#
|
|
37
|
-
# @param bank_account_number [String, nil] Bank account number (for non-IBAN accounts)
|
|
39
|
+
# @param bank_account_number [String, nil] Bank account number (for non-IBAN accounts). With `swift` `SE:BANKGIRO` or
|
|
38
40
|
#
|
|
39
41
|
# @param iban [String, nil] International Bank Account Number for payment transfers
|
|
40
42
|
#
|