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.
@@ -432,9 +432,9 @@ module EInvoiceAPI
432
432
  optional :allowances, -> { EInvoiceAPI::Internal::Type::ArrayOf[EInvoiceAPI::Allowance] }, nil?: true
433
433
 
434
434
  # @!attribute amount
435
- # The invoice line net amount (BT-131), exclusive of VAT, inclusive of line level
436
- # allowances and charges. Calculated as: ((unit_price / price_base_quantity) \*
437
- # quantity) - allowances + charges. Must be rounded to maximum 2 decimals
435
+ # The total amount of the line item, exclusive of VAT, after subtracting line
436
+ # level allowances and adding line level charges. Must be rounded to maximum 2
437
+ # decimals
438
438
  #
439
439
  # @return [String, nil]
440
440
  optional :amount, String, nil?: true
@@ -456,13 +456,6 @@ module EInvoiceAPI
456
456
  # @return [String, nil]
457
457
  optional :description, String, nil?: true
458
458
 
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
459
  # @!attribute product_code
467
460
  # The product code of the line item.
468
461
  #
@@ -495,19 +488,18 @@ module EInvoiceAPI
495
488
  optional :unit, enum: -> { EInvoiceAPI::UnitOfMeasureCode }, nil?: true
496
489
 
497
490
  # @!attribute unit_price
498
- # The item net price (BT-146). The price of an item, exclusive of VAT, after
499
- # subtracting item price discount. Must be rounded to maximum 4 decimals
491
+ # The unit price of the line item. Must be rounded to maximum 2 decimals
500
492
  #
501
493
  # @return [String, nil]
502
494
  optional :unit_price, String, nil?: true
503
495
 
504
- # @!method initialize(allowances: nil, amount: nil, charges: nil, date: nil, description: nil, price_base_quantity: nil, product_code: nil, quantity: nil, tax: nil, tax_rate: nil, unit: nil, unit_price: nil)
496
+ # @!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
497
  # Some parameter documentations has been truncated, see
506
498
  # {EInvoiceAPI::Models::DocumentCreateFromPdfResponse::Item} for more details.
507
499
  #
508
500
  # @param allowances [Array<EInvoiceAPI::Models::Allowance>, nil] The allowances of the line item.
509
501
  #
510
- # @param amount [String, nil] The invoice line net amount (BT-131), exclusive of VAT, inclusive of line level
502
+ # @param amount [String, nil] The total amount of the line item, exclusive of VAT, after subtracting line leve
511
503
  #
512
504
  # @param charges [Array<EInvoiceAPI::Models::Charge>, nil] The charges of the line item.
513
505
  #
@@ -515,8 +507,6 @@ module EInvoiceAPI
515
507
  #
516
508
  # @param description [String, nil] The description of the line item.
517
509
  #
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
510
  # @param product_code [String, nil] The product code of the line item.
521
511
  #
522
512
  # @param quantity [String, nil] The quantity of items (goods or services) that is the subject of the line item.
@@ -527,7 +517,7 @@ module EInvoiceAPI
527
517
  #
528
518
  # @param unit [Symbol, EInvoiceAPI::Models::UnitOfMeasureCode, nil] Unit of Measure Codes from UNECERec20 used in Peppol BIS Billing 3.0.
529
519
  #
530
- # @param unit_price [String, nil] The item net price (BT-146). The price of an item, exclusive of VAT, after subtr
520
+ # @param unit_price [String, nil] The unit price of the line item. Must be rounded to maximum 2 decimals
531
521
  end
532
522
 
533
523
  # Tax category code of the invoice (e.g., S for standard rate, Z for zero rate, E
@@ -435,8 +435,7 @@ module EInvoiceAPI
435
435
 
436
436
  # @!attribute multiplier_factor
437
437
  # The percentage that may be used, in conjunction with the allowance base amount,
438
- # to calculate the allowance amount. To state 20%, use value 20. Must be rounded
439
- # to maximum 2 decimals
438
+ # to calculate the allowance amount. To state 20%, use value 20
440
439
  #
441
440
  # @return [String, nil]
442
441
  optional :multiplier_factor, String, nil?: true
@@ -448,20 +447,21 @@ module EInvoiceAPI
448
447
  optional :reason, String, nil?: true
449
448
 
450
449
  # @!attribute reason_code
451
- # Allowance reason codes for invoice discounts and charges
450
+ # The code for the allowance reason
452
451
  #
