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
@@ -123,6 +123,7 @@ module Lithic
123
123
  Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
124
124
  Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
125
125
  Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::OrHash,
126
+ Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::OrHash,
126
127
  Lithic::AuthRules::TypescriptCodeParameters::OrHash,
127
128
  Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters::OrHash
128
129
  )
@@ -0,0 +1,99 @@
1
+ module Lithic
2
+ module Models
3
+ module AuthRules
4
+ type ach_payment_update_action =
5
+ Lithic::AuthRules::ACHPaymentUpdateAction::TagAction
6
+ | Lithic::AuthRules::ACHPaymentUpdateAction::CreateCaseAction
7
+
8
+ module ACHPaymentUpdateAction
9
+ extend Lithic::Internal::Type::Union
10
+
11
+ type tag_action =
12
+ {
13
+ key: String,
14
+ type: Lithic::Models::AuthRules::ACHPaymentUpdateAction::TagAction::type_,
15
+ value: String
16
+ }
17
+
18
+ class TagAction < Lithic::Internal::Type::BaseModel
19
+ attr_accessor key: String
20
+
21
+ attr_accessor type: Lithic::Models::AuthRules::ACHPaymentUpdateAction::TagAction::type_
22
+
23
+ attr_accessor value: String
24
+
25
+ def initialize: (
26
+ key: String,
27
+ type: Lithic::Models::AuthRules::ACHPaymentUpdateAction::TagAction::type_,
28
+ value: String
29
+ ) -> void
30
+
31
+ def to_hash: -> {
32
+ key: String,
33
+ type: Lithic::Models::AuthRules::ACHPaymentUpdateAction::TagAction::type_,
34
+ value: String
35
+ }
36
+
37
+ type type_ = :TAG
38
+
39
+ module Type
40
+ extend Lithic::Internal::Type::Enum
41
+
42
+ TAG: :TAG
43
+
44
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ACHPaymentUpdateAction::TagAction::type_]
45
+ end
46
+ end
47
+
48
+ type create_case_action =
49
+ {
50
+ queue_token: String,
51
+ scope: Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::scope,
52
+ type: Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::type_
53
+ }
54
+
55
+ class CreateCaseAction < Lithic::Internal::Type::BaseModel
56
+ attr_accessor queue_token: String
57
+
58
+ attr_accessor scope: Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::scope
59
+
60
+ attr_accessor type: Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::type_
61
+
62
+ def initialize: (
63
+ queue_token: String,
64
+ scope: Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::scope,
65
+ type: Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::type_
66
+ ) -> void
67
+
68
+ def to_hash: -> {
69
+ queue_token: String,
70
+ scope: Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::scope,
71
+ type: Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::type_
72
+ }
73
+
74
+ type scope = :FINANCIAL_ACCOUNT
75
+
76
+ module Scope
77
+ extend Lithic::Internal::Type::Enum
78
+
79
+ FINANCIAL_ACCOUNT: :FINANCIAL_ACCOUNT
80
+
81
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::scope]
82
+ end
83
+
84
+ type type_ = :CREATE_CASE
85
+
86
+ module Type
87
+ extend Lithic::Internal::Type::Enum
88
+
89
+ CREATE_CASE: :CREATE_CASE
90
+
91
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ACHPaymentUpdateAction::CreateCaseAction::type_]
92
+ end
93
+ end
94
+
95
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::ach_payment_update_action]
96
+ end
97
+ end
98
+ end
99
+ end
@@ -127,6 +127,7 @@ module Lithic
127
127
  | Lithic::AuthRules::ConditionalACHActionParameters
128
128
  | Lithic::AuthRules::ConditionalTokenizationActionParameters
129
129
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
130
+ | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
130
131
  | Lithic::AuthRules::TypescriptCodeParameters
131
132
  | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
132
133
 
@@ -177,6 +178,7 @@ module Lithic
177
178
  | Lithic::AuthRules::ConditionalACHActionParameters
