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
@@ -61,29 +61,29 @@ module Lithic
61
61
  # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
62
62
  # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
63
63
  #
64
- # @return [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Attribute, nil]
65
- optional :attribute, enum: -> { Lithic::AuthRules::Conditional3DSActionParameters::Condition::Attribute }
64
+ # @return [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Attribute]
65
+ required :attribute, enum: -> { Lithic::AuthRules::Conditional3DSActionParameters::Condition::Attribute }
66
66
 
67
67
  # @!attribute operation
68
68
  # The operation to apply to the attribute
69
69
  #
70
- # @return [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Operation, nil]
71
- optional :operation, enum: -> { Lithic::AuthRules::Conditional3DSActionParameters::Condition::Operation }
70
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalOperation]
71
+ required :operation, enum: -> { Lithic::AuthRules::ConditionalOperation }
72
72
 
73
73
  # @!attribute value
74
74
  # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
75
75
  #
76
- # @return [String, Integer, Array<String>, nil]
77
- optional :value, union: -> { Lithic::AuthRules::Conditional3DSActionParameters::Condition::Value }
76
+ # @return [String, Integer, Array<String>]
77
+ required :value, union: -> { Lithic::AuthRules::ConditionalValue }
78
78
 
79
- # @!method initialize(attribute: nil, operation: nil, value: nil)
79
+ # @!method initialize(attribute:, operation:, value:)
80
80
  # Some parameter documentations has been truncated, see
81
81
  # {Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition} for more
82
82
  # details.
83
83
  #
84
84
  # @param attribute [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Attribute] The attribute to target.
85
85
  #
86
- # @param operation [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Operation] The operation to apply to the attribute
86
+ # @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
87
87
  #
88
88
  # @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
89
89
 
@@ -129,49 +129,6 @@ module Lithic
129
129
  # @!method self.values
130
130
  # @return [Array<Symbol>]
131
131
  end
132
-
133
- # The operation to apply to the attribute
134
- #
135
- # @see Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition#operation
136
- module Operation
137
- extend Lithic::Internal::Type::Enum
138
-
139
- IS_ONE_OF = :IS_ONE_OF
140
- IS_NOT_ONE_OF = :IS_NOT_ONE_OF
141
- MATCHES = :MATCHES
142
- DOES_NOT_MATCH = :DOES_NOT_MATCH
143
- IS_EQUAL_TO = :IS_EQUAL_TO
144
- IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO
145
- IS_GREATER_THAN = :IS_GREATER_THAN
146
- IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO
147
- IS_LESS_THAN = :IS_LESS_THAN
148
- IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO
149
-
150
- # @!method self.values
151
- # @return [Array<Symbol>]
152
- end
153
-
154
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
155
- #
156
- # @see Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition#value
157
- module Value
158
- extend Lithic::Internal::Type::Union
159
-
160
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
161
- variant String
162
-
163
- # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO`
164
- variant Integer
165
-
166
- # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
167
- variant -> { Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Value::StringArray }
168
-
169
- # @!method self.variants
170
- # @return [Array(String, Integer, Array<String>)]
171
-
172
- # @type [Lithic::Internal::Type::Converter]
173
- StringArray = Lithic::Internal::Type::ArrayOf[String]
174
- end
175
132
  end
176
133
  end
177
134
  end
