lithic 0.16.0 → 0.17.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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/models/auth_rules/ach_payment_update_action.rb +108 -0
  5. data/lib/lithic/models/auth_rules/auth_rule.rb +18 -14
  6. data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
  7. data/lib/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rb +142 -0
  8. data/lib/lithic/models/auth_rules/event_stream.rb +1 -0
  9. data/lib/lithic/models/auth_rules/rule_feature.rb +26 -4
  10. data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
  11. data/lib/lithic/models/auth_rules/v2_create_params.rb +39 -33
  12. data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
  13. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +426 -1
  14. data/lib/lithic/resources/auth_rules/v2.rb +2 -2
  15. data/lib/lithic/version.rb +1 -1
  16. data/lib/lithic.rb +2 -0
  17. data/rbi/lithic/models/auth_rules/ach_payment_update_action.rbi +237 -0
  18. data/rbi/lithic/models/auth_rules/auth_rule.rbi +16 -12
  19. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +2 -0
  20. data/rbi/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rbi +298 -0
  21. data/rbi/lithic/models/auth_rules/event_stream.rbi +5 -0
  22. data/rbi/lithic/models/auth_rules/rule_feature.rbi +38 -3
  23. data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +3 -0
  24. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +48 -36
  25. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -0
  26. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +826 -1
  27. data/rbi/lithic/resources/auth_rules/v2.rbi +1 -0
  28. data/sig/lithic/models/auth_rules/ach_payment_update_action.rbs +99 -0
  29. data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
  30. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
  31. data/sig/lithic/models/auth_rules/conditional_ach_payment_update_action_parameters.rbs +81 -0
  32. data/sig/lithic/models/auth_rules/event_stream.rbs +2 -0
  33. data/sig/lithic/models/auth_rules/rule_feature.rbs +15 -0
  34. data/sig/lithic/models/auth_rules/v2_create_params.rbs +3 -0
  35. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
  36. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +355 -0
  37. metadata +8 -2
@@ -13,7 +13,9 @@ module Lithic
13
13
  Lithic::Models::AuthRules::V2ListResultsResponse::AuthorizationResult,
14
14
  Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult,
15
15
  Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult,
16
- Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult
16
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult,
17
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult,
18
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult
17
19
  )
18
20
  end
19
21
 
@@ -2268,6 +2270,829 @@ module Lithic
2268
2270
  end
2269
2271
  end
2270
2272
 
