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
@@ -5,85 +5,139 @@ module Lithic
|
|
5
5
|
# @see Lithic::Resources::ExternalPayments#create
|
6
6
|
class ExternalPayment < Lithic::Internal::Type::BaseModel
|
7
7
|
# @!attribute token
|
8
|
+
# Unique identifier for the transaction
|
8
9
|
#
|
9
10
|
# @return [String]
|
10
11
|
required :token, String
|
11
12
|
|
12
|
-
# @!attribute category
|
13
|
-
#
|
14
|
-
# @return [Symbol, Lithic::Models::ExternalPayment::Category]
|
15
|
-
required :category, enum: -> { Lithic::ExternalPayment::Category }
|
16
|
-
|
17
13
|
# @!attribute created
|
14
|
+
# ISO 8601 timestamp of when the transaction was created
|
18
15
|
#
|
19
16
|
# @return [Time]
|
20
17
|
required :created, Time
|
21
18
|
|
19
|
+
# @!attribute family
|
20
|
+
#
|
21
|
+
# @return [Symbol, Lithic::Models::ExternalPayment::Family]
|
22
|
+
required :family, enum: -> { Lithic::ExternalPayment::Family }
|
23
|
+
|
24
|
+
# @!attribute status
|
25
|
+
# The status of the transaction
|
26
|
+
#
|
27
|
+
# @return [Symbol, Lithic::Models::ExternalPayment::Status]
|
28
|
+
required :status, enum: -> { Lithic::ExternalPayment::Status }
|
29
|
+
|
30
|
+
# @!attribute updated
|
31
|
+
# ISO 8601 timestamp of when the transaction was last updated
|
32
|
+
#
|
33
|
+
# @return [Time]
|
34
|
+
required :updated, Time
|
35
|
+
|
36
|
+
# @!attribute category
|
37
|
+
#
|
38
|
+
# @return [Symbol, Lithic::Models::ExternalPayment::Category, nil]
|
39
|
+
optional :category, enum: -> { Lithic::ExternalPayment::Category }
|
40
|
+
|
22
41
|
# @!attribute currency
|
23
42
|
#
|
24
|
-
# @return [String]
|
25
|
-
|
43
|
+
# @return [String, nil]
|
44
|
+
optional :currency, String
|
26
45
|
|
27
46
|
# @!attribute events
|
28
47
|
#
|
29
|
-
# @return [Array<Lithic::Models::ExternalPayment::Event
|
30
|
-
|
48
|
+
# @return [Array<Lithic::Models::ExternalPayment::Event>, nil]
|
49
|
+
optional :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::ExternalPayment::Event] }
|
31
50
|
|
32
51
|
# @!attribute financial_account_token
|
33
52
|
#
|
34
|
-
# @return [String]
|
35
|
-
|
53
|
+
# @return [String, nil]
|
54
|
+
optional :financial_account_token, String
|
36
55
|
|
37
56
|
# @!attribute payment_type
|
38
57
|
#
|
39
|
-
# @return [Symbol, Lithic::Models::ExternalPayment::PaymentType]
|
40
|
-
|
58
|
+
# @return [Symbol, Lithic::Models::ExternalPayment::PaymentType, nil]
|
59
|
+
optional :payment_type, enum: -> { Lithic::ExternalPayment::PaymentType }
|
41
60
|
|
42
61
|
# @!attribute pending_amount
|
43
62
|
#
|
44
|
-
# @return [Integer]
|
45
|
-
|
63
|
+
# @return [Integer, nil]
|
64
|
+
optional :pending_amount, Integer
|
46
65
|
|
47
66
|
# @!attribute result
|
48
67
|
#
|
49
|
-
# @return [Symbol, Lithic::Models::ExternalPayment::Result]
|
50
|
-
|
68
|
+
# @return [Symbol, Lithic::Models::ExternalPayment::Result, nil]
|
69
|
+
optional :result, enum: -> { Lithic::ExternalPayment::Result }
|
51
70
|
|
52
71
|
# @!attribute settled_amount
|
53
72
|
#
|
54
|
-
# @return [Integer]
|
55
|
-
|
56
|
-
|
57
|
-
# @!attribute status
|
58
|
-
#
|
59
|
-
# @return [Symbol, Lithic::Models::ExternalPayment::Status]
|
60
|
-
required :status, enum: -> { Lithic::ExternalPayment::Status }
|
61
|
-
|
62
|
-
# @!attribute updated
|
63
|
-
#
|
64
|
-
# @return [Time]
|
65
|
-
required :updated, Time
|
73
|
+
# @return [Integer, nil]
|
74
|
+
optional :settled_amount, Integer
|
66
75
|
|
67
76
|
# @!attribute user_defined_id
|
68
77
|
#
|
69
78
|
# @return [String, nil]
|
70
79
|
optional :user_defined_id, String
|
71
80
|
|
72
|
-
# @!method initialize(token:,
|
73
|
-
# @param token [String]
|
81
|
+
# @!method initialize(token:, created:, family:, status:, updated:, category: nil, currency: nil, events: nil, financial_account_token: nil, payment_type: nil, pending_amount: nil, result: nil, settled_amount: nil, user_defined_id: nil)
|
82
|
+
# @param token [String] Unique identifier for the transaction
|
83
|
+
#
|
84
|
+
# @param created [Time] ISO 8601 timestamp of when the transaction was created
|
85
|
+
#
|
86
|
+
# @param family [Symbol, Lithic::Models::ExternalPayment::Family]
|
87
|
+
#
|
88
|
+
# @param status [Symbol, Lithic::Models::ExternalPayment::Status] The status of the transaction
|
89
|
+
#
|
90
|
+
# @param updated [Time] ISO 8601 timestamp of when the transaction was last updated
|
91
|
+
#
|
74
92
|
# @param category [Symbol, Lithic::Models::ExternalPayment::Category]
|
75
|
-
#
|
93
|
+
#
|
76
94
|
# @param currency [String]
|
95
|
+
#
|
77
96
|
# @param events [Array<Lithic::Models::ExternalPayment::Event>]
|
97
|
+
#
|
78
98
|
# @param financial_account_token [String]
|
99
|
+
#
|
79
100
|
# @param payment_type [Symbol, Lithic::Models::ExternalPayment::PaymentType]
|
101
|
+
#
|
80
102
|
# @param pending_amount [Integer]
|
103
|
+
#
|
81
104
|
# @param result [Symbol, Lithic::Models::ExternalPayment::Result]
|
105
|
+
#
|
82
106
|
# @param settled_amount [Integer]
|
83
|
-
#
|
84
|
-
# @param updated [Time]
|
107
|
+
#
|
85
108
|
# @param user_defined_id [String]
|
86
109
|
|
110
|
+
# @see Lithic::Models::ExternalPayment#family
|
111
|
+
module Family
|
112
|
+
extend Lithic::Internal::Type::Enum
|
113
|
+
|
114
|
+
CARD = :CARD
|
115
|
+
PAYMENT = :PAYMENT
|
116
|
+
TRANSFER = :TRANSFER
|
117
|
+
INTERNAL = :INTERNAL
|
118
|
+
EXTERNAL_PAYMENT = :EXTERNAL_PAYMENT
|
119
|
+
MANAGEMENT_OPERATION = :MANAGEMENT_OPERATION
|
120
|
+
|
121
|
+
# @!method self.values
|
122
|
+
# @return [Array<Symbol>]
|
123
|
+
end
|
124
|
+
|
125
|
+
# The status of the transaction
|
126
|
+
#
|
127
|
+
# @see Lithic::Models::ExternalPayment#status
|
128
|
+
module Status
|
129
|
+
extend Lithic::Internal::Type::Enum
|
130
|
+
|
131
|
+
PENDING = :PENDING
|
132
|
+
SETTLED = :SETTLED
|
133
|
+
DECLINED = :DECLINED
|
134
|
+
REVERSED = :REVERSED
|
135
|
+
CANCELED = :CANCELED
|
136
|
+
|
137
|
+
# @!method self.values
|
138
|
+
# @return [Array<Symbol>]
|
139
|
+
end
|
140
|
+
|
87
141
|
# @see Lithic::Models::ExternalPayment#category
|
88
142
|
module Category
|
89
143
|
extend Lithic::Internal::Type::Enum
|
@@ -153,6 +207,7 @@ module Lithic
|
|
153
207
|
extend Lithic::Internal::Type::Enum
|
154
208
|
|
155
209
|
APPROVED = :APPROVED
|
210
|
+
INSUFFICIENT_FUNDS = :INSUFFICIENT_FUNDS
|
156
211
|
|
157
212
|
# @!method self.values
|
158
213
|
# @return [Array<Symbol>]
|
@@ -220,20 +275,6 @@ module Lithic
|
|
220
275
|
# @!method self.values
|
221
276
|
# @return [Array<Symbol>]
|
222
277
|
end
|
223
|
-
|
224
|
-
# @see Lithic::Models::ExternalPayment#status
|
225
|
-
module Status
|
226
|
-
extend Lithic::Internal::Type::Enum
|
227
|
-
|
228
|
-
PENDING = :PENDING
|
229
|
-
SETTLED = :SETTLED
|
230
|
-
DECLINED = :DECLINED
|
231
|
-
REVERSED = :REVERSED
|
232
|
-
CANCELED = :CANCELED
|
233
|
-
|
234
|
-
# @!method self.values
|
235
|
-
# @return [Array<Symbol>]
|
236
|
-
end
|
237
278
|
end
|
238
279
|
end
|
239
280
|
end
|
@@ -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
|