e-invoice-api 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/e_invoice_api/models/document_create.rb +14 -34
- data/lib/e_invoice_api/models/document_create_from_pdf_response.rb +9 -24
- data/lib/e_invoice_api/models/document_response.rb +9 -24
- data/lib/e_invoice_api/models/unit_of_measure_code.rb +1 -0
- data/lib/e_invoice_api/version.rb +1 -1
- data/rbi/e_invoice_api/models/document_create.rbi +18 -49
- data/rbi/e_invoice_api/models/document_create_from_pdf_response.rbi +12 -26
- data/rbi/e_invoice_api/models/document_response.rbi +12 -26
- data/rbi/e_invoice_api/models/unit_of_measure_code.rbi +1 -0
- data/sig/e_invoice_api/models/document_create.rbs +0 -13
- data/sig/e_invoice_api/models/document_create_from_pdf_response.rbs +0 -10
- data/sig/e_invoice_api/models/document_response.rbs +0 -10
- data/sig/e_invoice_api/models/unit_of_measure_code.rbs +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4337a42eb8b5dabcbe05e2592fb97a2be70365870245ae7cc3d6c7f3fbf47877
|
|
4
|
+
data.tar.gz: 774e91593612c50ebbd8161b1a690ea63d7fa515e15368489853c5fbca2eff26
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1fb1e7964591f18db368a75e9c605939af61be71832158aba03c583ce4e347617e3bc27382bd99b1ab257d778930e436a6909f37aeacd74d6b3c97aeaa9246bf
|
|
7
|
+
data.tar.gz: 80e9eb92dbb34fa3e9fe12bb3190ab7ff66163109a6ec26a6c8c455c0db30e611ec63cdec23b09cdd04698bcf6a15e1aefa1f230272a39883357699d577f60ae
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.14.0 (2025-11-16)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.13.0...v0.14.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.13.0...v0.14.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([865df03](https://github.com/e-invoice-be/e-invoice-rb/commit/865df0361a2add108f9b47763666b3c8b822de6f))
|
|
10
|
+
|
|
11
|
+
## 0.13.0 (2025-11-14)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.12.0...v0.13.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.12.0...v0.13.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([6e82f54](https://github.com/e-invoice-be/e-invoice-rb/commit/6e82f5492fbc467157a7a0cf03eaa256b32caa92))
|
|
18
|
+
|
|
3
19
|
## 0.12.0 (2025-11-14)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.11.0...v0.12.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.11.0...v0.12.0)
|
data/README.md
CHANGED
|
@@ -974,7 +974,8 @@ module EInvoiceAPI
|
|
|
974
974
|
# @!attribute amount
|
|
975
975
|
# The invoice line net amount (BT-131), exclusive of VAT, inclusive of line level
|
|
976
976
|
# allowances and charges. Calculated as: ((unit_price / price_base_quantity) \*
|
|
977
|
-
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals
|
|
977
|
+
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals. Can be
|
|
978
|
+
# negative for credit notes or corrections.
|
|
978
979
|
#
|
|
979
980
|
# @return [Float, String, nil]
|
|
980
981
|
optional :amount, union: -> { EInvoiceAPI::DocumentCreate::Item::Amount }, nil?: true
|
|
@@ -998,15 +999,6 @@ module EInvoiceAPI
|
|
|
998
999
|
# @return [String, nil]
|
|
999
1000
|
optional :description, String, nil?: true
|
|
1000
1001
|
|
|
1001
|
-
# @!attribute price_base_quantity
|
|
1002
|
-
# The item price base quantity (BT-149). The number of item units to which the
|
|
1003
|
-
# price applies. Defaults to 1. Must be rounded to maximum 4 decimals
|
|
1004
|
-
#
|
|
1005
|
-
# @return [Float, String, nil]
|
|
1006
|
-
optional :price_base_quantity,
|
|
1007
|
-
union: -> { EInvoiceAPI::DocumentCreate::Item::PriceBaseQuantity },
|
|
1008
|
-
nil?: true
|
|
1009
|
-
|
|
1010
1002
|
# @!attribute product_code
|
|
1011
1003
|
# The product code of the line item.
|
|
1012
1004
|
#
|
|
@@ -1015,13 +1007,15 @@ module EInvoiceAPI
|
|
|
1015
1007
|
|
|
1016
1008
|
# @!attribute quantity
|
|
1017
1009
|
# The quantity of items (goods or services) that is the subject of the line item.
|
|
1018
|
-
# Must be rounded to maximum 4 decimals
|
|
1010
|
+
# Must be rounded to maximum 4 decimals. Can be negative for credit notes or
|
|
1011
|
+
# corrections.
|
|
1019
1012
|
#
|
|
1020
1013
|
# @return [Float, String, nil]
|
|
1021
1014
|
optional :quantity, union: -> { EInvoiceAPI::DocumentCreate::Item::Quantity }, nil?: true
|
|
1022
1015
|
|
|
1023
1016
|
# @!attribute tax
|
|
1024
|
-
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals
|
|
1017
|
+
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals.
|
|
1018
|
+
# Can be negative for credit notes or corrections.
|
|
1025
1019
|
#
|
|
1026
1020
|
# @return [Float, String, nil]
|
|
1027
1021
|
optional :tax, union: -> { EInvoiceAPI::DocumentCreate::Item::Tax }, nil?: true
|
|
@@ -1045,7 +1039,7 @@ module EInvoiceAPI
|
|
|
1045
1039
|
# @return [Float, String, nil]
|
|
1046
1040
|
optional :unit_price, union: -> { EInvoiceAPI::DocumentCreate::Item::UnitPrice }, nil?: true
|
|
1047
1041
|
|
|
1048
|
-
# @!method initialize(allowances: nil, amount: nil, charges: nil, date: nil, description: nil,
|
|
1042
|
+
# @!method initialize(allowances: nil, amount: nil, charges: nil, date: nil, description: nil, product_code: nil, quantity: nil, tax: nil, tax_rate: nil, unit: nil, unit_price: nil)
|
|
1049
1043
|
# Some parameter documentations has been truncated, see
|
|
1050
1044
|
# {EInvoiceAPI::Models::DocumentCreate::Item} for more details.
|
|
1051
1045
|
#
|
|
@@ -1059,13 +1053,11 @@ module EInvoiceAPI
|
|
|
1059
1053
|
#
|
|
1060
1054
|
# @param description [String, nil] The description of the line item.
|
|
1061
1055
|
#
|
|
1062
|
-
# @param price_base_quantity [Float, String, nil] The item price base quantity (BT-149). The number of item units to which the pri
|
|
1063
|
-
#
|
|
1064
1056
|
# @param product_code [String, nil] The product code of the line item.
|
|
1065
1057
|
#
|
|
1066
1058
|
# @param quantity [Float, String, nil] The quantity of items (goods or services) that is the subject of the line item.
|
|
1067
1059
|
#
|
|
1068
|
-
# @param tax [Float, String, nil] The total VAT amount for the line item. Must be rounded to maximum 2 decimals
|
|
1060
|
+
# @param tax [Float, String, nil] The total VAT amount for the line item. Must be rounded to maximum 2 decimals. C
|
|
1069
1061
|
#
|
|
1070
1062
|
# @param tax_rate [Float, String, nil] The VAT rate of the line item expressed as percentage with 2 decimals
|
|
1071
1063
|
#
|
|
@@ -1264,7 +1256,8 @@ module EInvoiceAPI
|
|
|
1264
1256
|
|
|
1265
1257
|
# The invoice line net amount (BT-131), exclusive of VAT, inclusive of line level
|
|
1266
1258
|
# allowances and charges. Calculated as: ((unit_price / price_base_quantity) \*
|
|
1267
|
-
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals
|
|
1259
|
+
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals. Can be
|
|
1260
|
+
# negative for credit notes or corrections.
|
|
1268
1261
|
#
|
|
1269
1262
|
# @see EInvoiceAPI::Models::DocumentCreate::Item#amount
|
|
1270
1263
|
module Amount
|
|
@@ -1626,23 +1619,9 @@ module EInvoiceAPI
|
|
|
1626
1619
|
end
|
|
1627
1620
|
end
|
|
1628
1621
|
|
|
1629
|
-
# The item price base quantity (BT-149). The number of item units to which the
|
|
1630
|
-
# price applies. Defaults to 1. Must be rounded to maximum 4 decimals
|
|
1631
|
-
#
|
|
1632
|
-
# @see EInvoiceAPI::Models::DocumentCreate::Item#price_base_quantity
|
|
1633
|
-
module PriceBaseQuantity
|
|
1634
|
-
extend EInvoiceAPI::Internal::Type::Union
|
|
1635
|
-
|
|
1636
|
-
variant Float
|
|
1637
|
-
|
|
1638
|
-
variant String
|
|
1639
|
-
|
|
1640
|
-
# @!method self.variants
|
|
1641
|
-
# @return [Array(Float, String)]
|
|
1642
|
-
end
|
|
1643
|
-
|
|
1644
1622
|
# The quantity of items (goods or services) that is the subject of the line item.
|
|
1645
|
-
# Must be rounded to maximum 4 decimals
|
|
1623
|
+
# Must be rounded to maximum 4 decimals. Can be negative for credit notes or
|
|
1624
|
+
# corrections.
|
|
1646
1625
|
#
|
|
1647
1626
|
# @see EInvoiceAPI::Models::DocumentCreate::Item#quantity
|
|
1648
1627
|
module Quantity
|
|
@@ -1656,7 +1635,8 @@ module EInvoiceAPI
|
|
|
1656
1635
|
# @return [Array(Float, String)]
|
|
1657
1636
|
end
|
|
1658
1637
|
|
|
1659
|
-
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals
|
|
1638
|
+
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals.
|
|
1639
|
+
# Can be negative for credit notes or corrections.
|
|
1660
1640
|
#
|
|
1661
1641
|
# @see EInvoiceAPI::Models::DocumentCreate::Item#tax
|
|
1662
1642
|
module Tax
|
|
@@ -152,13 +152,6 @@ module EInvoiceAPI
|
|
|
152
152
|
# @return [String, nil]
|
|
153
153
|
optional :payment_term, String, nil?: true
|
|
154
154
|
|
|
155
|
-
# @!attribute previous_unpaid_balance
|
|
156
|
-
# The previous unpaid balance from prior invoices, if any. Must be positive and
|
|
157
|
-
# rounded to maximum 2 decimals
|
|
158
|
-
#
|
|
159
|
-
# @return [String, nil]
|
|
160
|
-
optional :previous_unpaid_balance, String, nil?: true
|
|
161
|
-
|
|
162
155
|
# @!attribute purchase_order
|
|
163
156
|
# The purchase order reference number
|
|
164
157
|
#
|
|
@@ -320,7 +313,7 @@ module EInvoiceAPI
|
|
|
320
313
|
# @return [String, nil]
|
|
321
314
|
optional :vendor_tax_id, String, nil?: true
|
|
322
315
|
|
|
323
|
-
# @!method initialize(allowances: nil, amount_due: nil, attachments: nil, billing_address: nil, billing_address_recipient: nil, charges: nil, currency: nil, customer_address: nil, customer_address_recipient: nil, customer_company_id: nil, customer_email: nil, customer_id: nil, customer_name: nil, customer_tax_id: nil, direction: nil, document_type: nil, due_date: nil, invoice_date: nil, invoice_id: nil, invoice_total: nil, items: nil, note: nil, payment_details: nil, payment_term: nil,
|
|
316
|
+
# @!method initialize(allowances: nil, amount_due: nil, attachments: nil, billing_address: nil, billing_address_recipient: nil, charges: nil, currency: nil, customer_address: nil, customer_address_recipient: nil, customer_company_id: nil, customer_email: nil, customer_id: nil, customer_name: nil, customer_tax_id: nil, direction: nil, document_type: nil, due_date: nil, invoice_date: nil, invoice_id: nil, invoice_total: nil, items: nil, note: nil, payment_details: nil, payment_term: nil, purchase_order: nil, remittance_address: nil, remittance_address_recipient: nil, service_address: nil, service_address_recipient: nil, service_end_date: nil, service_start_date: nil, shipping_address: nil, shipping_address_recipient: nil, state: nil, subtotal: nil, success: nil, tax_code: nil, tax_details: nil, total_discount: nil, total_tax: nil, ubl_document: nil, vatex: nil, vatex_note: nil, vendor_address: nil, vendor_address_recipient: nil, vendor_company_id: nil, vendor_email: nil, vendor_name: nil, vendor_tax_id: nil)
|
|
324
317
|
# Some parameter documentations has been truncated, see
|
|
325
318
|
# {EInvoiceAPI::Models::DocumentCreateFromPdfResponse} for more details.
|
|
326
319
|
#
|
|
@@ -372,8 +365,6 @@ module EInvoiceAPI
|
|
|
372
365
|
#
|
|
373
366
|
# @param payment_term [String, nil] The payment terms (e.g., 'Net 30', 'Due on receipt', '2/10 Net 30')
|
|
374
367
|
#
|
|
375
|
-
# @param previous_unpaid_balance [String, nil] The previous unpaid balance from prior invoices, if any. Must be positive and ro
|
|
376
|
-
#
|
|
377
368
|
# @param purchase_order [String, nil] The purchase order reference number
|
|
378
369
|
#
|
|
379
370
|
# @param remittance_address [String, nil] The address where payment should be sent or remitted to
|
|
@@ -434,7 +425,8 @@ module EInvoiceAPI
|
|
|
434
425
|
# @!attribute amount
|
|
435
426
|
# The invoice line net amount (BT-131), exclusive of VAT, inclusive of line level
|
|
436
427
|
# allowances and charges. Calculated as: ((unit_price / price_base_quantity) \*
|
|
437
|
-
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals
|
|
428
|
+
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals. Can be
|
|
429
|
+
# negative for credit notes or corrections.
|
|
438
430
|
#
|
|
439
431
|
# @return [String, nil]
|
|
440
432
|
optional :amount, String, nil?: true
|
|
@@ -456,13 +448,6 @@ module EInvoiceAPI
|
|
|
456
448
|
# @return [String, nil]
|
|
457
449
|
optional :description, String, nil?: true
|
|
458
450
|
|
|
459
|
-
# @!attribute price_base_quantity
|
|
460
|
-
# The item price base quantity (BT-149). The number of item units to which the
|
|
461
|
-
# price applies. Defaults to 1. Must be rounded to maximum 4 decimals
|
|
462
|
-
#
|
|
463
|
-
# @return [String, nil]
|
|
464
|
-
optional :price_base_quantity, String, nil?: true
|
|
465
|
-
|
|
466
451
|
# @!attribute product_code
|
|
467
452
|
# The product code of the line item.
|
|
468
453
|
#
|
|
@@ -471,13 +456,15 @@ module EInvoiceAPI
|
|
|
471
456
|
|
|
472
457
|
# @!attribute quantity
|
|
473
458
|
# The quantity of items (goods or services) that is the subject of the line item.
|
|
474
|
-
# Must be rounded to maximum 4 decimals
|
|
459
|
+
# Must be rounded to maximum 4 decimals. Can be negative for credit notes or
|
|
460
|
+
# corrections.
|
|
475
461
|
#
|
|
476
462
|
# @return [String, nil]
|
|
477
463
|
optional :quantity, String, nil?: true
|
|
478
464
|
|
|
479
465
|
# @!attribute tax
|
|
480
|
-
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals
|
|
466
|
+
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals.
|
|
467
|
+
# Can be negative for credit notes or corrections.
|
|
481
468
|
#
|
|
482
469
|
# @return [String, nil]
|
|
483
470
|
optional :tax, String, nil?: true
|
|
@@ -501,7 +488,7 @@ module EInvoiceAPI
|
|
|
501
488
|
# @return [String, nil]
|
|
502
489
|
optional :unit_price, String, nil?: true
|
|
503
490
|
|
|
504
|
-
# @!method initialize(allowances: nil, amount: nil, charges: nil, date: nil, description: nil,
|
|
491
|
+
# @!method initialize(allowances: nil, amount: nil, charges: nil, date: nil, description: nil, product_code: nil, quantity: nil, tax: nil, tax_rate: nil, unit: nil, unit_price: nil)
|
|
505
492
|
# Some parameter documentations has been truncated, see
|
|
506
493
|
# {EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item} for more details.
|
|
507
494
|
#
|
|
@@ -515,13 +502,11 @@ module EInvoiceAPI
|
|
|
515
502
|
#
|
|
516
503
|
# @param description [String, nil] The description of the line item.
|
|
517
504
|
#
|
|
518
|
-
# @param price_base_quantity [String, nil] The item price base quantity (BT-149). The number of item units to which the pri
|
|
519
|
-
#
|
|
520
505
|
# @param product_code [String, nil] The product code of the line item.
|
|
521
506
|
#
|
|
522
507
|
# @param quantity [String, nil] The quantity of items (goods or services) that is the subject of the line item.
|
|
523
508
|
#
|
|
524
|
-
# @param tax [String, nil] The total VAT amount for the line item. Must be rounded to maximum 2 decimals
|
|
509
|
+
# @param tax [String, nil] The total VAT amount for the line item. Must be rounded to maximum 2 decimals. C
|
|
525
510
|
#
|
|
526
511
|
# @param tax_rate [String, nil] The VAT rate of the line item expressed as percentage with 2 decimals
|
|
527
512
|
#
|
|
@@ -161,13 +161,6 @@ module EInvoiceAPI
|
|
|
161
161
|
# @return [String, nil]
|
|
162
162
|
optional :payment_term, String, nil?: true
|
|
163
163
|
|
|
164
|
-
# @!attribute previous_unpaid_balance
|
|
165
|
-
# The previous unpaid balance from prior invoices, if any. Must be positive and
|
|
166
|
-
# rounded to maximum 2 decimals
|
|
167
|
-
#
|
|
168
|
-
# @return [String, nil]
|
|
169
|
-
optional :previous_unpaid_balance, String, nil?: true
|
|
170
|
-
|
|
171
164
|
# @!attribute purchase_order
|
|
172
165
|
# The purchase order reference number
|
|
173
166
|
#
|
|
@@ -317,7 +310,7 @@ module EInvoiceAPI
|
|
|
317
310
|
# @return [String, nil]
|
|
318
311
|
optional :vendor_tax_id, String, nil?: true
|
|
319
312
|
|
|
320
|
-
# @!method initialize(id:, allowances: nil, amount_due: nil, attachments: nil, billing_address: nil, billing_address_recipient: nil, charges: nil, currency: nil, customer_address: nil, customer_address_recipient: nil, customer_company_id: nil, customer_email: nil, customer_id: nil, customer_name: nil, customer_tax_id: nil, direction: nil, document_type: nil, due_date: nil, invoice_date: nil, invoice_id: nil, invoice_total: nil, items: nil, note: nil, payment_details: nil, payment_term: nil,
|
|
313
|
+
# @!method initialize(id:, allowances: nil, amount_due: nil, attachments: nil, billing_address: nil, billing_address_recipient: nil, charges: nil, currency: nil, customer_address: nil, customer_address_recipient: nil, customer_company_id: nil, customer_email: nil, customer_id: nil, customer_name: nil, customer_tax_id: nil, direction: nil, document_type: nil, due_date: nil, invoice_date: nil, invoice_id: nil, invoice_total: nil, items: nil, note: nil, payment_details: nil, payment_term: nil, purchase_order: nil, remittance_address: nil, remittance_address_recipient: nil, service_address: nil, service_address_recipient: nil, service_end_date: nil, service_start_date: nil, shipping_address: nil, shipping_address_recipient: nil, state: nil, subtotal: nil, tax_code: nil, tax_details: nil, total_discount: nil, total_tax: nil, vatex: nil, vatex_note: nil, vendor_address: nil, vendor_address_recipient: nil, vendor_company_id: nil, vendor_email: nil, vendor_name: nil, vendor_tax_id: nil)
|
|
321
314
|
# Some parameter documentations has been truncated, see
|
|
322
315
|
# {EInvoiceAPI::Models::DocumentResponse} for more details.
|
|
323
316
|
#
|
|
@@ -371,8 +364,6 @@ module EInvoiceAPI
|
|
|
371
364
|
#
|
|
372
365
|
# @param payment_term [String, nil] The payment terms (e.g., 'Net 30', 'Due on receipt', '2/10 Net 30')
|
|
373
366
|
#
|
|
374
|
-
# @param previous_unpaid_balance [String, nil] The previous unpaid balance from prior invoices, if any. Must be positive and ro
|
|
375
|
-
#
|
|
376
367
|
# @param purchase_order [String, nil] The purchase order reference number
|
|
377
368
|
#
|
|
378
369
|
# @param remittance_address [String, nil] The address where payment should be sent or remitted to
|
|
@@ -824,7 +815,8 @@ module EInvoiceAPI
|
|
|
824
815
|
# @!attribute amount
|
|
825
816
|
# The invoice line net amount (BT-131), exclusive of VAT, inclusive of line level
|
|
826
817
|
# allowances and charges. Calculated as: ((unit_price / price_base_quantity) \*
|
|
827
|
-
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals
|
|
818
|
+
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals. Can be
|
|
819
|
+
# negative for credit notes or corrections.
|
|
828
820
|
#
|
|
829
821
|
# @return [String, nil]
|
|
830
822
|
optional :amount, String, nil?: true
|
|
@@ -846,13 +838,6 @@ module EInvoiceAPI
|
|
|
846
838
|
# @return [String, nil]
|
|
847
839
|
optional :description, String, nil?: true
|
|
848
840
|
|
|
849
|
-
# @!attribute price_base_quantity
|
|
850
|
-
# The item price base quantity (BT-149). The number of item units to which the
|
|
851
|
-
# price applies. Defaults to 1. Must be rounded to maximum 4 decimals
|
|
852
|
-
#
|
|
853
|
-
# @return [String, nil]
|
|
854
|
-
optional :price_base_quantity, String, nil?: true
|
|
855
|
-
|
|
856
841
|
# @!attribute product_code
|
|
857
842
|
# The product code of the line item.
|
|
858
843
|
#
|
|
@@ -861,13 +846,15 @@ module EInvoiceAPI
|
|
|
861
846
|
|
|
862
847
|
# @!attribute quantity
|
|
863
848
|
# The quantity of items (goods or services) that is the subject of the line item.
|
|
864
|
-
# Must be rounded to maximum 4 decimals
|
|
849
|
+
# Must be rounded to maximum 4 decimals. Can be negative for credit notes or
|
|
850
|
+
# corrections.
|
|
865
851
|
#
|
|
866
852
|
# @return [String, nil]
|
|
867
853
|
optional :quantity, String, nil?: true
|
|
868
854
|
|
|
869
855
|
# @!attribute tax
|
|
870
|
-
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals
|
|
856
|
+
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals.
|
|
857
|
+
# Can be negative for credit notes or corrections.
|
|
871
858
|
#
|
|
872
859
|
# @return [String, nil]
|
|
873
860
|
optional :tax, String, nil?: true
|
|
@@ -891,7 +878,7 @@ module EInvoiceAPI
|
|
|
891
878
|
# @return [String, nil]
|
|
892
879
|
optional :unit_price, String, nil?: true
|
|
893
880
|
|
|
894
|
-
# @!method initialize(allowances: nil, amount: nil, charges: nil, date: nil, description: nil,
|
|
881
|
+
# @!method initialize(allowances: nil, amount: nil, charges: nil, date: nil, description: nil, product_code: nil, quantity: nil, tax: nil, tax_rate: nil, unit: nil, unit_price: nil)
|
|
895
882
|
# Some parameter documentations has been truncated, see
|
|
896
883
|
# {EInvoiceAPI::Models::DocumentResponse::Item} for more details.
|
|
897
884
|
#
|
|
@@ -905,13 +892,11 @@ module EInvoiceAPI
|
|
|
905
892
|
#
|
|
906
893
|
# @param description [String, nil] The description of the line item.
|
|
907
894
|
#
|
|
908
|
-
# @param price_base_quantity [String, nil] The item price base quantity (BT-149). The number of item units to which the pri
|
|
909
|
-
#
|
|
910
895
|
# @param product_code [String, nil] The product code of the line item.
|
|
911
896
|
#
|
|
912
897
|
# @param quantity [String, nil] The quantity of items (goods or services) that is the subject of the line item.
|
|
913
898
|
#
|
|
914
|
-
# @param tax [String, nil] The total VAT amount for the line item. Must be rounded to maximum 2 decimals
|
|
899
|
+
# @param tax [String, nil] The total VAT amount for the line item. Must be rounded to maximum 2 decimals. C
|
|
915
900
|
#
|
|
916
901
|
# @param tax_rate [String, nil] The VAT rate of the line item expressed as percentage with 2 decimals
|
|
917
902
|
#
|
|
@@ -2163,7 +2163,8 @@ module EInvoiceAPI
|
|
|
2163
2163
|
|
|
2164
2164
|
# The invoice line net amount (BT-131), exclusive of VAT, inclusive of line level
|
|
2165
2165
|
# allowances and charges. Calculated as: ((unit_price / price_base_quantity) \*
|
|
2166
|
-
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals
|
|
2166
|
+
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals. Can be
|
|
2167
|
+
# negative for credit notes or corrections.
|
|
2167
2168
|
sig do
|
|
2168
2169
|
returns(
|
|
2169
2170
|
T.nilable(EInvoiceAPI::DocumentCreate::Item::Amount::Variants)
|
|
@@ -2186,23 +2187,13 @@ module EInvoiceAPI
|
|
|
2186
2187
|
sig { returns(T.nilable(String)) }
|
|
2187
2188
|
attr_accessor :description
|
|
2188
2189
|
|
|
2189
|
-
# The item price base quantity (BT-149). The number of item units to which the
|
|
2190
|
-
# price applies. Defaults to 1. Must be rounded to maximum 4 decimals
|
|
2191
|
-
sig do
|
|
2192
|
-
returns(
|
|
2193
|
-
T.nilable(
|
|
2194
|
-
EInvoiceAPI::DocumentCreate::Item::PriceBaseQuantity::Variants
|
|
2195
|
-
)
|
|
2196
|
-
)
|
|
2197
|
-
end
|
|
2198
|
-
attr_accessor :price_base_quantity
|
|
2199
|
-
|
|
2200
2190
|
# The product code of the line item.
|
|
2201
2191
|
sig { returns(T.nilable(String)) }
|
|
2202
2192
|
attr_accessor :product_code
|
|
2203
2193
|
|
|
2204
2194
|
# The quantity of items (goods or services) that is the subject of the line item.
|
|
2205
|
-
# Must be rounded to maximum 4 decimals
|
|
2195
|
+
# Must be rounded to maximum 4 decimals. Can be negative for credit notes or
|
|
2196
|
+
# corrections.
|
|
2206
2197
|
sig do
|
|
2207
2198
|
returns(
|
|
2208
2199
|
T.nilable(EInvoiceAPI::DocumentCreate::Item::Quantity::Variants)
|
|
@@ -2210,7 +2201,8 @@ module EInvoiceAPI
|
|
|
2210
2201
|
end
|
|
2211
2202
|
attr_accessor :quantity
|
|
2212
2203
|
|
|
2213
|
-
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals
|
|
2204
|
+
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals.
|
|
2205
|
+
# Can be negative for credit notes or corrections.
|
|
2214
2206
|
sig do
|
|
2215
2207
|
returns(T.nilable(EInvoiceAPI::DocumentCreate::Item::Tax::Variants))
|
|
2216
2208
|
end
|
|
@@ -2251,10 +2243,6 @@ module EInvoiceAPI
|
|
|
2251
2243
|
),
|
|
2252
2244
|
date: NilClass,
|
|
2253
2245
|
description: T.nilable(String),
|
|
2254
|
-
price_base_quantity:
|
|
2255
|
-
T.nilable(
|
|
2256
|
-
EInvoiceAPI::DocumentCreate::Item::PriceBaseQuantity::Variants
|
|
2257
|
-
),
|
|
2258
2246
|
product_code: T.nilable(String),
|
|
2259
2247
|
quantity:
|
|
2260
2248
|
T.nilable(EInvoiceAPI::DocumentCreate::Item::Quantity::Variants),
|
|
@@ -2271,22 +2259,22 @@ module EInvoiceAPI
|
|
|
2271
2259
|
allowances: nil,
|
|
2272
2260
|
# The invoice line net amount (BT-131), exclusive of VAT, inclusive of line level
|
|
2273
2261
|
# allowances and charges. Calculated as: ((unit_price / price_base_quantity) \*
|
|
2274
|
-
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals
|
|
2262
|
+
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals. Can be
|
|
2263
|
+
# negative for credit notes or corrections.
|
|
2275
2264
|
amount: nil,
|
|
2276
2265
|
# The charges of the line item.
|
|
2277
2266
|
charges: nil,
|
|
2278
2267
|
date: nil,
|
|
2279
2268
|
# The description of the line item.
|
|
2280
2269
|
description: nil,
|
|
2281
|
-
# The item price base quantity (BT-149). The number of item units to which the
|
|
2282
|
-
# price applies. Defaults to 1. Must be rounded to maximum 4 decimals
|
|
2283
|
-
price_base_quantity: nil,
|
|
2284
2270
|
# The product code of the line item.
|
|
2285
2271
|
product_code: nil,
|
|
2286
2272
|
# The quantity of items (goods or services) that is the subject of the line item.
|
|
2287
|
-
# Must be rounded to maximum 4 decimals
|
|
2273
|
+
# Must be rounded to maximum 4 decimals. Can be negative for credit notes or
|
|
2274
|
+
# corrections.
|
|
2288
2275
|
quantity: nil,
|
|
2289
|
-
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals
|
|
2276
|
+
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals.
|
|
2277
|
+
# Can be negative for credit notes or corrections.
|
|
2290
2278
|
tax: nil,
|
|
2291
2279
|
# The VAT rate of the line item expressed as percentage with 2 decimals
|
|
2292
2280
|
tax_rate: nil,
|
|
@@ -2311,10 +2299,6 @@ module EInvoiceAPI
|
|
|
2311
2299
|
T.nilable(T::Array[EInvoiceAPI::DocumentCreate::Item::Charge]),
|
|
2312
2300
|
date: NilClass,
|
|
2313
2301
|
description: T.nilable(String),
|
|
2314
|
-
price_base_quantity:
|
|
2315
|
-
T.nilable(
|
|
2316
|
-
EInvoiceAPI::DocumentCreate::Item::PriceBaseQuantity::Variants
|
|
2317
|
-
),
|
|
2318
2302
|
product_code: T.nilable(String),
|
|
2319
2303
|
quantity:
|
|
2320
2304
|
T.nilable(
|
|
@@ -2771,7 +2755,8 @@ module EInvoiceAPI
|
|
|
2771
2755
|
|
|
2772
2756
|
# The invoice line net amount (BT-131), exclusive of VAT, inclusive of line level
|
|
2773
2757
|
# allowances and charges. Calculated as: ((unit_price / price_base_quantity) \*
|
|
2774
|
-
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals
|
|
2758
|
+
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals. Can be
|
|
2759
|
+
# negative for credit notes or corrections.
|
|
2775
2760
|
module Amount
|
|
2776
2761
|
extend EInvoiceAPI::Internal::Type::Union
|
|
2777
2762
|
|
|
@@ -4012,26 +3997,9 @@ module EInvoiceAPI
|
|
|
4012
3997
|
end
|
|
4013
3998
|
end
|
|
4014
3999
|
|
|
4015
|
-
# The item price base quantity (BT-149). The number of item units to which the
|
|
4016
|
-
# price applies. Defaults to 1. Must be rounded to maximum 4 decimals
|
|
4017
|
-
module PriceBaseQuantity
|
|
4018
|
-
extend EInvoiceAPI::Internal::Type::Union
|
|
4019
|
-
|
|
4020
|
-
Variants = T.type_alias { T.any(Float, String) }
|
|
4021
|
-
|
|
4022
|
-
sig do
|
|
4023
|
-
override.returns(
|
|
4024
|
-
T::Array[
|
|
4025
|
-
EInvoiceAPI::DocumentCreate::Item::PriceBaseQuantity::Variants
|
|
4026
|
-
]
|
|
4027
|
-
)
|
|
4028
|
-
end
|
|
4029
|
-
def self.variants
|
|
4030
|
-
end
|
|
4031
|
-
end
|
|
4032
|
-
|
|
4033
4000
|
# The quantity of items (goods or services) that is the subject of the line item.
|
|
4034
|
-
# Must be rounded to maximum 4 decimals
|
|
4001
|
+
# Must be rounded to maximum 4 decimals. Can be negative for credit notes or
|
|
4002
|
+
# corrections.
|
|
4035
4003
|
module Quantity
|
|
4036
4004
|
extend EInvoiceAPI::Internal::Type::Union
|
|
4037
4005
|
|
|
@@ -4046,7 +4014,8 @@ module EInvoiceAPI
|
|
|
4046
4014
|
end
|
|
4047
4015
|
end
|
|
4048
4016
|
|
|
4049
|
-
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals
|
|
4017
|
+
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals.
|
|
4018
|
+
# Can be negative for credit notes or corrections.
|
|
4050
4019
|
module Tax
|
|
4051
4020
|
extend EInvoiceAPI::Internal::Type::Union
|
|
4052
4021
|
|
|
@@ -133,11 +133,6 @@ module EInvoiceAPI
|
|
|
133
133
|
sig { returns(T.nilable(String)) }
|
|
134
134
|
attr_accessor :payment_term
|
|
135
135
|
|
|
136
|
-
# The previous unpaid balance from prior invoices, if any. Must be positive and
|
|
137
|
-
# rounded to maximum 2 decimals
|
|
138
|
-
sig { returns(T.nilable(String)) }
|
|
139
|
-
attr_accessor :previous_unpaid_balance
|
|
140
|
-
|
|
141
136
|
# The purchase order reference number
|
|
142
137
|
sig { returns(T.nilable(String)) }
|
|
143
138
|
attr_accessor :purchase_order
|
|
@@ -312,7 +307,6 @@ module EInvoiceAPI
|
|
|
312
307
|
payment_details:
|
|
313
308
|
T.nilable(T::Array[EInvoiceAPI::PaymentDetailCreate::OrHash]),
|
|
314
309
|
payment_term: T.nilable(String),
|
|
315
|
-
previous_unpaid_balance: T.nilable(String),
|
|
316
310
|
purchase_order: T.nilable(String),
|
|
317
311
|
remittance_address: T.nilable(String),
|
|
318
312
|
remittance_address_recipient: T.nilable(String),
|
|
@@ -397,9 +391,6 @@ module EInvoiceAPI
|
|
|
397
391
|
payment_details: nil,
|
|
398
392
|
# The payment terms (e.g., 'Net 30', 'Due on receipt', '2/10 Net 30')
|
|
399
393
|
payment_term: nil,
|
|
400
|
-
# The previous unpaid balance from prior invoices, if any. Must be positive and
|
|
401
|
-
# rounded to maximum 2 decimals
|
|
402
|
-
previous_unpaid_balance: nil,
|
|
403
394
|
# The purchase order reference number
|
|
404
395
|
purchase_order: nil,
|
|
405
396
|
# The address where payment should be sent or remitted to
|
|
@@ -494,7 +485,6 @@ module EInvoiceAPI
|
|
|
494
485
|
payment_details:
|
|
495
486
|
T.nilable(T::Array[EInvoiceAPI::PaymentDetailCreate]),
|
|
496
487
|
payment_term: T.nilable(String),
|
|
497
|
-
previous_unpaid_balance: T.nilable(String),
|
|
498
488
|
purchase_order: T.nilable(String),
|
|
499
489
|
remittance_address: T.nilable(String),
|
|
500
490
|
remittance_address_recipient: T.nilable(String),
|
|
@@ -550,7 +540,8 @@ module EInvoiceAPI
|
|
|
550
540
|
|
|
551
541
|
# The invoice line net amount (BT-131), exclusive of VAT, inclusive of line level
|
|
552
542
|
# allowances and charges. Calculated as: ((unit_price / price_base_quantity) \*
|
|
553
|
-
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals
|
|
543
|
+
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals. Can be
|
|
544
|
+
# negative for credit notes or corrections.
|
|
554
545
|
sig { returns(T.nilable(String)) }
|
|
555
546
|
attr_accessor :amount
|
|
556
547
|
|
|
@@ -565,21 +556,18 @@ module EInvoiceAPI
|
|
|
565
556
|
sig { returns(T.nilable(String)) }
|
|
566
557
|
attr_accessor :description
|
|
567
558
|
|
|
568
|
-
# The item price base quantity (BT-149). The number of item units to which the
|
|
569
|
-
# price applies. Defaults to 1. Must be rounded to maximum 4 decimals
|
|
570
|
-
sig { returns(T.nilable(String)) }
|
|
571
|
-
attr_accessor :price_base_quantity
|
|
572
|
-
|
|
573
559
|
# The product code of the line item.
|
|
574
560
|
sig { returns(T.nilable(String)) }
|
|
575
561
|
attr_accessor :product_code
|
|
576
562
|
|
|
577
563
|
# The quantity of items (goods or services) that is the subject of the line item.
|
|
578
|
-
# Must be rounded to maximum 4 decimals
|
|
564
|
+
# Must be rounded to maximum 4 decimals. Can be negative for credit notes or
|
|
565
|
+
# corrections.
|
|
579
566
|
sig { returns(T.nilable(String)) }
|
|
580
567
|
attr_accessor :quantity
|
|
581
568
|
|
|
582
|
-
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals
|
|
569
|
+
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals.
|
|
570
|
+
# Can be negative for credit notes or corrections.
|
|
583
571
|
sig { returns(T.nilable(String)) }
|
|
584
572
|
attr_accessor :tax
|
|
585
573
|
|
|
@@ -603,7 +591,6 @@ module EInvoiceAPI
|
|
|
603
591
|
charges: T.nilable(T::Array[EInvoiceAPI::Charge::OrHash]),
|
|
604
592
|
date: NilClass,
|
|
605
593
|
description: T.nilable(String),
|
|
606
|
-
price_base_quantity: T.nilable(String),
|
|
607
594
|
product_code: T.nilable(String),
|
|
608
595
|
quantity: T.nilable(String),
|
|
609
596
|
tax: T.nilable(String),
|
|
@@ -617,22 +604,22 @@ module EInvoiceAPI
|
|
|
617
604
|
allowances: nil,
|
|
618
605
|
# The invoice line net amount (BT-131), exclusive of VAT, inclusive of line level
|
|
619
606
|
# allowances and charges. Calculated as: ((unit_price / price_base_quantity) \*
|
|
620
|
-
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals
|
|
607
|
+
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals. Can be
|
|
608
|
+
# negative for credit notes or corrections.
|
|
621
609
|
amount: nil,
|
|
622
610
|
# The charges of the line item.
|
|
623
611
|
charges: nil,
|
|
624
612
|
date: nil,
|
|
625
613
|
# The description of the line item.
|
|
626
614
|
description: nil,
|
|
627
|
-
# The item price base quantity (BT-149). The number of item units to which the
|
|
628
|
-
# price applies. Defaults to 1. Must be rounded to maximum 4 decimals
|
|
629
|
-
price_base_quantity: nil,
|
|
630
615
|
# The product code of the line item.
|
|
631
616
|
product_code: nil,
|
|
632
617
|
# The quantity of items (goods or services) that is the subject of the line item.
|
|
633
|
-
# Must be rounded to maximum 4 decimals
|
|
618
|
+
# Must be rounded to maximum 4 decimals. Can be negative for credit notes or
|
|
619
|
+
# corrections.
|
|
634
620
|
quantity: nil,
|
|
635
|
-
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals
|
|
621
|
+
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals.
|
|
622
|
+
# Can be negative for credit notes or corrections.
|
|
636
623
|
tax: nil,
|
|
637
624
|
# The VAT rate of the line item expressed as percentage with 2 decimals
|
|
638
625
|
tax_rate: nil,
|
|
@@ -652,7 +639,6 @@ module EInvoiceAPI
|
|
|
652
639
|
charges: T.nilable(T::Array[EInvoiceAPI::Charge]),
|
|
653
640
|
date: NilClass,
|
|
654
641
|
description: T.nilable(String),
|
|
655
|
-
price_base_quantity: T.nilable(String),
|
|
656
642
|
product_code: T.nilable(String),
|
|
657
643
|
quantity: T.nilable(String),
|
|
658
644
|
tax: T.nilable(String),
|
|
@@ -124,11 +124,6 @@ module EInvoiceAPI
|
|
|
124
124
|
sig { returns(T.nilable(String)) }
|
|
125
125
|
attr_accessor :payment_term
|
|
126
126
|
|
|
127
|
-
# The previous unpaid balance from prior invoices, if any. Must be positive and
|
|
128
|
-
# rounded to maximum 2 decimals
|
|
129
|
-
sig { returns(T.nilable(String)) }
|
|
130
|
-
attr_accessor :previous_unpaid_balance
|
|
131
|
-
|
|
132
127
|
# The purchase order reference number
|
|
133
128
|
sig { returns(T.nilable(String)) }
|
|
134
129
|
attr_accessor :purchase_order
|
|
@@ -282,7 +277,6 @@ module EInvoiceAPI
|
|
|
282
277
|
T::Array[EInvoiceAPI::DocumentResponse::PaymentDetail::OrHash]
|
|
283
278
|
),
|
|
284
279
|
payment_term: T.nilable(String),
|
|
285
|
-
previous_unpaid_balance: T.nilable(String),
|
|
286
280
|
purchase_order: T.nilable(String),
|
|
287
281
|
remittance_address: T.nilable(String),
|
|
288
282
|
remittance_address_recipient: T.nilable(String),
|
|
@@ -359,9 +353,6 @@ module EInvoiceAPI
|
|
|
359
353
|
payment_details: nil,
|
|
360
354
|
# The payment terms (e.g., 'Net 30', 'Due on receipt', '2/10 Net 30')
|
|
361
355
|
payment_term: nil,
|
|
362
|
-
# The previous unpaid balance from prior invoices, if any. Must be positive and
|
|
363
|
-
# rounded to maximum 2 decimals
|
|
364
|
-
previous_unpaid_balance: nil,
|
|
365
356
|
# The purchase order reference number
|
|
366
357
|
purchase_order: nil,
|
|
367
358
|
# The address where payment should be sent or remitted to
|
|
@@ -451,7 +442,6 @@ module EInvoiceAPI
|
|
|
451
442
|
payment_details:
|
|
452
443
|
T.nilable(T::Array[EInvoiceAPI::DocumentResponse::PaymentDetail]),
|
|
453
444
|
payment_term: T.nilable(String),
|
|
454
|
-
previous_unpaid_balance: T.nilable(String),
|
|
455
445
|
purchase_order: T.nilable(String),
|
|
456
446
|
remittance_address: T.nilable(String),
|
|
457
447
|
remittance_address_recipient: T.nilable(String),
|
|
@@ -1910,7 +1900,8 @@ module EInvoiceAPI
|
|
|
1910
1900
|
|
|
1911
1901
|
# The invoice line net amount (BT-131), exclusive of VAT, inclusive of line level
|
|
1912
1902
|
# allowances and charges. Calculated as: ((unit_price / price_base_quantity) \*
|
|
1913
|
-
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals
|
|
1903
|
+
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals. Can be
|
|
1904
|
+
# negative for credit notes or corrections.
|
|
1914
1905
|
sig { returns(T.nilable(String)) }
|
|
1915
1906
|
attr_accessor :amount
|
|
1916
1907
|
|
|
@@ -1925,21 +1916,18 @@ module EInvoiceAPI
|
|
|
1925
1916
|
sig { returns(T.nilable(String)) }
|
|
1926
1917
|
attr_accessor :description
|
|
1927
1918
|
|
|
1928
|
-
# The item price base quantity (BT-149). The number of item units to which the
|
|
1929
|
-
# price applies. Defaults to 1. Must be rounded to maximum 4 decimals
|
|
1930
|
-
sig { returns(T.nilable(String)) }
|
|
1931
|
-
attr_accessor :price_base_quantity
|
|
1932
|
-
|
|
1933
1919
|
# The product code of the line item.
|
|
1934
1920
|
sig { returns(T.nilable(String)) }
|
|
1935
1921
|
attr_accessor :product_code
|
|
1936
1922
|
|
|
1937
1923
|
# The quantity of items (goods or services) that is the subject of the line item.
|
|
1938
|
-
# Must be rounded to maximum 4 decimals
|
|
1924
|
+
# Must be rounded to maximum 4 decimals. Can be negative for credit notes or
|
|
1925
|
+
# corrections.
|
|
1939
1926
|
sig { returns(T.nilable(String)) }
|
|
1940
1927
|
attr_accessor :quantity
|
|
1941
1928
|
|
|
1942
|
-
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals
|
|
1929
|
+
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals.
|
|
1930
|
+
# Can be negative for credit notes or corrections.
|
|
1943
1931
|
sig { returns(T.nilable(String)) }
|
|
1944
1932
|
attr_accessor :tax
|
|
1945
1933
|
|
|
@@ -1963,7 +1951,6 @@ module EInvoiceAPI
|
|
|
1963
1951
|
charges: T.nilable(T::Array[EInvoiceAPI::Charge::OrHash]),
|
|
1964
1952
|
date: NilClass,
|
|
1965
1953
|
description: T.nilable(String),
|
|
1966
|
-
price_base_quantity: T.nilable(String),
|
|
1967
1954
|
product_code: T.nilable(String),
|
|
1968
1955
|
quantity: T.nilable(String),
|
|
1969
1956
|
tax: T.nilable(String),
|
|
@@ -1977,22 +1964,22 @@ module EInvoiceAPI
|
|
|
1977
1964
|
allowances: nil,
|
|
1978
1965
|
# The invoice line net amount (BT-131), exclusive of VAT, inclusive of line level
|
|
1979
1966
|
# allowances and charges. Calculated as: ((unit_price / price_base_quantity) \*
|
|
1980
|
-
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals
|
|
1967
|
+
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals. Can be
|
|
1968
|
+
# negative for credit notes or corrections.
|
|
1981
1969
|
amount: nil,
|
|
1982
1970
|
# The charges of the line item.
|
|
1983
1971
|
charges: nil,
|
|
1984
1972
|
date: nil,
|
|
1985
1973
|
# The description of the line item.
|
|
1986
1974
|
description: nil,
|
|
1987
|
-
# The item price base quantity (BT-149). The number of item units to which the
|
|
1988
|
-
# price applies. Defaults to 1. Must be rounded to maximum 4 decimals
|
|
1989
|
-
price_base_quantity: nil,
|
|
1990
1975
|
# The product code of the line item.
|
|
1991
1976
|
product_code: nil,
|
|
1992
1977
|
# The quantity of items (goods or services) that is the subject of the line item.
|
|
1993
|
-
# Must be rounded to maximum 4 decimals
|
|
1978
|
+
# Must be rounded to maximum 4 decimals. Can be negative for credit notes or
|
|
1979
|
+
# corrections.
|
|
1994
1980
|
quantity: nil,
|
|
1995
|
-
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals
|
|
1981
|
+
# The total VAT amount for the line item. Must be rounded to maximum 2 decimals.
|
|
1982
|
+
# Can be negative for credit notes or corrections.
|
|
1996
1983
|
tax: nil,
|
|
1997
1984
|
# The VAT rate of the line item expressed as percentage with 2 decimals
|
|
1998
1985
|
tax_rate: nil,
|
|
@@ -2012,7 +1999,6 @@ module EInvoiceAPI
|
|
|
2012
1999
|
charges: T.nilable(T::Array[EInvoiceAPI::Charge]),
|
|
2013
2000
|
date: NilClass,
|
|
2014
2001
|
description: T.nilable(String),
|
|
2015
|
-
price_base_quantity: T.nilable(String),
|
|
2016
2002
|
product_code: T.nilable(String),
|
|
2017
2003
|
quantity: T.nilable(String),
|
|
2018
2004
|
tax: T.nilable(String),
|
|
@@ -1115,6 +1115,7 @@ module EInvoiceAPI
|
|
|
1115
1115
|
NAR = T.let(:NAR, EInvoiceAPI::UnitOfMeasureCode::TaggedSymbol)
|
|
1116
1116
|
C62 = T.let(:C62, EInvoiceAPI::UnitOfMeasureCode::TaggedSymbol)
|
|
1117
1117
|
LTR = T.let(:LTR, EInvoiceAPI::UnitOfMeasureCode::TaggedSymbol)
|
|
1118
|
+
H87 = T.let(:H87, EInvoiceAPI::UnitOfMeasureCode::TaggedSymbol)
|
|
1118
1119
|
|
|
1119
1120
|
sig do
|
|
1120
1121
|
override.returns(T::Array[EInvoiceAPI::UnitOfMeasureCode::TaggedSymbol])
|
|
@@ -910,7 +910,6 @@ module EInvoiceAPI
|
|
|
910
910
|
charges: ::Array[EInvoiceAPI::DocumentCreate::Item::Charge]?,
|
|
911
911
|
date: nil,
|
|
912
912
|
description: String?,
|
|
913
|
-
price_base_quantity: EInvoiceAPI::Models::DocumentCreate::Item::price_base_quantity?,
|
|
914
913
|
product_code: String?,
|
|
915
914
|
quantity: EInvoiceAPI::Models::DocumentCreate::Item::quantity?,
|
|
916
915
|
tax: EInvoiceAPI::Models::DocumentCreate::Item::tax?,
|
|
@@ -930,8 +929,6 @@ module EInvoiceAPI
|
|
|
930
929
|
|
|
931
930
|
attr_accessor description: String?
|
|
932
931
|
|
|
933
|
-
attr_accessor price_base_quantity: EInvoiceAPI::Models::DocumentCreate::Item::price_base_quantity?
|
|
934
|
-
|
|
935
932
|
attr_accessor product_code: String?
|
|
936
933
|
|
|
937
934
|
attr_accessor quantity: EInvoiceAPI::Models::DocumentCreate::Item::quantity?
|
|
@@ -950,7 +947,6 @@ module EInvoiceAPI
|
|
|
950
947
|
?charges: ::Array[EInvoiceAPI::DocumentCreate::Item::Charge]?,
|
|
951
948
|
?date: nil,
|
|
952
949
|
?description: String?,
|
|
953
|
-
?price_base_quantity: EInvoiceAPI::Models::DocumentCreate::Item::price_base_quantity?,
|
|
954
950
|
?product_code: String?,
|
|
955
951
|
?quantity: EInvoiceAPI::Models::DocumentCreate::Item::quantity?,
|
|
956
952
|
?tax: EInvoiceAPI::Models::DocumentCreate::Item::tax?,
|
|
@@ -965,7 +961,6 @@ module EInvoiceAPI
|
|
|
965
961
|
charges: ::Array[EInvoiceAPI::DocumentCreate::Item::Charge]?,
|
|
966
962
|
date: nil,
|
|
967
963
|
description: String?,
|
|
968
|
-
price_base_quantity: EInvoiceAPI::Models::DocumentCreate::Item::price_base_quantity?,
|
|
969
964
|
product_code: String?,
|
|
970
965
|
quantity: EInvoiceAPI::Models::DocumentCreate::Item::quantity?,
|
|
971
966
|
tax: EInvoiceAPI::Models::DocumentCreate::Item::tax?,
|
|
@@ -1594,14 +1589,6 @@ module EInvoiceAPI
|
|
|
1594
1589
|
end
|
|
1595
1590
|
end
|
|
1596
1591
|
|
|
1597
|
-
type price_base_quantity = Float | String
|
|
1598
|
-
|
|
1599
|
-
module PriceBaseQuantity
|
|
1600
|
-
extend EInvoiceAPI::Internal::Type::Union
|
|
1601
|
-
|
|
1602
|
-
def self?.variants: -> ::Array[EInvoiceAPI::Models::DocumentCreate::Item::price_base_quantity]
|
|
1603
|
-
end
|
|
1604
|
-
|
|
1605
1592
|
type quantity = Float | String
|
|
1606
1593
|
|
|
1607
1594
|
module Quantity
|
|
@@ -26,7 +26,6 @@ module EInvoiceAPI
|
|
|
26
26
|
note: String?,
|
|
27
27
|
payment_details: ::Array[EInvoiceAPI::PaymentDetailCreate]?,
|
|
28
28
|
payment_term: String?,
|
|
29
|
-
previous_unpaid_balance: String?,
|
|
30
29
|
purchase_order: String?,
|
|
31
30
|
remittance_address: String?,
|
|
32
31
|
remittance_address_recipient: String?,
|
|
@@ -119,8 +118,6 @@ module EInvoiceAPI
|
|
|
119
118
|
|
|
120
119
|
attr_accessor payment_term: String?
|
|
121
120
|
|
|
122
|
-
attr_accessor previous_unpaid_balance: String?
|
|
123
|
-
|
|
124
121
|
attr_accessor purchase_order: String?
|
|
125
122
|
|
|
126
123
|
attr_accessor remittance_address: String?
|
|
@@ -206,7 +203,6 @@ module EInvoiceAPI
|
|
|
206
203
|
?note: String?,
|
|
207
204
|
?payment_details: ::Array[EInvoiceAPI::PaymentDetailCreate]?,
|
|
208
205
|
?payment_term: String?,
|
|
209
|
-
?previous_unpaid_balance: String?,
|
|
210
206
|
?purchase_order: String?,
|
|
211
207
|
?remittance_address: String?,
|
|
212
208
|
?remittance_address_recipient: String?,
|
|
@@ -259,7 +255,6 @@ module EInvoiceAPI
|
|
|
259
255
|
note: String?,
|
|
260
256
|
payment_details: ::Array[EInvoiceAPI::PaymentDetailCreate]?,
|
|
261
257
|
payment_term: String?,
|
|
262
|
-
previous_unpaid_balance: String?,
|
|
263
258
|
purchase_order: String?,
|
|
264
259
|
remittance_address: String?,
|
|
265
260
|
remittance_address_recipient: String?,
|
|
@@ -294,7 +289,6 @@ module EInvoiceAPI
|
|
|
294
289
|
charges: ::Array[EInvoiceAPI::Charge]?,
|
|
295
290
|
date: nil,
|
|
296
291
|
description: String?,
|
|
297
|
-
price_base_quantity: String?,
|
|
298
292
|
product_code: String?,
|
|
299
293
|
quantity: String?,
|
|
300
294
|
tax: String?,
|
|
@@ -314,8 +308,6 @@ module EInvoiceAPI
|
|
|
314
308
|
|
|
315
309
|
attr_accessor description: String?
|
|
316
310
|
|
|
317
|
-
attr_accessor price_base_quantity: String?
|
|
318
|
-
|
|
319
311
|
attr_accessor product_code: String?
|
|
320
312
|
|
|
321
313
|
attr_accessor quantity: String?
|
|
@@ -334,7 +326,6 @@ module EInvoiceAPI
|
|
|
334
326
|
?charges: ::Array[EInvoiceAPI::Charge]?,
|
|
335
327
|
?date: nil,
|
|
336
328
|
?description: String?,
|
|
337
|
-
?price_base_quantity: String?,
|
|
338
329
|
?product_code: String?,
|
|
339
330
|
?quantity: String?,
|
|
340
331
|
?tax: String?,
|
|
@@ -349,7 +340,6 @@ module EInvoiceAPI
|
|
|
349
340
|
charges: ::Array[EInvoiceAPI::Charge]?,
|
|
350
341
|
date: nil,
|
|
351
342
|
description: String?,
|
|
352
|
-
price_base_quantity: String?,
|
|
353
343
|
product_code: String?,
|
|
354
344
|
quantity: String?,
|
|
355
345
|
tax: String?,
|
|
@@ -27,7 +27,6 @@ module EInvoiceAPI
|
|
|
27
27
|
note: String?,
|
|
28
28
|
payment_details: ::Array[EInvoiceAPI::DocumentResponse::PaymentDetail]?,
|
|
29
29
|
payment_term: String?,
|
|
30
|
-
previous_unpaid_balance: String?,
|
|
31
30
|
purchase_order: String?,
|
|
32
31
|
remittance_address: String?,
|
|
33
32
|
remittance_address_recipient: String?,
|
|
@@ -116,8 +115,6 @@ module EInvoiceAPI
|
|
|
116
115
|
|
|
117
116
|
attr_accessor payment_term: String?
|
|
118
117
|
|
|
119
|
-
attr_accessor previous_unpaid_balance: String?
|
|
120
|
-
|
|
121
118
|
attr_accessor purchase_order: String?
|
|
122
119
|
|
|
123
120
|
attr_accessor remittance_address: String?
|
|
@@ -198,7 +195,6 @@ module EInvoiceAPI
|
|
|
198
195
|
?note: String?,
|
|
199
196
|
?payment_details: ::Array[EInvoiceAPI::DocumentResponse::PaymentDetail]?,
|
|
200
197
|
?payment_term: String?,
|
|
201
|
-
?previous_unpaid_balance: String?,
|
|
202
198
|
?purchase_order: String?,
|
|
203
199
|
?remittance_address: String?,
|
|
204
200
|
?remittance_address_recipient: String?,
|
|
@@ -250,7 +246,6 @@ module EInvoiceAPI
|
|
|
250
246
|
note: String?,
|
|
251
247
|
payment_details: ::Array[EInvoiceAPI::DocumentResponse::PaymentDetail]?,
|
|
252
248
|
payment_term: String?,
|
|
253
|
-
previous_unpaid_balance: String?,
|
|
254
249
|
purchase_order: String?,
|
|
255
250
|
remittance_address: String?,
|
|
256
251
|
remittance_address_recipient: String?,
|
|
@@ -831,7 +826,6 @@ module EInvoiceAPI
|
|
|
831
826
|
charges: ::Array[EInvoiceAPI::Charge]?,
|
|
832
827
|
date: nil,
|
|
833
828
|
description: String?,
|
|
834
|
-
price_base_quantity: String?,
|
|
835
829
|
product_code: String?,
|
|
836
830
|
quantity: String?,
|
|
837
831
|
tax: String?,
|
|
@@ -851,8 +845,6 @@ module EInvoiceAPI
|
|
|
851
845
|
|
|
852
846
|
attr_accessor description: String?
|
|
853
847
|
|
|
854
|
-
attr_accessor price_base_quantity: String?
|
|
855
|
-
|
|
856
848
|
attr_accessor product_code: String?
|
|
857
849
|
|
|
858
850
|
attr_accessor quantity: String?
|
|
@@ -871,7 +863,6 @@ module EInvoiceAPI
|
|
|
871
863
|
?charges: ::Array[EInvoiceAPI::Charge]?,
|
|
872
864
|
?date: nil,
|
|
873
865
|
?description: String?,
|
|
874
|
-
?price_base_quantity: String?,
|
|
875
866
|
?product_code: String?,
|
|
876
867
|
?quantity: String?,
|
|
877
868
|
?tax: String?,
|
|
@@ -886,7 +877,6 @@ module EInvoiceAPI
|
|
|
886
877
|
charges: ::Array[EInvoiceAPI::Charge]?,
|
|
887
878
|
date: nil,
|
|
888
879
|
description: String?,
|
|
889
|
-
price_base_quantity: String?,
|
|
890
880
|
product_code: String?,
|
|
891
881
|
quantity: String?,
|
|
892
882
|
tax: String?,
|
|
@@ -1032,6 +1032,7 @@ module EInvoiceAPI
|
|
|
1032
1032
|
| :NAR
|
|
1033
1033
|
| :C62
|
|
1034
1034
|
| :LTR
|
|
1035
|
+
| :H87
|
|
1035
1036
|
|
|
1036
1037
|
module UnitOfMeasureCode
|
|
1037
1038
|
extend EInvoiceAPI::Internal::Type::Enum
|
|
@@ -2067,6 +2068,7 @@ module EInvoiceAPI
|
|
|
2067
2068
|
NAR: :NAR
|
|
2068
2069
|
C62: :C62
|
|
2069
2070
|
LTR: :LTR
|
|
2071
|
+
H87: :H87
|
|
2070
2072
|
|
|
2071
2073
|
def self?.values: -> ::Array[EInvoiceAPI::Models::unit_of_measure_code]
|
|
2072
2074
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: e-invoice-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.14.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- e-invoice
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-11-
|
|
11
|
+
date: 2025-11-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|