e-invoice-api 0.13.0 → 0.14.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.
@@ -281,9 +281,9 @@ module EInvoiceAPI
281
281
  base_amount: EInvoiceAPI::Models::DocumentCreate::Allowance::base_amount?,
282
282
  multiplier_factor: EInvoiceAPI::Models::DocumentCreate::Allowance::multiplier_factor?,
283
283
  reason: String?,
284
- reason_code: String?,
285
- tax_code: EInvoiceAPI::Models::DocumentCreate::Allowance::tax_code?,
286
- tax_rate: String?
284
+ reason_code: EInvoiceAPI::Models::DocumentCreate::Allowance::reason_code?,
285
+ tax_code: EInvoiceAPI::Models::DocumentCreate::Allowance::tax_code,
286
+ tax_rate: EInvoiceAPI::Models::DocumentCreate::Allowance::tax_rate?
287
287
  }
288
288
 
289
289
  class Allowance < EInvoiceAPI::Internal::Type::BaseModel
@@ -295,20 +295,24 @@ module EInvoiceAPI
295
295
 
296
296
  attr_accessor reason: String?
297
297
 
298
- attr_accessor reason_code: String?
298
+ attr_accessor reason_code: EInvoiceAPI::Models::DocumentCreate::Allowance::reason_code?
299
299
 
300
- attr_accessor tax_code: EInvoiceAPI::Models::DocumentCreate::Allowance::tax_code?
300
+ attr_reader tax_code: EInvoiceAPI::Models::DocumentCreate::Allowance::tax_code?
301
301
 
302
- attr_accessor tax_rate: String?
302
+ def tax_code=: (
303
+ EInvoiceAPI::Models::DocumentCreate::Allowance::tax_code
304
+ ) -> EInvoiceAPI::Models::DocumentCreate::Allowance::tax_code
305
+
306
+ attr_accessor tax_rate: EInvoiceAPI::Models::DocumentCreate::Allowance::tax_rate?
303
307
 
304
308
  def initialize: (
305
309
  ?amount: EInvoiceAPI::Models::DocumentCreate::Allowance::amount?,
306
310
  ?base_amount: EInvoiceAPI::Models::DocumentCreate::Allowance::base_amount?,
307
311
  ?multiplier_factor: EInvoiceAPI::Models::DocumentCreate::Allowance::multiplier_factor?,
308
312
  ?reason: String?,
309
- ?reason_code: String?,
310
- ?tax_code: EInvoiceAPI::Models::DocumentCreate::Allowance::tax_code?,
311
- ?tax_rate: String?
313
+ ?reason_code: EInvoiceAPI::Models::DocumentCreate::Allowance::reason_code?,
314
+ ?tax_code: EInvoiceAPI::Models::DocumentCreate::Allowance::tax_code,
315
+ ?tax_rate: EInvoiceAPI::Models::DocumentCreate::Allowance::tax_rate?
312
316
  ) -> void
313
317
 
314
318
  def to_hash: -> {
@@ -316,9 +320,9 @@ module EInvoiceAPI
316
320
  base_amount: EInvoiceAPI::Models::DocumentCreate::Allowance::base_amount?,
317
321
  multiplier_factor: EInvoiceAPI::Models::DocumentCreate::Allowance::multiplier_factor?,
318
322
  reason: String?,
319
- reason_code: String?,
320
- tax_code: EInvoiceAPI::Models::DocumentCreate::Allowance::tax_code?,
321
- tax_rate: String?
323
+ reason_code: EInvoiceAPI::Models::DocumentCreate::Allowance::reason_code?,
324
+ tax_code: EInvoiceAPI::Models::DocumentCreate::Allowance::tax_code,
325
+ tax_rate: EInvoiceAPI::Models::DocumentCreate::Allowance::tax_rate?
322
326
  }
323
327
 
324
328
  type amount = Float | String
@@ -345,6 +349,53 @@ module EInvoiceAPI
345
349
  def self?.variants: -> ::Array[EInvoiceAPI::Models::DocumentCreate::Allowance::multiplier_factor]
346
350
  end
347
351
 
352
+ type reason_code =
353
+ :"41"
354
+ | :"42"
355
+ | :"60"
356
+ | :"62"
357
+ | :"63"
358
+ | :"64"
359
+ | :"65"
360
+ | :"66"
361
+ | :"67"
362
+ | :"68"
363
+ | :"70"
364
+ | :"71"
365
+ | :"88"
366
+ | :"95"
367
+ | :"100"
368
+ | :"102"
369
+ | :"103"
370
+ | :"104"
371
+ | :"105"
372
+
373
+ module ReasonCode
374
+ extend EInvoiceAPI::Internal::Type::Enum
375
+
376
+ REASON_CODE_41: :"41"
377
+ REASON_CODE_42: :"42"
378
+ REASON_CODE_60: :"60"
379
+ REASON_CODE_62: :"62"
380
+ REASON_CODE_63: :"63"
381
+ REASON_CODE_64: :"64"
382
+ REASON_CODE_65: :"65"
383
+ REASON_CODE_66: :"66"
384
+ REASON_CODE_67: :"67"
385
+ REASON_CODE_68: :"68"
386
+ REASON_CODE_70: :"70"
387
+ REASON_CODE_71: :"71"
388
+ REASON_CODE_88: :"88"
389
+ REASON_CODE_95: :"95"
390
+ REASON_CODE_100: :"100"
391
+ REASON_CODE_102: :"102"
392
+ REASON_CODE_103: :"103"
393
+ REASON_CODE_104: :"104"
394
+ REASON_CODE_105: :"105"
395
+
396
+ def self?.values: -> ::Array[EInvoiceAPI::Models::DocumentCreate::Allowance::reason_code]
397
+ end
398
+
348
399
  type tax_code = :AE | :E | :S | :Z | :G | :O | :K | :L | :M | :B
