lithic 0.1.0.pre.alpha.55 → 0.1.0.pre.alpha.56

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 (196) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/models/account_activity_list_response.rb +60 -148
  6. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +60 -151
  7. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +8 -51
  8. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -51
  9. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +260 -0
  10. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +8 -53
  11. data/lib/lithic/models/auth_rules/conditional_operation.rb +26 -0
  12. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +254 -0
  13. data/lib/lithic/models/auth_rules/conditional_value.rb +27 -0
  14. data/lib/lithic/models/auth_rules/v2_create_params.rb +14 -5
  15. data/lib/lithic/models/auth_rules/v2_create_response.rb +21 -8
  16. data/lib/lithic/models/auth_rules/v2_draft_params.rb +7 -3
  17. data/lib/lithic/models/auth_rules/v2_draft_response.rb +21 -8
  18. data/lib/lithic/models/auth_rules/v2_list_params.rb +3 -0
  19. data/lib/lithic/models/auth_rules/v2_list_response.rb +21 -8
  20. data/lib/lithic/models/auth_rules/v2_promote_response.rb +21 -8
  21. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +21 -8
  22. data/lib/lithic/models/auth_rules/v2_update_response.rb +21 -8
  23. data/lib/lithic/models/book_transfer_response.rb +1 -0
  24. data/lib/lithic/models/category_details.rb +27 -0
  25. data/lib/lithic/models/dispute.rb +242 -510
  26. data/lib/lithic/models/dispute_v2.rb +555 -0
  27. data/lib/lithic/models/disputes_v2_list_params.rb +84 -0
  28. data/lib/lithic/models/disputes_v2_retrieve_params.rb +14 -0
  29. data/lib/lithic/models/external_bank_account_address.rb +2 -2
  30. data/lib/lithic/models/external_bank_account_create_response.rb +18 -18
  31. data/lib/lithic/models/external_bank_account_list_response.rb +18 -18
  32. data/lib/lithic/models/external_bank_account_retrieve_response.rb +18 -18
  33. data/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rb +18 -18
  34. data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +18 -18
  35. data/lib/lithic/models/external_bank_account_unpause_params.rb +14 -0
  36. data/lib/lithic/models/external_bank_account_unpause_response.rb +242 -0
  37. data/lib/lithic/models/external_bank_account_update_response.rb +18 -18
  38. data/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rb +18 -18
  39. data/lib/lithic/models/external_payment.rb +3 -2
  40. data/lib/lithic/models/external_payment_list_params.rb +1 -0
  41. data/lib/lithic/models/financial_account.rb +4 -3
  42. data/lib/lithic/models/financial_accounts/category_balances.rb +29 -0
  43. data/lib/lithic/models/financial_accounts/loan_tape.rb +35 -520
  44. data/lib/lithic/models/financial_accounts/statement.rb +73 -275
  45. data/lib/lithic/models/financial_event.rb +148 -0
  46. data/lib/lithic/models/financial_transaction.rb +3 -146
  47. data/lib/lithic/models/management_operation_list_params.rb +1 -0
  48. data/lib/lithic/models/management_operation_transaction.rb +5 -4
  49. data/lib/lithic/models/merchant.rb +70 -0
  50. data/lib/lithic/models/payment.rb +7 -5
  51. data/lib/lithic/models/payment_return_params.rb +62 -0
  52. data/lib/lithic/models/statement_totals.rb +100 -0
  53. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +9 -9
  54. data/lib/lithic/models/transaction.rb +3 -69
  55. data/lib/lithic/models/transactions/events/enhanced_data.rb +49 -40
  56. data/lib/lithic/models/transfer.rb +3 -146
  57. data/lib/lithic/models.rb +18 -0
  58. data/lib/lithic/resources/auth_rules/v2.rb +2 -2
  59. data/lib/lithic/resources/disputes.rb +10 -10
  60. data/lib/lithic/resources/disputes_v2.rb +74 -0
  61. data/lib/lithic/resources/external_bank_accounts.rb +19 -0
  62. data/lib/lithic/resources/payments.rb +48 -0
  63. data/lib/lithic/version.rb +1 -1
  64. data/lib/lithic.rb +16 -5
  65. data/rbi/lithic/client.rbi +3 -0
  66. data/rbi/lithic/models/account_activity_list_response.rbi +121 -544
  67. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +121 -544
  68. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +13 -139
  69. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +13 -153
  70. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +789 -0
  71. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +13 -153
  72. data/rbi/lithic/models/auth_rules/conditional_operation.rbi +74 -0
  73. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +674 -0
  74. data/rbi/lithic/models/auth_rules/conditional_value.rbi +28 -0
  75. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +33 -7
  76. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +33 -7
  77. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +12 -4
  78. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +33 -7
  79. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +15 -0
  80. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +33 -7
  81. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +33 -7
  82. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +33 -7
  83. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +33 -7
  84. data/rbi/lithic/models/book_transfer_response.rbi +2 -0
  85. data/rbi/lithic/models/category_details.rbi +43 -0
  86. data/rbi/lithic/models/dispute.rbi +395 -942
  87. data/rbi/lithic/models/dispute_v2.rbi +965 -0
  88. data/rbi/lithic/models/disputes_v2_list_params.rbi +129 -0
  89. data/rbi/lithic/models/disputes_v2_retrieve_params.rbi +27 -0
  90. data/rbi/lithic/models/external_bank_account_address.rbi +3 -6
  91. data/rbi/lithic/models/external_bank_account_create_response.rbi +31 -51
  92. data/rbi/lithic/models/external_bank_account_list_response.rbi +31 -51
  93. data/rbi/lithic/models/external_bank_account_retrieve_response.rbi +31 -51
  94. data/rbi/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +31 -51
  95. data/rbi/lithic/models/external_bank_account_retry_prenote_response.rbi +31 -51
  96. data/rbi/lithic/models/external_bank_account_unpause_params.rbi +30 -0
  97. data/rbi/lithic/models/external_bank_account_unpause_response.rbi +375 -0
  98. data/rbi/lithic/models/external_bank_account_update_response.rbi +31 -51
  99. data/rbi/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +31 -51
  100. data/rbi/lithic/models/external_payment.rbi +5 -6
  101. data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
  102. data/rbi/lithic/models/financial_account.rbi +12 -4
  103. data/rbi/lithic/models/financial_accounts/category_balances.rbi +42 -0
  104. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +47 -802
  105. data/rbi/lithic/models/financial_accounts/statement.rbi +118 -430
  106. data/rbi/lithic/models/financial_event.rbi +409 -0
  107. data/rbi/lithic/models/financial_transaction.rbi +3 -509
  108. data/rbi/lithic/models/management_operation_list_params.rbi +5 -0
  109. data/rbi/lithic/models/management_operation_transaction.rbi +11 -12
  110. data/rbi/lithic/models/merchant.rbi +89 -0
  111. data/rbi/lithic/models/payment.rbi +16 -7
  112. data/rbi/lithic/models/payment_return_params.rbi +85 -0
  113. data/rbi/lithic/models/statement_totals.rbi +128 -0
  114. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +12 -12
  115. data/rbi/lithic/models/transaction.rbi +4 -90
  116. data/rbi/lithic/models/transactions/events/enhanced_data.rbi +74 -133
  117. data/rbi/lithic/models/transfer.rbi +4 -436
  118. data/rbi/lithic/models.rbi +19 -0
  119. data/rbi/lithic/resources/auth_rules/v2.rbi +8 -3
  120. data/rbi/lithic/resources/disputes.rbi +5 -7
  121. data/rbi/lithic/resources/disputes_v2.rbi +64 -0
  122. data/rbi/lithic/resources/external_bank_accounts.rbi +10 -0
  123. data/rbi/lithic/resources/payments.rbi +46 -0
  124. data/sig/lithic/client.rbs +2 -0
  125. data/sig/lithic/models/account_activity_list_response.rbs +67 -221
  126. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +67 -221
  127. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +10 -61
  128. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -61
  129. data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +293 -0
  130. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +10 -61
  131. data/sig/lithic/models/auth_rules/conditional_operation.rbs +34 -0
  132. data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +237 -0
  133. data/sig/lithic/models/auth_rules/conditional_value.rbs +15 -0
  134. data/sig/lithic/models/auth_rules/v2_create_params.rbs +11 -1
  135. data/sig/lithic/models/auth_rules/v2_create_response.rbs +13 -1
  136. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -0
  137. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +13 -1
  138. data/sig/lithic/models/auth_rules/v2_list_params.rbs +9 -1
  139. data/sig/lithic/models/auth_rules/v2_list_response.rbs +13 -1
  140. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +13 -1
  141. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +13 -1
  142. data/sig/lithic/models/auth_rules/v2_update_response.rbs +13 -1
  143. data/sig/lithic/models/book_transfer_response.rbs +3 -1
  144. data/sig/lithic/models/category_details.rbs +26 -0
  145. data/sig/lithic/models/dispute.rbs +157 -417
  146. data/sig/lithic/models/dispute_v2.rbs +438 -0
  147. data/sig/lithic/models/disputes_v2_list_params.rbs +77 -0
  148. data/sig/lithic/models/disputes_v2_retrieve_params.rbs +15 -0
  149. data/sig/lithic/models/external_bank_account_address.rbs +4 -6
  150. data/sig/lithic/models/external_bank_account_create_response.rbs +36 -56
  151. data/sig/lithic/models/external_bank_account_list_response.rbs +36 -56
  152. data/sig/lithic/models/external_bank_account_retrieve_response.rbs +36 -56
  153. data/sig/lithic/models/external_bank_account_retry_micro_deposits_response.rbs +36 -56
  154. data/sig/lithic/models/external_bank_account_retry_prenote_response.rbs +36 -56
  155. data/sig/lithic/models/external_bank_account_unpause_params.rbs +15 -0
  156. data/sig/lithic/models/external_bank_account_unpause_response.rbs +162 -0
  157. data/sig/lithic/models/external_bank_account_update_response.rbs +36 -56
  158. data/sig/lithic/models/external_bank_accounts/micro_deposit_create_response.rbs +36 -56
  159. data/sig/lithic/models/external_payment.rbs +7 -7
  160. data/sig/lithic/models/external_payment_list_params.rbs +3 -1
  161. data/sig/lithic/models/financial_account.rbs +4 -4
  162. data/sig/lithic/models/financial_accounts/category_balances.rbs +24 -0
  163. data/sig/lithic/models/financial_accounts/loan_tape.rbs +48 -464
  164. data/sig/lithic/models/financial_accounts/statement.rbs +59 -244
  165. data/sig/lithic/models/financial_event.rbs +216 -0
  166. data/sig/lithic/models/financial_transaction.rbs +4 -217
  167. data/sig/lithic/models/management_operation_list_params.rbs +3 -1
  168. data/sig/lithic/models/management_operation_transaction.rbs +11 -13
  169. data/sig/lithic/models/merchant.rbs +50 -0
  170. data/sig/lithic/models/payment.rbs +9 -5
  171. data/sig/lithic/models/payment_return_params.rbs +46 -0
  172. data/sig/lithic/models/statement_totals.rbs +76 -0
  173. data/sig/lithic/models/transaction.rbs +4 -51
  174. data/sig/lithic/models/transactions/events/enhanced_data.rbs +78 -124
  175. data/sig/lithic/models/transfer.rbs +6 -219
  176. data/sig/lithic/models.rbs +18 -0
  177. data/sig/lithic/resources/disputes.rbs +5 -5
  178. data/sig/lithic/resources/disputes_v2.rbs +24 -0
  179. data/sig/lithic/resources/external_bank_accounts.rbs +5 -0
  180. data/sig/lithic/resources/payments.rbs +10 -0
  181. metadata +50 -17
  182. data/lib/lithic/models/dispute_create_response.rb +0 -326
  183. data/lib/lithic/models/dispute_delete_response.rb +0 -326
  184. data/lib/lithic/models/dispute_list_response.rb +0 -326
  185. data/lib/lithic/models/dispute_retrieve_response.rb +0 -326
  186. data/lib/lithic/models/dispute_update_response.rb +0 -326
  187. data/rbi/lithic/models/dispute_create_response.rbi +0 -599
  188. data/rbi/lithic/models/dispute_delete_response.rbi +0 -599
  189. data/rbi/lithic/models/dispute_list_response.rbi +0 -582
  190. data/rbi/lithic/models/dispute_retrieve_response.rbi +0 -601
  191. data/rbi/lithic/models/dispute_update_response.rbi +0 -599
  192. data/sig/lithic/models/dispute_create_response.rbs +0 -210
  193. data/sig/lithic/models/dispute_delete_response.rbs +0 -210
  194. data/sig/lithic/models/dispute_list_response.rbs +0 -210
  195. data/sig/lithic/models/dispute_retrieve_response.rbs +0 -210
  196. data/sig/lithic/models/dispute_update_response.rbs +0 -210
