e-invoice-api 0.13.0 → 0.15.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/allowance.rb +42 -14
- data/lib/e_invoice_api/models/charge.rb +193 -4
- data/lib/e_invoice_api/models/document_create.rb +590 -66
- data/lib/e_invoice_api/models/document_create_from_pdf_response.rb +14 -19
- data/lib/e_invoice_api/models/document_response.rb +249 -37
- data/lib/e_invoice_api/models/unit_of_measure_code.rb +1 -1
- data/lib/e_invoice_api/version.rb +1 -1
- data/rbi/e_invoice_api/models/allowance.rbi +81 -21
- data/rbi/e_invoice_api/models/charge.rbi +202 -5
- data/rbi/e_invoice_api/models/document_create.rbi +2939 -682
- data/rbi/e_invoice_api/models/document_create_from_pdf_response.rbi +20 -22
- data/rbi/e_invoice_api/models/document_response.rbi +1106 -50
- data/rbi/e_invoice_api/models/unit_of_measure_code.rbi +1 -1
- data/sig/e_invoice_api/models/allowance.rbs +59 -8
- data/sig/e_invoice_api/models/charge.rbs +369 -4
- data/sig/e_invoice_api/models/document_create.rbs +916 -44
- data/sig/e_invoice_api/models/document_create_from_pdf_response.rbs +0 -5
- data/sig/e_invoice_api/models/document_response.rbs +428 -17
- data/sig/e_invoice_api/models/unit_of_measure_code.rbs +2 -2
- metadata +2 -2
|
@@ -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),
|
|
@@ -548,9 +538,10 @@ module EInvoiceAPI
|
|
|
548
538
|
sig { returns(T.nilable(T::Array[EInvoiceAPI::Allowance])) }
|
|
549
539
|
attr_accessor :allowances
|
|
550
540
|
|
|
551
|
-
# The
|
|
552
|
-
#
|
|
553
|
-
# decimals
|
|
541
|
+
# The invoice line net amount (BT-131), exclusive of VAT, inclusive of line level
|
|
542
|
+
# allowances and charges. Calculated as: ((unit_price / price_base_quantity) \*
|
|
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
|
|
|
@@ -570,11 +561,13 @@ module EInvoiceAPI
|
|
|
570
561
|
attr_accessor :product_code
|
|
571
562
|
|
|
572
563
|
# The quantity of items (goods or services) that is the subject of the line item.
|
|
573
|
-
# Must be rounded to maximum 4 decimals
|
|
564
|
+
# Must be rounded to maximum 4 decimals. Can be negative for credit notes or
|
|
565
|
+
# corrections.
|
|
574
566
|
sig { returns(T.nilable(String)) }
|
|
575
567
|
attr_accessor :quantity
|
|
576
568
|
|
|
577
|
-
# 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.
|
|
578
571
|
sig { returns(T.nilable(String)) }
|
|
579
572
|
attr_accessor :tax
|
|
580
573
|
|
|
@@ -586,7 +579,8 @@ module EInvoiceAPI
|
|
|
586
579
|
sig { returns(T.nilable(EInvoiceAPI::UnitOfMeasureCode::TaggedSymbol)) }
|
|
587
580
|
attr_accessor :unit
|
|
588
581
|
|
|
589
|
-
# The
|
|
582
|
+
# The item net price (BT-146). The price of an item, exclusive of VAT, after
|
|
583
|
+
# subtracting item price discount. Must be rounded to maximum 4 decimals
|
|
590
584
|
sig { returns(T.nilable(String)) }
|
|
591
585
|
attr_accessor :unit_price
|
|
592
586
|
|
|
@@ -608,9 +602,10 @@ module EInvoiceAPI
|
|
|
608
602
|
def self.new(
|
|
609
603
|
# The allowances of the line item.
|
|
610
604
|
allowances: nil,
|
|
611
|
-
# The
|
|
612
|
-
#
|
|
613
|
-
# decimals
|
|
605
|
+
# The invoice line net amount (BT-131), exclusive of VAT, inclusive of line level
|
|
606
|
+
# allowances and charges. Calculated as: ((unit_price / price_base_quantity) \*
|
|
607
|
+
# quantity) - allowances + charges. Must be rounded to maximum 2 decimals. Can be
|
|
608
|
+
# negative for credit notes or corrections.
|
|
614
609
|
amount: nil,
|
|
615
610
|
# The charges of the line item.
|
|
616
611
|
charges: nil,
|
|
@@ -620,15 +615,18 @@ module EInvoiceAPI
|
|
|
620
615
|
# The product code of the line item.
|
|
621
616
|
product_code: nil,
|
|
622
617
|
# The quantity of items (goods or services) that is the subject of the line item.
|
|
623
|
-
# Must be rounded to maximum 4 decimals
|
|
618
|
+
# Must be rounded to maximum 4 decimals. Can be negative for credit notes or
|
|
619
|
+
# corrections.
|
|
624
620
|
quantity: nil,
|
|
625
|
-
# 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.
|
|
626
623
|
tax: nil,
|
|
627
624
|
# The VAT rate of the line item expressed as percentage with 2 decimals
|
|
628
625
|
tax_rate: nil,
|
|
629
626
|
# Unit of Measure Codes from UNECERec20 used in Peppol BIS Billing 3.0.
|
|
630
627
|
unit: nil,
|
|
631
|
-
# The
|
|
628
|
+
# The item net price (BT-146). The price of an item, exclusive of VAT, after
|
|
629
|
+
# subtracting item price discount. Must be rounded to maximum 4 decimals
|
|
632
630
|
unit_price: nil
|
|
633
631
|
)
|
|
634
632
|
end
|