349
400
 
350
401
  module TaxCode
@@ -363,6 +414,14 @@ module EInvoiceAPI
363
414
 
364
415
  def self?.values: -> ::Array[EInvoiceAPI::Models::DocumentCreate::Allowance::tax_code]
365
416
  end
417
+
418
+ type tax_rate = Float | String
419
+
420
+ module TaxRate
421
+ extend EInvoiceAPI::Internal::Type::Union
422
+
423
+ def self?.variants: -> ::Array[EInvoiceAPI::Models::DocumentCreate::Allowance::tax_rate]
424
+ end
366
425
  end
367
426
 
368
427
  type amount_due = Float | String
@@ -379,9 +438,9 @@ module EInvoiceAPI
379
438
  base_amount: EInvoiceAPI::Models::DocumentCreate::Charge::base_amount?,
380
439
  multiplier_factor: EInvoiceAPI::Models::DocumentCreate::Charge::multiplier_factor?,
381
440
  reason: String?,
382
- reason_code: String?,
441
+ reason_code: EInvoiceAPI::Models::DocumentCreate::Charge::reason_code?,
383
442
  tax_code: EInvoiceAPI::Models::DocumentCreate::Charge::tax_code?,
384
- tax_rate: String?
443
+ tax_rate: EInvoiceAPI::Models::DocumentCreate::Charge::tax_rate?
385
444
  }
386
445
 
387
446
  class Charge < EInvoiceAPI::Internal::Type::BaseModel
@@ -393,20 +452,20 @@ module EInvoiceAPI
393
452
 
394
453
  attr_accessor reason: String?
395
454
 
396
- attr_accessor reason_code: String?
455
+ attr_accessor reason_code: EInvoiceAPI::Models::DocumentCreate::Charge::reason_code?
397
456
 
398
457
  attr_accessor tax_code: EInvoiceAPI::Models::DocumentCreate::Charge::tax_code?
399
458
 
400
- attr_accessor tax_rate: String?
459
+ attr_accessor tax_rate: EInvoiceAPI::Models::DocumentCreate::Charge::tax_rate?
401
460
 
402
461
  def initialize: (
403
462
  ?amount: EInvoiceAPI::Models::DocumentCreate::Charge::amount?,
404
463
  ?base_amount: EInvoiceAPI::Models::DocumentCreate::Charge::base_amount?,
405
464
  ?multiplier_factor: EInvoiceAPI::Models::DocumentCreate::Charge::multiplier_factor?,
406
465
  ?reason: String?,
407
- ?reason_code: String?,
466
+ ?reason_code: EInvoiceAPI::Models::DocumentCreate::Charge::reason_code?,
408
467
  ?tax_code: EInvoiceAPI::Models::DocumentCreate::Charge::tax_code?,
409
- ?tax_rate: String?
468
+ ?tax_rate: EInvoiceAPI::Models::DocumentCreate::Charge::tax_rate?
410
469
  ) -> void
411
470
 
412
471
  def to_hash: -> {
@@ -414,9 +473,9 @@ module EInvoiceAPI
414
473
  base_amount: EInvoiceAPI::Models::DocumentCreate::Charge::base_amount?,
415
474
  multiplier_factor: EInvoiceAPI::Models::DocumentCreate::Charge::multiplier_factor?,
416
475
  reason: String?,
417
- reason_code: String?,
476
+ reason_code: EInvoiceAPI::Models::DocumentCreate::Charge::reason_code?,
418
477
  tax_code: EInvoiceAPI::Models::DocumentCreate::Charge::tax_code?,
419
- tax_rate: String?
478
+ tax_rate: EInvoiceAPI::Models::DocumentCreate::Charge::tax_rate?
420
479
  }
421
480
 
422
481
  type amount = Float | String
@@ -443,6 +502,371 @@ module EInvoiceAPI
443
502
  def self?.variants: -> ::Array[EInvoiceAPI::Models::DocumentCreate::Charge::multiplier_factor]
444
503
  end
445
504
 
