lithic 0.1.0.pre.alpha.40 → 0.1.0.pre.alpha.42

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 (184) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/internal/transport/base_client.rb +1 -1
  6. data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -9
  7. data/lib/lithic/internal/type/array_of.rb +1 -0
  8. data/lib/lithic/internal/type/base_model.rb +3 -1
  9. data/lib/lithic/internal/type/converter.rb +27 -0
  10. data/lib/lithic/internal/type/hash_of.rb +1 -0
  11. data/lib/lithic/internal/type/union.rb +9 -7
  12. data/lib/lithic/internal/util.rb +1 -1
  13. data/lib/lithic/models/account_activity_list_params.rb +158 -0
  14. data/lib/lithic/models/account_activity_list_response.rb +1435 -0
  15. data/lib/lithic/models/account_activity_retrieve_transaction_params.rb +14 -0
  16. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1451 -0
  17. data/lib/lithic/models/account_holder.rb +16 -19
  18. data/lib/lithic/models/account_holder_create_params.rb +41 -47
  19. data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -3
  20. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +25 -20
  21. data/lib/lithic/models/account_holder_update_params.rb +2 -6
  22. data/lib/lithic/models/account_holder_update_response.rb +25 -20
  23. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +5 -1
  24. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -12
  25. data/lib/lithic/models/auth_rules/v2_apply_params.rb +13 -5
  26. data/lib/lithic/models/auth_rules/v2_apply_response.rb +510 -18
  27. data/lib/lithic/models/auth_rules/v2_create_params.rb +283 -16
  28. data/lib/lithic/models/auth_rules/v2_create_response.rb +510 -18
  29. data/lib/lithic/models/auth_rules/v2_draft_params.rb +239 -3
  30. data/lib/lithic/models/auth_rules/v2_draft_response.rb +510 -18
  31. data/lib/lithic/models/auth_rules/v2_list_params.rb +11 -1
  32. data/lib/lithic/models/auth_rules/v2_list_response.rb +510 -18
  33. data/lib/lithic/models/auth_rules/v2_promote_response.rb +510 -18
  34. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +510 -18
  35. data/lib/lithic/models/auth_rules/v2_update_params.rb +1 -9
  36. data/lib/lithic/models/auth_rules/v2_update_response.rb +510 -18
  37. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +4 -16
  38. data/lib/lithic/models/book_transfer_create_params.rb +34 -6
  39. data/lib/lithic/models/book_transfer_response.rb +124 -28
  40. data/lib/lithic/models/document.rb +1 -3
  41. data/lib/lithic/models/event.rb +6 -0
  42. data/lib/lithic/models/event_list_params.rb +2 -0
  43. data/lib/lithic/models/event_subscription.rb +2 -0
  44. data/lib/lithic/models/events/subscription_create_params.rb +3 -3
  45. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +2 -0
  46. data/lib/lithic/models/events/subscription_update_params.rb +3 -3
  47. data/lib/lithic/models/external_bank_account_list_params.rb +2 -6
  48. data/lib/lithic/models/external_payment.rb +89 -48
  49. data/lib/lithic/models/financial_account.rb +1 -0
  50. data/lib/lithic/models/financial_accounts/loan_tape.rb +5 -18
  51. data/lib/lithic/models/financial_accounts/statement.rb +3 -10
  52. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +2 -7
  53. data/lib/lithic/models/financial_transaction.rb +2 -0
  54. data/lib/lithic/models/instance_financial_account_type.rb +1 -0
  55. data/lib/lithic/models/kyb.rb +2 -2
  56. data/lib/lithic/models/management_operation_transaction.rb +90 -63
  57. data/lib/lithic/models/payment.rb +60 -1
  58. data/lib/lithic/models/reports/settlement_list_details_params.rb +2 -2
  59. data/lib/lithic/models/settlement_detail.rb +1 -0
  60. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +173 -38
  61. data/lib/lithic/models/three_ds/authentication_simulate_params.rb +1 -4
  62. data/lib/lithic/models/tokenization.rb +1 -1
  63. data/lib/lithic/models/transaction.rb +4 -0
  64. data/lib/lithic/models/transactions/events/enhanced_data.rb +3 -11
  65. data/lib/lithic/models/transfer.rb +2 -0
  66. data/lib/lithic/models/wire_party_details.rb +40 -0
  67. data/lib/lithic/models.rb +6 -0
  68. data/lib/lithic/resources/account_activity.rb +80 -0
  69. data/lib/lithic/resources/account_holders.rb +9 -9
  70. data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -3
  71. data/lib/lithic/resources/auth_rules/v2.rb +19 -13
  72. data/lib/lithic/resources/book_transfers.rb +7 -3
  73. data/lib/lithic/resources/reports/settlement.rb +1 -1
  74. data/lib/lithic/resources/tokenizations.rb +2 -2
  75. data/lib/lithic/version.rb +1 -1
  76. data/lib/lithic.rb +7 -2
  77. data/rbi/lithic/client.rbi +3 -0
  78. data/rbi/lithic/errors.rbi +2 -2
  79. data/rbi/lithic/internal/transport/base_client.rbi +1 -1
  80. data/rbi/lithic/internal/type/converter.rbi +46 -0
  81. data/rbi/lithic/internal/type/union.rbi +7 -2
  82. data/rbi/lithic/models/account_activity_list_params.rbi +347 -0
  83. data/rbi/lithic/models/account_activity_list_response.rbi +3367 -0
  84. data/rbi/lithic/models/account_activity_retrieve_transaction_params.rbi +30 -0
  85. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +3369 -0
  86. data/rbi/lithic/models/account_holder.rbi +21 -23
  87. data/rbi/lithic/models/account_holder_create_params.rbi +87 -65
  88. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +36 -30
  89. data/rbi/lithic/models/account_holder_update_response.rbi +36 -30
  90. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +20 -0
  91. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +20 -0
  92. data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +19 -5
  93. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +1128 -18
  94. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +646 -21
  95. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +1128 -18
  96. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +554 -4
  97. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +1128 -18
  98. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +18 -0
  99. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +1128 -18
  100. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +1128 -18
  101. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +1128 -18
  102. data/rbi/lithic/models/auth_rules/v2_update_params.rbi +0 -11
  103. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +1128 -18
  104. data/rbi/lithic/models/book_transfer_create_params.rbi +75 -5
  105. data/rbi/lithic/models/book_transfer_response.rbi +320 -38
  106. data/rbi/lithic/models/event.rbi +16 -0
  107. data/rbi/lithic/models/event_list_params.rbi +10 -0
  108. data/rbi/lithic/models/event_subscription.rbi +10 -0
  109. data/rbi/lithic/models/events/subscription_create_params.rbi +10 -0
  110. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +10 -0
  111. data/rbi/lithic/models/events/subscription_update_params.rbi +10 -0
  112. data/rbi/lithic/models/external_payment.rbi +147 -60
  113. data/rbi/lithic/models/financial_account.rbi +5 -0
  114. data/rbi/lithic/models/financial_transaction.rbi +1 -0
  115. data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
  116. data/rbi/lithic/models/kyb.rbi +2 -2
  117. data/rbi/lithic/models/management_operation_transaction.rbi +226 -95
  118. data/rbi/lithic/models/payment.rbi +103 -3
  119. data/rbi/lithic/models/reports/settlement_list_details_params.rbi +2 -2
  120. data/rbi/lithic/models/settlement_detail.rbi +2 -0
  121. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +267 -60
  122. data/rbi/lithic/models/transaction.rbi +17 -0
  123. data/rbi/lithic/models/transfer.rbi +1 -0
  124. data/rbi/lithic/models/wire_party_details.rbi +61 -0
  125. data/rbi/lithic/models.rbi +7 -0
  126. data/rbi/lithic/resources/account_activity.rbi +80 -0
  127. data/rbi/lithic/resources/account_holders.rbi +28 -29
  128. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +3 -3
  129. data/rbi/lithic/resources/auth_rules/v2.rbi +28 -14
  130. data/rbi/lithic/resources/book_transfers.rbi +9 -2
  131. data/rbi/lithic/resources/reports/settlement.rbi +1 -1
  132. data/rbi/lithic/resources/tokenizations.rbi +1 -1
  133. data/sig/lithic/client.rbs +2 -0
  134. data/sig/lithic/internal/transport/base_client.rbs +1 -1
  135. data/sig/lithic/internal/type/converter.rbs +17 -0
  136. data/sig/lithic/internal/type/union.rbs +2 -2
  137. data/sig/lithic/models/account_activity_list_params.rbs +173 -0
  138. data/sig/lithic/models/account_activity_list_response.rbs +1353 -0
  139. data/sig/lithic/models/account_activity_retrieve_transaction_params.rbs +15 -0
  140. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +1353 -0
  141. data/sig/lithic/models/account_holder_create_params.rbs +33 -19
  142. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +10 -3
  143. data/sig/lithic/models/account_holder_update_response.rbs +10 -3
  144. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +8 -0
  145. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +8 -0
  146. data/sig/lithic/models/auth_rules/v2_apply_params.rbs +11 -2
  147. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +317 -2
  148. data/sig/lithic/models/auth_rules/v2_create_params.rbs +188 -4
  149. data/sig/lithic/models/auth_rules/v2_create_response.rbs +317 -2
  150. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +155 -0
  151. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +317 -2
  152. data/sig/lithic/models/auth_rules/v2_list_params.rbs +10 -1
  153. data/sig/lithic/models/auth_rules/v2_list_response.rbs +317 -2
  154. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +317 -2
  155. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +317 -2
  156. data/sig/lithic/models/auth_rules/v2_update_params.rbs +0 -7
  157. data/sig/lithic/models/auth_rules/v2_update_response.rbs +317 -2
  158. data/sig/lithic/models/book_transfer_create_params.rbs +30 -1
  159. data/sig/lithic/models/book_transfer_response.rbs +134 -15
  160. data/sig/lithic/models/event.rbs +4 -0
  161. data/sig/lithic/models/event_list_params.rbs +4 -0
  162. data/sig/lithic/models/event_subscription.rbs +4 -0
  163. data/sig/lithic/models/events/subscription_create_params.rbs +4 -0
  164. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +4 -0
  165. data/sig/lithic/models/events/subscription_update_params.rbs +4 -0
  166. data/sig/lithic/models/external_payment.rbs +91 -40
  167. data/sig/lithic/models/financial_account.rbs +2 -0
  168. data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
  169. data/sig/lithic/models/management_operation_transaction.rbs +95 -44
  170. data/sig/lithic/models/payment.rbs +61 -3
  171. data/sig/lithic/models/settlement_detail.rbs +2 -0
  172. data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +110 -23
  173. data/sig/lithic/models/transaction.rbs +10 -2
  174. data/sig/lithic/models/wire_party_details.rbs +35 -0
  175. data/sig/lithic/models.rbs +6 -0
  176. data/sig/lithic/resources/account_activity.rbs +27 -0
  177. data/sig/lithic/resources/account_holders.rbs +3 -3
  178. data/sig/lithic/resources/auth_rules/v2.rbs +6 -3
  179. data/sig/lithic/resources/book_transfers.rbs +2 -0
  180. data/sig/lithic/resources/tokenizations.rbs +1 -1
  181. metadata +20 -5
  182. data/lib/lithic/models/tokenization_retrieve_response.rb +0 -16
  183. data/rbi/lithic/models/tokenization_retrieve_response.rbi +0 -31
  184. data/sig/lithic/models/tokenization_retrieve_response.rbs +0 -15
