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
@@ -5,85 +5,139 @@ module Lithic
5
5
  # @see Lithic::Resources::ExternalPayments#create
6
6
  class ExternalPayment < Lithic::Internal::Type::BaseModel
7
7
  # @!attribute token
8
+ # Unique identifier for the transaction
8
9
  #
9
10
  # @return [String]
10
11
  required :token, String
11
12
 
12
- # @!attribute category
13
- #
14
- # @return [Symbol, Lithic::Models::ExternalPayment::Category]
15
- required :category, enum: -> { Lithic::ExternalPayment::Category }
16
-
17
13
  # @!attribute created
14
+ # ISO 8601 timestamp of when the transaction was created
18
15
  #
19
16
  # @return [Time]
20
17
  required :created, Time
21
18
 
19
+ # @!attribute family
20
+ #
21
+ # @return [Symbol, Lithic::Models::ExternalPayment::Family]
22
+ required :family, enum: -> { Lithic::ExternalPayment::Family }
23
+
24
+ # @!attribute status
25
+ # The status of the transaction
26
+ #
27
+ # @return [Symbol, Lithic::Models::ExternalPayment::Status]
28
+ required :status, enum: -> { Lithic::ExternalPayment::Status }
29
+
30
+ # @!attribute updated
31
+ # ISO 8601 timestamp of when the transaction was last updated
32
+ #
33
+ # @return [Time]
34
+ required :updated, Time
35
+
36
+ # @!attribute category
37
+ #
38
+ # @return [Symbol, Lithic::Models::ExternalPayment::Category, nil]
39
+ optional :category, enum: -> { Lithic::ExternalPayment::Category }
40
+
22
41
  # @!attribute currency
23
42
  #
24
- # @return [String]
25
- required :currency, String
43
+ # @return [String, nil]
44
+ optional :currency, String
26
45
 
27
46
  # @!attribute events
28
47
  #
29
- # @return [Array<Lithic::Models::ExternalPayment::Event>]
30
- required :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::ExternalPayment::Event] }
48
+ # @return [Array<Lithic::Models::ExternalPayment::Event>, nil]
49
+ optional :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::ExternalPayment::Event] }
31
50
 
32
51
  # @!attribute financial_account_token
33
52
  #
34
- # @return [String]
35
- required :financial_account_token, String
53
+ # @return [String, nil]
54
+ optional :financial_account_token, String
36
55
 
37
56
  # @!attribute payment_type
38
57
  #
39
- # @return [Symbol, Lithic::Models::ExternalPayment::PaymentType]
40
- required :payment_type, enum: -> { Lithic::ExternalPayment::PaymentType }
58
+ # @return [Symbol, Lithic::Models::ExternalPayment::PaymentType, nil]
59
+ optional :payment_type, enum: -> { Lithic::ExternalPayment::PaymentType }
41
60
 
42
61
  # @!attribute pending_amount
43
62
  #
44
- # @return [Integer]
45
- required :pending_amount, Integer
63
+ # @return [Integer, nil]
64
+ optional :pending_amount, Integer
46
65
 
47
66
  # @!attribute result
48
67
  #
49
- # @return [Symbol, Lithic::Models::ExternalPayment::Result]
50
- required :result, enum: -> { Lithic::ExternalPayment::Result }
68
+ # @return [Symbol, Lithic::Models::ExternalPayment::Result, nil]
69
+ optional :result, enum: -> { Lithic::ExternalPayment::Result }
51
70
 
52
71
  # @!attribute settled_amount
53
72
  #
54
- # @return [Integer]
55
- required :settled_amount, Integer
56
-
57
- # @!attribute status
58
- #
59
- # @return [Symbol, Lithic::Models::ExternalPayment::Status]
60
- required :status, enum: -> { Lithic::ExternalPayment::Status }
61
-
62
- # @!attribute updated
63
- #
64
- # @return [Time]
65
- required :updated, Time
73
+ # @return [Integer, nil]
74
+ optional :settled_amount, Integer
66
75
 
67
76
  # @!attribute user_defined_id
68
77
  #
69
78
  # @return [String, nil]
70
79
  optional :user_defined_id, String
71
80
 
