lithic 0.19.0 → 0.21.0
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 +61 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +4 -0
- data/lib/lithic/models/account_activity_list_params.rb +1 -0
- data/lib/lithic/models/account_activity_list_response.rb +1 -0
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1 -0
- data/lib/lithic/models/auth_rules/ach_payment_update_action.rb +1 -0
- data/lib/lithic/models/auth_rules/auth_rule.rb +5 -0
- data/lib/lithic/models/auth_rules/card_transaction_update_action.rb +1 -0
- data/lib/lithic/models/auth_rules/report_stats.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_create_params.rb +15 -0
- data/lib/lithic/models/auth_rules/v2_list_results_response.rb +3 -0
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +24 -1
- data/lib/lithic/models/blockchain_recipient.rb +148 -0
- data/lib/lithic/models/blockchain_recipient_create_params.rb +74 -0
- data/lib/lithic/models/blockchain_recipient_retrieve_params.rb +20 -0
- data/lib/lithic/models/card.rb +2 -2
- data/lib/lithic/models/card_pin_updated_webhook_event.rb +87 -0
- data/lib/lithic/models/card_provision_params.rb +10 -8
- data/lib/lithic/models/card_reassign_account_params.rb +29 -0
- data/lib/lithic/models/dispute_v2.rb +178 -130
- data/lib/lithic/models/disputes_v2_list_params.rb +10 -1
- data/lib/lithic/models/event.rb +5 -0
- data/lib/lithic/models/event_list_params.rb +3 -0
- data/lib/lithic/models/event_subscription.rb +3 -0
- data/lib/lithic/models/events/subscription_create_params.rb +3 -0
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
- data/lib/lithic/models/events/subscription_update_params.rb +3 -0
- data/lib/lithic/models/external_payment.rb +6 -0
- data/lib/lithic/models/external_payment_create_params.rb +1 -0
- data/lib/lithic/models/external_payment_list_params.rb +1 -0
- data/lib/lithic/models/financial_account.rb +14 -1
- data/lib/lithic/models/financial_accounts/installment_plan.rb +311 -0
- data/lib/lithic/models/financial_accounts/installment_plan_list_params.rb +75 -0
- data/lib/lithic/models/financial_accounts/installment_plan_retrieve_params.rb +32 -0
- data/lib/lithic/models/financial_accounts/open_to_buy.rb +36 -0
- data/lib/lithic/models/financial_accounts/open_to_buy_retrieve_params.rb +22 -0
- data/lib/lithic/models/financial_accounts/open_to_buy_summary.rb +46 -0
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +13 -0
- data/lib/lithic/models/financial_accounts/transaction_category_balances.rb +34 -0
- data/lib/lithic/models/financial_event.rb +12 -0
- data/lib/lithic/models/management_operation_create_params.rb +4 -0
- data/lib/lithic/models/management_operation_transaction.rb +4 -0
- data/lib/lithic/models/parsed_webhook_event.rb +3 -1
- data/lib/lithic/models/payment.rb +68 -9
- data/lib/lithic/models/payment_create_stablecoin_params.rb +99 -0
- data/lib/lithic/models/payment_create_stablecoin_response.rb +19 -0
- data/lib/lithic/models/payment_list_params.rb +1 -0
- data/lib/lithic/models/payment_retry_params.rb +28 -1
- data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
- data/lib/lithic/models/three_ds_authentication.rb +126 -1
- data/lib/lithic/models/tokenization_simulate_params.rb +2 -2
- data/lib/lithic/models/transaction.rb +2 -0
- data/lib/lithic/models/transaction_monitoring/case_entity.rb +13 -4
- data/lib/lithic/models/transaction_monitoring/case_list_params.rb +4 -2
- data/lib/lithic/models.rb +12 -0
- data/lib/lithic/resources/blockchain_recipients.rb +80 -0
- data/lib/lithic/resources/cards.rb +33 -4
- data/lib/lithic/resources/disputes_v2.rb +3 -1
- data/lib/lithic/resources/financial_accounts/installment_plans.rb +82 -0
- data/lib/lithic/resources/financial_accounts/open_to_buy.rb +48 -0
- data/lib/lithic/resources/financial_accounts.rb +8 -0
- data/lib/lithic/resources/payments.rb +71 -3
- data/lib/lithic/resources/tokenizations.rb +1 -1
- data/lib/lithic/resources/transaction_monitoring/cases.rb +1 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +17 -0
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/models/account_activity_list_params.rbi +5 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +5 -0
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +5 -0
- data/rbi/lithic/models/auth_rules/ach_payment_update_action.rbi +5 -0
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +7 -0
- data/rbi/lithic/models/auth_rules/card_transaction_update_action.rbi +5 -0
- data/rbi/lithic/models/auth_rules/report_stats.rbi +5 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +33 -0
- data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +15 -0
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +30 -0
- data/rbi/lithic/models/blockchain_recipient.rbi +209 -0
- data/rbi/lithic/models/blockchain_recipient_create_params.rbi +102 -0
- data/rbi/lithic/models/blockchain_recipient_retrieve_params.rbi +41 -0
- data/rbi/lithic/models/card.rbi +2 -2
- data/rbi/lithic/models/card_pin_updated_webhook_event.rbi +166 -0
- data/rbi/lithic/models/card_provision_params.rbi +16 -12
- data/rbi/lithic/models/card_reassign_account_params.rbi +49 -0
- data/rbi/lithic/models/dispute_v2.rbi +285 -181
- data/rbi/lithic/models/disputes_v2_list_params.rbi +13 -0
- data/rbi/lithic/models/event.rbi +8 -0
- data/rbi/lithic/models/event_list_params.rbi +7 -0
- data/rbi/lithic/models/event_subscription.rbi +7 -0
- data/rbi/lithic/models/events/subscription_create_params.rbi +7 -0
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +7 -0
- data/rbi/lithic/models/external_payment.rbi +30 -0
- data/rbi/lithic/models/external_payment_create_params.rbi +5 -0
- data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
- data/rbi/lithic/models/financial_account.rbi +12 -0
- data/rbi/lithic/models/financial_accounts/installment_plan.rbi +528 -0
- data/rbi/lithic/models/financial_accounts/installment_plan_list_params.rbi +155 -0
- data/rbi/lithic/models/financial_accounts/installment_plan_retrieve_params.rbi +56 -0
- data/rbi/lithic/models/financial_accounts/open_to_buy.rbi +64 -0
- data/rbi/lithic/models/financial_accounts/open_to_buy_retrieve_params.rbi +43 -0
- data/rbi/lithic/models/financial_accounts/open_to_buy_summary.rbi +73 -0
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +65 -0
- data/rbi/lithic/models/financial_accounts/transaction_category_balances.rbi +81 -0
- data/rbi/lithic/models/financial_event.rbi +47 -0
- data/rbi/lithic/models/management_operation_create_params.rbi +20 -0
- data/rbi/lithic/models/management_operation_transaction.rbi +20 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
- data/rbi/lithic/models/payment.rbi +108 -10
- data/rbi/lithic/models/payment_create_stablecoin_params.rbi +162 -0
- data/rbi/lithic/models/payment_create_stablecoin_response.rbi +34 -0
- data/rbi/lithic/models/payment_list_params.rbi +2 -0
- data/rbi/lithic/models/payment_retry_params.rbi +47 -2
- data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
- data/rbi/lithic/models/three_ds_authentication.rbi +292 -0
- data/rbi/lithic/models/tokenization_simulate_params.rbi +2 -2
- data/rbi/lithic/models/transaction.rbi +10 -0
- data/rbi/lithic/models/transaction_monitoring/case_entity.rbi +27 -5
- data/rbi/lithic/models/transaction_monitoring/case_list_params.rbi +6 -2
- data/rbi/lithic/models.rbi +14 -0
- data/rbi/lithic/resources/blockchain_recipients.rbi +65 -0
- data/rbi/lithic/resources/cards.rbi +31 -8
- data/rbi/lithic/resources/disputes_v2.rbi +4 -0
- data/rbi/lithic/resources/financial_accounts/installment_plans.rbi +66 -0
- data/rbi/lithic/resources/financial_accounts/open_to_buy.rbi +40 -0
- data/rbi/lithic/resources/financial_accounts.rbi +6 -0
- data/rbi/lithic/resources/payments.rbi +68 -2
- data/rbi/lithic/resources/tokenizations.rbi +1 -1
- data/rbi/lithic/resources/transaction_monitoring/cases.rbi +3 -1
- data/rbi/lithic/resources/webhooks.rbi +1 -0
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/models/account_activity_list_params.rbs +2 -0
- data/sig/lithic/models/account_activity_list_response.rbs +2 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +2 -0
- data/sig/lithic/models/auth_rules/ach_payment_update_action.rbs +2 -1
- data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
- data/sig/lithic/models/auth_rules/card_transaction_update_action.rbs +2 -1
- data/sig/lithic/models/auth_rules/report_stats.rbs +2 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +6 -0
- data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +6 -2
- data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +10 -0
- data/sig/lithic/models/blockchain_recipient.rbs +106 -0
- data/sig/lithic/models/blockchain_recipient_create_params.rbs +60 -0
- data/sig/lithic/models/blockchain_recipient_retrieve_params.rbs +24 -0
- data/sig/lithic/models/card_pin_updated_webhook_event.rbs +60 -0
- data/sig/lithic/models/card_reassign_account_params.rbs +28 -0
- data/sig/lithic/models/dispute_v2.rbs +145 -101
- data/sig/lithic/models/disputes_v2_list_params.rbs +7 -0
- data/sig/lithic/models/event.rbs +2 -0
- data/sig/lithic/models/event_list_params.rbs +2 -0
- data/sig/lithic/models/event_subscription.rbs +2 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
- data/sig/lithic/models/external_payment.rbs +12 -0
- data/sig/lithic/models/external_payment_create_params.rbs +2 -0
- data/sig/lithic/models/external_payment_list_params.rbs +2 -0
- data/sig/lithic/models/financial_account.rbs +5 -0
- data/sig/lithic/models/financial_accounts/installment_plan.rbs +227 -0
- data/sig/lithic/models/financial_accounts/installment_plan_list_params.rbs +69 -0
- data/sig/lithic/models/financial_accounts/installment_plan_retrieve_params.rbs +30 -0
- data/sig/lithic/models/financial_accounts/open_to_buy.rbs +27 -0
- data/sig/lithic/models/financial_accounts/open_to_buy_retrieve_params.rbs +26 -0
- data/sig/lithic/models/financial_accounts/open_to_buy_summary.rbs +32 -0
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +26 -0
- data/sig/lithic/models/financial_accounts/transaction_category_balances.rbs +32 -0
- data/sig/lithic/models/financial_event.rbs +24 -0
- data/sig/lithic/models/management_operation_create_params.rbs +8 -0
- data/sig/lithic/models/management_operation_transaction.rbs +8 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
- data/sig/lithic/models/payment.rbs +33 -1
- data/sig/lithic/models/payment_create_stablecoin_params.rbs +84 -0
- data/sig/lithic/models/payment_create_stablecoin_response.rbs +15 -0
- data/sig/lithic/models/payment_list_params.rbs +2 -1
- data/sig/lithic/models/payment_retry_params.rbs +24 -1
- data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
- data/sig/lithic/models/three_ds_authentication.rbs +77 -0
- data/sig/lithic/models/transaction.rbs +4 -0
- data/sig/lithic/models/transaction_monitoring/case_entity.rbs +7 -5
- data/sig/lithic/models.rbs +12 -0
- data/sig/lithic/resources/blockchain_recipients.rbs +23 -0
- data/sig/lithic/resources/cards.rbs +6 -0
- data/sig/lithic/resources/disputes_v2.rbs +1 -0
- data/sig/lithic/resources/financial_accounts/installment_plans.rbs +24 -0
- data/sig/lithic/resources/financial_accounts/open_to_buy.rbs +14 -0
- data/sig/lithic/resources/financial_accounts.rbs +4 -0
- data/sig/lithic/resources/payments.rbs +12 -0
- data/sig/lithic/resources/webhooks.rbs +1 -0
- metadata +53 -2
|
@@ -145,6 +145,14 @@ module Lithic
|
|
|
145
145
|
# @return [Symbol, Lithic::Models::ThreeDSAuthentication::DecisionMadeBy, nil]
|
|
146
146
|
optional :decision_made_by, enum: -> { Lithic::ThreeDSAuthentication::DecisionMadeBy }, nil?: true
|
|
147
147
|
|
|
148
|
+
# @!attribute psd2_context
|
|
149
|
+
# PSD2/SCA context for EEA and UK transactions. Present when Lithic determines the
|
|
150
|
+
# transaction is in scope for PSD2 Strong Customer Authentication. Absent for
|
|
151
|
+
# out-of-scope transactions.
|
|
152
|
+
#
|
|
153
|
+
# @return [Lithic::Models::ThreeDSAuthentication::Psd2Context, nil]
|
|
154
|
+
optional :psd2_context, -> { Lithic::ThreeDSAuthentication::Psd2Context }, nil?: true
|
|
155
|
+
|
|
148
156
|
# @!attribute three_ri_request_type
|
|
149
157
|
# Type of 3DS Requestor Initiated (3RI) request — i.e., a 3DS authentication that
|
|
150
158
|
# takes place at the initiation of the merchant rather than the cardholder. The
|
|
@@ -164,7 +172,7 @@ module Lithic
|
|
|
164
172
|
# @return [Lithic::Models::ThreeDSAuthentication::Transaction, nil]
|
|
165
173
|
optional :transaction, -> { Lithic::ThreeDSAuthentication::Transaction }, nil?: true
|
|
166
174
|
|
|
167
|
-
# @!method initialize(token:, account_type:, authentication_result:, card_expiry_check:, card_token:, cardholder:, channel:, created:, merchant:, message_category:, three_ds_requestor_challenge_indicator:, additional_data: nil, app: nil, authentication_request_type: nil, browser: nil, challenge_metadata: nil, challenge_orchestrated_by: nil, decision_made_by: nil, three_ri_request_type: nil, transaction: nil)
|
|
175
|
+
# @!method initialize(token:, account_type:, authentication_result:, card_expiry_check:, card_token:, cardholder:, channel:, created:, merchant:, message_category:, three_ds_requestor_challenge_indicator:, additional_data: nil, app: nil, authentication_request_type: nil, browser: nil, challenge_metadata: nil, challenge_orchestrated_by: nil, decision_made_by: nil, psd2_context: nil, three_ri_request_type: nil, transaction: nil)
|
|
168
176
|
# Some parameter documentations has been truncated, see
|
|
169
177
|
# {Lithic::Models::ThreeDSAuthentication} for more details.
|
|
170
178
|
#
|
|
@@ -206,6 +214,8 @@ module Lithic
|
|
|
206
214
|
#
|
|
207
215
|
# @param decision_made_by [Symbol, Lithic::Models::ThreeDSAuthentication::DecisionMadeBy, nil] Entity that made the authentication decision. This won't be set for authenticati
|
|
208
216
|
#
|
|
217
|
+
# @param psd2_context [Lithic::Models::ThreeDSAuthentication::Psd2Context, nil] PSD2/SCA context for EEA and UK transactions. Present when Lithic determines the
|
|
218
|
+
#
|
|
209
219
|
# @param three_ri_request_type [Symbol, Lithic::Models::ThreeDSAuthentication::ThreeRiRequestType, nil] Type of 3DS Requestor Initiated (3RI) request — i.e., a 3DS authentication that
|
|
210
220
|
#
|
|
211
221
|
# @param transaction [Lithic::Models::ThreeDSAuthentication::Transaction, nil] Object containing data about the e-commerce transaction for which the merchant i
|
|
@@ -1142,6 +1152,121 @@ module Lithic
|
|
|
1142
1152
|
# @return [Array<Symbol>]
|
|
1143
1153
|
end
|
|
1144
1154
|
|
|
1155
|
+
# @see Lithic::Models::ThreeDSAuthentication#psd2_context
|
|
1156
|
+
class Psd2Context < Lithic::Internal::Type::BaseModel
|
|
1157
|
+
# @!attribute acquirer_exemption
|
|
1158
|
+
# SCA exemption declared by the acquirer in the 3DS authentication request.
|
|
1159
|
+
#
|
|
1160
|
+
# - `NONE` - No exemption claimed
|
|
1161
|
+
# - `TRANSACTION_RISK_ANALYSIS` - Transaction Risk Analysis (TRA) exemption;
|
|
1162
|
+
# acquirer asserts low fraud risk
|
|
1163
|
+
# - `LOW_VALUE` - Low-value payment exemption; transaction is below the EUR 30
|
|
1164
|
+
# threshold
|
|
1165
|
+
# - `RECURRING_PAYMENT` - Recurring payment with a fixed amount to the same payee
|
|
1166
|
+
# - `MERCHANT_INITIATED_TRANSACTION` - Merchant-initiated transaction (MIT);
|
|
1167
|
+
# cardholder not present
|
|
1168
|
+
# - `TRUSTED_BENEFICIARY` - Trusted beneficiary; merchant is on cardholder's
|
|
1169
|
+
# whitelist
|
|
1170
|
+
# - `STRONG_CUSTOMER_AUTHENTICATION_DELEGATION` - SCA already performed by a
|
|
1171
|
+
# delegated third-party authenticator
|
|
1172
|
+
# - `SECURE_CORPORATE_PAYMENT` - Secure corporate payment using a dedicated
|
|
1173
|
+
# corporate card or process
|
|
1174
|
+
# - `AUTHENTICATION_OUTAGE_EXCEPTION` - Authentication outage exception;
|
|
1175
|
+
# scheme-level fallback during ACS downtime
|
|
1176
|
+
# - `BUNDLED` - Mastercard only; bundled exemption code where the exact exemption
|
|
1177
|
+
# type cannot be distinguished
|
|
1178
|
+
#
|
|
1179
|
+
# @return [Symbol, Lithic::Models::ThreeDSAuthentication::Psd2Context::AcquirerExemption, nil]
|
|
1180
|
+
optional :acquirer_exemption, enum: -> { Lithic::ThreeDSAuthentication::Psd2Context::AcquirerExemption }
|
|
1181
|
+
|
|
1182
|
+
# @!attribute lithic_exemption_validation
|
|
1183
|
+
# Lithic's validation of the acquirer-declared exemption. Absent when no acquirer
|
|
1184
|
+
# exemption was declared.
|
|
1185
|
+
#
|
|
1186
|
+
# - `ACCEPTED` - Lithic signals support the acquirer's claim
|
|
1187
|
+
# - `REJECTED` - Lithic signals contradict the claim, or a required signal is
|
|
1188
|
+
# missing
|
|
1189
|
+
# - `NOT_VALIDATED` - Exemption was declared but Lithic has no basis to evaluate
|
|
1190
|
+
# it; treated as `REJECTED` for challenge purposes
|
|
1191
|
+
#
|
|
1192
|
+
# @return [Symbol, Lithic::Models::ThreeDSAuthentication::Psd2Context::LithicExemptionValidation, nil]
|
|
1193
|
+
optional :lithic_exemption_validation,
|
|
1194
|
+
enum: -> { Lithic::ThreeDSAuthentication::Psd2Context::LithicExemptionValidation }
|
|
1195
|
+
|
|
1196
|
+
# @!method initialize(acquirer_exemption: nil, lithic_exemption_validation: nil)
|
|
1197
|
+
# Some parameter documentations has been truncated, see
|
|
1198
|
+
# {Lithic::Models::ThreeDSAuthentication::Psd2Context} for more details.
|
|
1199
|
+
#
|
|
1200
|
+
# PSD2/SCA context for EEA and UK transactions. Present when Lithic determines the
|
|
1201
|
+
# transaction is in scope for PSD2 Strong Customer Authentication. Absent for
|
|
1202
|
+
# out-of-scope transactions.
|
|
1203
|
+
#
|
|
1204
|
+
# @param acquirer_exemption [Symbol, Lithic::Models::ThreeDSAuthentication::Psd2Context::AcquirerExemption] SCA exemption declared by the acquirer in the 3DS authentication request.
|
|
1205
|
+
#
|
|
1206
|
+
# @param lithic_exemption_validation [Symbol, Lithic::Models::ThreeDSAuthentication::Psd2Context::LithicExemptionValidation] Lithic's validation of the acquirer-declared exemption. Absent when no acquirer
|
|
1207
|
+
|
|
1208
|
+
# SCA exemption declared by the acquirer in the 3DS authentication request.
|
|
1209
|
+
#
|
|
1210
|
+
# - `NONE` - No exemption claimed
|
|
1211
|
+
# - `TRANSACTION_RISK_ANALYSIS` - Transaction Risk Analysis (TRA) exemption;
|
|
1212
|
+
# acquirer asserts low fraud risk
|
|
1213
|
+
# - `LOW_VALUE` - Low-value payment exemption; transaction is below the EUR 30
|
|
1214
|
+
# threshold
|
|
1215
|
+
# - `RECURRING_PAYMENT` - Recurring payment with a fixed amount to the same payee
|
|
1216
|
+
# - `MERCHANT_INITIATED_TRANSACTION` - Merchant-initiated transaction (MIT);
|
|
1217
|
+
# cardholder not present
|
|
1218
|
+
# - `TRUSTED_BENEFICIARY` - Trusted beneficiary; merchant is on cardholder's
|
|
1219
|
+
# whitelist
|
|
1220
|
+
# - `STRONG_CUSTOMER_AUTHENTICATION_DELEGATION` - SCA already performed by a
|
|
1221
|
+
# delegated third-party authenticator
|
|
1222
|
+
# - `SECURE_CORPORATE_PAYMENT` - Secure corporate payment using a dedicated
|
|
1223
|
+
# corporate card or process
|
|
1224
|
+
# - `AUTHENTICATION_OUTAGE_EXCEPTION` - Authentication outage exception;
|
|
1225
|
+
# scheme-level fallback during ACS downtime
|
|
1226
|
+
# - `BUNDLED` - Mastercard only; bundled exemption code where the exact exemption
|
|
1227
|
+
# type cannot be distinguished
|
|
1228
|
+
#
|
|
1229
|
+
# @see Lithic::Models::ThreeDSAuthentication::Psd2Context#acquirer_exemption
|
|
1230
|
+
module AcquirerExemption
|
|
1231
|
+
extend Lithic::Internal::Type::Enum
|
|
1232
|
+
|
|
1233
|
+
NONE = :NONE
|
|
1234
|
+
TRANSACTION_RISK_ANALYSIS = :TRANSACTION_RISK_ANALYSIS
|
|
1235
|
+
LOW_VALUE = :LOW_VALUE
|
|
1236
|
+
RECURRING_PAYMENT = :RECURRING_PAYMENT
|
|
1237
|
+
MERCHANT_INITIATED_TRANSACTION = :MERCHANT_INITIATED_TRANSACTION
|
|
1238
|
+
TRUSTED_BENEFICIARY = :TRUSTED_BENEFICIARY
|
|
1239
|
+
STRONG_CUSTOMER_AUTHENTICATION_DELEGATION = :STRONG_CUSTOMER_AUTHENTICATION_DELEGATION
|
|
1240
|
+
SECURE_CORPORATE_PAYMENT = :SECURE_CORPORATE_PAYMENT
|
|
1241
|
+
AUTHENTICATION_OUTAGE_EXCEPTION = :AUTHENTICATION_OUTAGE_EXCEPTION
|
|
1242
|
+
BUNDLED = :BUNDLED
|
|
1243
|
+
|
|
1244
|
+
# @!method self.values
|
|
1245
|
+
# @return [Array<Symbol>]
|
|
1246
|
+
end
|
|
1247
|
+
|
|
1248
|
+
# Lithic's validation of the acquirer-declared exemption. Absent when no acquirer
|
|
1249
|
+
# exemption was declared.
|
|
1250
|
+
#
|
|
1251
|
+
# - `ACCEPTED` - Lithic signals support the acquirer's claim
|
|
1252
|
+
# - `REJECTED` - Lithic signals contradict the claim, or a required signal is
|
|
1253
|
+
# missing
|
|
1254
|
+
# - `NOT_VALIDATED` - Exemption was declared but Lithic has no basis to evaluate
|
|
1255
|
+
# it; treated as `REJECTED` for challenge purposes
|
|
1256
|
+
#
|
|
1257
|
+
# @see Lithic::Models::ThreeDSAuthentication::Psd2Context#lithic_exemption_validation
|
|
1258
|
+
module LithicExemptionValidation
|
|
1259
|
+
extend Lithic::Internal::Type::Enum
|
|
1260
|
+
|
|
1261
|
+
ACCEPTED = :ACCEPTED
|
|
1262
|
+
REJECTED = :REJECTED
|
|
1263
|
+
NOT_VALIDATED = :NOT_VALIDATED
|
|
1264
|
+
|
|
1265
|
+
# @!method self.values
|
|
1266
|
+
# @return [Array<Symbol>]
|
|
1267
|
+
end
|
|
1268
|
+
end
|
|
1269
|
+
|
|
1145
1270
|
# Type of 3DS Requestor Initiated (3RI) request — i.e., a 3DS authentication that
|
|
1146
1271
|
# takes place at the initiation of the merchant rather than the cardholder. The
|
|
1147
1272
|
# most common example of this is where a merchant is authenticating before billing
|
|
@@ -8,7 +8,7 @@ module Lithic
|
|
|
8
8
|
include Lithic::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
# @!attribute cvv
|
|
11
|
-
# The three digit
|
|
11
|
+
# The three or four digit CVV for the card. AMEX cards use four digit CVVs.
|
|
12
12
|
#
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :cvv, String
|
|
@@ -63,7 +63,7 @@ module Lithic
|
|
|
63
63
|
# Some parameter documentations has been truncated, see
|
|
64
64
|
# {Lithic::Models::TokenizationSimulateParams} for more details.
|
|
65
65
|
#
|
|
66
|
-
# @param cvv [String] The three digit
|
|
66
|
+
# @param cvv [String] The three or four digit CVV for the card. AMEX cards use four digit CVVs.
|
|
67
67
|
#
|
|
68
68
|
# @param expiration_date [String] The expiration date of the card in 'MM/YY' format.
|
|
69
69
|
#
|
|
@@ -1060,6 +1060,7 @@ module Lithic
|
|
|
1060
1060
|
PROGRAM_SUSPENDED = :PROGRAM_SUSPENDED
|
|
1061
1061
|
PROGRAM_USAGE_RESTRICTION = :PROGRAM_USAGE_RESTRICTION
|
|
1062
1062
|
REVERSAL_UNMATCHED = :REVERSAL_UNMATCHED
|
|
1063
|
+
SCA_REQUIRED = :SCA_REQUIRED
|
|
1063
1064
|
SECURITY_VIOLATION = :SECURITY_VIOLATION
|
|
1064
1065
|
SINGLE_USE_CARD_REATTEMPTED = :SINGLE_USE_CARD_REATTEMPTED
|
|
1065
1066
|
SUSPECTED_FRAUD = :SUSPECTED_FRAUD
|
|
@@ -1390,6 +1391,7 @@ module Lithic
|
|
|
1390
1391
|
PROGRAM_SUSPENDED = :PROGRAM_SUSPENDED
|
|
1391
1392
|
PROGRAM_USAGE_RESTRICTION = :PROGRAM_USAGE_RESTRICTION
|
|
1392
1393
|
REVERSAL_UNMATCHED = :REVERSAL_UNMATCHED
|
|
1394
|
+
SCA_REQUIRED = :SCA_REQUIRED
|
|
1393
1395
|
SECURITY_VIOLATION = :SECURITY_VIOLATION
|
|
1394
1396
|
SINGLE_USE_CARD_REATTEMPTED = :SINGLE_USE_CARD_REATTEMPTED
|
|
1395
1397
|
SUSPECTED_FRAUD = :SUSPECTED_FRAUD
|
|
@@ -5,16 +5,21 @@ module Lithic
|
|
|
5
5
|
module TransactionMonitoring
|
|
6
6
|
class CaseEntity < Lithic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute entity_token
|
|
8
|
-
# Globally unique identifier for the associated entity
|
|
8
|
+
# Globally unique identifier for the associated entity: the card token for `CARD`,
|
|
9
|
+
# the account token for `ACCOUNT`, and the financial account token for
|
|
10
|
+
# `FINANCIAL_ACCOUNT`. Null for `PROGRAM`, which is not scoped to an individual
|
|
11
|
+
# entity
|
|
9
12
|
#
|
|
10
|
-
# @return [String]
|
|
11
|
-
required :entity_token, String
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
required :entity_token, String, nil?: true
|
|
12
15
|
|
|
13
16
|
# @!attribute entity_type
|
|
14
17
|
# The type of entity a case is associated with:
|
|
15
18
|
#
|
|
16
19
|
# - `CARD` - The case is associated with a card
|
|
17
20
|
# - `ACCOUNT` - The case is associated with an account
|
|
21
|
+
# - `FINANCIAL_ACCOUNT` - The case is associated with a financial account
|
|
22
|
+
# - `PROGRAM` - The case is associated with the whole program
|
|
18
23
|
#
|
|
19
24
|
# @return [Symbol, Lithic::Models::TransactionMonitoring::CaseEntity::EntityType]
|
|
20
25
|
required :entity_type, enum: -> { Lithic::TransactionMonitoring::CaseEntity::EntityType }
|
|
@@ -25,7 +30,7 @@ module Lithic
|
|
|
25
30
|
#
|
|
26
31
|
# The entity a case is associated with
|
|
27
32
|
#
|
|
28
|
-
# @param entity_token [String] Globally unique identifier for the associated entity
|
|
33
|
+
# @param entity_token [String, nil] Globally unique identifier for the associated entity: the card token for `CARD`,
|
|
29
34
|
#
|
|
30
35
|
# @param entity_type [Symbol, Lithic::Models::TransactionMonitoring::CaseEntity::EntityType] The type of entity a case is associated with:
|
|
31
36
|
|
|
@@ -33,6 +38,8 @@ module Lithic
|
|
|
33
38
|
#
|
|
34
39
|
# - `CARD` - The case is associated with a card
|
|
35
40
|
# - `ACCOUNT` - The case is associated with an account
|
|
41
|
+
# - `FINANCIAL_ACCOUNT` - The case is associated with a financial account
|
|
42
|
+
# - `PROGRAM` - The case is associated with the whole program
|
|
36
43
|
#
|
|
37
44
|
# @see Lithic::Models::TransactionMonitoring::CaseEntity#entity_type
|
|
38
45
|
module EntityType
|
|
@@ -40,6 +47,8 @@ module Lithic
|
|
|
40
47
|
|
|
41
48
|
CARD = :CARD
|
|
42
49
|
ACCOUNT = :ACCOUNT
|
|
50
|
+
FINANCIAL_ACCOUNT = :FINANCIAL_ACCOUNT
|
|
51
|
+
PROGRAM = :PROGRAM
|
|
43
52
|
|
|
44
53
|
# @!method self.values
|
|
45
54
|
# @return [Array<Symbol>]
|
|
@@ -49,7 +49,9 @@ module Lithic
|
|
|
49
49
|
optional :ending_before, String
|
|
50
50
|
|
|
51
51
|
# @!attribute entity_token
|
|
52
|
-
# Only return cases associated with the provided entity.
|
|
52
|
+
# Only return cases associated with the provided entity. Accepts a card, account,
|
|
53
|
+
# or financial account token. Cases with a `PROGRAM` entity have no entity token
|
|
54
|
+
# and are never returned by this filter.
|
|
53
55
|
#
|
|
54
56
|
# @return [String, nil]
|
|
55
57
|
optional :entity_token, String
|
|
@@ -113,7 +115,7 @@ module Lithic
|
|
|
113
115
|
#
|
|
114
116
|
# @param ending_before [String] A cursor representing an item's token before which a page of results should end.
|
|
115
117
|
#
|
|
116
|
-
# @param entity_token [String] Only return cases associated with the provided entity.
|
|
118
|
+
# @param entity_token [String] Only return cases associated with the provided entity. Accepts a card, account,
|
|
117
119
|
#
|
|
118
120
|
# @param page_size [Integer] Page size (for pagination).
|
|
119
121
|
#
|
data/lib/lithic/models.rb
CHANGED
|
@@ -112,6 +112,12 @@ module Lithic
|
|
|
112
112
|
|
|
113
113
|
BalanceUpdatedWebhookEvent = Lithic::Models::BalanceUpdatedWebhookEvent
|
|
114
114
|
|
|
115
|
+
BlockchainRecipient = Lithic::Models::BlockchainRecipient
|
|
116
|
+
|
|
117
|
+
BlockchainRecipientCreateParams = Lithic::Models::BlockchainRecipientCreateParams
|
|
118
|
+
|
|
119
|
+
BlockchainRecipientRetrieveParams = Lithic::Models::BlockchainRecipientRetrieveParams
|
|
120
|
+
|
|
115
121
|
BookTransferCreateParams = Lithic::Models::BookTransferCreateParams
|
|
116
122
|
|
|
117
123
|
BookTransferListParams = Lithic::Models::BookTransferListParams
|
|
@@ -166,6 +172,8 @@ module Lithic
|
|
|
166
172
|
|
|
167
173
|
CardListParams = Lithic::Models::CardListParams
|
|
168
174
|
|
|
175
|
+
CardPinUpdatedWebhookEvent = Lithic::Models::CardPinUpdatedWebhookEvent
|
|
176
|
+
|
|
169
177
|
CardProgram = Lithic::Models::CardProgram
|
|
170
178
|
|
|
171
179
|
CardProgramListParams = Lithic::Models::CardProgramListParams
|
|
@@ -174,6 +182,8 @@ module Lithic
|
|
|
174
182
|
|
|
175
183
|
CardProvisionParams = Lithic::Models::CardProvisionParams
|
|
176
184
|
|
|
185
|
+
CardReassignAccountParams = Lithic::Models::CardReassignAccountParams
|
|
186
|
+
|
|
177
187
|
CardReissuedWebhookEvent = Lithic::Models::CardReissuedWebhookEvent
|
|
178
188
|
|
|
179
189
|
CardReissueParams = Lithic::Models::CardReissueParams
|
|
@@ -469,6 +479,8 @@ module Lithic
|
|
|
469
479
|
|
|
470
480
|
PaymentCreateParams = Lithic::Models::PaymentCreateParams
|
|
471
481
|
|
|
482
|
+
PaymentCreateStablecoinParams = Lithic::Models::PaymentCreateStablecoinParams
|
|
483
|
+
|
|
472
484
|
PaymentListParams = Lithic::Models::PaymentListParams
|
|
473
485
|
|
|
474
486
|
PaymentRetrieveParams = Lithic::Models::PaymentRetrieveParams
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Resources
|
|
5
|
+
class BlockchainRecipients
|
|
6
|
+
# Some parameter documentations has been truncated, see
|
|
7
|
+
# {Lithic::Models::BlockchainRecipientCreateParams} for more details.
|
|
8
|
+
#
|
|
9
|
+
# Register a blockchain address as a withdrawal destination for a financial
|
|
10
|
+
# account
|
|
11
|
+
#
|
|
12
|
+
# The recipient is created with a `PENDING` verification state and cannot receive
|
|
13
|
+
# a payout until screening of the address completes. Registering an address that
|
|
14
|
+
# is already registered to the same financial account returns the existing
|
|
15
|
+
# recipient and its current verification state, rather than creating a second one
|
|
16
|
+
#
|
|
17
|
+
# @overload create(account_token:, address:, chain:, owner:, owner_type:, address_tag: nil, name: nil, request_options: {})
|
|
18
|
+
#
|
|
19
|
+
# @param account_token [String] The financial account the blockchain recipient belongs to
|
|
20
|
+
#
|
|
21
|
+
# @param address [String] The blockchain address funds will be withdrawn to
|
|
22
|
+
#
|
|
23
|
+
# @param chain [String] The blockchain network that the address belongs to
|
|
24
|
+
#
|
|
25
|
+
# @param owner [String] Legal name of the business or individual who owns the blockchain address
|
|
26
|
+
#
|
|
27
|
+
# @param owner_type [Symbol, Lithic::Models::OwnerType] Owner Type
|
|
28
|
+
#
|
|
29
|
+
# @param address_tag [String] An optional tag or memo used by some chains to identify the destination of a tra
|
|
30
|
+
#
|
|
31
|
+
# @param name [String] The nickname for this blockchain recipient
|
|
32
|
+
#
|
|
33
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
34
|
+
#
|
|
35
|
+
# @return [Lithic::Models::BlockchainRecipient]
|
|
36
|
+
#
|
|
37
|
+
# @see Lithic::Models::BlockchainRecipientCreateParams
|
|
38
|
+
def create(params)
|
|
39
|
+
parsed, options = Lithic::BlockchainRecipientCreateParams.dump_request(params)
|
|
40
|
+
@client.request(
|
|
41
|
+
method: :post,
|
|
42
|
+
path: "v1/blockchain_recipients",
|
|
43
|
+
body: parsed,
|
|
44
|
+
model: Lithic::BlockchainRecipient,
|
|
45
|
+
options: options
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Get a blockchain recipient by token
|
|
50
|
+
#
|
|
51
|
+
# Use this to poll the `verification_state` after registering an address: a
|
|
52
|
+
# recipient cannot receive a payout until screening completes and moves it out of
|
|
53
|
+
# `PENDING`
|
|
54
|
+
#
|
|
55
|
+
# @overload retrieve(blockchain_recipient_token, request_options: {})
|
|
56
|
+
#
|
|
57
|
+
# @param blockchain_recipient_token [String]
|
|
58
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
59
|
+
#
|
|
60
|
+
# @return [Lithic::Models::BlockchainRecipient]
|
|
61
|
+
#
|
|
62
|
+
# @see Lithic::Models::BlockchainRecipientRetrieveParams
|
|
63
|
+
def retrieve(blockchain_recipient_token, params = {})
|
|
64
|
+
@client.request(
|
|
65
|
+
method: :get,
|
|
66
|
+
path: ["v1/blockchain_recipients/%1$s", blockchain_recipient_token],
|
|
67
|
+
model: Lithic::BlockchainRecipient,
|
|
68
|
+
options: params[:request_options]
|
|
69
|
+
)
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# @api private
|
|
73
|
+
#
|
|
74
|
+
# @param client [Lithic::Client]
|
|
75
|
+
def initialize(client:)
|
|
76
|
+
@client = client
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -301,9 +301,9 @@ module Lithic
|
|
|
301
301
|
#
|
|
302
302
|
# @param certificate [String] Only applicable if `digital_wallet` is `APPLE_PAY`. Omit to receive only `activa
|
|
303
303
|
#
|
|
304
|
-
# @param client_device_id [String] Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY
|
|
304
|
+
# @param client_device_id [String] Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY`. Stable dev
|
|
305
305
|
#
|
|
306
|
-
# @param client_wallet_account_id [String] Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY
|
|
306
|
+
# @param client_wallet_account_id [String] Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY`. Consumer I
|
|
307
307
|
#
|
|
308
308
|
# @param digital_wallet [Symbol, Lithic::Models::CardProvisionParams::DigitalWallet] Name of digital wallet provider.
|
|
309
309
|
#
|
|
@@ -327,6 +327,33 @@ module Lithic
|
|
|
327
327
|
)
|
|
328
328
|
end
|
|
329
329
|
|
|
330
|
+
# Reassigns a card to another account. The card must be in an `OPEN` or `PAUSED`
|
|
331
|
+
# state, and the destination account must be in an `ACTIVE` state.
|
|
332
|
+
#
|
|
333
|
+
# Clients must contact their Lithic account manager for access to this endpoint.
|
|
334
|
+
#
|
|
335
|
+
# @overload reassign_account(card_token, new_account_token:, request_options: {})
|
|
336
|
+
#
|
|
337
|
+
# @param card_token [String]
|
|
338
|
+
#
|
|
339
|
+
# @param new_account_token [String] Globally unique identifier for the account to associate with the card
|
|
340
|
+
#
|
|
341
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
342
|
+
#
|
|
343
|
+
# @return [Lithic::Models::Card]
|
|
344
|
+
#
|
|
345
|
+
# @see Lithic::Models::CardReassignAccountParams
|
|
346
|
+
def reassign_account(card_token, params)
|
|
347
|
+
parsed, options = Lithic::CardReassignAccountParams.dump_request(params)
|
|
348
|
+
@client.request(
|
|
349
|
+
method: :post,
|
|
350
|
+
path: ["v1/cards/%1$s/reassign_account", card_token],
|
|
351
|
+
body: parsed,
|
|
352
|
+
model: Lithic::Card,
|
|
353
|
+
options: options
|
|
354
|
+
)
|
|
355
|
+
end
|
|
356
|
+
|
|
330
357
|
# Some parameter documentations has been truncated, see
|
|
331
358
|
# {Lithic::Models::CardReissueParams} for more details.
|
|
332
359
|
#
|
|
@@ -334,7 +361,8 @@ module Lithic
|
|
|
334
361
|
# physically damaged). The PAN, expiry, and CVC2 will remain the same and the
|
|
335
362
|
# original card can continue to be used until the new card is activated. Only
|
|
336
363
|
# applies to cards of type `PHYSICAL`. A card can be reissued or renewed a total
|
|
337
|
-
# of 8 times.
|
|
364
|
+
# of 8 times. Returns `409` if the card is still ongoing manufacturing when using
|
|
365
|
+
# Thales as a manufacturer.
|
|
338
366
|
#
|
|
339
367
|
# @overload reissue(card_token, carrier: nil, product_id: nil, shipping_address: nil, shipping_method: nil, request_options: {})
|
|
340
368
|
#
|
|
@@ -375,7 +403,8 @@ module Lithic
|
|
|
375
403
|
# `PHYSICAL` card can be reissued or renewed a total of 8 times. For `VIRTUAL`,
|
|
376
404
|
# the card will retain the same card token and PAN and receive an updated expiry
|
|
377
405
|
# and CVC2 code. `product_id`, `shipping_method`, `shipping_address`, `carrier`
|
|
378
|
-
# are only relevant for renewing `PHYSICAL` cards.
|
|
406
|
+
# are only relevant for renewing `PHYSICAL` cards. Returns `409` if the card is
|
|
407
|
+
# still ongoing manufacturing when using Thales as a manufacturer.
|
|
379
408
|
#
|
|
380
409
|
# @overload renew(card_token, shipping_address:, carrier: nil, exp_month: nil, exp_year: nil, product_id: nil, shipping_method: nil, request_options: {})
|
|
381
410
|
#
|
|
@@ -28,7 +28,7 @@ module Lithic
|
|
|
28
28
|
#
|
|
29
29
|
# Returns a paginated list of disputes.
|
|
30
30
|
#
|
|
31
|
-
# @overload list(account_token: nil, begin_: nil, card_token: nil, disputed_transaction_token: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, request_options: {})
|
|
31
|
+
# @overload list(account_token: nil, begin_: nil, card_token: nil, claim_token: nil, disputed_transaction_token: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, request_options: {})
|
|
32
32
|
#
|
|
33
33
|
# @param account_token [String] Filter by account token.
|
|
34
34
|
#
|
|
@@ -36,6 +36,8 @@ module Lithic
|
|
|
36
36
|
#
|
|
37
37
|
# @param card_token [String] Filter by card token.
|
|
38
38
|
#
|
|
39
|
+
# @param claim_token [String] Filter by the token of the claim the dispute was filed under. Returns the disput
|
|
40
|
+
#
|
|
39
41
|
# @param disputed_transaction_token [String] Filter by the token of the transaction being disputed. Corresponds with transact
|
|
40
42
|
#
|
|
41
43
|
# @param end_ [Time] RFC 3339 timestamp for filtering by created date, inclusive.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Resources
|
|
5
|
+
class FinancialAccounts
|
|
6
|
+
class InstallmentPlans
|
|
7
|
+
# Get a specific installment plan for a given financial account.
|
|
8
|
+
#
|
|
9
|
+
# @overload retrieve(installment_plan_token, financial_account_token:, request_options: {})
|
|
10
|
+
#
|
|
11
|
+
# @param installment_plan_token [String] Globally unique identifier for installment plan.
|
|
12
|
+
#
|
|
13
|
+
# @param financial_account_token [String] Globally unique identifier for financial account.
|
|
14
|
+
#
|
|
15
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
16
|
+
#
|
|
17
|
+
# @return [Lithic::Models::FinancialAccounts::InstallmentPlan]
|
|
18
|
+
#
|
|
19
|
+
# @see Lithic::Models::FinancialAccounts::InstallmentPlanRetrieveParams
|
|
20
|
+
def retrieve(installment_plan_token, params)
|
|
21
|
+
parsed, options = Lithic::FinancialAccounts::InstallmentPlanRetrieveParams.dump_request(params)
|
|
22
|
+
financial_account_token =
|
|
23
|
+
parsed.delete(:financial_account_token) do
|
|
24
|
+
raise ArgumentError.new("missing required path argument #{_1}")
|
|
25
|
+
end
|
|
26
|
+
@client.request(
|
|
27
|
+
method: :get,
|
|
28
|
+
path: [
|
|
29
|
+
"v1/financial_accounts/%1$s/installment_plans/%2$s",
|
|
30
|
+
financial_account_token,
|
|
31
|
+
installment_plan_token
|
|
32
|
+
],
|
|
33
|
+
model: Lithic::FinancialAccounts::InstallmentPlan,
|
|
34
|
+
options: options
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Some parameter documentations has been truncated, see
|
|
39
|
+
# {Lithic::Models::FinancialAccounts::InstallmentPlanListParams} for more details.
|
|
40
|
+
#
|
|
41
|
+
# List the installment plans for a given financial account.
|
|
42
|
+
#
|
|
43
|
+
# @overload list(financial_account_token, ending_before: nil, page_size: nil, starting_after: nil, state: nil, request_options: {})
|
|
44
|
+
#
|
|
45
|
+
# @param financial_account_token [String] Globally unique identifier for financial account.
|
|
46
|
+
#
|
|
47
|
+
# @param ending_before [String] A cursor representing an item's token before which a page of results should end.
|
|
48
|
+
#
|
|
49
|
+
# @param page_size [Integer] Page size (for pagination).
|
|
50
|
+
#
|
|
51
|
+
# @param starting_after [String] A cursor representing an item's token after which a page of results should begin
|
|
52
|
+
#
|
|
53
|
+
# @param state [Symbol, Lithic::Models::FinancialAccounts::InstallmentPlanListParams::State, nil] Only installment plans in this state will be included.
|
|
54
|
+
#
|
|
55
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
56
|
+
#
|
|
57
|
+
# @return [Lithic::Internal::CursorPage<Lithic::Models::FinancialAccounts::InstallmentPlan>]
|
|
58
|
+
#
|
|
59
|
+
# @see Lithic::Models::FinancialAccounts::InstallmentPlanListParams
|
|
60
|
+
def list(financial_account_token, params = {})
|
|
61
|
+
parsed, options = Lithic::FinancialAccounts::InstallmentPlanListParams.dump_request(params)
|
|
62
|
+
query = Lithic::Internal::Util.encode_query_params(parsed)
|
|
63
|
+
@client.request(
|
|
64
|
+
method: :get,
|
|
65
|
+
path: ["v1/financial_accounts/%1$s/installment_plans", financial_account_token],
|
|
66
|
+
query: query,
|
|
67
|
+
page: Lithic::Internal::CursorPage,
|
|
68
|
+
model: Lithic::FinancialAccounts::InstallmentPlan,
|
|
69
|
+
options: options
|
|
70
|
+
)
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# @api private
|
|
74
|
+
#
|
|
75
|
+
# @param client [Lithic::Client]
|
|
76
|
+
def initialize(client:)
|
|
77
|
+
@client = client
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Resources
|
|
5
|
+
class FinancialAccounts
|
|
6
|
+
class OpenToBuy
|
|
7
|
+
# Get the funds available for card spend backed by a given Security Account, along
|
|
8
|
+
# with the balances that amount is derived from.
|
|
9
|
+
#
|
|
10
|
+
# Open to buy is the amount Lithic authorizes card spend against. It is not a
|
|
11
|
+
# stored balance, so it is recalculated on every request from the Security
|
|
12
|
+
# Account, the funds held against spend Lithic has already paid out to the
|
|
13
|
+
# networks on your behalf, and the spend that has not yet been collected. The
|
|
14
|
+
# accounts that feed the calculation depend on your program setup, so
|
|
15
|
+
# `summary.settled_funds` is `null` outside Commercial Charge.
|
|
16
|
+
#
|
|
17
|
+
# Supported for Commercial Charge, Dynamic Reserve, and Secured Charge programs.
|
|
18
|
+
# Returns `404` if `financial_account_token` is not a Security Account you own, or
|
|
19
|
+
# if your program setup does not use an open to buy calculation.
|
|
20
|
+
#
|
|
21
|
+
# @overload retrieve(financial_account_token, request_options: {})
|
|
22
|
+
#
|
|
23
|
+
# @param financial_account_token [String] Globally unique identifier for the Security Account to price
|
|
24
|
+
#
|
|
25
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
26
|
+
#
|
|
27
|
+
# @return [Lithic::Models::FinancialAccounts::FinancialAccountsOpenToBuy]
|
|
28
|
+
#
|
|
29
|
+
# @see Lithic::Models::FinancialAccounts::OpenToBuyRetrieveParams
|
|
30
|
+
def retrieve(financial_account_token, params = {})
|
|
31
|
+
@client.request(
|
|
32
|
+
method: :get,
|
|
33
|
+
path: ["v1/financial_accounts/%1$s/open_to_buy", financial_account_token],
|
|
34
|
+
model: Lithic::FinancialAccounts::FinancialAccountsOpenToBuy,
|
|
35
|
+
options: params[:request_options]
|
|
36
|
+
)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# @api private
|
|
40
|
+
#
|
|
41
|
+
# @param client [Lithic::Client]
|
|
42
|
+
def initialize(client:)
|
|
43
|
+
@client = client
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -6,6 +6,9 @@ module Lithic
|
|
|
6
6
|
# @return [Lithic::Resources::FinancialAccounts::Balances]
|
|
7
7
|
attr_reader :balances
|
|
8
8
|
|
|
9
|
+
# @return [Lithic::Resources::FinancialAccounts::OpenToBuy]
|
|
10
|
+
attr_reader :open_to_buy
|
|
11
|
+
|
|
9
12
|
# @return [Lithic::Resources::FinancialAccounts::FinancialTransactions]
|
|
10
13
|
attr_reader :financial_transactions
|
|
11
14
|
|
|
@@ -18,6 +21,9 @@ module Lithic
|
|
|
18
21
|
# @return [Lithic::Resources::FinancialAccounts::LoanTapes]
|
|
19
22
|
attr_reader :loan_tapes
|
|
20
23
|
|
|
24
|
+
# @return [Lithic::Resources::FinancialAccounts::InstallmentPlans]
|
|
25
|
+
attr_reader :installment_plans
|
|
26
|
+
|
|
21
27
|
# @return [Lithic::Resources::FinancialAccounts::LoanTapeConfiguration]
|
|
22
28
|
attr_reader :loan_tape_configuration
|
|
23
29
|
|
|
@@ -184,10 +190,12 @@ module Lithic
|
|
|
184
190
|
def initialize(client:)
|
|
185
191
|
@client = client
|
|
186
192
|
@balances = Lithic::Resources::FinancialAccounts::Balances.new(client: client)
|
|
193
|
+
@open_to_buy = Lithic::Resources::FinancialAccounts::OpenToBuy.new(client: client)
|
|
187
194
|
@financial_transactions = Lithic::Resources::FinancialAccounts::FinancialTransactions.new(client: client)
|
|
188
195
|
@credit_configuration = Lithic::Resources::FinancialAccounts::CreditConfiguration.new(client: client)
|
|
189
196
|
@statements = Lithic::Resources::FinancialAccounts::Statements.new(client: client)
|
|
190
197
|
@loan_tapes = Lithic::Resources::FinancialAccounts::LoanTapes.new(client: client)
|
|
198
|
+
@installment_plans = Lithic::Resources::FinancialAccounts::InstallmentPlans.new(client: client)
|
|
191
199
|
@loan_tape_configuration =
|
|
192
200
|
Lithic::Resources::FinancialAccounts::LoanTapeConfiguration.new(client: client)
|
|
193
201
|
@interest_tier_schedule = Lithic::Resources::FinancialAccounts::InterestTierSchedule.new(client: client)
|