178
179
  | Lithic::AuthRules::ConditionalTokenizationActionParameters
179
180
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
181
+ | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
180
182
  | Lithic::AuthRules::TypescriptCodeParameters
181
183
  | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
182
184
 
@@ -43,6 +43,7 @@ module Lithic
43
43
  | Lithic::AuthRules::ConditionalACHActionParameters
44
44
  | Lithic::AuthRules::ConditionalTokenizationActionParameters
45
45
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
46
+ | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
46
47
  | Lithic::AuthRules::TypescriptCodeParameters
47
48
  | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
48
49
 
@@ -0,0 +1,81 @@
1
+ module Lithic
2
+ module Models
3
+ module AuthRules
4
+ type conditional_ach_payment_update_action_parameters =
5
+ {
6
+ action: Lithic::Models::AuthRules::ach_payment_update_action,
7
+ conditions: ::Array[Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition]
8
+ }
9
+
10
+ class ConditionalACHPaymentUpdateActionParameters < Lithic::Internal::Type::BaseModel
11
+ attr_accessor action: Lithic::Models::AuthRules::ach_payment_update_action
12
+
13
+ attr_accessor conditions: ::Array[Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition]
14
+
15
+ def initialize: (
16
+ action: Lithic::Models::AuthRules::ach_payment_update_action,
17
+ conditions: ::Array[Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition]
18
+ ) -> void
19
+
20
+ def to_hash: -> {
21
+ action: Lithic::Models::AuthRules::ach_payment_update_action,
22
+ conditions: ::Array[Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition]
23
+ }
24
+
25
+ type condition =
26
+ {
27
+ attribute: Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::attribute,
28
+ operation: Lithic::Models::AuthRules::conditional_operation,
29
+ value: Lithic::Models::AuthRules::conditional_value
30
+ }
31
+
32
+ class Condition < Lithic::Internal::Type::BaseModel
33
+ attr_accessor attribute: Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::attribute
34
+
35
+ attr_accessor operation: Lithic::Models::AuthRules::conditional_operation
36
+
37
+ attr_accessor value: Lithic::Models::AuthRules::conditional_value
38
+
39
+ def initialize: (
40
+ attribute: Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::attribute,
41
+ operation: Lithic::Models::AuthRules::conditional_operation,
42
+ value: Lithic::Models::AuthRules::conditional_value
43
+ ) -> void
44
+
45
+ def to_hash: -> {
46
+ attribute: Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::attribute,
47
+ operation: Lithic::Models::AuthRules::conditional_operation,
48
+ value: Lithic::Models::AuthRules::conditional_value
49
+ }
50
+
51
+ type attribute =
52
+ :TRANSACTION_AMOUNT
53
+ | :SEC_CODE
54
+ | :RETURN_REASON_CODE
55
+ | :ACCOUNT_AGE
56
+ | :EXTERNAL_BANK_ACCOUNT_AGE
57
+ | :EXTERNAL_BANK_ACCOUNT_VERIFICATION_METHOD
58
+ | :EXTERNAL_BANK_ACCOUNT_VERIFICATION_STATE
59
+ | :EXTERNAL_BANK_ACCOUNT_OWNER_TYPE
60
+ | :ACH_EVENT_TYPE
61
+
62
+ module Attribute
63
+ extend Lithic::Internal::Type::Enum
64
+
65
+ TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
66
+ SEC_CODE: :SEC_CODE
67
+ RETURN_REASON_CODE: :RETURN_REASON_CODE
68
+ ACCOUNT_AGE: :ACCOUNT_AGE
69
+ EXTERNAL_BANK_ACCOUNT_AGE: :EXTERNAL_BANK_ACCOUNT_AGE
70
+ EXTERNAL_BANK_ACCOUNT_VERIFICATION_METHOD: :EXTERNAL_BANK_ACCOUNT_VERIFICATION_METHOD
71
+ EXTERNAL_BANK_ACCOUNT_VERIFICATION_STATE: :EXTERNAL_BANK_ACCOUNT_VERIFICATION_STATE
72
+ EXTERNAL_BANK_ACCOUNT_OWNER_TYPE: :EXTERNAL_BANK_ACCOUNT_OWNER_TYPE
73
+ ACH_EVENT_TYPE: :ACH_EVENT_TYPE
74
+
75
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalACHPaymentUpdateActionParameters::Condition::attribute]
76
+ end
77
+ end
78
+ end
79
+ end
80
+ end
81
+ end
@@ -8,6 +8,7 @@ module Lithic
8
8
  | :ACH_CREDIT_RECEIPT