@@ -0,0 +1,260 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ class ConditionalACHActionParameters < Lithic::Internal::Type::BaseModel
7
+ # @!attribute action
8
+ # The action to take if the conditions are met
9
+ #
10
+ # @return [Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction]
11
+ required :action, union: -> { Lithic::AuthRules::ConditionalACHActionParameters::Action }
12
+
13
+ # @!attribute conditions
14
+ #
15
+ # @return [Array<Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition>]
16
+ required :conditions,
17
+ -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ConditionalACHActionParameters::Condition] }
18
+
19
+ # @!method initialize(action:, conditions:)
20
+ # @param action [Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction] The action to take if the conditions are met
21
+ #
22
+ # @param conditions [Array<Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition>]
23
+
24
+ # The action to take if the conditions are met
25
+ #
26
+ # @see Lithic::Models::AuthRules::ConditionalACHActionParameters#action
27
+ module Action
28
+ extend Lithic::Internal::Type::Union
29
+
30
+ variant -> { Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction }
31
+
32
+ variant -> { Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction }
33
+
34
+ class ApproveAction < Lithic::Internal::Type::BaseModel
35
+ # @!attribute type
36
+ # Approve the ACH transaction
37
+ #
38
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type]
39
+ required :type,
40
+ enum: -> { Lithic::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type }
41
+
42
+ # @!method initialize(type:)
43
+ # @param type [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction::Type] Approve the ACH transaction
44
+
45
+ # Approve the ACH transaction
46
+ #
47
+ # @see Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction#type
48
+ module Type
49
+ extend Lithic::Internal::Type::Enum
50
+
51
+ APPROVE = :APPROVE
52
+
53
+ # @!method self.values
54
+ # @return [Array<Symbol>]
55
+ end
56
+ end
57
+
58
+ class ReturnAction < Lithic::Internal::Type::BaseModel
59
+ # @!attribute code
60
+ # NACHA return code to use when returning the transaction. Note that the list of
61
+ # available return codes is subject to an allowlist configured at the program
62
+ # level
63
+ #
64
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code]
65
+ required :code, enum: -> { Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code }
66
+
67
+ # @!attribute type
68
+ # Return the ACH transaction
69
+ #
70
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Type]
71
+ required :type, enum: -> { Lithic::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Type }
72
+
73
+ # @!method initialize(code:, type:)
74
+ # Some parameter documentations has been truncated, see
75
+ # {Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction}
76
+ # for more details.
77
+ #
78
+ # @param code [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Code] NACHA return code to use when returning the transaction. Note that the list of a
79
+ #
80
+ # @param type [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction::Type] Return the ACH transaction
81
+
82
+ # NACHA return code to use when returning the transaction. Note that the list of
83
+ # available return codes is subject to an allowlist configured at the program
84
+ # level
85
+ #
86
+ # @see Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction#code
87
+ module Code
88
+ extend Lithic::Internal::Type::Enum
89
+
90
+ R01 = :R01
91
+ R02 = :R02
92
+ R03 = :R03
93
+ R04 = :R04
94
+ R05 = :R05
95
+ R06 = :R06
96
+ R07 = :R07
97
+ R08 = :R08
98
+ R09 = :R09
99
+ R10 = :R10
100
+ R11 = :R11
101
+ R12 = :R12
102
+ R13 = :R13
103
+ R14 = :R14
104
+ R15 = :R15
105
+ R16 = :R16
106
+ R17 = :R17
107
+ R18 = :R18
108
+ R19 = :R19
109
+ R20 = :R20
110
+ R21 = :R21
111
+ R22 = :R22
112
+ R23 = :R23
113
+ R24 = :R24
114
+ R25 = :R25
115
+ R26 = :R26
116
+ R27 = :R27
117
+ R28 = :R28
118
+ R29 = :R29
119
+ R30 = :R30
120
+ R31 = :R31
121
+ R32 = :R32
122
+ R33 = :R33
123
+ R34 = :R34
124
+ R35 = :R35
125
+ R36 = :R36
126
+ R37 = :R37
127
+ R38 = :R38
128
+ R39 = :R39
129
+ R40 = :R40
130
+ R41 = :R41
131
+ R42 = :R42
132
+ R43 = :R43
133
+ R44 = :R44
134
+ R45 = :R45
135
+ R46 = :R46
136
+ R47 = :R47
137
+ R50 = :R50
138
+ R51 = :R51
139
+ R52 = :R52
140
+ R53 = :R53
141
+ R61 = :R61
142
+ R62 = :R62
143
+ R67 = :R67
144
+ R68 = :R68
145
+ R69 = :R69
146
+ R70 = :R70
147
+ R71 = :R71
148
+ R72 = :R72
149
+ R73 = :R73
150
+ R74 = :R74
151
+ R75 = :R75
152
+ R76 = :R76
153
+ R77 = :R77
154
+ R80 = :R80
155
+ R81 = :R81
156
+ R82 = :R82
157
+ R83 = :R83
158
+ R84 = :R84
159
+ R85 = :R85
160
+
161
+ # @!method self.values
162
+ # @return [Array<Symbol>]
163
+ end
164
+
165
+ # Return the ACH transaction
166
+ #
167
+ # @see Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction#type
168
+ module Type
169
+ extend Lithic::Internal::Type::Enum
170
+
171
+ RETURN = :RETURN
172
+
173
+ # @!method self.values
174
+ # @return [Array<Symbol>]
175
+ end
176
+ end
177
+
178
+ # @!method self.variants
179
+ # @return [Array(Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction)]
180
+ end
181
+
182
+ class Condition < Lithic::Internal::Type::BaseModel
183
+ # @!attribute attribute
184
+ # The attribute to target.
185
+ #
186
+ # The following attributes may be targeted:
187
+ #
188
+ # - `COMPANY_NAME`: The name of the company initiating the ACH transaction.
189
+ # - `COMPANY_ID`: The company ID (also known as Standard Entry Class (SEC) Company
190
+ # ID) of the entity initiating the ACH transaction.
191
+ # - `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
192
+ # - `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
193
+ # (cents).
194
+ # - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
195
+ # Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
196
+ # (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
197
+ # (Telephone-Initiated Entry), and others.
198
+ # - `MEMO`: Optional memo or description field included with the ACH transaction.
199
+ #
200
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition::Attribute]
201
+ required :attribute, enum: -> { Lithic::AuthRules::ConditionalACHActionParameters::Condition::Attribute }
202
+
203
+ # @!attribute operation
204
+ # The operation to apply to the attribute
205
+ #
206
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalOperation]
207
+ required :operation, enum: -> { Lithic::AuthRules::ConditionalOperation }
208
+
209
+ # @!attribute value
210
+ # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
211
+ #
212
+ # @return [String, Integer, Array<String>]
213
+ required :value, union: -> { Lithic::AuthRules::ConditionalValue }
214
+
215
+ # @!method initialize(attribute:, operation:, value:)
216
+ # Some parameter documentations has been truncated, see
217
+ # {Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition} for more
218
+ # details.
219
+ #
220
+ # @param attribute [Symbol, Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition::Attribute] The attribute to target.
221
+ #
222
+ # @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
223
+ #
224
+ # @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
225
+
226
+ # The attribute to target.
227
+ #
228
+ # The following attributes may be targeted:
229
+ #
230
+ # - `COMPANY_NAME`: The name of the company initiating the ACH transaction.
231
+ # - `COMPANY_ID`: The company ID (also known as Standard Entry Class (SEC) Company
232
+ # ID) of the entity initiating the ACH transaction.
233
+ # - `TIMESTAMP`: The timestamp of the ACH transaction in ISO 8601 format.
234
+ # - `TRANSACTION_AMOUNT`: The amount of the ACH transaction in minor units
235
+ # (cents).
236
+ # - `SEC_CODE`: Standard Entry Class code indicating the type of ACH transaction.
237
+ # Valid values include PPD (Prearranged Payment and Deposit Entry), CCD
238
+ # (Corporate Credit or Debit Entry), WEB (Internet-Initiated/Mobile Entry), TEL
239
+ # (Telephone-Initiated Entry), and others.
240
+ # - `MEMO`: Optional memo or description field included with the ACH transaction.
241
+ #
242
+ # @see Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition#attribute
243
+ module Attribute
244
+ extend Lithic::Internal::Type::Enum
245
+
246
+ COMPANY_NAME = :COMPANY_NAME
247
+ COMPANY_ID = :COMPANY_ID
248
+ TIMESTAMP = :TIMESTAMP
249
+ TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
250
+ SEC_CODE = :SEC_CODE
251
+ MEMO = :MEMO
252
+
253
+ # @!method self.values
254
+ # @return [Array<Symbol>]
255
+ end
256
+ end
257
+ end
258
+ end
259
+ end
260
+ end
@@ -91,32 +91,30 @@ module Lithic
91
91
  # data with the cardholder KYC data if it exists. Valid values are `MATCH`,