72
- # @!method initialize(token:, category:, created:, currency:, events:, financial_account_token:, payment_type:, pending_amount:, result:, settled_amount:, status:, updated:, user_defined_id: nil)
73
- # @param token [String]
81
+ # @!method initialize(token:, created:, family:, status:, updated:, category: nil, currency: nil, events: nil, financial_account_token: nil, payment_type: nil, pending_amount: nil, result: nil, settled_amount: nil, user_defined_id: nil)
82
+ # @param token [String] Unique identifier for the transaction
83
+ #
84
+ # @param created [Time] ISO 8601 timestamp of when the transaction was created
85
+ #
86
+ # @param family [Symbol, Lithic::Models::ExternalPayment::Family]
87
+ #
88
+ # @param status [Symbol, Lithic::Models::ExternalPayment::Status] The status of the transaction
89
+ #
90
+ # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated
91
+ #
74
92
  # @param category [Symbol, Lithic::Models::ExternalPayment::Category]
75
- # @param created [Time]
93
+ #
76
94
  # @param currency [String]
95
+ #
77
96
  # @param events [Array<Lithic::Models::ExternalPayment::Event>]
97
+ #
78
98
  # @param financial_account_token [String]
99
+ #
79
100
  # @param payment_type [Symbol, Lithic::Models::ExternalPayment::PaymentType]
101
+ #
80
102
  # @param pending_amount [Integer]
103
+ #
81
104
  # @param result [Symbol, Lithic::Models::ExternalPayment::Result]
105
+ #
82
106
  # @param settled_amount [Integer]
83
- # @param status [Symbol, Lithic::Models::ExternalPayment::Status]
84
- # @param updated [Time]
107
+ #
85
108
  # @param user_defined_id [String]
86
109
 
110
+ # @see Lithic::Models::ExternalPayment#family
111
+ module Family
112
+ extend Lithic::Internal::Type::Enum
113
+
114
+ CARD = :CARD
115
+ PAYMENT = :PAYMENT
116
+ TRANSFER = :TRANSFER
117
+ INTERNAL = :INTERNAL
118
+ EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT
119
+ MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION
120
+
121
+ # @!method self.values
122
+ # @return [Array<Symbol>]
123
+ end
124
+
125
+ # The status of the transaction
126
+ #
127
+ # @see Lithic::Models::ExternalPayment#status
128
+ module Status
129
+ extend Lithic::Internal::Type::Enum
130
+
131
+ PENDING = :PENDING
132
+ SETTLED = :SETTLED
133
+ DECLINED = :DECLINED
134
+ REVERSED = :REVERSED
135
+ CANCELED = :CANCELED
136
+
137
+ # @!method self.values
138
+ # @return [Array<Symbol>]
139
+ end
140
+
87
141
  # @see Lithic::Models::ExternalPayment#category
88
142
  module Category
89
143
  extend Lithic::Internal::Type::Enum
@@ -153,6 +207,7 @@ module Lithic
153
207
  extend Lithic::Internal::Type::Enum
154
208
 
155
209
  APPROVED = :APPROVED
210
+ INSUFFICIENT_FUNDS = :INSUFFICIENT_FUNDS
156
211
 
157
212
  # @!method self.values
158
213
  # @return [Array<Symbol>]
@@ -220,20 +275,6 @@ module Lithic
220
275
  # @!method self.values
221
276
  # @return [Array<Symbol>]
222
277
  end
223
-
224
- # @see Lithic::Models::ExternalPayment#status
225
- module Status
226
- extend Lithic::Internal::Type::Enum
227
-
228
- PENDING = :PENDING
229
- SETTLED = :SETTLED
230
- DECLINED = :DECLINED
231
- REVERSED = :REVERSED
232
- CANCELED = :CANCELED
233
-
234
- # @!method self.values
235
- # @return [Array<Symbol>]
236
- end
237
278
  end
238
279
  end
239
280
  end
@@ -210,6 +210,7 @@ module Lithic
210
210
  SECURITY = :SECURITY
211
211
  PROGRAM_RECEIVABLES = :PROGRAM_RECEIVABLES
212
212
  COLLECTION = :COLLECTION
213
+ PROGRAM_BANK_ACCOUNTS_PAYABLE = :PROGRAM_BANK_ACCOUNTS_PAYABLE
213
214
 
214
215
  # @!method self.values
215
216
  # @return [Array<Symbol>]
@@ -101,10 +101,7 @@ module Lithic
101
101
  # @!attribute previous_statement_balance
102
102
  #
103
103
  # @return [Lithic::Models::FinancialAccounts::LoanTape::PreviousStatementBalance]
104
- required :previous_statement_balance,
105
- -> {
106
- Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance
107
- }
104
+ required :previous_statement_balance, -> { Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance }
108
105
 