505
+ type reason_code =
506
+ :AA
507
+ | :AAA
508
+ | :AAC
509
+ | :AAD
510
+ | :AAE
511
+ | :AAF
512
+ | :AAH
513
+ | :AAI
514
+ | :AAS
515
+ | :AAT
516
+ | :AAV
517
+ | :AAY
518
+ | :AAZ
519
+ | :ABA
520
+ | :ABB
521
+ | :ABC
522
+ | :ABD
523
+ | :ABF
524
+ | :ABK
525
+ | :ABL
526
+ | :ABN
527
+ | :ABR
528
+ | :ABS
529
+ | :ABT
530
+ | :ABU
531
+ | :ACF
532
+ | :ACG
533
+ | :ACH
534
+ | :ACI
535
+ | :ACJ
536
+ | :ACK
537
+ | :ACL
538
+ | :ACM
539
+ | :ACS
540
+ | :ADC
541
+ | :ADE
542
+ | :ADJ
543
+ | :ADK
544
+ | :ADL
545
+ | :ADM
546
+ | :ADN
547
+ | :ADO
548
+ | :ADP
549
+ | :ADQ
550
+ | :ADR
551
+ | :ADT
552
+ | :ADW
553
+ | :ADY
554
+ | :ADZ
555
+ | :AEA
556
+ | :AEB
557
+ | :AEC
558
+ | :AED
559
+ | :AEF
560
+ | :AEH
561
+ | :AEI
562
+ | :AEJ
563
+ | :AEK
564
+ | :AEL
565
+ | :AEM
566
+ | :AEN
567
+ | :AEO
568
+ | :AEP
569
+ | :AES
570
+ | :AET
571
+ | :AEU
572
+ | :AEV
573
+ | :AEW
574
+ | :AEX
575
+ | :AEY
576
+ | :AEZ
577
+ | :AJ
578
+ | :AU
579
+ | :CA
580
+ | :CAB
581
+ | :CAD
582
+ | :CAE
583
+ | :CAF
584
+ | :CAI
585
+ | :CAJ
586
+ | :CAK
587
+ | :CAL
588
+ | :CAM
589
+ | :CAN
590
+ | :CAO
591
+ | :CAP
592
+ | :CAQ
593
+ | :CAR
594
+ | :CAS
595
+ | :CAT
596
+ | :CAU
597
+ | :CAV
598
+ | :CAW
599
+ | :CAX
600
+ | :CAY
601
+ | :CAZ
602
+ | :CD
603
+ | :CG
604
+ | :CS
605
+ | :CT
606
+ | :DAB
607
+ | :DAC
608
+ | :DAD
609
+ | :DAF
610
+ | :DAG
611
+ | :DAH
612
+ | :DAI
613
+ | :DAJ
614
+ | :DAK
615
+ | :DAL
616
+ | :DAM
617
+ | :DAN
618
+ | :DAO
619
+ | :DAP
620
+ | :DAQ
621
+ | :DL
622
+ | :EG
623
+ | :EP
624
+ | :ER
625
+ | :FAA
626
+ | :FAB
627
+ | :FAC
628
+ | :FC
629
+ | :FH
630
+ | :FI
631
+ | :GAA
632
+ | :HAA
633
+ | :HD
634
+ | :HH
635
+ | :IAA
636
+ | :IAB
637
+ | :ID
638
+ | :IF
639
+ | :IR
640
+ | :IS
641
+ | :KO
642
+ | :L1
643
+ | :LA
644
+ | :LAA
645
+ | :LAB
646
+ | :LF
647
+ | :MAE
648
+ | :MI
649
+ | :ML
650
+ | :NAA
651
+ | :OA
652
+ | :PA
653
+ | :PAA
654
+ | :PC
655
+ | :PL
656
+ | :PRV
657
+ | :RAB
658
+ | :RAC
659
+ | :RAD
660
+ | :RAF
661
+ | :RE
662
+ | :RF
663
+ | :RH
664
+ | :RV
665
+ | :SA
666
+ | :SAA
667
+ | :SAD
668
+ | :SAE
669
+ | :SAI
670
+ | :SG
671
+ | :SH
672
+ | :SM
673
+ | :SU
674
+ | :TAB
675
+ | :TAC
676
+ | :TT
677
+ | :TV
678
+ | :V1
679
+ | :V2
680
+ | :WH
681
+ | :XAA
682
+ | :YY
683
+ | :ZZZ
684
+
685
+ module ReasonCode
686
+ extend EInvoiceAPI::Internal::Type::Enum
687
+
688
+ AA: :AA
689
+ AAA: :AAA
690
+ AAC: :AAC
691
+ AAD: :AAD
692
+ AAE: :AAE
693
+ AAF: :AAF
694
+ AAH: :AAH
695
+ AAI: :AAI
696
+ AAS: :AAS
697
+ AAT: :AAT
698
+ AAV: :AAV
699
+ AAY: :AAY
700
+ AAZ: :AAZ
701
+ ABA: :ABA
702
+ ABB: :ABB
703
+ ABC: :ABC
704
+ ABD: :ABD
705
+ ABF: :ABF
706
+ ABK: :ABK
707
+ ABL: :ABL
708
+ ABN: :ABN
709
+ ABR: :ABR
710
+ ABS: :ABS
711
+ ABT: :ABT
712
+ ABU: :ABU
713
+ ACF: :ACF
714
+ ACG: :ACG
715
+ ACH: :ACH
716
+ ACI: :ACI
717
+ ACJ: :ACJ
718
+ ACK: :ACK
719
+ ACL: :ACL
720
+ ACM: :ACM
721
+ ACS: :ACS
722
+ ADC: :ADC
723
+ ADE: :ADE
724
+ ADJ: :ADJ
725
+ ADK: :ADK
726
+ ADL: :ADL
727
+ ADM: :ADM
728
+ ADN: :ADN
729
+ ADO: :ADO
730
+ ADP: :ADP
731
+ ADQ: :ADQ
732
+ ADR: :ADR
733
+ ADT: :ADT
734
+ ADW: :ADW
735
+ ADY: :ADY
736
+ ADZ: :ADZ
737
+ AEA: :AEA
738
+ AEB: :AEB
739
+ AEC: :AEC
740
+ AED: :AED
741
+ AEF: :AEF
742
+ AEH: :AEH
743
+ AEI: :AEI
744
+ AEJ: :AEJ
745
+ AEK: :AEK
746
+ AEL: :AEL
747
+ AEM: :AEM
748
+ AEN: :AEN
749
+ AEO: :AEO
750
+ AEP: :AEP
751
+ AES: :AES
752
+ AET: :AET
753
+ AEU: :AEU
754
+ AEV: :AEV
755
+ AEW: :AEW
756
+ AEX: :AEX
757
+ AEY: :AEY
758
+ AEZ: :AEZ
759
+ AJ: :AJ
760
+ AU: :AU
761
+ CA: :CA
762
+ CAB: :CAB
763
+ CAD: :CAD
764
+ CAE: :CAE
765
+ CAF: :CAF
766
+ CAI: :CAI
767
+ CAJ: :CAJ
768
+ CAK: :CAK
769
+ CAL: :CAL
770
+ CAM: :CAM
771
+ CAN: :CAN
772
+ CAO: :CAO
773
+ CAP: :CAP
774
+ CAQ: :CAQ
775
+ CAR: :CAR
776
+ CAS: :CAS
777
+ CAT: :CAT
778
+ CAU: :CAU
779
+ CAV: :CAV
780
+ CAW: :CAW
781
+ CAX: :CAX
782
+ CAY: :CAY
783
+ CAZ: :CAZ
784
+ CD: :CD
785
+ CG: :CG
786
+ CS: :CS
787
+ CT: :CT
788
+ DAB: :DAB
789
+ DAC: :DAC
790
+ DAD: :DAD
791
+ DAF: :DAF
792
+ DAG: :DAG
793
+ DAH: :DAH
794
+ DAI: :DAI
795
+ DAJ: :DAJ
796
+ DAK: :DAK
797
+ DAL: :DAL
798
+ DAM: :DAM
799
+ DAN: :DAN
800
+ DAO: :DAO
801
+ DAP: :DAP
802
+ DAQ: :DAQ
803
+ DL: :DL
804
+ EG: :EG
805
+ EP: :EP
806
+ ER: :ER
807
+ FAA: :FAA
808
+ FAB: :FAB
809
+ FAC: :FAC
810
+ FC: :FC
811
+ FH: :FH
812
+ FI: :FI
813
+ GAA: :GAA
814
+ HAA: :HAA
815
+ HD: :HD
816
+ HH: :HH
817
+ IAA: :IAA
818
+ IAB: :IAB
819
+ ID: :ID
820
+ IF: :IF
821
+ IR: :IR
822
+ IS: :IS
823
+ KO: :KO
824
+ L1: :L1
825
+ LA: :LA
826
+ LAA: :LAA
827
+ LAB: :LAB
828
+ LF: :LF
829
+ MAE: :MAE
830
+ MI: :MI
831
+ ML: :ML
832
+ NAA: :NAA
833
+ OA: :OA
834
+ PA: :PA
835
+ PAA: :PAA
836
+ PC: :PC
837
+ PL: :PL
838
+ PRV: :PRV
839
+ RAB: :RAB
840
+ RAC: :RAC
841
+ RAD: :RAD
842
+ RAF: :RAF
843
+ RE: :RE
844
+ RF: :RF
845
+ RH: :RH
846
+ RV: :RV
847
+ SA: :SA
848
+ SAA: :SAA
849
+ SAD: :SAD
850
+ SAE: :SAE
851
+ SAI: :SAI
852
+ SG: :SG
853
+ SH: :SH
854
+ SM: :SM
855
+ SU: :SU
856
+ TAB: :TAB
857
+ TAC: :TAC
858
+ TT: :TT
859
+ TV: :TV
860
+ V1: :V1
861
+ V2: :V2
862
+ WH: :WH
863
+ XAA: :XAA
864
+ YY: :YY
865
+ ZZZ: :ZZZ
866
+
867
+ def self?.values: -> ::Array[EInvoiceAPI::Models::DocumentCreate::Charge::reason_code]
868
+ end
869
+
446
870
  type tax_code = :AE | :E | :S | :Z | :G | :O | :K | :L | :M | :B