@@ -0,0 +1,293 @@
1
+ module Lithic
2
+ module Models
3
+ module AuthRules
4
+ type conditional_ach_action_parameters =
5
+ {
6
+ action: Lithic::Models::AuthRules::ConditionalACHActionParameters::action,
7
+ conditions: ::Array[Lithic::AuthRules::ConditionalACHActionParameters::Condition]
8
+ }
9
+
10
+ class ConditionalACHActionParameters < Lithic::Internal::Type::BaseModel
11
+ attr_accessor action: Lithic::Models::AuthRules::ConditionalACHActionParameters::action
12
+
13
+ attr_accessor conditions: ::Array[Lithic::AuthRules::ConditionalACHActionParameters::Condition]
14
+
15
+ def initialize: (
16
+ action: Lithic::Models::AuthRules::ConditionalACHActionParameters::action,
17
+ conditions: ::Array[Lithic::AuthRules::ConditionalACHActionParameters::Condition]
18
+ ) -> void
19
+
20
+ def to_hash: -> {
21
+ action: Lithic::Models::AuthRules::ConditionalACHActionParameters::action,
22
+ conditions: ::Array[Lithic::AuthRules::ConditionalACHActionParameters::Condition]
23
+ }
24
+
25
+ type action =
26
+ Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction
27
+ | Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction
28
+
29
+ module Action
30
+ extend Lithic::Internal::Type::Union
31
+
32
+ type approve_action =
33
+ {
34
+ type: Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::type_
35
+ }
36
+
37
+ class ApproveAction < Lithic::Internal::Type::BaseModel
38
+ attr_accessor type: Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::type_
39
+
40
+ def initialize: (
41
+ type: Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::type_
42
+ ) -> void
43
+
44
+ def to_hash: -> {
45
+ type: Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::type_
46
+ }
47
+
48
+ type type_ = :APPROVE
49
+
50
+ module Type
51
+ extend Lithic::Internal::Type::Enum
52
+
53
+ APPROVE: :APPROVE
54
+
55
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::type_]
56
+ end
57
+ end
58
+
59
+ type return_action =
60
+ {
61
+ code: Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::code,
62
+ type: Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::type_
63
+ }
64
+
65
+ class ReturnAction < Lithic::Internal::Type::BaseModel
66
+ attr_accessor code: Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::code
67
+
68
+ attr_accessor type: Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::type_
69
+
70
+ def initialize: (
71
+ code: Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::code,
72
+ type: Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::type_
73
+ ) -> void
74
+
75
+ def to_hash: -> {
76
+ code: Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::code,
77
+ type: Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::type_
78
+ }
79
+
80
+ type code =
81
+ :R01
82
+ | :R02
83
+ | :R03
84
+ | :R04
85
+ | :R05
86
+ | :R06
87
+ | :R07
88
+ | :R08
89
+ | :R09
90
+ | :R10
91
+ | :R11
92
+ | :R12
93
+ | :R13
94
+ | :R14
95
+ | :R15
96
+ | :R16
97
+ | :R17
98
+ | :R18
99
+ | :R19
100
+ | :R20
101
+ | :R21
102
+ | :R22
103
+ | :R23
104
+ | :R24
105
+ | :R25
106
+ | :R26
107
+ | :R27
108
+ | :R28
109
+ | :R29
110
+ | :R30
111
+ | :R31
112
+ | :R32
113
+ | :R33
114
+ | :R34
115
+ | :R35
116
+ | :R36
117
+ | :R37
118
+ | :R38
119
+ | :R39
120
+ | :R40
121
+ | :R41
122
+ | :R42
123
+ | :R43
124
+ | :R44
125
+ | :R45
126
+ | :R46
127
+ | :R47
128
+ | :R50
129
+ | :R51
130
+ | :R52
131
+ | :R53
132
+ | :R61
133
+ | :R62
134
+ | :R67
135
+ | :R68
136
+ | :R69
137
+ | :R70
138
+ | :R71
139
+ | :R72
140
+ | :R73
141
+ | :R74
142
+ | :R75
143
+ | :R76
144
+ | :R77
145
+ | :R80
146
+ | :R81
147
+ | :R82
148
+ | :R83
149
+ | :R84
150
+ | :R85
151
+
152
+ module Code
153
+ extend Lithic::Internal::Type::Enum
154
+
155
+ R01: :R01
156
+ R02: :R02
157
+ R03: :R03
158
+ R04: :R04
159
+ R05: :R05
160
+ R06: :R06
161
+ R07: :R07
162
+ R08: :R08
163
+ R09: :R09
164
+ R10: :R10
165
+ R11: :R11
166
+ R12: :R12
167
+ R13: :R13
168
+ R14: :R14
169
+ R15: :R15
170
+ R16: :R16
171
+ R17: :R17
172
+ R18: :R18
173
+ R19: :R19
174
+ R20: :R20
175
+ R21: :R21
176
+ R22: :R22
177
+ R23: :R23
178
+ R24: :R24
179
+ R25: :R25
180
+ R26: :R26
181
+ R27: :R27
182
+ R28: :R28
183
+ R29: :R29
184
+ R30: :R30
185
+ R31: :R31
186
+ R32: :R32
187
+ R33: :R33
188
+ R34: :R34
189
+ R35: :R35
190
+ R36: :R36
191
+ R37: :R37
192
+ R38: :R38
193
+ R39: :R39
194
+ R40: :R40
195
+ R41: :R41
196
+ R42: :R42
197
+ R43: :R43
198
+ R44: :R44
199
+ R45: :R45
200
+ R46: :R46
201
+ R47: :R47
202
+ R50: :R50
203
+ R51: :R51
204
+ R52: :R52
205
+ R53: :R53
206
+ R61: :R61
207
+ R62: :R62
208
+ R67: :R67
209
+ R68: :R68
210
+ R69: :R69
211
+ R70: :R70
212
+ R71: :R71
213
+ R72: :R72
214
+ R73: :R73
215
+ R74: :R74
216
+ R75: :R75
217
+ R76: :R76
218
+ R77: :R77
219
+ R80: :R80
220
+ R81: :R81
221
+ R82: :R82
222
+ R83: :R83
223
+ R84: :R84
224
+ R85: :R85
225
+
226
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::code]
227
+ end
228
+
229
+ type type_ = :RETURN
230
+
231
+ module Type
232
+ extend Lithic::Internal::Type::Enum
233
+
234
+ RETURN: :RETURN
235
+
236
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::type_]
237
+ end
238
+ end
239
+
240
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::ConditionalACHActionParameters::action]
241
+ end
242
+
243
+ type condition =
244
+ {
245
+ attribute: Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition::attribute,
246
+ operation: Lithic::Models::AuthRules::conditional_operation,
247
+ value: Lithic::Models::AuthRules::conditional_value
248
+ }
249
+
250
+ class Condition < Lithic::Internal::Type::BaseModel
251
+ attr_accessor attribute: Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition::attribute
252
+
253
+ attr_accessor operation: Lithic::Models::AuthRules::conditional_operation
254
+
255
+ attr_accessor value: Lithic::Models::AuthRules::conditional_value
256
+
257
+ def initialize: (
258
+ attribute: Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition::attribute,
259
+ operation: Lithic::Models::AuthRules::conditional_operation,
260
+ value: Lithic::Models::AuthRules::conditional_value
261
+ ) -> void
262
+
263
+ def to_hash: -> {
264
+ attribute: Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition::attribute,
265
+ operation: Lithic::Models::AuthRules::conditional_operation,
266
+ value: Lithic::Models::AuthRules::conditional_value
267
+ }
268
+
269
+ type attribute =
270
+ :COMPANY_NAME
271
+ | :COMPANY_ID
272
+ | :TIMESTAMP
273
+ | :TRANSACTION_AMOUNT
274
+ | :SEC_CODE
275
+ | :MEMO
276
+
277
+ module Attribute
278
+ extend Lithic::Internal::Type::Enum
279
+
280
+ COMPANY_NAME: :COMPANY_NAME
281
+ COMPANY_ID: :COMPANY_ID
282
+ TIMESTAMP: :TIMESTAMP
283
+ TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
284
+ SEC_CODE: :SEC_CODE
285
+ MEMO: :MEMO
286
+
287
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition::attribute]
288
+ end
289
+ end
290
+ end
291
+ end
292
+ end
293
+ end
@@ -36,39 +36,27 @@ module Lithic
36
36
  type condition =