109
106
  # @!attribute starting_balance
110
107
  # Balance at the start of the day
@@ -231,10 +228,7 @@ module Lithic
231
228
  # @!attribute period_state
232
229
  #
233
230
  # @return [Symbol, Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::PeriodState]
234
- required :period_state,
235
- enum: -> {
236
- Lithic::FinancialAccounts::LoanTape::AccountStanding::PeriodState
237
- }
231
+ required :period_state, enum: -> { Lithic::FinancialAccounts::LoanTape::AccountStanding::PeriodState }
238
232
 
239
233
  # @!method initialize(consecutive_full_payments_made:, consecutive_minimum_payments_made:, consecutive_minimum_payments_missed:, days_past_due:, financial_account_state:, has_grace:, period_number:, period_state:)
240
234
  # @param consecutive_full_payments_made [Integer] Number of consecutive full payments made
@@ -260,9 +254,7 @@ module Lithic
260
254
  #
261
255
  # @return [Symbol, Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::Status]
262
256
  required :status,
263
- enum: -> {
264
- Lithic::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::Status
265
- }
257
+ enum: -> { Lithic::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::Status }
266
258
 
267
259
  # @!attribute substatus
268
260
  # Substatus for the financial account
@@ -353,10 +345,7 @@ module Lithic
353
345
  # Amount due for the past billing cycles.
354
346
  #
355
347
  # @return [Lithic::Models::FinancialAccounts::LoanTape::Balances::PastStatementsDue]
356
- required :past_statements_due,
357
- -> {
358
- Lithic::FinancialAccounts::LoanTape::Balances::PastStatementsDue
359
- }
348
+ required :past_statements_due, -> { Lithic::FinancialAccounts::LoanTape::Balances::PastStatementsDue }
360
349
 
361
350
  # @!method initialize(due:, next_statement_due:, past_due:, past_statements_due:)
362
351
  # Some parameter documentations has been truncated, see
@@ -560,9 +549,7 @@ module Lithic
560
549
  #
561
550
  # @return [Symbol, Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::InterestCalculationMethod]
562
551
  required :interest_calculation_method,
563
- enum: -> {
564
- Lithic::FinancialAccounts::LoanTape::InterestDetails::InterestCalculationMethod
565
- }
552
+ enum: -> { Lithic::FinancialAccounts::LoanTape::InterestDetails::InterestCalculationMethod }
566
553
 
567
554
  # @!attribute interest_for_period
568
555
  #
@@ -220,10 +220,7 @@ module Lithic
220
220
  # @!attribute period_state
221
221
  #
222
222
  # @return [Symbol, Lithic::Models::FinancialAccounts::Statement::AccountStanding::PeriodState]
223
- required :period_state,
224
- enum: -> {
225
- Lithic::FinancialAccounts::Statement::AccountStanding::PeriodState
226
- }
223
+ required :period_state, enum: -> { Lithic::FinancialAccounts::Statement::AccountStanding::PeriodState }
227
224
 
228
225
  # @!method initialize(consecutive_full_payments_made:, consecutive_minimum_payments_made:, consecutive_minimum_payments_missed:, days_past_due:, financial_account_state:, has_grace:, period_number:, period_state:)
229
226
  # @param consecutive_full_payments_made [Integer] Number of consecutive full payments made
@@ -249,9 +246,7 @@ module Lithic
249
246
  #
250
247
  # @return [Symbol, Lithic::Models::FinancialAccounts::Statement::AccountStanding::FinancialAccountState::Status]
251
248
  required :status,
252
- enum: -> {
253
- Lithic::FinancialAccounts::Statement::AccountStanding::FinancialAccountState::Status
254
- }
249
+ enum: -> { Lithic::FinancialAccounts::Statement::AccountStanding::FinancialAccountState::Status }
255
250
 
256
251
  # @!attribute substatus
257
252
  # Substatus for the financial account
@@ -503,9 +498,7 @@ module Lithic
503
498
  #
504
499
  # @return [Symbol, Lithic::Models::FinancialAccounts::Statement::InterestDetails::InterestCalculationMethod]
505
500
  required :interest_calculation_method,
506
- enum: -> {
507
- Lithic::FinancialAccounts::Statement::InterestDetails::InterestCalculationMethod
508
- }
501
+ enum: -> { Lithic::FinancialAccounts::Statement::InterestDetails::InterestCalculationMethod }
509
502
 
