e-invoice-api 0.31.1 → 0.32.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 +13 -0
- data/README.md +1 -1
- data/lib/e_invoice_api/models/document_create.rb +35 -1
- data/lib/e_invoice_api/models/document_create_from_pdf_response.rb +33 -1
- data/lib/e_invoice_api/models/document_response.rb +35 -1
- data/lib/e_invoice_api/version.rb +1 -1
- data/rbi/e_invoice_api/models/document_create.rbi +59 -0
- data/rbi/e_invoice_api/models/document_create_from_pdf_response.rbi +63 -0
- data/rbi/e_invoice_api/models/document_response.rbi +59 -0
- data/sig/e_invoice_api/models/document_create.rbs +17 -0
- data/sig/e_invoice_api/models/document_create_from_pdf_response.rbs +17 -0
- data/sig/e_invoice_api/models/document_response.rbs +17 -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: fb8ecdfb51c3e84b13bd5d6f4d38400dd54195e7e9af417cf68c228571d0d7e4
|
|
4
|
+
data.tar.gz: dddba2ac6cfabe7eb829c26cdaf3c66e2ddafb778ea76fc455feba319e9c905b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 04e375f8d71dfd324b93f7b95980a897a4baa0314962750d8f315af7f6f4a4809b512d1d580039d359aab59e0452d7891d8e4a2d600956c55cdc3beffa997620
|
|
7
|
+
data.tar.gz: 0eadfd086d168a20ec602ca2ef6593c4ea4e16a828aef6238a83785d7bf9be30875ff5d14614abe8e1b7f8ac746e65f86b0b5c13fd0bf590b89b1adb91ed0ed3
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.32.0 (2026-07-17)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.31.1...v0.32.0](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.31.1...v0.32.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([00dfda9](https://github.com/e-invoice-be/e-invoice-rb/commit/00dfda9f497707ca78b523adc9d88a7d14b0d9ca))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **internal:** bound formatter parallelism to CPU count ([bf2d22e](https://github.com/e-invoice-be/e-invoice-rb/commit/bf2d22e4087b1e4bff36d73e44d7b4d54a32924d))
|
|
15
|
+
|
|
3
16
|
## 0.31.1 (2026-06-17)
|
|
4
17
|
|
|
5
18
|
Full Changelog: [v0.31.0...v0.31.1](https://github.com/e-invoice-be/e-invoice-rb/compare/v0.31.0...v0.31.1)
|
data/README.md
CHANGED
|
@@ -1007,6 +1007,16 @@ module EInvoiceAPI
|
|
|
1007
1007
|
# @return [String, nil]
|
|
1008
1008
|
optional :description, String, nil?: true
|
|
1009
1009
|
|
|
1010
|
+
# @!attribute item_attributes
|
|
1011
|
+
# Item-level attributes (BG-32) from cac:AdditionalItemProperty.
|
|
1012
|
+
#
|
|
1013
|
+
# @return [Array<EInvoiceAPI::Models::DocumentCreate::Item::ItemAttribute>, nil]
|
|
1014
|
+
optional :item_attributes,
|
|
1015
|
+
-> {
|
|
1016
|
+
EInvoiceAPI::Internal::Type::ArrayOf[EInvoiceAPI::DocumentCreate::Item::ItemAttribute]
|
|
1017
|
+
},
|
|
1018
|
+
nil?: true
|
|
1019
|
+
|
|
1010
1020
|
# @!attribute product_code
|
|
1011
1021
|
# The product code of the line item.
|
|
1012
1022
|
#
|
|
@@ -1047,7 +1057,7 @@ module EInvoiceAPI
|
|
|
1047
1057
|
# @return [Float, String, nil]
|
|
1048
1058
|
optional :unit_price, union: -> { EInvoiceAPI::DocumentCreate::Item::UnitPrice }, nil?: true
|
|
1049
1059
|
|
|
1050
|
-
# @!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)
|
|
1060
|
+
# @!method initialize(allowances: nil, amount: nil, charges: nil, date: nil, description: nil, item_attributes: nil, product_code: nil, quantity: nil, tax: nil, tax_rate: nil, unit: nil, unit_price: nil)
|
|
1051
1061
|
# Some parameter documentations has been truncated, see
|
|
1052
1062
|
# {EInvoiceAPI::Models::DocumentCreate::Item} for more details.
|
|
1053
1063
|
#
|
|
@@ -1061,6 +1071,8 @@ module EInvoiceAPI
|
|
|
1061
1071
|
#
|
|
1062
1072
|
# @param description [String, nil] The description of the line item.
|
|
1063
1073
|
#
|
|
1074
|
+
# @param item_attributes [Array<EInvoiceAPI::Models::DocumentCreate::Item::ItemAttribute>, nil] Item-level attributes (BG-32) from cac:AdditionalItemProperty.
|
|
1075
|
+
#
|
|
1064
1076
|
# @param product_code [String, nil] The product code of the line item.
|
|
1065
1077
|
#
|
|
1066
1078
|
# @param quantity [Float, String, nil] The quantity of items (goods or services) that is the subject of the line item.
|
|
@@ -1627,6 +1639,28 @@ module EInvoiceAPI
|
|
|
1627
1639
|
end
|
|
1628
1640
|
end
|
|
1629
1641
|
|
|
1642
|
+
class ItemAttribute < EInvoiceAPI::Internal::Type::BaseModel
|
|
1643
|
+
# @!attribute name
|
|
1644
|
+
# Attribute name (BT-160).
|
|
1645
|
+
#
|
|
1646
|
+
# @return [String]
|
|
1647
|
+
required :name, String
|
|
1648
|
+
|
|
1649
|
+
# @!attribute value
|
|
1650
|
+
# Attribute value (BT-161).
|
|
1651
|
+
#
|
|
1652
|
+
# @return [String, nil]
|
|
1653
|
+
optional :value, String, nil?: true
|
|
1654
|
+
|
|
1655
|
+
# @!method initialize(name:, value: nil)
|
|
1656
|
+
# An item-level attribute (BG-32 / BT-160 + BT-161) from
|
|
1657
|
+
# cac:AdditionalItemProperty.
|
|
1658
|
+
#
|
|
1659
|
+
# @param name [String] Attribute name (BT-160).
|
|
1660
|
+
#
|
|
1661
|
+
# @param value [String, nil] Attribute value (BT-161).
|
|
1662
|
+
end
|
|
1663
|
+
|
|
1630
1664
|
# The quantity of items (goods or services) that is the subject of the line item.
|
|
1631
1665
|
# Must be rounded to maximum 4 decimals. Can be negative for credit notes or
|
|
1632
1666
|
# corrections.
|
|
@@ -472,6 +472,14 @@ module EInvoiceAPI
|
|
|
472
472
|
# @return [String, nil]
|
|
473
473
|
optional :description, String, nil?: true
|
|
474
474
|
|
|
475
|
+
# @!attribute item_attributes
|
|
476
|
+
# Item-level attributes (BG-32) from cac:AdditionalItemProperty.
|
|
477
|
+
#
|
|
478
|
+
# @return [Array<EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item::ItemAttribute>, nil]
|
|
479
|
+
optional :item_attributes,
|
|
480
|
+
-> { EInvoiceAPI::Internal::Type::ArrayOf[EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item::ItemAttribute] },
|
|
481
|
+
nil?: true
|
|
482
|
+
|
|
475
483
|
# @!attribute product_code
|
|
476
484
|
# The product code of the line item.
|
|
477
485
|
#
|
|
@@ -512,7 +520,7 @@ module EInvoiceAPI
|
|
|
512
520
|
# @return [String, nil]
|
|
513
521
|
optional :unit_price, String, nil?: true
|
|
514
522
|
|
|
515
|
-
# @!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)
|
|
523
|
+
# @!method initialize(allowances: nil, amount: nil, charges: nil, date: nil, description: nil, item_attributes: nil, product_code: nil, quantity: nil, tax: nil, tax_rate: nil, unit: nil, unit_price: nil)
|
|
516
524
|
# Some parameter documentations has been truncated, see
|
|
517
525
|
# {EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item} for more details.
|
|
518
526
|
#
|
|
@@ -526,6 +534,8 @@ module EInvoiceAPI
|
|
|
526
534
|
#
|
|
527
535
|
# @param description [String, nil] The description of the line item.
|
|
528
536
|
#
|
|
537
|
+
# @param item_attributes [Array<EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item::ItemAttribute>, nil] Item-level attributes (BG-32) from cac:AdditionalItemProperty.
|
|
538
|
+
#
|
|
529
539
|
# @param product_code [String, nil] The product code of the line item.
|
|
530
540
|
#
|
|
531
541
|
# @param quantity [String, nil] The quantity of items (goods or services) that is the subject of the line item.
|
|
@@ -537,6 +547,28 @@ module EInvoiceAPI
|
|
|
537
547
|
# @param unit [Symbol, EInvoiceAPI::Models::UnitOfMeasureCode, nil] Unit of Measure Codes from UNECERec20 used in Peppol BIS Billing 3.0.
|
|
538
548
|
#
|
|
539
549
|
# @param unit_price [String, nil] The item net price (BT-146). The price of an item, exclusive of VAT, after subtr
|
|
550
|
+
|
|
551
|
+
class ItemAttribute < EInvoiceAPI::Internal::Type::BaseModel
|
|
552
|
+
# @!attribute name
|
|
553
|
+
# Attribute name (BT-160).
|
|
554
|
+
#
|
|
555
|
+
# @return [String]
|
|
556
|
+
required :name, String
|
|
557
|
+
|
|
558
|
+
# @!attribute value
|
|
559
|
+
# Attribute value (BT-161).
|
|
560
|
+
#
|
|
561
|
+
# @return [String, nil]
|
|
562
|
+
optional :value, String, nil?: true
|
|
563
|
+
|
|
564
|
+
# @!method initialize(name:, value: nil)
|
|
565
|
+
# An item-level attribute (BG-32 / BT-160 + BT-161) from
|
|
566
|
+
# cac:AdditionalItemProperty.
|
|
567
|
+
#
|
|
568
|
+
# @param name [String] Attribute name (BT-160).
|
|
569
|
+
#
|
|
570
|
+
# @param value [String, nil] Attribute value (BT-161).
|
|
571
|
+
end
|
|
540
572
|
end
|
|
541
573
|
|
|
542
574
|
# Tax category code of the invoice (e.g., S for standard rate, Z for zero rate, E
|
|
@@ -853,6 +853,16 @@ module EInvoiceAPI
|
|
|
853
853
|
# @return [String, nil]
|
|
854
854
|
optional :description, String, nil?: true
|
|
855
855
|
|
|
856
|
+
# @!attribute item_attributes
|
|
857
|
+
# Item-level attributes (BG-32) from cac:AdditionalItemProperty.
|
|
858
|
+
#
|
|
859
|
+
# @return [Array<EInvoiceAPI::Models::DocumentResponse::Item::ItemAttribute>, nil]
|
|
860
|
+
optional :item_attributes,
|
|
861
|
+
-> {
|
|
862
|
+
EInvoiceAPI::Internal::Type::ArrayOf[EInvoiceAPI::DocumentResponse::Item::ItemAttribute]
|
|
863
|
+
},
|
|
864
|
+
nil?: true
|
|
865
|
+
|
|
856
866
|
# @!attribute product_code
|
|
857
867
|
# The product code of the line item.
|
|
858
868
|
#
|
|
@@ -893,7 +903,7 @@ module EInvoiceAPI
|
|
|
893
903
|
# @return [String, nil]
|
|
894
904
|
optional :unit_price, String, nil?: true
|
|
895
905
|
|
|
896
|
-
# @!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)
|
|
906
|
+
# @!method initialize(allowances: nil, amount: nil, charges: nil, date: nil, description: nil, item_attributes: nil, product_code: nil, quantity: nil, tax: nil, tax_rate: nil, unit: nil, unit_price: nil)
|
|
897
907
|
# Some parameter documentations has been truncated, see
|
|
898
908
|
# {EInvoiceAPI::Models::DocumentResponse::Item} for more details.
|
|
899
909
|
#
|
|
@@ -907,6 +917,8 @@ module EInvoiceAPI
|
|
|
907
917
|
#
|
|
908
918
|
# @param description [String, nil] The description of the line item.
|
|
909
919
|
#
|
|
920
|
+
# @param item_attributes [Array<EInvoiceAPI::Models::DocumentResponse::Item::ItemAttribute>, nil] Item-level attributes (BG-32) from cac:AdditionalItemProperty.
|
|
921
|
+
#
|
|
910
922
|
# @param product_code [String, nil] The product code of the line item.
|
|
911
923
|
#
|
|
912
924
|
# @param quantity [String, nil] The quantity of items (goods or services) that is the subject of the line item.
|
|
@@ -918,6 +930,28 @@ module EInvoiceAPI
|
|
|
918
930
|
# @param unit [Symbol, EInvoiceAPI::Models::UnitOfMeasureCode, nil] Unit of Measure Codes from UNECERec20 used in Peppol BIS Billing 3.0.
|
|
919
931
|
#
|
|
920
932
|
# @param unit_price [String, nil] The item net price (BT-146). The price of an item, exclusive of VAT, after subtr
|
|
933
|
+
|
|
934
|
+
class ItemAttribute < EInvoiceAPI::Internal::Type::BaseModel
|
|
935
|
+
# @!attribute name
|
|
936
|
+
# Attribute name (BT-160).
|
|
937
|
+
#
|
|
938
|
+
# @return [String]
|
|
939
|
+
required :name, String
|
|
940
|
+
|
|
941
|
+
# @!attribute value
|
|
942
|
+
# Attribute value (BT-161).
|
|
943
|
+
#
|
|
944
|
+
# @return [String, nil]
|
|
945
|
+
optional :value, String, nil?: true
|
|
946
|
+
|
|
947
|
+
# @!method initialize(name:, value: nil)
|
|
948
|
+
# An item-level attribute (BG-32 / BT-160 + BT-161) from
|
|
949
|
+
# cac:AdditionalItemProperty.
|
|
950
|
+
#
|
|
951
|
+
# @param name [String] Attribute name (BT-160).
|
|
952
|
+
#
|
|
953
|
+
# @param value [String, nil] Attribute value (BT-161).
|
|
954
|
+
end
|
|
921
955
|
end
|
|
922
956
|
|
|
923
957
|
class PaymentDetail < EInvoiceAPI::Internal::Type::BaseModel
|
|
@@ -2195,6 +2195,16 @@ module EInvoiceAPI
|
|
|
2195
2195
|
sig { returns(T.nilable(String)) }
|
|
2196
2196
|
attr_accessor :description
|
|
2197
2197
|
|
|
2198
|
+
# Item-level attributes (BG-32) from cac:AdditionalItemProperty.
|
|
2199
|
+
sig do
|
|
2200
|
+
returns(
|
|
2201
|
+
T.nilable(
|
|
2202
|
+
T::Array[EInvoiceAPI::DocumentCreate::Item::ItemAttribute]
|
|
2203
|
+
)
|
|
2204
|
+
)
|
|
2205
|
+
end
|
|
2206
|
+
attr_accessor :item_attributes
|
|
2207
|
+
|
|
2198
2208
|
# The product code of the line item.
|
|
2199
2209
|
sig { returns(T.nilable(String)) }
|
|
2200
2210
|
attr_accessor :product_code
|
|
@@ -2251,6 +2261,12 @@ module EInvoiceAPI
|
|
|
2251
2261
|
),
|
|
2252
2262
|
date: NilClass,
|
|
2253
2263
|
description: T.nilable(String),
|
|
2264
|
+
item_attributes:
|
|
2265
|
+
T.nilable(
|
|
2266
|
+
T::Array[
|
|
2267
|
+
EInvoiceAPI::DocumentCreate::Item::ItemAttribute::OrHash
|
|
2268
|
+
]
|
|
2269
|
+
),
|
|
2254
2270
|
product_code: T.nilable(String),
|
|
2255
2271
|
quantity:
|
|
2256
2272
|
T.nilable(EInvoiceAPI::DocumentCreate::Item::Quantity::Variants),
|
|
@@ -2275,6 +2291,8 @@ module EInvoiceAPI
|
|
|
2275
2291
|
date: nil,
|
|
2276
2292
|
# The description of the line item.
|
|
2277
2293
|
description: nil,
|
|
2294
|
+
# Item-level attributes (BG-32) from cac:AdditionalItemProperty.
|
|
2295
|
+
item_attributes: nil,
|
|
2278
2296
|
# The product code of the line item.
|
|
2279
2297
|
product_code: nil,
|
|
2280
2298
|
# The quantity of items (goods or services) that is the subject of the line item.
|
|
@@ -2307,6 +2325,10 @@ module EInvoiceAPI
|
|
|
2307
2325
|
T.nilable(T::Array[EInvoiceAPI::DocumentCreate::Item::Charge]),
|
|
2308
2326
|
date: NilClass,
|
|
2309
2327
|
description: T.nilable(String),
|
|
2328
|
+
item_attributes:
|
|
2329
|
+
T.nilable(
|
|
2330
|
+
T::Array[EInvoiceAPI::DocumentCreate::Item::ItemAttribute]
|
|
2331
|
+
),
|
|
2310
2332
|
product_code: T.nilable(String),
|
|
2311
2333
|
quantity:
|
|
2312
2334
|
T.nilable(
|
|
@@ -4005,6 +4027,43 @@ module EInvoiceAPI
|
|
|
4005
4027
|
end
|
|
4006
4028
|
end
|
|
4007
4029
|
|
|
4030
|
+
class ItemAttribute < EInvoiceAPI::Internal::Type::BaseModel
|
|
4031
|
+
OrHash =
|
|
4032
|
+
T.type_alias do
|
|
4033
|
+
T.any(
|
|
4034
|
+
EInvoiceAPI::DocumentCreate::Item::ItemAttribute,
|
|
4035
|
+
EInvoiceAPI::Internal::AnyHash
|
|
4036
|
+
)
|
|
4037
|
+
end
|
|
4038
|
+
|
|
4039
|
+
# Attribute name (BT-160).
|
|
4040
|
+
sig { returns(String) }
|
|
4041
|
+
attr_accessor :name
|
|
4042
|
+
|
|
4043
|
+
# Attribute value (BT-161).
|
|
4044
|
+
sig { returns(T.nilable(String)) }
|
|
4045
|
+
attr_accessor :value
|
|
4046
|
+
|
|
4047
|
+
# An item-level attribute (BG-32 / BT-160 + BT-161) from
|
|
4048
|
+
# cac:AdditionalItemProperty.
|
|
4049
|
+
sig do
|
|
4050
|
+
params(name: String, value: T.nilable(String)).returns(
|
|
4051
|
+
T.attached_class
|
|
4052
|
+
)
|
|
4053
|
+
end
|
|
4054
|
+
def self.new(
|
|
4055
|
+
# Attribute name (BT-160).
|
|
4056
|
+
name:,
|
|
4057
|
+
# Attribute value (BT-161).
|
|
4058
|
+
value: nil
|
|
4059
|
+
)
|
|
4060
|
+
end
|
|
4061
|
+
|
|
4062
|
+
sig { override.returns({ name: String, value: T.nilable(String) }) }
|
|
4063
|
+
def to_hash
|
|
4064
|
+
end
|
|
4065
|
+
end
|
|
4066
|
+
|
|
4008
4067
|
# The quantity of items (goods or services) that is the subject of the line item.
|
|
4009
4068
|
# Must be rounded to maximum 4 decimals. Can be negative for credit notes or
|
|
4010
4069
|
# corrections.
|
|
@@ -580,6 +580,18 @@ module EInvoiceAPI
|
|
|
580
580
|
sig { returns(T.nilable(String)) }
|
|
581
581
|
attr_accessor :description
|
|
582
582
|
|
|
583
|
+
# Item-level attributes (BG-32) from cac:AdditionalItemProperty.
|
|
584
|
+
sig do
|
|
585
|
+
returns(
|
|
586
|
+
T.nilable(
|
|
587
|
+
T::Array[
|
|
588
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item::ItemAttribute
|
|
589
|
+
]
|
|
590
|
+
)
|
|
591
|
+
)
|
|
592
|
+
end
|
|
593
|
+
attr_accessor :item_attributes
|
|
594
|
+
|
|
583
595
|
# The product code of the line item.
|
|
584
596
|
sig { returns(T.nilable(String)) }
|
|
585
597
|
attr_accessor :product_code
|
|
@@ -615,6 +627,12 @@ module EInvoiceAPI
|
|
|
615
627
|
charges: T.nilable(T::Array[EInvoiceAPI::Charge::OrHash]),
|
|
616
628
|
date: NilClass,
|
|
617
629
|
description: T.nilable(String),
|
|
630
|
+
item_attributes:
|
|
631
|
+
T.nilable(
|
|
632
|
+
T::Array[
|
|
633
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item::ItemAttribute::OrHash
|
|
634
|
+
]
|
|
635
|
+
),
|
|
618
636
|
product_code: T.nilable(String),
|
|
619
637
|
quantity: T.nilable(String),
|
|
620
638
|
tax: T.nilable(String),
|
|
@@ -636,6 +654,8 @@ module EInvoiceAPI
|
|
|
636
654
|
date: nil,
|
|
637
655
|
# The description of the line item.
|
|
638
656
|
description: nil,
|
|
657
|
+
# Item-level attributes (BG-32) from cac:AdditionalItemProperty.
|
|
658
|
+
item_attributes: nil,
|
|
639
659
|
# The product code of the line item.
|
|
640
660
|
product_code: nil,
|
|
641
661
|
# The quantity of items (goods or services) that is the subject of the line item.
|
|
@@ -663,6 +683,12 @@ module EInvoiceAPI
|
|
|
663
683
|
charges: T.nilable(T::Array[EInvoiceAPI::Charge]),
|
|
664
684
|
date: NilClass,
|
|
665
685
|
description: T.nilable(String),
|
|
686
|
+
item_attributes:
|
|
687
|
+
T.nilable(
|
|
688
|
+
T::Array[
|
|
689
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item::ItemAttribute
|
|
690
|
+
]
|
|
691
|
+
),
|
|
666
692
|
product_code: T.nilable(String),
|
|
667
693
|
quantity: T.nilable(String),
|
|
668
694
|
tax: T.nilable(String),
|
|
@@ -674,6 +700,43 @@ module EInvoiceAPI
|
|
|
674
700
|
end
|
|
675
701
|
def to_hash
|
|
676
702
|
end
|
|
703
|
+
|
|
704
|
+
class ItemAttribute < EInvoiceAPI::Internal::Type::BaseModel
|
|
705
|
+
OrHash =
|
|
706
|
+
T.type_alias do
|
|
707
|
+
T.any(
|
|
708
|
+
EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item::ItemAttribute,
|
|
709
|
+
EInvoiceAPI::Internal::AnyHash
|
|
710
|
+
)
|
|
711
|
+
end
|
|
712
|
+
|
|
713
|
+
# Attribute name (BT-160).
|
|
714
|
+
sig { returns(String) }
|
|
715
|
+
attr_accessor :name
|
|
716
|
+
|
|
717
|
+
# Attribute value (BT-161).
|
|
718
|
+
sig { returns(T.nilable(String)) }
|
|
719
|
+
attr_accessor :value
|
|
720
|
+
|
|
721
|
+
# An item-level attribute (BG-32 / BT-160 + BT-161) from
|
|
722
|
+
# cac:AdditionalItemProperty.
|
|
723
|
+
sig do
|
|
724
|
+
params(name: String, value: T.nilable(String)).returns(
|
|
725
|
+
T.attached_class
|
|
726
|
+
)
|
|
727
|
+
end
|
|
728
|
+
def self.new(
|
|
729
|
+
# Attribute name (BT-160).
|
|
730
|
+
name:,
|
|
731
|
+
# Attribute value (BT-161).
|
|
732
|
+
value: nil
|
|
733
|
+
)
|
|
734
|
+
end
|
|
735
|
+
|
|
736
|
+
sig { override.returns({ name: String, value: T.nilable(String) }) }
|
|
737
|
+
def to_hash
|
|
738
|
+
end
|
|
739
|
+
end
|
|
677
740
|
end
|
|
678
741
|
|
|
679
742
|
# Tax category code of the invoice (e.g., S for standard rate, Z for zero rate, E
|
|
@@ -1930,6 +1930,16 @@ module EInvoiceAPI
|
|
|
1930
1930
|
sig { returns(T.nilable(String)) }
|
|
1931
1931
|
attr_accessor :description
|
|
1932
1932
|
|
|
1933
|
+
# Item-level attributes (BG-32) from cac:AdditionalItemProperty.
|
|
1934
|
+
sig do
|
|
1935
|
+
returns(
|
|
1936
|
+
T.nilable(
|
|
1937
|
+
T::Array[EInvoiceAPI::DocumentResponse::Item::ItemAttribute]
|
|
1938
|
+
)
|
|
1939
|
+
)
|
|
1940
|
+
end
|
|
1941
|
+
attr_accessor :item_attributes
|
|
1942
|
+
|
|
1933
1943
|
# The product code of the line item.
|
|
1934
1944
|
sig { returns(T.nilable(String)) }
|
|
1935
1945
|
attr_accessor :product_code
|
|
@@ -1965,6 +1975,12 @@ module EInvoiceAPI
|
|
|
1965
1975
|
charges: T.nilable(T::Array[EInvoiceAPI::Charge::OrHash]),
|
|
1966
1976
|
date: NilClass,
|
|
1967
1977
|
description: T.nilable(String),
|
|
1978
|
+
item_attributes:
|
|
1979
|
+
T.nilable(
|
|
1980
|
+
T::Array[
|
|
1981
|
+
EInvoiceAPI::DocumentResponse::Item::ItemAttribute::OrHash
|
|
1982
|
+
]
|
|
1983
|
+
),
|
|
1968
1984
|
product_code: T.nilable(String),
|
|
1969
1985
|
quantity: T.nilable(String),
|
|
1970
1986
|
tax: T.nilable(String),
|
|
@@ -1986,6 +2002,8 @@ module EInvoiceAPI
|
|
|
1986
2002
|
date: nil,
|
|
1987
2003
|
# The description of the line item.
|
|
1988
2004
|
description: nil,
|
|
2005
|
+
# Item-level attributes (BG-32) from cac:AdditionalItemProperty.
|
|
2006
|
+
item_attributes: nil,
|
|
1989
2007
|
# The product code of the line item.
|
|
1990
2008
|
product_code: nil,
|
|
1991
2009
|
# The quantity of items (goods or services) that is the subject of the line item.
|
|
@@ -2013,6 +2031,10 @@ module EInvoiceAPI
|
|
|
2013
2031
|
charges: T.nilable(T::Array[EInvoiceAPI::Charge]),
|
|
2014
2032
|
date: NilClass,
|
|
2015
2033
|
description: T.nilable(String),
|
|
2034
|
+
item_attributes:
|
|
2035
|
+
T.nilable(
|
|
2036
|
+
T::Array[EInvoiceAPI::DocumentResponse::Item::ItemAttribute]
|
|
2037
|
+
),
|
|
2016
2038
|
product_code: T.nilable(String),
|
|
2017
2039
|
quantity: T.nilable(String),
|
|
2018
2040
|
tax: T.nilable(String),
|
|
@@ -2024,6 +2046,43 @@ module EInvoiceAPI
|
|
|
2024
2046
|
end
|
|
2025
2047
|
def to_hash
|
|
2026
2048
|
end
|
|
2049
|
+
|
|
2050
|
+
class ItemAttribute < EInvoiceAPI::Internal::Type::BaseModel
|
|
2051
|
+
OrHash =
|
|
2052
|
+
T.type_alias do
|
|
2053
|
+
T.any(
|
|
2054
|
+
EInvoiceAPI::DocumentResponse::Item::ItemAttribute,
|
|
2055
|
+
EInvoiceAPI::Internal::AnyHash
|
|
2056
|
+
)
|
|
2057
|
+
end
|
|
2058
|
+
|
|
2059
|
+
# Attribute name (BT-160).
|
|
2060
|
+
sig { returns(String) }
|
|
2061
|
+
attr_accessor :name
|
|
2062
|
+
|
|
2063
|
+
# Attribute value (BT-161).
|
|
2064
|
+
sig { returns(T.nilable(String)) }
|
|
2065
|
+
attr_accessor :value
|
|
2066
|
+
|
|
2067
|
+
# An item-level attribute (BG-32 / BT-160 + BT-161) from
|
|
2068
|
+
# cac:AdditionalItemProperty.
|
|
2069
|
+
sig do
|
|
2070
|
+
params(name: String, value: T.nilable(String)).returns(
|
|
2071
|
+
T.attached_class
|
|
2072
|
+
)
|
|
2073
|
+
end
|
|
2074
|
+
def self.new(
|
|
2075
|
+
# Attribute name (BT-160).
|
|
2076
|
+
name:,
|
|
2077
|
+
# Attribute value (BT-161).
|
|
2078
|
+
value: nil
|
|
2079
|
+
)
|
|
2080
|
+
end
|
|
2081
|
+
|
|
2082
|
+
sig { override.returns({ name: String, value: T.nilable(String) }) }
|
|
2083
|
+
def to_hash
|
|
2084
|
+
end
|
|
2085
|
+
end
|
|
2027
2086
|
end
|
|
2028
2087
|
|
|
2029
2088
|
class PaymentDetail < EInvoiceAPI::Internal::Type::BaseModel
|
|
@@ -915,6 +915,7 @@ module EInvoiceAPI
|
|
|
915
915
|
charges: ::Array[EInvoiceAPI::DocumentCreate::Item::Charge]?,
|
|
916
916
|
date: nil,
|
|
917
917
|
description: String?,
|
|
918
|
+
item_attributes: ::Array[EInvoiceAPI::DocumentCreate::Item::ItemAttribute]?,
|
|
918
919
|
product_code: String?,
|
|
919
920
|
quantity: EInvoiceAPI::Models::DocumentCreate::Item::quantity?,
|
|
920
921
|
tax: EInvoiceAPI::Models::DocumentCreate::Item::tax?,
|
|
@@ -934,6 +935,8 @@ module EInvoiceAPI
|
|
|
934
935
|
|
|
935
936
|
attr_accessor description: String?
|
|
936
937
|
|
|
938
|
+
attr_accessor item_attributes: ::Array[EInvoiceAPI::DocumentCreate::Item::ItemAttribute]?
|
|
939
|
+
|
|
937
940
|
attr_accessor product_code: String?
|
|
938
941
|
|
|
939
942
|
attr_accessor quantity: EInvoiceAPI::Models::DocumentCreate::Item::quantity?
|
|
@@ -952,6 +955,7 @@ module EInvoiceAPI
|
|
|
952
955
|
?charges: ::Array[EInvoiceAPI::DocumentCreate::Item::Charge]?,
|
|
953
956
|
?date: nil,
|
|
954
957
|
?description: String?,
|
|
958
|
+
?item_attributes: ::Array[EInvoiceAPI::DocumentCreate::Item::ItemAttribute]?,
|
|
955
959
|
?product_code: String?,
|
|
956
960
|
?quantity: EInvoiceAPI::Models::DocumentCreate::Item::quantity?,
|
|
957
961
|
?tax: EInvoiceAPI::Models::DocumentCreate::Item::tax?,
|
|
@@ -966,6 +970,7 @@ module EInvoiceAPI
|
|
|
966
970
|
charges: ::Array[EInvoiceAPI::DocumentCreate::Item::Charge]?,
|
|
967
971
|
date: nil,
|
|
968
972
|
description: String?,
|
|
973
|
+
item_attributes: ::Array[EInvoiceAPI::DocumentCreate::Item::ItemAttribute]?,
|
|
969
974
|
product_code: String?,
|
|
970
975
|
quantity: EInvoiceAPI::Models::DocumentCreate::Item::quantity?,
|
|
971
976
|
tax: EInvoiceAPI::Models::DocumentCreate::Item::tax?,
|
|
@@ -1594,6 +1599,18 @@ module EInvoiceAPI
|
|
|
1594
1599
|
end
|
|
1595
1600
|
end
|
|
1596
1601
|
|
|
1602
|
+
type item_attribute = { name: String, value: String? }
|
|
1603
|
+
|
|
1604
|
+
class ItemAttribute < EInvoiceAPI::Internal::Type::BaseModel
|
|
1605
|
+
attr_accessor name: String
|
|
1606
|
+
|
|
1607
|
+
attr_accessor value: String?
|
|
1608
|
+
|
|
1609
|
+
def initialize: (name: String, ?value: String?) -> void
|
|
1610
|
+
|
|
1611
|
+
def to_hash: -> { name: String, value: String? }
|
|
1612
|
+
end
|
|
1613
|
+
|
|
1597
1614
|
type quantity = Float | String
|
|
1598
1615
|
|
|
1599
1616
|
module Quantity
|
|
@@ -304,6 +304,7 @@ module EInvoiceAPI
|
|
|
304
304
|
charges: ::Array[EInvoiceAPI::Charge]?,
|
|
305
305
|
date: nil,
|
|
306
306
|
description: String?,
|
|
307
|
+
item_attributes: ::Array[EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item::ItemAttribute]?,
|
|
307
308
|
product_code: String?,
|
|
308
309
|
quantity: String?,
|
|
309
310
|
tax: String?,
|
|
@@ -323,6 +324,8 @@ module EInvoiceAPI
|
|
|
323
324
|
|
|
324
325
|
attr_accessor description: String?
|
|
325
326
|
|
|
327
|
+
attr_accessor item_attributes: ::Array[EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item::ItemAttribute]?
|
|
328
|
+
|
|
326
329
|
attr_accessor product_code: String?
|
|
327
330
|
|
|
328
331
|
attr_accessor quantity: String?
|
|
@@ -341,6 +344,7 @@ module EInvoiceAPI
|
|
|
341
344
|
?charges: ::Array[EInvoiceAPI::Charge]?,
|
|
342
345
|
?date: nil,
|
|
343
346
|
?description: String?,
|
|
347
|
+
?item_attributes: ::Array[EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item::ItemAttribute]?,
|
|
344
348
|
?product_code: String?,
|
|
345
349
|
?quantity: String?,
|
|
346
350
|
?tax: String?,
|
|
@@ -355,6 +359,7 @@ module EInvoiceAPI
|
|
|
355
359
|
charges: ::Array[EInvoiceAPI::Charge]?,
|
|
356
360
|
date: nil,
|
|
357
361
|
description: String?,
|
|
362
|
+
item_attributes: ::Array[EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item::ItemAttribute]?,
|
|
358
363
|
product_code: String?,
|
|
359
364
|
quantity: String?,
|
|
360
365
|
tax: String?,
|
|
@@ -362,6 +367,18 @@ module EInvoiceAPI
|
|
|
362
367
|
unit: EInvoiceAPI::Models::unit_of_measure_code?,
|
|
363
368
|
unit_price: String?
|
|
364
369
|
}
|
|
370
|
+
|
|
371
|
+
type item_attribute = { name: String, value: String? }
|
|
372
|
+
|
|
373
|
+
class ItemAttribute < EInvoiceAPI::Internal::Type::BaseModel
|
|
374
|
+
attr_accessor name: String
|
|
375
|
+
|
|
376
|
+
attr_accessor value: String?
|
|
377
|
+
|
|
378
|
+
def initialize: (name: String, ?value: String?) -> void
|
|
379
|
+
|
|
380
|
+
def to_hash: -> { name: String, value: String? }
|
|
381
|
+
end
|
|
365
382
|
end
|
|
366
383
|
|
|
367
384
|
type tax_code = :AE | :E | :S | :Z | :G | :O | :K | :L | :M | :B
|
|
@@ -836,6 +836,7 @@ module EInvoiceAPI
|
|
|
836
836
|
charges: ::Array[EInvoiceAPI::Charge]?,
|
|
837
837
|
date: nil,
|
|
838
838
|
description: String?,
|
|
839
|
+
item_attributes: ::Array[EInvoiceAPI::DocumentResponse::Item::ItemAttribute]?,
|
|
839
840
|
product_code: String?,
|
|
840
841
|
quantity: String?,
|
|
841
842
|
tax: String?,
|
|
@@ -855,6 +856,8 @@ module EInvoiceAPI
|
|
|
855
856
|
|
|
856
857
|
attr_accessor description: String?
|
|
857
858
|
|
|
859
|
+
attr_accessor item_attributes: ::Array[EInvoiceAPI::DocumentResponse::Item::ItemAttribute]?
|
|
860
|
+
|
|
858
861
|
attr_accessor product_code: String?
|
|
859
862
|
|
|
860
863
|
attr_accessor quantity: String?
|
|
@@ -873,6 +876,7 @@ module EInvoiceAPI
|
|
|
873
876
|
?charges: ::Array[EInvoiceAPI::Charge]?,
|
|
874
877
|
?date: nil,
|
|
875
878
|
?description: String?,
|
|
879
|
+
?item_attributes: ::Array[EInvoiceAPI::DocumentResponse::Item::ItemAttribute]?,
|
|
876
880
|
?product_code: String?,
|
|
877
881
|
?quantity: String?,
|
|
878
882
|
?tax: String?,
|
|
@@ -887,6 +891,7 @@ module EInvoiceAPI
|
|
|
887
891
|
charges: ::Array[EInvoiceAPI::Charge]?,
|
|
888
892
|
date: nil,
|
|
889
893
|
description: String?,
|
|
894
|
+
item_attributes: ::Array[EInvoiceAPI::DocumentResponse::Item::ItemAttribute]?,
|
|
890
895
|
product_code: String?,
|
|
891
896
|
quantity: String?,
|
|
892
897
|
tax: String?,
|
|
@@ -894,6 +899,18 @@ module EInvoiceAPI
|
|
|
894
899
|
unit: EInvoiceAPI::Models::unit_of_measure_code?,
|
|
895
900
|
unit_price: String?
|
|
896
901
|
}
|
|
902
|
+
|
|
903
|
+
type item_attribute = { name: String, value: String? }
|
|
904
|
+
|
|
905
|
+
class ItemAttribute < EInvoiceAPI::Internal::Type::BaseModel
|
|
906
|
+
attr_accessor name: String
|
|
907
|
+
|
|
908
|
+
attr_accessor value: String?
|
|
909
|
+
|
|
910
|
+
def initialize: (name: String, ?value: String?) -> void
|
|
911
|
+
|
|
912
|
+
def to_hash: -> { name: String, value: String? }
|
|
913
|
+
end
|
|
897
914
|
end
|
|
898
915
|
|
|
899
916
|
type payment_detail =
|
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.32.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: 2026-
|
|
11
|
+
date: 2026-07-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|