447
871
 
448
872
  module TaxCode
@@ -461,6 +885,14 @@ module EInvoiceAPI
461
885
 
462
886
  def self?.values: -> ::Array[EInvoiceAPI::Models::DocumentCreate::Charge::tax_code]
463
887
  end
888
+
889
+ type tax_rate = Float | String
890
+
891
+ module TaxRate
892
+ extend EInvoiceAPI::Internal::Type::Union
893
+
894
+ def self?.variants: -> ::Array[EInvoiceAPI::Models::DocumentCreate::Charge::tax_rate]
895
+ end
464
896
  end
465
897
 
466
898
  type invoice_total = Float | String
@@ -481,7 +913,7 @@ module EInvoiceAPI
481
913
  product_code: String?,
482
914
  quantity: EInvoiceAPI::Models::DocumentCreate::Item::quantity?,
483
915
  tax: EInvoiceAPI::Models::DocumentCreate::Item::tax?,
484
- tax_rate: String?,
916
+ tax_rate: EInvoiceAPI::Models::DocumentCreate::Item::tax_rate?,
485
917
  unit: EInvoiceAPI::Models::unit_of_measure_code?,
486
918
  unit_price: EInvoiceAPI::Models::DocumentCreate::Item::unit_price?
487
919
  }
@@ -503,7 +935,7 @@ module EInvoiceAPI
503
935
 
504
936
  attr_accessor tax: EInvoiceAPI::Models::DocumentCreate::Item::tax?
505
937
 
506
- attr_accessor tax_rate: String?
938
+ attr_accessor tax_rate: EInvoiceAPI::Models::DocumentCreate::Item::tax_rate?
507
939
 
508
940
  attr_accessor unit: EInvoiceAPI::Models::unit_of_measure_code?
509
941
 
@@ -518,7 +950,7 @@ module EInvoiceAPI
518
950
  ?product_code: String?,
519
951
  ?quantity: EInvoiceAPI::Models::DocumentCreate::Item::quantity?,
520
952
  ?tax: EInvoiceAPI::Models::DocumentCreate::Item::tax?,
521
- ?tax_rate: String?,
953
+ ?tax_rate: EInvoiceAPI::Models::DocumentCreate::Item::tax_rate?,
522
954
  ?unit: EInvoiceAPI::Models::unit_of_measure_code?,