510
503
  # @!attribute interest_for_period
511
504
  #
@@ -9,9 +9,7 @@ module Lithic
9
9
  #
10
10
  # @return [Array<Lithic::Models::FinancialAccounts::Statements::StatementLineItems::Data>]
11
11
  required :data,
12
- -> {
13
- Lithic::Internal::Type::ArrayOf[Lithic::FinancialAccounts::Statements::StatementLineItems::Data]
14
- }
12
+ -> { Lithic::Internal::Type::ArrayOf[Lithic::FinancialAccounts::Statements::StatementLineItems::Data] }
15
13
 
16
14
  # @!attribute has_more
17
15
  #
@@ -38,10 +36,7 @@ module Lithic
38
36
  # @!attribute category
39
37
  #
40
38
  # @return [Symbol, Lithic::Models::FinancialAccounts::Statements::StatementLineItems::Data::Category]
41
- required :category,
42
- enum: -> {
43
- Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category
44
- }
39
+ required :category, enum: -> { Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category }
45
40
 
46
41
  # @!attribute created
47
42
  # Timestamp of when the line item was generated
@@ -172,6 +172,8 @@ module Lithic
172
172
  # Some parameter documentations has been truncated, see
173
173
  # {Lithic::Models::FinancialTransaction::Event} for more details.
174
174
  #
175
+ # Financial Event
176
+ #
175
177
  # @param token [String] Globally unique identifier.
176
178
  #
177
179
  # @param amount [Integer] Amount of the financial event that has been settled in the currency's smallest u
@@ -15,6 +15,7 @@ module Lithic
15
15
  SECURITY = :SECURITY
16
16
  PROGRAM_RECEIVABLES = :PROGRAM_RECEIVABLES
17
17
  COLLECTION = :COLLECTION
18
+ PROGRAM_BANK_ACCOUNTS_PAYABLE = :PROGRAM_BANK_ACCOUNTS_PAYABLE
18
19
 
19
20
  # @!method self.values
20
21
  # @return [Array<Symbol>]
@@ -73,7 +73,7 @@ module Lithic
73
73
  optional :external_id, String
74
74
 
75
75
  # @!attribute kyb_passed_timestamp
76
- # An RFC 3339 timestamp indicating when precomputed KYC was completed on the
76
+ # An RFC 3339 timestamp indicating when precomputed KYB was completed on the
77
77
  # business with a pass result.
78
78
  #
79
79
  # This field is required only if workflow type is `KYB_BYO`.
@@ -107,7 +107,7 @@ module Lithic
107
107
  #
108
108
  # @param external_id [String] A user provided id that can be used to link an account holder with an external s
109
109
  #
110
- # @param kyb_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYC was completed on the busin
110
+ # @param kyb_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYB was completed on the busin
111
111
  #
112
112
  # @param website_url [String] Company website URL.
113
113
 
@@ -5,91 +5,106 @@ module Lithic
5
5
  # @see Lithic::Resources::ManagementOperations#create
6
6
  class ManagementOperationTransaction < Lithic::Internal::Type::BaseModel
7
7
  # @!attribute token
8
+ # Unique identifier for the transaction
8
9
  #
9
10
  # @return [String]
10
11
  required :token, String
11
12
 
12
- # @!attribute category
13
- #
14
- # @return [Symbol, Lithic::Models::ManagementOperationTransaction::Category]
15
- required :category, enum: -> { Lithic::ManagementOperationTransaction::Category }
16
-
17
13
  # @!attribute created
14
+ # ISO 8601 timestamp of when the transaction was created
18
15
  #
19
16
  # @return [Time]
20
17
  required :created, Time
21
18
 
19
+ # @!attribute family
20
+ #
21
+ # @return [Symbol, Lithic::Models::ManagementOperationTransaction::Family]
22
+ required :family, enum: -> { Lithic::ManagementOperationTransaction::Family }
23
+
24
+ # @!attribute status
25
+ # The status of the transaction
26
+ #
27
+ # @return [Symbol, Lithic::Models::ManagementOperationTransaction::Status]
28
+ required :status, enum: -> { Lithic::ManagementOperationTransaction::Status }
29
+
30
+ # @!attribute updated
31
+ # ISO 8601 timestamp of when the transaction was last updated
32
+ #
33
+ # @return [Time]
34
+ required :updated, Time
35
+
36
+ # @!attribute category
37
+ #
38
+ # @return [Symbol, Lithic::Models::ManagementOperationTransaction::Category, nil]
39
+ optional :category, enum: -> { Lithic::ManagementOperationTransaction::Category }
40
+
22
41
  # @!attribute currency
