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.
@@ -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 invoice line net amount (BT-131), exclusive of VAT, inclusive of line level
552
- # allowances and charges. Calculated as: ((unit_price / price_base_quantity) \*
553
- # quantity) - allowances + charges. Must be rounded to maximum 2 decimals
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 item net price (BT-146). The price of an item, exclusive of VAT, after
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 invoice line net amount (BT-131), exclusive of VAT, inclusive of line level
619
- # allowances and charges. Calculated as: ((unit_price / price_base_quantity) \*
620
- # quantity) - allowances + charges. Must be rounded to maximum 2 decimals
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 item net price (BT-146). The price of an item, exclusive of VAT, after
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),