lithic 0.6.0 → 0.8.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 +52 -0
- data/README.md +3 -3
- data/lib/lithic/client.rb +11 -0
- data/lib/lithic/internal/util.rb +31 -0
- data/lib/lithic/models/account_activity_list_params.rb +2 -0
- data/lib/lithic/models/account_activity_list_response.rb +8 -2
- data/lib/lithic/models/account_activity_retrieve_transaction_params.rb +7 -1
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +8 -2
- data/lib/lithic/models/account_holder.rb +1 -79
- data/lib/lithic/models/account_holder_create_params.rb +338 -549
- data/lib/lithic/models/account_holder_list_documents_params.rb +7 -1
- data/lib/lithic/models/account_holder_retrieve_document_params.rb +7 -1
- data/lib/lithic/models/account_holder_retrieve_params.rb +7 -1
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +1 -9
- data/lib/lithic/models/account_holder_update_params.rb +501 -509
- data/lib/lithic/models/account_holder_update_response.rb +1 -9
- data/lib/lithic/models/account_holder_updated_webhook_event.rb +1 -11
- data/lib/lithic/models/account_holder_upload_document_params.rb +8 -1
- data/lib/lithic/models/account_holders/entity_create_params.rb +8 -1
- data/lib/lithic/models/account_holders/entity_delete_params.rb +7 -1
- data/lib/lithic/models/account_retrieve_params.rb +7 -1
- data/lib/lithic/models/account_retrieve_spend_limits_params.rb +7 -1
- data/lib/lithic/models/account_update_params.rb +8 -1
- data/lib/lithic/models/auth_rules/auth_rule.rb +84 -8
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +92 -0
- data/lib/lithic/models/auth_rules/{rule_stats.rb → backtest_stats.rb} +16 -24
- data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +9 -9
- data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +13 -13
- data/lib/lithic/models/auth_rules/report_stats.rb +552 -0
- data/lib/lithic/models/auth_rules/rule_feature.rb +231 -0
- data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +33 -0
- data/lib/lithic/models/auth_rules/v2/backtest_create_params.rb +8 -1
- data/lib/lithic/models/auth_rules/v2/backtest_results.rb +15 -23
- data/lib/lithic/models/auth_rules/v2/backtest_retrieve_params.rb +7 -1
- data/lib/lithic/models/auth_rules/v2_create_params.rb +378 -113
- data/lib/lithic/models/auth_rules/v2_delete_params.rb +7 -1
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +14 -4
- data/lib/lithic/models/auth_rules/v2_list_results_params.rb +19 -1
- data/lib/lithic/models/auth_rules/v2_list_results_response.rb +163 -47
- data/lib/lithic/models/auth_rules/v2_list_versions_params.rb +22 -0
- data/lib/lithic/models/auth_rules/v2_list_versions_response.rb +18 -0
- data/lib/lithic/models/auth_rules/v2_promote_params.rb +7 -1
- data/lib/lithic/models/auth_rules/v2_retrieve_features_params.rb +7 -1
- data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +3 -83
- data/lib/lithic/models/auth_rules/v2_retrieve_params.rb +7 -1
- data/lib/lithic/models/auth_rules/v2_retrieve_report_params.rb +8 -1
- data/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb +531 -7
- data/lib/lithic/models/auth_rules/v2_update_params.rb +199 -66
- data/lib/lithic/models/auth_rules/velocity_limit_filters.rb +87 -0
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +3 -84
- data/lib/lithic/models/book_transfer_retrieve_params.rb +7 -1
- data/lib/lithic/models/book_transfer_retry_params.rb +8 -1
- data/lib/lithic/models/book_transfer_reverse_params.rb +8 -1
- data/lib/lithic/models/card_bulk_order_retrieve_params.rb +7 -1
- data/lib/lithic/models/card_bulk_order_update_params.rb +8 -1
- data/lib/lithic/models/card_convert_physical_params.rb +8 -1
- data/lib/lithic/models/card_program_retrieve_params.rb +7 -1
- data/lib/lithic/models/card_provision_params.rb +8 -1
- data/lib/lithic/models/card_reissue_params.rb +8 -1
- data/lib/lithic/models/card_renew_params.rb +8 -1
- data/lib/lithic/models/card_retrieve_params.rb +7 -1
- data/lib/lithic/models/card_retrieve_spend_limits_params.rb +7 -1
- data/lib/lithic/models/card_update_params.rb +8 -1
- data/lib/lithic/models/card_web_provision_params.rb +8 -1
- data/lib/lithic/models/cards/balance_list_params.rb +8 -1
- data/lib/lithic/models/cards/financial_transaction_list_params.rb +8 -1
- data/lib/lithic/models/cards/financial_transaction_retrieve_params.rb +7 -1
- data/lib/lithic/models/credit_products/extended_credit_retrieve_params.rb +7 -1
- data/lib/lithic/models/credit_products/prime_rate_create_params.rb +9 -1
- data/lib/lithic/models/credit_products/prime_rate_retrieve_params.rb +9 -1
- data/lib/lithic/models/digital_card_art_retrieve_params.rb +7 -1
- data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +69 -59
- data/lib/lithic/models/dispute_create_params.rb +11 -11
- data/lib/lithic/models/dispute_delete_evidence_params.rb +7 -1
- data/lib/lithic/models/dispute_delete_params.rb +7 -1
- data/lib/lithic/models/dispute_initiate_evidence_upload_params.rb +8 -1
- data/lib/lithic/models/dispute_list_evidences_params.rb +8 -1
- data/lib/lithic/models/dispute_list_params.rb +3 -3
- data/lib/lithic/models/dispute_retrieve_evidence_params.rb +7 -1
- data/lib/lithic/models/dispute_retrieve_params.rb +7 -1
- data/lib/lithic/models/dispute_update_params.rb +17 -10
- data/lib/lithic/models/disputes_v2_retrieve_params.rb +7 -1
- data/lib/lithic/models/event.rb +0 -7
- data/lib/lithic/models/event_list_attempts_params.rb +8 -1
- data/lib/lithic/models/event_list_params.rb +0 -4
- data/lib/lithic/models/event_retrieve_params.rb +7 -1
- data/lib/lithic/models/event_subscription.rb +0 -4
- data/lib/lithic/models/events/event_subscription_resend_params.rb +7 -1
- data/lib/lithic/models/events/subscription_create_params.rb +0 -4
- data/lib/lithic/models/events/subscription_delete_params.rb +7 -1
- data/lib/lithic/models/events/subscription_list_attempts_params.rb +8 -1
- data/lib/lithic/models/events/subscription_recover_params.rb +8 -1
- data/lib/lithic/models/events/subscription_replay_missing_params.rb +8 -1
- data/lib/lithic/models/events/subscription_retrieve_params.rb +7 -1
- data/lib/lithic/models/events/subscription_retrieve_secret_params.rb +7 -1
- data/lib/lithic/models/events/subscription_rotate_secret_params.rb +7 -1
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +8 -2
- data/lib/lithic/models/events/subscription_update_params.rb +8 -5
- data/lib/lithic/models/external_bank_account_create_params.rb +446 -140
- data/lib/lithic/models/external_bank_account_retrieve_params.rb +7 -1
- data/lib/lithic/models/external_bank_account_retry_micro_deposits_params.rb +7 -1
- data/lib/lithic/models/external_bank_account_retry_prenote_params.rb +7 -1
- data/lib/lithic/models/external_bank_account_unpause_params.rb +7 -1
- data/lib/lithic/models/external_bank_account_update_params.rb +8 -1
- data/lib/lithic/models/external_bank_accounts/micro_deposit_create_params.rb +7 -1
- data/lib/lithic/models/external_payment_cancel_params.rb +7 -1
- data/lib/lithic/models/external_payment_release_params.rb +7 -1
- data/lib/lithic/models/external_payment_retrieve_params.rb +7 -1
- data/lib/lithic/models/external_payment_reverse_params.rb +7 -1
- data/lib/lithic/models/external_payment_settle_params.rb +7 -1
- data/lib/lithic/models/financial_account.rb +1 -0
- data/lib/lithic/models/financial_account_list_params.rb +1 -0
- data/lib/lithic/models/financial_account_register_account_number_params.rb +7 -1
- data/lib/lithic/models/financial_account_retrieve_params.rb +7 -1
- data/lib/lithic/models/financial_account_update_params.rb +7 -1
- data/lib/lithic/models/financial_account_update_status_params.rb +8 -1
- data/lib/lithic/models/financial_accounts/balance_list_params.rb +8 -1
- data/lib/lithic/models/financial_accounts/credit_configuration_retrieve_params.rb +7 -1
- data/lib/lithic/models/financial_accounts/credit_configuration_update_params.rb +8 -1
- data/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb +8 -1
- data/lib/lithic/models/financial_accounts/financial_transaction_retrieve_params.rb +7 -1
- data/lib/lithic/models/financial_accounts/interest_tier_schedule.rb +9 -1
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_create_params.rb +7 -1
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rb +7 -1
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_list_params.rb +8 -1
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rb +7 -1
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb +16 -1
- data/lib/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rb +9 -1
- data/lib/lithic/models/financial_accounts/loan_tape_list_params.rb +9 -1
- data/lib/lithic/models/financial_accounts/loan_tape_retrieve_params.rb +9 -1
- data/lib/lithic/models/financial_accounts/statement_list_params.rb +9 -1
- data/lib/lithic/models/financial_accounts/statement_retrieve_params.rb +9 -1
- data/lib/lithic/models/financial_accounts/statements/line_item_list_params.rb +9 -1
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +27 -2
- data/lib/lithic/models/fraud/transaction_report_params.rb +8 -1
- data/lib/lithic/models/fraud/transaction_retrieve_params.rb +7 -1
- data/lib/lithic/models/funding_event_retrieve_details_params.rb +7 -1
- data/lib/lithic/models/funding_event_retrieve_params.rb +7 -1
- data/lib/lithic/models/hold.rb +147 -0
- data/lib/lithic/models/hold_create_params.rb +61 -0
- data/lib/lithic/models/hold_event.rb +110 -0
- data/lib/lithic/models/hold_list_params.rb +89 -0
- data/lib/lithic/models/hold_retrieve_params.rb +20 -0
- data/lib/lithic/models/hold_void_params.rb +29 -0
- data/lib/lithic/models/instance_financial_account_type.rb +1 -0
- data/lib/lithic/models/kyb.rb +1 -71
- data/lib/lithic/models/management_operation_retrieve_params.rb +7 -1
- data/lib/lithic/models/management_operation_reverse_params.rb +7 -1
- data/lib/lithic/models/network_program_retrieve_params.rb +7 -1
- data/lib/lithic/models/parsed_webhook_event.rb +3 -15
- data/lib/lithic/models/payment.rb +76 -12
- data/lib/lithic/models/payment_create_params.rb +22 -1
- data/lib/lithic/models/payment_retrieve_params.rb +7 -1
- data/lib/lithic/models/payment_retry_params.rb +7 -1
- data/lib/lithic/models/payment_return_params.rb +8 -1
- data/lib/lithic/models/payment_simulate_action_params.rb +9 -1
- data/lib/lithic/models/reports/settlement/network_total_retrieve_params.rb +7 -1
- data/lib/lithic/models/reports/settlement_list_details_params.rb +8 -1
- data/lib/lithic/models/reports/settlement_summary_params.rb +7 -1
- data/lib/lithic/models/three_ds/authentication_retrieve_params.rb +7 -1
- data/lib/lithic/models/tokenization_activate_params.rb +7 -1
- data/lib/lithic/models/tokenization_deactivate_params.rb +7 -1
- data/lib/lithic/models/tokenization_pause_params.rb +7 -1
- data/lib/lithic/models/tokenization_resend_activation_code_params.rb +8 -1
- data/lib/lithic/models/tokenization_retrieve_params.rb +7 -1
- data/lib/lithic/models/tokenization_unpause_params.rb +7 -1
- data/lib/lithic/models/tokenization_update_digital_card_art_params.rb +8 -1
- data/lib/lithic/models/transaction_expire_authorization_params.rb +7 -1
- data/lib/lithic/models/transaction_retrieve_params.rb +7 -1
- data/lib/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rb +7 -1
- data/lib/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rb +7 -1
- data/lib/lithic/models.rb +12 -2
- data/lib/lithic/resources/account_activity.rb +4 -3
- data/lib/lithic/resources/account_holders/entities.rb +4 -4
- data/lib/lithic/resources/account_holders.rb +9 -83
- data/lib/lithic/resources/accounts.rb +2 -1
- data/lib/lithic/resources/auth_rules/v2.rb +44 -53
- data/lib/lithic/resources/balances.rb +2 -1
- data/lib/lithic/resources/book_transfers.rb +2 -1
- data/lib/lithic/resources/card_bulk_orders.rb +2 -1
- data/lib/lithic/resources/card_programs.rb +2 -1
- data/lib/lithic/resources/cards/balances.rb +2 -1
- data/lib/lithic/resources/cards/financial_transactions.rb +2 -1
- data/lib/lithic/resources/cards.rb +4 -2
- data/lib/lithic/resources/credit_products/prime_rates.rb +2 -1
- data/lib/lithic/resources/digital_card_art.rb +2 -1
- data/lib/lithic/resources/disputes.rb +25 -23
- data/lib/lithic/resources/disputes_v2.rb +2 -1
- data/lib/lithic/resources/events/subscriptions.rb +8 -4
- data/lib/lithic/resources/events.rb +4 -2
- data/lib/lithic/resources/external_bank_accounts.rb +5 -40
- data/lib/lithic/resources/external_payments.rb +2 -1
- data/lib/lithic/resources/financial_accounts/balances.rb +2 -1
- data/lib/lithic/resources/financial_accounts/financial_transactions.rb +2 -1
- data/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb +8 -3
- data/lib/lithic/resources/financial_accounts/loan_tapes.rb +2 -1
- data/lib/lithic/resources/financial_accounts/statements/line_items.rb +2 -1
- data/lib/lithic/resources/financial_accounts/statements.rb +2 -1
- data/lib/lithic/resources/financial_accounts.rb +2 -1
- data/lib/lithic/resources/funding_events.rb +2 -1
- data/lib/lithic/resources/holds.rb +132 -0
- data/lib/lithic/resources/management_operations.rb +2 -1
- data/lib/lithic/resources/network_programs.rb +2 -1
- data/lib/lithic/resources/payments.rb +5 -2
- data/lib/lithic/resources/reports/settlement/network_totals.rb +2 -1
- data/lib/lithic/resources/reports/settlement.rb +2 -1
- data/lib/lithic/resources/responder_endpoints.rb +4 -2
- data/lib/lithic/resources/tokenizations.rb +2 -1
- data/lib/lithic/resources/transactions.rb +2 -1
- data/lib/lithic/resources/transfer_limits.rb +2 -1
- data/lib/lithic/resources/webhooks.rb +2 -3
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +16 -2
- data/rbi/lithic/client.rbi +9 -0
- data/rbi/lithic/internal/util.rbi +20 -0
- data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +14 -2
- data/rbi/lithic/models/account_activity_retrieve_transaction_params.rbi +13 -5
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +14 -2
- data/rbi/lithic/models/account_holder.rbi +0 -121
- data/rbi/lithic/models/account_holder_create_params.rbi +567 -837
- data/rbi/lithic/models/account_holder_list_documents_params.rbi +16 -5
- data/rbi/lithic/models/account_holder_retrieve_document_params.rbi +6 -1
- data/rbi/lithic/models/account_holder_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +0 -16
- data/rbi/lithic/models/account_holder_update_params.rbi +860 -831
- data/rbi/lithic/models/account_holder_update_response.rbi +0 -17
- data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +0 -17
- data/rbi/lithic/models/account_holder_upload_document_params.rbi +6 -0
- data/rbi/lithic/models/account_holders/entity_create_params.rbi +6 -0
- data/rbi/lithic/models/account_holders/entity_delete_params.rbi +6 -1
- data/rbi/lithic/models/account_retrieve_params.rbi +13 -5
- data/rbi/lithic/models/account_retrieve_spend_limits_params.rbi +13 -5
- data/rbi/lithic/models/account_update_params.rbi +6 -0
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +128 -4
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +142 -0
- data/rbi/lithic/models/auth_rules/{rule_stats.rbi → backtest_stats.rbi} +29 -33
- data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +12 -12
- data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +31 -31
- data/rbi/lithic/models/auth_rules/report_stats.rbi +1754 -0
- data/rbi/lithic/models/auth_rules/rule_feature.rbi +414 -0
- data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +94 -0
- data/rbi/lithic/models/auth_rules/v2/backtest_create_params.rbi +6 -0
- data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +23 -43
- data/rbi/lithic/models/auth_rules/v2/backtest_retrieve_params.rbi +10 -1
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +744 -181
- data/rbi/lithic/models/auth_rules/v2_delete_params.rbi +13 -5
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +14 -4
- data/rbi/lithic/models/auth_rules/v2_list_results_params.rbi +26 -0
- data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +520 -97
- data/rbi/lithic/models/auth_rules/v2_list_versions_params.rbi +40 -0
- data/rbi/lithic/models/auth_rules/v2_list_versions_response.rbi +36 -0
- data/rbi/lithic/models/auth_rules/v2_promote_params.rbi +13 -5
- data/rbi/lithic/models/auth_rules/v2_retrieve_features_params.rbi +11 -1
- data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +4 -209
- data/rbi/lithic/models/auth_rules/v2_retrieve_params.rbi +13 -5
- data/rbi/lithic/models/auth_rules/v2_retrieve_report_params.rbi +6 -0
- data/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi +1698 -9
- data/rbi/lithic/models/auth_rules/v2_update_params.rbi +415 -101
- data/rbi/lithic/models/auth_rules/velocity_limit_filters.rbi +205 -0
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +4 -206
- data/rbi/lithic/models/book_transfer_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/book_transfer_retry_params.rbi +10 -1
- data/rbi/lithic/models/book_transfer_reverse_params.rbi +10 -1
- data/rbi/lithic/models/card_bulk_order_retrieve_params.rbi +13 -5
- data/rbi/lithic/models/card_bulk_order_update_params.rbi +6 -0
- data/rbi/lithic/models/card_convert_physical_params.rbi +6 -0
- data/rbi/lithic/models/card_program_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/card_provision_params.rbi +6 -0
- data/rbi/lithic/models/card_reissue_params.rbi +6 -0
- data/rbi/lithic/models/card_renew_params.rbi +6 -0
- data/rbi/lithic/models/card_retrieve_params.rbi +13 -5
- data/rbi/lithic/models/card_retrieve_spend_limits_params.rbi +13 -5
- data/rbi/lithic/models/card_update_params.rbi +6 -0
- data/rbi/lithic/models/card_web_provision_params.rbi +6 -0
- data/rbi/lithic/models/cards/balance_list_params.rbi +6 -0
- data/rbi/lithic/models/cards/financial_transaction_list_params.rbi +6 -0
- data/rbi/lithic/models/cards/financial_transaction_retrieve_params.rbi +14 -2
- data/rbi/lithic/models/credit_products/extended_credit_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/credit_products/prime_rate_create_params.rbi +8 -0
- data/rbi/lithic/models/credit_products/prime_rate_retrieve_params.rbi +8 -0
- data/rbi/lithic/models/digital_card_art_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +154 -142
- data/rbi/lithic/models/dispute_create_params.rbi +11 -11
- data/rbi/lithic/models/dispute_delete_evidence_params.rbi +10 -2
- data/rbi/lithic/models/dispute_delete_params.rbi +13 -5
- data/rbi/lithic/models/dispute_initiate_evidence_upload_params.rbi +10 -1
- data/rbi/lithic/models/dispute_list_evidences_params.rbi +6 -0
- data/rbi/lithic/models/dispute_list_params.rbi +3 -3
- data/rbi/lithic/models/dispute_retrieve_evidence_params.rbi +10 -2
- data/rbi/lithic/models/dispute_retrieve_params.rbi +13 -5
- data/rbi/lithic/models/dispute_update_params.rbi +15 -9
- data/rbi/lithic/models/disputes_v2_retrieve_params.rbi +13 -5
- data/rbi/lithic/models/event.rbi +0 -14
- data/rbi/lithic/models/event_list_attempts_params.rbi +6 -0
- data/rbi/lithic/models/event_list_params.rbi +0 -8
- data/rbi/lithic/models/event_retrieve_params.rbi +13 -5
- data/rbi/lithic/models/event_subscription.rbi +0 -8
- data/rbi/lithic/models/events/event_subscription_resend_params.rbi +14 -2
- data/rbi/lithic/models/events/subscription_create_params.rbi +0 -8
- data/rbi/lithic/models/events/subscription_delete_params.rbi +16 -5
- data/rbi/lithic/models/events/subscription_list_attempts_params.rbi +6 -0
- data/rbi/lithic/models/events/subscription_recover_params.rbi +6 -0
- data/rbi/lithic/models/events/subscription_replay_missing_params.rbi +6 -0
- data/rbi/lithic/models/events/subscription_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/events/subscription_retrieve_secret_params.rbi +16 -5
- data/rbi/lithic/models/events/subscription_rotate_secret_params.rbi +16 -5
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +6 -5
- data/rbi/lithic/models/events/subscription_update_params.rbi +6 -8
- data/rbi/lithic/models/external_bank_account_create_params.rbi +693 -211
- data/rbi/lithic/models/external_bank_account_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/external_bank_account_retry_micro_deposits_params.rbi +10 -1
- data/rbi/lithic/models/external_bank_account_retry_prenote_params.rbi +10 -1
- data/rbi/lithic/models/external_bank_account_unpause_params.rbi +16 -5
- data/rbi/lithic/models/external_bank_account_update_params.rbi +6 -0
- data/rbi/lithic/models/external_bank_accounts/micro_deposit_create_params.rbi +10 -1
- data/rbi/lithic/models/external_payment_cancel_params.rbi +11 -1
- data/rbi/lithic/models/external_payment_release_params.rbi +11 -1
- data/rbi/lithic/models/external_payment_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/external_payment_reverse_params.rbi +11 -1
- data/rbi/lithic/models/external_payment_settle_params.rbi +6 -0
- data/rbi/lithic/models/financial_account.rbi +5 -0
- data/rbi/lithic/models/financial_account_list_params.rbi +5 -0
- data/rbi/lithic/models/financial_account_register_account_number_params.rbi +14 -2
- data/rbi/lithic/models/financial_account_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/financial_account_update_params.rbi +10 -2
- data/rbi/lithic/models/financial_account_update_status_params.rbi +6 -0
- data/rbi/lithic/models/financial_accounts/balance_list_params.rbi +6 -0
- data/rbi/lithic/models/financial_accounts/credit_configuration_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/financial_accounts/credit_configuration_update_params.rbi +6 -0
- data/rbi/lithic/models/financial_accounts/financial_transaction_list_params.rbi +6 -0
- data/rbi/lithic/models/financial_accounts/financial_transaction_retrieve_params.rbi +10 -1
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule.rbi +11 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbi +16 -5
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbi +10 -1
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbi +6 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbi +10 -1
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi +17 -0
- data/rbi/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbi +21 -5
- data/rbi/lithic/models/financial_accounts/loan_tape_list_params.rbi +8 -0
- data/rbi/lithic/models/financial_accounts/loan_tape_retrieve_params.rbi +8 -0
- data/rbi/lithic/models/financial_accounts/statement_list_params.rbi +8 -0
- data/rbi/lithic/models/financial_accounts/statement_retrieve_params.rbi +8 -0
- data/rbi/lithic/models/financial_accounts/statements/line_item_list_params.rbi +8 -0
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +38 -3
- data/rbi/lithic/models/fraud/transaction_report_params.rbi +6 -0
- data/rbi/lithic/models/fraud/transaction_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/funding_event_retrieve_details_params.rbi +16 -5
- data/rbi/lithic/models/funding_event_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/hold.rbi +183 -0
- data/rbi/lithic/models/hold_create_params.rbi +90 -0
- data/rbi/lithic/models/hold_event.rbi +148 -0
- data/rbi/lithic/models/hold_list_params.rbi +137 -0
- data/rbi/lithic/models/hold_retrieve_params.rbi +35 -0
- data/rbi/lithic/models/hold_void_params.rbi +49 -0
- data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
- data/rbi/lithic/models/kyb.rbi +0 -109
- data/rbi/lithic/models/management_operation_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/management_operation_reverse_params.rbi +11 -1
- data/rbi/lithic/models/network_program_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/parsed_webhook_event.rbi +0 -18
- data/rbi/lithic/models/payment.rbi +139 -13
- data/rbi/lithic/models/payment_create_params.rbi +34 -0
- data/rbi/lithic/models/payment_retrieve_params.rbi +13 -5
- data/rbi/lithic/models/payment_retry_params.rbi +13 -5
- data/rbi/lithic/models/payment_return_params.rbi +6 -0
- data/rbi/lithic/models/payment_simulate_action_params.rbi +11 -0
- data/rbi/lithic/models/reports/settlement/network_total_retrieve_params.rbi +13 -5
- data/rbi/lithic/models/reports/settlement_list_details_params.rbi +6 -0
- data/rbi/lithic/models/reports/settlement_summary_params.rbi +13 -5
- data/rbi/lithic/models/three_ds/authentication_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/tokenization_activate_params.rbi +16 -5
- data/rbi/lithic/models/tokenization_deactivate_params.rbi +16 -5
- data/rbi/lithic/models/tokenization_pause_params.rbi +16 -5
- data/rbi/lithic/models/tokenization_resend_activation_code_params.rbi +6 -0
- data/rbi/lithic/models/tokenization_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/tokenization_unpause_params.rbi +16 -5
- data/rbi/lithic/models/tokenization_update_digital_card_art_params.rbi +6 -0
- data/rbi/lithic/models/transaction_expire_authorization_params.rbi +13 -5
- data/rbi/lithic/models/transaction_retrieve_params.rbi +13 -5
- data/rbi/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rbi +13 -5
- data/rbi/lithic/models.rbi +12 -3
- data/rbi/lithic/resources/account_holders/entities.rbi +4 -4
- data/rbi/lithic/resources/account_holders.rbi +16 -177
- data/rbi/lithic/resources/auth_rules/v2.rbi +36 -80
- data/rbi/lithic/resources/disputes.rbi +21 -21
- data/rbi/lithic/resources/external_bank_accounts.rbi +7 -58
- data/rbi/lithic/resources/financial_accounts/interest_tier_schedule.rbi +6 -0
- data/rbi/lithic/resources/holds.rbi +111 -0
- data/rbi/lithic/resources/payments.rbi +3 -0
- data/rbi/lithic/resources/webhooks.rbi +8 -2
- data/sig/lithic/client.rbs +5 -0
- data/sig/lithic/internal/util.rbs +10 -0
- data/sig/lithic/models/account_activity_list_params.rbs +4 -0
- data/sig/lithic/models/account_activity_list_response.rbs +5 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_params.rbs +11 -3
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +5 -0
- data/sig/lithic/models/account_holder.rbs +0 -58
- data/sig/lithic/models/account_holder_create_params.rbs +217 -353
- data/sig/lithic/models/account_holder_list_documents_params.rbs +12 -3
- data/sig/lithic/models/account_holder_retrieve_document_params.rbs +5 -1
- data/sig/lithic/models/account_holder_retrieve_params.rbs +12 -3
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +0 -9
- data/sig/lithic/models/account_holder_update_params.rbs +326 -330
- data/sig/lithic/models/account_holder_update_response.rbs +0 -9
- data/sig/lithic/models/account_holder_updated_webhook_event.rbs +0 -9
- data/sig/lithic/models/account_holder_upload_document_params.rbs +5 -0
- data/sig/lithic/models/account_holders/entity_create_params.rbs +5 -0
- data/sig/lithic/models/account_holders/entity_delete_params.rbs +5 -1
- data/sig/lithic/models/account_retrieve_params.rbs +11 -3
- data/sig/lithic/models/account_retrieve_spend_limits_params.rbs +11 -3
- data/sig/lithic/models/account_update_params.rbs +5 -0
- data/sig/lithic/models/auth_rules/auth_rule.rbs +42 -0
- data/sig/lithic/models/auth_rules/auth_rule_version.rbs +67 -0
- data/sig/lithic/models/auth_rules/{rule_stats.rbs → backtest_stats.rbs} +15 -22
- data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +8 -8
- data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +15 -15
- data/sig/lithic/models/auth_rules/report_stats.rbs +696 -0
- data/sig/lithic/models/auth_rules/rule_feature.rbs +173 -0
- data/sig/lithic/models/auth_rules/typescript_code_parameters.rbs +27 -0
- data/sig/lithic/models/auth_rules/v2/backtest_create_params.rbs +5 -1
- data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +13 -26
- data/sig/lithic/models/auth_rules/v2/backtest_retrieve_params.rbs +5 -1
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +261 -74
- data/sig/lithic/models/auth_rules/v2_delete_params.rbs +12 -3
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +9 -1
- data/sig/lithic/models/auth_rules/v2_list_results_params.rbs +14 -0
- data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +220 -49
- data/sig/lithic/models/auth_rules/v2_list_versions_params.rbs +25 -0
- data/sig/lithic/models/auth_rules/v2_list_versions_response.rbs +18 -0
- data/sig/lithic/models/auth_rules/v2_promote_params.rbs +12 -3
- data/sig/lithic/models/auth_rules/v2_retrieve_features_params.rbs +5 -1
- data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -80
- data/sig/lithic/models/auth_rules/v2_retrieve_params.rbs +11 -3
- data/sig/lithic/models/auth_rules/v2_retrieve_report_params.rbs +5 -1
- data/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs +663 -8
- data/sig/lithic/models/auth_rules/v2_update_params.rbs +168 -47
- data/sig/lithic/models/auth_rules/velocity_limit_filters.rbs +81 -0
- data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +6 -82
- data/sig/lithic/models/book_transfer_retrieve_params.rbs +12 -3
- data/sig/lithic/models/book_transfer_retry_params.rbs +6 -1
- data/sig/lithic/models/book_transfer_reverse_params.rbs +10 -2
- data/sig/lithic/models/card_bulk_order_retrieve_params.rbs +11 -3
- data/sig/lithic/models/card_bulk_order_update_params.rbs +8 -1
- data/sig/lithic/models/card_convert_physical_params.rbs +5 -0
- data/sig/lithic/models/card_program_retrieve_params.rbs +12 -3
- data/sig/lithic/models/card_provision_params.rbs +5 -0
- data/sig/lithic/models/card_reissue_params.rbs +5 -0
- data/sig/lithic/models/card_renew_params.rbs +5 -0
- data/sig/lithic/models/card_retrieve_params.rbs +11 -3
- data/sig/lithic/models/card_retrieve_spend_limits_params.rbs +11 -3
- data/sig/lithic/models/card_update_params.rbs +5 -0
- data/sig/lithic/models/card_web_provision_params.rbs +5 -0
- data/sig/lithic/models/cards/balance_list_params.rbs +9 -1
- data/sig/lithic/models/cards/financial_transaction_list_params.rbs +5 -0
- data/sig/lithic/models/cards/financial_transaction_retrieve_params.rbs +6 -1
- data/sig/lithic/models/credit_products/extended_credit_retrieve_params.rbs +12 -3
- data/sig/lithic/models/credit_products/prime_rate_create_params.rbs +5 -1
- data/sig/lithic/models/credit_products/prime_rate_retrieve_params.rbs +9 -1
- data/sig/lithic/models/digital_card_art_retrieve_params.rbs +12 -3
- data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +38 -38
- data/sig/lithic/models/dispute_delete_evidence_params.rbs +6 -1
- data/sig/lithic/models/dispute_delete_params.rbs +11 -3
- data/sig/lithic/models/dispute_initiate_evidence_upload_params.rbs +6 -1
- data/sig/lithic/models/dispute_list_evidences_params.rbs +5 -0
- data/sig/lithic/models/dispute_retrieve_evidence_params.rbs +6 -1
- data/sig/lithic/models/dispute_retrieve_params.rbs +11 -3
- data/sig/lithic/models/dispute_update_params.rbs +5 -0
- data/sig/lithic/models/disputes_v2_retrieve_params.rbs +11 -3
- data/sig/lithic/models/event.rbs +0 -2
- data/sig/lithic/models/event_list_attempts_params.rbs +5 -0
- data/sig/lithic/models/event_list_params.rbs +0 -2
- data/sig/lithic/models/event_retrieve_params.rbs +11 -3
- data/sig/lithic/models/event_subscription.rbs +0 -2
- data/sig/lithic/models/events/event_subscription_resend_params.rbs +6 -1
- data/sig/lithic/models/events/subscription_create_params.rbs +0 -2
- data/sig/lithic/models/events/subscription_delete_params.rbs +12 -3
- data/sig/lithic/models/events/subscription_list_attempts_params.rbs +5 -0
- data/sig/lithic/models/events/subscription_recover_params.rbs +5 -1
- data/sig/lithic/models/events/subscription_replay_missing_params.rbs +5 -1
- data/sig/lithic/models/events/subscription_retrieve_params.rbs +12 -3
- data/sig/lithic/models/events/subscription_retrieve_secret_params.rbs +12 -3
- data/sig/lithic/models/events/subscription_rotate_secret_params.rbs +12 -3
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +5 -2
- data/sig/lithic/models/events/subscription_update_params.rbs +5 -2
- data/sig/lithic/models/external_bank_account_create_params.rbs +342 -98
- data/sig/lithic/models/external_bank_account_retrieve_params.rbs +12 -3
- data/sig/lithic/models/external_bank_account_retry_micro_deposits_params.rbs +5 -1
- data/sig/lithic/models/external_bank_account_retry_prenote_params.rbs +5 -1
- data/sig/lithic/models/external_bank_account_unpause_params.rbs +12 -3
- data/sig/lithic/models/external_bank_account_update_params.rbs +5 -0
- data/sig/lithic/models/external_bank_accounts/micro_deposit_create_params.rbs +8 -1
- data/sig/lithic/models/external_payment_cancel_params.rbs +5 -1
- data/sig/lithic/models/external_payment_release_params.rbs +5 -1
- data/sig/lithic/models/external_payment_retrieve_params.rbs +12 -3
- data/sig/lithic/models/external_payment_reverse_params.rbs +5 -1
- data/sig/lithic/models/external_payment_settle_params.rbs +5 -0
- data/sig/lithic/models/financial_account.rbs +2 -0
- data/sig/lithic/models/financial_account_list_params.rbs +7 -1
- data/sig/lithic/models/financial_account_register_account_number_params.rbs +6 -1
- data/sig/lithic/models/financial_account_retrieve_params.rbs +12 -3
- data/sig/lithic/models/financial_account_update_params.rbs +6 -1
- data/sig/lithic/models/financial_account_update_status_params.rbs +5 -0
- data/sig/lithic/models/financial_accounts/balance_list_params.rbs +9 -1
- data/sig/lithic/models/financial_accounts/credit_configuration_retrieve_params.rbs +12 -3
- data/sig/lithic/models/financial_accounts/credit_configuration_update_params.rbs +5 -0
- data/sig/lithic/models/financial_accounts/financial_transaction_list_params.rbs +5 -0
- data/sig/lithic/models/financial_accounts/financial_transaction_retrieve_params.rbs +5 -1
- data/sig/lithic/models/financial_accounts/interest_tier_schedule.rbs +7 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbs +14 -3
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbs +5 -1
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbs +10 -1
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbs +5 -1
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs +17 -1
- data/sig/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbs +12 -3
- data/sig/lithic/models/financial_accounts/loan_tape_list_params.rbs +5 -0
- data/sig/lithic/models/financial_accounts/loan_tape_retrieve_params.rbs +5 -1
- data/sig/lithic/models/financial_accounts/statement_list_params.rbs +5 -0
- data/sig/lithic/models/financial_accounts/statement_retrieve_params.rbs +5 -1
- data/sig/lithic/models/financial_accounts/statements/line_item_list_params.rbs +5 -0
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +17 -3
- data/sig/lithic/models/fraud/transaction_report_params.rbs +5 -0
- data/sig/lithic/models/fraud/transaction_retrieve_params.rbs +12 -3
- data/sig/lithic/models/funding_event_retrieve_details_params.rbs +12 -3
- data/sig/lithic/models/funding_event_retrieve_params.rbs +12 -3
- data/sig/lithic/models/hold.rbs +137 -0
- data/sig/lithic/models/hold_create_params.rbs +57 -0
- data/sig/lithic/models/hold_event.rbs +91 -0
- data/sig/lithic/models/hold_list_params.rbs +83 -0
- data/sig/lithic/models/hold_retrieve_params.rbs +23 -0
- data/sig/lithic/models/hold_void_params.rbs +28 -0
- data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
- data/sig/lithic/models/kyb.rbs +0 -55
- data/sig/lithic/models/management_operation_retrieve_params.rbs +12 -3
- data/sig/lithic/models/management_operation_reverse_params.rbs +5 -1
- data/sig/lithic/models/network_program_retrieve_params.rbs +12 -3
- data/sig/lithic/models/parsed_webhook_event.rbs +0 -10
- data/sig/lithic/models/payment.rbs +23 -8
- data/sig/lithic/models/payment_create_params.rbs +19 -0
- data/sig/lithic/models/payment_retrieve_params.rbs +11 -3
- data/sig/lithic/models/payment_retry_params.rbs +11 -3
- data/sig/lithic/models/payment_return_params.rbs +5 -0
- data/sig/lithic/models/payment_simulate_action_params.rbs +7 -0
- data/sig/lithic/models/reports/settlement/network_total_retrieve_params.rbs +11 -3
- data/sig/lithic/models/reports/settlement_list_details_params.rbs +10 -1
- data/sig/lithic/models/reports/settlement_summary_params.rbs +11 -3
- data/sig/lithic/models/three_ds/authentication_retrieve_params.rbs +12 -3
- data/sig/lithic/models/tokenization_activate_params.rbs +12 -3
- data/sig/lithic/models/tokenization_deactivate_params.rbs +12 -3
- data/sig/lithic/models/tokenization_pause_params.rbs +12 -3
- data/sig/lithic/models/tokenization_resend_activation_code_params.rbs +5 -0
- data/sig/lithic/models/tokenization_retrieve_params.rbs +12 -3
- data/sig/lithic/models/tokenization_unpause_params.rbs +12 -3
- data/sig/lithic/models/tokenization_update_digital_card_art_params.rbs +5 -1
- data/sig/lithic/models/transaction_expire_authorization_params.rbs +11 -3
- data/sig/lithic/models/transaction_retrieve_params.rbs +11 -3
- data/sig/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rbs +12 -3
- data/sig/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rbs +11 -3
- data/sig/lithic/models.rbs +12 -2
- data/sig/lithic/resources/account_holders.rbs +2 -36
- data/sig/lithic/resources/auth_rules/v2.rbs +9 -16
- data/sig/lithic/resources/external_bank_accounts.rbs +1 -17
- data/sig/lithic/resources/financial_accounts/interest_tier_schedule.rbs +2 -0
- data/sig/lithic/resources/holds.rbs +39 -0
- data/sig/lithic/resources/payments.rbs +1 -0
- data/sig/lithic/resources/webhooks.rbs +0 -1
- metadata +47 -8
- data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +0 -159
- data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +0 -331
- data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +0 -130
|
@@ -12,155 +12,40 @@ module Lithic
|
|
|
12
12
|
T.any(Lithic::AuthRules::V2CreateParams, Lithic::Internal::AnyHash)
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
# Parameters for the Auth Rule
|
|
16
15
|
sig do
|
|
17
16
|
returns(
|
|
18
17
|
T.any(
|
|
19
|
-
Lithic::AuthRules::
|
|
20
|
-
Lithic::AuthRules::
|
|
21
|
-
Lithic::AuthRules::
|
|
22
|
-
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
23
|
-
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
24
|
-
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
25
|
-
Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
18
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule,
|
|
19
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule,
|
|
20
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule
|
|
26
21
|
)
|
|
27
22
|
)
|
|
28
23
|
end
|
|
29
|
-
attr_accessor :
|
|
30
|
-
|
|
31
|
-
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
32
|
-
# during which it will be evaluated. For rules that can be applied to one of
|
|
33
|
-
# several event streams, the effective one is defined by the separate
|
|
34
|
-
# `event_stream` field.
|
|
35
|
-
#
|
|
36
|
-
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
37
|
-
# AUTHORIZATION event stream.
|
|
38
|
-
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
39
|
-
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
40
|
-
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
41
|
-
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
42
|
-
sig { returns(Lithic::AuthRules::V2CreateParams::Type::OrSymbol) }
|
|
43
|
-
attr_accessor :type
|
|
44
|
-
|
|
45
|
-
# Account tokens to which the Auth Rule applies.
|
|
46
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
47
|
-
attr_reader :account_tokens
|
|
48
|
-
|
|
49
|
-
sig { params(account_tokens: T::Array[String]).void }
|
|
50
|
-
attr_writer :account_tokens
|
|
51
|
-
|
|
52
|
-
# Business Account tokens to which the Auth Rule applies.
|
|
53
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
54
|
-
attr_reader :business_account_tokens
|
|
55
|
-
|
|
56
|
-
sig { params(business_account_tokens: T::Array[String]).void }
|
|
57
|
-
attr_writer :business_account_tokens
|
|
58
|
-
|
|
59
|
-
# The event stream during which the rule will be evaluated.
|
|
60
|
-
sig { returns(T.nilable(Lithic::AuthRules::EventStream::OrSymbol)) }
|
|
61
|
-
attr_reader :event_stream
|
|
62
|
-
|
|
63
|
-
sig do
|
|
64
|
-
params(event_stream: Lithic::AuthRules::EventStream::OrSymbol).void
|
|
65
|
-
end
|
|
66
|
-
attr_writer :event_stream
|
|
67
|
-
|
|
68
|
-
# Auth Rule Name
|
|
69
|
-
sig { returns(T.nilable(String)) }
|
|
70
|
-
attr_accessor :name
|
|
71
|
-
|
|
72
|
-
# Card tokens to which the Auth Rule applies.
|
|
73
|
-
sig { returns(T::Array[String]) }
|
|
74
|
-
attr_accessor :card_tokens
|
|
75
|
-
|
|
76
|
-
# Whether the Auth Rule applies to all authorizations on the card program.
|
|
77
|
-
sig { returns(T::Boolean) }
|
|
78
|
-
attr_accessor :program_level
|
|
79
|
-
|
|
80
|
-
# Card tokens to which the Auth Rule does not apply.
|
|
81
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
82
|
-
attr_reader :excluded_card_tokens
|
|
83
|
-
|
|
84
|
-
sig { params(excluded_card_tokens: T::Array[String]).void }
|
|
85
|
-
attr_writer :excluded_card_tokens
|
|
24
|
+
attr_accessor :body
|
|
86
25
|
|
|
87
26
|
sig do
|
|
88
27
|
params(
|
|
89
|
-
|
|
28
|
+
body:
|
|
90
29
|
T.any(
|
|
91
|
-
Lithic::AuthRules::
|
|
92
|
-
Lithic::AuthRules::
|
|
93
|
-
Lithic::AuthRules::
|
|
94
|
-
Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
|
|
95
|
-
Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash,
|
|
96
|
-
Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
|
|
97
|
-
Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash
|
|
30
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::OrHash,
|
|
31
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::OrHash,
|
|
32
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::OrHash
|
|
98
33
|
),
|
|
99
|
-
type: Lithic::AuthRules::V2CreateParams::Type::OrSymbol,
|
|
100
|
-
card_tokens: T::Array[String],
|
|
101
|
-
program_level: T::Boolean,
|
|
102
|
-
account_tokens: T::Array[String],
|
|
103
|
-
business_account_tokens: T::Array[String],
|
|
104
|
-
event_stream: Lithic::AuthRules::EventStream::OrSymbol,
|
|
105
|
-
name: T.nilable(String),
|
|
106
|
-
excluded_card_tokens: T::Array[String],
|
|
107
34
|
request_options: Lithic::RequestOptions::OrHash
|
|
108
35
|
).returns(T.attached_class)
|
|
109
36
|
end
|
|
110
|
-
def self.new(
|
|
111
|
-
# Parameters for the Auth Rule
|
|
112
|
-
parameters:,
|
|
113
|
-
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
114
|
-
# during which it will be evaluated. For rules that can be applied to one of
|
|
115
|
-
# several event streams, the effective one is defined by the separate
|
|
116
|
-
# `event_stream` field.
|
|
117
|
-
#
|
|
118
|
-
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
119
|
-
# AUTHORIZATION event stream.
|
|
120
|
-
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
121
|
-
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
122
|
-
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
123
|
-
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
124
|
-
type:,
|
|
125
|
-
# Card tokens to which the Auth Rule applies.
|
|
126
|
-
card_tokens:,
|
|
127
|
-
# Whether the Auth Rule applies to all authorizations on the card program.
|
|
128
|
-
program_level:,
|
|
129
|
-
# Account tokens to which the Auth Rule applies.
|
|
130
|
-
account_tokens: nil,
|
|
131
|
-
# Business Account tokens to which the Auth Rule applies.
|
|
132
|
-
business_account_tokens: nil,
|
|
133
|
-
# The event stream during which the rule will be evaluated.
|
|
134
|
-
event_stream: nil,
|
|
135
|
-
# Auth Rule Name
|
|
136
|
-
name: nil,
|
|
137
|
-
# Card tokens to which the Auth Rule does not apply.
|
|
138
|
-
excluded_card_tokens: nil,
|
|
139
|
-
request_options: {}
|
|
140
|
-
)
|
|
37
|
+
def self.new(body:, request_options: {})
|
|
141
38
|
end
|
|
142
39
|
|
|
143
40
|
sig do
|
|
144
41
|
override.returns(
|
|
145
42
|
{
|
|
146
|
-
|
|
43
|
+
body:
|
|
147
44
|
T.any(
|
|
148
|
-
Lithic::AuthRules::
|
|
149
|
-
Lithic::AuthRules::
|
|
150
|
-
Lithic::AuthRules::
|
|
151
|
-
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
152
|
-
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
153
|
-
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
154
|
-
Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
45
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule,
|
|
46
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule,
|
|
47
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule
|
|
155
48
|
),
|
|
156
|
-
type: Lithic::AuthRules::V2CreateParams::Type::OrSymbol,
|
|
157
|
-
account_tokens: T::Array[String],
|
|
158
|
-
business_account_tokens: T::Array[String],
|
|
159
|
-
event_stream: Lithic::AuthRules::EventStream::OrSymbol,
|
|
160
|
-
name: T.nilable(String),
|
|
161
|
-
card_tokens: T::Array[String],
|
|
162
|
-
program_level: T::Boolean,
|
|
163
|
-
excluded_card_tokens: T::Array[String],
|
|
164
49
|
request_options: Lithic::RequestOptions
|
|
165
50
|
}
|
|
166
51
|
)
|
|
@@ -168,79 +53,757 @@ module Lithic
|
|
|
168
53
|
def to_hash
|
|
169
54
|
end
|
|
170
55
|
|
|
171
|
-
|
|
172
|
-
module Parameters
|
|
56
|
+
module Body
|
|
173
57
|
extend Lithic::Internal::Type::Union
|
|
174
58
|
|
|
175
59
|
Variants =
|
|
176
60
|
T.type_alias do
|
|
177
61
|
T.any(
|
|
178
|
-
Lithic::AuthRules::
|
|
179
|
-
Lithic::AuthRules::
|
|
180
|
-
Lithic::AuthRules::
|
|
181
|
-
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
182
|
-
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
183
|
-
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
184
|
-
Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
62
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule,
|
|
63
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule,
|
|
64
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule
|
|
185
65
|
)
|
|
186
66
|
end
|
|
187
67
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
T
|
|
68
|
+
class AccountLevelRule < Lithic::Internal::Type::BaseModel
|
|
69
|
+
OrHash =
|
|
70
|
+
T.type_alias do
|
|
71
|
+
T.any(
|
|
72
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule,
|
|
73
|
+
Lithic::Internal::AnyHash
|
|
74
|
+
)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Parameters for the Auth Rule
|
|
78
|
+
sig do
|
|
79
|
+
returns(
|
|
80
|
+
T.any(
|
|
81
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
|
82
|
+
Lithic::AuthRules::VelocityLimitParams,
|
|
83
|
+
Lithic::AuthRules::MerchantLockParameters,
|
|
84
|
+
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
85
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
86
|
+
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
87
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters,
|
|
88
|
+
Lithic::AuthRules::TypescriptCodeParameters
|
|
89
|
+
)
|
|
90
|
+
)
|
|
91
|
+
end
|
|
92
|
+
attr_accessor :parameters
|
|
93
|
+
|
|
94
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
95
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
|
96
|
+
# several event streams, the effective one is defined by the separate
|
|
97
|
+
# `event_stream` field.
|
|
98
|
+
#
|
|
99
|
+
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
100
|
+
# AUTHORIZATION event stream.
|
|
101
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
102
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
103
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
104
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
105
|
+
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
106
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
107
|
+
sig do
|
|
108
|
+
returns(
|
|
109
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::OrSymbol
|
|
110
|
+
)
|
|
111
|
+
end
|
|
112
|
+
attr_accessor :type
|
|
113
|
+
|
|
114
|
+
# Account tokens to which the Auth Rule applies.
|
|
115
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
116
|
+
attr_reader :account_tokens
|
|
117
|
+
|
|
118
|
+
sig { params(account_tokens: T::Array[String]).void }
|
|
119
|
+
attr_writer :account_tokens
|
|
120
|
+
|
|
121
|
+
# Business Account tokens to which the Auth Rule applies.
|
|
122
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
123
|
+
attr_reader :business_account_tokens
|
|
124
|
+
|
|
125
|
+
sig { params(business_account_tokens: T::Array[String]).void }
|
|
126
|
+
attr_writer :business_account_tokens
|
|
127
|
+
|
|
128
|
+
# The event stream during which the rule will be evaluated.
|
|
129
|
+
sig { returns(T.nilable(Lithic::AuthRules::EventStream::OrSymbol)) }
|
|
130
|
+
attr_reader :event_stream
|
|
131
|
+
|
|
132
|
+
sig do
|
|
133
|
+
params(
|
|
134
|
+
event_stream: Lithic::AuthRules::EventStream::OrSymbol
|
|
135
|
+
).void
|
|
136
|
+
end
|
|
137
|
+
attr_writer :event_stream
|
|
138
|
+
|
|
139
|
+
# Auth Rule Name
|
|
140
|
+
sig { returns(T.nilable(String)) }
|
|
141
|
+
attr_accessor :name
|
|
142
|
+
|
|
143
|
+
sig do
|
|
144
|
+
params(
|
|
145
|
+
parameters:
|
|
146
|
+
T.any(
|
|
147
|
+
Lithic::AuthRules::ConditionalBlockParameters::OrHash,
|
|
148
|
+
Lithic::AuthRules::VelocityLimitParams::OrHash,
|
|
149
|
+
Lithic::AuthRules::MerchantLockParameters::OrHash,
|
|
150
|
+
Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
|
|
151
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash,
|
|
152
|
+
Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
|
|
153
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
|
|
154
|
+
Lithic::AuthRules::TypescriptCodeParameters::OrHash
|
|
155
|
+
),
|
|
156
|
+
type:
|
|
157
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::OrSymbol,
|
|
158
|
+
account_tokens: T::Array[String],
|
|
159
|
+
business_account_tokens: T::Array[String],
|
|
160
|
+
event_stream: Lithic::AuthRules::EventStream::OrSymbol,
|
|
161
|
+
name: T.nilable(String)
|
|
162
|
+
).returns(T.attached_class)
|
|
163
|
+
end
|
|
164
|
+
def self.new(
|
|
165
|
+
# Parameters for the Auth Rule
|
|
166
|
+
parameters:,
|
|
167
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
168
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
|
169
|
+
# several event streams, the effective one is defined by the separate
|
|
170
|
+
# `event_stream` field.
|
|
171
|
+
#
|
|
172
|
+
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
173
|
+
# AUTHORIZATION event stream.
|
|
174
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
175
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
176
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
177
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
178
|
+
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
179
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
180
|
+
type:,
|
|
181
|
+
# Account tokens to which the Auth Rule applies.
|
|
182
|
+
account_tokens: nil,
|
|
183
|
+
# Business Account tokens to which the Auth Rule applies.
|
|
184
|
+
business_account_tokens: nil,
|
|
185
|
+
# The event stream during which the rule will be evaluated.
|
|
186
|
+
event_stream: nil,
|
|
187
|
+
# Auth Rule Name
|
|
188
|
+
name: nil
|
|
191
189
|
)
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
sig do
|
|
193
|
+
override.returns(
|
|
194
|
+
{
|
|
195
|
+
parameters:
|
|
196
|
+
T.any(
|
|
197
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
|
198
|
+
Lithic::AuthRules::VelocityLimitParams,
|
|
199
|
+
Lithic::AuthRules::MerchantLockParameters,
|
|
200
|
+
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
201
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
202
|
+
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
203
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters,
|
|
204
|
+
Lithic::AuthRules::TypescriptCodeParameters
|
|
205
|
+
),
|
|
206
|
+
type:
|
|
207
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::OrSymbol,
|
|
208
|
+
account_tokens: T::Array[String],
|
|
209
|
+
business_account_tokens: T::Array[String],
|
|
210
|
+
event_stream: Lithic::AuthRules::EventStream::OrSymbol,
|
|
211
|
+
name: T.nilable(String)
|
|
212
|
+
}
|
|
213
|
+
)
|
|
214
|
+
end
|
|
215
|
+
def to_hash
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# Parameters for the Auth Rule
|
|
219
|
+
module Parameters
|
|
220
|
+
extend Lithic::Internal::Type::Union
|
|
221
|
+
|
|
222
|
+
Variants =
|
|
223
|
+
T.type_alias do
|
|
224
|
+
T.any(
|
|
225
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
|
226
|
+
Lithic::AuthRules::VelocityLimitParams,
|
|
227
|
+
Lithic::AuthRules::MerchantLockParameters,
|
|
228
|
+
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
229
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
230
|
+
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
231
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters,
|
|
232
|
+
Lithic::AuthRules::TypescriptCodeParameters
|
|
233
|
+
)
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
sig do
|
|
237
|
+
override.returns(
|
|
238
|
+
T::Array[
|
|
239
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Parameters::Variants
|
|
240
|
+
]
|
|
241
|
+
)
|
|
242
|
+
end
|
|
243
|
+
def self.variants
|
|
244
|
+
end
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
248
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
|
249
|
+
# several event streams, the effective one is defined by the separate
|
|
250
|
+
# `event_stream` field.
|
|
251
|
+
#
|
|
252
|
+
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
253
|
+
# AUTHORIZATION event stream.
|
|
254
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
255
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
256
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
257
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
258
|
+
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
259
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
260
|
+
module Type
|
|
261
|
+
extend Lithic::Internal::Type::Enum
|
|
262
|
+
|
|
263
|
+
TaggedSymbol =
|
|
264
|
+
T.type_alias do
|
|
265
|
+
T.all(
|
|
266
|
+
Symbol,
|
|
267
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type
|
|
268
|
+
)
|
|
269
|
+
end
|
|
270
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
271
|
+
|
|
272
|
+
CONDITIONAL_BLOCK =
|
|
273
|
+
T.let(
|
|
274
|
+
:CONDITIONAL_BLOCK,
|
|
275
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol
|
|
276
|
+
)
|
|
277
|
+
VELOCITY_LIMIT =
|
|
278
|
+
T.let(
|
|
279
|
+
:VELOCITY_LIMIT,
|
|
280
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol
|
|
281
|
+
)
|
|
282
|
+
MERCHANT_LOCK =
|
|
283
|
+
T.let(
|
|
284
|
+
:MERCHANT_LOCK,
|
|
285
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol
|
|
286
|
+
)
|
|
287
|
+
CONDITIONAL_ACTION =
|
|
288
|
+
T.let(
|
|
289
|
+
:CONDITIONAL_ACTION,
|
|
290
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol
|
|
291
|
+
)
|
|
292
|
+
TYPESCRIPT_CODE =
|
|
293
|
+
T.let(
|
|
294
|
+
:TYPESCRIPT_CODE,
|
|
295
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol
|
|
296
|
+
)
|
|
297
|
+
|
|
298
|
+
sig do
|
|
299
|
+
override.returns(
|
|
300
|
+
T::Array[
|
|
301
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol
|
|
302
|
+
]
|
|
303
|
+
)
|
|
304
|
+
end
|
|
305
|
+
def self.values
|
|
306
|
+
end
|
|
307
|
+
end
|
|
192
308
|
end
|
|
193
|
-
def self.variants
|
|
194
|
-
end
|
|
195
|
-
end
|
|
196
309
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
310
|
+
class CardLevelRule < Lithic::Internal::Type::BaseModel
|
|
311
|
+
OrHash =
|
|
312
|
+
T.type_alias do
|
|
313
|
+
T.any(
|
|
314
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule,
|
|
315
|
+
Lithic::Internal::AnyHash
|
|
316
|
+
)
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# Card tokens to which the Auth Rule applies.
|
|
320
|
+
sig { returns(T::Array[String]) }
|
|
321
|
+
attr_accessor :card_tokens
|
|
322
|
+
|
|
323
|
+
# Parameters for the Auth Rule
|
|
324
|
+
sig do
|
|
325
|
+
returns(
|
|
326
|
+
T.any(
|
|
327
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
|
328
|
+
Lithic::AuthRules::VelocityLimitParams,
|
|
329
|
+
Lithic::AuthRules::MerchantLockParameters,
|
|
330
|
+
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
331
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
332
|
+
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
333
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters,
|
|
334
|
+
Lithic::AuthRules::TypescriptCodeParameters
|
|
335
|
+
)
|
|
336
|
+
)
|
|
214
337
|
end
|
|
215
|
-
|
|
338
|
+
attr_accessor :parameters
|
|
216
339
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
340
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
341
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
|
342
|
+
# several event streams, the effective one is defined by the separate
|
|
343
|
+
# `event_stream` field.
|
|
344
|
+
#
|
|
345
|
+
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
346
|
+
# AUTHORIZATION event stream.
|
|
347
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
348
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
349
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
350
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
351
|
+
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
352
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
353
|
+
sig do
|
|
354
|
+
returns(
|
|
355
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::OrSymbol
|
|
356
|
+
)
|
|
357
|
+
end
|
|
358
|
+
attr_accessor :type
|
|
359
|
+
|
|
360
|
+
# The event stream during which the rule will be evaluated.
|
|
361
|
+
sig { returns(T.nilable(Lithic::AuthRules::EventStream::OrSymbol)) }
|
|
362
|
+
attr_reader :event_stream
|
|
363
|
+
|
|
364
|
+
sig do
|
|
365
|
+
params(
|
|
366
|
+
event_stream: Lithic::AuthRules::EventStream::OrSymbol
|
|
367
|
+
).void
|
|
368
|
+
end
|
|
369
|
+
attr_writer :event_stream
|
|
370
|
+
|
|
371
|
+
# Auth Rule Name
|
|
372
|
+
sig { returns(T.nilable(String)) }
|
|
373
|
+
attr_accessor :name
|
|
374
|
+
|
|
375
|
+
sig do
|
|
376
|
+
params(
|
|
377
|
+
card_tokens: T::Array[String],
|
|
378
|
+
parameters:
|
|
379
|
+
T.any(
|
|
380
|
+
Lithic::AuthRules::ConditionalBlockParameters::OrHash,
|
|
381
|
+
Lithic::AuthRules::VelocityLimitParams::OrHash,
|
|
382
|
+
Lithic::AuthRules::MerchantLockParameters::OrHash,
|
|
383
|
+
Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
|
|
384
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash,
|
|
385
|
+
Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
|
|
386
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
|
|
387
|
+
Lithic::AuthRules::TypescriptCodeParameters::OrHash
|
|
388
|
+
),
|
|
389
|
+
type:
|
|
390
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::OrSymbol,
|
|
391
|
+
event_stream: Lithic::AuthRules::EventStream::OrSymbol,
|
|
392
|
+
name: T.nilable(String)
|
|
393
|
+
).returns(T.attached_class)
|
|
394
|
+
end
|
|
395
|
+
def self.new(
|
|
396
|
+
# Card tokens to which the Auth Rule applies.
|
|
397
|
+
card_tokens:,
|
|
398
|
+
# Parameters for the Auth Rule
|
|
399
|
+
parameters:,
|
|
400
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
401
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
|
402
|
+
# several event streams, the effective one is defined by the separate
|
|
403
|
+
# `event_stream` field.
|
|
404
|
+
#
|
|
405
|
+
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
406
|
+
# AUTHORIZATION event stream.
|
|
407
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
408
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
409
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
410
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
411
|
+
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
412
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
413
|
+
type:,
|
|
414
|
+
# The event stream during which the rule will be evaluated.
|
|
415
|
+
event_stream: nil,
|
|
416
|
+
# Auth Rule Name
|
|
417
|
+
name: nil
|
|
231
418
|
)
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
sig do
|
|
422
|
+
override.returns(
|
|
423
|
+
{
|
|
424
|
+
card_tokens: T::Array[String],
|
|
425
|
+
parameters:
|
|
426
|
+
T.any(
|
|
427
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
|
428
|
+
Lithic::AuthRules::VelocityLimitParams,
|
|
429
|
+
Lithic::AuthRules::MerchantLockParameters,
|
|
430
|
+
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
431
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
432
|
+
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
433
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters,
|
|
434
|
+
Lithic::AuthRules::TypescriptCodeParameters
|
|
435
|
+
),
|
|
436
|
+
type:
|
|
437
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::OrSymbol,
|
|
438
|
+
event_stream: Lithic::AuthRules::EventStream::OrSymbol,
|
|
439
|
+
name: T.nilable(String)
|
|
440
|
+
}
|
|
441
|
+
)
|
|
442
|
+
end
|
|
443
|
+
def to_hash
|
|
444
|
+
end
|
|
445
|
+
|
|
446
|
+
# Parameters for the Auth Rule
|
|
447
|
+
module Parameters
|
|
448
|
+
extend Lithic::Internal::Type::Union
|
|
449
|
+
|
|
450
|
+
Variants =
|
|
451
|
+
T.type_alias do
|
|
452
|
+
T.any(
|
|
453
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
|
454
|
+
Lithic::AuthRules::VelocityLimitParams,
|
|
455
|
+
Lithic::AuthRules::MerchantLockParameters,
|
|
456
|
+
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
457
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
458
|
+
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
459
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters,
|
|
460
|
+
Lithic::AuthRules::TypescriptCodeParameters
|
|
461
|
+
)
|
|
462
|
+
end
|
|
463
|
+
|
|
464
|
+
sig do
|
|
465
|
+
override.returns(
|
|
466
|
+
T::Array[
|
|
467
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Parameters::Variants
|
|
468
|
+
]
|
|
469
|
+
)
|
|
470
|
+
end
|
|
471
|
+
def self.variants
|
|
472
|
+
end
|
|
473
|
+
end
|
|
474
|
+
|
|
475
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
476
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
|
477
|
+
# several event streams, the effective one is defined by the separate
|
|
478
|
+
# `event_stream` field.
|
|
479
|
+
#
|
|
480
|
+
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
481
|
+
# AUTHORIZATION event stream.
|
|
482
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
483
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
484
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
485
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
486
|
+
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
487
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
488
|
+
module Type
|
|
489
|
+
extend Lithic::Internal::Type::Enum
|
|
490
|
+
|
|
491
|
+
TaggedSymbol =
|
|
492
|
+
T.type_alias do
|
|
493
|
+
T.all(
|
|
494
|
+
Symbol,
|
|
495
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type
|
|
496
|
+
)
|
|
497
|
+
end
|
|
498
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
499
|
+
|
|
500
|
+
CONDITIONAL_BLOCK =
|
|
501
|
+
T.let(
|
|
502
|
+
:CONDITIONAL_BLOCK,
|
|
503
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol
|
|
504
|
+
)
|
|
505
|
+
VELOCITY_LIMIT =
|
|
506
|
+
T.let(
|
|
507
|
+
:VELOCITY_LIMIT,
|
|
508
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol
|
|
509
|
+
)
|
|
510
|
+
MERCHANT_LOCK =
|
|
511
|
+
T.let(
|
|
512
|
+
:MERCHANT_LOCK,
|
|
513
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol
|
|
514
|
+
)
|
|
515
|
+
CONDITIONAL_ACTION =
|
|
516
|
+
T.let(
|
|
517
|
+
:CONDITIONAL_ACTION,
|
|
518
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol
|
|
519
|
+
)
|
|
520
|
+
TYPESCRIPT_CODE =
|
|
521
|
+
T.let(
|
|
522
|
+
:TYPESCRIPT_CODE,
|
|
523
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol
|
|
524
|
+
)
|
|
525
|
+
|
|
526
|
+
sig do
|
|
527
|
+
override.returns(
|
|
528
|
+
T::Array[
|
|
529
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol
|
|
530
|
+
]
|
|
531
|
+
)
|
|
532
|
+
end
|
|
533
|
+
def self.values
|
|
534
|
+
end
|
|
535
|
+
end
|
|
536
|
+
end
|
|
537
|
+
|
|
538
|
+
class ProgramLevelRule < Lithic::Internal::Type::BaseModel
|
|
539
|
+
OrHash =
|
|
540
|
+
T.type_alias do
|
|
541
|
+
T.any(
|
|
542
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule,
|
|
543
|
+
Lithic::Internal::AnyHash
|
|
544
|
+
)
|
|
545
|
+
end
|
|
546
|
+
|
|
547
|
+
# Parameters for the Auth Rule
|
|
548
|
+
sig do
|
|
549
|
+
returns(
|
|
550
|
+
T.any(
|
|
551
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
|
552
|
+
Lithic::AuthRules::VelocityLimitParams,
|
|
553
|
+
Lithic::AuthRules::MerchantLockParameters,
|
|
554
|
+
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
555
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
556
|
+
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
557
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters,
|
|
558
|
+
Lithic::AuthRules::TypescriptCodeParameters
|
|
559
|
+
)
|
|
560
|
+
)
|
|
561
|
+
end
|
|
562
|
+
attr_accessor :parameters
|
|
563
|
+
|
|
564
|
+
# Whether the Auth Rule applies to all authorizations on the card program.
|
|
565
|
+
sig { returns(T::Boolean) }
|
|
566
|
+
attr_accessor :program_level
|
|
567
|
+
|
|
568
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
569
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
|
570
|
+
# several event streams, the effective one is defined by the separate
|
|
571
|
+
# `event_stream` field.
|
|
572
|
+
#
|
|
573
|
+
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
574
|
+
# AUTHORIZATION event stream.
|
|
575
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
576
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
577
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
578
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
579
|
+
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
580
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
581
|
+
sig do
|
|
582
|
+
returns(
|
|
583
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::OrSymbol
|
|
584
|
+
)
|
|
585
|
+
end
|
|
586
|
+
attr_accessor :type
|
|
587
|
+
|
|
588
|
+
# The event stream during which the rule will be evaluated.
|
|
589
|
+
sig { returns(T.nilable(Lithic::AuthRules::EventStream::OrSymbol)) }
|
|
590
|
+
attr_reader :event_stream
|
|
591
|
+
|
|
592
|
+
sig do
|
|
593
|
+
params(
|
|
594
|
+
event_stream: Lithic::AuthRules::EventStream::OrSymbol
|
|
595
|
+
).void
|
|
596
|
+
end
|
|
597
|
+
attr_writer :event_stream
|
|
598
|
+
|
|
599
|
+
# Account tokens to which the Auth Rule does not apply.
|
|
600
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
601
|
+
attr_reader :excluded_account_tokens
|
|
602
|
+
|
|
603
|
+
sig { params(excluded_account_tokens: T::Array[String]).void }
|
|
604
|
+
attr_writer :excluded_account_tokens
|
|
605
|
+
|
|
606
|
+
# Business account tokens to which the Auth Rule does not apply.
|
|
607
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
608
|
+
attr_reader :excluded_business_account_tokens
|
|
609
|
+
|
|
610
|
+
sig do
|
|
611
|
+
params(excluded_business_account_tokens: T::Array[String]).void
|
|
612
|
+
end
|
|
613
|
+
attr_writer :excluded_business_account_tokens
|
|
614
|
+
|
|
615
|
+
# Card tokens to which the Auth Rule does not apply.
|
|
616
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
617
|
+
attr_reader :excluded_card_tokens
|
|
618
|
+
|
|
619
|
+
sig { params(excluded_card_tokens: T::Array[String]).void }
|
|
620
|
+
attr_writer :excluded_card_tokens
|
|
621
|
+
|
|
622
|
+
# Auth Rule Name
|
|
623
|
+
sig { returns(T.nilable(String)) }
|
|
624
|
+
attr_accessor :name
|
|
625
|
+
|
|
626
|
+
sig do
|
|
627
|
+
params(
|
|
628
|
+
parameters:
|
|
629
|
+
T.any(
|
|
630
|
+
Lithic::AuthRules::ConditionalBlockParameters::OrHash,
|
|
631
|
+
Lithic::AuthRules::VelocityLimitParams::OrHash,
|
|
632
|
+
Lithic::AuthRules::MerchantLockParameters::OrHash,
|
|
633
|
+
Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
|
|
634
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash,
|
|
635
|
+
Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
|
|
636
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash,
|
|
637
|
+
Lithic::AuthRules::TypescriptCodeParameters::OrHash
|
|
638
|
+
),
|
|
639
|
+
program_level: T::Boolean,
|
|
640
|
+
type:
|
|
641
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::OrSymbol,
|
|
642
|
+
event_stream: Lithic::AuthRules::EventStream::OrSymbol,
|
|
643
|
+
excluded_account_tokens: T::Array[String],
|
|
644
|
+
excluded_business_account_tokens: T::Array[String],
|
|
645
|
+
excluded_card_tokens: T::Array[String],
|
|
646
|
+
name: T.nilable(String)
|
|
647
|
+
).returns(T.attached_class)
|
|
648
|
+
end
|
|
649
|
+
def self.new(
|
|
650
|
+
# Parameters for the Auth Rule
|
|
651
|
+
parameters:,
|
|
652
|
+
# Whether the Auth Rule applies to all authorizations on the card program.
|
|
653
|
+
program_level:,
|
|
654
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
655
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
|
656
|
+
# several event streams, the effective one is defined by the separate
|
|
657
|
+
# `event_stream` field.
|
|
658
|
+
#
|
|
659
|
+
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
660
|
+
# AUTHORIZATION event stream.
|
|
661
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
662
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
663
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
664
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
665
|
+
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
666
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
667
|
+
type:,
|
|
668
|
+
# The event stream during which the rule will be evaluated.
|
|
669
|
+
event_stream: nil,
|
|
670
|
+
# Account tokens to which the Auth Rule does not apply.
|
|
671
|
+
excluded_account_tokens: nil,
|
|
672
|
+
# Business account tokens to which the Auth Rule does not apply.
|
|
673
|
+
excluded_business_account_tokens: nil,
|
|
674
|
+
# Card tokens to which the Auth Rule does not apply.
|
|
675
|
+
excluded_card_tokens: nil,
|
|
676
|
+
# Auth Rule Name
|
|
677
|
+
name: nil
|
|
236
678
|
)
|
|
679
|
+
end
|
|
680
|
+
|
|
681
|
+
sig do
|
|
682
|
+
override.returns(
|
|
683
|
+
{
|
|
684
|
+
parameters:
|
|
685
|
+
T.any(
|
|
686
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
|
687
|
+
Lithic::AuthRules::VelocityLimitParams,
|
|
688
|
+
Lithic::AuthRules::MerchantLockParameters,
|
|
689
|
+
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
690
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
691
|
+
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
692
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters,
|
|
693
|
+
Lithic::AuthRules::TypescriptCodeParameters
|
|
694
|
+
),
|
|
695
|
+
program_level: T::Boolean,
|
|
696
|
+
type:
|
|
697
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::OrSymbol,
|
|
698
|
+
event_stream: Lithic::AuthRules::EventStream::OrSymbol,
|
|
699
|
+
excluded_account_tokens: T::Array[String],
|
|
700
|
+
excluded_business_account_tokens: T::Array[String],
|
|
701
|
+
excluded_card_tokens: T::Array[String],
|
|
702
|
+
name: T.nilable(String)
|
|
703
|
+
}
|
|
704
|
+
)
|
|
705
|
+
end
|
|
706
|
+
def to_hash
|
|
707
|
+
end
|
|
708
|
+
|
|
709
|
+
# Parameters for the Auth Rule
|
|
710
|
+
module Parameters
|
|
711
|
+
extend Lithic::Internal::Type::Union
|
|
712
|
+
|
|
713
|
+
Variants =
|
|
714
|
+
T.type_alias do
|
|
715
|
+
T.any(
|
|
716
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
|
717
|
+
Lithic::AuthRules::VelocityLimitParams,
|
|
718
|
+
Lithic::AuthRules::MerchantLockParameters,
|
|
719
|
+
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
720
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
721
|
+
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
722
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters,
|
|
723
|
+
Lithic::AuthRules::TypescriptCodeParameters
|
|
724
|
+
)
|
|
725
|
+
end
|
|
726
|
+
|
|
727
|
+
sig do
|
|
728
|
+
override.returns(
|
|
729
|
+
T::Array[
|
|
730
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Parameters::Variants
|
|
731
|
+
]
|
|
732
|
+
)
|
|
733
|
+
end
|
|
734
|
+
def self.variants
|
|
735
|
+
end
|
|
736
|
+
end
|
|
737
|
+
|
|
738
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
739
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
|
740
|
+
# several event streams, the effective one is defined by the separate
|
|
741
|
+
# `event_stream` field.
|
|
742
|
+
#
|
|
743
|
+
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
744
|
+
# AUTHORIZATION event stream.
|
|
745
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
746
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
747
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
748
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
749
|
+
# - `TYPESCRIPT_CODE`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
750
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
751
|
+
module Type
|
|
752
|
+
extend Lithic::Internal::Type::Enum
|
|
753
|
+
|
|
754
|
+
TaggedSymbol =
|
|
755
|
+
T.type_alias do
|
|
756
|
+
T.all(
|
|
757
|
+
Symbol,
|
|
758
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type
|
|
759
|
+
)
|
|
760
|
+
end
|
|
761
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
762
|
+
|
|
763
|
+
CONDITIONAL_BLOCK =
|
|
764
|
+
T.let(
|
|
765
|
+
:CONDITIONAL_BLOCK,
|
|
766
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol
|
|
767
|
+
)
|
|
768
|
+
VELOCITY_LIMIT =
|
|
769
|
+
T.let(
|
|
770
|
+
:VELOCITY_LIMIT,
|
|
771
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol
|
|
772
|
+
)
|
|
773
|
+
MERCHANT_LOCK =
|
|
774
|
+
T.let(
|
|
775
|
+
:MERCHANT_LOCK,
|
|
776
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol
|
|
777
|
+
)
|
|
778
|
+
CONDITIONAL_ACTION =
|
|
779
|
+
T.let(
|
|
780
|
+
:CONDITIONAL_ACTION,
|
|
781
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol
|
|
782
|
+
)
|
|
783
|
+
TYPESCRIPT_CODE =
|
|
784
|
+
T.let(
|
|
785
|
+
:TYPESCRIPT_CODE,
|
|
786
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol
|
|
787
|
+
)
|
|
788
|
+
|
|
789
|
+
sig do
|
|
790
|
+
override.returns(
|
|
791
|
+
T::Array[
|
|
792
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol
|
|
793
|
+
]
|
|
794
|
+
)
|
|
795
|
+
end
|
|
796
|
+
def self.values
|
|
797
|
+
end
|
|
798
|
+
end
|
|
799
|
+
end
|
|
237
800
|
|
|
238
801
|
sig do
|
|
239
802
|
override.returns(
|
|
240
|
-
T::Array[Lithic::AuthRules::V2CreateParams::
|
|
803
|
+
T::Array[Lithic::AuthRules::V2CreateParams::Body::Variants]
|
|
241
804
|
)
|
|
242
805
|
end
|
|
243
|
-
def self.
|
|
806
|
+
def self.variants
|
|
244
807
|
end
|
|
245
808
|
end
|
|
246
809
|
end
|