lithic 0.1.0.pre.alpha.39 → 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 +24 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +8 -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.rb +88 -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/account_update_params.rb +86 -1
- data/lib/lithic/models/aggregate_balance.rb +1 -0
- data/lib/lithic/models/aggregate_balance_list_params.rb +1 -0
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +5 -1
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +12 -22
- data/lib/lithic/models/auth_rules/v2_list_params.rb +1 -0
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +3 -25
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +226 -16
- data/lib/lithic/models/balance.rb +1 -0
- data/lib/lithic/models/balance_list_params.rb +1 -0
- 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/card_create_params.rb +90 -1
- data/lib/lithic/models/card_program.rb +10 -1
- data/lib/lithic/models/card_update_params.rb +98 -1
- data/lib/lithic/models/cards/balance_list_response.rb +1 -0
- 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/external_resource.rb +34 -0
- data/lib/lithic/models/external_resource_type.rb +18 -0
- data/lib/lithic/models/financial_account.rb +1 -0
- data/lib/lithic/models/financial_account_list_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/balance_list_response.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_create_params.rb +30 -1
- data/lib/lithic/models/management_operation_transaction.rb +100 -52
- data/lib/lithic/models/network_program.rb +41 -0
- data/lib/lithic/models/network_program_list_params.rb +43 -0
- data/lib/lithic/models/network_program_retrieve_params.rb +14 -0
- data/lib/lithic/models/non_pci_card.rb +88 -1
- data/lib/lithic/models/payment.rb +60 -1
- data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
- 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/transaction.rb +31 -20
- 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 +16 -0
- data/lib/lithic/resources/account_activity.rb +80 -0
- data/lib/lithic/resources/account_holders.rb +9 -9
- data/lib/lithic/resources/accounts.rb +5 -1
- data/lib/lithic/resources/book_transfers.rb +7 -3
- data/lib/lithic/resources/cards.rb +12 -2
- data/lib/lithic/resources/management_operations.rb +13 -1
- data/lib/lithic/resources/network_programs.rb +64 -0
- 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 +13 -2
- data/rbi/lithic/client.rbi +6 -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.rbi +131 -0
- 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/account_update_params.rbi +159 -0
- data/rbi/lithic/models/aggregate_balance.rbi +5 -0
- data/rbi/lithic/models/aggregate_balance_list_params.rbi +5 -0
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +20 -0
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +26 -15
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +2 -0
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +18 -25
- data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +527 -31
- data/rbi/lithic/models/balance.rbi +2 -0
- data/rbi/lithic/models/balance_list_params.rbi +5 -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/card_create_params.rbi +190 -0
- data/rbi/lithic/models/card_program.rbi +13 -0
- data/rbi/lithic/models/card_update_params.rbi +168 -0
- data/rbi/lithic/models/cards/balance_list_response.rbi +5 -0
- data/rbi/lithic/models/external_payment.rbi +147 -60
- data/rbi/lithic/models/external_resource.rbi +57 -0
- data/rbi/lithic/models/external_resource_type.rbi +26 -0
- data/rbi/lithic/models/financial_account.rbi +5 -0
- data/rbi/lithic/models/financial_account_list_params.rbi +5 -0
- data/rbi/lithic/models/financial_accounts/balance_list_response.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_create_params.rbi +59 -0
- data/rbi/lithic/models/management_operation_transaction.rbi +230 -84
- data/rbi/lithic/models/network_program.rbi +61 -0
- data/rbi/lithic/models/network_program_list_params.rbi +72 -0
- data/rbi/lithic/models/network_program_retrieve_params.rbi +27 -0
- data/rbi/lithic/models/non_pci_card.rbi +133 -3
- data/rbi/lithic/models/payment.rbi +103 -3
- data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
- 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/transaction.rbi +23 -31
- data/rbi/lithic/models/transfer.rbi +1 -0
- data/rbi/lithic/models/wire_party_details.rbi +61 -0
- data/rbi/lithic/models.rbi +17 -0
- data/rbi/lithic/resources/account_activity.rbi +80 -0
- data/rbi/lithic/resources/account_holders.rbi +28 -29
- data/rbi/lithic/resources/accounts.rbi +32 -0
- data/rbi/lithic/resources/book_transfers.rbi +9 -2
- data/rbi/lithic/resources/cards.rbi +70 -0
- data/rbi/lithic/resources/management_operations.rbi +4 -0
- data/rbi/lithic/resources/network_programs.rbi +48 -0
- data/rbi/lithic/resources/reports/settlement.rbi +1 -1
- data/rbi/lithic/resources/tokenizations.rbi +1 -1
- data/sig/lithic/client.rbs +4 -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.rbs +41 -0
- 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/account_update_params.rbs +41 -0
- data/sig/lithic/models/aggregate_balance.rbs +2 -1
- data/sig/lithic/models/aggregate_balance_list_params.rbs +2 -1
- 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/auth_rules/velocity_limit_params.rbs +4 -14
- data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +212 -7
- data/sig/lithic/models/balance.rbs +2 -1
- data/sig/lithic/models/balance_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/card_create_params.rbs +47 -0
- data/sig/lithic/models/card_program.rbs +7 -0
- data/sig/lithic/models/card_update_params.rbs +55 -1
- data/sig/lithic/models/cards/balance_list_response.rbs +2 -1
- data/sig/lithic/models/external_payment.rbs +91 -40
- data/sig/lithic/models/external_resource.rbs +32 -0
- data/sig/lithic/models/external_resource_type.rbs +16 -0
- data/sig/lithic/models/financial_account.rbs +2 -0
- data/sig/lithic/models/financial_account_list_params.rbs +2 -1
- data/sig/lithic/models/financial_accounts/balance_list_response.rbs +2 -1
- data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
- data/sig/lithic/models/management_operation_create_params.rbs +20 -0
- data/sig/lithic/models/management_operation_transaction.rbs +98 -42
- data/sig/lithic/models/network_program.rbs +35 -0
- data/sig/lithic/models/network_program_list_params.rbs +38 -0
- data/sig/lithic/models/network_program_retrieve_params.rbs +15 -0
- data/sig/lithic/models/non_pci_card.rbs +55 -3
- data/sig/lithic/models/payment.rbs +61 -3
- data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
- 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/transaction.rbs +2 -6
- data/sig/lithic/models/wire_party_details.rbs +35 -0
- data/sig/lithic/models.rbs +16 -0
- data/sig/lithic/resources/account_activity.rbs +27 -0
- data/sig/lithic/resources/account_holders.rbs +3 -3
- data/sig/lithic/resources/accounts.rbs +2 -0
- data/sig/lithic/resources/book_transfers.rbs +2 -0
- data/sig/lithic/resources/cards.rbs +5 -0
- data/sig/lithic/resources/management_operations.rbs +1 -0
- data/sig/lithic/resources/network_programs.rbs +19 -0
- data/sig/lithic/resources/tokenizations.rbs +1 -1
- metadata +38 -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
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
class ExternalResource < Lithic::Internal::Type::BaseModel
|
6
|
+
# @!attribute external_resource_token
|
7
|
+
# Token identifying the external resource
|
8
|
+
#
|
9
|
+
# @return [String]
|
10
|
+
required :external_resource_token, String
|
11
|
+
|
12
|
+
# @!attribute external_resource_type
|
13
|
+
# Type of external resource associated with the management operation
|
14
|
+
#
|
15
|
+
# @return [Symbol, Lithic::Models::ExternalResourceType]
|
16
|
+
required :external_resource_type, enum: -> { Lithic::ExternalResourceType }
|
17
|
+
|
18
|
+
# @!attribute external_resource_sub_token
|
19
|
+
# Token identifying the external resource sub-resource
|
20
|
+
#
|
21
|
+
# @return [String, nil]
|
22
|
+
optional :external_resource_sub_token, String
|
23
|
+
|
24
|
+
# @!method initialize(external_resource_token:, external_resource_type:, external_resource_sub_token: nil)
|
25
|
+
# External resource associated with the management operation
|
26
|
+
#
|
27
|
+
# @param external_resource_token [String] Token identifying the external resource
|
28
|
+
#
|
29
|
+
# @param external_resource_type [Symbol, Lithic::Models::ExternalResourceType] Type of external resource associated with the management operation
|
30
|
+
#
|
31
|
+
# @param external_resource_sub_token [String] Token identifying the external resource sub-resource
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
# Type of external resource associated with the management operation
|
6
|
+
module ExternalResourceType
|
7
|
+
extend Lithic::Internal::Type::Enum
|
8
|
+
|
9
|
+
STATEMENT = :STATEMENT
|
10
|
+
COLLECTION = :COLLECTION
|
11
|
+
DISPUTE = :DISPUTE
|
12
|
+
UNKNOWN = :UNKNOWN
|
13
|
+
|
14
|
+
# @!method self.values
|
15
|
+
# @return [Array<Symbol>]
|
16
|
+
end
|
17
|
+
end
|
18
|
+
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
|
|
@@ -47,6 +47,12 @@ module Lithic
|
|
47
47
|
# @return [String, nil]
|
48
48
|
optional :memo, String
|
49
49
|
|
50
|
+
# @!attribute on_closed_account
|
51
|
+
# What to do if the financial account is closed when posting an operation
|
52
|
+
#
|
53
|
+
# @return [Symbol, Lithic::Models::ManagementOperationCreateParams::OnClosedAccount, nil]
|
54
|
+
optional :on_closed_account, enum: -> { Lithic::ManagementOperationCreateParams::OnClosedAccount }
|
55
|
+
|
50
56
|
# @!attribute subtype
|
51
57
|
#
|
52
58
|
# @return [String, nil]
|
@@ -57,17 +63,29 @@ module Lithic
|
|
57
63
|
# @return [String, nil]
|
58
64
|
optional :user_defined_id, String
|
59
65
|
|
60
|
-
# @!method initialize(amount:, category:, direction:, effective_date:, event_type:, financial_account_token:, token: nil, memo: nil, subtype: nil, user_defined_id: nil, request_options: {})
|
66
|
+
# @!method initialize(amount:, category:, direction:, effective_date:, event_type:, financial_account_token:, token: nil, memo: nil, on_closed_account: nil, subtype: nil, user_defined_id: nil, request_options: {})
|
61
67
|
# @param amount [Integer]
|
68
|
+
#
|
62
69
|
# @param category [Symbol, Lithic::Models::ManagementOperationCreateParams::Category]
|
70
|
+
#
|
63
71
|
# @param direction [Symbol, Lithic::Models::ManagementOperationCreateParams::Direction]
|
72
|
+
#
|
64
73
|
# @param effective_date [Date]
|
74
|
+
#
|
65
75
|
# @param event_type [Symbol, Lithic::Models::ManagementOperationCreateParams::EventType]
|
76
|
+
#
|
66
77
|
# @param financial_account_token [String]
|
78
|
+
#
|
67
79
|
# @param token [String]
|
80
|
+
#
|
68
81
|
# @param memo [String]
|
82
|
+
#
|
83
|
+
# @param on_closed_account [Symbol, Lithic::Models::ManagementOperationCreateParams::OnClosedAccount] What to do if the financial account is closed when posting an operation
|
84
|
+
#
|
69
85
|
# @param subtype [String]
|
86
|
+
#
|
70
87
|
# @param user_defined_id [String]
|
88
|
+
#
|
71
89
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
72
90
|
|
73
91
|
module Category
|
@@ -119,6 +137,17 @@ module Lithic
|
|
119
137
|
# @!method self.values
|
120
138
|
# @return [Array<Symbol>]
|
121
139
|
end
|
140
|
+
|
141
|
+
# What to do if the financial account is closed when posting an operation
|
142
|
+
module OnClosedAccount
|
143
|
+
extend Lithic::Internal::Type::Enum
|
144
|
+
|
145
|
+
FAIL = :FAIL
|
146
|
+
USE_SUSPENSE = :USE_SUSPENSE
|
147
|
+
|
148
|
+
# @!method self.values
|
149
|
+
# @return [Array<Symbol>]
|
150
|
+
end
|
122
151
|
end
|
123
152
|
end
|
124
153
|
end
|