523
955
  ?unit_price: EInvoiceAPI::Models::DocumentCreate::Item::unit_price?
524
956
  ) -> void
@@ -532,7 +964,7 @@ module EInvoiceAPI
532
964
  product_code: String?,
533
965
  quantity: EInvoiceAPI::Models::DocumentCreate::Item::quantity?,
534
966
  tax: EInvoiceAPI::Models::DocumentCreate::Item::tax?,
535
- tax_rate: String?,
967
+ tax_rate: EInvoiceAPI::Models::DocumentCreate::Item::tax_rate?,
536
968
  unit: EInvoiceAPI::Models::unit_of_measure_code?,
537
969
  unit_price: EInvoiceAPI::Models::DocumentCreate::Item::unit_price?
538
970
  }
@@ -543,9 +975,9 @@ module EInvoiceAPI
543
975
  base_amount: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::base_amount?,
544
976
  multiplier_factor: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::multiplier_factor?,
545
977
  reason: String?,
546
- reason_code: String?,
547
- tax_code: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::tax_code?,
548
- tax_rate: String?
978
+ reason_code: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::reason_code?,
979
+ tax_code: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::tax_code,
980
+ tax_rate: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::tax_rate?
549
981
  }
550
982
 
551
983
  class Allowance < EInvoiceAPI::Internal::Type::BaseModel
@@ -557,20 +989,24 @@ module EInvoiceAPI
557
989
 
558
990
  attr_accessor reason: String?
559
991
 
560
- attr_accessor reason_code: String?
992
+ attr_accessor reason_code: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::reason_code?
993
+
994
+ attr_reader tax_code: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::tax_code?
561
995
 
562
- attr_accessor tax_code: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::tax_code?
996
+ def tax_code=: (
997
+ EInvoiceAPI::Models::DocumentCreate::Item::Allowance::tax_code
998
+ ) -> EInvoiceAPI::Models::DocumentCreate::Item::Allowance::tax_code
563
999
 
564
- attr_accessor tax_rate: String?
1000
+ attr_accessor tax_rate: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::tax_rate?
565
1001
 
566
1002
  def initialize: (
567
1003
  ?amount: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::amount?,
568
1004
  ?base_amount: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::base_amount?,
569
1005
  ?multiplier_factor: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::multiplier_factor?,
570
1006
  ?reason: String?,
571
- ?reason_code: String?,
572
- ?tax_code: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::tax_code?,
573
- ?tax_rate: String?
1007
+ ?reason_code: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::reason_code?,
1008
+ ?tax_code: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::tax_code,
1009
+ ?tax_rate: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::tax_rate?
574
1010
  ) -> void
575
1011
 
576
1012
  def to_hash: -> {
@@ -578,9 +1014,9 @@ module EInvoiceAPI
578
1014
  base_amount: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::base_amount?,
579
1015
  multiplier_factor: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::multiplier_factor?,
580
1016
  reason: String?,
581
- reason_code: String?,
582
- tax_code: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::tax_code?,
583
- tax_rate: String?
1017
+ reason_code: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::reason_code?,
1018
+ tax_code: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::tax_code,
1019
+ tax_rate: EInvoiceAPI::Models::DocumentCreate::Item::Allowance::tax_rate?
584
1020
  }
585
1021
 
586
1022
  type amount = Float | String
@@ -607,6 +1043,53 @@ module EInvoiceAPI
607
1043
  def self?.variants: -> ::Array[EInvoiceAPI::Models::DocumentCreate::Item::Allowance::multiplier_factor]
608
1044
  end
609
1045
 
1046
+ type reason_code =
1047
+ :"41"
1048
+ | :"42"
1049
+ | :"60"
1050
+ | :"62"
1051
+ | :"63"
1052
+ | :"64"
1053
+ | :"65"
1054
+ | :"66"
1055
+ | :"67"
1056
+ | :"68"
1057
+ | :"70"
1058
+ | :"71"
1059
+ | :"88"
1060
+ | :"95"
1061
+ | :"100"
1062
+ | :"102"
1063
+ | :"103"
1064
+ | :"104"
1065
+ | :"105"
1066
+
1067
+ module ReasonCode
1068
+ extend EInvoiceAPI::Internal::Type::Enum
1069
+
1070
+ REASON_CODE_41: :"41"
1071
+ REASON_CODE_42: :"42"
1072
+ REASON_CODE_60: :"60"
1073
+ REASON_CODE_62: :"62"
1074
+ REASON_CODE_63: :"63"
1075
+ REASON_CODE_64: :"64"
1076
+ REASON_CODE_65: :"65"
1077
+ REASON_CODE_66: :"66"
1078
+ REASON_CODE_67: :"67"
1079
+ REASON_CODE_68: :"68"
1080
+ REASON_CODE_70: :"70"
1081
+ REASON_CODE_71: :"71"
1082
+ REASON_CODE_88: :"88"
1083
+ REASON_CODE_95: :"95"
1084
+ REASON_CODE_100: :"100"
1085
+ REASON_CODE_102: :"102"
1086
+ REASON_CODE_103: :"103"
1087
+ REASON_CODE_104: :"104"
1088
+ REASON_CODE_105: :"105"
1089
+
1090
+ def self?.values: -> ::Array[EInvoiceAPI::Models::DocumentCreate::Item::Allowance::reason_code]
1091
+ end
1092
+
610
1093
  type tax_code = :AE | :E | :S | :Z | :G | :O | :K | :L | :M | :B
611
1094
 
612
1095
  module TaxCode
@@ -625,6 +1108,14 @@ module EInvoiceAPI
625
1108
 