453
- # @return [Symbol, EInvoiceAPI::Models::DocumentResponse::Allowance::ReasonCode, nil]
454
- optional :reason_code, enum: -> { EInvoiceAPI::DocumentResponse::Allowance::ReasonCode }, nil?: true
452
+ # @return [String, nil]
453
+ optional :reason_code, String, nil?: true
455
454
 
456
455
  # @!attribute tax_code
457
- # The VAT category code that applies to the allowance
456
+ # Duty or tax or fee category codes (Subset of UNCL5305)
457
+ #
458
+ # Agency: UN/CEFACT Version: D.16B Subset: OpenPEPPOL
458
459
  #
459
460
  # @return [Symbol, EInvoiceAPI::Models::DocumentResponse::Allowance::TaxCode, nil]
460
- optional :tax_code, enum: -> { EInvoiceAPI::DocumentResponse::Allowance::TaxCode }
461
+ optional :tax_code, enum: -> { EInvoiceAPI::DocumentResponse::Allowance::TaxCode }, nil?: true
461
462
 
462
463
  # @!attribute tax_rate
463
- # The VAT rate, represented as percentage that applies to the allowance. Must be
464
- # rounded to maximum 2 decimals
464
+ # The VAT rate, represented as percentage that applies to the allowance
465
465
  #
466
466
  # @return [String, nil]
467
467
  optional :tax_rate, String, nil?: true
@@ -478,43 +478,15 @@ module EInvoiceAPI
478
478
  #
479
479
  # @param reason [String, nil] The reason for the allowance
480
480
  #
481
- # @param reason_code [Symbol, EInvoiceAPI::Models::DocumentResponse::Allowance::ReasonCode, nil] Allowance reason codes for invoice discounts and charges
481
+ # @param reason_code [String, nil] The code for the allowance reason
482
482
  #
483
- # @param tax_code [Symbol, EInvoiceAPI::Models::DocumentResponse::Allowance::TaxCode] The VAT category code that applies to the allowance
483
+ # @param tax_code [Symbol, EInvoiceAPI::Models::DocumentResponse::Allowance::TaxCode, nil] Duty or tax or fee category codes (Subset of UNCL5305)
484
484
  #
485
- # @param tax_rate [String, nil] The VAT rate, represented as percentage that applies to the allowance. Must be r
485
+ # @param tax_rate [String, nil] The VAT rate, represented as percentage that applies to the allowance
486
486
 
487
- # Allowance reason codes for invoice discounts and charges
487
+ # Duty or tax or fee category codes (Subset of UNCL5305)
488
488
  #
489
- # @see EInvoiceAPI::Models::DocumentResponse::Allowance#reason_code
490
- module ReasonCode
491
- extend EInvoiceAPI::Internal::Type::Enum
492
-
493
- REASON_CODE_41 = :"41"
494
- REASON_CODE_42 = :"42"
495
- REASON_CODE_60 = :"60"
496
- REASON_CODE_62 = :"62"
497
- REASON_CODE_63 = :"63"
498
- REASON_CODE_64 = :"64"
499
- REASON_CODE_65 = :"65"
500
- REASON_CODE_66 = :"66"
501
- REASON_CODE_67 = :"67"
502
- REASON_CODE_68 = :"68"
503
- REASON_CODE_70 = :"70"
504
- REASON_CODE_71 = :"71"
505
- REASON_CODE_88 = :"88"
506
- REASON_CODE_95 = :"95"
507
- REASON_CODE_100 = :"100"
508
- REASON_CODE_102 = :"102"
509
- REASON_CODE_103 = :"103"
510
- REASON_CODE_104 = :"104"
511
- REASON_CODE_105 = :"105"
512
-
513
- # @!method self.values
514
- # @return [Array<Symbol>]
515
- end
516
-
517
- # The VAT category code that applies to the allowance
489
+ # Agency: UN/CEFACT Version: D.16B Subset: OpenPEPPOL
518
490
  #
519
491
  # @see EInvoiceAPI::Models::DocumentResponse::Allowance#tax_code
520
492
  module TaxCode
@@ -564,10 +536,10 @@ module EInvoiceAPI
564
536
  optional :reason, String, nil?: true
565
537
 
566
538
  # @!attribute reason_code
567
- # Charge reason codes for invoice charges and fees
539
+ # The code for the charge reason
568
540
  #