23
42
  #
24
- # @return [String]
25
- required :currency, String
43
+ # @return [String, nil]
44
+ optional :currency, String
26
45
 
27
46
  # @!attribute direction
28
47
  #
29
- # @return [Symbol, Lithic::Models::ManagementOperationTransaction::Direction]
30
- required :direction, enum: -> { Lithic::ManagementOperationTransaction::Direction }
48
+ # @return [Symbol, Lithic::Models::ManagementOperationTransaction::Direction, nil]
49
+ optional :direction, enum: -> { Lithic::ManagementOperationTransaction::Direction }
31
50
 
32
51
  # @!attribute events
33
52
  #
34
- # @return [Array<Lithic::Models::ManagementOperationTransaction::Event>]
35
- required :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::ManagementOperationTransaction::Event] }
53
+ # @return [Array<Lithic::Models::ManagementOperationTransaction::Event>, nil]
54
+ optional :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::ManagementOperationTransaction::Event] }
55
+
56
+ # @!attribute external_resource
57
+ # External resource associated with the management operation
58
+ #
59
+ # @return [Lithic::Models::ExternalResource, nil]
60
+ optional :external_resource, -> { Lithic::ExternalResource }, nil?: true
36
61
 
37
62
  # @!attribute financial_account_token
38
63
  #
39
- # @return [String]
40
- required :financial_account_token, String
64
+ # @return [String, nil]
65
+ optional :financial_account_token, String
41
66
 
42
67
  # @!attribute pending_amount
43
68
  #
44
- # @return [Integer]
45
- required :pending_amount, Integer
69
+ # @return [Integer, nil]
70
+ optional :pending_amount, Integer
46
71
 
47
72
  # @!attribute result
48
73
  #
49
- # @return [Symbol, Lithic::Models::ManagementOperationTransaction::Result]
50
- required :result, enum: -> { Lithic::ManagementOperationTransaction::Result }
74
+ # @return [Symbol, Lithic::Models::ManagementOperationTransaction::Result, nil]
75
+ optional :result, enum: -> { Lithic::ManagementOperationTransaction::Result }
51
76
 
52
77
  # @!attribute settled_amount
53
78
  #
54
- # @return [Integer]
55
- required :settled_amount, Integer
56
-
57
- # @!attribute status
58
- #
59
- # @return [Symbol, Lithic::Models::ManagementOperationTransaction::Status]
60
- required :status, enum: -> { Lithic::ManagementOperationTransaction::Status }
79
+ # @return [Integer, nil]
80
+ optional :settled_amount, Integer
61
81
 
62
82
  # @!attribute transaction_series
63
83
  #
64
84
  # @return [Lithic::Models::ManagementOperationTransaction::TransactionSeries, nil]
65
- required :transaction_series,
85
+ optional :transaction_series,
66
86
  -> {
67
87
  Lithic::ManagementOperationTransaction::TransactionSeries
68
88
  },
69
89
  nil?: true
70
90
 
71
- # @!attribute updated
72
- #
73
- # @return [Time]
74
- required :updated, Time
75
-
76
- # @!attribute external_resource
77
- # External resource associated with the management operation
78
- #
79
- # @return [Lithic::Models::ExternalResource, nil]
80
- optional :external_resource, -> { Lithic::ExternalResource }, nil?: true
81
-
82
91
  # @!attribute user_defined_id
83
92
  #
84
93
  # @return [String, nil]
85
94
  optional :user_defined_id, String
86
95
 
87
- # @!method initialize(token:, category:, created:, currency:, direction:, events:, financial_account_token:, pending_amount:, result:, settled_amount:, status:, transaction_series:, updated:, external_resource: nil, user_defined_id: nil)
88
- # @param token [String]
96
+ # @!method initialize(token:, created:, family:, status:, updated:, category: nil, currency: nil, direction: nil, events: nil, external_resource: nil, financial_account_token: nil, pending_amount: nil, result: nil, settled_amount: nil, transaction_series: nil, user_defined_id: nil)
97
+ # @param token [String] Unique identifier for the transaction
89
98
  #
90
- # @param category [Symbol, Lithic::Models::ManagementOperationTransaction::Category]
99
+ # @param created [Time] ISO 8601 timestamp of when the transaction was created
100
+ #
101
+ # @param family [Symbol, Lithic::Models::ManagementOperationTransaction::Family]
91
102
  #
