lithic 0.1.0.pre.alpha.39 → 0.1.0.pre.alpha.41

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