569
- # @return [Symbol, EInvoiceAPI::Models::DocumentResponse::Charge::ReasonCode, nil]
570
- optional :reason_code, enum: -> { EInvoiceAPI::DocumentResponse::Charge::ReasonCode }, nil?: true
541
+ # @return [String, nil]
542
+ optional :reason_code, String, nil?: true
571
543
 
572
544
  # @!attribute tax_code
573
545
  # Duty or tax or fee category codes (Subset of UNCL5305)
@@ -595,201 +567,12 @@ module EInvoiceAPI
595
567
  #
596
568
  # @param reason [String, nil] The reason for the charge
597
569
  #
598
- # @param reason_code [Symbol, EInvoiceAPI::Models::DocumentResponse::Charge::ReasonCode, nil] Charge reason codes for invoice charges and fees
570
+ # @param reason_code [String, nil] The code for the charge reason
599
571
  #
600
572
  # @param tax_code [Symbol, EInvoiceAPI::Models::DocumentResponse::Charge::TaxCode, nil] Duty or tax or fee category codes (Subset of UNCL5305)
601
573
  #
602
574
  # @param tax_rate [String, nil] The VAT rate, represented as percentage that applies to the charge
603
575
 
604
- # Charge reason codes for invoice charges and fees
605
- #
606
- # @see EInvoiceAPI::Models::DocumentResponse::Charge#reason_code
607
- module ReasonCode
608
- extend EInvoiceAPI::Internal::Type::Enum
609
-
610
- AA = :AA
611
- AAA = :AAA
612
- AAC = :AAC
613
- AAD = :AAD
614
- AAE = :AAE
615
- AAF = :AAF
616
- AAH = :AAH
617
- AAI = :AAI
618
- AAS = :AAS
619
- AAT = :AAT
620
- AAV = :AAV
621
- AAY = :AAY
622
- AAZ = :AAZ
623
- ABA = :ABA
624
- ABB = :ABB
625
- ABC = :ABC
626
- ABD = :ABD
627
- ABF = :ABF
628
- ABK = :ABK
629
- ABL = :ABL
630
- ABN = :ABN
631
- ABR = :ABR
632
- ABS = :ABS
633
- ABT = :ABT
634
- ABU = :ABU
635
- ACF = :ACF
636
- ACG = :ACG
637
- ACH = :ACH
638
- ACI = :ACI
639
- ACJ = :ACJ
640
- ACK = :ACK
641
- ACL = :ACL
642
- ACM = :ACM
643
- ACS = :ACS
644
- ADC = :ADC
645
- ADE = :ADE
646
- ADJ = :ADJ
647
- ADK = :ADK
648
- ADL = :ADL
649
- ADM = :ADM
650
- ADN = :ADN
651
- ADO = :ADO
652
- ADP = :ADP
653
- ADQ = :ADQ
654
- ADR = :ADR
655
- ADT = :ADT
656
- ADW = :ADW
657
- ADY = :ADY
658
- ADZ = :ADZ
659
- AEA = :AEA
660
- AEB = :AEB
661
- AEC = :AEC
662
- AED = :AED
663
- AEF = :AEF
664
- AEH = :AEH
665
- AEI = :AEI
666
- AEJ = :AEJ
667
- AEK = :AEK
668
- AEL = :AEL
669
- AEM = :AEM
670
- AEN = :AEN
671
- AEO = :AEO
672
- AEP = :AEP
673
- AES = :AES
674
- AET = :AET
675
- AEU = :AEU
676
- AEV = :AEV
677
- AEW = :AEW
678
- AEX = :AEX
679
- AEY = :AEY
680
- AEZ = :AEZ
681
- AJ = :AJ
682
- AU = :AU
683
- CA = :CA
684
- CAB = :CAB
685
- CAD = :CAD
686
- CAE = :CAE
687
- CAF = :CAF
688
- CAI = :CAI
689
- CAJ = :CAJ
690
- CAK = :CAK
691
- CAL = :CAL
692
- CAM = :CAM
693
- CAN = :CAN
694
- CAO = :CAO
695
- CAP = :CAP
696
- CAQ = :CAQ
697
- CAR = :CAR
698
- CAS = :CAS
699
- CAT = :CAT
700
- CAU = :CAU
701
- CAV = :CAV
702
- CAW = :CAW
703
- CAX = :CAX
704
- CAY = :CAY
705
- CAZ = :CAZ
706
- CD = :CD
707
- CG = :CG
708
- CS = :CS
709
- CT = :CT
710
- DAB = :DAB
711
- DAC = :DAC
712
- DAD = :DAD
713
- DAF = :DAF
714
- DAG = :DAG
715
- DAH = :DAH
716
- DAI = :DAI
717
- DAJ = :DAJ
718
- DAK = :DAK
719
- DAL = :DAL
720
- DAM = :DAM
721
- DAN = :DAN
722
- DAO = :DAO
723
- DAP = :DAP
724
- DAQ = :DAQ
725
- DL = :DL
726
- EG = :EG
727
- EP = :EP
728
- ER = :ER
729
- FAA = :FAA
730
- FAB = :FAB
731
- FAC = :FAC
732
- FC = :FC
733
- FH = :FH
734
- FI = :FI
735
- GAA = :GAA
736
- HAA = :HAA
737
- HD = :HD
738
- HH = :HH
739
- IAA = :IAA
740
- IAB = :IAB
741
- ID = :ID
742
- IF = :IF
743
- IR = :IR
744
- IS = :IS
745
- KO = :KO
746
- L1 = :L1
747
- LA = :LA
748
- LAA = :LAA
749
- LAB = :LAB
750
- LF = :LF
751
- MAE = :MAE
752
- MI = :MI
753
- ML = :ML
754
- NAA = :NAA
755
- OA = :OA
756
- PA = :PA
757
- PAA = :PAA
758
- PC = :PC
759
- PL = :PL
760
- PRV = :PRV
761
- RAB = :RAB
762
- RAC = :RAC
763
- RAD = :RAD
764
- RAF = :RAF
765
- RE = :RE
766
- RF = :RF
767
- RH = :RH
768
- RV = :RV
769
- SA = :SA
770
- SAA = :SAA
771
- SAD = :SAD
772
- SAE = :SAE
773
- SAI = :SAI
774
- SG = :SG
775
- SH = :SH
776
- SM = :SM
777
- SU = :SU
778
- TAB = :TAB
779
- TAC = :TAC
780
- TT = :TT
781
- TV = :TV
782
- V1 = :V1
783
- V2 = :V2
784
- WH = :WH
785
- XAA = :XAA
786
- YY = :YY
787
- ZZZ = :ZZZ
788
-
789
- # @!method self.values
790
- # @return [Array<Symbol>]
791
- end
792
-
793
576
  # Duty or tax or fee category codes (Subset of UNCL5305)