626
1109
  def self?.values: -> ::Array[EInvoiceAPI::Models::DocumentCreate::Item::Allowance::tax_code]
627
1110
  end
1111
+
1112
+ type tax_rate = Float | String
1113
+
1114
+ module TaxRate
1115
+ extend EInvoiceAPI::Internal::Type::Union
1116
+
1117
+ def self?.variants: -> ::Array[EInvoiceAPI::Models::DocumentCreate::Item::Allowance::tax_rate]
1118
+ end
628
1119
  end
629
1120
 
630
1121
  type amount = Float | String
@@ -641,9 +1132,9 @@ module EInvoiceAPI
641
1132
  base_amount: EInvoiceAPI::Models::DocumentCreate::Item::Charge::base_amount?,
642
1133
  multiplier_factor: EInvoiceAPI::Models::DocumentCreate::Item::Charge::multiplier_factor?,
643
1134
  reason: String?,
644
- reason_code: String?,
1135
+ reason_code: EInvoiceAPI::Models::DocumentCreate::Item::Charge::reason_code?,
645
1136
  tax_code: EInvoiceAPI::Models::DocumentCreate::Item::Charge::tax_code?,
646
- tax_rate: String?
1137
+ tax_rate: EInvoiceAPI::Models::DocumentCreate::Item::Charge::tax_rate?
647
1138
  }
648
1139
 
649
1140
  class Charge < EInvoiceAPI::Internal::Type::BaseModel
@@ -655,20 +1146,20 @@ module EInvoiceAPI
655
1146
 
656
1147
  attr_accessor reason: String?
657
1148
 
658
- attr_accessor reason_code: String?
1149
+ attr_accessor reason_code: EInvoiceAPI::Models::DocumentCreate::Item::Charge::reason_code?
659
1150
 
660
1151
  attr_accessor tax_code: EInvoiceAPI::Models::DocumentCreate::Item::Charge::tax_code?
661
1152
 
662
- attr_accessor tax_rate: String?
1153
+ attr_accessor tax_rate: EInvoiceAPI::Models::DocumentCreate::Item::Charge::tax_rate?
663
1154
 
664
1155
  def initialize: (
665
1156
  ?amount: EInvoiceAPI::Models::DocumentCreate::Item::Charge::amount?,
666
1157
  ?base_amount: EInvoiceAPI::Models::DocumentCreate::Item::Charge::base_amount?,
667
1158
  ?multiplier_factor: EInvoiceAPI::Models::DocumentCreate::Item::Charge::multiplier_factor?,
668
1159
  ?reason: String?,
669
- ?reason_code: String?,
1160
+ ?reason_code: EInvoiceAPI::Models::DocumentCreate::Item::Charge::reason_code?,
670
1161
  ?tax_code: EInvoiceAPI::Models::DocumentCreate::Item::Charge::tax_code?,
671
- ?tax_rate: String?
1162
+ ?tax_rate: EInvoiceAPI::Models::DocumentCreate::Item::Charge::tax_rate?
672
1163
  ) -> void
673
1164
 
674
1165
  def to_hash: -> {
@@ -676,9 +1167,9 @@ module EInvoiceAPI
676
1167
  base_amount: EInvoiceAPI::Models::DocumentCreate::Item::Charge::base_amount?,
677
1168
  multiplier_factor: EInvoiceAPI::Models::DocumentCreate::Item::Charge::multiplier_factor?,
678
1169
  reason: String?,
679
- reason_code: String?,
1170
+ reason_code: EInvoiceAPI::Models::DocumentCreate::Item::Charge::reason_code?,
680
1171
  tax_code: EInvoiceAPI::Models::DocumentCreate::Item::Charge::tax_code?,
681
- tax_rate: String?
1172
+ tax_rate: EInvoiceAPI::Models::DocumentCreate::Item::Charge::tax_rate?
682
1173
  }
683
1174
 
684
1175
  type amount = Float | String
@@ -705,6 +1196,371 @@ module EInvoiceAPI
705
1196
  def self?.variants: -> ::Array[EInvoiceAPI::Models::DocumentCreate::Item::Charge::multiplier_factor]
706
1197
  end
707
1198
 
