e-invoice-api 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/e_invoice_api/models/allowance.rb +14 -42
- data/lib/e_invoice_api/models/charge.rb +4 -193
- data/lib/e_invoice_api/models/document_create.rb +62 -606
- data/lib/e_invoice_api/models/document_create_from_pdf_response.rb +7 -17
- data/lib/e_invoice_api/models/document_response.rb +25 -252
- data/lib/e_invoice_api/version.rb +1 -1
- data/rbi/e_invoice_api/models/allowance.rbi +21 -81
- data/rbi/e_invoice_api/models/charge.rbi +5 -202
- data/rbi/e_invoice_api/models/document_create.rbi +691 -2979
- data/rbi/e_invoice_api/models/document_create_from_pdf_response.rbi +8 -20
- data/rbi/e_invoice_api/models/document_response.rbi +36 -1106
- data/sig/e_invoice_api/models/allowance.rbs +8 -59
- data/sig/e_invoice_api/models/charge.rbs +4 -369
- data/sig/e_invoice_api/models/document_create.rbs +44 -929
- data/sig/e_invoice_api/models/document_create_from_pdf_response.rbs +0 -5
- data/sig/e_invoice_api/models/document_response.rbs +12 -433
- metadata +2 -2
|
@@ -548,9 +548,9 @@ module EInvoiceAPI
|
|
|
548
548
|
sig { returns(T.nilable(T::Array[EInvoiceAPI::Allowance])) }
|
|
549
549
|
attr_accessor :allowances
|
|
550
550
|
|
|
551
|
-
# The
|
|
552
|
-
# allowances and charges.
|
|
553
|
-
#
|
|
551
|
+
# The total amount of the line item, exclusive of VAT, after subtracting line
|
|
552
|
+
# level allowances and adding line level charges. Must be rounded to maximum 2
|
|
553
|
+
# decimals
|
|
554
554
|
sig { returns(T.nilable(String)) }
|
|
555
555
|
attr_accessor :amount
|
|
556
556
|
|
|
@@ -565,11 +565,6 @@ module EInvoiceAPI
|
|
|
565
565
|
sig { returns(T.nilable(String)) }
|
|
566
566
|
attr_accessor :description
|
|
567
567
|
|
|
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
568
|
# The product code of the line item.
|
|
574
569
|
sig { returns(T.nilable(String)) }
|
|
575
570
|
attr_accessor :product_code
|
|
@@ -591,8 +586,7 @@ module EInvoiceAPI
|
|
|
591
586
|
sig { returns(T.nilable(EInvoiceAPI::UnitOfMeasureCode::TaggedSymbol)) }
|
|
592
587
|
attr_accessor :unit
|
|
593
588
|
|
|
594
|
-
# The
|
|
595
|
-
# subtracting item price discount. Must be rounded to maximum 4 decimals
|
|
589
|
+
# The unit price of the line item. Must be rounded to maximum 2 decimals
|
|
596
590
|
sig { returns(T.nilable(String)) }
|
|
597
591
|
attr_accessor :unit_price
|
|
598
592
|
|
|
@@ -603,7 +597,6 @@ module EInvoiceAPI
|
|
|
603
597
|
charges: T.nilable(T::Array[EInvoiceAPI::Charge::OrHash]),
|
|
604
598
|
date: NilClass,
|
|
605
599
|
description: T.nilable(String),
|
|
606
|
-
price_base_quantity: T.nilable(String),
|
|
607
600
|
product_code: T.nilable(String),
|
|
608
601
|
quantity: T.nilable(String),
|
|
609
602
|
tax: T.nilable(String),
|
|
@@ -615,18 +608,15 @@ module EInvoiceAPI
|
|
|
615
608
|
def self.new(
|
|
616
609
|
# The allowances of the line item.
|
|
617
610
|
allowances: nil,
|
|
618
|
-
# The
|
|
619
|
-
# allowances and charges.
|
|
620
|
-
#
|
|
611
|
+
# The total amount of the line item, exclusive of VAT, after subtracting line
|
|
612
|
+
# level allowances and adding line level charges. Must be rounded to maximum 2
|
|
613
|
+
# decimals
|
|
621
614
|
amount: nil,
|
|
622
615
|
# The charges of the line item.
|
|
623
616
|
charges: nil,
|
|
624
617
|
date: nil,
|
|
625
618
|
# The description of the line item.
|
|
626
619
|
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
620
|
# The product code of the line item.
|
|
631
621
|
product_code: nil,
|
|
632
622
|
# The quantity of items (goods or services) that is the subject of the line item.
|
|
@@ -638,8 +628,7 @@ module EInvoiceAPI
|
|
|
638
628
|
tax_rate: nil,
|
|
639
629
|
# Unit of Measure Codes from UNECERec20 used in Peppol BIS Billing 3.0.
|
|
640
630
|
unit: nil,
|
|
641
|
-
# The
|
|
642
|
-
# subtracting item price discount. Must be rounded to maximum 4 decimals
|
|
631
|
+
# The unit price of the line item. Must be rounded to maximum 2 decimals
|
|
643
632
|
unit_price: nil
|
|
644
633
|
)
|
|
645
634
|
end
|
|
@@ -652,7 +641,6 @@ module EInvoiceAPI
|
|
|
652
641
|
charges: T.nilable(T::Array[EInvoiceAPI::Charge]),
|
|
653
642
|
date: NilClass,
|
|
654
643
|
description: T.nilable(String),
|
|
655
|
-
price_base_quantity: T.nilable(String),
|
|
656
644
|
product_code: T.nilable(String),
|
|
657
645
|
quantity: T.nilable(String),
|
|
658
646
|
tax: T.nilable(String),
|