794
577
  #
795
578
  # Agency: UN/CEFACT Version: D.16B Subset: OpenPEPPOL
@@ -822,9 +605,9 @@ module EInvoiceAPI
822
605
  optional :allowances, -> { EInvoiceAPI::Internal::Type::ArrayOf[EInvoiceAPI::Allowance] }, nil?: true
823
606
 
824
607
  # @!attribute amount
825
- # The invoice line net amount (BT-131), exclusive of VAT, inclusive of line level
826
- # allowances and charges. Calculated as: ((unit_price / price_base_quantity) \*
827
- # quantity) - allowances + charges. Must be rounded to maximum 2 decimals
608
+ # The total amount of the line item, exclusive of VAT, after subtracting line
609
+ # level allowances and adding line level charges. Must be rounded to maximum 2
610
+ # decimals
828
611
  #
829
612
  # @return [String, nil]
830
613
  optional :amount, String, nil?: true
@@ -846,13 +629,6 @@ module EInvoiceAPI
846
629
  # @return [String, nil]
847
630
  optional :description, String, nil?: true
848
631
 
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
632
  # @!attribute product_code
857
633
  # The product code of the line item.
858
634
  #
@@ -885,19 +661,18 @@ module EInvoiceAPI
885
661
  optional :unit, enum: -> { EInvoiceAPI::UnitOfMeasureCode }, nil?: true
886
662
 
887
663
  # @!attribute unit_price
888
- # The item net price (BT-146). The price of an item, exclusive of VAT, after
889
- # subtracting item price discount. Must be rounded to maximum 4 decimals
664
+ # The unit price of the line item. Must be rounded to maximum 2 decimals
890
665
  #
891
666
  # @return [String, nil]
892
667
  optional :unit_price, String, nil?: true
893
668
 
894
- # @!method initialize(allowances: nil, amount: nil, charges: nil, date: nil, description: nil, price_base_quantity: nil, product_code: nil, quantity: nil, tax: nil, tax_rate: nil, unit: nil, unit_price: nil)
669
+ # @!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
670
  # Some parameter documentations has been truncated, see
