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
@@ -101,10 +101,7 @@ module Lithic
|
|
101
101
|
# @!attribute previous_statement_balance
|
102
102
|
#
|
103
103
|
# @return [Lithic::Models::FinancialAccounts::LoanTape::PreviousStatementBalance]
|
104
|
-
required :previous_statement_balance,
|
105
|
-
-> {
|
106
|
-
Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance
|
107
|
-
}
|
104
|
+
required :previous_statement_balance, -> { Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance }
|
108
105
|
|
109
106
|
# @!attribute starting_balance
|
110
107
|
# Balance at the start of the day
|
@@ -231,10 +228,7 @@ module Lithic
|
|
231
228
|
# @!attribute period_state
|
232
229
|
#
|
233
230
|
# @return [Symbol, Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::PeriodState]
|
234
|
-
required :period_state,
|
235
|
-
enum: -> {
|
236
|
-
Lithic::FinancialAccounts::LoanTape::AccountStanding::PeriodState
|
237
|
-
}
|
231
|
+
required :period_state, enum: -> { Lithic::FinancialAccounts::LoanTape::AccountStanding::PeriodState }
|
238
232
|
|
239
233
|
# @!method initialize(consecutive_full_payments_made:, consecutive_minimum_payments_made:, consecutive_minimum_payments_missed:, days_past_due:, financial_account_state:, has_grace:, period_number:, period_state:)
|
240
234
|
# @param consecutive_full_payments_made [Integer] Number of consecutive full payments made
|
@@ -260,9 +254,7 @@ module Lithic
|
|
260
254
|
#
|
261
255
|
# @return [Symbol, Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::Status]
|
262
256
|
required :status,
|
263
|
-
enum: -> {
|
264
|
-
Lithic::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::Status
|
265
|
-
}
|
257
|
+
enum: -> { Lithic::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::Status }
|
266
258
|
|
267
259
|
# @!attribute substatus
|
268
260
|
# Substatus for the financial account
|
@@ -353,10 +345,7 @@ module Lithic
|
|
353
345
|
# Amount due for the past billing cycles.
|
354
346
|
#
|
355
347
|
# @return [Lithic::Models::FinancialAccounts::LoanTape::Balances::PastStatementsDue]
|
356
|
-
required :past_statements_due,
|
357
|
-
-> {
|
358
|
-
Lithic::FinancialAccounts::LoanTape::Balances::PastStatementsDue
|
359
|
-
}
|
348
|
+
required :past_statements_due, -> { Lithic::FinancialAccounts::LoanTape::Balances::PastStatementsDue }
|
360
349
|
|
361
350
|
# @!method initialize(due:, next_statement_due:, past_due:, past_statements_due:)
|
362
351
|
# Some parameter documentations has been truncated, see
|
@@ -560,9 +549,7 @@ module Lithic
|
|
560
549
|
#
|
561
550
|
# @return [Symbol, Lithic::Models::FinancialAccounts::LoanTape::InterestDetails::InterestCalculationMethod]
|
562
551
|
required :interest_calculation_method,
|
563
|
-
enum: -> {
|
564
|
-
Lithic::FinancialAccounts::LoanTape::InterestDetails::InterestCalculationMethod
|
565
|
-
}
|
552
|
+
enum: -> { Lithic::FinancialAccounts::LoanTape::InterestDetails::InterestCalculationMethod }
|
566
553
|
|
567
554
|
# @!attribute interest_for_period
|
568
555
|
#
|
@@ -220,10 +220,7 @@ module Lithic
|
|
220
220
|
# @!attribute period_state
|
221
221
|
#
|
222
222
|
# @return [Symbol, Lithic::Models::FinancialAccounts::Statement::AccountStanding::PeriodState]
|
223
|
-
required :period_state,
|
224
|
-
enum: -> {
|
225
|
-
Lithic::FinancialAccounts::Statement::AccountStanding::PeriodState
|
226
|
-
}
|
223
|
+
required :period_state, enum: -> { Lithic::FinancialAccounts::Statement::AccountStanding::PeriodState }
|
227
224
|
|
228
225
|
# @!method initialize(consecutive_full_payments_made:, consecutive_minimum_payments_made:, consecutive_minimum_payments_missed:, days_past_due:, financial_account_state:, has_grace:, period_number:, period_state:)
|
229
226
|
# @param consecutive_full_payments_made [Integer] Number of consecutive full payments made
|
@@ -249,9 +246,7 @@ module Lithic
|
|
249
246
|
#
|
250
247
|
# @return [Symbol, Lithic::Models::FinancialAccounts::Statement::AccountStanding::FinancialAccountState::Status]
|
251
248
|
required :status,
|
252
|
-
enum: -> {
|
253
|
-
Lithic::FinancialAccounts::Statement::AccountStanding::FinancialAccountState::Status
|
254
|
-
}
|
249
|
+
enum: -> { Lithic::FinancialAccounts::Statement::AccountStanding::FinancialAccountState::Status }
|
255
250
|
|
256
251
|
# @!attribute substatus
|
257
252
|
# Substatus for the financial account
|
@@ -503,9 +498,7 @@ module Lithic
|
|
503
498
|
#
|
504
499
|
# @return [Symbol, Lithic::Models::FinancialAccounts::Statement::InterestDetails::InterestCalculationMethod]
|
505
500
|
required :interest_calculation_method,
|
506
|
-
enum: -> {
|
507
|
-
Lithic::FinancialAccounts::Statement::InterestDetails::InterestCalculationMethod
|
508
|
-
}
|
501
|
+
enum: -> { Lithic::FinancialAccounts::Statement::InterestDetails::InterestCalculationMethod }
|
509
502
|
|
510
503
|
# @!attribute interest_for_period
|
511
504
|
#
|
@@ -9,9 +9,7 @@ module Lithic
|
|
9
9
|
#
|
10
10
|
# @return [Array<Lithic::Models::FinancialAccounts::Statements::StatementLineItems::Data>]
|
11
11
|
required :data,
|
12
|
-
-> {
|
13
|
-
Lithic::Internal::Type::ArrayOf[Lithic::FinancialAccounts::Statements::StatementLineItems::Data]
|
14
|
-
}
|
12
|
+
-> { Lithic::Internal::Type::ArrayOf[Lithic::FinancialAccounts::Statements::StatementLineItems::Data] }
|
15
13
|
|
16
14
|
# @!attribute has_more
|
17
15
|
#
|
@@ -38,10 +36,7 @@ module Lithic
|
|
38
36
|
# @!attribute category
|
39
37
|
#
|
40
38
|
# @return [Symbol, Lithic::Models::FinancialAccounts::Statements::StatementLineItems::Data::Category]
|
41
|
-
required :category,
|
42
|
-
enum: -> {
|
43
|
-
Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category
|
44
|
-
}
|
39
|
+
required :category, enum: -> { Lithic::FinancialAccounts::Statements::StatementLineItems::Data::Category }
|
45
40
|
|
46
41
|
# @!attribute created
|
47
42
|
# Timestamp of when the line item was generated
|
@@ -172,6 +172,8 @@ module Lithic
|
|
172
172
|
# Some parameter documentations has been truncated, see
|
173
173
|
# {Lithic::Models::FinancialTransaction::Event} for more details.
|
174
174
|
#
|
175
|
+
# Financial Event
|
176
|
+
#
|
175
177
|
# @param token [String] Globally unique identifier.
|
176
178
|
#
|
177
179
|
# @param amount [Integer] Amount of the financial event that has been settled in the currency's smallest u
|
data/lib/lithic/models/kyb.rb
CHANGED
@@ -73,7 +73,7 @@ module Lithic
|
|
73
73
|
optional :external_id, String
|
74
74
|
|
75
75
|
# @!attribute kyb_passed_timestamp
|
76
|
-
# An RFC 3339 timestamp indicating when precomputed
|
76
|
+
# An RFC 3339 timestamp indicating when precomputed KYB was completed on the
|
77
77
|
# business with a pass result.
|
78
78
|
#
|
79
79
|
# This field is required only if workflow type is `KYB_BYO`.
|
@@ -107,7 +107,7 @@ module Lithic
|
|
107
107
|
#
|
108
108
|
# @param external_id [String] A user provided id that can be used to link an account holder with an external s
|
109
109
|
#
|
110
|
-
# @param kyb_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed
|
110
|
+
# @param kyb_passed_timestamp [String] An RFC 3339 timestamp indicating when precomputed KYB was completed on the busin
|
111
111
|
#
|
112
112
|
# @param website_url [String] Company website URL.
|
113
113
|
|
@@ -5,91 +5,106 @@ module Lithic
|
|
5
5
|
# @see Lithic::Resources::ManagementOperations#create
|
6
6
|
class ManagementOperationTransaction < Lithic::Internal::Type::BaseModel
|
7
7
|
# @!attribute token
|
8
|
+
# Unique identifier for the transaction
|
8
9
|
#
|
9
10
|
# @return [String]
|
10
11
|
required :token, String
|
11
12
|
|
12
|
-
# @!attribute category
|
13
|
-
#
|
14
|
-
# @return [Symbol, Lithic::Models::ManagementOperationTransaction::Category]
|
15
|
-
required :category, enum: -> { Lithic::ManagementOperationTransaction::Category }
|
16
|
-
|
17
13
|
# @!attribute created
|
14
|
+
# ISO 8601 timestamp of when the transaction was created
|
18
15
|
#
|
19
16
|
# @return [Time]
|
20
17
|
required :created, Time
|
21
18
|
|
19
|
+
# @!attribute family
|
20
|
+
#
|
21
|
+
# @return [Symbol, Lithic::Models::ManagementOperationTransaction::Family]
|
22
|
+
required :family, enum: -> { Lithic::ManagementOperationTransaction::Family }
|
23
|
+
|
24
|
+
# @!attribute status
|
25
|
+
# The status of the transaction
|
26
|
+
#
|
27
|
+
# @return [Symbol, Lithic::Models::ManagementOperationTransaction::Status]
|
28
|
+
required :status, enum: -> { Lithic::ManagementOperationTransaction::Status }
|
29
|
+
|
30
|
+
# @!attribute updated
|
31
|
+
# ISO 8601 timestamp of when the transaction was last updated
|
32
|
+
#
|
33
|
+
# @return [Time]
|
34
|
+
required :updated, Time
|
35
|
+
|
36
|
+
# @!attribute category
|
37
|
+
#
|
38
|
+
# @return [Symbol, Lithic::Models::ManagementOperationTransaction::Category, nil]
|
39
|
+
optional :category, enum: -> { Lithic::ManagementOperationTransaction::Category }
|
40
|
+
|
22
41
|
# @!attribute currency
|
23
42
|
#
|
24
|
-
# @return [String]
|
25
|
-
|
43
|
+
# @return [String, nil]
|
44
|
+
optional :currency, String
|
26
45
|
|
27
46
|
# @!attribute direction
|
28
47
|
#
|
29
|
-
# @return [Symbol, Lithic::Models::ManagementOperationTransaction::Direction]
|
30
|
-
|
48
|
+
# @return [Symbol, Lithic::Models::ManagementOperationTransaction::Direction, nil]
|
49
|
+
optional :direction, enum: -> { Lithic::ManagementOperationTransaction::Direction }
|
31
50
|
|
32
51
|
# @!attribute events
|
33
52
|
#
|
34
|
-
# @return [Array<Lithic::Models::ManagementOperationTransaction::Event
|
35
|
-
|
53
|
+
# @return [Array<Lithic::Models::ManagementOperationTransaction::Event>, nil]
|
54
|
+
optional :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::ManagementOperationTransaction::Event] }
|
55
|
+
|
56
|
+
# @!attribute external_resource
|
57
|
+
# External resource associated with the management operation
|
58
|
+
#
|
59
|
+
# @return [Lithic::Models::ExternalResource, nil]
|
60
|
+
optional :external_resource, -> { Lithic::ExternalResource }, nil?: true
|
36
61
|
|
37
62
|
# @!attribute financial_account_token
|
38
63
|
#
|
39
|
-
# @return [String]
|
40
|
-
|
64
|
+
# @return [String, nil]
|
65
|
+
optional :financial_account_token, String
|
41
66
|
|
42
67
|
# @!attribute pending_amount
|
43
68
|
#
|
44
|
-
# @return [Integer]
|
45
|
-
|
69
|
+
# @return [Integer, nil]
|
70
|
+
optional :pending_amount, Integer
|
46
71
|
|
47
72
|
# @!attribute result
|
48
73
|
#
|
49
|
-
# @return [Symbol, Lithic::Models::ManagementOperationTransaction::Result]
|
50
|
-
|
74
|
+
# @return [Symbol, Lithic::Models::ManagementOperationTransaction::Result, nil]
|
75
|
+
optional :result, enum: -> { Lithic::ManagementOperationTransaction::Result }
|
51
76
|
|
52
77
|
# @!attribute settled_amount
|
53
78
|
#
|
54
|
-
# @return [Integer]
|
55
|
-
|
56
|
-
|
57
|
-
# @!attribute status
|
58
|
-
#
|
59
|
-
# @return [Symbol, Lithic::Models::ManagementOperationTransaction::Status]
|
60
|
-
required :status, enum: -> { Lithic::ManagementOperationTransaction::Status }
|
79
|
+
# @return [Integer, nil]
|
80
|
+
optional :settled_amount, Integer
|
61
81
|
|
62
82
|
# @!attribute transaction_series
|
63
83
|
#
|
64
84
|
# @return [Lithic::Models::ManagementOperationTransaction::TransactionSeries, nil]
|
65
|
-
|
85
|
+
optional :transaction_series,
|
66
86
|
-> {
|
67
87
|
Lithic::ManagementOperationTransaction::TransactionSeries
|
68
88
|
},
|
69
89
|
nil?: true
|
70
90
|
|
71
|
-
# @!attribute updated
|
72
|
-
#
|
73
|
-
# @return [Time]
|
74
|
-
required :updated, Time
|
75
|
-
|
76
|
-
# @!attribute external_resource
|
77
|
-
# External resource associated with the management operation
|
78
|
-
#
|
79
|
-
# @return [Lithic::Models::ExternalResource, nil]
|
80
|
-
optional :external_resource, -> { Lithic::ExternalResource }, nil?: true
|
81
|
-
|
82
91
|
# @!attribute user_defined_id
|
83
92
|
#
|
84
93
|
# @return [String, nil]
|
85
94
|
optional :user_defined_id, String
|
86
95
|
|
87
|
-
# @!method initialize(token:,
|
88
|
-
# @param token [String]
|
96
|
+
# @!method initialize(token:, created:, family:, status:, updated:, category: nil, currency: nil, direction: nil, events: nil, external_resource: nil, financial_account_token: nil, pending_amount: nil, result: nil, settled_amount: nil, transaction_series: nil, user_defined_id: nil)
|
97
|
+
# @param token [String] Unique identifier for the transaction
|
89
98
|
#
|
90
|
-
# @param
|
99
|
+
# @param created [Time] ISO 8601 timestamp of when the transaction was created
|
100
|
+
#
|
101
|
+
# @param family [Symbol, Lithic::Models::ManagementOperationTransaction::Family]
|
91
102
|
#
|
92
|
-
# @param
|
103
|
+
# @param status [Symbol, Lithic::Models::ManagementOperationTransaction::Status] The status of the transaction
|
104
|
+
#
|
105
|
+
# @param updated [Time] ISO 8601 timestamp of when the transaction was last updated
|
106
|
+
#
|
107
|
+
# @param category [Symbol, Lithic::Models::ManagementOperationTransaction::Category]
|
93
108
|
#
|
94
109
|
# @param currency [String]
|
95
110
|
#
|
@@ -97,6 +112,8 @@ module Lithic
|
|
97
112
|
#
|
98
113
|
# @param events [Array<Lithic::Models::ManagementOperationTransaction::Event>]
|
99
114
|
#
|
115
|
+
# @param external_resource [Lithic::Models::ExternalResource, nil] External resource associated with the management operation
|
116
|
+
#
|
100
117
|
# @param financial_account_token [String]
|
101
118
|
#
|
102
119
|
# @param pending_amount [Integer]
|
@@ -105,16 +122,41 @@ module Lithic
|
|
105
122
|
#
|
106
123
|
# @param settled_amount [Integer]
|
107
124
|
#
|
108
|
-
# @param status [Symbol, Lithic::Models::ManagementOperationTransaction::Status]
|
109
|
-
#
|
110
125
|
# @param transaction_series [Lithic::Models::ManagementOperationTransaction::TransactionSeries, nil]
|
111
126
|
#
|
112
|
-
# @param updated [Time]
|
113
|
-
#
|
114
|
-
# @param external_resource [Lithic::Models::ExternalResource, nil] External resource associated with the management operation
|
115
|
-
#
|
116
127
|
# @param user_defined_id [String]
|
117
128
|
|
129
|
+
# @see Lithic::Models::ManagementOperationTransaction#family
|
130
|
+
module Family
|
131
|
+
extend Lithic::Internal::Type::Enum
|
132
|
+
|
133
|
+
CARD = :CARD
|
134
|
+
PAYMENT = :PAYMENT
|
135
|
+
TRANSFER = :TRANSFER
|
136
|
+
INTERNAL = :INTERNAL
|
137
|
+
EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT
|
138
|
+
MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION
|
139
|
+
|
140
|
+
# @!method self.values
|
141
|
+
# @return [Array<Symbol>]
|
142
|
+
end
|
143
|
+
|
144
|
+
# The status of the transaction
|
145
|
+
#
|
146
|
+
# @see Lithic::Models::ManagementOperationTransaction#status
|
147
|
+
module Status
|
148
|
+
extend Lithic::Internal::Type::Enum
|
149
|
+
|
150
|
+
PENDING = :PENDING
|
151
|
+
SETTLED = :SETTLED
|
152
|
+
DECLINED = :DECLINED
|
153
|
+
REVERSED = :REVERSED
|
154
|
+
CANCELED = :CANCELED
|
155
|
+
|
156
|
+
# @!method self.values
|
157
|
+
# @return [Array<Symbol>]
|
158
|
+
end
|
159
|
+
|
118
160
|
# @see Lithic::Models::ManagementOperationTransaction#category
|
119
161
|
module Category
|
120
162
|
extend Lithic::Internal::Type::Enum
|
@@ -160,9 +202,7 @@ module Lithic
|
|
160
202
|
#
|
161
203
|
# @return [Array<Symbol, Lithic::Models::ManagementOperationTransaction::Event::DetailedResult>]
|
162
204
|
required :detailed_results,
|
163
|
-
-> {
|
164
|
-
Lithic::Internal::Type::ArrayOf[enum: Lithic::ManagementOperationTransaction::Event::DetailedResult]
|
165
|
-
}
|
205
|
+
-> { Lithic::Internal::Type::ArrayOf[enum: Lithic::ManagementOperationTransaction::Event::DetailedResult] }
|
166
206
|
|
167
207
|
# @!attribute effective_date
|
168
208
|
#
|
@@ -204,6 +244,7 @@ module Lithic
|
|
204
244
|
extend Lithic::Internal::Type::Enum
|
205
245
|
|
206
246
|
APPROVED = :APPROVED
|
247
|
+
INSUFFICIENT_FUNDS = :INSUFFICIENT_FUNDS
|
207
248
|
|
208
249
|
# @!method self.values
|
209
250
|
# @return [Array<Symbol>]
|
@@ -260,20 +301,6 @@ module Lithic
|
|
260
301
|
# @return [Array<Symbol>]
|
261
302
|
end
|
262
303
|
|
263
|
-
# @see Lithic::Models::ManagementOperationTransaction#status
|
264
|
-
module Status
|
265
|
-
extend Lithic::Internal::Type::Enum
|
266
|
-
|
267
|
-
PENDING = :PENDING
|
268
|
-
SETTLED = :SETTLED
|
269
|
-
DECLINED = :DECLINED
|
270
|
-
REVERSED = :REVERSED
|
271
|
-
CANCELED = :CANCELED
|
272
|
-
|
273
|
-
# @!method self.values
|
274
|
-
# @return [Array<Symbol>]
|
275
|
-
end
|
276
|
-
|
277
304
|
# @see Lithic::Models::ManagementOperationTransaction#transaction_series
|
278
305
|
class TransactionSeries < Lithic::Internal::Type::BaseModel
|
279
306
|
# @!attribute related_transaction_event_token
|
@@ -73,6 +73,12 @@ module Lithic
|
|
73
73
|
# @return [Integer]
|
74
74
|
required :pending_amount, Integer
|
75
75
|
|
76
|
+
# @!attribute related_account_tokens
|
77
|
+
# Account tokens related to a payment transaction
|
78
|
+
#
|
79
|
+
# @return [Lithic::Models::Payment::RelatedAccountTokens]
|
80
|
+
required :related_account_tokens, -> { Lithic::Payment::RelatedAccountTokens }
|
81
|
+
|
76
82
|
# @!attribute result
|
77
83
|
# APPROVED payments were successful while DECLINED payments were declined by
|
78
84
|
# Lithic or returned.
|
@@ -121,7 +127,13 @@ module Lithic
|
|
121
127
|
# @return [Date, nil]
|
122
128
|
optional :expected_release_date, Date
|
123
129
|
|
124
|
-
# @!
|
130
|
+
# @!attribute type
|
131
|
+
# Payment type indicating the specific ACH message or Fedwire transfer type
|
132
|
+
#
|
133
|
+
# @return [Symbol, Lithic::Models::Payment::Type, nil]
|
134
|
+
optional :type, enum: -> { Lithic::Payment::Type }
|
135
|
+
|
136
|
+
# @!method initialize(token:, category:, created:, currency:, descriptor:, direction:, events:, external_bank_account_token:, financial_account_token:, method_:, method_attributes:, pending_amount:, related_account_tokens:, result:, settled_amount:, source:, status:, updated:, user_defined_id:, expected_release_date: nil, type: nil)
|
125
137
|
# Some parameter documentations has been truncated, see {Lithic::Models::Payment}
|
126
138
|
# for more details.
|
127
139
|
#
|
@@ -149,6 +161,8 @@ module Lithic
|
|
149
161
|
#
|
150
162
|
# @param pending_amount [Integer] Pending amount of the payment in the currency's smallest unit (e.g., cents).
|
151
163
|
#
|
164
|
+
# @param related_account_tokens [Lithic::Models::Payment::RelatedAccountTokens] Account tokens related to a payment transaction
|
165
|
+
#
|
152
166
|
# @param result [Symbol, Lithic::Models::Payment::Result] APPROVED payments were successful while DECLINED payments were declined by Lithi
|
153
167
|
#
|
154
168
|
# @param settled_amount [Integer] Amount of the payment that has been settled in the currency's smallest unit (e.g
|
@@ -162,6 +176,8 @@ module Lithic
|
|
162
176
|
# @param user_defined_id [String, nil]
|
163
177
|
#
|
164
178
|
# @param expected_release_date [Date] Date when the financial transaction expected to be released after settlement
|
179
|
+
#
|
180
|
+
# @param type [Symbol, Lithic::Models::Payment::Type] Payment type indicating the specific ACH message or Fedwire transfer type
|
165
181
|
|
166
182
|
# Payment category
|
167
183
|
#
|
@@ -249,6 +265,8 @@ module Lithic
|
|
249
265
|
# Some parameter documentations has been truncated, see
|
250
266
|
# {Lithic::Models::Payment::Event} for more details.
|
251
267
|
#
|
268
|
+
# Payment Event
|
269
|
+
#
|
252
270
|
# @param token [String] Globally unique identifier.
|
253
271
|
#
|
254
272
|
# @param amount [Integer] Amount of the financial event that has been settled in the currency's smallest u
|
@@ -401,6 +419,28 @@ module Lithic
|
|
401
419
|
end
|
402
420
|
end
|
403
421
|
|
422
|
+
# @see Lithic::Models::Payment#related_account_tokens
|
423
|
+
class RelatedAccountTokens < Lithic::Internal::Type::BaseModel
|
424
|
+
# @!attribute account_token
|
425
|
+
# Globally unique identifier for the account
|
426
|
+
#
|
427
|
+
# @return [String, nil]
|
428
|
+
required :account_token, String, nil?: true
|
429
|
+
|
430
|
+
# @!attribute business_account_token
|
431
|
+
# Globally unique identifier for the business account
|
432
|
+
#
|
433
|
+
# @return [String, nil]
|
434
|
+
required :business_account_token, String, nil?: true
|
435
|
+
|
436
|
+
# @!method initialize(account_token:, business_account_token:)
|
437
|
+
# Account tokens related to a payment transaction
|
438
|
+
#
|
439
|
+
# @param account_token [String, nil] Globally unique identifier for the account
|
440
|
+
#
|
441
|
+
# @param business_account_token [String, nil] Globally unique identifier for the business account
|
442
|
+
end
|
443
|
+
|
404
444
|
# APPROVED payments were successful while DECLINED payments were declined by
|
405
445
|
# Lithic or returned.
|
406
446
|
#
|
@@ -446,6 +486,25 @@ module Lithic
|
|
446
486
|
# @!method self.values
|
447
487
|
# @return [Array<Symbol>]
|
448
488
|
end
|
489
|
+
|
490
|
+
# Payment type indicating the specific ACH message or Fedwire transfer type
|
491
|
+
#
|
492
|
+
# @see Lithic::Models::Payment#type
|
493
|
+
module Type
|
494
|
+
extend Lithic::Internal::Type::Enum
|
495
|
+
|
496
|
+
ORIGINATION_CREDIT = :ORIGINATION_CREDIT
|
497
|
+
ORIGINATION_DEBIT = :ORIGINATION_DEBIT
|
498
|
+
RECEIPT_CREDIT = :RECEIPT_CREDIT
|
499
|
+
RECEIPT_DEBIT = :RECEIPT_DEBIT
|
500
|
+
WIRE_INBOUND_PAYMENT = :WIRE_INBOUND_PAYMENT
|
501
|
+
WIRE_INBOUND_ADMIN = :WIRE_INBOUND_ADMIN
|
502
|
+
WIRE_OUTBOUND_PAYMENT = :WIRE_OUTBOUND_PAYMENT
|
503
|
+
WIRE_OUTBOUND_ADMIN = :WIRE_OUTBOUND_ADMIN
|
504
|
+
|
505
|
+
# @!method self.values
|
506
|
+
# @return [Array<Symbol>]
|
507
|
+
end
|
449
508
|
end
|
450
509
|
end
|
451
510
|
end
|
@@ -16,7 +16,7 @@ module Lithic
|
|
16
16
|
optional :ending_before, String
|
17
17
|
|
18
18
|
# @!attribute page_size
|
19
|
-
#
|
19
|
+
# Number of records per page.
|
20
20
|
#
|
21
21
|
# @return [Integer, nil]
|
22
22
|
optional :page_size, Integer
|
@@ -34,7 +34,7 @@ module Lithic
|
|
34
34
|
#
|
35
35
|
# @param ending_before [String] A cursor representing an item's token before which a page of results should end.
|
36
36
|
#
|
37
|
-
# @param page_size [Integer]
|
37
|
+
# @param page_size [Integer] Number of records per page.
|
38
38
|
#
|
39
39
|
# @param starting_after [String] A cursor representing an item's token after which a page of results should begin
|
40
40
|
#
|