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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/internal/transport/base_client.rb +1 -1
- data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -9
- data/lib/lithic/internal/type/array_of.rb +1 -0
- data/lib/lithic/internal/type/base_model.rb +3 -1
- data/lib/lithic/internal/type/converter.rb +27 -0
- data/lib/lithic/internal/type/hash_of.rb +1 -0
- data/lib/lithic/internal/type/union.rb +9 -7
- data/lib/lithic/internal/util.rb +1 -1
- data/lib/lithic/models/account_activity_list_params.rb +158 -0
- data/lib/lithic/models/account_activity_list_response.rb +1435 -0
- data/lib/lithic/models/account_activity_retrieve_transaction_params.rb +14 -0
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1451 -0
- data/lib/lithic/models/account_holder.rb +16 -19
- data/lib/lithic/models/account_holder_create_params.rb +41 -47
- data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -3
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +25 -20
- data/lib/lithic/models/account_holder_update_params.rb +2 -6
- data/lib/lithic/models/account_holder_update_response.rb +25 -20
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +5 -1
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -12
- data/lib/lithic/models/auth_rules/v2_apply_params.rb +13 -5
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_create_params.rb +283 -16
- data/lib/lithic/models/auth_rules/v2_create_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +239 -3
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_list_params.rb +11 -1
- data/lib/lithic/models/auth_rules/v2_list_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +510 -18
- data/lib/lithic/models/auth_rules/v2_update_params.rb +1 -9
- data/lib/lithic/models/auth_rules/v2_update_response.rb +510 -18
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +4 -16
- data/lib/lithic/models/book_transfer_create_params.rb +34 -6
- data/lib/lithic/models/book_transfer_response.rb +124 -28
- data/lib/lithic/models/document.rb +1 -3
- data/lib/lithic/models/event.rb +6 -0
- data/lib/lithic/models/event_list_params.rb +2 -0
- data/lib/lithic/models/event_subscription.rb +2 -0
- data/lib/lithic/models/events/subscription_create_params.rb +3 -3
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +2 -0
- data/lib/lithic/models/events/subscription_update_params.rb +3 -3
- data/lib/lithic/models/external_bank_account_list_params.rb +2 -6
- data/lib/lithic/models/external_payment.rb +89 -48
- data/lib/lithic/models/financial_account.rb +1 -0
- data/lib/lithic/models/financial_accounts/loan_tape.rb +5 -18
- data/lib/lithic/models/financial_accounts/statement.rb +3 -10
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +2 -7
- data/lib/lithic/models/financial_transaction.rb +2 -0
- data/lib/lithic/models/instance_financial_account_type.rb +1 -0
- data/lib/lithic/models/kyb.rb +2 -2
- data/lib/lithic/models/management_operation_transaction.rb +90 -63
- data/lib/lithic/models/payment.rb +60 -1
- data/lib/lithic/models/reports/settlement_list_details_params.rb +2 -2
- data/lib/lithic/models/settlement_detail.rb +1 -0
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +173 -38
- data/lib/lithic/models/three_ds/authentication_simulate_params.rb +1 -4
- data/lib/lithic/models/tokenization.rb +1 -1
- data/lib/lithic/models/transaction.rb +4 -0
- data/lib/lithic/models/transactions/events/enhanced_data.rb +3 -11
- data/lib/lithic/models/transfer.rb +2 -0
- data/lib/lithic/models/wire_party_details.rb +40 -0
- data/lib/lithic/models.rb +6 -0
- data/lib/lithic/resources/account_activity.rb +80 -0
- data/lib/lithic/resources/account_holders.rb +9 -9
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -3
- data/lib/lithic/resources/auth_rules/v2.rb +19 -13
- data/lib/lithic/resources/book_transfers.rb +7 -3
- data/lib/lithic/resources/reports/settlement.rb +1 -1
- data/lib/lithic/resources/tokenizations.rb +2 -2
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +7 -2
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/errors.rbi +2 -2
- data/rbi/lithic/internal/transport/base_client.rbi +1 -1
- data/rbi/lithic/internal/type/converter.rbi +46 -0
- data/rbi/lithic/internal/type/union.rbi +7 -2
- data/rbi/lithic/models/account_activity_list_params.rbi +347 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +3367 -0
- data/rbi/lithic/models/account_activity_retrieve_transaction_params.rbi +30 -0
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +3369 -0
- data/rbi/lithic/models/account_holder.rbi +21 -23
- data/rbi/lithic/models/account_holder_create_params.rbi +87 -65
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +36 -30
- data/rbi/lithic/models/account_holder_update_response.rbi +36 -30
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +20 -0
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +20 -0
- data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +19 -5
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +646 -21
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +554 -4
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +18 -0
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +1128 -18
- data/rbi/lithic/models/auth_rules/v2_update_params.rbi +0 -11
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +1128 -18
- data/rbi/lithic/models/book_transfer_create_params.rbi +75 -5
- data/rbi/lithic/models/book_transfer_response.rbi +320 -38
- data/rbi/lithic/models/event.rbi +16 -0
- data/rbi/lithic/models/event_list_params.rbi +10 -0
- data/rbi/lithic/models/event_subscription.rbi +10 -0
- data/rbi/lithic/models/events/subscription_create_params.rbi +10 -0
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +10 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +10 -0
- data/rbi/lithic/models/external_payment.rbi +147 -60
- data/rbi/lithic/models/financial_account.rbi +5 -0
- data/rbi/lithic/models/financial_transaction.rbi +1 -0
- data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
- data/rbi/lithic/models/kyb.rbi +2 -2
- data/rbi/lithic/models/management_operation_transaction.rbi +226 -95
- data/rbi/lithic/models/payment.rbi +103 -3
- data/rbi/lithic/models/reports/settlement_list_details_params.rbi +2 -2
- data/rbi/lithic/models/settlement_detail.rbi +2 -0
- data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +267 -60
- data/rbi/lithic/models/transaction.rbi +17 -0
- data/rbi/lithic/models/transfer.rbi +1 -0
- data/rbi/lithic/models/wire_party_details.rbi +61 -0
- data/rbi/lithic/models.rbi +7 -0
- data/rbi/lithic/resources/account_activity.rbi +80 -0
- data/rbi/lithic/resources/account_holders.rbi +28 -29
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +3 -3
- data/rbi/lithic/resources/auth_rules/v2.rbi +28 -14
- data/rbi/lithic/resources/book_transfers.rbi +9 -2
- data/rbi/lithic/resources/reports/settlement.rbi +1 -1
- data/rbi/lithic/resources/tokenizations.rbi +1 -1
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/internal/transport/base_client.rbs +1 -1
- data/sig/lithic/internal/type/converter.rbs +17 -0
- data/sig/lithic/internal/type/union.rbs +2 -2
- data/sig/lithic/models/account_activity_list_params.rbs +173 -0
- data/sig/lithic/models/account_activity_list_response.rbs +1353 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_params.rbs +15 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +1353 -0
- data/sig/lithic/models/account_holder_create_params.rbs +33 -19
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +10 -3
- data/sig/lithic/models/account_holder_update_response.rbs +10 -3
- data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +8 -0
- data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +8 -0
- data/sig/lithic/models/auth_rules/v2_apply_params.rbs +11 -2
- data/sig/lithic/models/auth_rules/v2_apply_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +188 -4
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +155 -0
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_list_params.rbs +10 -1
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +317 -2
- data/sig/lithic/models/auth_rules/v2_update_params.rbs +0 -7
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +317 -2
- data/sig/lithic/models/book_transfer_create_params.rbs +30 -1
- data/sig/lithic/models/book_transfer_response.rbs +134 -15
- data/sig/lithic/models/event.rbs +4 -0
- data/sig/lithic/models/event_list_params.rbs +4 -0
- data/sig/lithic/models/event_subscription.rbs +4 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +4 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +4 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +4 -0
- data/sig/lithic/models/external_payment.rbs +91 -40
- data/sig/lithic/models/financial_account.rbs +2 -0
- data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
- data/sig/lithic/models/management_operation_transaction.rbs +95 -44
- data/sig/lithic/models/payment.rbs +61 -3
- data/sig/lithic/models/settlement_detail.rbs +2 -0
- data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +110 -23
- data/sig/lithic/models/transaction.rbs +10 -2
- data/sig/lithic/models/wire_party_details.rbs +35 -0
- data/sig/lithic/models.rbs +6 -0
- data/sig/lithic/resources/account_activity.rbs +27 -0
- data/sig/lithic/resources/account_holders.rbs +3 -3
- data/sig/lithic/resources/auth_rules/v2.rbs +6 -3
- data/sig/lithic/resources/book_transfers.rbs +2 -0
- data/sig/lithic/resources/tokenizations.rbs +1 -1
- metadata +20 -5
- data/lib/lithic/models/tokenization_retrieve_response.rb +0 -16
- data/rbi/lithic/models/tokenization_retrieve_response.rbi +0 -31
- data/sig/lithic/models/tokenization_retrieve_response.rbs +0 -15
@@ -7,12 +7,15 @@ module Lithic
|
|
7
7
|
created: Time,
|
8
8
|
currency: String,
|
9
9
|
events: ::Array[Lithic::BookTransferResponse::Event],
|
10
|
+
external_id: String?,
|
11
|
+
external_resource: Lithic::ExternalResource?,
|
10
12
|
from_financial_account_token: String,
|
11
13
|
pending_amount: Integer,
|
12
14
|
result: Lithic::Models::BookTransferResponse::result,
|
13
15
|
settled_amount: Integer,
|
14
16
|
status: Lithic::Models::BookTransferResponse::status,
|
15
|
-
to_financial_account_token:
|
17
|
+
to_financial_account_token: String,
|
18
|
+
transaction_series: Lithic::BookTransferResponse::TransactionSeries?,
|
16
19
|
updated: Time
|
17
20
|
}
|
18
21
|
|
@@ -27,6 +30,10 @@ module Lithic
|
|
27
30
|
|
28
31
|
attr_accessor events: ::Array[Lithic::BookTransferResponse::Event]
|
29
32
|
|
33
|
+
attr_accessor external_id: String?
|
34
|
+
|
35
|
+
attr_accessor external_resource: Lithic::ExternalResource?
|
36
|
+
|
30
37
|
attr_accessor from_financial_account_token: String
|
31
38
|
|
32
39
|
attr_accessor pending_amount: Integer
|
@@ -37,7 +44,9 @@ module Lithic
|
|
37
44
|
|
38
45
|
attr_accessor status: Lithic::Models::BookTransferResponse::status
|
39
46
|
|
40
|
-
attr_accessor to_financial_account_token:
|
47
|
+
attr_accessor to_financial_account_token: String
|
48
|
+
|
49
|
+
attr_accessor transaction_series: Lithic::BookTransferResponse::TransactionSeries?
|
41
50
|
|
42
51
|
attr_accessor updated: Time
|
43
52
|
|
@@ -47,12 +56,15 @@ module Lithic
|
|
47
56
|
created: Time,
|
48
57
|
currency: String,
|
49
58
|
events: ::Array[Lithic::BookTransferResponse::Event],
|
59
|
+
external_id: String?,
|
60
|
+
external_resource: Lithic::ExternalResource?,
|
50
61
|
from_financial_account_token: String,
|
51
62
|
pending_amount: Integer,
|
52
63
|
result: Lithic::Models::BookTransferResponse::result,
|
53
64
|
settled_amount: Integer,
|
54
65
|
status: Lithic::Models::BookTransferResponse::status,
|
55
|
-
to_financial_account_token:
|
66
|
+
to_financial_account_token: String,
|
67
|
+
transaction_series: Lithic::BookTransferResponse::TransactionSeries?,
|
56
68
|
updated: Time
|
57
69
|
) -> void
|
58
70
|
|
@@ -62,12 +74,15 @@ module Lithic
|
|
62
74
|
created: Time,
|
63
75
|
currency: String,
|
64
76
|
events: ::Array[Lithic::BookTransferResponse::Event],
|
77
|
+
external_id: String?,
|
78
|
+
external_resource: Lithic::ExternalResource?,
|
65
79
|
from_financial_account_token: String,
|
66
80
|
pending_amount: Integer,
|
67
81
|
result: Lithic::Models::BookTransferResponse::result,
|
68
82
|
settled_amount: Integer,
|
69
83
|
status: Lithic::Models::BookTransferResponse::status,
|
70
|
-
to_financial_account_token:
|
84
|
+
to_financial_account_token: String,
|
85
|
+
transaction_series: Lithic::BookTransferResponse::TransactionSeries?,
|
71
86
|
updated: Time
|
72
87
|
}
|
73
88
|
|
@@ -99,11 +114,11 @@ module Lithic
|
|
99
114
|
token: String,
|
100
115
|
amount: Integer,
|
101
116
|
created: Time,
|
102
|
-
detailed_results:
|
117
|
+
detailed_results: Lithic::Models::BookTransferResponse::Event::detailed_results,
|
103
118
|
memo: String,
|
104
119
|
result: Lithic::Models::BookTransferResponse::Event::result,
|
105
120
|
subtype: String,
|
106
|
-
type:
|
121
|
+
type: Lithic::Models::BookTransferResponse::Event::type_
|
107
122
|
}
|
108
123
|
|
109
124
|
class Event < Lithic::Internal::Type::BaseModel
|
@@ -113,7 +128,7 @@ module Lithic
|
|
113
128
|
|
114
129
|
attr_accessor created: Time
|
115
130
|
|
116
|
-
attr_accessor detailed_results:
|
131
|
+
attr_accessor detailed_results: Lithic::Models::BookTransferResponse::Event::detailed_results
|
117
132
|
|
118
133
|
attr_accessor memo: String
|
119
134
|
|
@@ -121,39 +136,39 @@ module Lithic
|
|
121
136
|
|
122
137
|
attr_accessor subtype: String
|
123
138
|
|
124
|
-
attr_accessor type:
|
139
|
+
attr_accessor type: Lithic::Models::BookTransferResponse::Event::type_
|
125
140
|
|
126
141
|
def initialize: (
|
127
142
|
token: String,
|
128
143
|
amount: Integer,
|
129
144
|
created: Time,
|
130
|
-
detailed_results:
|
145
|
+
detailed_results: Lithic::Models::BookTransferResponse::Event::detailed_results,
|
131
146
|
memo: String,
|
132
147
|
result: Lithic::Models::BookTransferResponse::Event::result,
|
133
148
|
subtype: String,
|
134
|
-
type:
|
149
|
+
type: Lithic::Models::BookTransferResponse::Event::type_
|
135
150
|
) -> void
|
136
151
|
|
137
152
|
def to_hash: -> {
|
138
153
|
token: String,
|
139
154
|
amount: Integer,
|
140
155
|
created: Time,
|
141
|
-
detailed_results:
|
156
|
+
detailed_results: Lithic::Models::BookTransferResponse::Event::detailed_results,
|
142
157
|
memo: String,
|
143
158
|
result: Lithic::Models::BookTransferResponse::Event::result,
|
144
159
|
subtype: String,
|
145
|
-
type:
|
160
|
+
type: Lithic::Models::BookTransferResponse::Event::type_
|
146
161
|
}
|
147
162
|
|
148
|
-
type
|
163
|
+
type detailed_results = :APPROVED | :FUNDS_INSUFFICIENT
|
149
164
|
|
150
|
-
module
|
165
|
+
module DetailedResults
|
151
166
|
extend Lithic::Internal::Type::Enum
|
152
167
|
|
153
168
|
APPROVED: :APPROVED
|
154
169
|
FUNDS_INSUFFICIENT: :FUNDS_INSUFFICIENT
|
155
170
|
|
156
|
-
def self?.values: -> ::Array[Lithic::Models::BookTransferResponse::Event::
|
171
|
+
def self?.values: -> ::Array[Lithic::Models::BookTransferResponse::Event::detailed_results]
|
157
172
|
end
|
158
173
|
|
159
174
|
type result = :APPROVED | :DECLINED
|
@@ -166,6 +181,83 @@ module Lithic
|
|
166
181
|
|
167
182
|
def self?.values: -> ::Array[Lithic::Models::BookTransferResponse::Event::result]
|
168
183
|
end
|
184
|
+
|
185
|
+
type type_ =
|
186
|
+
:ATM_WITHDRAWAL
|
187
|
+
| :ATM_DECLINE
|
188
|
+
| :INTERNATIONAL_ATM_WITHDRAWAL
|
189
|
+
| :INACTIVITY
|
190
|
+
| :STATEMENT
|
191
|
+
| :MONTHLY
|
192
|
+
| :QUARTERLY
|
193
|
+
| :ANNUAL
|
194
|
+
| :CUSTOMER_SERVICE
|
195
|
+
| :ACCOUNT_MAINTENANCE
|
196
|
+
| :ACCOUNT_ACTIVATION
|
197
|
+
| :ACCOUNT_CLOSURE
|
198
|
+
| :CARD_REPLACEMENT
|
199
|
+
| :CARD_DELIVERY
|
200
|
+
| :CARD_CREATE
|
201
|
+
| :CURRENCY_CONVERSION
|
202
|
+
| :INTEREST
|
203
|
+
| :LATE_PAYMENT
|
204
|
+
| :BILL_PAYMENT
|
205
|
+
| :CASH_BACK
|
206
|
+
| :ACCOUNT_TO_ACCOUNT
|
207
|
+
| :CARD_TO_CARD
|
208
|
+
| :DISBURSE
|
209
|
+
| :BILLING_ERROR
|
210
|
+
| :LOSS_WRITE_OFF
|
211
|
+
| :EXPIRED_CARD
|
212
|
+
| :EARLY_DERECOGNITION
|
213
|
+
| :ESCHEATMENT
|
214
|
+
| :INACTIVITY_FEE_DOWN
|
215
|
+
| :PROVISIONAL_CREDIT
|
216
|
+
| :DISPUTE_WON
|
217
|
+
| :SERVICE
|
218
|
+
| :TRANSFER
|
219
|
+
| :COLLECTION
|
220
|
+
|
221
|
+
module Type
|
222
|
+
extend Lithic::Internal::Type::Enum
|
223
|
+
|
224
|
+
ATM_WITHDRAWAL: :ATM_WITHDRAWAL
|
225
|
+
ATM_DECLINE: :ATM_DECLINE
|
226
|
+
INTERNATIONAL_ATM_WITHDRAWAL: :INTERNATIONAL_ATM_WITHDRAWAL
|
227
|
+
INACTIVITY: :INACTIVITY
|
228
|
+
STATEMENT: :STATEMENT
|
229
|
+
MONTHLY: :MONTHLY
|
230
|
+
QUARTERLY: :QUARTERLY
|
231
|
+
ANNUAL: :ANNUAL
|
232
|
+
CUSTOMER_SERVICE: :CUSTOMER_SERVICE
|
233
|
+
ACCOUNT_MAINTENANCE: :ACCOUNT_MAINTENANCE
|
234
|
+
ACCOUNT_ACTIVATION: :ACCOUNT_ACTIVATION
|
235
|
+
ACCOUNT_CLOSURE: :ACCOUNT_CLOSURE
|
236
|
+
CARD_REPLACEMENT: :CARD_REPLACEMENT
|
237
|
+
CARD_DELIVERY: :CARD_DELIVERY
|
238
|
+
CARD_CREATE: :CARD_CREATE
|
239
|
+
CURRENCY_CONVERSION: :CURRENCY_CONVERSION
|
240
|
+
INTEREST: :INTEREST
|
241
|
+
LATE_PAYMENT: :LATE_PAYMENT
|
242
|
+
BILL_PAYMENT: :BILL_PAYMENT
|
243
|
+
CASH_BACK: :CASH_BACK
|
244
|
+
ACCOUNT_TO_ACCOUNT: :ACCOUNT_TO_ACCOUNT
|
245
|
+
CARD_TO_CARD: :CARD_TO_CARD
|
246
|
+
DISBURSE: :DISBURSE
|
247
|
+
BILLING_ERROR: :BILLING_ERROR
|
248
|
+
LOSS_WRITE_OFF: :LOSS_WRITE_OFF
|
249
|
+
EXPIRED_CARD: :EXPIRED_CARD
|
250
|
+
EARLY_DERECOGNITION: :EARLY_DERECOGNITION
|
251
|
+
ESCHEATMENT: :ESCHEATMENT
|
252
|
+
INACTIVITY_FEE_DOWN: :INACTIVITY_FEE_DOWN
|
253
|
+
PROVISIONAL_CREDIT: :PROVISIONAL_CREDIT
|
254
|
+
DISPUTE_WON: :DISPUTE_WON
|
255
|
+
SERVICE: :SERVICE
|
256
|
+
TRANSFER: :TRANSFER
|
257
|
+
COLLECTION: :COLLECTION
|
258
|
+
|
259
|
+
def self?.values: -> ::Array[Lithic::Models::BookTransferResponse::Event::type_]
|
260
|
+
end
|
169
261
|
end
|
170
262
|
|
171
263
|
type result = :APPROVED | :DECLINED
|
@@ -190,6 +282,33 @@ module Lithic
|
|
190
282
|
|
191
283
|
def self?.values: -> ::Array[Lithic::Models::BookTransferResponse::status]
|
192
284
|
end
|
285
|
+
|
286
|
+
type transaction_series =
|
287
|
+
{
|
288
|
+
related_transaction_event_token: String?,
|
289
|
+
related_transaction_token: String?,
|
290
|
+
type: String
|
291
|
+
}
|
292
|
+
|
293
|
+
class TransactionSeries < Lithic::Internal::Type::BaseModel
|
294
|
+
attr_accessor related_transaction_event_token: String?
|
295
|
+
|
296
|
+
attr_accessor related_transaction_token: String?
|
297
|
+
|
298
|
+
attr_accessor type: String
|
299
|
+
|
300
|
+
def initialize: (
|
301
|
+
related_transaction_event_token: String?,
|
302
|
+
related_transaction_token: String?,
|
303
|
+
type: String
|
304
|
+
) -> void
|
305
|
+
|
306
|
+
def to_hash: -> {
|
307
|
+
related_transaction_event_token: String?,
|
308
|
+
related_transaction_token: String?,
|
309
|
+
type: String
|
310
|
+
}
|
311
|
+
end
|
193
312
|
end
|
194
313
|
end
|
195
314
|
end
|
data/sig/lithic/models/event.rbs
CHANGED
@@ -51,6 +51,8 @@ module Lithic
|
|
51
51
|
| :"digital_wallet.tokenization_updated"
|
52
52
|
| :"dispute.updated"
|
53
53
|
| :"dispute_evidence.upload_failed"
|
54
|
+
| :"dispute_transaction.created"
|
55
|
+
| :"dispute_transaction.updated"
|
54
56
|
| :"external_bank_account.created"
|
55
57
|
| :"external_bank_account.updated"
|
56
58
|
| :"external_payment.created"
|
@@ -100,6 +102,8 @@ module Lithic
|
|
100
102
|
DIGITAL_WALLET_TOKENIZATION_UPDATED: :"digital_wallet.tokenization_updated"
|
101
103
|
DISPUTE_UPDATED: :"dispute.updated"
|
102
104
|
DISPUTE_EVIDENCE_UPLOAD_FAILED: :"dispute_evidence.upload_failed"
|
105
|
+
DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created"
|
106
|
+
DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated"
|
103
107
|
EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created"
|
104
108
|
EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated"
|
105
109
|
EXTERNAL_PAYMENT_CREATED: :"external_payment.created"
|
@@ -88,6 +88,8 @@ module Lithic
|
|
88
88
|
| :"digital_wallet.tokenization_updated"
|
89
89
|
| :"dispute.updated"
|
90
90
|
| :"dispute_evidence.upload_failed"
|
91
|
+
| :"dispute_transaction.created"
|
92
|
+
| :"dispute_transaction.updated"
|
91
93
|
| :"external_bank_account.created"
|
92
94
|
| :"external_bank_account.updated"
|
93
95
|
| :"external_payment.created"
|
@@ -137,6 +139,8 @@ module Lithic
|
|
137
139
|
DIGITAL_WALLET_TOKENIZATION_UPDATED: :"digital_wallet.tokenization_updated"
|
138
140
|
DISPUTE_UPDATED: :"dispute.updated"
|
139
141
|
DISPUTE_EVIDENCE_UPLOAD_FAILED: :"dispute_evidence.upload_failed"
|
142
|
+
DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created"
|
143
|
+
DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated"
|
140
144
|
EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created"
|
141
145
|
EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated"
|
142
146
|
EXTERNAL_PAYMENT_CREATED: :"external_payment.created"
|
@@ -56,6 +56,8 @@ module Lithic
|
|
56
56
|
| :"digital_wallet.tokenization_updated"
|
57
57
|
| :"dispute.updated"
|
58
58
|
| :"dispute_evidence.upload_failed"
|
59
|
+
| :"dispute_transaction.created"
|
60
|
+
| :"dispute_transaction.updated"
|
59
61
|
| :"external_bank_account.created"
|
60
62
|
| :"external_bank_account.updated"
|
61
63
|
| :"external_payment.created"
|
@@ -105,6 +107,8 @@ module Lithic
|
|
105
107
|
DIGITAL_WALLET_TOKENIZATION_UPDATED: :"digital_wallet.tokenization_updated"
|
106
108
|
DISPUTE_UPDATED: :"dispute.updated"
|
107
109
|
DISPUTE_EVIDENCE_UPLOAD_FAILED: :"dispute_evidence.upload_failed"
|
110
|
+
DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created"
|
111
|
+
DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated"
|
108
112
|
EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created"
|
109
113
|
EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated"
|
110
114
|
EXTERNAL_PAYMENT_CREATED: :"external_payment.created"
|
@@ -66,6 +66,8 @@ module Lithic
|
|
66
66
|
| :"digital_wallet.tokenization_updated"
|
67
67
|
| :"dispute.updated"
|
68
68
|
| :"dispute_evidence.upload_failed"
|
69
|
+
| :"dispute_transaction.created"
|
70
|
+
| :"dispute_transaction.updated"
|
69
71
|
| :"external_bank_account.created"
|
70
72
|
| :"external_bank_account.updated"
|
71
73
|
| :"external_payment.created"
|
@@ -115,6 +117,8 @@ module Lithic
|
|
115
117
|
DIGITAL_WALLET_TOKENIZATION_UPDATED: :"digital_wallet.tokenization_updated"
|
116
118
|
DISPUTE_UPDATED: :"dispute.updated"
|
117
119
|
DISPUTE_EVIDENCE_UPLOAD_FAILED: :"dispute_evidence.upload_failed"
|
120
|
+
DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created"
|
121
|
+
DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated"
|
118
122
|
EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created"
|
119
123
|
EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated"
|
120
124
|
EXTERNAL_PAYMENT_CREATED: :"external_payment.created"
|
@@ -47,6 +47,8 @@ module Lithic
|
|
47
47
|
| :"digital_wallet.tokenization_updated"
|
48
48
|
| :"dispute.updated"
|
49
49
|
| :"dispute_evidence.upload_failed"
|
50
|
+
| :"dispute_transaction.created"
|
51
|
+
| :"dispute_transaction.updated"
|
50
52
|
| :"external_bank_account.created"
|
51
53
|
| :"external_bank_account.updated"
|
52
54
|
| :"external_payment.created"
|
@@ -96,6 +98,8 @@ module Lithic
|
|
96
98
|
DIGITAL_WALLET_TOKENIZATION_UPDATED: :"digital_wallet.tokenization_updated"
|
97
99
|
DISPUTE_UPDATED: :"dispute.updated"
|
98
100
|
DISPUTE_EVIDENCE_UPLOAD_FAILED: :"dispute_evidence.upload_failed"
|
101
|
+
DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created"
|
102
|
+
DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated"
|
99
103
|
EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created"
|
100
104
|
EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated"
|
101
105
|
EXTERNAL_PAYMENT_CREATED: :"external_payment.created"
|
@@ -66,6 +66,8 @@ module Lithic
|
|
66
66
|
| :"digital_wallet.tokenization_updated"
|
67
67
|
| :"dispute.updated"
|
68
68
|
| :"dispute_evidence.upload_failed"
|
69
|
+
| :"dispute_transaction.created"
|
70
|
+
| :"dispute_transaction.updated"
|
69
71
|
| :"external_bank_account.created"
|
70
72
|
| :"external_bank_account.updated"
|
71
73
|
| :"external_payment.created"
|
@@ -115,6 +117,8 @@ module Lithic
|
|
115
117
|
DIGITAL_WALLET_TOKENIZATION_UPDATED: :"digital_wallet.tokenization_updated"
|
116
118
|
DISPUTE_UPDATED: :"dispute.updated"
|
117
119
|
DISPUTE_EVIDENCE_UPLOAD_FAILED: :"dispute_evidence.upload_failed"
|
120
|
+
DISPUTE_TRANSACTION_CREATED: :"dispute_transaction.created"
|
121
|
+
DISPUTE_TRANSACTION_UPDATED: :"dispute_transaction.updated"
|
118
122
|
EXTERNAL_BANK_ACCOUNT_CREATED: :"external_bank_account.created"
|
119
123
|
EXTERNAL_BANK_ACCOUNT_UPDATED: :"external_bank_account.updated"
|
120
124
|
EXTERNAL_PAYMENT_CREATED: :"external_payment.created"
|
@@ -3,8 +3,11 @@ module Lithic
|
|
3
3
|
type external_payment =
|
4
4
|
{
|
5
5
|
token: String,
|
6
|
-
category: Lithic::Models::ExternalPayment::category,
|
7
6
|
created: Time,
|
7
|
+
family: Lithic::Models::ExternalPayment::family,
|
8
|
+
status: Lithic::Models::ExternalPayment::status,
|
9
|
+
updated: Time,
|
10
|
+
category: Lithic::Models::ExternalPayment::category,
|
8
11
|
currency: String,
|
9
12
|
events: ::Array[Lithic::ExternalPayment::Event],
|
10
13
|
financial_account_token: String,
|
@@ -12,35 +15,59 @@ module Lithic
|
|
12
15
|
pending_amount: Integer,
|
13
16
|
result: Lithic::Models::ExternalPayment::result,
|
14
17
|
settled_amount: Integer,
|
15
|
-
status: Lithic::Models::ExternalPayment::status,
|
16
|
-
updated: Time,
|
17
18
|
user_defined_id: String
|
18
19
|
}
|
19
20
|
|
20
21
|
class ExternalPayment < Lithic::Internal::Type::BaseModel
|
21
22
|
attr_accessor token: String
|
22
23
|
|
23
|
-
attr_accessor category: Lithic::Models::ExternalPayment::category
|
24
|
-
|
25
24
|
attr_accessor created: Time
|
26
25
|
|
27
|
-
attr_accessor
|
26
|
+
attr_accessor family: Lithic::Models::ExternalPayment::family
|
27
|
+
|
28
|
+
attr_accessor status: Lithic::Models::ExternalPayment::status
|
29
|
+
|
30
|
+
attr_accessor updated: Time
|
28
31
|
|
29
|
-
|
32
|
+
attr_reader category: Lithic::Models::ExternalPayment::category?
|
30
33
|
|
31
|
-
|
34
|
+
def category=: (
|
35
|
+
Lithic::Models::ExternalPayment::category
|
36
|
+
) -> Lithic::Models::ExternalPayment::category
|
32
37
|
|
33
|
-
|
38
|
+
attr_reader currency: String?
|
34
39
|
|
35
|
-
|
40
|
+
def currency=: (String) -> String
|
36
41
|
|
37
|
-
|
42
|
+
attr_reader events: ::Array[Lithic::ExternalPayment::Event]?
|
38
43
|
|
39
|
-
|
44
|
+
def events=: (
|
45
|
+
::Array[Lithic::ExternalPayment::Event]
|
46
|
+
) -> ::Array[Lithic::ExternalPayment::Event]
|
40
47
|
|
41
|
-
|
48
|
+
attr_reader financial_account_token: String?
|
42
49
|
|
43
|
-
|
50
|
+
def financial_account_token=: (String) -> String
|
51
|
+
|
52
|
+
attr_reader payment_type: Lithic::Models::ExternalPayment::payment_type?
|
53
|
+
|
54
|
+
def payment_type=: (
|
55
|
+
Lithic::Models::ExternalPayment::payment_type
|
56
|
+
) -> Lithic::Models::ExternalPayment::payment_type
|
57
|
+
|
58
|
+
attr_reader pending_amount: Integer?
|
59
|
+
|
60
|
+
def pending_amount=: (Integer) -> Integer
|
61
|
+
|
62
|
+
attr_reader result: Lithic::Models::ExternalPayment::result?
|
63
|
+
|
64
|
+
def result=: (
|
65
|
+
Lithic::Models::ExternalPayment::result
|
66
|
+
) -> Lithic::Models::ExternalPayment::result
|
67
|
+
|
68
|
+
attr_reader settled_amount: Integer?
|
69
|
+
|
70
|
+
def settled_amount=: (Integer) -> Integer
|
44
71
|
|
45
72
|
attr_reader user_defined_id: String?
|
46
73
|
|
@@ -48,24 +75,28 @@ module Lithic
|
|
48
75
|
|
49
76
|
def initialize: (
|
50
77
|
token: String,
|
51
|
-
category: Lithic::Models::ExternalPayment::category,
|
52
78
|
created: Time,
|
53
|
-
|
54
|
-
events: ::Array[Lithic::ExternalPayment::Event],
|
55
|
-
financial_account_token: String,
|
56
|
-
payment_type: Lithic::Models::ExternalPayment::payment_type,
|
57
|
-
pending_amount: Integer,
|
58
|
-
result: Lithic::Models::ExternalPayment::result,
|
59
|
-
settled_amount: Integer,
|
79
|
+
family: Lithic::Models::ExternalPayment::family,
|
60
80
|
status: Lithic::Models::ExternalPayment::status,
|
61
81
|
updated: Time,
|
82
|
+
?category: Lithic::Models::ExternalPayment::category,
|
83
|
+
?currency: String,
|
84
|
+
?events: ::Array[Lithic::ExternalPayment::Event],
|
85
|
+
?financial_account_token: String,
|
86
|
+
?payment_type: Lithic::Models::ExternalPayment::payment_type,
|
87
|
+
?pending_amount: Integer,
|
88
|
+
?result: Lithic::Models::ExternalPayment::result,
|
89
|
+
?settled_amount: Integer,
|
62
90
|
?user_defined_id: String
|
63
91
|
) -> void
|
64
92
|
|
65
93
|
def to_hash: -> {
|
66
94
|
token: String,
|
67
|
-
category: Lithic::Models::ExternalPayment::category,
|
68
95
|
created: Time,
|
96
|
+
family: Lithic::Models::ExternalPayment::family,
|
97
|
+
status: Lithic::Models::ExternalPayment::status,
|
98
|
+
updated: Time,
|
99
|
+
category: Lithic::Models::ExternalPayment::category,
|
69
100
|
currency: String,
|
70
101
|
events: ::Array[Lithic::ExternalPayment::Event],
|
71
102
|
financial_account_token: String,
|
@@ -73,11 +104,44 @@ module Lithic
|
|
73
104
|
pending_amount: Integer,
|
74
105
|
result: Lithic::Models::ExternalPayment::result,
|
75
106
|
settled_amount: Integer,
|
76
|
-
status: Lithic::Models::ExternalPayment::status,
|
77
|
-
updated: Time,
|
78
107
|
user_defined_id: String
|
79
108
|
}
|
80
109
|
|
110
|
+
type family =
|
111
|
+
:CARD
|
112
|
+
| :PAYMENT
|
113
|
+
| :TRANSFER
|
114
|
+
| :INTERNAL
|
115
|
+
| :EXTERNAL_PAYMENT
|
116
|
+
| :MANAGEMENT_OPERATION
|
117
|
+
|
118
|
+
module Family
|
119
|
+
extend Lithic::Internal::Type::Enum
|
120
|
+
|
121
|
+
CARD: :CARD
|
122
|
+
PAYMENT: :PAYMENT
|
123
|
+
TRANSFER: :TRANSFER
|
124
|
+
INTERNAL: :INTERNAL
|
125
|
+
EXTERNAL_PAYMENT: :EXTERNAL_PAYMENT
|
126
|
+
MANAGEMENT_OPERATION: :MANAGEMENT_OPERATION
|
127
|
+
|
128
|
+
def self?.values: -> ::Array[Lithic::Models::ExternalPayment::family]
|
129
|
+
end
|
130
|
+
|
131
|
+
type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED
|
132
|
+
|
133
|
+
module Status
|
134
|
+
extend Lithic::Internal::Type::Enum
|
135
|
+
|
136
|
+
PENDING: :PENDING
|
137
|
+
SETTLED: :SETTLED
|
138
|
+
DECLINED: :DECLINED
|
139
|
+
REVERSED: :REVERSED
|
140
|
+
CANCELED: :CANCELED
|
141
|
+
|
142
|
+
def self?.values: -> ::Array[Lithic::Models::ExternalPayment::status]
|
143
|
+
end
|
144
|
+
|
81
145
|
type category =
|
82
146
|
:EXTERNAL_WIRE | :EXTERNAL_ACH | :EXTERNAL_CHECK | :EXTERNAL_TRANSFER
|
83
147
|
|
@@ -143,12 +207,13 @@ module Lithic
|
|
143
207
|
type: Lithic::Models::ExternalPayment::Event::type_
|
144
208
|
}
|
145
209
|
|
146
|
-
type detailed_result = :APPROVED
|
210
|
+
type detailed_result = :APPROVED | :INSUFFICIENT_FUNDS
|
147
211
|
|
148
212
|
module DetailedResult
|
149
213
|
extend Lithic::Internal::Type::Enum
|
150
214
|
|
151
215
|
APPROVED: :APPROVED
|
216
|
+
INSUFFICIENT_FUNDS: :INSUFFICIENT_FUNDS
|
152
217
|
|
153
218
|
def self?.values: -> ::Array[Lithic::Models::ExternalPayment::Event::detailed_result]
|
154
219
|
end
|
@@ -235,20 +300,6 @@ module Lithic
|
|
235
300
|
|
236
301
|
def self?.values: -> ::Array[Lithic::Models::ExternalPayment::result]
|
237
302
|
end
|
238
|
-
|
239
|
-
type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED
|
240
|
-
|
241
|
-
module Status
|
242
|
-
extend Lithic::Internal::Type::Enum
|
243
|
-
|
244
|
-
PENDING: :PENDING
|
245
|
-
SETTLED: :SETTLED
|
246
|
-
DECLINED: :DECLINED
|
247
|
-
REVERSED: :REVERSED
|
248
|
-
CANCELED: :CANCELED
|
249
|
-
|
250
|
-
def self?.values: -> ::Array[Lithic::Models::ExternalPayment::status]
|
251
|
-
end
|
252
303
|
end
|
253
304
|
end
|
254
305
|
end
|
@@ -166,6 +166,7 @@ module Lithic
|
|
166
166
|
| :SECURITY
|
167
167
|
| :PROGRAM_RECEIVABLES
|
168
168
|
| :COLLECTION
|
169
|
+
| :PROGRAM_BANK_ACCOUNTS_PAYABLE
|
169
170
|
|
170
171
|
module Type
|
171
172
|
extend Lithic::Internal::Type::Enum
|
@@ -179,6 +180,7 @@ module Lithic
|
|
179
180
|
SECURITY: :SECURITY
|
180
181
|
PROGRAM_RECEIVABLES: :PROGRAM_RECEIVABLES
|
181
182
|
COLLECTION: :COLLECTION
|
183
|
+
PROGRAM_BANK_ACCOUNTS_PAYABLE: :PROGRAM_BANK_ACCOUNTS_PAYABLE
|
182
184
|
|
183
185
|
def self?.values: -> ::Array[Lithic::Models::FinancialAccount::type_]
|
184
186
|
end
|
@@ -10,6 +10,7 @@ module Lithic
|
|
10
10
|
| :SECURITY
|
11
11
|
| :PROGRAM_RECEIVABLES
|
12
12
|
| :COLLECTION
|
13
|
+
| :PROGRAM_BANK_ACCOUNTS_PAYABLE
|
13
14
|
|
14
15
|
module InstanceFinancialAccountType
|
15
16
|
extend Lithic::Internal::Type::Enum
|
@@ -23,6 +24,7 @@ module Lithic
|
|
23
24
|
SECURITY: :SECURITY
|
24
25
|
PROGRAM_RECEIVABLES: :PROGRAM_RECEIVABLES
|
25
26
|
COLLECTION: :COLLECTION
|
27
|
+
PROGRAM_BANK_ACCOUNTS_PAYABLE: :PROGRAM_BANK_ACCOUNTS_PAYABLE
|
26
28
|
|
27
29
|
def self?.values: -> ::Array[Lithic::Models::instance_financial_account_type]
|
28
30
|
end
|