92
92
  # `MATCH_ADDRESS_ONLY`, `MATCH_ZIP_ONLY`,`MISMATCH`,`NOT_PRESENT`.
93
93
  #
94
- # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute, nil]
95
- optional :attribute,
94
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute]
95
+ required :attribute,
96
96
  enum: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute }
97
97
 
98
98
  # @!attribute operation
99
99
  # The operation to apply to the attribute
100
100
  #
101
- # @return [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation, nil]
102
- optional :operation,
103
- enum: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation }
101
+ # @return [Symbol, Lithic::Models::AuthRules::ConditionalOperation]
102
+ required :operation, enum: -> { Lithic::AuthRules::ConditionalOperation }
104
103
 
105
104
  # @!attribute value
106
105
  # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
107
106
  #
108
- # @return [String, Integer, Array<String>, nil]
109
- optional :value,
110
- union: -> { Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Value }
107
+ # @return [String, Integer, Array<String>]
108
+ required :value, union: -> { Lithic::AuthRules::ConditionalValue }
111
109
 
112
- # @!method initialize(attribute: nil, operation: nil, value: nil)
110
+ # @!method initialize(attribute:, operation:, value:)
113
111
  # Some parameter documentations has been truncated, see
114
112
  # {Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition}
115
113
  # for more details.