9
9
  | :ACH_DEBIT_RECEIPT
10
10
  | :CARD_TRANSACTION_UPDATE
11
+ | :ACH_PAYMENT_UPDATE
11
12
 
12
13
  module EventStream
13
14
  extend Lithic::Internal::Type::Enum
@@ -18,6 +19,7 @@ module Lithic
18
19
  ACH_CREDIT_RECEIPT: :ACH_CREDIT_RECEIPT
19
20
  ACH_DEBIT_RECEIPT: :ACH_DEBIT_RECEIPT
20
21
  CARD_TRANSACTION_UPDATE: :CARD_TRANSACTION_UPDATE
22
+ ACH_PAYMENT_UPDATE: :ACH_PAYMENT_UPDATE
21
23
 
22
24
  def self?.values: -> ::Array[Lithic::Models::AuthRules::event_stream]
23
25
  end
@@ -7,6 +7,7 @@ module Lithic
7
7
  | Lithic::AuthRules::RuleFeature::TokenizationFeature
8
8
  | Lithic::AuthRules::RuleFeature::ACHReceiptFeature
9
9
  | Lithic::AuthRules::RuleFeature::CardTransactionFeature
10
+ | Lithic::AuthRules::RuleFeature::ACHPaymentFeature
10
11
  | Lithic::AuthRules::RuleFeature::CardFeature
11
12
  | Lithic::AuthRules::RuleFeature::AccountHolderFeature
12
13
  | Lithic::AuthRules::RuleFeature::IPMetadataFeature
@@ -87,6 +88,20 @@ module Lithic
87
88
  def to_hash: -> { type: :CARD_TRANSACTION, name: String }
88
89
  end
89
90
 
91
+ type ach_payment_feature = { type: :ACH_PAYMENT, name: String }
92
+
93
+ class ACHPaymentFeature < Lithic::Internal::Type::BaseModel
94
+ attr_accessor type: :ACH_PAYMENT
95
+
96
+ attr_reader name: String?
97
+
98
+ def name=: (String) -> String
99
+
100
+ def initialize: (?name: String, ?type: :ACH_PAYMENT) -> void
101
+
102
+ def to_hash: -> { type: :ACH_PAYMENT, name: String }
103
+ end
104
+
90
105
  type card_feature = { type: :CARD, name: String }
91
106
 
92
107
  class CardFeature < Lithic::Internal::Type::BaseModel
@@ -87,6 +87,7 @@ module Lithic
87
87
  | Lithic::AuthRules::ConditionalACHActionParameters
88
88
  | Lithic::AuthRules::ConditionalTokenizationActionParameters
89
89
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
90
+ | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
90
91
  | Lithic::AuthRules::TypescriptCodeParameters
91
92
  | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
92
93
 
@@ -165,6 +166,7 @@ module Lithic
165
166
  | Lithic::AuthRules::ConditionalACHActionParameters
166
167
  | Lithic::AuthRules::ConditionalTokenizationActionParameters
167
168
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
169
+ | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
168
170
  | Lithic::AuthRules::TypescriptCodeParameters
169
171
  | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
170
172
 
@@ -266,6 +268,7 @@ module Lithic
266
268
  | Lithic::AuthRules::ConditionalACHActionParameters