896
671
  # {EInvoiceAPI::Models::DocumentResponse::Item} for more details.
897
672
  #
898
673
  # @param allowances [Array<EInvoiceAPI::Models::Allowance>, nil] The allowances of the line item.
899
674
  #
900
- # @param amount [String, nil] The invoice line net amount (BT-131), exclusive of VAT, inclusive of line level
675
+ # @param amount [String, nil] The total amount of the line item, exclusive of VAT, after subtracting line leve
901
676
  #
902
677
  # @param charges [Array<EInvoiceAPI::Models::Charge>, nil] The charges of the line item.
903
678
  #
@@ -905,8 +680,6 @@ module EInvoiceAPI
905
680
  #
906
681
  # @param description [String, nil] The description of the line item.
907
682
  #
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
683
  # @param product_code [String, nil] The product code of the line item.
911
684
  #
912
685
  # @param quantity [String, nil] The quantity of items (goods or services) that is the subject of the line item.
@@ -917,7 +690,7 @@ module EInvoiceAPI
917
690
  #
918
691
  # @param unit [Symbol, EInvoiceAPI::Models::UnitOfMeasureCode, nil] Unit of Measure Codes from UNECERec20 used in Peppol BIS Billing 3.0.
919
692
  #
920
- # @param unit_price [String, nil] The item net price (BT-146). The price of an item, exclusive of VAT, after subtr
693
+ # @param unit_price [String, nil] The unit price of the line item. Must be rounded to maximum 2 decimals
921
694
  end
922
695
 
923
696
  class PaymentDetail < EInvoiceAPI::Internal::Type::BaseModel
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EInvoiceAPI
4
- VERSION = "0.12.0"
4
+ VERSION = "0.13.0"
5
5
  end
@@ -18,8 +18,7 @@ module EInvoiceAPI
18
18
  attr_accessor :base_amount
19
19
 
20
20
  # The percentage that may be used, in conjunction with the allowance base amount,
21
- # to calculate the allowance amount. To state 20%, use value 20. Must be rounded
22
- # to maximum 2 decimals
21
+ # to calculate the allowance amount. To state 20%, use value 20
23
22
  sig { returns(T.nilable(String)) }
24
23
  attr_accessor :multiplier_factor
25
24
 
@@ -27,21 +26,17 @@ module EInvoiceAPI
27
26
  sig { returns(T.nilable(String)) }
28
27
  attr_accessor :reason
29
28
 
30
- # Allowance reason codes for invoice discounts and charges
31
- sig do
32
- returns(T.nilable(EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol))
33
- end
29
+ # The code for the allowance reason
30
+ sig { returns(T.nilable(String)) }
34
31
  attr_accessor :reason_code
35
32
 
36
- # The VAT category code that applies to the allowance
33
+ # Duty or tax or fee category codes (Subset of UNCL5305)
34
+ #
35
+ # Agency: UN/CEFACT Version: D.16B Subset: OpenPEPPOL
37
36
  sig { returns(T.nilable(EInvoiceAPI::Allowance::TaxCode::TaggedSymbol)) }
38
- attr_reader :tax_code
37
+ attr_accessor :tax_code
39
38
 
40
- sig { params(tax_code: EInvoiceAPI::Allowance::TaxCode::OrSymbol).void }
41
- attr_writer :tax_code
42
-
43
- # The VAT rate, represented as percentage that applies to the allowance. Must be
44
- # rounded to maximum 2 decimals
39
+ # The VAT rate, represented as percentage that applies to the allowance
45
40
  sig { returns(T.nilable(String)) }
46
41
  attr_accessor :tax_rate
47
42
 
@@ -52,8 +47,8 @@ module EInvoiceAPI
52
47
  base_amount: T.nilable(String),
53
48
  multiplier_factor: T.nilable(String),
54
49
  reason: T.nilable(String),
55
- reason_code: T.nilable(EInvoiceAPI::Allowance::ReasonCode::OrSymbol),
56
- tax_code: EInvoiceAPI::Allowance::TaxCode::OrSymbol,
50
+ reason_code: T.nilable(String),
51
+ tax_code: T.nilable(EInvoiceAPI::Allowance::TaxCode::OrSymbol),
57
52
  tax_rate: T.nilable(String)
58
53
  ).returns(T.attached_class)
59
54
  end