116
114
  #
117
115
  # @param attribute [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Attribute] The attribute to target.
118
116
  #
119
- # @param operation [Symbol, Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Operation] The operation to apply to the attribute
117
+ # @param operation [Symbol, Lithic::Models::AuthRules::ConditionalOperation] The operation to apply to the attribute
120
118
  #
121
119
  # @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
122
120
 
@@ -202,49 +200,6 @@ module Lithic
202
200
  # @!method self.values
203
201
  # @return [Array<Symbol>]
204
202
  end
205
-
206
- # The operation to apply to the attribute
207
- #
208
- # @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition#operation
209
- module Operation
210
- extend Lithic::Internal::Type::Enum
211
-
212
- IS_ONE_OF = :IS_ONE_OF
213
- IS_NOT_ONE_OF = :IS_NOT_ONE_OF
214
- MATCHES = :MATCHES
215
- DOES_NOT_MATCH = :DOES_NOT_MATCH
216
- IS_EQUAL_TO = :IS_EQUAL_TO
217
- IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO
218
- IS_GREATER_THAN = :IS_GREATER_THAN
219
- IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO
220
- IS_LESS_THAN = :IS_LESS_THAN
221
- IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO
222
-
223
- # @!method self.values
224
- # @return [Array<Symbol>]
225
- end
226
-
227
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
228
- #
229
- # @see Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition#value
230
- module Value
231
- extend Lithic::Internal::Type::Union
232
-
233
- # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
234
- variant String
235
-
236
- # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO`
237
- variant Integer
238
-
239
- # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
240
- variant -> { Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Value::StringArray }
241
-
242
- # @!method self.variants
243
- # @return [Array(String, Integer, Array<String>)]
244
-
245
- # @type [Lithic::Internal::Type::Converter]
246
- StringArray = Lithic::Internal::Type::ArrayOf[String]
247
- end
248
203
  end
249
204
  end
250
205
  end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ # The operation to apply to the attribute
7
+ module ConditionalOperation
8
+ extend Lithic::Internal::Type::Enum
9
+
10
+ IS_ONE_OF = :IS_ONE_OF
11
+ IS_NOT_ONE_OF = :IS_NOT_ONE_OF
12
+ MATCHES = :MATCHES
13
+ DOES_NOT_MATCH = :DOES_NOT_MATCH
14
+ IS_EQUAL_TO = :IS_EQUAL_TO
15
+ IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO
16
+ IS_GREATER_THAN = :IS_GREATER_THAN
17
+ IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO
18
+ IS_LESS_THAN = :IS_LESS_THAN
19
+ IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO
20
+
21
+ # @!method self.values
22
+ # @return [Array<Symbol>]
23
+ end
24
+ end
25
+ end
26
+ end