@@ -0,0 +1,1435 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ # Response containing multiple transaction types
6
+ #
7
+ # @see Lithic::Resources::AccountActivity#list
8
+ module AccountActivityListResponse
9
+ extend Lithic::Internal::Type::Union
10
+
11
+ # Financial transaction with inheritance from unified base transaction
12
+ variant -> { Lithic::Models::AccountActivityListResponse::FinancialTransaction }
13
+
14
+ # Book transfer transaction
15
+ variant -> { Lithic::Models::AccountActivityListResponse::BookTransferTransaction }
16
+
17
+ # Base class for all transaction types in the ledger service
18
+ variant -> { Lithic::Models::AccountActivityListResponse::CardTransaction }
19
+
20
+ # Payment transaction
21
+ variant -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction }
22
+
23
+ variant -> { Lithic::ExternalPayment }
24
+
25
+ variant -> { Lithic::ManagementOperationTransaction }
26
+
27
+ class FinancialTransaction < Lithic::Internal::Type::BaseModel
28
+ # @!attribute token
29
+ # Unique identifier for the transaction
30
+ #
31
+ # @return [String]
32
+ required :token, String
33
+
34
+ # @!attribute category
35
+ # Transaction category
36
+ #
37
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category]
38
+ required :category,
39
+ enum: -> { Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category }
40
+
41
+ # @!attribute created
42
+ # ISO 8601 timestamp of when the transaction was created
43
+ #
44
+ # @return [Time]
45
+ required :created, Time
46
+
47
+ # @!attribute currency
48
+ # Currency of the transaction, represented in ISO 4217 format
49
+ #
50
+ # @return [String]
51
+ required :currency, String
52
+
53
+ # @!attribute descriptor
54
+ # Transaction descriptor
55
+ #
56
+ # @return [String]
57
+ required :descriptor, String
58
+
59
+ # @!attribute events
60
+ # List of transaction events
61
+ #
62
+ # @return [Array<Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event>]
63
+ required :events,
64
+ -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event] }
65
+
66
+ # @!attribute family
67
+ #
68
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Family]
69
+ required :family, enum: -> { Lithic::Models::AccountActivityListResponse::FinancialTransaction::Family }
70
+
71
+ # @!attribute financial_account_token
72
+ # Financial account token associated with the transaction
73
+ #
74
+ # @return [String]
75
+ required :financial_account_token, String
76
+
77
+ # @!attribute pending_amount
78
+ # Pending amount in cents
79
+ #
80
+ # @return [Integer]
81
+ required :pending_amount, Integer
82
+
83
+ # @!attribute result
84
+ # Transaction result
85
+ #
86
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Result]
87
+ required :result, enum: -> { Lithic::Models::AccountActivityListResponse::FinancialTransaction::Result }
88
+
89
+ # @!attribute settled_amount
90
+ # Settled amount in cents
91
+ #
92
+ # @return [Integer]
93
+ required :settled_amount, Integer
94
+
95
+ # @!attribute status
96
+ # The status of the transaction
97
+ #
98
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Status]
99
+ required :status, enum: -> { Lithic::Models::AccountActivityListResponse::FinancialTransaction::Status }
100
+
101
+ # @!attribute updated
102
+ # ISO 8601 timestamp of when the transaction was last updated
103
+ #
104
+ # @return [Time]
105
+ required :updated, Time
106
+
107
+ # @!method initialize(token:, category:, created:, currency:, descriptor:, events:, family:, financial_account_token:, pending_amount:, result:, settled_amount:, status:, updated:)
108
+ # Financial transaction with inheritance from unified base transaction
109
+ #
110
+ # @param token [String] Unique identifier for the transaction
111
+ #
112
+ # @param category [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Category] Transaction category
113
+ #
114
+ # @param created [Time] ISO 8601 timestamp of when the transaction was created
115
+ #
116
+ # @param currency [String] Currency of the transaction, represented in ISO 4217 format
117
+ #
118
+ # @param descriptor [String] Transaction descriptor
119
+ #
120
+ # @param events [Array<Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event>] List of transaction events
121
+ #
122
+ # @param family [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Family]
123
+ #
124
+ # @param financial_account_token [String] Financial account token associated with the transaction
125
+ #
126
+ # @param pending_amount [Integer] Pending amount in cents
127
+ #
128
+ # @param result [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Result] Transaction result
129
+ #
130
+ # @param settled_amount [Integer] Settled amount in cents
131
+ #
132
+ # @param status [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Status] The status of the transaction
133
+ #
134
+ # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated
135
+
136
+ # Transaction category
137
+ #
138
+ # @see Lithic::Models::AccountActivityListResponse::FinancialTransaction#category
139
+ module Category
140
+ extend Lithic::Internal::Type::Enum
141
+
142
+ ACH = :ACH
143
+ BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING
144
+ CARD = :CARD
145
+ EXTERNAL_ACH = :EXTERNAL_ACH
146
+ EXTERNAL_CHECK = :EXTERNAL_CHECK
147
+ EXTERNAL_TRANSFER = :EXTERNAL_TRANSFER
148
+ EXTERNAL_WIRE = :EXTERNAL_WIRE
149
+ MANAGEMENT_ADJUSTMENT = :MANAGEMENT_ADJUSTMENT
150
+ MANAGEMENT_DISPUTE = :MANAGEMENT_DISPUTE
151
+ MANAGEMENT_FEE = :MANAGEMENT_FEE
152
+ MANAGEMENT_REWARD = :MANAGEMENT_REWARD
153
+ MANAGEMENT_DISBURSEMENT = :MANAGEMENT_DISBURSEMENT
154
+ PROGRAM_FUNDING = :PROGRAM_FUNDING
155
+
156
+ # @!method self.values
157
+ # @return [Array<Symbol>]
158
+ end
159
+
160
+ class Event < Lithic::Internal::Type::BaseModel
161
+ # @!attribute token
162
+ # Globally unique identifier.
163
+ #
164
+ # @return [String, nil]
165
+ optional :token, String
166
+
167
+ # @!attribute amount
168
+ # Amount of the financial event that has been settled in the currency's smallest
169
+ # unit (e.g., cents).
170
+ #
171
+ # @return [Integer, nil]
172
+ optional :amount, Integer
173
+
174
+ # @!attribute created
175
+ # Date and time when the financial event occurred. UTC time zone.
176
+ #
177
+ # @return [Time, nil]
178
+ optional :created, Time
179
+
180
+ # @!attribute result
181
+ # APPROVED financial events were successful while DECLINED financial events were
182
+ # declined by user, Lithic, or the network.
183
+ #
184
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Result, nil]
185
+ optional :result,
186
+ enum: -> { Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Result }
187
+
188
+ # @!attribute type
189
+ #
190
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type, nil]
191
+ optional :type,
192
+ enum: -> { Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type }
193
+
194
+ # @!method initialize(token: nil, amount: nil, created: nil, result: nil, type: nil)
195
+ # Some parameter documentations has been truncated, see
196
+ # {Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event} for
197
+ # more details.
198
+ #
199
+ # Financial Event
200
+ #
201
+ # @param token [String] Globally unique identifier.
202
+ #
203
+ # @param amount [Integer] Amount of the financial event that has been settled in the currency's smallest u
204
+ #
205
+ # @param created [Time] Date and time when the financial event occurred. UTC time zone.
206
+ #
207
+ # @param result [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Result] APPROVED financial events were successful while DECLINED financial events were d
208
+ #
209
+ # @param type [Symbol, Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event::Type]
210
+
211
+ # APPROVED financial events were successful while DECLINED financial events were
212
+ # declined by user, Lithic, or the network.
213
+ #
214
+ # @see Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event#result
215
+ module Result
216
+ extend Lithic::Internal::Type::Enum
217
+
218
+ APPROVED = :APPROVED
219
+ DECLINED = :DECLINED
220
+
221
+ # @!method self.values
222
+ # @return [Array<Symbol>]
223
+ end
224
+
225
+ # @see Lithic::Models::AccountActivityListResponse::FinancialTransaction::Event#type
226
+ module Type
227
+ extend Lithic::Internal::Type::Enum
228
+
229
+ ACH_ORIGINATION_CANCELLED = :ACH_ORIGINATION_CANCELLED
230
+ ACH_ORIGINATION_INITIATED = :ACH_ORIGINATION_INITIATED
231
+ ACH_ORIGINATION_PROCESSED = :ACH_ORIGINATION_PROCESSED
232
+ ACH_ORIGINATION_RELEASED = :ACH_ORIGINATION_RELEASED
233
+ ACH_ORIGINATION_REVIEWED = :ACH_ORIGINATION_REVIEWED
234
+ ACH_ORIGINATION_SETTLED = :ACH_ORIGINATION_SETTLED
235
+ ACH_RECEIPT_PROCESSED = :ACH_RECEIPT_PROCESSED
236
+ ACH_RECEIPT_SETTLED = :ACH_RECEIPT_SETTLED
237
+ ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED
238
+ ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED
239
+ ACH_RETURN_SETTLED = :ACH_RETURN_SETTLED
240
+ AUTHORIZATION = :AUTHORIZATION
241
+ AUTHORIZATION_ADVICE = :AUTHORIZATION_ADVICE
242
+ AUTHORIZATION_EXPIRY = :AUTHORIZATION_EXPIRY
243
+ AUTHORIZATION_REVERSAL = :AUTHORIZATION_REVERSAL
244
+ BALANCE_INQUIRY = :BALANCE_INQUIRY
245
+ BILLING_ERROR = :BILLING_ERROR
246
+ BILLING_ERROR_REVERSAL = :BILLING_ERROR_REVERSAL
247
+ CARD_TO_CARD = :CARD_TO_CARD
248
+ CASH_BACK = :CASH_BACK
249
+ CASH_BACK_REVERSAL = :CASH_BACK_REVERSAL
250
+ CLEARING = :CLEARING
251
+ COLLECTION = :COLLECTION
252
+ CORRECTION_CREDIT = :CORRECTION_CREDIT
253
+ CORRECTION_DEBIT = :CORRECTION_DEBIT
254
+ CREDIT_AUTHORIZATION = :CREDIT_AUTHORIZATION
255
+ CREDIT_AUTHORIZATION_ADVICE = :CREDIT_AUTHORIZATION_ADVICE
256
+ CURRENCY_CONVERSION = :CURRENCY_CONVERSION
257
+ CURRENCY_CONVERSION_REVERSAL = :CURRENCY_CONVERSION_REVERSAL
258
+ DISPUTE_WON = :DISPUTE_WON
259
+ EXTERNAL_ACH_CANCELED = :EXTERNAL_ACH_CANCELED
260
+ EXTERNAL_ACH_INITIATED = :EXTERNAL_ACH_INITIATED
261
+ EXTERNAL_ACH_RELEASED = :EXTERNAL_ACH_RELEASED
262
+ EXTERNAL_ACH_REVERSED = :EXTERNAL_ACH_REVERSED
263
+ EXTERNAL_ACH_SETTLED = :EXTERNAL_ACH_SETTLED
264
+ EXTERNAL_CHECK_CANCELED = :EXTERNAL_CHECK_CANCELED
265
+ EXTERNAL_CHECK_INITIATED = :EXTERNAL_CHECK_INITIATED
266
+ EXTERNAL_CHECK_RELEASED = :EXTERNAL_CHECK_RELEASED
267
+ EXTERNAL_CHECK_REVERSED = :EXTERNAL_CHECK_REVERSED
268
+ EXTERNAL_CHECK_SETTLED = :EXTERNAL_CHECK_SETTLED
269
+ EXTERNAL_TRANSFER_CANCELED = :EXTERNAL_TRANSFER_CANCELED
270
+ EXTERNAL_TRANSFER_INITIATED = :EXTERNAL_TRANSFER_INITIATED
271
+ EXTERNAL_TRANSFER_RELEASED = :EXTERNAL_TRANSFER_RELEASED
272
+ EXTERNAL_TRANSFER_REVERSED = :EXTERNAL_TRANSFER_REVERSED
273
+ EXTERNAL_TRANSFER_SETTLED = :EXTERNAL_TRANSFER_SETTLED
274
+ EXTERNAL_WIRE_CANCELED = :EXTERNAL_WIRE_CANCELED
275
+ EXTERNAL_WIRE_INITIATED = :EXTERNAL_WIRE_INITIATED
276
+ EXTERNAL_WIRE_RELEASED = :EXTERNAL_WIRE_RELEASED
277
+ EXTERNAL_WIRE_REVERSED = :EXTERNAL_WIRE_REVERSED
278
+ EXTERNAL_WIRE_SETTLED = :EXTERNAL_WIRE_SETTLED
279
+ FINANCIAL_AUTHORIZATION = :FINANCIAL_AUTHORIZATION
280
+ FINANCIAL_CREDIT_AUTHORIZATION = :FINANCIAL_CREDIT_AUTHORIZATION
281
+ INTEREST = :INTEREST
282
+ INTEREST_REVERSAL = :INTEREST_REVERSAL
283
+ INTERNAL_ADJUSTMENT = :INTERNAL_ADJUSTMENT
284
+ LATE_PAYMENT = :LATE_PAYMENT
285
+ LATE_PAYMENT_REVERSAL = :LATE_PAYMENT_REVERSAL
286
+ LOSS_WRITE_OFF = :LOSS_WRITE_OFF
287
+ PROVISIONAL_CREDIT = :PROVISIONAL_CREDIT
288
+ PROVISIONAL_CREDIT_REVERSAL = :PROVISIONAL_CREDIT_REVERSAL
289
+ SERVICE = :SERVICE
290
+ RETURN = :RETURN
291
+ RETURN_REVERSAL = :RETURN_REVERSAL
292
+ TRANSFER = :TRANSFER
293
+ TRANSFER_INSUFFICIENT_FUNDS = :TRANSFER_INSUFFICIENT_FUNDS
294
+ RETURNED_PAYMENT = :RETURNED_PAYMENT
295
+ RETURNED_PAYMENT_REVERSAL = :RETURNED_PAYMENT_REVERSAL
296
+ LITHIC_NETWORK_PAYMENT = :LITHIC_NETWORK_PAYMENT
297
+
298
+ # @!method self.values
299
+ # @return [Array<Symbol>]
300
+ end
301
+ end
302
+
303
+ # @see Lithic::Models::AccountActivityListResponse::FinancialTransaction#family
304
+ module Family
305
+ extend Lithic::Internal::Type::Enum
306
+
307
+ CARD = :CARD
308
+ PAYMENT = :PAYMENT
309
+ TRANSFER = :TRANSFER
310
+ INTERNAL = :INTERNAL
311
+ EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT
312
+ MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION
313
+
314
+ # @!method self.values
315
+ # @return [Array<Symbol>]
316
+ end
317
+
318
+ # Transaction result
319
+ #
320
+ # @see Lithic::Models::AccountActivityListResponse::FinancialTransaction#result
321
+ module Result
322
+ extend Lithic::Internal::Type::Enum
323
+
324
+ APPROVED = :APPROVED
325
+ DECLINED = :DECLINED
326
+
327
+ # @!method self.values
328
+ # @return [Array<Symbol>]
329
+ end
330
+
331
+ # The status of the transaction
332
+ #
333
+ # @see Lithic::Models::AccountActivityListResponse::FinancialTransaction#status
334
+ module Status
335
+ extend Lithic::Internal::Type::Enum
336
+
337
+ PENDING = :PENDING
338
+ SETTLED = :SETTLED
339
+ DECLINED = :DECLINED
340
+ REVERSED = :REVERSED
341
+ CANCELED = :CANCELED
342
+
343
+ # @!method self.values
344
+ # @return [Array<Symbol>]
345
+ end
346
+ end
347
+
348
+ class BookTransferTransaction < Lithic::Internal::Type::BaseModel
349
+ # @!attribute token
350
+ # Unique identifier for the transaction
351
+ #
352
+ # @return [String]
353
+ required :token, String
354
+
355
+ # @!attribute category
356
+ #
357
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category]
358
+ required :category,
359
+ enum: -> { Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category }
360
+
361
+ # @!attribute created
362
+ # ISO 8601 timestamp of when the transaction was created
363
+ #
364
+ # @return [Time]
365
+ required :created, Time
366
+
367
+ # @!attribute currency
368
+ # Currency of the transaction in ISO 4217 format
369
+ #
370
+ # @return [String]
371
+ required :currency, String
372
+
373
+ # @!attribute events
374
+ # List of events associated with this book transfer
375
+ #
376
+ # @return [Array<Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event>]
377
+ required :events,
378
+ -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event] }
379
+
380
+ # @!attribute family
381
+ #
382
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Family]
383
+ required :family,
384
+ enum: -> { Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Family }
385
+
386
+ # @!attribute from_financial_account_token
387
+ # Source account token
388
+ #
389
+ # @return [String]
390
+ required :from_financial_account_token, String
391
+
392
+ # @!attribute pending_amount
393
+ # The pending amount of the transaction in cents
394
+ #
395
+ # @return [Integer]
396
+ required :pending_amount, Integer
397
+
398
+ # @!attribute result
399
+ #
400
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Result]
401
+ required :result,
402
+ enum: -> { Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Result }
403
+
404
+ # @!attribute settled_amount
405
+ # The settled amount of the transaction in cents
406
+ #
407
+ # @return [Integer]
408
+ required :settled_amount, Integer
409
+
410
+ # @!attribute status
411
+ # The status of the transaction
412
+ #
413
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Status]
414
+ required :status,
415
+ enum: -> { Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Status }
416
+
417
+ # @!attribute to_financial_account_token
418
+ # Destination account token
419
+ #
420
+ # @return [String]
421
+ required :to_financial_account_token, String
422
+
423
+ # @!attribute updated
424
+ # ISO 8601 timestamp of when the transaction was last updated
425
+ #
426
+ # @return [Time]
427
+ required :updated, Time
428
+
429
+ # @!attribute external_id
430
+ # External identifier for the transaction
431
+ #
432
+ # @return [String, nil]
433
+ optional :external_id, String
434
+
435
+ # @!attribute external_resource
436
+ # External resource associated with the management operation
437
+ #
438
+ # @return [Lithic::Models::ExternalResource, nil]
439
+ optional :external_resource, -> { Lithic::ExternalResource }, nil?: true
440
+
441
+ # @!attribute transaction_series
442
+ #
443
+ # @return [Lithic::Models::AccountActivityListResponse::BookTransferTransaction::TransactionSeries, nil]
444
+ optional :transaction_series,
445
+ -> { Lithic::Models::AccountActivityListResponse::BookTransferTransaction::TransactionSeries },
446
+ nil?: true
447
+
448
+ # @!method initialize(token:, category:, created:, currency:, events:, family:, from_financial_account_token:, pending_amount:, result:, settled_amount:, status:, to_financial_account_token:, updated:, external_id: nil, external_resource: nil, transaction_series: nil)
449
+ # Book transfer transaction
450
+ #
451
+ # @param token [String] Unique identifier for the transaction
452
+ #
453
+ # @param category [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Category]
454
+ #
455
+ # @param created [Time] ISO 8601 timestamp of when the transaction was created
456
+ #
457
+ # @param currency [String] Currency of the transaction in ISO 4217 format
458
+ #
459
+ # @param events [Array<Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event>] List of events associated with this book transfer
460
+ #
461
+ # @param family [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Family]
462
+ #
463
+ # @param from_financial_account_token [String] Source account token
464
+ #
465
+ # @param pending_amount [Integer] The pending amount of the transaction in cents
466
+ #
467
+ # @param result [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Result]
468
+ #
469
+ # @param settled_amount [Integer] The settled amount of the transaction in cents
470
+ #
471
+ # @param status [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Status] The status of the transaction
472
+ #
473
+ # @param to_financial_account_token [String] Destination account token
474
+ #
475
+ # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated
476
+ #
477
+ # @param external_id [String] External identifier for the transaction
478
+ #
479
+ # @param external_resource [Lithic::Models::ExternalResource, nil] External resource associated with the management operation
480
+ #
481
+ # @param transaction_series [Lithic::Models::AccountActivityListResponse::BookTransferTransaction::TransactionSeries, nil]
482
+
483
+ # @see Lithic::Models::AccountActivityListResponse::BookTransferTransaction#category
484
+ module Category
485
+ extend Lithic::Internal::Type::Enum
486
+
487
+ ACH = :ACH
488
+ BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING
489
+ CARD = :CARD
490
+ EXTERNAL_ACH = :EXTERNAL_ACH
491
+ EXTERNAL_CHECK = :EXTERNAL_CHECK
492
+ EXTERNAL_TRANSFER = :EXTERNAL_TRANSFER
493
+ EXTERNAL_WIRE = :EXTERNAL_WIRE
494
+ MANAGEMENT_ADJUSTMENT = :MANAGEMENT_ADJUSTMENT
495
+ MANAGEMENT_DISPUTE = :MANAGEMENT_DISPUTE
496
+ MANAGEMENT_FEE = :MANAGEMENT_FEE
497
+ MANAGEMENT_REWARD = :MANAGEMENT_REWARD
498
+ MANAGEMENT_DISBURSEMENT = :MANAGEMENT_DISBURSEMENT
499
+ PROGRAM_FUNDING = :PROGRAM_FUNDING
500
+
501
+ # @!method self.values
502
+ # @return [Array<Symbol>]
503
+ end
504
+
505
+ class Event < Lithic::Internal::Type::BaseModel
506
+ # @!attribute token
507
+ # Globally unique identifier.
508
+ #
509
+ # @return [String]
510
+ required :token, String
511
+
512
+ # @!attribute amount
513
+ # Amount of the financial event that has been settled in the currency's smallest
514
+ # unit (e.g., cents).
515
+ #
516
+ # @return [Integer]
517
+ required :amount, Integer
518
+
519
+ # @!attribute created
520
+ # Date and time when the financial event occurred. UTC time zone.
521
+ #
522
+ # @return [Time]
523
+ required :created, Time
524
+
525
+ # @!attribute detailed_results
526
+ #
527
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::DetailedResults]
528
+ required :detailed_results,
529
+ enum: -> { Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::DetailedResults }
530
+
531
+ # @!attribute memo
532
+ # Memo for the transfer.
533
+ #
534
+ # @return [String]
535
+ required :memo, String
536
+
537
+ # @!attribute result
538
+ # APPROVED financial events were successful while DECLINED financial events were
539
+ # declined by user, Lithic, or the network.
540
+ #
541
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Result]
542
+ required :result,
543
+ enum: -> { Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Result }
544
+
545
+ # @!attribute subtype
546
+ # The program specific subtype code for the specified category/type.
547
+ #
548
+ # @return [String]
549
+ required :subtype, String
550
+
551
+ # @!attribute type
552
+ # Type of the book transfer
553
+ #
554
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type]
555
+ required :type,
556
+ enum: -> { Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type }
557
+
558
+ # @!method initialize(token:, amount:, created:, detailed_results:, memo:, result:, subtype:, type:)
559
+ # Some parameter documentations has been truncated, see
560
+ # {Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event}
561
+ # for more details.
562
+ #
563
+ # Book transfer Event
564
+ #
565
+ # @param token [String] Globally unique identifier.
566
+ #
567
+ # @param amount [Integer] Amount of the financial event that has been settled in the currency's smallest u
568
+ #
569
+ # @param created [Time] Date and time when the financial event occurred. UTC time zone.
570
+ #
571
+ # @param detailed_results [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::DetailedResults]
572
+ #
573
+ # @param memo [String] Memo for the transfer.
574
+ #
575
+ # @param result [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Result] APPROVED financial events were successful while DECLINED financial events were d
576
+ #
577
+ # @param subtype [String] The program specific subtype code for the specified category/type.
578
+ #
579
+ # @param type [Symbol, Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event::Type] Type of the book transfer
580
+
581
+ # @see Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event#detailed_results
582
+ module DetailedResults
583
+ extend Lithic::Internal::Type::Enum
584
+
585
+ APPROVED = :APPROVED
586
+ FUNDS_INSUFFICIENT = :FUNDS_INSUFFICIENT
587
+
588
+ # @!method self.values
589
+ # @return [Array<Symbol>]
590
+ end
591
+
592
+ # APPROVED financial events were successful while DECLINED financial events were
593
+ # declined by user, Lithic, or the network.
594
+ #
595
+ # @see Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event#result
596
+ module Result
597
+ extend Lithic::Internal::Type::Enum
598
+
599
+ APPROVED = :APPROVED
600
+ DECLINED = :DECLINED
601
+
602
+ # @!method self.values
603
+ # @return [Array<Symbol>]
604
+ end
605
+
606
+ # Type of the book transfer
607
+ #
608
+ # @see Lithic::Models::AccountActivityListResponse::BookTransferTransaction::Event#type
609
+ module Type
610
+ extend Lithic::Internal::Type::Enum
611
+
612
+ ATM_WITHDRAWAL = :ATM_WITHDRAWAL
613
+ ATM_DECLINE = :ATM_DECLINE
614
+ INTERNATIONAL_ATM_WITHDRAWAL = :INTERNATIONAL_ATM_WITHDRAWAL
615
+ INACTIVITY = :INACTIVITY
616
+ STATEMENT = :STATEMENT
617
+ MONTHLY = :MONTHLY
618
+ QUARTERLY = :QUARTERLY
619
+ ANNUAL = :ANNUAL
620
+ CUSTOMER_SERVICE = :CUSTOMER_SERVICE
621
+ ACCOUNT_MAINTENANCE = :ACCOUNT_MAINTENANCE
622
+ ACCOUNT_ACTIVATION = :ACCOUNT_ACTIVATION
623
+ ACCOUNT_CLOSURE = :ACCOUNT_CLOSURE
624
+ CARD_REPLACEMENT = :CARD_REPLACEMENT
625
+ CARD_DELIVERY = :CARD_DELIVERY
626
+ CARD_CREATE = :CARD_CREATE
627
+ CURRENCY_CONVERSION = :CURRENCY_CONVERSION
628
+ INTEREST = :INTEREST
629
+ LATE_PAYMENT = :LATE_PAYMENT
630
+ BILL_PAYMENT = :BILL_PAYMENT
631
+ CASH_BACK = :CASH_BACK
632
+ ACCOUNT_TO_ACCOUNT = :ACCOUNT_TO_ACCOUNT
633
+ CARD_TO_CARD = :CARD_TO_CARD
634
+ DISBURSE = :DISBURSE
635
+ BILLING_ERROR = :BILLING_ERROR
636
+ LOSS_WRITE_OFF = :LOSS_WRITE_OFF
637
+ EXPIRED_CARD = :EXPIRED_CARD
638
+ EARLY_DERECOGNITION = :EARLY_DERECOGNITION
639
+ ESCHEATMENT = :ESCHEATMENT
640
+ INACTIVITY_FEE_DOWN = :INACTIVITY_FEE_DOWN
641
+ PROVISIONAL_CREDIT = :PROVISIONAL_CREDIT
642
+ DISPUTE_WON = :DISPUTE_WON
643
+ SERVICE = :SERVICE
644
+ TRANSFER = :TRANSFER
645
+ COLLECTION = :COLLECTION
646
+
647
+ # @!method self.values
648
+ # @return [Array<Symbol>]
649
+ end
650
+ end
651
+
652
+ # @see Lithic::Models::AccountActivityListResponse::BookTransferTransaction#family
653
+ module Family
654
+ extend Lithic::Internal::Type::Enum
655
+
656
+ CARD = :CARD
657
+ PAYMENT = :PAYMENT
658
+ TRANSFER = :TRANSFER
659
+ INTERNAL = :INTERNAL
660
+ EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT
661
+ MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION
662
+
663
+ # @!method self.values
664
+ # @return [Array<Symbol>]
665
+ end
666
+
667
+ # @see Lithic::Models::AccountActivityListResponse::BookTransferTransaction#result
668
+ module Result
669
+ extend Lithic::Internal::Type::Enum
670
+
671
+ APPROVED = :APPROVED
672
+ DECLINED = :DECLINED
673
+
674
+ # @!method self.values
675
+ # @return [Array<Symbol>]
676
+ end
677
+
678
+ # The status of the transaction
679
+ #
680
+ # @see Lithic::Models::AccountActivityListResponse::BookTransferTransaction#status
681
+ module Status
682
+ extend Lithic::Internal::Type::Enum
683
+
684
+ PENDING = :PENDING
685
+ SETTLED = :SETTLED
686
+ DECLINED = :DECLINED
687
+ REVERSED = :REVERSED
688
+ CANCELED = :CANCELED
689
+
690
+ # @!method self.values
691
+ # @return [Array<Symbol>]
692
+ end
693
+
694
+ # @see Lithic::Models::AccountActivityListResponse::BookTransferTransaction#transaction_series
695
+ class TransactionSeries < Lithic::Internal::Type::BaseModel
696
+ # @!attribute related_transaction_event_token
697
+ #
698
+ # @return [String, nil]
699
+ required :related_transaction_event_token, String, nil?: true
700
+
701
+ # @!attribute related_transaction_token
702
+ #
703
+ # @return [String, nil]
704
+ required :related_transaction_token, String, nil?: true
705
+
706
+ # @!attribute type
707
+ #
708
+ # @return [String]
709
+ required :type, String
710
+
711
+ # @!method initialize(related_transaction_event_token:, related_transaction_token:, type:)
712
+ # @param related_transaction_event_token [String, nil]
713
+ # @param related_transaction_token [String, nil]
714
+ # @param type [String]
715
+ end
716
+ end
717
+
718
+ class CardTransaction < Lithic::Models::Transaction
719
+ # @!attribute token
720
+ # Unique identifier for the transaction
721
+ #
722
+ # @return [String]
723
+ required :token, String
724
+
725
+ # @!attribute created
726
+ # ISO 8601 timestamp of when the transaction was created
727
+ #
728
+ # @return [Time]
729
+ required :created, Time
730
+
731
+ # @!attribute family
732
+ #
733
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::CardTransaction::Family]
734
+ required :family, enum: -> { Lithic::Models::AccountActivityListResponse::CardTransaction::Family }
735
+
736
+ # @!attribute status
737
+ # The status of the transaction
738
+ #
739
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::CardTransaction::Status]
740
+ required :status, enum: -> { Lithic::Models::AccountActivityListResponse::CardTransaction::Status }
741
+
742
+ # @!attribute updated
743
+ # ISO 8601 timestamp of when the transaction was last updated
744
+ #
745
+ # @return [Time]
746
+ required :updated, Time
747
+
748
+ # @!method initialize(token:, created:, family:, status:, updated:)
749
+ # Base class for all transaction types in the ledger service
750
+ #
751
+ # @param token [String] Unique identifier for the transaction
752
+ #
753
+ # @param created [Time] ISO 8601 timestamp of when the transaction was created
754
+ #
755
+ # @param family [Symbol, Lithic::Models::AccountActivityListResponse::CardTransaction::Family]
756
+ #
757
+ # @param status [Symbol, Lithic::Models::AccountActivityListResponse::CardTransaction::Status] The status of the transaction
758
+ #
759
+ # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated
760
+
761
+ module Family
762
+ extend Lithic::Internal::Type::Enum
763
+
764
+ CARD = :CARD
765
+ PAYMENT = :PAYMENT
766
+ TRANSFER = :TRANSFER
767
+ INTERNAL = :INTERNAL
768
+ EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT
769
+ MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION
770
+
771
+ # @!method self.values
772
+ # @return [Array<Symbol>]
773
+ end
774
+
775
+ # The status of the transaction
776
+ module Status
777
+ extend Lithic::Internal::Type::Enum
778
+
779
+ PENDING = :PENDING
780
+ SETTLED = :SETTLED
781
+ DECLINED = :DECLINED
782
+ REVERSED = :REVERSED
783
+ CANCELED = :CANCELED
784
+
785
+ # @!method self.values
786
+ # @return [Array<Symbol>]
787
+ end
788
+ end
789
+
790
+ class PaymentTransaction < Lithic::Internal::Type::BaseModel
791
+ # @!attribute token
792
+ # Unique identifier for the transaction
793
+ #
794
+ # @return [String]
795
+ required :token, String
796
+
797
+ # @!attribute category
798
+ # Transaction category
799
+ #
800
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category]
801
+ required :category, enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category }
802
+
803
+ # @!attribute created
804
+ # ISO 8601 timestamp of when the transaction was created
805
+ #
806
+ # @return [Time]
807
+ required :created, Time
808
+
809
+ # @!attribute descriptor
810
+ # Transaction descriptor
811
+ #
812
+ # @return [String]
813
+ required :descriptor, String
814
+
815
+ # @!attribute direction
816
+ # Transfer direction
817
+ #
818
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Direction]
819
+ required :direction,
820
+ enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::Direction }
821
+
822
+ # @!attribute events
823
+ # List of transaction events
824
+ #
825
+ # @return [Array<Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event>]
826
+ required :events,
827
+ -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event] }
828
+
829
+ # @!attribute family
830
+ #
831
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Family]
832
+ required :family, enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::Family }
833
+
834
+ # @!attribute financial_account_token
835
+ # Financial account token
836
+ #
837
+ # @return [String]
838
+ required :financial_account_token, String
839
+
840
+ # @!attribute method_
841
+ # Transfer method
842
+ #
843
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Method]
844
+ required :method_,
845
+ enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::Method },
846
+ api_name: :method
847
+
848
+ # @!attribute method_attributes
849
+ # Method-specific attributes
850
+ #
851
+ # @return [Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes, Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes]
852
+ required :method_attributes,
853
+ union: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes }
854
+
855
+ # @!attribute pending_amount
856
+ # Pending amount in cents
857
+ #
858
+ # @return [Integer]
859
+ required :pending_amount, Integer
860
+
861
+ # @!attribute related_account_tokens
862
+ # Related account tokens for the transaction
863
+ #
864
+ # @return [Lithic::Models::AccountActivityListResponse::PaymentTransaction::RelatedAccountTokens]
865
+ required :related_account_tokens,
866
+ -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::RelatedAccountTokens }
867
+
868
+ # @!attribute result
869
+ # Transaction result
870
+ #
871
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Result]
872
+ required :result, enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::Result }
873
+
874
+ # @!attribute settled_amount
875
+ # Settled amount in cents
876
+ #
877
+ # @return [Integer]
878
+ required :settled_amount, Integer
879
+
880
+ # @!attribute source
881
+ # Transaction source
882
+ #
883
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Source]
884
+ required :source, enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::Source }
885
+
886
+ # @!attribute status
887
+ # The status of the transaction
888
+ #
889
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Status]
890
+ required :status, enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::Status }
891
+
892
+ # @!attribute updated
893
+ # ISO 8601 timestamp of when the transaction was last updated
894
+ #
895
+ # @return [Time]
896
+ required :updated, Time
897
+
898
+ # @!attribute currency
899
+ # Currency of the transaction in ISO 4217 format
900
+ #
901
+ # @return [String, nil]
902
+ optional :currency, String
903
+
904
+ # @!attribute expected_release_date
905
+ # Expected release date for the transaction
906
+ #
907
+ # @return [Date, nil]
908
+ optional :expected_release_date, Date, nil?: true
909
+
910
+ # @!attribute external_bank_account_token
911
+ # External bank account token
912
+ #
913
+ # @return [String, nil]
914
+ optional :external_bank_account_token, String, nil?: true
915
+
916
+ # @!attribute type
917
+ #
918
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Type, nil]
919
+ optional :type, enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::Type }
920
+
921
+ # @!attribute user_defined_id
922
+ # User-defined identifier
923
+ #
924
+ # @return [String, nil]
925
+ optional :user_defined_id, String, nil?: true
926
+
927
+ # @!method initialize(token:, category:, created:, descriptor:, direction:, events:, family:, financial_account_token:, method_:, method_attributes:, pending_amount:, related_account_tokens:, result:, settled_amount:, source:, status:, updated:, currency: nil, expected_release_date: nil, external_bank_account_token: nil, type: nil, user_defined_id: nil)
928
+ # Payment transaction
929
+ #
930
+ # @param token [String] Unique identifier for the transaction
931
+ #
932
+ # @param category [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Category] Transaction category
933
+ #
934
+ # @param created [Time] ISO 8601 timestamp of when the transaction was created
935
+ #
936
+ # @param descriptor [String] Transaction descriptor
937
+ #
938
+ # @param direction [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Direction] Transfer direction
939
+ #
940
+ # @param events [Array<Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event>] List of transaction events
941
+ #
942
+ # @param family [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Family]
943
+ #
944
+ # @param financial_account_token [String] Financial account token
945
+ #
946
+ # @param method_ [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Method] Transfer method
947
+ #
948
+ # @param method_attributes [Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes, Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes] Method-specific attributes
949
+ #
950
+ # @param pending_amount [Integer] Pending amount in cents
951
+ #
952
+ # @param related_account_tokens [Lithic::Models::AccountActivityListResponse::PaymentTransaction::RelatedAccountTokens] Related account tokens for the transaction
953
+ #
954
+ # @param result [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Result] Transaction result
955
+ #
956
+ # @param settled_amount [Integer] Settled amount in cents
957
+ #
958
+ # @param source [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Source] Transaction source
959
+ #
960
+ # @param status [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Status] The status of the transaction
961
+ #
962
+ # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated
963
+ #
964
+ # @param currency [String] Currency of the transaction in ISO 4217 format
965
+ #
966
+ # @param expected_release_date [Date, nil] Expected release date for the transaction
967
+ #
968
+ # @param external_bank_account_token [String, nil] External bank account token
969
+ #
970
+ # @param type [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Type]
971
+ #
972
+ # @param user_defined_id [String, nil] User-defined identifier
973
+
974
+ # Transaction category
975
+ #
976
+ # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction#category
977
+ module Category
978
+ extend Lithic::Internal::Type::Enum
979
+
980
+ ACH = :ACH
981
+ BALANCE_OR_FUNDING = :BALANCE_OR_FUNDING
982
+ CARD = :CARD
983
+ EXTERNAL_ACH = :EXTERNAL_ACH
984
+ EXTERNAL_CHECK = :EXTERNAL_CHECK
985
+ EXTERNAL_TRANSFER = :EXTERNAL_TRANSFER
986
+ EXTERNAL_WIRE = :EXTERNAL_WIRE
987
+ MANAGEMENT_ADJUSTMENT = :MANAGEMENT_ADJUSTMENT
988
+ MANAGEMENT_DISPUTE = :MANAGEMENT_DISPUTE
989
+ MANAGEMENT_FEE = :MANAGEMENT_FEE
990
+ MANAGEMENT_REWARD = :MANAGEMENT_REWARD
991
+ MANAGEMENT_DISBURSEMENT = :MANAGEMENT_DISBURSEMENT
992
+ PROGRAM_FUNDING = :PROGRAM_FUNDING
993
+
994
+ # @!method self.values
995
+ # @return [Array<Symbol>]
996
+ end
997
+
998
+ # Transfer direction
999
+ #
1000
+ # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction#direction
1001
+ module Direction
1002
+ extend Lithic::Internal::Type::Enum
1003
+
1004
+ CREDIT = :CREDIT
1005
+ DEBIT = :DEBIT
1006
+
1007
+ # @!method self.values
1008
+ # @return [Array<Symbol>]
1009
+ end
1010
+
1011
+ class Event < Lithic::Internal::Type::BaseModel
1012
+ # @!attribute token
1013
+ # Globally unique identifier.
1014
+ #
1015
+ # @return [String]
1016
+ required :token, String
1017
+
1018
+ # @!attribute amount
1019
+ # Amount of the financial event that has been settled in the currency's smallest
1020
+ # unit (e.g., cents).
1021
+ #
1022
+ # @return [Integer]
1023
+ required :amount, Integer
1024
+
1025
+ # @!attribute created
1026
+ # Date and time when the financial event occurred. UTC time zone.
1027
+ #
1028
+ # @return [Time]
1029
+ required :created, Time
1030
+
1031
+ # @!attribute result
1032
+ # APPROVED financial events were successful while DECLINED financial events were
1033
+ # declined by user, Lithic, or the network.
1034
+ #
1035
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Result]
1036
+ required :result,
1037
+ enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Result }
1038
+
1039
+ # @!attribute type
1040
+ # Event types:
1041
+ #
1042
+ # - `ACH_ORIGINATION_INITIATED` - ACH origination received and pending
1043
+ # approval/release from an ACH hold.
1044
+ # - `ACH_ORIGINATION_REVIEWED` - ACH origination has completed the review process.
1045
+ # - `ACH_ORIGINATION_CANCELLED` - ACH origination has been cancelled.
1046
+ # - `ACH_ORIGINATION_PROCESSED` - ACH origination has been processed and sent to
1047
+ # the Federal Reserve.
1048
+ # - `ACH_ORIGINATION_SETTLED` - ACH origination has settled.
1049
+ # - `ACH_ORIGINATION_RELEASED` - ACH origination released from pending to
1050
+ # available balance.
1051
+ # - `ACH_RETURN_PROCESSED` - ACH origination returned by the Receiving Depository
1052
+ # Financial Institution.
1053
+ # - `ACH_RECEIPT_PROCESSED` - ACH receipt pending release from an ACH holder.
1054
+ # - `ACH_RETURN_INITIATED` - ACH initiated return for a ACH receipt.
1055
+ # - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled.
1056
+ # - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available
1057
+ # balance.
1058
+ # - `ACH_RETURN_SETTLED` - ACH receipt return settled by the Receiving Depository
1059
+ # Financial Institution.
1060
+ #
1061
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type]
1062
+ required :type, enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type }
1063
+
1064
+ # @!attribute detailed_results
1065
+ # More detailed reasons for the event
1066
+ #
1067
+ # @return [Array<Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::DetailedResult>, nil]
1068
+ optional :detailed_results,
1069
+ -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::DetailedResult] }
1070
+
1071
+ # @!method initialize(token:, amount:, created:, result:, type:, detailed_results: nil)
1072
+ # Some parameter documentations has been truncated, see
1073
+ # {Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event} for
1074
+ # more details.
1075
+ #
1076
+ # Payment Event
1077
+ #
1078
+ # @param token [String] Globally unique identifier.
1079
+ #
1080
+ # @param amount [Integer] Amount of the financial event that has been settled in the currency's smallest u
1081
+ #
1082
+ # @param created [Time] Date and time when the financial event occurred. UTC time zone.
1083
+ #
1084
+ # @param result [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Result] APPROVED financial events were successful while DECLINED financial events were d
1085
+ #
1086
+ # @param type [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::Type] Event types:
1087
+ #
1088
+ # @param detailed_results [Array<Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event::DetailedResult>] More detailed reasons for the event
1089
+
1090
+ # APPROVED financial events were successful while DECLINED financial events were
1091
+ # declined by user, Lithic, or the network.
1092
+ #
1093
+ # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event#result
1094
+ module Result
1095
+ extend Lithic::Internal::Type::Enum
1096
+
1097
+ APPROVED = :APPROVED
1098
+ DECLINED = :DECLINED
1099
+
1100
+ # @!method self.values
1101
+ # @return [Array<Symbol>]
1102
+ end
1103
+
1104
+ # Event types:
1105
+ #
1106
+ # - `ACH_ORIGINATION_INITIATED` - ACH origination received and pending
1107
+ # approval/release from an ACH hold.
1108
+ # - `ACH_ORIGINATION_REVIEWED` - ACH origination has completed the review process.
1109
+ # - `ACH_ORIGINATION_CANCELLED` - ACH origination has been cancelled.
1110
+ # - `ACH_ORIGINATION_PROCESSED` - ACH origination has been processed and sent to
1111
+ # the Federal Reserve.
1112
+ # - `ACH_ORIGINATION_SETTLED` - ACH origination has settled.
1113
+ # - `ACH_ORIGINATION_RELEASED` - ACH origination released from pending to
1114
+ # available balance.
1115
+ # - `ACH_RETURN_PROCESSED` - ACH origination returned by the Receiving Depository
1116
+ # Financial Institution.
1117
+ # - `ACH_RECEIPT_PROCESSED` - ACH receipt pending release from an ACH holder.
1118
+ # - `ACH_RETURN_INITIATED` - ACH initiated return for a ACH receipt.
1119
+ # - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled.
1120
+ # - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available
1121
+ # balance.
1122
+ # - `ACH_RETURN_SETTLED` - ACH receipt return settled by the Receiving Depository
1123
+ # Financial Institution.
1124
+ #
1125
+ # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction::Event#type
1126
+ module Type
1127
+ extend Lithic::Internal::Type::Enum
1128
+
1129
+ ACH_ORIGINATION_CANCELLED = :ACH_ORIGINATION_CANCELLED
1130
+ ACH_ORIGINATION_INITIATED = :ACH_ORIGINATION_INITIATED
1131
+ ACH_ORIGINATION_PROCESSED = :ACH_ORIGINATION_PROCESSED
1132
+ ACH_ORIGINATION_SETTLED = :ACH_ORIGINATION_SETTLED
1133
+ ACH_ORIGINATION_RELEASED = :ACH_ORIGINATION_RELEASED
1134
+ ACH_ORIGINATION_REVIEWED = :ACH_ORIGINATION_REVIEWED
1135
+ ACH_RECEIPT_PROCESSED = :ACH_RECEIPT_PROCESSED
1136
+ ACH_RECEIPT_SETTLED = :ACH_RECEIPT_SETTLED
1137
+ ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED
1138
+ ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED
1139
+ ACH_RETURN_SETTLED = :ACH_RETURN_SETTLED
1140
+
1141
+ # @!method self.values
1142
+ # @return [Array<Symbol>]
1143
+ end
1144
+
1145
+ module DetailedResult
1146
+ extend Lithic::Internal::Type::Enum
1147
+
1148
+ APPROVED = :APPROVED
1149
+ FUNDS_INSUFFICIENT = :FUNDS_INSUFFICIENT
1150
+ ACCOUNT_INVALID = :ACCOUNT_INVALID
1151
+ PROGRAM_TRANSACTION_LIMIT_EXCEEDED = :PROGRAM_TRANSACTION_LIMIT_EXCEEDED
1152
+ PROGRAM_DAILY_LIMIT_EXCEEDED = :PROGRAM_DAILY_LIMIT_EXCEEDED
1153
+ PROGRAM_MONTHLY_LIMIT_EXCEEDED = :PROGRAM_MONTHLY_LIMIT_EXCEEDED
1154
+
1155
+ # @!method self.values
1156
+ # @return [Array<Symbol>]
1157
+ end
1158
+ end
1159
+
1160
+ # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction#family
1161
+ module Family
1162
+ extend Lithic::Internal::Type::Enum
1163
+
1164
+ CARD = :CARD
1165
+ PAYMENT = :PAYMENT
1166
+ TRANSFER = :TRANSFER
1167
+ INTERNAL = :INTERNAL
1168
+ EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT
1169
+ MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION
1170
+
1171
+ # @!method self.values
1172
+ # @return [Array<Symbol>]
1173
+ end
1174
+
1175
+ # Transfer method
1176
+ #
1177
+ # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction#method_
1178
+ module Method
1179
+ extend Lithic::Internal::Type::Enum
1180
+
1181
+ ACH_NEXT_DAY = :ACH_NEXT_DAY
1182
+ ACH_SAME_DAY = :ACH_SAME_DAY
1183
+ WIRE = :WIRE
1184
+
1185
+ # @!method self.values
1186
+ # @return [Array<Symbol>]
1187
+ end
1188
+
1189
+ # Method-specific attributes
1190
+ #
1191
+ # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction#method_attributes
1192
+ module MethodAttributes
1193
+ extend Lithic::Internal::Type::Union
1194
+
1195
+ variant -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes }
1196
+
1197
+ variant -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes }
1198
+
1199
+ class ACHMethodAttributes < Lithic::Internal::Type::BaseModel
1200
+ # @!attribute sec_code
1201
+ # SEC code for ACH transaction
1202
+ #
1203
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode]
1204
+ required :sec_code,
1205
+ enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode }
1206
+
1207
+ # @!attribute addenda
1208
+ # Addenda information
1209
+ #
1210
+ # @return [String, nil]
1211
+ optional :addenda, String, nil?: true
1212
+
1213
+ # @!attribute company_id
1214
+ # Company ID for the ACH transaction
1215
+ #
1216
+ # @return [String, nil]
1217
+ optional :company_id, String, nil?: true
1218
+
1219
+ # @!attribute receipt_routing_number
1220
+ # Receipt routing number
1221
+ #
1222
+ # @return [String, nil]
1223
+ optional :receipt_routing_number, String, nil?: true
1224
+
1225
+ # @!attribute retries
1226
+ # Number of retries attempted
1227
+ #
1228
+ # @return [Integer, nil]
1229
+ optional :retries, Integer, nil?: true
1230
+
1231
+ # @!attribute return_reason_code
1232
+ # Return reason code if the transaction was returned
1233
+ #
1234
+ # @return [String, nil]
1235
+ optional :return_reason_code, String, nil?: true
1236
+
1237
+ # @!attribute trace_numbers
1238
+ # Trace numbers for the ACH transaction
1239
+ #
1240
+ # @return [Array<String>, nil]
1241
+ optional :trace_numbers, Lithic::Internal::Type::ArrayOf[String]
1242
+
1243
+ # @!method initialize(sec_code:, addenda: nil, company_id: nil, receipt_routing_number: nil, retries: nil, return_reason_code: nil, trace_numbers: nil)
1244
+ # @param sec_code [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes::SecCode] SEC code for ACH transaction
1245
+ #
1246
+ # @param addenda [String, nil] Addenda information
1247
+ #
1248
+ # @param company_id [String, nil] Company ID for the ACH transaction
1249
+ #
1250
+ # @param receipt_routing_number [String, nil] Receipt routing number
1251
+ #
1252
+ # @param retries [Integer, nil] Number of retries attempted
1253
+ #
1254
+ # @param return_reason_code [String, nil] Return reason code if the transaction was returned
1255
+ #
1256
+ # @param trace_numbers [Array<String>] Trace numbers for the ACH transaction
1257
+
1258
+ # SEC code for ACH transaction
1259
+ #
1260
+ # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes#sec_code
1261
+ module SecCode
1262
+ extend Lithic::Internal::Type::Enum
1263
+
1264
+ CCD = :CCD
1265
+ PPD = :PPD
1266
+ WEB = :WEB
1267
+ TEL = :TEL
1268
+ CIE = :CIE
1269
+ CTX = :CTX
1270
+
1271
+ # @!method self.values
1272
+ # @return [Array<Symbol>]
1273
+ end
1274
+ end
1275
+
1276
+ class WireMethodAttributes < Lithic::Internal::Type::BaseModel
1277
+ # @!attribute wire_network
1278
+ # Type of wire transfer
1279
+ #
1280
+ # @return [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork]
1281
+ required :wire_network,
1282
+ enum: -> { Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork }
1283
+
1284
+ # @!attribute creditor
1285
+ #
1286
+ # @return [Lithic::Models::WirePartyDetails, nil]
1287
+ optional :creditor, -> { Lithic::WirePartyDetails }
1288
+
1289
+ # @!attribute debtor
1290
+ #
1291
+ # @return [Lithic::Models::WirePartyDetails, nil]
1292
+ optional :debtor, -> { Lithic::WirePartyDetails }
1293
+
1294
+ # @!attribute message_id
1295
+ # Point to point reference identifier, as assigned by the instructing party, used
1296
+ # for tracking the message through the Fedwire system
1297
+ #
1298
+ # @return [String, nil]
1299
+ optional :message_id, String, nil?: true
1300
+
1301
+ # @!attribute remittance_information
1302
+ # Payment details or invoice reference
1303
+ #
1304
+ # @return [String, nil]
1305
+ optional :remittance_information, String, nil?: true
1306
+
1307
+ # @!attribute wire_message_type
1308
+ # Type of wire message
1309
+ #
1310
+ # @return [String, nil]
1311
+ optional :wire_message_type, String
1312
+
1313
+ # @!method initialize(wire_network:, creditor: nil, debtor: nil, message_id: nil, remittance_information: nil, wire_message_type: nil)
1314
+ # Some parameter documentations has been truncated, see
1315
+ # {Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes}
1316
+ # for more details.
1317
+ #
1318
+ # @param wire_network [Symbol, Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes::WireNetwork] Type of wire transfer
1319
+ #
1320
+ # @param creditor [Lithic::Models::WirePartyDetails]
1321
+ #
1322
+ # @param debtor [Lithic::Models::WirePartyDetails]
1323
+ #
1324
+ # @param message_id [String, nil] Point to point reference identifier, as assigned by the instructing party, used
1325
+ #
1326
+ # @param remittance_information [String, nil] Payment details or invoice reference
1327
+ #
1328
+ # @param wire_message_type [String] Type of wire message
1329
+
1330
+ # Type of wire transfer
1331
+ #
1332
+ # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes#wire_network
1333
+ module WireNetwork
1334
+ extend Lithic::Internal::Type::Enum
1335
+
1336
+ FEDWIRE = :FEDWIRE
1337
+ SWIFT = :SWIFT
1338
+
1339
+ # @!method self.values
1340
+ # @return [Array<Symbol>]
1341
+ end
1342
+ end
1343
+
1344
+ # @!method self.variants
1345
+ # @return [Array(Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::ACHMethodAttributes, Lithic::Models::AccountActivityListResponse::PaymentTransaction::MethodAttributes::WireMethodAttributes)]
1346
+ end
1347
+
1348
+ # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction#related_account_tokens
1349
+ class RelatedAccountTokens < Lithic::Internal::Type::BaseModel
1350
+ # @!attribute account_token
1351
+ # Globally unique identifier for the account
1352
+ #
1353
+ # @return [String, nil]
1354
+ required :account_token, String, nil?: true
1355
+
1356
+ # @!attribute business_account_token
1357
+ # Globally unique identifier for the business account
1358
+ #
1359
+ # @return [String, nil]
1360
+ required :business_account_token, String, nil?: true
1361
+
1362
+ # @!method initialize(account_token:, business_account_token:)
1363
+ # Related account tokens for the transaction
1364
+ #
1365
+ # @param account_token [String, nil] Globally unique identifier for the account
1366
+ #
1367
+ # @param business_account_token [String, nil] Globally unique identifier for the business account
1368
+ end
1369
+
1370
+ # Transaction result
1371
+ #
1372
+ # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction#result
1373
+ module Result
1374
+ extend Lithic::Internal::Type::Enum
1375
+
1376
+ APPROVED = :APPROVED
1377
+ DECLINED = :DECLINED
1378
+
1379
+ # @!method self.values
1380
+ # @return [Array<Symbol>]
1381
+ end
1382
+
1383
+ # Transaction source
1384
+ #
1385
+ # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction#source
1386
+ module Source
1387
+ extend Lithic::Internal::Type::Enum
1388
+
1389
+ LITHIC = :LITHIC
1390
+ EXTERNAL = :EXTERNAL
1391
+ CUSTOMER = :CUSTOMER
1392
+
1393
+ # @!method self.values
1394
+ # @return [Array<Symbol>]
1395
+ end
1396
+
1397
+ # The status of the transaction
1398
+ #
1399
+ # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction#status
1400
+ module Status
1401
+ extend Lithic::Internal::Type::Enum
1402
+
1403
+ PENDING = :PENDING
1404
+ SETTLED = :SETTLED
1405
+ DECLINED = :DECLINED
1406
+ REVERSED = :REVERSED
1407
+ CANCELED = :CANCELED
1408
+
1409
+ # @!method self.values
1410
+ # @return [Array<Symbol>]
1411
+ end
1412
+
1413
+ # @see Lithic::Models::AccountActivityListResponse::PaymentTransaction#type
1414
+ module Type
1415
+ extend Lithic::Internal::Type::Enum
1416
+
1417
+ ORIGINATION_CREDIT = :ORIGINATION_CREDIT
1418
+ ORIGINATION_DEBIT = :ORIGINATION_DEBIT
1419
+ RECEIPT_CREDIT = :RECEIPT_CREDIT
1420
+ RECEIPT_DEBIT = :RECEIPT_DEBIT
1421
+ WIRE_INBOUND_PAYMENT = :WIRE_INBOUND_PAYMENT
1422
+ WIRE_INBOUND_ADMIN = :WIRE_INBOUND_ADMIN
1423
+ WIRE_OUTBOUND_PAYMENT = :WIRE_OUTBOUND_PAYMENT
1424
+ WIRE_OUTBOUND_ADMIN = :WIRE_OUTBOUND_ADMIN
1425
+
1426
+ # @!method self.values
1427
+ # @return [Array<Symbol>]
1428
+ end
1429
+ end
1430
+
1431
+ # @!method self.variants
1432
+ # @return [Array(Lithic::Models::AccountActivityListResponse::FinancialTransaction, Lithic::Models::AccountActivityListResponse::BookTransferTransaction, Lithic::Models::AccountActivityListResponse::CardTransaction, Lithic::Models::AccountActivityListResponse::PaymentTransaction, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction)]
1433
+ end
1434
+ end
1435
+ end