37
37
  {
38
38
  attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute,
39
- operation: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation,
40
- value: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value
39
+ operation: Lithic::Models::AuthRules::conditional_operation,
40
+ value: Lithic::Models::AuthRules::conditional_value
41
41
  }
42
42
 
43
43
  class Condition < Lithic::Internal::Type::BaseModel
44
- attr_reader attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute?
44
+ attr_accessor attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute
45
45
 
46
- def attribute=: (
47
- Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute
48
- ) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute
46
+ attr_accessor operation: Lithic::Models::AuthRules::conditional_operation
49
47
 
50
- attr_reader operation: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation?
51
-
52
- def operation=: (
53
- Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation
54
- ) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation
55
-
56
- attr_reader value: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value?
57
-
58
- def value=: (
59
- Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value
60
- ) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value
48
+ attr_accessor value: Lithic::Models::AuthRules::conditional_value
61
49
 
62
50
  def initialize: (
63
- ?attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute,
64
- ?operation: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation,
65
- ?value: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value
51
+ attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute,
52
+ operation: Lithic::Models::AuthRules::conditional_operation,
53
+ value: Lithic::Models::AuthRules::conditional_value
66
54
  ) -> void
67
55
 
68
56
  def to_hash: -> {
69
57
  attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute,
70
- operation: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation,
71
- value: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value
58
+ operation: Lithic::Models::AuthRules::conditional_operation,
59
+ value: Lithic::Models::AuthRules::conditional_value
72
60
  }