92
- # @param created [Time]
103
+ # @param status [Symbol, Lithic::Models::ManagementOperationTransaction::Status] The status of the transaction
104
+ #
105
+ # @param updated [Time] ISO 8601 timestamp of when the transaction was last updated
106
+ #
107
+ # @param category [Symbol, Lithic::Models::ManagementOperationTransaction::Category]
93
108
  #
94
109
  # @param currency [String]
95
110
  #
@@ -97,6 +112,8 @@ module Lithic
97
112
  #
98
113
  # @param events [Array<Lithic::Models::ManagementOperationTransaction::Event>]
99
114
  #
115
+ # @param external_resource [Lithic::Models::ExternalResource, nil] External resource associated with the management operation
116
+ #
100
117
  # @param financial_account_token [String]
101
118
  #
102
119
  # @param pending_amount [Integer]
@@ -105,16 +122,41 @@ module Lithic
105
122
  #
106
123
  # @param settled_amount [Integer]
107
124
  #
108
- # @param status [Symbol, Lithic::Models::ManagementOperationTransaction::Status]
109
- #
110
125
  # @param transaction_series [Lithic::Models::ManagementOperationTransaction::TransactionSeries, nil]
111
126
  #
112
- # @param updated [Time]
113
- #
114
- # @param external_resource [Lithic::Models::ExternalResource, nil] External resource associated with the management operation
115
- #
116
127
  # @param user_defined_id [String]
117
128
 
129
+ # @see Lithic::Models::ManagementOperationTransaction#family
130
+ module Family
131
+ extend Lithic::Internal::Type::Enum
132
+
133
+ CARD = :CARD
134
+ PAYMENT = :PAYMENT
135
+ TRANSFER = :TRANSFER
136
+ INTERNAL = :INTERNAL
137
+ EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT
138
+ MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION
139
+
140
+ # @!method self.values
141
+ # @return [Array<Symbol>]
142
+ end
143
+
144
+ # The status of the transaction
145
+ #
146
+ # @see Lithic::Models::ManagementOperationTransaction#status
147
+ module Status
148
+ extend Lithic::Internal::Type::Enum
149
+
150
+ PENDING = :PENDING
151
+ SETTLED = :SETTLED
152
+ DECLINED = :DECLINED
153
+ REVERSED = :REVERSED
154
+ CANCELED = :CANCELED
155
+
156
+ # @!method self.values
157
+ # @return [Array<Symbol>]
158
+ end
159
+
118
160
  # @see Lithic::Models::ManagementOperationTransaction#category
119
161
  module Category
120
162
  extend Lithic::Internal::Type::Enum
@@ -160,9 +202,7 @@ module Lithic
160
202
  #
161
203
  # @return [Array<Symbol, Lithic::Models::ManagementOperationTransaction::Event::DetailedResult>]
162
204
  required :detailed_results,
163
- -> {
164
- Lithic::Internal::Type::ArrayOf[enum: Lithic::ManagementOperationTransaction::Event::DetailedResult]
165
- }
205
+ -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::ManagementOperationTransaction::Event::DetailedResult] }
166
206
 
167
207
  # @!attribute effective_date
168
208
  #
@@ -204,6 +244,7 @@ module Lithic
204
244
  extend Lithic::Internal::Type::Enum
205
245
 
206
246
  APPROVED = :APPROVED
247
+ INSUFFICIENT_FUNDS = :INSUFFICIENT_FUNDS
207
248
 
208
249
  # @!method self.values
209
250
  # @return [Array<Symbol>]
@@ -260,20 +301,6 @@ module Lithic
260
301
  # @return [Array<Symbol>]
261
302
  end
262
303
 
263
- # @see Lithic::Models::ManagementOperationTransaction#status
264
- module Status
265
- extend Lithic::Internal::Type::Enum
266
-
267
- PENDING = :PENDING
268
- SETTLED = :SETTLED
269
- DECLINED = :DECLINED
270
- REVERSED = :REVERSED
271
- CANCELED = :CANCELED
272
-
273
- # @!method self.values
274
- # @return [Array<Symbol>]
275
- end
276
-
277
304
  # @see Lithic::Models::ManagementOperationTransaction#transaction_series
278
305
  class TransactionSeries < Lithic::Internal::Type::BaseModel
279
306
  # @!attribute related_transaction_event_token