lithic 0.20.0 → 0.22.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 +44 -0
- data/README.md +1 -10
- data/lib/lithic/internal/type/union.rb +21 -7
- 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/account_holder_create_params.rb +4 -2
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +120 -66
- data/lib/lithic/models/account_holder_update_params.rb +6 -3
- data/lib/lithic/models/account_holder_update_response.rb +156 -86
- data/lib/lithic/models/account_holder_updated_webhook_event.rb +120 -66
- data/lib/lithic/models/account_holders/account_holder_entity.rb +35 -19
- data/lib/lithic/models/account_holders/entity_create_params.rb +39 -21
- data/lib/lithic/models/address.rb +33 -19
- data/lib/lithic/models/address_update.rb +27 -11
- data/lib/lithic/models/auth_rules/auth_rule.rb +60 -27
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +189 -6
- data/lib/lithic/models/auth_rules/auth_rule_entities.rb +47 -0
- data/lib/lithic/models/auth_rules/auth_rule_entities_response.rb +31 -0
- data/lib/lithic/models/auth_rules/auth_rule_entity.rb +150 -0
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +3 -6
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +33 -6
- data/lib/lithic/models/auth_rules/conditional_attribute.rb +101 -5
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +3 -439
- data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +7 -0
- data/lib/lithic/models/auth_rules/merchant_lock_parameters.rb +11 -1
- data/lib/lithic/models/auth_rules/report_stats.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_create_params.rb +218 -45
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +3 -6
- data/lib/lithic/models/auth_rules/v2_list_params.rb +5 -3
- data/lib/lithic/models/auth_rules/v2_list_results_response.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_update_entities_params.rb +39 -0
- data/lib/lithic/models/auth_rules/v2_update_params.rb +133 -12
- data/lib/lithic/models/blockchain_recipient_retrieve_params.rb +20 -0
- data/lib/lithic/models/card_authorization.rb +11 -1
- data/lib/lithic/models/card_create_params.rb +11 -1
- data/lib/lithic/models/card_pin_updated_webhook_event.rb +87 -0
- data/lib/lithic/models/card_update_params.rb +12 -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_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/installment_plans/installment_plan_statement.rb +279 -0
- data/lib/lithic/models/financial_accounts/installment_plans/statement_list_params.rb +106 -0
- data/lib/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rb +42 -0
- data/lib/lithic/models/financial_accounts/loan_tape.rb +62 -1
- 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 +10 -0
- data/lib/lithic/models/financial_accounts/transaction_category_balances.rb +34 -0
- data/lib/lithic/models/financial_event.rb +9 -0
- data/lib/lithic/models/kyb.rb +4 -2
- data/lib/lithic/models/kyb_business_entity.rb +35 -19
- data/lib/lithic/models/kyc.rb +2 -1
- 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/non_pci_card.rb +11 -1
- data/lib/lithic/models/parsed_webhook_event.rb +123 -67
- data/lib/lithic/models/payment.rb +3 -1
- 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/transaction.rb +4 -1
- data/lib/lithic/models/transaction_simulate_authorization_params.rb +28 -4
- data/lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb +11 -1
- data/lib/lithic/models/transaction_simulate_return_params.rb +24 -1
- data/lib/lithic/models.rb +6 -0
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +8 -8
- data/lib/lithic/resources/auth_rules/v2.rb +44 -8
- data/lib/lithic/resources/blockchain_recipients.rb +23 -0
- data/lib/lithic/resources/cards.rb +10 -4
- data/lib/lithic/resources/financial_accounts/installment_plans/statements.rb +107 -0
- data/lib/lithic/resources/financial_accounts/installment_plans.rb +86 -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/transactions.rb +17 -4
- data/lib/lithic/resources/webhooks.rb +18 -0
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +21 -1
- 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/account_holder_create_params.rbi +8 -4
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +195 -90
- data/rbi/lithic/models/account_holder_update_params.rbi +12 -6
- data/rbi/lithic/models/account_holder_update_response.rbi +254 -117
- data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +195 -90
- data/rbi/lithic/models/account_holders/account_holder_entity.rbi +59 -27
- data/rbi/lithic/models/account_holders/entity_create_params.rbi +65 -30
- data/rbi/lithic/models/address.rbi +57 -29
- data/rbi/lithic/models/address_update.rbi +50 -24
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +60 -19
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +442 -13
- data/rbi/lithic/models/auth_rules/auth_rule_entities.rbi +163 -0
- data/rbi/lithic/models/auth_rules/auth_rule_entities_response.rbi +72 -0
- data/rbi/lithic/models/auth_rules/auth_rule_entity.rbi +199 -0
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +0 -2
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +67 -9
- data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +193 -5
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +3 -939
- data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +14 -0
- data/rbi/lithic/models/auth_rules/merchant_lock_parameters.rbi +14 -3
- data/rbi/lithic/models/auth_rules/report_stats.rbi +5 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +358 -50
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +0 -4
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +6 -3
- data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +5 -0
- data/rbi/lithic/models/auth_rules/v2_update_entities_params.rbi +68 -0
- data/rbi/lithic/models/auth_rules/v2_update_params.rbi +198 -5
- data/rbi/lithic/models/blockchain_recipient_retrieve_params.rbi +41 -0
- data/rbi/lithic/models/card_authorization.rbi +12 -0
- data/rbi/lithic/models/card_create_params.rbi +15 -0
- data/rbi/lithic/models/card_pin_updated_webhook_event.rbi +166 -0
- data/rbi/lithic/models/card_update_params.rbi +17 -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_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/installment_plans/installment_plan_statement.rbi +452 -0
- data/rbi/lithic/models/financial_accounts/installment_plans/statement_list_params.rbi +191 -0
- data/rbi/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbi +66 -0
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +119 -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 +50 -0
- data/rbi/lithic/models/financial_accounts/transaction_category_balances.rbi +81 -0
- data/rbi/lithic/models/financial_event.rbi +35 -0
- data/rbi/lithic/models/kyb.rbi +8 -4
- data/rbi/lithic/models/kyb_business_entity.rbi +59 -27
- data/rbi/lithic/models/kyc.rbi +4 -2
- 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/non_pci_card.rbi +12 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +196 -90
- data/rbi/lithic/models/payment.rbi +6 -2
- 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/transaction.rbi +14 -2
- data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +42 -4
- data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +15 -0
- data/rbi/lithic/models/transaction_simulate_return_params.rbi +30 -0
- data/rbi/lithic/models.rbi +7 -0
- data/rbi/lithic/resources/account_holders/entities.rbi +2 -1
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +8 -8
- data/rbi/lithic/resources/auth_rules/v2.rbi +43 -8
- data/rbi/lithic/resources/blockchain_recipients.rbi +14 -0
- data/rbi/lithic/resources/cards.rbi +15 -2
- data/rbi/lithic/resources/financial_accounts/installment_plans/statements.rbi +86 -0
- data/rbi/lithic/resources/financial_accounts/installment_plans.rbi +73 -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/transactions.rbi +31 -2
- data/rbi/lithic/resources/webhooks.rbi +1 -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/account_holder_simulate_enrollment_review_response.rbs +39 -39
- data/sig/lithic/models/account_holder_update_response.rbs +52 -52
- data/sig/lithic/models/account_holder_updated_webhook_event.rbs +39 -39
- data/sig/lithic/models/account_holders/account_holder_entity.rbs +13 -13
- data/sig/lithic/models/account_holders/entity_create_params.rbs +13 -13
- data/sig/lithic/models/address.rbs +13 -13
- data/sig/lithic/models/address_update.rbs +8 -12
- data/sig/lithic/models/auth_rules/auth_rule.rbs +10 -7
- data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +89 -3
- data/sig/lithic/models/auth_rules/auth_rule_entities.rbs +37 -0
- data/sig/lithic/models/auth_rules/auth_rule_entities_response.rbs +29 -0
- data/sig/lithic/models/auth_rules/auth_rule_entity.rbs +80 -0
- data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -2
- data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -0
- data/sig/lithic/models/auth_rules/conditional_attribute.rbs +46 -0
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +4 -204
- data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +2 -0
- data/sig/lithic/models/auth_rules/merchant_lock_parameters.rbs +10 -3
- data/sig/lithic/models/auth_rules/report_stats.rbs +2 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +92 -16
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -2
- data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +2 -0
- data/sig/lithic/models/auth_rules/v2_update_entities_params.rbs +46 -0
- data/sig/lithic/models/auth_rules/v2_update_params.rbs +47 -1
- data/sig/lithic/models/blockchain_recipient_retrieve_params.rbs +24 -0
- data/sig/lithic/models/card_authorization.rbs +5 -0
- data/sig/lithic/models/card_create_params.rbs +7 -0
- data/sig/lithic/models/card_pin_updated_webhook_event.rbs +60 -0
- data/sig/lithic/models/card_update_params.rbs +8 -1
- 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_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/installment_plans/installment_plan_statement.rbs +191 -0
- data/sig/lithic/models/financial_accounts/installment_plans/statement_list_params.rbs +90 -0
- data/sig/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbs +40 -0
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +47 -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 +20 -0
- data/sig/lithic/models/financial_accounts/transaction_category_balances.rbs +32 -0
- data/sig/lithic/models/financial_event.rbs +18 -0
- data/sig/lithic/models/kyb_business_entity.rbs +13 -13
- 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/non_pci_card.rbs +5 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +40 -39
- data/sig/lithic/models/payment.rbs +2 -0
- 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_simulate_authorization_params.rbs +14 -0
- data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +7 -0
- data/sig/lithic/models/transaction_simulate_return_params.rbs +19 -1
- data/sig/lithic/models.rbs +6 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +7 -0
- data/sig/lithic/resources/blockchain_recipients.rbs +5 -0
- data/sig/lithic/resources/cards.rbs +2 -0
- data/sig/lithic/resources/financial_accounts/installment_plans/statements.rbs +30 -0
- data/sig/lithic/resources/financial_accounts/installment_plans.rbs +26 -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/transactions.rbs +5 -0
- data/sig/lithic/resources/webhooks.rbs +1 -0
- metadata +65 -5
- data/lib/lithic/models/auth_rules/conditional_block_parameters.rb +0 -20
- data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +0 -37
- data/sig/lithic/models/auth_rules/conditional_block_parameters.rbs +0 -20
|
@@ -14,22 +14,67 @@ module Lithic
|
|
|
14
14
|
sig { returns(String) }
|
|
15
15
|
attr_accessor :payment_token
|
|
16
16
|
|
|
17
|
+
# Settlement speed to retry the payment at. Defaults to the original payment's
|
|
18
|
+
# method. An `ACH_SAME_DAY` retry is rejected if the payment is for $1,000,000.00
|
|
19
|
+
# or more, or if it is submitted after the same day ACH cutoff
|
|
20
|
+
sig { returns(T.nilable(Lithic::PaymentRetryParams::Method::OrSymbol)) }
|
|
21
|
+
attr_reader :method_
|
|
22
|
+
|
|
23
|
+
sig { params(method_: Lithic::PaymentRetryParams::Method::OrSymbol).void }
|
|
24
|
+
attr_writer :method_
|
|
25
|
+
|
|
17
26
|
sig do
|
|
18
27
|
params(
|
|
19
28
|
payment_token: String,
|
|
29
|
+
method_: Lithic::PaymentRetryParams::Method::OrSymbol,
|
|
20
30
|
request_options: Lithic::RequestOptions::OrHash
|
|
21
31
|
).returns(T.attached_class)
|
|
22
32
|
end
|
|
23
|
-
def self.new(
|
|
33
|
+
def self.new(
|
|
34
|
+
payment_token:,
|
|
35
|
+
# Settlement speed to retry the payment at. Defaults to the original payment's
|
|
36
|
+
# method. An `ACH_SAME_DAY` retry is rejected if the payment is for $1,000,000.00
|
|
37
|
+
# or more, or if it is submitted after the same day ACH cutoff
|
|
38
|
+
method_: nil,
|
|
39
|
+
request_options: {}
|
|
40
|
+
)
|
|
24
41
|
end
|
|
25
42
|
|
|
26
43
|
sig do
|
|
27
44
|
override.returns(
|
|
28
|
-
{
|
|
45
|
+
{
|
|
46
|
+
payment_token: String,
|
|
47
|
+
method_: Lithic::PaymentRetryParams::Method::OrSymbol,
|
|
48
|
+
request_options: Lithic::RequestOptions
|
|
49
|
+
}
|
|
29
50
|
)
|
|
30
51
|
end
|
|
31
52
|
def to_hash
|
|
32
53
|
end
|
|
54
|
+
|
|
55
|
+
# Settlement speed to retry the payment at. Defaults to the original payment's
|
|
56
|
+
# method. An `ACH_SAME_DAY` retry is rejected if the payment is for $1,000,000.00
|
|
57
|
+
# or more, or if it is submitted after the same day ACH cutoff
|
|
58
|
+
module Method
|
|
59
|
+
extend Lithic::Internal::Type::Enum
|
|
60
|
+
|
|
61
|
+
TaggedSymbol =
|
|
62
|
+
T.type_alias { T.all(Symbol, Lithic::PaymentRetryParams::Method) }
|
|
63
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
64
|
+
|
|
65
|
+
ACH_NEXT_DAY =
|
|
66
|
+
T.let(:ACH_NEXT_DAY, Lithic::PaymentRetryParams::Method::TaggedSymbol)
|
|
67
|
+
ACH_SAME_DAY =
|
|
68
|
+
T.let(:ACH_SAME_DAY, Lithic::PaymentRetryParams::Method::TaggedSymbol)
|
|
69
|
+
|
|
70
|
+
sig do
|
|
71
|
+
override.returns(
|
|
72
|
+
T::Array[Lithic::PaymentRetryParams::Method::TaggedSymbol]
|
|
73
|
+
)
|
|
74
|
+
end
|
|
75
|
+
def self.values
|
|
76
|
+
end
|
|
77
|
+
end
|
|
33
78
|
end
|
|
34
79
|
end
|
|
35
80
|
end
|
|
@@ -163,6 +163,11 @@ module Lithic
|
|
|
163
163
|
:ACH_RETURN_SETTLED,
|
|
164
164
|
Lithic::PaymentSimulateActionParams::EventType::TaggedSymbol
|
|
165
165
|
)
|
|
166
|
+
STABLECOIN_REVIEWED =
|
|
167
|
+
T.let(
|
|
168
|
+
:STABLECOIN_REVIEWED,
|
|
169
|
+
Lithic::PaymentSimulateActionParams::EventType::TaggedSymbol
|
|
170
|
+
)
|
|
166
171
|
|
|
167
172
|
sig do
|
|
168
173
|
override.returns(
|
|
@@ -183,6 +183,20 @@ module Lithic
|
|
|
183
183
|
end
|
|
184
184
|
attr_accessor :decision_made_by
|
|
185
185
|
|
|
186
|
+
# PSD2/SCA context for EEA and UK transactions. Present when Lithic determines the
|
|
187
|
+
# transaction is in scope for PSD2 Strong Customer Authentication. Absent for
|
|
188
|
+
# out-of-scope transactions.
|
|
189
|
+
sig { returns(T.nilable(Lithic::ThreeDSAuthentication::Psd2Context)) }
|
|
190
|
+
attr_reader :psd2_context
|
|
191
|
+
|
|
192
|
+
sig do
|
|
193
|
+
params(
|
|
194
|
+
psd2_context:
|
|
195
|
+
T.nilable(Lithic::ThreeDSAuthentication::Psd2Context::OrHash)
|
|
196
|
+
).void
|
|
197
|
+
end
|
|
198
|
+
attr_writer :psd2_context
|
|
199
|
+
|
|
186
200
|
# Type of 3DS Requestor Initiated (3RI) request — i.e., a 3DS authentication that
|
|
187
201
|
# takes place at the initiation of the merchant rather than the cardholder. The
|
|
188
202
|
# most common example of this is where a merchant is authenticating before billing
|
|
@@ -245,6 +259,8 @@ module Lithic
|
|
|
245
259
|
),
|
|
246
260
|
decision_made_by:
|
|
247
261
|
T.nilable(Lithic::ThreeDSAuthentication::DecisionMadeBy::OrSymbol),
|
|
262
|
+
psd2_context:
|
|
263
|
+
T.nilable(Lithic::ThreeDSAuthentication::Psd2Context::OrHash),
|
|
248
264
|
three_ri_request_type:
|
|
249
265
|
T.nilable(
|
|
250
266
|
Lithic::ThreeDSAuthentication::ThreeRiRequestType::OrSymbol
|
|
@@ -319,6 +335,10 @@ module Lithic
|
|
|
319
335
|
# authentications for which a decision has not yet been made (e.g. in-flight
|
|
320
336
|
# customer decisioning request).
|
|
321
337
|
decision_made_by: nil,
|
|
338
|
+
# PSD2/SCA context for EEA and UK transactions. Present when Lithic determines the
|
|
339
|
+
# transaction is in scope for PSD2 Strong Customer Authentication. Absent for
|
|
340
|
+
# out-of-scope transactions.
|
|
341
|
+
psd2_context: nil,
|
|
322
342
|
# Type of 3DS Requestor Initiated (3RI) request — i.e., a 3DS authentication that
|
|
323
343
|
# takes place at the initiation of the merchant rather than the cardholder. The
|
|
324
344
|
# most common example of this is where a merchant is authenticating before billing
|
|
@@ -370,6 +390,7 @@ module Lithic
|
|
|
370
390
|
T.nilable(
|
|
371
391
|
Lithic::ThreeDSAuthentication::DecisionMadeBy::TaggedSymbol
|
|
372
392
|
),
|
|
393
|
+
psd2_context: T.nilable(Lithic::ThreeDSAuthentication::Psd2Context),
|
|
373
394
|
three_ri_request_type:
|
|
374
395
|
T.nilable(
|
|
375
396
|
Lithic::ThreeDSAuthentication::ThreeRiRequestType::TaggedSymbol
|
|
@@ -2171,6 +2192,277 @@ module Lithic
|
|
|
2171
2192
|
end
|
|
2172
2193
|
end
|
|
2173
2194
|
|
|
2195
|
+
class Psd2Context < Lithic::Internal::Type::BaseModel
|
|
2196
|
+
OrHash =
|
|
2197
|
+
T.type_alias do
|
|
2198
|
+
T.any(
|
|
2199
|
+
Lithic::ThreeDSAuthentication::Psd2Context,
|
|
2200
|
+
Lithic::Internal::AnyHash
|
|
2201
|
+
)
|
|
2202
|
+
end
|
|
2203
|
+
|
|
2204
|
+
# SCA exemption declared by the acquirer in the 3DS authentication request.
|
|
2205
|
+
#
|
|
2206
|
+
# - `NONE` - No exemption claimed
|
|
2207
|
+
# - `TRANSACTION_RISK_ANALYSIS` - Transaction Risk Analysis (TRA) exemption;
|
|
2208
|
+
# acquirer asserts low fraud risk
|
|
2209
|
+
# - `LOW_VALUE` - Low-value payment exemption; transaction is below the EUR 30
|
|
2210
|
+
# threshold
|
|
2211
|
+
# - `RECURRING_PAYMENT` - Recurring payment with a fixed amount to the same payee
|
|
2212
|
+
# - `MERCHANT_INITIATED_TRANSACTION` - Merchant-initiated transaction (MIT);
|
|
2213
|
+
# cardholder not present
|
|
2214
|
+
# - `TRUSTED_BENEFICIARY` - Trusted beneficiary; merchant is on cardholder's
|
|
2215
|
+
# whitelist
|
|
2216
|
+
# - `STRONG_CUSTOMER_AUTHENTICATION_DELEGATION` - SCA already performed by a
|
|
2217
|
+
# delegated third-party authenticator
|
|
2218
|
+
# - `SECURE_CORPORATE_PAYMENT` - Secure corporate payment using a dedicated
|
|
2219
|
+
# corporate card or process
|
|
2220
|
+
# - `AUTHENTICATION_OUTAGE_EXCEPTION` - Authentication outage exception;
|
|
2221
|
+
# scheme-level fallback during ACS downtime
|
|
2222
|
+
# - `BUNDLED` - Mastercard only; bundled exemption code where the exact exemption
|
|
2223
|
+
# type cannot be distinguished
|
|
2224
|
+
sig do
|
|
2225
|
+
returns(
|
|
2226
|
+
T.nilable(
|
|
2227
|
+
Lithic::ThreeDSAuthentication::Psd2Context::AcquirerExemption::TaggedSymbol
|
|
2228
|
+
)
|
|
2229
|
+
)
|
|
2230
|
+
end
|
|
2231
|
+
attr_reader :acquirer_exemption
|
|
2232
|
+
|
|
2233
|
+
sig do
|
|
2234
|
+
params(
|
|
2235
|
+
acquirer_exemption:
|
|
2236
|
+
Lithic::ThreeDSAuthentication::Psd2Context::AcquirerExemption::OrSymbol
|
|
2237
|
+
).void
|
|
2238
|
+
end
|
|
2239
|
+
attr_writer :acquirer_exemption
|
|
2240
|
+
|
|
2241
|
+
# Lithic's validation of the acquirer-declared exemption. Absent when no acquirer
|
|
2242
|
+
# exemption was declared.
|
|
2243
|
+
#
|
|
2244
|
+
# - `ACCEPTED` - Lithic signals support the acquirer's claim
|
|
2245
|
+
# - `REJECTED` - Lithic signals contradict the claim, or a required signal is
|
|
2246
|
+
# missing
|
|
2247
|
+
# - `NOT_VALIDATED` - Exemption was declared but Lithic has no basis to evaluate
|
|
2248
|
+
# it; treated as `REJECTED` for challenge purposes
|
|
2249
|
+
sig do
|
|
2250
|
+
returns(
|
|
2251
|
+
T.nilable(
|
|
2252
|
+
Lithic::ThreeDSAuthentication::Psd2Context::LithicExemptionValidation::TaggedSymbol
|
|
2253
|
+
)
|
|
2254
|
+
)
|
|
2255
|
+
end
|
|
2256
|
+
attr_reader :lithic_exemption_validation
|
|
2257
|
+
|
|
2258
|
+
sig do
|
|
2259
|
+
params(
|
|
2260
|
+
lithic_exemption_validation:
|
|
2261
|
+
Lithic::ThreeDSAuthentication::Psd2Context::LithicExemptionValidation::OrSymbol
|
|
2262
|
+
).void
|
|
2263
|
+
end
|
|
2264
|
+
attr_writer :lithic_exemption_validation
|
|
2265
|
+
|
|
2266
|
+
# PSD2/SCA context for EEA and UK transactions. Present when Lithic determines the
|
|
2267
|
+
# transaction is in scope for PSD2 Strong Customer Authentication. Absent for
|
|
2268
|
+
# out-of-scope transactions.
|
|
2269
|
+
sig do
|
|
2270
|
+
params(
|
|
2271
|
+
acquirer_exemption:
|
|
2272
|
+
Lithic::ThreeDSAuthentication::Psd2Context::AcquirerExemption::OrSymbol,
|
|
2273
|
+
lithic_exemption_validation:
|
|
2274
|
+
Lithic::ThreeDSAuthentication::Psd2Context::LithicExemptionValidation::OrSymbol
|
|
2275
|
+
).returns(T.attached_class)
|
|
2276
|
+
end
|
|
2277
|
+
def self.new(
|
|
2278
|
+
# SCA exemption declared by the acquirer in the 3DS authentication request.
|
|
2279
|
+
#
|
|
2280
|
+
# - `NONE` - No exemption claimed
|
|
2281
|
+
# - `TRANSACTION_RISK_ANALYSIS` - Transaction Risk Analysis (TRA) exemption;
|
|
2282
|
+
# acquirer asserts low fraud risk
|
|
2283
|
+
# - `LOW_VALUE` - Low-value payment exemption; transaction is below the EUR 30
|
|
2284
|
+
# threshold
|
|
2285
|
+
# - `RECURRING_PAYMENT` - Recurring payment with a fixed amount to the same payee
|
|
2286
|
+
# - `MERCHANT_INITIATED_TRANSACTION` - Merchant-initiated transaction (MIT);
|
|
2287
|
+
# cardholder not present
|
|
2288
|
+
# - `TRUSTED_BENEFICIARY` - Trusted beneficiary; merchant is on cardholder's
|
|
2289
|
+
# whitelist
|
|
2290
|
+
# - `STRONG_CUSTOMER_AUTHENTICATION_DELEGATION` - SCA already performed by a
|
|
2291
|
+
# delegated third-party authenticator
|
|
2292
|
+
# - `SECURE_CORPORATE_PAYMENT` - Secure corporate payment using a dedicated
|
|
2293
|
+
# corporate card or process
|
|
2294
|
+
# - `AUTHENTICATION_OUTAGE_EXCEPTION` - Authentication outage exception;
|
|
2295
|
+
# scheme-level fallback during ACS downtime
|
|
2296
|
+
# - `BUNDLED` - Mastercard only; bundled exemption code where the exact exemption
|
|
2297
|
+
# type cannot be distinguished
|
|
2298
|
+
acquirer_exemption: nil,
|
|
2299
|
+
# Lithic's validation of the acquirer-declared exemption. Absent when no acquirer
|
|
2300
|
+
# exemption was declared.
|
|
2301
|
+
#
|
|
2302
|
+
# - `ACCEPTED` - Lithic signals support the acquirer's claim
|
|
2303
|
+
# - `REJECTED` - Lithic signals contradict the claim, or a required signal is
|
|
2304
|
+
# missing
|
|
2305
|
+
# - `NOT_VALIDATED` - Exemption was declared but Lithic has no basis to evaluate
|
|
2306
|
+
# it; treated as `REJECTED` for challenge purposes
|
|
2307
|
+
lithic_exemption_validation: nil
|
|
2308
|
+
)
|
|
2309
|
+
end
|
|
2310
|
+
|
|
2311
|
+
sig do
|
|
2312
|
+
override.returns(
|
|
2313
|
+
{
|
|
2314
|
+
acquirer_exemption:
|
|
2315
|
+
Lithic::ThreeDSAuthentication::Psd2Context::AcquirerExemption::TaggedSymbol,
|
|
2316
|
+
lithic_exemption_validation:
|
|
2317
|
+
Lithic::ThreeDSAuthentication::Psd2Context::LithicExemptionValidation::TaggedSymbol
|
|
2318
|
+
}
|
|
2319
|
+
)
|
|
2320
|
+
end
|
|
2321
|
+
def to_hash
|
|
2322
|
+
end
|
|
2323
|
+
|
|
2324
|
+
# SCA exemption declared by the acquirer in the 3DS authentication request.
|
|
2325
|
+
#
|
|
2326
|
+
# - `NONE` - No exemption claimed
|
|
2327
|
+
# - `TRANSACTION_RISK_ANALYSIS` - Transaction Risk Analysis (TRA) exemption;
|
|
2328
|
+
# acquirer asserts low fraud risk
|
|
2329
|
+
# - `LOW_VALUE` - Low-value payment exemption; transaction is below the EUR 30
|
|
2330
|
+
# threshold
|
|
2331
|
+
# - `RECURRING_PAYMENT` - Recurring payment with a fixed amount to the same payee
|
|
2332
|
+
# - `MERCHANT_INITIATED_TRANSACTION` - Merchant-initiated transaction (MIT);
|
|
2333
|
+
# cardholder not present
|
|
2334
|
+
# - `TRUSTED_BENEFICIARY` - Trusted beneficiary; merchant is on cardholder's
|
|
2335
|
+
# whitelist
|
|
2336
|
+
# - `STRONG_CUSTOMER_AUTHENTICATION_DELEGATION` - SCA already performed by a
|
|
2337
|
+
# delegated third-party authenticator
|
|
2338
|
+
# - `SECURE_CORPORATE_PAYMENT` - Secure corporate payment using a dedicated
|
|
2339
|
+
# corporate card or process
|
|
2340
|
+
# - `AUTHENTICATION_OUTAGE_EXCEPTION` - Authentication outage exception;
|
|
2341
|
+
# scheme-level fallback during ACS downtime
|
|
2342
|
+
# - `BUNDLED` - Mastercard only; bundled exemption code where the exact exemption
|
|
2343
|
+
# type cannot be distinguished
|
|
2344
|
+
module AcquirerExemption
|
|
2345
|
+
extend Lithic::Internal::Type::Enum
|
|
2346
|
+
|
|
2347
|
+
TaggedSymbol =
|
|
2348
|
+
T.type_alias do
|
|
2349
|
+
T.all(
|
|
2350
|
+
Symbol,
|
|
2351
|
+
Lithic::ThreeDSAuthentication::Psd2Context::AcquirerExemption
|
|
2352
|
+
)
|
|
2353
|
+
end
|
|
2354
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
2355
|
+
|
|
2356
|
+
NONE =
|
|
2357
|
+
T.let(
|
|
2358
|
+
:NONE,
|
|
2359
|
+
Lithic::ThreeDSAuthentication::Psd2Context::AcquirerExemption::TaggedSymbol
|
|
2360
|
+
)
|
|
2361
|
+
TRANSACTION_RISK_ANALYSIS =
|
|
2362
|
+
T.let(
|
|
2363
|
+
:TRANSACTION_RISK_ANALYSIS,
|
|
2364
|
+
Lithic::ThreeDSAuthentication::Psd2Context::AcquirerExemption::TaggedSymbol
|
|
2365
|
+
)
|
|
2366
|
+
LOW_VALUE =
|
|
2367
|
+
T.let(
|
|
2368
|
+
:LOW_VALUE,
|
|
2369
|
+
Lithic::ThreeDSAuthentication::Psd2Context::AcquirerExemption::TaggedSymbol
|
|
2370
|
+
)
|
|
2371
|
+
RECURRING_PAYMENT =
|
|
2372
|
+
T.let(
|
|
2373
|
+
:RECURRING_PAYMENT,
|
|
2374
|
+
Lithic::ThreeDSAuthentication::Psd2Context::AcquirerExemption::TaggedSymbol
|
|
2375
|
+
)
|
|
2376
|
+
MERCHANT_INITIATED_TRANSACTION =
|
|
2377
|
+
T.let(
|
|
2378
|
+
:MERCHANT_INITIATED_TRANSACTION,
|
|
2379
|
+
Lithic::ThreeDSAuthentication::Psd2Context::AcquirerExemption::TaggedSymbol
|
|
2380
|
+
)
|
|
2381
|
+
TRUSTED_BENEFICIARY =
|
|
2382
|
+
T.let(
|
|
2383
|
+
:TRUSTED_BENEFICIARY,
|
|
2384
|
+
Lithic::ThreeDSAuthentication::Psd2Context::AcquirerExemption::TaggedSymbol
|
|
2385
|
+
)
|
|
2386
|
+
STRONG_CUSTOMER_AUTHENTICATION_DELEGATION =
|
|
2387
|
+
T.let(
|
|
2388
|
+
:STRONG_CUSTOMER_AUTHENTICATION_DELEGATION,
|
|
2389
|
+
Lithic::ThreeDSAuthentication::Psd2Context::AcquirerExemption::TaggedSymbol
|
|
2390
|
+
)
|
|
2391
|
+
SECURE_CORPORATE_PAYMENT =
|
|
2392
|
+
T.let(
|
|
2393
|
+
:SECURE_CORPORATE_PAYMENT,
|
|
2394
|
+
Lithic::ThreeDSAuthentication::Psd2Context::AcquirerExemption::TaggedSymbol
|
|
2395
|
+
)
|
|
2396
|
+
AUTHENTICATION_OUTAGE_EXCEPTION =
|
|
2397
|
+
T.let(
|
|
2398
|
+
:AUTHENTICATION_OUTAGE_EXCEPTION,
|
|
2399
|
+
Lithic::ThreeDSAuthentication::Psd2Context::AcquirerExemption::TaggedSymbol
|
|
2400
|
+
)
|
|
2401
|
+
BUNDLED =
|
|
2402
|
+
T.let(
|
|
2403
|
+
:BUNDLED,
|
|
2404
|
+
Lithic::ThreeDSAuthentication::Psd2Context::AcquirerExemption::TaggedSymbol
|
|
2405
|
+
)
|
|
2406
|
+
|
|
2407
|
+
sig do
|
|
2408
|
+
override.returns(
|
|
2409
|
+
T::Array[
|
|
2410
|
+
Lithic::ThreeDSAuthentication::Psd2Context::AcquirerExemption::TaggedSymbol
|
|
2411
|
+
]
|
|
2412
|
+
)
|
|
2413
|
+
end
|
|
2414
|
+
def self.values
|
|
2415
|
+
end
|
|
2416
|
+
end
|
|
2417
|
+
|
|
2418
|
+
# Lithic's validation of the acquirer-declared exemption. Absent when no acquirer
|
|
2419
|
+
# exemption was declared.
|
|
2420
|
+
#
|
|
2421
|
+
# - `ACCEPTED` - Lithic signals support the acquirer's claim
|
|
2422
|
+
# - `REJECTED` - Lithic signals contradict the claim, or a required signal is
|
|
2423
|
+
# missing
|
|
2424
|
+
# - `NOT_VALIDATED` - Exemption was declared but Lithic has no basis to evaluate
|
|
2425
|
+
# it; treated as `REJECTED` for challenge purposes
|
|
2426
|
+
module LithicExemptionValidation
|
|
2427
|
+
extend Lithic::Internal::Type::Enum
|
|
2428
|
+
|
|
2429
|
+
TaggedSymbol =
|
|
2430
|
+
T.type_alias do
|
|
2431
|
+
T.all(
|
|
2432
|
+
Symbol,
|
|
2433
|
+
Lithic::ThreeDSAuthentication::Psd2Context::LithicExemptionValidation
|
|
2434
|
+
)
|
|
2435
|
+
end
|
|
2436
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
2437
|
+
|
|
2438
|
+
ACCEPTED =
|
|
2439
|
+
T.let(
|
|
2440
|
+
:ACCEPTED,
|
|
2441
|
+
Lithic::ThreeDSAuthentication::Psd2Context::LithicExemptionValidation::TaggedSymbol
|
|
2442
|
+
)
|
|
2443
|
+
REJECTED =
|
|
2444
|
+
T.let(
|
|
2445
|
+
:REJECTED,
|
|
2446
|
+
Lithic::ThreeDSAuthentication::Psd2Context::LithicExemptionValidation::TaggedSymbol
|
|
2447
|
+
)
|
|
2448
|
+
NOT_VALIDATED =
|
|
2449
|
+
T.let(
|
|
2450
|
+
:NOT_VALIDATED,
|
|
2451
|
+
Lithic::ThreeDSAuthentication::Psd2Context::LithicExemptionValidation::TaggedSymbol
|
|
2452
|
+
)
|
|
2453
|
+
|
|
2454
|
+
sig do
|
|
2455
|
+
override.returns(
|
|
2456
|
+
T::Array[
|
|
2457
|
+
Lithic::ThreeDSAuthentication::Psd2Context::LithicExemptionValidation::TaggedSymbol
|
|
2458
|
+
]
|
|
2459
|
+
)
|
|
2460
|
+
end
|
|
2461
|
+
def self.values
|
|
2462
|
+
end
|
|
2463
|
+
end
|
|
2464
|
+
end
|
|
2465
|
+
|
|
2174
2466
|
# Type of 3DS Requestor Initiated (3RI) request — i.e., a 3DS authentication that
|
|
2175
2467
|
# takes place at the initiation of the merchant rather than the cardholder. The
|
|
2176
2468
|
# most common example of this is where a merchant is authenticating before billing
|
|
@@ -140,7 +140,8 @@ module Lithic
|
|
|
140
140
|
attr_accessor :status
|
|
141
141
|
|
|
142
142
|
# Key-value pairs for tagging resources. Tags allow you to associate arbitrary
|
|
143
|
-
# metadata with a resource for your own purposes.
|
|
143
|
+
# metadata with a resource for your own purposes. A resource can have at most 50
|
|
144
|
+
# tags, with keys up to 40 characters and values up to 500 characters
|
|
144
145
|
sig { returns(T::Hash[Symbol, String]) }
|
|
145
146
|
attr_accessor :tags
|
|
146
147
|
|
|
@@ -253,7 +254,8 @@ module Lithic
|
|
|
253
254
|
# Status of the transaction.
|
|
254
255
|
status:,
|
|
255
256
|
# Key-value pairs for tagging resources. Tags allow you to associate arbitrary
|
|
256
|
-
# metadata with a resource for your own purposes.
|
|
257
|
+
# metadata with a resource for your own purposes. A resource can have at most 50
|
|
258
|
+
# tags, with keys up to 40 characters and values up to 500 characters
|
|
257
259
|
tags:,
|
|
258
260
|
token_info:,
|
|
259
261
|
# Date and time when the transaction last updated. UTC time zone.
|
|
@@ -2079,6 +2081,11 @@ module Lithic
|
|
|
2079
2081
|
:REVERSAL_UNMATCHED,
|
|
2080
2082
|
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
|
2081
2083
|
)
|
|
2084
|
+
SCA_REQUIRED =
|
|
2085
|
+
T.let(
|
|
2086
|
+
:SCA_REQUIRED,
|
|
2087
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
|
2088
|
+
)
|
|
2082
2089
|
SECURITY_VIOLATION =
|
|
2083
2090
|
T.let(
|
|
2084
2091
|
:SECURITY_VIOLATION,
|
|
@@ -2982,6 +2989,11 @@ module Lithic
|
|
|
2982
2989
|
:REVERSAL_UNMATCHED,
|
|
2983
2990
|
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
|
2984
2991
|
)
|
|
2992
|
+
SCA_REQUIRED =
|
|
2993
|
+
T.let(
|
|
2994
|
+
:SCA_REQUIRED,
|
|
2995
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
|
2996
|
+
)
|
|
2985
2997
|
SECURITY_VIOLATION =
|
|
2986
2998
|
T.let(
|
|
2987
2999
|
:SECURITY_VIOLATION,
|
|
@@ -30,6 +30,15 @@ module Lithic
|
|
|
30
30
|
sig { returns(String) }
|
|
31
31
|
attr_accessor :pan
|
|
32
32
|
|
|
33
|
+
# 3-character alphabetic ISO 4217 currency code for the cardholder billing amount.
|
|
34
|
+
# Permitted values are USD, GBP, EUR and CAD, and any other ISO 4217 code returns
|
|
35
|
+
# a 422. Defaults to USD
|
|
36
|
+
sig { returns(T.nilable(String)) }
|
|
37
|
+
attr_reader :billing_currency
|
|
38
|
+
|
|
39
|
+
sig { params(billing_currency: String).void }
|
|
40
|
+
attr_writer :billing_currency
|
|
41
|
+
|
|
33
42
|
# Merchant category code for the transaction to be simulated. A four-digit number
|
|
34
43
|
# listed in ISO 18245. Supported merchant category codes can be found
|
|
35
44
|
# [here](https://docs.lithic.com/docs/transactions#merchant-category-codes-mccs).
|
|
@@ -75,8 +84,10 @@ module Lithic
|
|
|
75
84
|
sig { params(merchant_amount: Integer).void }
|
|
76
85
|
attr_writer :merchant_amount
|
|
77
86
|
|
|
78
|
-
# 3-character alphabetic ISO 4217 currency code
|
|
79
|
-
#
|
|
87
|
+
# 3-character alphabetic ISO 4217 currency code for the merchant amount. Only used
|
|
88
|
+
# when merchant_amount is set, and defaults to GBP in that case. Without
|
|
89
|
+
# merchant_amount, the merchant amount uses the billing currency. Permitted values
|
|
90
|
+
# are USD, GBP, EUR and CAD, and any other ISO 4217 code returns a 422
|
|
80
91
|
sig { returns(T.nilable(String)) }
|
|
81
92
|
attr_reader :merchant_currency
|
|
82
93
|
|
|
@@ -99,6 +110,17 @@ module Lithic
|
|
|
99
110
|
sig { params(pin: String).void }
|
|
100
111
|
attr_writer :pin
|
|
101
112
|
|
|
113
|
+
# 3-character alphabetic ISO 4217 currency code for the settlement amount.
|
|
114
|
+
# Permitted values are USD, GBP, EUR and CAD, and any other ISO 4217 code returns
|
|
115
|
+
# a 422. Defaults to the value of billing_currency. Only single message
|
|
116
|
+
# (financial) authorizations carry a settlement amount, and the value is ignored
|
|
117
|
+
# for dual message authorizations
|
|
118
|
+
sig { returns(T.nilable(String)) }
|
|
119
|
+
attr_reader :settlement_currency
|
|
120
|
+
|
|
121
|
+
sig { params(settlement_currency: String).void }
|
|
122
|
+
attr_writer :settlement_currency
|
|
123
|
+
|
|
102
124
|
# Type of event to simulate.
|
|
103
125
|
#
|
|
104
126
|
# - `AUTHORIZATION` is a dual message purchase authorization, meaning a subsequent
|
|
@@ -137,6 +159,7 @@ module Lithic
|
|
|
137
159
|
amount: Integer,
|
|
138
160
|
descriptor: String,
|
|
139
161
|
pan: String,
|
|
162
|
+
billing_currency: String,
|
|
140
163
|
mcc: String,
|
|
141
164
|
merchant_acceptor_city: String,
|
|
142
165
|
merchant_acceptor_country: String,
|
|
@@ -146,6 +169,7 @@ module Lithic
|
|
|
146
169
|
merchant_currency: String,
|
|
147
170
|
partial_approval_capable: T::Boolean,
|
|
148
171
|
pin: String,
|
|
172
|
+
settlement_currency: String,
|
|
149
173
|
status:
|
|
150
174
|
Lithic::TransactionSimulateAuthorizationParams::Status::OrSymbol,
|
|
151
175
|
request_options: Lithic::RequestOptions::OrHash
|
|
@@ -162,6 +186,10 @@ module Lithic
|
|
|
162
186
|
descriptor:,
|
|
163
187
|
# Sixteen digit card number.
|
|
164
188
|
pan:,
|
|
189
|
+
# 3-character alphabetic ISO 4217 currency code for the cardholder billing amount.
|
|
190
|
+
# Permitted values are USD, GBP, EUR and CAD, and any other ISO 4217 code returns
|
|
191
|
+
# a 422. Defaults to USD
|
|
192
|
+
billing_currency: nil,
|
|
165
193
|
# Merchant category code for the transaction to be simulated. A four-digit number
|
|
166
194
|
# listed in ISO 18245. Supported merchant category codes can be found
|
|
167
195
|
# [here](https://docs.lithic.com/docs/transactions#merchant-category-codes-mccs).
|
|
@@ -177,8 +205,10 @@ module Lithic
|
|
|
177
205
|
# Amount of the transaction to be simulated in currency specified in
|
|
178
206
|
# merchant_currency, including any acquirer fees.
|
|
179
207
|
merchant_amount: nil,
|
|
180
|
-
# 3-character alphabetic ISO 4217 currency code
|
|
181
|
-
#
|
|
208
|
+
# 3-character alphabetic ISO 4217 currency code for the merchant amount. Only used
|
|
209
|
+
# when merchant_amount is set, and defaults to GBP in that case. Without
|
|
210
|
+
# merchant_amount, the merchant amount uses the billing currency. Permitted values
|
|
211
|
+
# are USD, GBP, EUR and CAD, and any other ISO 4217 code returns a 422
|
|
182
212
|
merchant_currency: nil,
|
|
183
213
|
# Set to true if the terminal is capable of partial approval otherwise false.
|
|
184
214
|
# Partial approval is when part of a transaction is approved and another payment
|
|
@@ -186,6 +216,12 @@ module Lithic
|
|
|
186
216
|
partial_approval_capable: nil,
|
|
187
217
|
# Simulate entering a PIN. If omitted, PIN check will not be performed.
|
|
188
218
|
pin: nil,
|
|
219
|
+
# 3-character alphabetic ISO 4217 currency code for the settlement amount.
|
|
220
|
+
# Permitted values are USD, GBP, EUR and CAD, and any other ISO 4217 code returns
|
|
221
|
+
# a 422. Defaults to the value of billing_currency. Only single message
|
|
222
|
+
# (financial) authorizations carry a settlement amount, and the value is ignored
|
|
223
|
+
# for dual message authorizations
|
|
224
|
+
settlement_currency: nil,
|
|
189
225
|
# Type of event to simulate.
|
|
190
226
|
#
|
|
191
227
|
# - `AUTHORIZATION` is a dual message purchase authorization, meaning a subsequent
|
|
@@ -213,6 +249,7 @@ module Lithic
|
|
|
213
249
|
amount: Integer,
|
|
214
250
|
descriptor: String,
|
|
215
251
|
pan: String,
|
|
252
|
+
billing_currency: String,
|
|
216
253
|
mcc: String,
|
|
217
254
|
merchant_acceptor_city: String,
|
|
218
255
|
merchant_acceptor_country: String,
|
|
@@ -222,6 +259,7 @@ module Lithic
|
|
|
222
259
|
merchant_currency: String,
|
|
223
260
|
partial_approval_capable: T::Boolean,
|
|
224
261
|
pin: String,
|
|
262
|
+
settlement_currency: String,
|
|
225
263
|
status:
|
|
226
264
|
Lithic::TransactionSimulateAuthorizationParams::Status::OrSymbol,
|
|
227
265
|
request_options: Lithic::RequestOptions
|
|
@@ -28,6 +28,15 @@ module Lithic
|
|
|
28
28
|
sig { returns(String) }
|
|
29
29
|
attr_accessor :pan
|
|
30
30
|
|
|
31
|
+
# 3-character alphabetic ISO 4217 currency code for the cardholder billing amount.
|
|
32
|
+
# Permitted values are USD, GBP, EUR and CAD, and any other ISO 4217 code returns
|
|
33
|
+
# a 422. Defaults to USD
|
|
34
|
+
sig { returns(T.nilable(String)) }
|
|
35
|
+
attr_reader :billing_currency
|
|
36
|
+
|
|
37
|
+
sig { params(billing_currency: String).void }
|
|
38
|
+
attr_writer :billing_currency
|
|
39
|
+
|
|
31
40
|
# Merchant category code for the transaction to be simulated. A four-digit number
|
|
32
41
|
# listed in ISO 18245. Supported merchant category codes can be found
|
|
33
42
|
# [here](https://docs.lithic.com/docs/transactions#merchant-category-codes-mccs).
|
|
@@ -70,6 +79,7 @@ module Lithic
|
|
|
70
79
|
amount: Integer,
|
|
71
80
|
descriptor: String,
|
|
72
81
|
pan: String,
|
|
82
|
+
billing_currency: String,
|
|
73
83
|
mcc: String,
|
|
74
84
|
merchant_acceptor_city: String,
|
|
75
85
|
merchant_acceptor_country: String,
|
|
@@ -87,6 +97,10 @@ module Lithic
|
|
|
87
97
|
descriptor:,
|
|
88
98
|
# Sixteen digit card number.
|
|
89
99
|
pan:,
|
|
100
|
+
# 3-character alphabetic ISO 4217 currency code for the cardholder billing amount.
|
|
101
|
+
# Permitted values are USD, GBP, EUR and CAD, and any other ISO 4217 code returns
|
|
102
|
+
# a 422. Defaults to USD
|
|
103
|
+
billing_currency: nil,
|
|
90
104
|
# Merchant category code for the transaction to be simulated. A four-digit number
|
|
91
105
|
# listed in ISO 18245. Supported merchant category codes can be found
|
|
92
106
|
# [here](https://docs.lithic.com/docs/transactions#merchant-category-codes-mccs).
|
|
@@ -109,6 +123,7 @@ module Lithic
|
|
|
109
123
|
amount: Integer,
|
|
110
124
|
descriptor: String,
|
|
111
125
|
pan: String,
|
|
126
|
+
billing_currency: String,
|
|
112
127
|
mcc: String,
|
|
113
128
|
merchant_acceptor_city: String,
|
|
114
129
|
merchant_acceptor_country: String,
|
|
@@ -26,11 +26,31 @@ module Lithic
|
|
|
26
26
|
sig { returns(String) }
|
|
27
27
|
attr_accessor :pan
|
|
28
28
|
|
|
29
|
+
# 3-character alphabetic ISO 4217 currency code for the cardholder billing amount.
|
|
30
|
+
# Permitted values are USD, GBP, EUR and CAD, and any other ISO 4217 code returns
|
|
31
|
+
# a 422. Defaults to USD
|
|
32
|
+
sig { returns(T.nilable(String)) }
|
|
33
|
+
attr_reader :billing_currency
|
|
34
|
+
|
|
35
|
+
sig { params(billing_currency: String).void }
|
|
36
|
+
attr_writer :billing_currency
|
|
37
|
+
|
|
38
|
+
# 3-character alphabetic ISO 4217 currency code for the settlement amount.
|
|
39
|
+
# Permitted values are USD, GBP, EUR and CAD, and any other ISO 4217 code returns
|
|
40
|
+
# a 422. Defaults to the value of billing_currency
|
|
41
|
+
sig { returns(T.nilable(String)) }
|
|
42
|
+
attr_reader :settlement_currency
|
|
43
|
+
|
|
44
|
+
sig { params(settlement_currency: String).void }
|
|
45
|
+
attr_writer :settlement_currency
|
|
46
|
+
|
|
29
47
|
sig do
|
|
30
48
|
params(
|
|
31
49
|
amount: Integer,
|
|
32
50
|
descriptor: String,
|
|
33
51
|
pan: String,
|
|
52
|
+
billing_currency: String,
|
|
53
|
+
settlement_currency: String,
|
|
34
54
|
request_options: Lithic::RequestOptions::OrHash
|
|
35
55
|
).returns(T.attached_class)
|
|
36
56
|
end
|
|
@@ -41,6 +61,14 @@ module Lithic
|
|
|
41
61
|
descriptor:,
|
|
42
62
|
# Sixteen digit card number.
|
|
43
63
|
pan:,
|
|
64
|
+
# 3-character alphabetic ISO 4217 currency code for the cardholder billing amount.
|
|
65
|
+
# Permitted values are USD, GBP, EUR and CAD, and any other ISO 4217 code returns
|
|
66
|
+
# a 422. Defaults to USD
|
|
67
|
+
billing_currency: nil,
|
|
68
|
+
# 3-character alphabetic ISO 4217 currency code for the settlement amount.
|
|
69
|
+
# Permitted values are USD, GBP, EUR and CAD, and any other ISO 4217 code returns
|
|
70
|
+
# a 422. Defaults to the value of billing_currency
|
|
71
|
+
settlement_currency: nil,
|
|
44
72
|
request_options: {}
|
|
45
73
|
)
|
|
46
74
|
end
|
|
@@ -51,6 +79,8 @@ module Lithic
|
|
|
51
79
|
amount: Integer,
|
|
52
80
|
descriptor: String,
|
|
53
81
|
pan: String,
|
|
82
|
+
billing_currency: String,
|
|
83
|
+
settlement_currency: String,
|
|
54
84
|
request_options: Lithic::RequestOptions
|
|
55
85
|
}
|
|
56
86
|
)
|
data/rbi/lithic/models.rbi
CHANGED
|
@@ -92,6 +92,9 @@ module Lithic
|
|
|
92
92
|
BlockchainRecipientCreateParams =
|
|
93
93
|
Lithic::Models::BlockchainRecipientCreateParams
|
|
94
94
|
|
|
95
|
+
BlockchainRecipientRetrieveParams =
|
|
96
|
+
Lithic::Models::BlockchainRecipientRetrieveParams
|
|
97
|
+
|
|
95
98
|
BookTransferCreateParams = Lithic::Models::BookTransferCreateParams
|
|
96
99
|
|
|
97
100
|
BookTransferListParams = Lithic::Models::BookTransferListParams
|
|
@@ -150,6 +153,8 @@ module Lithic
|
|
|
150
153
|
|
|
151
154
|
CardListParams = Lithic::Models::CardListParams
|
|
152
155
|
|
|
156
|
+
CardPinUpdatedWebhookEvent = Lithic::Models::CardPinUpdatedWebhookEvent
|
|
157
|
+
|
|
153
158
|
CardProgram = Lithic::Models::CardProgram
|
|
154
159
|
|
|
155
160
|
CardProgramListParams = Lithic::Models::CardProgramListParams
|
|
@@ -493,6 +498,8 @@ module Lithic
|
|
|
493
498
|
|
|
494
499
|
PaymentCreateParams = Lithic::Models::PaymentCreateParams
|
|
495
500
|
|
|
501
|
+
PaymentCreateStablecoinParams = Lithic::Models::PaymentCreateStablecoinParams
|
|
502
|
+
|
|
496
503
|
PaymentListParams = Lithic::Models::PaymentListParams
|
|
497
504
|
|
|
498
505
|
PaymentRetrieveParams = Lithic::Models::PaymentRetrieveParams
|