73
61
 
74
62
  type attribute =
@@ -117,45 +105,6 @@ module Lithic
117
105
 
118
106
  def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute]
119
107
  end
120
-
121
- type operation =
122
- :IS_ONE_OF
123
- | :IS_NOT_ONE_OF
124
- | :MATCHES
125
- | :DOES_NOT_MATCH
126
- | :IS_EQUAL_TO
127
- | :IS_NOT_EQUAL_TO
128
- | :IS_GREATER_THAN
129
- | :IS_GREATER_THAN_OR_EQUAL_TO
130
- | :IS_LESS_THAN
131
- | :IS_LESS_THAN_OR_EQUAL_TO
132
-
133
- module Operation
134
- extend Lithic::Internal::Type::Enum
135
-
136
- IS_ONE_OF: :IS_ONE_OF
137
- IS_NOT_ONE_OF: :IS_NOT_ONE_OF
138
- MATCHES: :MATCHES
139
- DOES_NOT_MATCH: :DOES_NOT_MATCH
140
- IS_EQUAL_TO: :IS_EQUAL_TO
141
- IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO
142
- IS_GREATER_THAN: :IS_GREATER_THAN
143
- IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO
144
- IS_LESS_THAN: :IS_LESS_THAN
145
- IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO
146
-
147
- def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::operation]
148
- end
149
-
150
- type value = String | Integer | ::Array[String]
151
-
152
- module Value
153
- extend Lithic::Internal::Type::Union
154
-
155
- def self?.variants: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::value]
156
-
157
- StringArray: Lithic::Internal::Type::Converter
158
- end
159
108
  end