2273
+ class CardTransactionUpdateResult < Lithic::Internal::Type::BaseModel
2274
+ OrHash =
2275
+ T.type_alias do
2276
+ T.any(
2277
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult,
2278
+ Lithic::Internal::AnyHash
2279
+ )
2280
+ end
2281
+
2282
+ # Globally unique identifier for the evaluation
2283
+ sig { returns(String) }
2284
+ attr_accessor :token
2285
+
2286
+ # Actions returned by the rule evaluation
2287
+ sig do
2288
+ returns(
2289
+ T::Array[
2290
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::Variants
2291
+ ]
2292
+ )
2293
+ end
2294
+ attr_accessor :actions
2295
+
2296
+ # The Auth Rule token
2297
+ sig { returns(String) }
2298
+ attr_accessor :auth_rule_token
2299
+
2300
+ # Timestamp of the rule evaluation
2301
+ sig { returns(Time) }
2302
+ attr_accessor :evaluation_time
2303
+
2304
+ # The event stream during which the rule was evaluated
2305
+ sig { returns(Symbol) }
2306
+ attr_accessor :event_stream
2307
+
2308
+ # Token of the event that triggered the evaluation
2309
+ sig { returns(String) }
2310
+ attr_accessor :event_token
2311
+
2312
+ # The state of the Auth Rule
2313
+ sig do
2314
+ returns(
2315
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Mode::TaggedSymbol
2316
+ )
2317
+ end
2318
+ attr_accessor :mode
2319
+
2320
+ # Version of the rule that was evaluated
2321
+ sig { returns(Integer) }
2322
+ attr_accessor :rule_version
2323
+
2324
+ # The token of the transaction that triggered the rule evaluation
2325
+ sig { returns(T.nilable(String)) }
2326
+ attr_accessor :transaction_token
2327
+
2328
+ sig do
2329
+ params(
2330
+ token: String,
2331
+ actions:
2332
+ T::Array[
2333
+ T.any(
2334
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction::OrHash,
2335
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::OrHash
2336
+ )
2337
+ ],
2338
+ auth_rule_token: String,
2339
+ evaluation_time: Time,
2340
+ event_token: String,
2341
+ mode:
2342
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Mode::OrSymbol,
2343
+ rule_version: Integer,
2344
+ transaction_token: T.nilable(String),
2345
+ event_stream: Symbol
2346
+ ).returns(T.attached_class)
2347
+ end
2348
+ def self.new(
2349
+ # Globally unique identifier for the evaluation
2350
+ token:,
2351
+ # Actions returned by the rule evaluation
2352
+ actions:,
2353
+ # The Auth Rule token
2354
+ auth_rule_token:,
2355
+ # Timestamp of the rule evaluation
2356
+ evaluation_time:,
2357
+ # Token of the event that triggered the evaluation
2358
+ event_token:,
2359
+ # The state of the Auth Rule
2360
+ mode:,
2361
+ # Version of the rule that was evaluated
2362
+ rule_version:,
2363
+ # The token of the transaction that triggered the rule evaluation
2364
+ transaction_token:,
2365
+ # The event stream during which the rule was evaluated
2366
+ event_stream: :CARD_TRANSACTION_UPDATE
2367
+ )
2368
+ end
2369
+
2370
+ sig do
2371
+ override.returns(
2372
+ {
2373
+ token: String,
2374
+ actions:
2375
+ T::Array[
2376
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::Variants
2377
+ ],
2378
+ auth_rule_token: String,
2379
+ evaluation_time: Time,
2380
+ event_stream: Symbol,
2381
+ event_token: String,
2382
+ mode:
2383
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Mode::TaggedSymbol,
2384
+ rule_version: Integer,
2385
+ transaction_token: T.nilable(String)
2386
+ }
2387
+ )
2388
+ end
2389
+ def to_hash
2390
+ end
2391
+
2392
+ module Action
2393
+ extend Lithic::Internal::Type::Union
2394
+
2395
+ Variants =
2396
+ T.type_alias do
2397
+ T.any(
2398
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction,
2399
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction
2400
+ )
2401
+ end
2402
+
2403
+ class TagAction < Lithic::Internal::Type::BaseModel
2404
+ OrHash =
2405
+ T.type_alias do
2406
+ T.any(
2407
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction,
2408
+ Lithic::Internal::AnyHash
2409
+ )
2410
+ end
2411
+
2412
+ # The key of the tag to apply to the transaction
2413
+ sig { returns(String) }
2414
+ attr_accessor :key
2415
+
2416
+ # Tag the transaction with key-value metadata
2417
+ sig do
2418
+ returns(
2419
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction::Type::TaggedSymbol
2420
+ )
2421
+ end
2422
+ attr_accessor :type
2423
+
2424
+ # The value of the tag to apply to the transaction
2425
+ sig { returns(String) }
2426
+ attr_accessor :value
2427
+
2428
+ # Optional explanation for why this action was taken
2429
+ sig { returns(T.nilable(String)) }
2430
+ attr_reader :explanation
2431
+
2432
+ sig { params(explanation: String).void }
2433
+ attr_writer :explanation
2434
+
2435
+ sig do
2436
+ params(
2437
+ key: String,
2438
+ type:
2439
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction::Type::OrSymbol,
2440
+ value: String,
2441
+ explanation: String
2442
+ ).returns(T.attached_class)
2443
+ end
2444
+ def self.new(
2445
+ # The key of the tag to apply to the transaction
2446
+ key:,
2447
+ # Tag the transaction with key-value metadata
2448
+ type:,
2449
+ # The value of the tag to apply to the transaction
2450
+ value:,
2451
+ # Optional explanation for why this action was taken
2452
+ explanation: nil
2453
+ )
2454
+ end
2455
+
2456
+ sig do
2457
+ override.returns(
2458
+ {
2459
+ key: String,
2460
+ type:
2461
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction::Type::TaggedSymbol,
2462
+ value: String,
2463
+ explanation: String
2464
+ }
2465
+ )
2466
+ end
2467
+ def to_hash
2468
+ end
2469
+
2470
+ # Tag the transaction with key-value metadata
2471
+ module Type
2472
+ extend Lithic::Internal::Type::Enum
2473
+
2474
+ TaggedSymbol =
2475
+ T.type_alias do
2476
+ T.all(
2477
+ Symbol,
2478
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction::Type
2479
+ )
2480
+ end
2481
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
2482
+
2483
+ TAG =
2484
+ T.let(
2485
+ :TAG,
2486
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction::Type::TaggedSymbol
2487
+ )
2488
+
2489
+ sig do
2490
+ override.returns(
2491
+ T::Array[
2492
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction::Type::TaggedSymbol
2493
+ ]
2494
+ )
2495
+ end
2496
+ def self.values
2497
+ end
2498
+ end
2499
+ end
2500
+
2501
+ class CreateCaseAction < Lithic::Internal::Type::BaseModel
2502
+ OrHash =
2503
+ T.type_alias do
2504
+ T.any(
2505
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction,
2506
+ Lithic::Internal::AnyHash
2507
+ )
2508
+ end
2509
+
2510
+ # The token of the queue to create the case in
2511
+ sig { returns(String) }
2512
+ attr_accessor :queue_token
2513
+
2514
+ # The scope of the case to create
2515
+ sig do
2516
+ returns(
2517
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Scope::TaggedSymbol
2518
+ )
2519
+ end
2520
+ attr_accessor :scope
2521
+
2522
+ # Create a case for the transaction
2523
+ sig do
2524
+ returns(
2525
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Type::TaggedSymbol
2526
+ )
2527
+ end
2528
+ attr_accessor :type
2529
+
2530
+ # Optional explanation for why this action was taken
2531
+ sig { returns(T.nilable(String)) }
2532
+ attr_reader :explanation
2533
+
2534
+ sig { params(explanation: String).void }
2535
+ attr_writer :explanation
2536
+
2537
+ sig do
2538
+ params(
2539
+ queue_token: String,
2540
+ scope:
2541
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Scope::OrSymbol,
2542
+ type:
2543
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Type::OrSymbol,
2544
+ explanation: String
2545
+ ).returns(T.attached_class)
2546
+ end
2547
+ def self.new(
2548
+ # The token of the queue to create the case in
2549
+ queue_token:,
2550
+ # The scope of the case to create
2551
+ scope:,
2552
+ # Create a case for the transaction
2553
+ type:,
2554
+ # Optional explanation for why this action was taken
2555
+ explanation: nil
2556
+ )
2557
+ end
2558
+
2559
+ sig do
2560
+ override.returns(
2561
+ {
2562
+ queue_token: String,
2563
+ scope:
2564
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Scope::TaggedSymbol,
2565
+ type:
2566
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Type::TaggedSymbol,
2567
+ explanation: String
2568
+ }
2569
+ )
2570
+ end
2571
+ def to_hash
2572
+ end
2573
+
2574
+ # The scope of the case to create
2575
+ module Scope
2576
+ extend Lithic::Internal::Type::Enum
2577
+
2578
+ TaggedSymbol =
2579
+ T.type_alias do
2580
+ T.all(
2581
+ Symbol,
2582
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Scope
2583
+ )
2584
+ end
2585
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
2586
+
2587
+ CARD =
2588
+ T.let(
2589
+ :CARD,
2590
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Scope::TaggedSymbol
2591
+ )
2592
+ ACCOUNT =
2593
+ T.let(
2594
+ :ACCOUNT,
2595
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Scope::TaggedSymbol
2596
+ )
2597
+
2598
+ sig do
2599
+ override.returns(
2600
+ T::Array[
2601
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Scope::TaggedSymbol
2602
+ ]
2603
+ )
2604
+ end
2605
+ def self.values
2606
+ end
2607
+ end
2608
+
2609
+ # Create a case for the transaction
2610
+ module Type
2611
+ extend Lithic::Internal::Type::Enum
2612
+
2613
+ TaggedSymbol =
2614
+ T.type_alias do
2615
+ T.all(
2616
+ Symbol,
2617
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Type
2618
+ )
2619
+ end
2620
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
2621
+
2622
+ CREATE_CASE =
2623
+ T.let(
2624
+ :CREATE_CASE,
2625
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Type::TaggedSymbol
2626
+ )
2627
+
2628
+ sig do
2629
+ override.returns(
2630
+ T::Array[
2631
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::Type::TaggedSymbol
2632
+ ]
2633
+ )
2634
+ end
2635
+ def self.values
2636
+ end
2637
+ end
2638
+ end
2639
+
2640
+ sig do
2641
+ override.returns(
2642
+ T::Array[
2643
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::Variants
2644
+ ]
2645
+ )
2646
+ end
2647
+ def self.variants
2648
+ end
2649
+ end
2650
+
2651
+ # The state of the Auth Rule
2652
+ module Mode
2653
+ extend Lithic::Internal::Type::Enum
2654
+
2655
+ TaggedSymbol =
2656
+ T.type_alias do
2657
+ T.all(
2658
+ Symbol,
2659
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Mode
2660
+ )
2661
+ end
2662
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
2663
+
2664
+ ACTIVE =
2665
+ T.let(
2666
+ :ACTIVE,
2667
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Mode::TaggedSymbol
2668
+ )
2669
+ INACTIVE =
2670
+ T.let(
2671
+ :INACTIVE,
2672
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Mode::TaggedSymbol
2673
+ )
2674
+
2675
+ sig do
2676
+ override.returns(
2677
+ T::Array[
2678
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Mode::TaggedSymbol
2679
+ ]
2680
+ )
2681
+ end
2682
+ def self.values
2683
+ end
2684
+ end
2685
+ end
2686
+
2687
+ class ACHPaymentUpdateResult < Lithic::Internal::Type::BaseModel
2688
+ OrHash =
2689
+ T.type_alias do
2690
+ T.any(
2691
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult,
2692
+ Lithic::Internal::AnyHash
2693
+ )
2694
+ end
2695
+
2696
+ # Globally unique identifier for the evaluation
2697
+ sig { returns(String) }
2698
+ attr_accessor :token
2699
+
2700
+ # Actions returned by the rule evaluation
2701
+ sig do
2702
+ returns(
2703
+ T::Array[
2704
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::Variants
2705
+ ]
2706
+ )
2707
+ end
2708
+ attr_accessor :actions
2709
+
2710
+ # The Auth Rule token
2711
+ sig { returns(String) }
2712
+ attr_accessor :auth_rule_token
2713
+
2714
+ # Timestamp of the rule evaluation
2715
+ sig { returns(Time) }
2716
+ attr_accessor :evaluation_time
2717
+
2718
+ # The event stream during which the rule was evaluated
2719
+ sig { returns(Symbol) }
2720
+ attr_accessor :event_stream
2721
+
2722
+ # Token of the event that triggered the evaluation
2723
+ sig { returns(String) }
2724
+ attr_accessor :event_token
2725
+
2726
+ # The state of the Auth Rule
2727
+ sig do
2728
+ returns(
2729
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Mode::TaggedSymbol
2730
+ )
2731
+ end
2732
+ attr_accessor :mode
2733
+
2734
+ # Version of the rule that was evaluated
2735
+ sig { returns(Integer) }
2736
+ attr_accessor :rule_version
2737
+
2738
+ # The token of the transaction that triggered the rule evaluation
2739
+ sig { returns(T.nilable(String)) }
2740
+ attr_accessor :transaction_token
2741
+
2742
+ sig do
2743
+ params(
2744
+ token: String,
2745
+ actions:
2746
+ T::Array[
2747
+ T.any(
2748
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction::OrHash,
2749
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::OrHash
2750
+ )
2751
+ ],
2752
+ auth_rule_token: String,
2753
+ evaluation_time: Time,
2754
+ event_token: String,
2755
+ mode:
2756
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Mode::OrSymbol,
2757
+ rule_version: Integer,
2758
+ transaction_token: T.nilable(String),
2759
+ event_stream: Symbol
2760
+ ).returns(T.attached_class)
2761
+ end
2762
+ def self.new(
2763
+ # Globally unique identifier for the evaluation
2764
+ token:,
2765
+ # Actions returned by the rule evaluation
2766
+ actions:,
2767
+ # The Auth Rule token
2768
+ auth_rule_token:,
2769
+ # Timestamp of the rule evaluation
2770
+ evaluation_time:,
2771
+ # Token of the event that triggered the evaluation
2772
+ event_token:,
2773
+ # The state of the Auth Rule
2774
+ mode:,
2775
+ # Version of the rule that was evaluated
2776
+ rule_version:,
2777
+ # The token of the transaction that triggered the rule evaluation
2778
+ transaction_token:,
2779
+ # The event stream during which the rule was evaluated
2780
+ event_stream: :ACH_PAYMENT_UPDATE
2781
+ )
2782
+ end
2783
+
2784
+ sig do
2785
+ override.returns(
2786
+ {
2787
+ token: String,
2788
+ actions:
2789
+ T::Array[
2790
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::Variants
2791
+ ],
2792
+ auth_rule_token: String,
2793
+ evaluation_time: Time,
2794
+ event_stream: Symbol,
2795
+ event_token: String,
2796
+ mode:
2797
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Mode::TaggedSymbol,
2798
+ rule_version: Integer,
2799
+ transaction_token: T.nilable(String)
2800
+ }
2801
+ )
2802
+ end
2803
+ def to_hash
2804
+ end
2805
+
2806
+ module Action
2807
+ extend Lithic::Internal::Type::Union
2808
+
2809
+ Variants =
2810
+ T.type_alias do
2811
+ T.any(
2812
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction,
2813
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction
2814
+ )
2815
+ end
2816
+
2817
+ class TagAction < Lithic::Internal::Type::BaseModel
2818
+ OrHash =
2819
+ T.type_alias do
2820
+ T.any(
2821
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction,
2822
+ Lithic::Internal::AnyHash
2823
+ )
2824
+ end
2825
+
2826
+ # The key of the tag to apply to the payment
2827
+ sig { returns(String) }
2828
+ attr_accessor :key
2829
+
2830
+ # Tag the payment with key-value metadata
2831
+ sig do
2832
+ returns(
2833
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction::Type::TaggedSymbol
2834
+ )
2835
+ end
2836
+ attr_accessor :type
2837
+
2838
+ # The value of the tag to apply to the payment
2839
+ sig { returns(String) }
2840
+ attr_accessor :value
2841
+
2842
+ # Optional explanation for why this action was taken
2843
+ sig { returns(T.nilable(String)) }
2844
+ attr_reader :explanation
2845
+
2846
+ sig { params(explanation: String).void }
2847
+ attr_writer :explanation
2848
+
2849
+ sig do
2850
+ params(
2851
+ key: String,
2852
+ type:
2853
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction::Type::OrSymbol,
2854
+ value: String,
2855
+ explanation: String
2856
+ ).returns(T.attached_class)
2857
+ end
2858
+ def self.new(
2859
+ # The key of the tag to apply to the payment
2860
+ key:,
2861
+ # Tag the payment with key-value metadata
2862
+ type:,
2863
+ # The value of the tag to apply to the payment
2864
+ value:,
2865
+ # Optional explanation for why this action was taken
2866
+ explanation: nil
2867
+ )
2868
+ end
2869
+
2870
+ sig do
2871
+ override.returns(
2872
+ {
2873
+ key: String,
2874
+ type:
2875
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction::Type::TaggedSymbol,
2876
+ value: String,
2877
+ explanation: String
2878
+ }
2879
+ )
2880
+ end
2881
+ def to_hash
2882
+ end
2883
+
2884
+ # Tag the payment with key-value metadata
2885
+ module Type
2886
+ extend Lithic::Internal::Type::Enum
2887
+
2888
+ TaggedSymbol =
2889
+ T.type_alias do
2890
+ T.all(
2891
+ Symbol,
2892
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction::Type
2893
+ )
2894
+ end
2895
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
2896
+
2897
+ TAG =
2898
+ T.let(
2899
+ :TAG,
2900
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction::Type::TaggedSymbol
2901
+ )
2902
+
2903
+ sig do
2904
+ override.returns(
2905
+ T::Array[
2906
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction::Type::TaggedSymbol
2907
+ ]
2908
+ )
2909
+ end
2910
+ def self.values
2911
+ end
2912
+ end
2913
+ end
2914
+
2915
+ class CreateCaseAction < Lithic::Internal::Type::BaseModel
2916
+ OrHash =
2917
+ T.type_alias do
2918
+ T.any(
2919
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction,
2920
+ Lithic::Internal::AnyHash
2921
+ )
2922
+ end
2923
+
2924
+ # The token of the queue to create the case in
2925
+ sig { returns(String) }
2926
+ attr_accessor :queue_token
2927
+
2928
+ # The scope of the case to create
2929
+ sig do
2930
+ returns(
2931
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Scope::TaggedSymbol
2932
+ )
2933
+ end
2934
+ attr_accessor :scope
2935
+
2936
+ # Create a case for the payment
2937
+ sig do
2938
+ returns(
2939
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Type::TaggedSymbol
2940
+ )
2941
+ end
2942
+ attr_accessor :type
2943
+
2944
+ # Optional explanation for why this action was taken
2945
+ sig { returns(T.nilable(String)) }
2946
+ attr_reader :explanation
2947
+
2948
+ sig { params(explanation: String).void }
2949
+ attr_writer :explanation
2950
+
2951
+ sig do
2952
+ params(
2953
+ queue_token: String,
2954
+ scope:
2955
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Scope::OrSymbol,
2956
+ type:
2957
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Type::OrSymbol,
2958
+ explanation: String
2959
+ ).returns(T.attached_class)
2960
+ end
2961
+ def self.new(
2962
+ # The token of the queue to create the case in
2963
+ queue_token:,
2964
+ # The scope of the case to create
2965
+ scope:,
2966
+ # Create a case for the payment
2967
+ type:,
2968
+ # Optional explanation for why this action was taken
2969
+ explanation: nil
2970
+ )
2971
+ end
2972
+
2973
+ sig do
2974
+ override.returns(
2975
+ {
2976
+ queue_token: String,
2977
+ scope:
2978
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Scope::TaggedSymbol,
2979
+ type:
2980
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Type::TaggedSymbol,
2981
+ explanation: String
2982
+ }
2983
+ )
2984
+ end
2985
+ def to_hash
2986
+ end
2987
+
2988
+ # The scope of the case to create
2989
+ module Scope
2990
+ extend Lithic::Internal::Type::Enum
2991
+
2992
+ TaggedSymbol =
2993
+ T.type_alias do
2994
+ T.all(
2995
+ Symbol,
2996
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Scope
2997
+ )
2998
+ end
2999
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
3000
+
3001
+ FINANCIAL_ACCOUNT =
3002
+ T.let(
3003
+ :FINANCIAL_ACCOUNT,
3004
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Scope::TaggedSymbol
3005
+ )
3006
+
3007
+ sig do
3008
+ override.returns(
3009
+ T::Array[
3010
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Scope::TaggedSymbol
3011
+ ]
3012
+ )
3013
+ end
3014
+ def self.values
3015
+ end
3016
+ end
3017
+
3018
+ # Create a case for the payment
3019
+ module Type
3020
+ extend Lithic::Internal::Type::Enum
3021
+
3022
+ TaggedSymbol =
3023
+ T.type_alias do
3024
+ T.all(
3025
+ Symbol,
3026
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Type
3027
+ )
3028
+ end
3029
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
3030
+
3031
+ CREATE_CASE =
3032
+ T.let(
3033
+ :CREATE_CASE,
3034
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Type::TaggedSymbol
3035
+ )
3036
+
3037
+ sig do
3038
+ override.returns(
3039
+ T::Array[
3040
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::Type::TaggedSymbol
3041
+ ]
3042
+ )
3043
+ end
3044
+ def self.values
3045
+ end
3046
+ end
3047
+ end
3048
+
3049
+ sig do
3050
+ override.returns(
3051
+ T::Array[
3052
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::Variants
3053
+ ]
3054
+ )
3055
+ end
3056
+ def self.variants
3057
+ end
3058
+ end
3059
+
3060
+ # The state of the Auth Rule
3061
+ module Mode
3062
+ extend Lithic::Internal::Type::Enum
3063
+
3064
+ TaggedSymbol =
3065
+ T.type_alias do
3066
+ T.all(
3067
+ Symbol,
3068
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Mode
3069
+ )
3070
+ end
3071
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
3072
+
3073
+ ACTIVE =
3074
+ T.let(
3075
+ :ACTIVE,
3076
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Mode::TaggedSymbol
3077
+ )
3078
+ INACTIVE =
3079
+ T.let(
3080
+ :INACTIVE,
3081
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Mode::TaggedSymbol
3082
+ )
3083
+
3084
+ sig do
3085
+ override.returns(
3086
+ T::Array[
3087
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Mode::TaggedSymbol
3088
+ ]
3089
+ )
3090
+ end
3091
+ def self.values
3092
+ end
3093
+ end
3094
+ end
3095
+
2271
3096
  sig do
2272
3097
  override.returns(
2273
3098
  T::Array[Lithic::Models::AuthRules::V2ListResultsResponse::Variants]