@@ -64,17 +59,17 @@ module EInvoiceAPI
64
59
  # to calculate the allowance amount. Must be rounded to maximum 2 decimals
65
60
  base_amount: nil,
66
61
  # The percentage that may be used, in conjunction with the allowance base amount,
67
- # to calculate the allowance amount. To state 20%, use value 20. Must be rounded
68
- # to maximum 2 decimals
62
+ # to calculate the allowance amount. To state 20%, use value 20
69
63
  multiplier_factor: nil,
70
64
  # The reason for the allowance
71
65
  reason: nil,
72
- # Allowance reason codes for invoice discounts and charges
66
+ # The code for the allowance reason
73
67
  reason_code: nil,
74
- # The VAT category code that applies to the allowance
68
+ # Duty or tax or fee category codes (Subset of UNCL5305)
69
+ #
70
+ # Agency: UN/CEFACT Version: D.16B Subset: OpenPEPPOL
75
71
  tax_code: nil,
76
- # The VAT rate, represented as percentage that applies to the allowance. Must be
77
- # rounded to maximum 2 decimals
72
+ # The VAT rate, represented as percentage that applies to the allowance
78
73
  tax_rate: nil
79
74
  )
80
75
  end
@@ -86,9 +81,8 @@ module EInvoiceAPI
86
81
  base_amount: T.nilable(String),
87
82
  multiplier_factor: T.nilable(String),
88
83
  reason: T.nilable(String),
89
- reason_code:
90
- T.nilable(EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol),
91
- tax_code: EInvoiceAPI::Allowance::TaxCode::TaggedSymbol,
84
+ reason_code: T.nilable(String),
85
+ tax_code: T.nilable(EInvoiceAPI::Allowance::TaxCode::TaggedSymbol),
92
86
  tax_rate: T.nilable(String)
93
87
  }
94
88
  )
@@ -96,63 +90,9 @@ module EInvoiceAPI
96
90
  def to_hash
97
91
  end
98
92
 
99
- # Allowance reason codes for invoice discounts and charges
100
- module ReasonCode
101
- extend EInvoiceAPI::Internal::Type::Enum
102
-
103
- TaggedSymbol =
104
- T.type_alias { T.all(Symbol, EInvoiceAPI::Allowance::ReasonCode) }
105
- OrSymbol = T.type_alias { T.any(Symbol, String) }
106
-
107
- REASON_CODE_41 =
108
- T.let(:"41", EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol)
109
- REASON_CODE_42 =
110
- T.let(:"42", EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol)
111
- REASON_CODE_60 =
112
- T.let(:"60", EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol)
113
- REASON_CODE_62 =
114
- T.let(:"62", EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol)
115
- REASON_CODE_63 =
116
- T.let(:"63", EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol)
117
- REASON_CODE_64 =
118
- T.let(:"64", EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol)
119
- REASON_CODE_65 =
120
- T.let(:"65", EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol)
121
- REASON_CODE_66 =
122
- T.let(:"66", EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol)
123
- REASON_CODE_67 =
124
- T.let(:"67", EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol)
125
- REASON_CODE_68 =
126
- T.let(:"68", EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol)
127
- REASON_CODE_70 =
128
- T.let(:"70", EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol)
129
- REASON_CODE_71 =
130
- T.let(:"71", EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol)
131
- REASON_CODE_88 =
132
- T.let(:"88", EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol)
133
- REASON_CODE_95 =
134
- T.let(:"95", EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol)
135
- REASON_CODE_100 =
136
- T.let(:"100", EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol)
137
- REASON_CODE_102 =
138
- T.let(:"102", EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol)
139
- REASON_CODE_103 =
140
- T.let(:"103", EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol)
141
- REASON_CODE_104 =
142
- T.let(:"104", EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol)
143
- REASON_CODE_105 =
144
- T.let(:"105", EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol)
145
-
146
- sig do
147
- override.returns(
148
- T::Array[EInvoiceAPI::Allowance::ReasonCode::TaggedSymbol]
149
- )
150
- end
151
- def self.values
152
- end
153
- end
154
-
155
- # The VAT category code that applies to the allowance
93
+ # Duty or tax or fee category codes (Subset of UNCL5305)
94
+ #
95
+ # Agency: UN/CEFACT Version: D.16B Subset: OpenPEPPOL
156
96
  module TaxCode
157
97
  extend EInvoiceAPI::Internal::Type::Enum
158
98