160
109
  end
161
110
  end
@@ -0,0 +1,34 @@
1
+ module Lithic
2
+ module Models
3
+ module AuthRules
4
+ type conditional_operation =
5
+ :IS_ONE_OF
6
+ | :IS_NOT_ONE_OF
7
+ | :MATCHES
8
+ | :DOES_NOT_MATCH
9
+ | :IS_EQUAL_TO
10
+ | :IS_NOT_EQUAL_TO
11
+ | :IS_GREATER_THAN
12
+ | :IS_GREATER_THAN_OR_EQUAL_TO
13
+ | :IS_LESS_THAN
14
+ | :IS_LESS_THAN_OR_EQUAL_TO
15
+
16
+ module ConditionalOperation
17
+ extend Lithic::Internal::Type::Enum
18
+
19
+ IS_ONE_OF: :IS_ONE_OF
20
+ IS_NOT_ONE_OF: :IS_NOT_ONE_OF
21
+ MATCHES: :MATCHES
22
+ DOES_NOT_MATCH: :DOES_NOT_MATCH
23
+ IS_EQUAL_TO: :IS_EQUAL_TO
24
+ IS_NOT_EQUAL_TO: :IS_NOT_EQUAL_TO
25
+ IS_GREATER_THAN: :IS_GREATER_THAN
26
+ IS_GREATER_THAN_OR_EQUAL_TO: :IS_GREATER_THAN_OR_EQUAL_TO
27
+ IS_LESS_THAN: :IS_LESS_THAN
28
+ IS_LESS_THAN_OR_EQUAL_TO: :IS_LESS_THAN_OR_EQUAL_TO
29
+
30
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::conditional_operation]
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,237 @@
1
+ module Lithic
2
+ module Models
3
+ module AuthRules
4
+ type conditional_tokenization_action_parameters =
5
+ {
6
+ action: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::action,
7
+ conditions: ::Array[Lithic::AuthRules::ConditionalTokenizationActionParameters::Condition]
8
+ }
9
+
10
+ class ConditionalTokenizationActionParameters < Lithic::Internal::Type::BaseModel
11
+ attr_accessor action: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::action
12
+
13
+ attr_accessor conditions: ::Array[Lithic::AuthRules::ConditionalTokenizationActionParameters::Condition]
14
+
15
+ def initialize: (
16
+ action: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::action,
17
+ conditions: ::Array[Lithic::AuthRules::ConditionalTokenizationActionParameters::Condition]
18
+ ) -> void
19
+
20
+ def to_hash: -> {
21
+ action: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::action,
22
+ conditions: ::Array[Lithic::AuthRules::ConditionalTokenizationActionParameters::Condition]
23
+ }
24
+
25
+ type action =
26
+ Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction
27
+ | Lithic::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction
28
+
29
+ module Action
30
+ extend Lithic::Internal::Type::Union
31
+
32
+ type decline_action =
33
+ {
34
+ type: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::type_,
35
+ reason: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::reason
36
+ }
37
+
38
+ class DeclineAction < Lithic::Internal::Type::BaseModel
39
+ attr_accessor type: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::type_
40
+
41
+ attr_reader reason: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::reason?
42
+
43
+ def reason=: (
44
+ Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::reason
45
+ ) -> Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::reason
46
+
47
+ def initialize: (
48
+ type: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::type_,
49
+ ?reason: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::reason
50
+ ) -> void
51
+
52
+ def to_hash: -> {
53
+ type: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::type_,
54
+ reason: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::reason
55
+ }
56
+
57
+ type type_ = :DECLINE
58
+
59
+ module Type
60
+ extend Lithic::Internal::Type::Enum
61
+
62
+ DECLINE: :DECLINE
63
+
64
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::type_]
65
+ end
66
+
67
+ type reason =
68
+ :ACCOUNT_SCORE_1
69
+ | :DEVICE_SCORE_1
70
+ | :ALL_WALLET_DECLINE_REASONS_PRESENT
71
+ | :WALLET_RECOMMENDED_DECISION_RED
72
+ | :CVC_MISMATCH
73
+ | :CARD_EXPIRY_MONTH_MISMATCH
74
+ | :CARD_EXPIRY_YEAR_MISMATCH
75
+ | :CARD_INVALID_STATE
76
+ | :CUSTOMER_RED_PATH
77
+ | :INVALID_CUSTOMER_RESPONSE
78
+ | :NETWORK_FAILURE
79
+ | :GENERIC_DECLINE
80
+ | :DIGITAL_CARD_ART_REQUIRED
81
+
82
+ module Reason
83
+ extend Lithic::Internal::Type::Enum
84
+
85
+ ACCOUNT_SCORE_1: :ACCOUNT_SCORE_1
86
+ DEVICE_SCORE_1: :DEVICE_SCORE_1
87
+ ALL_WALLET_DECLINE_REASONS_PRESENT: :ALL_WALLET_DECLINE_REASONS_PRESENT
88
+ WALLET_RECOMMENDED_DECISION_RED: :WALLET_RECOMMENDED_DECISION_RED
89
+ CVC_MISMATCH: :CVC_MISMATCH
90
+ CARD_EXPIRY_MONTH_MISMATCH: :CARD_EXPIRY_MONTH_MISMATCH
91
+ CARD_EXPIRY_YEAR_MISMATCH: :CARD_EXPIRY_YEAR_MISMATCH
92
+ CARD_INVALID_STATE: :CARD_INVALID_STATE
93
+ CUSTOMER_RED_PATH: :CUSTOMER_RED_PATH
94
+ INVALID_CUSTOMER_RESPONSE: :INVALID_CUSTOMER_RESPONSE
95
+ NETWORK_FAILURE: :NETWORK_FAILURE
96
+ GENERIC_DECLINE: :GENERIC_DECLINE
97
+ DIGITAL_CARD_ART_REQUIRED: :DIGITAL_CARD_ART_REQUIRED
98
+
99
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction::reason]
100
+ end
101
+ end
102
+
103
+ type require_tfa_action =
104
+ {
105
+ type: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction::type_,
106
+ reason: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction::reason
107
+ }
108
+
109
+ class RequireTfaAction < Lithic::Internal::Type::BaseModel
110
+ attr_accessor type: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction::type_
111
+
112
+ attr_reader reason: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction::reason?
113
+
114
+ def reason=: (
115
+ Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction::reason
116
+ ) -> Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction::reason
117
+
118
+ def initialize: (
119
+ type: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction::type_,
120
+ ?reason: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction::reason
121
+ ) -> void
122
+
123
+ def to_hash: -> {
124
+ type: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction::type_,
125
+ reason: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction::reason
126
+ }
127
+
128
+ type type_ = :REQUIRE_TFA
129
+
130
+ module Type
131
+ extend Lithic::Internal::Type::Enum
132
+
133
+ REQUIRE_TFA: :REQUIRE_TFA
134
+
135
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction::type_]
136
+ end
137
+
138
+ type reason =
139
+ :WALLET_RECOMMENDED_TFA
140
+ | :SUSPICIOUS_ACTIVITY
141
+ | :DEVICE_RECENTLY_LOST
142
+ | :TOO_MANY_RECENT_ATTEMPTS
143
+ | :TOO_MANY_RECENT_TOKENS
144
+ | :TOO_MANY_DIFFERENT_CARDHOLDERS
145
+ | :OUTSIDE_HOME_TERRITORY
146
+ | :HAS_SUSPENDED_TOKENS
147
+ | :HIGH_RISK
148
+ | :ACCOUNT_SCORE_LOW
149
+ | :DEVICE_SCORE_LOW
150
+ | :CARD_STATE_TFA
151
+ | :HARDCODED_TFA
152
+ | :CUSTOMER_RULE_TFA
153
+ | :DEVICE_HOST_CARD_EMULATION
154
+
155
+ module Reason
156
+ extend Lithic::Internal::Type::Enum
157
+
158
+ WALLET_RECOMMENDED_TFA: :WALLET_RECOMMENDED_TFA
159
+ SUSPICIOUS_ACTIVITY: :SUSPICIOUS_ACTIVITY
160
+ DEVICE_RECENTLY_LOST: :DEVICE_RECENTLY_LOST
161
+ TOO_MANY_RECENT_ATTEMPTS: :TOO_MANY_RECENT_ATTEMPTS
162
+ TOO_MANY_RECENT_TOKENS: :TOO_MANY_RECENT_TOKENS
163
+ TOO_MANY_DIFFERENT_CARDHOLDERS: :TOO_MANY_DIFFERENT_CARDHOLDERS
164
+ OUTSIDE_HOME_TERRITORY: :OUTSIDE_HOME_TERRITORY
165
+ HAS_SUSPENDED_TOKENS: :HAS_SUSPENDED_TOKENS
166
+ HIGH_RISK: :HIGH_RISK
167
+ ACCOUNT_SCORE_LOW: :ACCOUNT_SCORE_LOW
168
+ DEVICE_SCORE_LOW: :DEVICE_SCORE_LOW
169
+ CARD_STATE_TFA: :CARD_STATE_TFA
170
+ HARDCODED_TFA: :HARDCODED_TFA
171
+ CUSTOMER_RULE_TFA: :CUSTOMER_RULE_TFA
172
+ DEVICE_HOST_CARD_EMULATION: :DEVICE_HOST_CARD_EMULATION
173
+
174
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction::reason]
175
+ end
176
+ end
177
+
178
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::action]
179
+ end
180
+
181
+ type condition =
182
+ {
183
+ attribute: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Condition::attribute,
184
+ operation: Lithic::Models::AuthRules::conditional_operation,
185
+ value: Lithic::Models::AuthRules::conditional_value
186
+ }
187
+
188
+ class Condition < Lithic::Internal::Type::BaseModel
189
+ attr_accessor attribute: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Condition::attribute
190
+
191
+ attr_accessor operation: Lithic::Models::AuthRules::conditional_operation
192
+
193
+ attr_accessor value: Lithic::Models::AuthRules::conditional_value
194
+
195
+ def initialize: (
196
+ attribute: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Condition::attribute,
197
+ operation: Lithic::Models::AuthRules::conditional_operation,
198
+ value: Lithic::Models::AuthRules::conditional_value
199
+ ) -> void
200
+
201
+ def to_hash: -> {
202
+ attribute: Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Condition::attribute,
203
+ operation: Lithic::Models::AuthRules::conditional_operation,
204
+ value: Lithic::Models::AuthRules::conditional_value
205
+ }
206
+
207
+ type attribute =
208
+ :TIMESTAMP
209
+ | :TOKENIZATION_CHANNEL
210
+ | :TOKENIZATION_SOURCE
211
+ | :TOKEN_REQUESTOR_NAME
212
+ | :WALLET_ACCOUNT_SCORE
213
+ | :WALLET_DEVICE_SCORE
214
+ | :WALLET_RECOMMENDED_DECISION
215
+ | :TOKEN_REQUESTOR_ID
216
+ | :WALLET_TOKEN_STATUS
217
+
218
+ module Attribute
219
+ extend Lithic::Internal::Type::Enum
220
+
221
+ TIMESTAMP: :TIMESTAMP
222
+ TOKENIZATION_CHANNEL: :TOKENIZATION_CHANNEL
223
+ TOKENIZATION_SOURCE: :TOKENIZATION_SOURCE
224
+ TOKEN_REQUESTOR_NAME: :TOKEN_REQUESTOR_NAME
225
+ WALLET_ACCOUNT_SCORE: :WALLET_ACCOUNT_SCORE
226
+ WALLET_DEVICE_SCORE: :WALLET_DEVICE_SCORE
227
+ WALLET_RECOMMENDED_DECISION: :WALLET_RECOMMENDED_DECISION
228
+ TOKEN_REQUESTOR_ID: :TOKEN_REQUESTOR_ID
229
+ WALLET_TOKEN_STATUS: :WALLET_TOKEN_STATUS
230
+
231
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Condition::attribute]
232
+ end
233
+ end
234
+ end
235
+ end
236
+ end
237
+ end
@@ -0,0 +1,15 @@
1
+ module Lithic
2
+ module Models
3
+ module AuthRules
4
+ type conditional_value = String | Integer | ::Array[String]
5
+
6
+ module ConditionalValue
7
+ extend Lithic::Internal::Type::Union
8
+
9
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::conditional_value]
10
+
11
+ StringArray: Lithic::Internal::Type::Converter
12
+ end
13
+ end
14
+ end
15
+ end