1199
+ type reason_code =
1200
+ :AA
1201
+ | :AAA
1202
+ | :AAC
1203
+ | :AAD
1204
+ | :AAE
1205
+ | :AAF
1206
+ | :AAH
1207
+ | :AAI
1208
+ | :AAS
1209
+ | :AAT
1210
+ | :AAV
1211
+ | :AAY
1212
+ | :AAZ
1213
+ | :ABA
1214
+ | :ABB
1215
+ | :ABC
1216
+ | :ABD
1217
+ | :ABF
1218
+ | :ABK
1219
+ | :ABL
1220
+ | :ABN
1221
+ | :ABR
1222
+ | :ABS
1223
+ | :ABT
1224
+ | :ABU
1225
+ | :ACF
1226
+ | :ACG
1227
+ | :ACH
1228
+ | :ACI
1229
+ | :ACJ
1230
+ | :ACK
1231
+ | :ACL
1232
+ | :ACM
1233
+ | :ACS
1234
+ | :ADC
1235
+ | :ADE
1236
+ | :ADJ
1237
+ | :ADK
1238
+ | :ADL
1239
+ | :ADM
1240
+ | :ADN
1241
+ | :ADO
1242
+ | :ADP
1243
+ | :ADQ
1244
+ | :ADR
1245
+ | :ADT
1246
+ | :ADW
1247
+ | :ADY
1248
+ | :ADZ
1249
+ | :AEA
1250
+ | :AEB
1251
+ | :AEC
1252
+ | :AED
1253
+ | :AEF
1254
+ | :AEH
1255
+ | :AEI
1256
+ | :AEJ
1257
+ | :AEK
1258
+ | :AEL
1259
+ | :AEM
1260
+ | :AEN
1261
+ | :AEO
1262
+ | :AEP
1263
+ | :AES
1264
+ | :AET
1265
+ | :AEU
1266
+ | :AEV
1267
+ | :AEW
1268
+ | :AEX
1269
+ | :AEY
1270
+ | :AEZ
1271
+ | :AJ
1272
+ | :AU
1273
+ | :CA
1274
+ | :CAB
1275
+ | :CAD
1276
+ | :CAE
1277
+ | :CAF
1278
+ | :CAI
1279
+ | :CAJ
1280
+ | :CAK
1281
+ | :CAL
1282
+ | :CAM
1283
+ | :CAN
1284
+ | :CAO
1285
+ | :CAP
1286
+ | :CAQ
1287
+ | :CAR
1288
+ | :CAS
1289
+ | :CAT
1290
+ | :CAU
1291
+ | :CAV
1292
+ | :CAW
1293
+ | :CAX
1294
+ | :CAY
1295
+ | :CAZ
1296
+ | :CD
1297
+ | :CG
1298
+ | :CS
1299
+ | :CT
1300
+ | :DAB
1301
+ | :DAC
1302
+ | :DAD
1303
+ | :DAF
1304
+ | :DAG
1305
+ | :DAH
1306
+ | :DAI
1307
+ | :DAJ
1308
+ | :DAK
1309
+ | :DAL
1310
+ | :DAM
1311
+ | :DAN
1312
+ | :DAO
1313
+ | :DAP
1314
+ | :DAQ
1315
+ | :DL
1316
+ | :EG
1317
+ | :EP
1318
+ | :ER
1319
+ | :FAA
1320
+ | :FAB
1321
+ | :FAC
1322
+ | :FC
1323
+ | :FH
1324
+ | :FI
1325
+ | :GAA
1326
+ | :HAA
1327
+ | :HD
1328
+ | :HH
1329
+ | :IAA
1330
+ | :IAB
1331
+ | :ID
1332
+ | :IF
1333
+ | :IR
1334
+ | :IS
1335
+ | :KO
1336
+ | :L1
1337
+ | :LA
1338
+ | :LAA
1339
+ | :LAB
1340
+ | :LF
1341
+ | :MAE
1342
+ | :MI
1343
+ | :ML
1344
+ | :NAA
1345
+ | :OA
1346
+ | :PA
1347
+ | :PAA
1348
+ | :PC
1349
+ | :PL
1350
+ | :PRV
1351
+ | :RAB
1352
+ | :RAC
1353
+ | :RAD
1354
+ | :RAF
1355
+ | :RE
1356
+ | :RF
1357
+ | :RH
1358
+ | :RV
1359
+ | :SA
1360
+ | :SAA
1361
+ | :SAD
1362
+ | :SAE
1363
+ | :SAI
1364
+ | :SG
1365
+ | :SH
1366
+ | :SM
1367
+ | :SU
1368
+ | :TAB
1369
+ | :TAC
1370
+ | :TT
1371
+ | :TV
1372
+ | :V1
1373
+ | :V2
1374
+ | :WH
1375
+ | :XAA
1376
+ | :YY
1377
+ | :ZZZ
1378
+
1379
+ module ReasonCode
1380
+ extend EInvoiceAPI::Internal::Type::Enum
1381
+
1382
+ AA: :AA
1383
+ AAA: :AAA
1384
+ AAC: :AAC
1385
+ AAD: :AAD
1386
+ AAE: :AAE
1387
+ AAF: :AAF
1388
+ AAH: :AAH
1389
+ AAI: :AAI
1390
+ AAS: :AAS
1391
+ AAT: :AAT
1392
+ AAV: :AAV
1393
+ AAY: :AAY
1394
+ AAZ: :AAZ
1395
+ ABA: :ABA
1396
+ ABB: :ABB
1397
+ ABC: :ABC
1398
+ ABD: :ABD
1399
+ ABF: :ABF
1400
+ ABK: :ABK
1401
+ ABL: :ABL
1402
+ ABN: :ABN
1403
+ ABR: :ABR
1404
+ ABS: :ABS
1405
+ ABT: :ABT
1406
+ ABU: :ABU
1407
+ ACF: :ACF
1408
+ ACG: :ACG
1409
+ ACH: :ACH
1410
+ ACI: :ACI
1411
+ ACJ: :ACJ
1412
+ ACK: :ACK
1413
+ ACL: :ACL
1414
+ ACM: :ACM
1415
+ ACS: :ACS
1416
+ ADC: :ADC
1417
+ ADE: :ADE
1418
+ ADJ: :ADJ
1419
+ ADK: :ADK
1420
+ ADL: :ADL
1421
+ ADM: :ADM
1422
+ ADN: :ADN
1423
+ ADO: :ADO
1424
+ ADP: :ADP
1425
+ ADQ: :ADQ
1426
+ ADR: :ADR
1427
+ ADT: :ADT
1428
+ ADW: :ADW
1429
+ ADY: :ADY
1430
+ ADZ: :ADZ
1431
+ AEA: :AEA
1432
+ AEB: :AEB
1433
+ AEC: :AEC
1434
+ AED: :AED
1435
+ AEF: :AEF
1436
+ AEH: :AEH
1437
+ AEI: :AEI
1438
+ AEJ: :AEJ
1439
+ AEK: :AEK
1440
+ AEL: :AEL
1441
+ AEM: :AEM
1442
+ AEN: :AEN
1443
+ AEO: :AEO
1444
+ AEP: :AEP
1445
+ AES: :AES
1446
+ AET: :AET
1447
+ AEU: :AEU
1448
+ AEV: :AEV
1449
+ AEW: :AEW
1450
+ AEX: :AEX
1451
+ AEY: :AEY
1452
+ AEZ: :AEZ
1453
+ AJ: :AJ
1454
+ AU: :AU
1455
+ CA: :CA
1456
+ CAB: :CAB
1457
+ CAD: :CAD
1458
+ CAE: :CAE
1459
+ CAF: :CAF
1460
+ CAI: :CAI
1461
+ CAJ: :CAJ
1462
+ CAK: :CAK
1463
+ CAL: :CAL
1464
+ CAM: :CAM
1465
+ CAN: :CAN
1466
+ CAO: :CAO
1467
+ CAP: :CAP
1468
+ CAQ: :CAQ
1469
+ CAR: :CAR
1470
+ CAS: :CAS
1471
+ CAT: :CAT
1472
+ CAU: :CAU
1473
+ CAV: :CAV
1474
+ CAW: :CAW
1475
+ CAX: :CAX
1476
+ CAY: :CAY
1477
+ CAZ: :CAZ
1478
+ CD: :CD
1479
+ CG: :CG
1480
+ CS: :CS
1481
+ CT: :CT
1482
+ DAB: :DAB
1483
+ DAC: :DAC
1484
+ DAD: :DAD
1485
+ DAF: :DAF
1486
+ DAG: :DAG
1487
+ DAH: :DAH
1488
+ DAI: :DAI
1489
+ DAJ: :DAJ
1490
+ DAK: :DAK
1491
+ DAL: :DAL
1492
+ DAM: :DAM
1493
+ DAN: :DAN
1494
+ DAO: :DAO
1495
+ DAP: :DAP
1496
+ DAQ: :DAQ
1497
+ DL: :DL
1498
+ EG: :EG
1499
+ EP: :EP
1500
+ ER: :ER
1501
+ FAA: :FAA
1502
+ FAB: :FAB
1503
+ FAC: :FAC
1504
+ FC: :FC
1505
+ FH: :FH
1506
+ FI: :FI
1507
+ GAA: :GAA
1508
+ HAA: :HAA
1509
+ HD: :HD
1510
+ HH: :HH
1511
+ IAA: :IAA
1512
+ IAB: :IAB
1513
+ ID: :ID
1514
+ IF: :IF
1515
+ IR: :IR
1516
+ IS: :IS
1517
+ KO: :KO
1518
+ L1: :L1
1519
+ LA: :LA
1520
+ LAA: :LAA
1521
+ LAB: :LAB
1522
+ LF: :LF
1523
+ MAE: :MAE
1524
+ MI: :MI
1525
+ ML: :ML
1526
+ NAA: :NAA
1527
+ OA: :OA
1528
+ PA: :PA
1529
+ PAA: :PAA
1530
+ PC: :PC
1531
+ PL: :PL
1532
+ PRV: :PRV
1533
+ RAB: :RAB
1534
+ RAC: :RAC
1535
+ RAD: :RAD
1536
+ RAF: :RAF
1537
+ RE: :RE
1538
+ RF: :RF
1539
+ RH: :RH
1540
+ RV: :RV
1541
+ SA: :SA
1542
+ SAA: :SAA
1543
+ SAD: :SAD
1544
+ SAE: :SAE
1545
+ SAI: :SAI
1546
+ SG: :SG
1547
+ SH: :SH
1548
+ SM: :SM
1549
+ SU: :SU
1550
+ TAB: :TAB
1551
+ TAC: :TAC
1552
+ TT: :TT
1553
+ TV: :TV
1554
+ V1: :V1
1555
+ V2: :V2
1556
+ WH: :WH
1557
+ XAA: :XAA
1558
+ YY: :YY
1559
+ ZZZ: :ZZZ
1560
+
1561
+ def self?.values: -> ::Array[EInvoiceAPI::Models::DocumentCreate::Item::Charge::reason_code]
1562
+ end
1563
+
708
1564
  type tax_code = :AE | :E | :S | :Z | :G | :O | :K | :L | :M | :B
