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
@@ -3,91 +3,155 @@ module Lithic
|
|
3
3
|
type management_operation_transaction =
|
4
4
|
{
|
5
5
|
token: String,
|
6
|
-
category: Lithic::Models::ManagementOperationTransaction::category,
|
7
6
|
created: Time,
|
7
|
+
family: Lithic::Models::ManagementOperationTransaction::family,
|
8
|
+
status: Lithic::Models::ManagementOperationTransaction::status,
|
9
|
+
updated: Time,
|
10
|
+
category: Lithic::Models::ManagementOperationTransaction::category,
|
8
11
|
currency: String,
|
9
12
|
direction: Lithic::Models::ManagementOperationTransaction::direction,
|
10
13
|
events: ::Array[Lithic::ManagementOperationTransaction::Event],
|
14
|
+
external_resource: Lithic::ExternalResource?,
|
11
15
|
financial_account_token: String,
|
12
16
|
pending_amount: Integer,
|
13
17
|
result: Lithic::Models::ManagementOperationTransaction::result,
|
14
18
|
settled_amount: Integer,
|
15
|
-
status: Lithic::Models::ManagementOperationTransaction::status,
|
16
19
|
transaction_series: Lithic::ManagementOperationTransaction::TransactionSeries?,
|
17
|
-
updated: Time,
|
18
|
-
external_resource: Lithic::ExternalResource?,
|
19
20
|
user_defined_id: String
|
20
21
|
}
|
21
22
|
|
22
23
|
class ManagementOperationTransaction < Lithic::Internal::Type::BaseModel
|
23
24
|
attr_accessor token: String
|
24
25
|
|
25
|
-
attr_accessor category: Lithic::Models::ManagementOperationTransaction::category
|
26
|
-
|
27
26
|
attr_accessor created: Time
|
28
27
|
|
29
|
-
attr_accessor
|
28
|
+
attr_accessor family: Lithic::Models::ManagementOperationTransaction::family
|
30
29
|
|
31
|
-
attr_accessor
|
30
|
+
attr_accessor status: Lithic::Models::ManagementOperationTransaction::status
|
32
31
|
|
33
|
-
attr_accessor
|
32
|
+
attr_accessor updated: Time
|
34
33
|
|
35
|
-
|
34
|
+
attr_reader category: Lithic::Models::ManagementOperationTransaction::category?
|
36
35
|
|
37
|
-
|
36
|
+
def category=: (
|
37
|
+
Lithic::Models::ManagementOperationTransaction::category
|
38
|
+
) -> Lithic::Models::ManagementOperationTransaction::category
|
38
39
|
|
39
|
-
|
40
|
+
attr_reader currency: String?
|
40
41
|
|
41
|
-
|
42
|
+
def currency=: (String) -> String
|
42
43
|
|
43
|
-
|
44
|
+
attr_reader direction: Lithic::Models::ManagementOperationTransaction::direction?
|
44
45
|
|
45
|
-
|
46
|
+
def direction=: (
|
47
|
+
Lithic::Models::ManagementOperationTransaction::direction
|
48
|
+
) -> Lithic::Models::ManagementOperationTransaction::direction
|
46
49
|
|
47
|
-
|
50
|
+
attr_reader events: ::Array[Lithic::ManagementOperationTransaction::Event]?
|
51
|
+
|
52
|
+
def events=: (
|
53
|
+
::Array[Lithic::ManagementOperationTransaction::Event]
|
54
|
+
) -> ::Array[Lithic::ManagementOperationTransaction::Event]
|
48
55
|
|
49
56
|
attr_accessor external_resource: Lithic::ExternalResource?
|
50
57
|
|
58
|
+
attr_reader financial_account_token: String?
|
59
|
+
|
60
|
+
def financial_account_token=: (String) -> String
|
61
|
+
|
62
|
+
attr_reader pending_amount: Integer?
|
63
|
+
|
64
|
+
def pending_amount=: (Integer) -> Integer
|
65
|
+
|
66
|
+
attr_reader result: Lithic::Models::ManagementOperationTransaction::result?
|
67
|
+
|
68
|
+
def result=: (
|
69
|
+
Lithic::Models::ManagementOperationTransaction::result
|
70
|
+
) -> Lithic::Models::ManagementOperationTransaction::result
|
71
|
+
|
72
|
+
attr_reader settled_amount: Integer?
|
73
|
+
|
74
|
+
def settled_amount=: (Integer) -> Integer
|
75
|
+
|
76
|
+
attr_accessor transaction_series: Lithic::ManagementOperationTransaction::TransactionSeries?
|
77
|
+
|
51
78
|
attr_reader user_defined_id: String?
|
52
79
|
|
53
80
|
def user_defined_id=: (String) -> String
|
54
81
|
|
55
82
|
def initialize: (
|
56
83
|
token: String,
|
57
|
-
category: Lithic::Models::ManagementOperationTransaction::category,
|
58
84
|
created: Time,
|
59
|
-
|
60
|
-
direction: Lithic::Models::ManagementOperationTransaction::direction,
|
61
|
-
events: ::Array[Lithic::ManagementOperationTransaction::Event],
|
62
|
-
financial_account_token: String,
|
63
|
-
pending_amount: Integer,
|
64
|
-
result: Lithic::Models::ManagementOperationTransaction::result,
|
65
|
-
settled_amount: Integer,
|
85
|
+
family: Lithic::Models::ManagementOperationTransaction::family,
|
66
86
|
status: Lithic::Models::ManagementOperationTransaction::status,
|
67
|
-
transaction_series: Lithic::ManagementOperationTransaction::TransactionSeries?,
|
68
87
|
updated: Time,
|
88
|
+
?category: Lithic::Models::ManagementOperationTransaction::category,
|
89
|
+
?currency: String,
|
90
|
+
?direction: Lithic::Models::ManagementOperationTransaction::direction,
|
91
|
+
?events: ::Array[Lithic::ManagementOperationTransaction::Event],
|
69
92
|
?external_resource: Lithic::ExternalResource?,
|
93
|
+
?financial_account_token: String,
|
94
|
+
?pending_amount: Integer,
|
95
|
+
?result: Lithic::Models::ManagementOperationTransaction::result,
|
96
|
+
?settled_amount: Integer,
|
97
|
+
?transaction_series: Lithic::ManagementOperationTransaction::TransactionSeries?,
|
70
98
|
?user_defined_id: String
|
71
99
|
) -> void
|
72
100
|
|
73
101
|
def to_hash: -> {
|
74
102
|
token: String,
|
75
|
-
category: Lithic::Models::ManagementOperationTransaction::category,
|
76
103
|
created: Time,
|
104
|
+
family: Lithic::Models::ManagementOperationTransaction::family,
|
105
|
+
status: Lithic::Models::ManagementOperationTransaction::status,
|
106
|
+
updated: Time,
|
107
|
+
category: Lithic::Models::ManagementOperationTransaction::category,
|
77
108
|
currency: String,
|
78
109
|
direction: Lithic::Models::ManagementOperationTransaction::direction,
|
79
110
|
events: ::Array[Lithic::ManagementOperationTransaction::Event],
|
111
|
+
external_resource: Lithic::ExternalResource?,
|
80
112
|
financial_account_token: String,
|
81
113
|
pending_amount: Integer,
|
82
114
|
result: Lithic::Models::ManagementOperationTransaction::result,
|
83
115
|
settled_amount: Integer,
|
84
|
-
status: Lithic::Models::ManagementOperationTransaction::status,
|
85
116
|
transaction_series: Lithic::ManagementOperationTransaction::TransactionSeries?,
|
86
|
-
updated: Time,
|
87
|
-
external_resource: Lithic::ExternalResource?,
|
88
117
|
user_defined_id: String
|
89
118
|
}
|
90
119
|
|
120
|
+
type family =
|
121
|
+
:CARD
|
122
|
+
| :PAYMENT
|
123
|
+
| :TRANSFER
|
124
|
+
| :INTERNAL
|
125
|
+
| :EXTERNAL_PAYMENT
|
126
|
+
| :MANAGEMENT_OPERATION
|
127
|
+
|
128
|
+
module Family
|
129
|
+
extend Lithic::Internal::Type::Enum
|
130
|
+
|
131
|
+
CARD: :CARD
|
132
|
+
PAYMENT: :PAYMENT
|
133
|
+
TRANSFER: :TRANSFER
|
134
|
+
INTERNAL: :INTERNAL
|
135
|
+
EXTERNAL_PAYMENT: :EXTERNAL_PAYMENT
|
136
|
+
MANAGEMENT_OPERATION: :MANAGEMENT_OPERATION
|
137
|
+
|
138
|
+
def self?.values: -> ::Array[Lithic::Models::ManagementOperationTransaction::family]
|
139
|
+
end
|
140
|
+
|
141
|
+
type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED
|
142
|
+
|
143
|
+
module Status
|
144
|
+
extend Lithic::Internal::Type::Enum
|
145
|
+
|
146
|
+
PENDING: :PENDING
|
147
|
+
SETTLED: :SETTLED
|
148
|
+
DECLINED: :DECLINED
|
149
|
+
REVERSED: :REVERSED
|
150
|
+
CANCELED: :CANCELED
|
151
|
+
|
152
|
+
def self?.values: -> ::Array[Lithic::Models::ManagementOperationTransaction::status]
|
153
|
+
end
|
154
|
+
|
91
155
|
type category =
|
92
156
|
:MANAGEMENT_FEE
|
93
157
|
| :MANAGEMENT_DISPUTE
|
@@ -176,12 +240,13 @@ module Lithic
|
|
176
240
|
subtype: String
|
177
241
|
}
|
178
242
|
|
179
|
-
type detailed_result = :APPROVED
|
243
|
+
type detailed_result = :APPROVED | :INSUFFICIENT_FUNDS
|
180
244
|
|
181
245
|
module DetailedResult
|
182
246
|
extend Lithic::Internal::Type::Enum
|
183
247
|
|
184
248
|
APPROVED: :APPROVED
|
249
|
+
INSUFFICIENT_FUNDS: :INSUFFICIENT_FUNDS
|
185
250
|
|
186
251
|
def self?.values: -> ::Array[Lithic::Models::ManagementOperationTransaction::Event::detailed_result]
|
187
252
|
end
|
@@ -256,20 +321,6 @@ module Lithic
|
|
256
321
|
def self?.values: -> ::Array[Lithic::Models::ManagementOperationTransaction::result]
|
257
322
|
end
|
258
323
|
|
259
|
-
type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED
|
260
|
-
|
261
|
-
module Status
|
262
|
-
extend Lithic::Internal::Type::Enum
|
263
|
-
|
264
|
-
PENDING: :PENDING
|
265
|
-
SETTLED: :SETTLED
|
266
|
-
DECLINED: :DECLINED
|
267
|
-
REVERSED: :REVERSED
|
268
|
-
CANCELED: :CANCELED
|
269
|
-
|
270
|
-
def self?.values: -> ::Array[Lithic::Models::ManagementOperationTransaction::status]
|
271
|
-
end
|
272
|
-
|
273
324
|
type transaction_series =
|
274
325
|
{
|
275
326
|
related_transaction_event_token: String?,
|
@@ -14,13 +14,15 @@ module Lithic
|
|
14
14
|
method_: Lithic::Models::Payment::method_,
|
15
15
|
method_attributes: Lithic::Payment::MethodAttributes,
|
16
16
|
pending_amount: Integer,
|
17
|
+
related_account_tokens: Lithic::Payment::RelatedAccountTokens,
|
17
18
|
result: Lithic::Models::Payment::result,
|
18
19
|
settled_amount: Integer,
|
19
20
|
source: Lithic::Models::Payment::source,
|
20
21
|
status: Lithic::Models::Payment::status,
|
21
22
|
updated: Time,
|
22
23
|
user_defined_id: String?,
|
23
|
-
expected_release_date: Date
|
24
|
+
expected_release_date: Date,
|
25
|
+
type: Lithic::Models::Payment::type_
|
24
26
|
}
|
25
27
|
|
26
28
|
class Payment < Lithic::Internal::Type::BaseModel
|
@@ -48,6 +50,8 @@ module Lithic
|
|
48
50
|
|
49
51
|
attr_accessor pending_amount: Integer
|
50
52
|
|
53
|
+
attr_accessor related_account_tokens: Lithic::Payment::RelatedAccountTokens
|
54
|
+
|
51
55
|
attr_accessor result: Lithic::Models::Payment::result
|
52
56
|
|
53
57
|
attr_accessor settled_amount: Integer
|
@@ -64,6 +68,12 @@ module Lithic
|
|
64
68
|
|
65
69
|
def expected_release_date=: (Date) -> Date
|
66
70
|
|
71
|
+
attr_reader type: Lithic::Models::Payment::type_?
|
72
|
+
|
73
|
+
def type=: (
|
74
|
+
Lithic::Models::Payment::type_
|
75
|
+
) -> Lithic::Models::Payment::type_
|
76
|
+
|
67
77
|
def initialize: (
|
68
78
|
token: String,
|
69
79
|
category: Lithic::Models::Payment::category,
|
@@ -77,13 +87,15 @@ module Lithic
|
|
77
87
|
method_: Lithic::Models::Payment::method_,
|
78
88
|
method_attributes: Lithic::Payment::MethodAttributes,
|
79
89
|
pending_amount: Integer,
|
90
|
+
related_account_tokens: Lithic::Payment::RelatedAccountTokens,
|
80
91
|
result: Lithic::Models::Payment::result,
|
81
92
|
settled_amount: Integer,
|
82
93
|
source: Lithic::Models::Payment::source,
|
83
94
|
status: Lithic::Models::Payment::status,
|
84
95
|
updated: Time,
|
85
96
|
user_defined_id: String?,
|
86
|
-
?expected_release_date: Date
|
97
|
+
?expected_release_date: Date,
|
98
|
+
?type: Lithic::Models::Payment::type_
|
87
99
|
) -> void
|
88
100
|
|
89
101
|
def to_hash: -> {
|
@@ -99,13 +111,15 @@ module Lithic
|
|
99
111
|
method_: Lithic::Models::Payment::method_,
|
100
112
|
method_attributes: Lithic::Payment::MethodAttributes,
|
101
113
|
pending_amount: Integer,
|
114
|
+
related_account_tokens: Lithic::Payment::RelatedAccountTokens,
|
102
115
|
result: Lithic::Models::Payment::result,
|
103
116
|
settled_amount: Integer,
|
104
117
|
source: Lithic::Models::Payment::source,
|
105
118
|
status: Lithic::Models::Payment::status,
|
106
119
|
updated: Time,
|
107
120
|
user_defined_id: String?,
|
108
|
-
expected_release_date: Date
|
121
|
+
expected_release_date: Date,
|
122
|
+
type: Lithic::Models::Payment::type_
|
109
123
|
}
|
110
124
|
|
111
125
|
type category = :ACH
|
@@ -308,6 +322,25 @@ module Lithic
|
|
308
322
|
end
|
309
323
|
end
|
310
324
|
|
325
|
+
type related_account_tokens =
|
326
|
+
{ account_token: String?, business_account_token: String? }
|
327
|
+
|
328
|
+
class RelatedAccountTokens < Lithic::Internal::Type::BaseModel
|
329
|
+
attr_accessor account_token: String?
|
330
|
+
|
331
|
+
attr_accessor business_account_token: String?
|
332
|
+
|
333
|
+
def initialize: (
|
334
|
+
account_token: String?,
|
335
|
+
business_account_token: String?
|
336
|
+
) -> void
|
337
|
+
|
338
|
+
def to_hash: -> {
|
339
|
+
account_token: String?,
|
340
|
+
business_account_token: String?
|
341
|
+
}
|
342
|
+
end
|
343
|
+
|
311
344
|
type result = :APPROVED | :DECLINED
|
312
345
|
|
313
346
|
module Result
|
@@ -342,6 +375,31 @@ module Lithic
|
|
342
375
|
|
343
376
|
def self?.values: -> ::Array[Lithic::Models::Payment::status]
|
344
377
|
end
|
378
|
+
|
379
|
+
type type_ =
|
380
|
+
:ORIGINATION_CREDIT
|
381
|
+
| :ORIGINATION_DEBIT
|
382
|
+
| :RECEIPT_CREDIT
|
383
|
+
| :RECEIPT_DEBIT
|
384
|
+
| :WIRE_INBOUND_PAYMENT
|
385
|
+
| :WIRE_INBOUND_ADMIN
|
386
|
+
| :WIRE_OUTBOUND_PAYMENT
|
387
|
+
| :WIRE_OUTBOUND_ADMIN
|
388
|
+
|
389
|
+
module Type
|
390
|
+
extend Lithic::Internal::Type::Enum
|
391
|
+
|
392
|
+
ORIGINATION_CREDIT: :ORIGINATION_CREDIT
|
393
|
+
ORIGINATION_DEBIT: :ORIGINATION_DEBIT
|
394
|
+
RECEIPT_CREDIT: :RECEIPT_CREDIT
|
395
|
+
RECEIPT_DEBIT: :RECEIPT_DEBIT
|
396
|
+
WIRE_INBOUND_PAYMENT: :WIRE_INBOUND_PAYMENT
|
397
|
+
WIRE_INBOUND_ADMIN: :WIRE_INBOUND_ADMIN
|
398
|
+
WIRE_OUTBOUND_PAYMENT: :WIRE_OUTBOUND_PAYMENT
|
399
|
+
WIRE_OUTBOUND_ADMIN: :WIRE_OUTBOUND_ADMIN
|
400
|
+
|
401
|
+
def self?.values: -> ::Array[Lithic::Models::Payment::type_]
|
402
|
+
end
|
345
403
|
end
|
346
404
|
end
|
347
405
|
end
|
@@ -149,6 +149,7 @@ module Lithic
|
|
149
149
|
| :ARBITRATION
|
150
150
|
| :CHARGEBACK
|
151
151
|
| :CLEARING
|
152
|
+
| :COLLABORATION
|
152
153
|
| :FEE
|
153
154
|
| :FINANCIAL
|
154
155
|
| :"NON-FINANCIAL"
|
@@ -162,6 +163,7 @@ module Lithic
|
|
162
163
|
ARBITRATION: :ARBITRATION
|
163
164
|
CHARGEBACK: :CHARGEBACK
|
164
165
|
CLEARING: :CLEARING
|
166
|
+
COLLABORATION: :COLLABORATION
|
165
167
|
FEE: :FEE
|
166
168
|
FINANCIAL: :FINANCIAL
|
167
169
|
NON_FINANCIAL: :"NON-FINANCIAL"
|
@@ -308,38 +308,38 @@ module Lithic
|
|
308
308
|
|
309
309
|
type merchant =
|
310
310
|
{
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
311
|
+
risk_indicator: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Merchant::RiskIndicator,
|
312
|
+
id: String?,
|
313
|
+
country: String?,
|
314
|
+
mcc: String?,
|
315
|
+
name: String?
|
316
316
|
}
|
317
317
|
|
318
318
|
class Merchant < Lithic::Internal::Type::BaseModel
|
319
|
-
attr_accessor
|
319
|
+
attr_accessor risk_indicator: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Merchant::RiskIndicator
|
320
320
|
|
321
|
-
attr_accessor
|
321
|
+
attr_accessor id: String?
|
322
322
|
|
323
|
-
attr_accessor
|
323
|
+
attr_accessor country: String?
|
324
324
|
|
325
|
-
attr_accessor
|
325
|
+
attr_accessor mcc: String?
|
326
326
|
|
327
|
-
attr_accessor
|
327
|
+
attr_accessor name: String?
|
328
328
|
|
329
329
|
def initialize: (
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
330
|
+
risk_indicator: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Merchant::RiskIndicator,
|
331
|
+
?id: String?,
|
332
|
+
?country: String?,
|
333
|
+
?mcc: String?,
|
334
|
+
?name: String?
|
335
335
|
) -> void
|
336
336
|
|
337
337
|
def to_hash: -> {
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
338
|
+
risk_indicator: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Merchant::RiskIndicator,
|
339
|
+
id: String?,
|
340
|
+
country: String?,
|
341
|
+
mcc: String?,
|
342
|
+
name: String?
|
343
343
|
}
|
344
344
|
|
345
345
|
type risk_indicator =
|
@@ -535,18 +535,73 @@ module Lithic
|
|
535
535
|
end
|
536
536
|
end
|
537
537
|
|
538
|
-
type app =
|
538
|
+
type app =
|
539
|
+
{
|
540
|
+
device: String?,
|
541
|
+
device_info: String?,
|
542
|
+
ip: String,
|
543
|
+
latitude: Float?,
|
544
|
+
locale: String?,
|
545
|
+
longitude: Float?,
|
546
|
+
os: String?,
|
547
|
+
platform: String?,
|
548
|
+
screen_height: Integer?,
|
549
|
+
screen_width: Integer?,
|
550
|
+
time_zone: String?
|
551
|
+
}
|
539
552
|
|
540
553
|
class App < Lithic::Internal::Type::BaseModel
|
554
|
+
attr_accessor device: String?
|
555
|
+
|
541
556
|
attr_accessor device_info: String?
|
542
557
|
|
543
558
|
attr_reader ip: String?
|
544
559
|
|
545
560
|
def ip=: (String) -> String
|
546
561
|
|
547
|
-
|
562
|
+
attr_accessor latitude: Float?
|
563
|
+
|
564
|
+
attr_accessor locale: String?
|
565
|
+
|
566
|
+
attr_accessor longitude: Float?
|
567
|
+
|
568
|
+
attr_accessor os: String?
|
569
|
+
|
570
|
+
attr_accessor platform: String?
|
571
|
+
|
572
|
+
attr_accessor screen_height: Integer?
|
573
|
+
|
574
|
+
attr_accessor screen_width: Integer?
|
548
575
|
|
549
|
-
|
576
|
+
attr_accessor time_zone: String?
|
577
|
+
|
578
|
+
def initialize: (
|
579
|
+
?device: String?,
|
580
|
+
?device_info: String?,
|
581
|
+
?ip: String,
|
582
|
+
?latitude: Float?,
|
583
|
+
?locale: String?,
|
584
|
+
?longitude: Float?,
|
585
|
+
?os: String?,
|
586
|
+
?platform: String?,
|
587
|
+
?screen_height: Integer?,
|
588
|
+
?screen_width: Integer?,
|
589
|
+
?time_zone: String?
|
590
|
+
) -> void
|
591
|
+
|
592
|
+
def to_hash: -> {
|
593
|
+
device: String?,
|
594
|
+
device_info: String?,
|
595
|
+
ip: String,
|
596
|
+
latitude: Float?,
|
597
|
+
locale: String?,
|
598
|
+
longitude: Float?,
|
599
|
+
os: String?,
|
600
|
+
platform: String?,
|
601
|
+
screen_height: Integer?,
|
602
|
+
screen_width: Integer?,
|
603
|
+
time_zone: String?
|
604
|
+
}
|
550
605
|
end
|
551
606
|
|
552
607
|
type authentication_request_type =
|
@@ -628,21 +683,26 @@ module Lithic
|
|
628
683
|
type challenge_metadata =
|
629
684
|
{
|
630
685
|
method_type: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::ChallengeMetadata::method_type,
|
686
|
+
status: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::ChallengeMetadata::status,
|
631
687
|
phone_number: String?
|
632
688
|
}
|
633
689
|
|
634
690
|
class ChallengeMetadata < Lithic::Internal::Type::BaseModel
|
635
691
|
attr_accessor method_type: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::ChallengeMetadata::method_type
|
636
692
|
|
693
|
+
attr_accessor status: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::ChallengeMetadata::status
|
694
|
+
|
637
695
|
attr_accessor phone_number: String?
|
638
696
|
|
639
697
|
def initialize: (
|
640
698
|
method_type: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::ChallengeMetadata::method_type,
|
699
|
+
status: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::ChallengeMetadata::status,
|
641
700
|
?phone_number: String?
|
642
701
|
) -> void
|
643
702
|
|
644
703
|
def to_hash: -> {
|
645
704
|
method_type: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::ChallengeMetadata::method_type,
|
705
|
+
status: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::ChallengeMetadata::status,
|
646
706
|
phone_number: String?
|
647
707
|
}
|
648
708
|
|
@@ -656,6 +716,33 @@ module Lithic
|
|
656
716
|
|
657
717
|
def self?.values: -> ::Array[Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::ChallengeMetadata::method_type]
|
658
718
|
end
|
719
|
+
|
720
|
+
type status =
|
721
|
+
:SUCCESS
|
722
|
+
| :PENDING
|
723
|
+
| :SMS_DELIVERY_FAILED
|
724
|
+
| :CARDHOLDER_TIMEOUT
|
725
|
+
| :CANCELED_VIA_CHALLENGE_UI
|
726
|
+
| :CANCELED_OOB
|
727
|
+
| :ATTEMPTS_EXCEEDED
|
728
|
+
| :ABORTED
|
729
|
+
| :ERROR
|
730
|
+
|
731
|
+
module Status
|
732
|
+
extend Lithic::Internal::Type::Enum
|
733
|
+
|
734
|
+
SUCCESS: :SUCCESS
|
735
|
+
PENDING: :PENDING
|
736
|
+
SMS_DELIVERY_FAILED: :SMS_DELIVERY_FAILED
|
737
|
+
CARDHOLDER_TIMEOUT: :CARDHOLDER_TIMEOUT
|
738
|
+
CANCELED_VIA_CHALLENGE_UI: :CANCELED_VIA_CHALLENGE_UI
|
739
|
+
CANCELED_OOB: :CANCELED_OOB
|
740
|
+
ATTEMPTS_EXCEEDED: :ATTEMPTS_EXCEEDED
|
741
|
+
ABORTED: :ABORTED
|
742
|
+
ERROR: :ERROR
|
743
|
+
|
744
|
+
def self?.values: -> ::Array[Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::ChallengeMetadata::status]
|
745
|
+
end
|
659
746
|
end
|
660
747
|
|
661
748
|
type challenge_orchestrated_by = :LITHIC | :CUSTOMER | :NO_CHALLENGE
|
@@ -756,7 +756,8 @@ module Lithic
|
|
756
756
|
end
|
757
757
|
|
758
758
|
type result =
|
759
|
-
:
|
759
|
+
:ACCOUNT_PAUSED
|
760
|
+
| :ACCOUNT_STATE_TRANSACTION_FAIL
|
760
761
|
| :APPROVED
|
761
762
|
| :BANK_CONNECTION_ERROR
|
762
763
|
| :BANK_NOT_VERIFIED
|
@@ -783,6 +784,7 @@ module Lithic
|
|
783
784
|
module Result
|
784
785
|
extend Lithic::Internal::Type::Enum
|
785
786
|
|
787
|
+
ACCOUNT_PAUSED: :ACCOUNT_PAUSED
|
786
788
|
ACCOUNT_STATE_TRANSACTION_FAIL: :ACCOUNT_STATE_TRANSACTION_FAIL
|
787
789
|
APPROVED: :APPROVED
|
788
790
|
BANK_CONNECTION_ERROR: :BANK_CONNECTION_ERROR
|
@@ -1030,6 +1032,7 @@ module Lithic
|
|
1030
1032
|
| :ACCOUNT_INACTIVE
|
1031
1033
|
| :ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED
|
1032
1034
|
| :ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED
|
1035
|
+
| :ACCOUNT_PAUSED
|
1033
1036
|
| :ACCOUNT_UNDER_REVIEW
|
1034
1037
|
| :ADDRESS_INCORRECT
|
1035
1038
|
| :APPROVED
|
@@ -1086,6 +1089,7 @@ module Lithic
|
|
1086
1089
|
ACCOUNT_INACTIVE: :ACCOUNT_INACTIVE
|
1087
1090
|
ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED: :ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED
|
1088
1091
|
ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED: :ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED
|
1092
|
+
ACCOUNT_PAUSED: :ACCOUNT_PAUSED
|
1089
1093
|
ACCOUNT_UNDER_REVIEW: :ACCOUNT_UNDER_REVIEW
|
1090
1094
|
ADDRESS_INCORRECT: :ADDRESS_INCORRECT
|
1091
1095
|
APPROVED: :APPROVED
|
@@ -1273,7 +1277,8 @@ module Lithic
|
|
1273
1277
|
end
|
1274
1278
|
|
1275
1279
|
type result =
|
1276
|
-
:
|
1280
|
+
:ACCOUNT_PAUSED
|
1281
|
+
| :ACCOUNT_STATE_TRANSACTION_FAIL
|
1277
1282
|
| :APPROVED
|
1278
1283
|
| :BANK_CONNECTION_ERROR
|
1279
1284
|
| :BANK_NOT_VERIFIED
|
@@ -1300,6 +1305,7 @@ module Lithic
|
|
1300
1305
|
module Result
|
1301
1306
|
extend Lithic::Internal::Type::Enum
|
1302
1307
|
|
1308
|
+
ACCOUNT_PAUSED: :ACCOUNT_PAUSED
|
1303
1309
|
ACCOUNT_STATE_TRANSACTION_FAIL: :ACCOUNT_STATE_TRANSACTION_FAIL
|
1304
1310
|
APPROVED: :APPROVED
|
1305
1311
|
BANK_CONNECTION_ERROR: :BANK_CONNECTION_ERROR
|
@@ -1364,6 +1370,7 @@ module Lithic
|
|
1364
1370
|
| :ACCOUNT_INACTIVE
|
1365
1371
|
| :ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED
|
1366
1372
|
| :ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED
|
1373
|
+
| :ACCOUNT_PAUSED
|
1367
1374
|
| :ACCOUNT_UNDER_REVIEW
|
1368
1375
|
| :ADDRESS_INCORRECT
|
1369
1376
|
| :APPROVED
|
@@ -1420,6 +1427,7 @@ module Lithic
|
|
1420
1427
|
ACCOUNT_INACTIVE: :ACCOUNT_INACTIVE
|
1421
1428
|
ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED: :ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED
|
1422
1429
|
ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED: :ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED
|
1430
|
+
ACCOUNT_PAUSED: :ACCOUNT_PAUSED
|
1423
1431
|
ACCOUNT_UNDER_REVIEW: :ACCOUNT_UNDER_REVIEW
|
1424
1432
|
ADDRESS_INCORRECT: :ADDRESS_INCORRECT
|
1425
1433
|
APPROVED: :APPROVED
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Models
|
3
|
+
type wire_party_details =
|
4
|
+
{
|
5
|
+
account_number: String?,
|
6
|
+
agent_id: String?,
|
7
|
+
agent_name: String?,
|
8
|
+
name: String?
|
9
|
+
}
|
10
|
+
|
11
|
+
class WirePartyDetails < Lithic::Internal::Type::BaseModel
|
12
|
+
attr_accessor account_number: String?
|
13
|
+
|
14
|
+
attr_accessor agent_id: String?
|
15
|
+
|
16
|
+
attr_accessor agent_name: String?
|
17
|
+
|
18
|
+
attr_accessor name: String?
|
19
|
+
|
20
|
+
def initialize: (
|
21
|
+
?account_number: String?,
|
22
|
+
?agent_id: String?,
|
23
|
+
?agent_name: String?,
|
24
|
+
?name: String?
|
25
|
+
) -> void
|
26
|
+
|
27
|
+
def to_hash: -> {
|
28
|
+
account_number: String?,
|
29
|
+
agent_id: String?,
|
30
|
+
agent_name: String?,
|
31
|
+
name: String?
|
32
|
+
}
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
data/sig/lithic/models.rbs
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
module Lithic
|
2
2
|
class Account = Lithic::Models::Account
|
3
3
|
|
4
|
+
class AccountActivityListParams = Lithic::Models::AccountActivityListParams
|
5
|
+
|
6
|
+
class AccountActivityRetrieveTransactionParams = Lithic::Models::AccountActivityRetrieveTransactionParams
|
7
|
+
|
4
8
|
module AccountFinancialAccountType = Lithic::Models::AccountFinancialAccountType
|
5
9
|
|
6
10
|
class AccountHolder = Lithic::Models::AccountHolder
|
@@ -342,4 +346,6 @@ module Lithic
|
|
342
346
|
class TransferCreateParams = Lithic::Models::TransferCreateParams
|
343
347
|
|
344
348
|
module VerificationMethod = Lithic::Models::VerificationMethod
|
349
|
+
|
350
|
+
class WirePartyDetails = Lithic::Models::WirePartyDetails
|
345
351
|
end
|