267
269
  | Lithic::AuthRules::ConditionalTokenizationActionParameters
268
270
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
271
+ | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
269
272
  | Lithic::AuthRules::TypescriptCodeParameters
270
273
  | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
271
274
 
@@ -37,6 +37,7 @@ module Lithic
37
37
  | Lithic::AuthRules::ConditionalACHActionParameters
38
38
  | Lithic::AuthRules::ConditionalTokenizationActionParameters
39
39
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
40
+ | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
40
41
  | Lithic::AuthRules::TypescriptCodeParameters
41
42
  | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
42
43
 
@@ -6,6 +6,8 @@ module Lithic
6
6
  | Lithic::Models::AuthRules::V2ListResultsResponse::Authentication3DSResult
7
7
  | Lithic::Models::AuthRules::V2ListResultsResponse::TokenizationResult
8
8
  | Lithic::Models::AuthRules::V2ListResultsResponse::ACHResult
9
+ | Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult
10
+ | Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult
9
11
 
10
12
  module V2ListResultsResponse
11
13
  extend Lithic::Internal::Type::Union
@@ -936,6 +938,359 @@ module Lithic
936
938
  end
937
939
  end
938
940
 
941
+ type card_transaction_update_result =
942
+ {
943
+ token: String,
944
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::action],
945
+ auth_rule_token: String,
946
+ evaluation_time: Time,
947
+ event_stream: :CARD_TRANSACTION_UPDATE,
948
+ event_token: String,
949
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::mode,
950
+ rule_version: Integer,
951
+ transaction_token: String?
952
+ }
953
+
954
+ class CardTransactionUpdateResult < Lithic::Internal::Type::BaseModel
955
+ attr_accessor token: String
956
+
957
+ attr_accessor actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::action]
958
+
959
+ attr_accessor auth_rule_token: String
960
+
961
+ attr_accessor evaluation_time: Time
962
+
963
+ attr_accessor event_stream: :CARD_TRANSACTION_UPDATE
964
+
965
+ attr_accessor event_token: String
966
+
967
+ attr_accessor mode: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::mode
968
+
969
+ attr_accessor rule_version: Integer
970
+
971
+ attr_accessor transaction_token: String?
972
+
973
+ def initialize: (
974
+ token: String,
975
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::action],
976
+ auth_rule_token: String,
977
+ evaluation_time: Time,
978
+ event_token: String,
979
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::mode,
980
+ rule_version: Integer,
981
+ transaction_token: String?,
982
+ ?event_stream: :CARD_TRANSACTION_UPDATE
983
+ ) -> void
984
+
985
+ def to_hash: -> {
986
+ token: String,
987
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::action],
988
+ auth_rule_token: String,
989
+ evaluation_time: Time,
990
+ event_stream: :CARD_TRANSACTION_UPDATE,
991
+ event_token: String,
992
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::mode,
993
+ rule_version: Integer,
994
+ transaction_token: String?
995
+ }
996
+
997
+ type action =
998
+ Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction
999
+ | Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction
1000
+
1001
+ module Action
1002
+ extend Lithic::Internal::Type::Union
1003
+
1004
+ type tag_action =
1005
+ {
1006
+ key: String,
1007
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction::type_,
1008
+ value: String,
1009
+ explanation: String
1010
+ }
1011
+
1012
+ class TagAction < Lithic::Internal::Type::BaseModel
1013
+ attr_accessor key: String
1014
+
1015
+ attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction::type_
1016
+
1017
+ attr_accessor value: String
1018
+
1019
+ attr_reader explanation: String?
1020
+
1021
+ def explanation=: (String) -> String
1022
+
1023
+ def initialize: (
1024
+ key: String,
1025
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction::type_,
1026
+ value: String,
1027
+ ?explanation: String
1028
+ ) -> void
1029
+
1030
+ def to_hash: -> {
1031
+ key: String,
1032
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction::type_,
1033
+ value: String,
1034
+ explanation: String
1035
+ }
1036
+
1037
+ type type_ = :TAG
1038
+
1039
+ module Type
1040
+ extend Lithic::Internal::Type::Enum
1041
+
1042
+ TAG: :TAG
1043
+
1044
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::TagAction::type_]
1045
+ end
1046
+ end
1047
+
1048
+ type create_case_action =
1049
+ {
1050
+ queue_token: String,
1051
+ scope: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::scope,
1052
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::type_,
1053
+ explanation: String
1054
+ }
1055
+
1056
+ class CreateCaseAction < Lithic::Internal::Type::BaseModel
1057
+ attr_accessor queue_token: String
1058
+
1059
+ attr_accessor scope: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::scope
1060
+
1061
+ attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::type_
1062
+
1063
+ attr_reader explanation: String?
1064
+
1065
+ def explanation=: (String) -> String
1066
+
1067
+ def initialize: (
1068
+ queue_token: String,
1069
+ scope: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::scope,
1070
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::type_,
1071
+ ?explanation: String
1072
+ ) -> void
1073
+
1074
+ def to_hash: -> {
1075
+ queue_token: String,
1076
+ scope: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::scope,
1077
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::type_,
1078
+ explanation: String
1079
+ }
1080
+
1081
+ type scope = :CARD | :ACCOUNT
1082
+
1083
+ module Scope
1084
+ extend Lithic::Internal::Type::Enum
1085
+
1086
+ CARD: :CARD
1087
+ ACCOUNT: :ACCOUNT
1088
+
1089
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::scope]
1090
+ end
1091
+
1092
+ type type_ = :CREATE_CASE
1093
+
1094
+ module Type
1095
+ extend Lithic::Internal::Type::Enum
1096
+
1097
+ CREATE_CASE: :CREATE_CASE
1098
+
1099
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::Action::CreateCaseAction::type_]
1100
+ end
1101
+ end
1102
+
1103
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::action]
1104
+ end
1105
+
1106
+ type mode = :ACTIVE | :INACTIVE
1107
+
1108
+ module Mode
1109
+ extend Lithic::Internal::Type::Enum
1110
+
1111
+ ACTIVE: :ACTIVE
1112
+ INACTIVE: :INACTIVE
1113
+
1114
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::CardTransactionUpdateResult::mode]
1115
+ end
1116
+ end
1117
+
1118
+ type ach_payment_update_result =
1119
+ {
1120
+ token: String,
1121
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::action],
1122
+ auth_rule_token: String,
1123
+ evaluation_time: Time,
1124
+ event_stream: :ACH_PAYMENT_UPDATE,
1125
+ event_token: String,
1126
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::mode,
1127
+ rule_version: Integer,
1128
+ transaction_token: String?
1129
+ }
1130
+
1131
+ class ACHPaymentUpdateResult < Lithic::Internal::Type::BaseModel
1132
+ attr_accessor token: String
1133
+
1134
+ attr_accessor actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::action]
1135
+
1136
+ attr_accessor auth_rule_token: String
1137
+
1138
+ attr_accessor evaluation_time: Time
1139
+
1140
+ attr_accessor event_stream: :ACH_PAYMENT_UPDATE
1141
+
1142
+ attr_accessor event_token: String
1143
+
1144
+ attr_accessor mode: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::mode
1145
+
1146
+ attr_accessor rule_version: Integer
1147
+
1148
+ attr_accessor transaction_token: String?
1149
+
1150
+ def initialize: (
1151
+ token: String,
1152
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::action],
1153
+ auth_rule_token: String,
1154
+ evaluation_time: Time,
1155
+ event_token: String,
1156
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::mode,
1157
+ rule_version: Integer,
1158
+ transaction_token: String?,
1159
+ ?event_stream: :ACH_PAYMENT_UPDATE
1160
+ ) -> void
1161
+
1162
+ def to_hash: -> {
1163
+ token: String,
1164
+ actions: ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::action],
1165
+ auth_rule_token: String,
1166
+ evaluation_time: Time,
1167
+ event_stream: :ACH_PAYMENT_UPDATE,
1168
+ event_token: String,
1169
+ mode: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::mode,
1170
+ rule_version: Integer,
1171
+ transaction_token: String?
1172
+ }
1173
+
1174
+ type action =
1175
+ Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction
1176
+ | Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction
1177
+
1178
+ module Action
1179
+ extend Lithic::Internal::Type::Union
1180
+
1181
+ type tag_action =
1182
+ {
1183
+ key: String,
1184
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction::type_,
1185
+ value: String,
1186
+ explanation: String
1187
+ }
1188
+
1189
+ class TagAction < Lithic::Internal::Type::BaseModel
1190
+ attr_accessor key: String
1191
+
1192
+ attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction::type_
1193
+
1194
+ attr_accessor value: String
1195
+
1196
+ attr_reader explanation: String?
1197
+
1198
+ def explanation=: (String) -> String
1199
+
1200
+ def initialize: (
1201
+ key: String,
1202
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction::type_,
1203
+ value: String,
1204
+ ?explanation: String
1205
+ ) -> void
1206
+
1207
+ def to_hash: -> {
1208
+ key: String,
1209
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction::type_,
1210
+ value: String,
1211
+ explanation: String
1212
+ }
1213
+
1214
+ type type_ = :TAG
1215
+
1216
+ module Type
1217
+ extend Lithic::Internal::Type::Enum
1218
+
1219
+ TAG: :TAG
1220
+
1221
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::TagAction::type_]
1222
+ end
1223
+ end
1224
+
1225
+ type create_case_action =
1226
+ {
1227
+ queue_token: String,
1228
+ scope: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::scope,
1229
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::type_,
1230
+ explanation: String
1231
+ }
1232
+
1233
+ class CreateCaseAction < Lithic::Internal::Type::BaseModel
1234
+ attr_accessor queue_token: String
1235
+
1236
+ attr_accessor scope: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::scope
1237
+
1238
+ attr_accessor type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::type_
1239
+
1240
+ attr_reader explanation: String?
1241
+
1242
+ def explanation=: (String) -> String
1243
+
1244
+ def initialize: (
1245
+ queue_token: String,
1246
+ scope: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::scope,
1247
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::type_,
1248
+ ?explanation: String
1249
+ ) -> void
1250
+
1251
+ def to_hash: -> {
1252
+ queue_token: String,
1253
+ scope: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::scope,
1254
+ type: Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::type_,
1255
+ explanation: String
1256
+ }
1257
+
1258
+ type scope = :FINANCIAL_ACCOUNT
1259
+
1260
+ module Scope
1261
+ extend Lithic::Internal::Type::Enum
1262
+
1263
+ FINANCIAL_ACCOUNT: :FINANCIAL_ACCOUNT
1264
+
1265
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::scope]
1266
+ end
1267
+
1268
+ type type_ = :CREATE_CASE
1269
+
1270
+ module Type
1271
+ extend Lithic::Internal::Type::Enum
1272
+
1273
+ CREATE_CASE: :CREATE_CASE
1274
+
1275
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::Action::CreateCaseAction::type_]
1276
+ end
1277
+ end
1278
+
1279
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::action]
1280
+ end
1281
+
1282
+ type mode = :ACTIVE | :INACTIVE
1283
+
1284
+ module Mode
1285
+ extend Lithic::Internal::Type::Enum
1286
+
1287
+ ACTIVE: :ACTIVE
1288
+ INACTIVE: :INACTIVE
1289
+
1290
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::V2ListResultsResponse::ACHPaymentUpdateResult::mode]
1291
+ end
1292
+ end
1293
+
939
1294
  def self?.variants: -> ::Array[Lithic::Models::AuthRules::v2_list_results_response]
940
1295
  end
941
1296
  end