709
1565
 
710
1566
  module TaxCode
@@ -723,6 +1579,14 @@ module EInvoiceAPI
723
1579
 
724
1580
  def self?.values: -> ::Array[EInvoiceAPI::Models::DocumentCreate::Item::Charge::tax_code]
725
1581
  end
1582
+
1583
+ type tax_rate = Float | String
1584
+
1585
+ module TaxRate
1586
+ extend EInvoiceAPI::Internal::Type::Union
1587
+
1588
+ def self?.variants: -> ::Array[EInvoiceAPI::Models::DocumentCreate::Item::Charge::tax_rate]
1589
+ end
726
1590
  end
727
1591
 
728
1592
  type quantity = Float | String
@@ -741,6 +1605,14 @@ module EInvoiceAPI
741
1605
  def self?.variants: -> ::Array[EInvoiceAPI::Models::DocumentCreate::Item::tax]
742
1606
  end
743
1607
 
1608
+ type tax_rate = Float | String
1609
+
1610
+ module TaxRate
1611
+ extend EInvoiceAPI::Internal::Type::Union
1612
+
1613
+ def self?.variants: -> ::Array[EInvoiceAPI::Models::DocumentCreate::Item::tax_rate]
1614
+ end
1615
+
744
1616
  type unit_price = Float | String
745
1617
 
746
1618
  module UnitPrice