lithic 0.1.0.pre.alpha.40 → 0.1.0.pre.alpha.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -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 +156 -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_list_params.rb +1 -0
- 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/events/subscription_create_params.rb +1 -3
- data/lib/lithic/models/events/subscription_update_params.rb +1 -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 +145 -12
- data/lib/lithic/models/three_ds/authentication_simulate_params.rb +1 -4
- data/lib/lithic/models/tokenization.rb +1 -1
- 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/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 +359 -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_list_params.rbi +2 -0
- 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/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 +222 -19
- 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/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_list_params.rbs +2 -1
- 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/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 +90 -3
- 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/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,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
|
@@ -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"
|