lithic 0.6.0 → 0.7.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 +16 -0
- data/README.md +1 -1
- data/lib/lithic/internal/util.rb +31 -0
- data/lib/lithic/models/account_activity_retrieve_transaction_params.rb +7 -1
- 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/{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/v2/backtest_create_params.rb +8 -1
- data/lib/lithic/models/auth_rules/v2/backtest_results.rb +6 -6
- data/lib/lithic/models/auth_rules/v2/backtest_retrieve_params.rb +7 -1
- data/lib/lithic/models/auth_rules/v2_create_params.rb +338 -113
- data/lib/lithic/models/auth_rules/v2_delete_params.rb +7 -1
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +8 -1
- 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_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_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 +6 -6
- data/lib/lithic/models/auth_rules/v2_update_params.rb +183 -66
- 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/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_retrieve_evidence_params.rb +7 -1
- data/lib/lithic/models/dispute_retrieve_params.rb +7 -1
- data/lib/lithic/models/dispute_update_params.rb +8 -1
- data/lib/lithic/models/disputes_v2_retrieve_params.rb +7 -1
- data/lib/lithic/models/event_list_attempts_params.rb +8 -1
- data/lib/lithic/models/event_retrieve_params.rb +7 -1
- data/lib/lithic/models/events/event_subscription_resend_params.rb +7 -1
- 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 -1
- data/lib/lithic/models/events/subscription_update_params.rb +8 -1
- 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_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_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 +8 -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/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/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 +1 -11
- 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 +8 -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/resources/account_activity.rb +2 -1
- 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 +20 -49
- 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 +4 -2
- 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 +2 -1
- 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/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/version.rb +1 -1
- data/lib/lithic.rb +2 -1
- data/rbi/lithic/internal/util.rbi +20 -0
- data/rbi/lithic/models/account_activity_retrieve_transaction_params.rbi +13 -5
- 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/{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/v2/backtest_create_params.rbi +6 -0
- data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +11 -8
- data/rbi/lithic/models/auth_rules/v2/backtest_retrieve_params.rbi +10 -1
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +675 -181
- data/rbi/lithic/models/auth_rules/v2_delete_params.rbi +13 -5
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +6 -0
- 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_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_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 +8 -8
- data/rbi/lithic/models/auth_rules/v2_update_params.rbi +391 -101
- 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/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_retrieve_evidence_params.rbi +10 -2
- data/rbi/lithic/models/dispute_retrieve_params.rbi +13 -5
- data/rbi/lithic/models/dispute_update_params.rbi +6 -0
- data/rbi/lithic/models/disputes_v2_retrieve_params.rbi +13 -5
- data/rbi/lithic/models/event_list_attempts_params.rbi +6 -0
- data/rbi/lithic/models/event_retrieve_params.rbi +13 -5
- data/rbi/lithic/models/events/event_subscription_resend_params.rbi +14 -2
- 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 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +6 -0
- 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_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_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 +6 -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/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/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 -17
- 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 +6 -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/resources/account_holders/entities.rbi +4 -4
- data/rbi/lithic/resources/account_holders.rbi +16 -177
- data/rbi/lithic/resources/auth_rules/v2.rbi +20 -76
- data/rbi/lithic/resources/external_bank_accounts.rbi +7 -58
- data/rbi/lithic/resources/payments.rbi +3 -0
- data/sig/lithic/internal/util.rbs +10 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_params.rbs +11 -3
- 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/{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/v2/backtest_create_params.rbs +5 -1
- data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +8 -8
- data/sig/lithic/models/auth_rules/v2/backtest_retrieve_params.rbs +5 -1
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +236 -74
- data/sig/lithic/models/auth_rules/v2_delete_params.rbs +12 -3
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +8 -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_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_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 +8 -8
- data/sig/lithic/models/auth_rules/v2_update_params.rbs +152 -47
- 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/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_list_attempts_params.rbs +5 -0
- data/sig/lithic/models/event_retrieve_params.rbs +11 -3
- data/sig/lithic/models/events/event_subscription_resend_params.rbs +6 -1
- 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 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +5 -0
- 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_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_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 +10 -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/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/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 -9
- 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 +5 -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/resources/account_holders.rbs +2 -36
- data/sig/lithic/resources/auth_rules/v2.rbs +4 -16
- data/sig/lithic/resources/external_bank_accounts.rbs +1 -17
- data/sig/lithic/resources/payments.rbs +1 -0
- metadata +8 -5
|
@@ -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,688 @@ 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
|
+
)
|
|
89
|
+
)
|
|
90
|
+
end
|
|
91
|
+
attr_accessor :parameters
|
|
92
|
+
|
|
93
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
94
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
|
95
|
+
# several event streams, the effective one is defined by the separate
|
|
96
|
+
# `event_stream` field.
|
|
97
|
+
#
|
|
98
|
+
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
99
|
+
# AUTHORIZATION event stream.
|
|
100
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
101
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
102
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
103
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
104
|
+
sig do
|
|
105
|
+
returns(
|
|
106
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::OrSymbol
|
|
107
|
+
)
|
|
108
|
+
end
|
|
109
|
+
attr_accessor :type
|
|
110
|
+
|
|
111
|
+
# Account tokens to which the Auth Rule applies.
|
|
112
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
113
|
+
attr_reader :account_tokens
|
|
114
|
+
|
|
115
|
+
sig { params(account_tokens: T::Array[String]).void }
|
|
116
|
+
attr_writer :account_tokens
|
|
117
|
+
|
|
118
|
+
# Business Account tokens to which the Auth Rule applies.
|
|
119
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
120
|
+
attr_reader :business_account_tokens
|
|
121
|
+
|
|
122
|
+
sig { params(business_account_tokens: T::Array[String]).void }
|
|
123
|
+
attr_writer :business_account_tokens
|
|
124
|
+
|
|
125
|
+
# The event stream during which the rule will be evaluated.
|
|
126
|
+
sig { returns(T.nilable(Lithic::AuthRules::EventStream::OrSymbol)) }
|
|
127
|
+
attr_reader :event_stream
|
|
128
|
+
|
|
129
|
+
sig do
|
|
130
|
+
params(
|
|
131
|
+
event_stream: Lithic::AuthRules::EventStream::OrSymbol
|
|
132
|
+
).void
|
|
133
|
+
end
|
|
134
|
+
attr_writer :event_stream
|
|
135
|
+
|
|
136
|
+
# Auth Rule Name
|
|
137
|
+
sig { returns(T.nilable(String)) }
|
|
138
|
+
attr_accessor :name
|
|
139
|
+
|
|
140
|
+
sig do
|
|
141
|
+
params(
|
|
142
|
+
parameters:
|
|
143
|
+
T.any(
|
|
144
|
+
Lithic::AuthRules::ConditionalBlockParameters::OrHash,
|
|
145
|
+
Lithic::AuthRules::VelocityLimitParams::OrHash,
|
|
146
|
+
Lithic::AuthRules::MerchantLockParameters::OrHash,
|
|
147
|
+
Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
|
|
148
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash,
|
|
149
|
+
Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
|
|
150
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash
|
|
151
|
+
),
|
|
152
|
+
type:
|
|
153
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::OrSymbol,
|
|
154
|
+
account_tokens: T::Array[String],
|
|
155
|
+
business_account_tokens: T::Array[String],
|
|
156
|
+
event_stream: Lithic::AuthRules::EventStream::OrSymbol,
|
|
157
|
+
name: T.nilable(String)
|
|
158
|
+
).returns(T.attached_class)
|
|
159
|
+
end
|
|
160
|
+
def self.new(
|
|
161
|
+
# Parameters for the Auth Rule
|
|
162
|
+
parameters:,
|
|
163
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
164
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
|
165
|
+
# several event streams, the effective one is defined by the separate
|
|
166
|
+
# `event_stream` field.
|
|
167
|
+
#
|
|
168
|
+
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
169
|
+
# AUTHORIZATION event stream.
|
|
170
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
171
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
172
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
173
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
174
|
+
type:,
|
|
175
|
+
# Account tokens to which the Auth Rule applies.
|
|
176
|
+
account_tokens: nil,
|
|
177
|
+
# Business Account tokens to which the Auth Rule applies.
|
|
178
|
+
business_account_tokens: nil,
|
|
179
|
+
# The event stream during which the rule will be evaluated.
|
|
180
|
+
event_stream: nil,
|
|
181
|
+
# Auth Rule Name
|
|
182
|
+
name: nil
|
|
191
183
|
)
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
sig do
|
|
187
|
+
override.returns(
|
|
188
|
+
{
|
|
189
|
+
parameters:
|
|
190
|
+
T.any(
|
|
191
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
|
192
|
+
Lithic::AuthRules::VelocityLimitParams,
|
|
193
|
+
Lithic::AuthRules::MerchantLockParameters,
|
|
194
|
+
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
195
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
196
|
+
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
197
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
198
|
+
),
|
|
199
|
+
type:
|
|
200
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::OrSymbol,
|
|
201
|
+
account_tokens: T::Array[String],
|
|
202
|
+
business_account_tokens: T::Array[String],
|
|
203
|
+
event_stream: Lithic::AuthRules::EventStream::OrSymbol,
|
|
204
|
+
name: T.nilable(String)
|
|
205
|
+
}
|
|
206
|
+
)
|
|
207
|
+
end
|
|
208
|
+
def to_hash
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Parameters for the Auth Rule
|
|
212
|
+
module Parameters
|
|
213
|
+
extend Lithic::Internal::Type::Union
|
|
214
|
+
|
|
215
|
+
Variants =
|
|
216
|
+
T.type_alias do
|
|
217
|
+
T.any(
|
|
218
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
|
219
|
+
Lithic::AuthRules::VelocityLimitParams,
|
|
220
|
+
Lithic::AuthRules::MerchantLockParameters,
|
|
221
|
+
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
222
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
223
|
+
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
224
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
225
|
+
)
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
sig do
|
|
229
|
+
override.returns(
|
|
230
|
+
T::Array[
|
|
231
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Parameters::Variants
|
|
232
|
+
]
|
|
233
|
+
)
|
|
234
|
+
end
|
|
235
|
+
def self.variants
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
240
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
|
241
|
+
# several event streams, the effective one is defined by the separate
|
|
242
|
+
# `event_stream` field.
|
|
243
|
+
#
|
|
244
|
+
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
245
|
+
# AUTHORIZATION event stream.
|
|
246
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
247
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
248
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
249
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
250
|
+
module Type
|
|
251
|
+
extend Lithic::Internal::Type::Enum
|
|
252
|
+
|
|
253
|
+
TaggedSymbol =
|
|
254
|
+
T.type_alias do
|
|
255
|
+
T.all(
|
|
256
|
+
Symbol,
|
|
257
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type
|
|
258
|
+
)
|
|
259
|
+
end
|
|
260
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
261
|
+
|
|
262
|
+
CONDITIONAL_BLOCK =
|
|
263
|
+
T.let(
|
|
264
|
+
:CONDITIONAL_BLOCK,
|
|
265
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol
|
|
266
|
+
)
|
|
267
|
+
VELOCITY_LIMIT =
|
|
268
|
+
T.let(
|
|
269
|
+
:VELOCITY_LIMIT,
|
|
270
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol
|
|
271
|
+
)
|
|
272
|
+
MERCHANT_LOCK =
|
|
273
|
+
T.let(
|
|
274
|
+
:MERCHANT_LOCK,
|
|
275
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol
|
|
276
|
+
)
|
|
277
|
+
CONDITIONAL_ACTION =
|
|
278
|
+
T.let(
|
|
279
|
+
:CONDITIONAL_ACTION,
|
|
280
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol
|
|
281
|
+
)
|
|
282
|
+
|
|
283
|
+
sig do
|
|
284
|
+
override.returns(
|
|
285
|
+
T::Array[
|
|
286
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::Type::TaggedSymbol
|
|
287
|
+
]
|
|
288
|
+
)
|
|
289
|
+
end
|
|
290
|
+
def self.values
|
|
291
|
+
end
|
|
292
|
+
end
|
|
192
293
|
end
|
|
193
|
-
def self.variants
|
|
194
|
-
end
|
|
195
|
-
end
|
|
196
294
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
295
|
+
class CardLevelRule < Lithic::Internal::Type::BaseModel
|
|
296
|
+
OrHash =
|
|
297
|
+
T.type_alias do
|
|
298
|
+
T.any(
|
|
299
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule,
|
|
300
|
+
Lithic::Internal::AnyHash
|
|
301
|
+
)
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
# Card tokens to which the Auth Rule applies.
|
|
305
|
+
sig { returns(T::Array[String]) }
|
|
306
|
+
attr_accessor :card_tokens
|
|
307
|
+
|
|
308
|
+
# Parameters for the Auth Rule
|
|
309
|
+
sig do
|
|
310
|
+
returns(
|
|
311
|
+
T.any(
|
|
312
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
|
313
|
+
Lithic::AuthRules::VelocityLimitParams,
|
|
314
|
+
Lithic::AuthRules::MerchantLockParameters,
|
|
315
|
+
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
316
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
317
|
+
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
318
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
319
|
+
)
|
|
320
|
+
)
|
|
214
321
|
end
|
|
215
|
-
|
|
322
|
+
attr_accessor :parameters
|
|
216
323
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
324
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
325
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
|
326
|
+
# several event streams, the effective one is defined by the separate
|
|
327
|
+
# `event_stream` field.
|
|
328
|
+
#
|
|
329
|
+
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
330
|
+
# AUTHORIZATION event stream.
|
|
331
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
332
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
333
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
334
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
335
|
+
sig do
|
|
336
|
+
returns(
|
|
337
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::OrSymbol
|
|
338
|
+
)
|
|
339
|
+
end
|
|
340
|
+
attr_accessor :type
|
|
341
|
+
|
|
342
|
+
# The event stream during which the rule will be evaluated.
|
|
343
|
+
sig { returns(T.nilable(Lithic::AuthRules::EventStream::OrSymbol)) }
|
|
344
|
+
attr_reader :event_stream
|
|
345
|
+
|
|
346
|
+
sig do
|
|
347
|
+
params(
|
|
348
|
+
event_stream: Lithic::AuthRules::EventStream::OrSymbol
|
|
349
|
+
).void
|
|
350
|
+
end
|
|
351
|
+
attr_writer :event_stream
|
|
352
|
+
|
|
353
|
+
# Auth Rule Name
|
|
354
|
+
sig { returns(T.nilable(String)) }
|
|
355
|
+
attr_accessor :name
|
|
356
|
+
|
|
357
|
+
sig do
|
|
358
|
+
params(
|
|
359
|
+
card_tokens: T::Array[String],
|
|
360
|
+
parameters:
|
|
361
|
+
T.any(
|
|
362
|
+
Lithic::AuthRules::ConditionalBlockParameters::OrHash,
|
|
363
|
+
Lithic::AuthRules::VelocityLimitParams::OrHash,
|
|
364
|
+
Lithic::AuthRules::MerchantLockParameters::OrHash,
|
|
365
|
+
Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
|
|
366
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash,
|
|
367
|
+
Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
|
|
368
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash
|
|
369
|
+
),
|
|
370
|
+
type:
|
|
371
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::OrSymbol,
|
|
372
|
+
event_stream: Lithic::AuthRules::EventStream::OrSymbol,
|
|
373
|
+
name: T.nilable(String)
|
|
374
|
+
).returns(T.attached_class)
|
|
375
|
+
end
|
|
376
|
+
def self.new(
|
|
377
|
+
# Card tokens to which the Auth Rule applies.
|
|
378
|
+
card_tokens:,
|
|
379
|
+
# Parameters for the Auth Rule
|
|
380
|
+
parameters:,
|
|
381
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
382
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
|
383
|
+
# several event streams, the effective one is defined by the separate
|
|
384
|
+
# `event_stream` field.
|
|
385
|
+
#
|
|
386
|
+
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
387
|
+
# AUTHORIZATION event stream.
|
|
388
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
389
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
390
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
391
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
392
|
+
type:,
|
|
393
|
+
# The event stream during which the rule will be evaluated.
|
|
394
|
+
event_stream: nil,
|
|
395
|
+
# Auth Rule Name
|
|
396
|
+
name: nil
|
|
231
397
|
)
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
sig do
|
|
401
|
+
override.returns(
|
|
402
|
+
{
|
|
403
|
+
card_tokens: T::Array[String],
|
|
404
|
+
parameters:
|
|
405
|
+
T.any(
|
|
406
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
|
407
|
+
Lithic::AuthRules::VelocityLimitParams,
|
|
408
|
+
Lithic::AuthRules::MerchantLockParameters,
|
|
409
|
+
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
410
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
411
|
+
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
412
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
413
|
+
),
|
|
414
|
+
type:
|
|
415
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::OrSymbol,
|
|
416
|
+
event_stream: Lithic::AuthRules::EventStream::OrSymbol,
|
|
417
|
+
name: T.nilable(String)
|
|
418
|
+
}
|
|
419
|
+
)
|
|
420
|
+
end
|
|
421
|
+
def to_hash
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
# Parameters for the Auth Rule
|
|
425
|
+
module Parameters
|
|
426
|
+
extend Lithic::Internal::Type::Union
|
|
427
|
+
|
|
428
|
+
Variants =
|
|
429
|
+
T.type_alias do
|
|
430
|
+
T.any(
|
|
431
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
|
432
|
+
Lithic::AuthRules::VelocityLimitParams,
|
|
433
|
+
Lithic::AuthRules::MerchantLockParameters,
|
|
434
|
+
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
435
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
436
|
+
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
437
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
438
|
+
)
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
sig do
|
|
442
|
+
override.returns(
|
|
443
|
+
T::Array[
|
|
444
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Parameters::Variants
|
|
445
|
+
]
|
|
446
|
+
)
|
|
447
|
+
end
|
|
448
|
+
def self.variants
|
|
449
|
+
end
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
453
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
|
454
|
+
# several event streams, the effective one is defined by the separate
|
|
455
|
+
# `event_stream` field.
|
|
456
|
+
#
|
|
457
|
+
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
458
|
+
# AUTHORIZATION event stream.
|
|
459
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
460
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
461
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
462
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
463
|
+
module Type
|
|
464
|
+
extend Lithic::Internal::Type::Enum
|
|
465
|
+
|
|
466
|
+
TaggedSymbol =
|
|
467
|
+
T.type_alias do
|
|
468
|
+
T.all(
|
|
469
|
+
Symbol,
|
|
470
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type
|
|
471
|
+
)
|
|
472
|
+
end
|
|
473
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
474
|
+
|
|
475
|
+
CONDITIONAL_BLOCK =
|
|
476
|
+
T.let(
|
|
477
|
+
:CONDITIONAL_BLOCK,
|
|
478
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol
|
|
479
|
+
)
|
|
480
|
+
VELOCITY_LIMIT =
|
|
481
|
+
T.let(
|
|
482
|
+
:VELOCITY_LIMIT,
|
|
483
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol
|
|
484
|
+
)
|
|
485
|
+
MERCHANT_LOCK =
|
|
486
|
+
T.let(
|
|
487
|
+
:MERCHANT_LOCK,
|
|
488
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol
|
|
489
|
+
)
|
|
490
|
+
CONDITIONAL_ACTION =
|
|
491
|
+
T.let(
|
|
492
|
+
:CONDITIONAL_ACTION,
|
|
493
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol
|
|
494
|
+
)
|
|
495
|
+
|
|
496
|
+
sig do
|
|
497
|
+
override.returns(
|
|
498
|
+
T::Array[
|
|
499
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::Type::TaggedSymbol
|
|
500
|
+
]
|
|
501
|
+
)
|
|
502
|
+
end
|
|
503
|
+
def self.values
|
|
504
|
+
end
|
|
505
|
+
end
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
class ProgramLevelRule < Lithic::Internal::Type::BaseModel
|
|
509
|
+
OrHash =
|
|
510
|
+
T.type_alias do
|
|
511
|
+
T.any(
|
|
512
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule,
|
|
513
|
+
Lithic::Internal::AnyHash
|
|
514
|
+
)
|
|
515
|
+
end
|
|
516
|
+
|
|
517
|
+
# Parameters for the Auth Rule
|
|
518
|
+
sig do
|
|
519
|
+
returns(
|
|
520
|
+
T.any(
|
|
521
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
|
522
|
+
Lithic::AuthRules::VelocityLimitParams,
|
|
523
|
+
Lithic::AuthRules::MerchantLockParameters,
|
|
524
|
+
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
525
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
526
|
+
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
527
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
528
|
+
)
|
|
529
|
+
)
|
|
530
|
+
end
|
|
531
|
+
attr_accessor :parameters
|
|
532
|
+
|
|
533
|
+
# Whether the Auth Rule applies to all authorizations on the card program.
|
|
534
|
+
sig { returns(T::Boolean) }
|
|
535
|
+
attr_accessor :program_level
|
|
536
|
+
|
|
537
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
538
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
|
539
|
+
# several event streams, the effective one is defined by the separate
|
|
540
|
+
# `event_stream` field.
|
|
541
|
+
#
|
|
542
|
+
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
543
|
+
# AUTHORIZATION event stream.
|
|
544
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
545
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
546
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
547
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
548
|
+
sig do
|
|
549
|
+
returns(
|
|
550
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::OrSymbol
|
|
551
|
+
)
|
|
552
|
+
end
|
|
553
|
+
attr_accessor :type
|
|
554
|
+
|
|
555
|
+
# The event stream during which the rule will be evaluated.
|
|
556
|
+
sig { returns(T.nilable(Lithic::AuthRules::EventStream::OrSymbol)) }
|
|
557
|
+
attr_reader :event_stream
|
|
558
|
+
|
|
559
|
+
sig do
|
|
560
|
+
params(
|
|
561
|
+
event_stream: Lithic::AuthRules::EventStream::OrSymbol
|
|
562
|
+
).void
|
|
563
|
+
end
|
|
564
|
+
attr_writer :event_stream
|
|
565
|
+
|
|
566
|
+
# Card tokens to which the Auth Rule does not apply.
|
|
567
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
568
|
+
attr_reader :excluded_card_tokens
|
|
569
|
+
|
|
570
|
+
sig { params(excluded_card_tokens: T::Array[String]).void }
|
|
571
|
+
attr_writer :excluded_card_tokens
|
|
572
|
+
|
|
573
|
+
# Auth Rule Name
|
|
574
|
+
sig { returns(T.nilable(String)) }
|
|
575
|
+
attr_accessor :name
|
|
576
|
+
|
|
577
|
+
sig do
|
|
578
|
+
params(
|
|
579
|
+
parameters:
|
|
580
|
+
T.any(
|
|
581
|
+
Lithic::AuthRules::ConditionalBlockParameters::OrHash,
|
|
582
|
+
Lithic::AuthRules::VelocityLimitParams::OrHash,
|
|
583
|
+
Lithic::AuthRules::MerchantLockParameters::OrHash,
|
|
584
|
+
Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
|
|
585
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash,
|
|
586
|
+
Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
|
|
587
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash
|
|
588
|
+
),
|
|
589
|
+
program_level: T::Boolean,
|
|
590
|
+
type:
|
|
591
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::OrSymbol,
|
|
592
|
+
event_stream: Lithic::AuthRules::EventStream::OrSymbol,
|
|
593
|
+
excluded_card_tokens: T::Array[String],
|
|
594
|
+
name: T.nilable(String)
|
|
595
|
+
).returns(T.attached_class)
|
|
596
|
+
end
|
|
597
|
+
def self.new(
|
|
598
|
+
# Parameters for the Auth Rule
|
|
599
|
+
parameters:,
|
|
600
|
+
# Whether the Auth Rule applies to all authorizations on the card program.
|
|
601
|
+
program_level:,
|
|
602
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
603
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
|
604
|
+
# several event streams, the effective one is defined by the separate
|
|
605
|
+
# `event_stream` field.
|
|
606
|
+
#
|
|
607
|
+
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
608
|
+
# AUTHORIZATION event stream.
|
|
609
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
610
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
611
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
612
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
613
|
+
type:,
|
|
614
|
+
# The event stream during which the rule will be evaluated.
|
|
615
|
+
event_stream: nil,
|
|
616
|
+
# Card tokens to which the Auth Rule does not apply.
|
|
617
|
+
excluded_card_tokens: nil,
|
|
618
|
+
# Auth Rule Name
|
|
619
|
+
name: nil
|
|
236
620
|
)
|
|
621
|
+
end
|
|
622
|
+
|
|
623
|
+
sig do
|
|
624
|
+
override.returns(
|
|
625
|
+
{
|
|
626
|
+
parameters:
|
|
627
|
+
T.any(
|
|
628
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
|
629
|
+
Lithic::AuthRules::VelocityLimitParams,
|
|
630
|
+
Lithic::AuthRules::MerchantLockParameters,
|
|
631
|
+
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
632
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
633
|
+
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
634
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
635
|
+
),
|
|
636
|
+
program_level: T::Boolean,
|
|
637
|
+
type:
|
|
638
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::OrSymbol,
|
|
639
|
+
event_stream: Lithic::AuthRules::EventStream::OrSymbol,
|
|
640
|
+
excluded_card_tokens: T::Array[String],
|
|
641
|
+
name: T.nilable(String)
|
|
642
|
+
}
|
|
643
|
+
)
|
|
644
|
+
end
|
|
645
|
+
def to_hash
|
|
646
|
+
end
|
|
647
|
+
|
|
648
|
+
# Parameters for the Auth Rule
|
|
649
|
+
module Parameters
|
|
650
|
+
extend Lithic::Internal::Type::Union
|
|
651
|
+
|
|
652
|
+
Variants =
|
|
653
|
+
T.type_alias do
|
|
654
|
+
T.any(
|
|
655
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
|
656
|
+
Lithic::AuthRules::VelocityLimitParams,
|
|
657
|
+
Lithic::AuthRules::MerchantLockParameters,
|
|
658
|
+
Lithic::AuthRules::Conditional3DSActionParameters,
|
|
659
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters,
|
|
660
|
+
Lithic::AuthRules::ConditionalACHActionParameters,
|
|
661
|
+
Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
662
|
+
)
|
|
663
|
+
end
|
|
664
|
+
|
|
665
|
+
sig do
|
|
666
|
+
override.returns(
|
|
667
|
+
T::Array[
|
|
668
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Parameters::Variants
|
|
669
|
+
]
|
|
670
|
+
)
|
|
671
|
+
end
|
|
672
|
+
def self.variants
|
|
673
|
+
end
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
677
|
+
# during which it will be evaluated. For rules that can be applied to one of
|
|
678
|
+
# several event streams, the effective one is defined by the separate
|
|
679
|
+
# `event_stream` field.
|
|
680
|
+
#
|
|
681
|
+
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
682
|
+
# AUTHORIZATION event stream.
|
|
683
|
+
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
684
|
+
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
685
|
+
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
686
|
+
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
687
|
+
module Type
|
|
688
|
+
extend Lithic::Internal::Type::Enum
|
|
689
|
+
|
|
690
|
+
TaggedSymbol =
|
|
691
|
+
T.type_alias do
|
|
692
|
+
T.all(
|
|
693
|
+
Symbol,
|
|
694
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type
|
|
695
|
+
)
|
|
696
|
+
end
|
|
697
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
698
|
+
|
|
699
|
+
CONDITIONAL_BLOCK =
|
|
700
|
+
T.let(
|
|
701
|
+
:CONDITIONAL_BLOCK,
|
|
702
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol
|
|
703
|
+
)
|
|
704
|
+
VELOCITY_LIMIT =
|
|
705
|
+
T.let(
|
|
706
|
+
:VELOCITY_LIMIT,
|
|
707
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol
|
|
708
|
+
)
|
|
709
|
+
MERCHANT_LOCK =
|
|
710
|
+
T.let(
|
|
711
|
+
:MERCHANT_LOCK,
|
|
712
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol
|
|
713
|
+
)
|
|
714
|
+
CONDITIONAL_ACTION =
|
|
715
|
+
T.let(
|
|
716
|
+
:CONDITIONAL_ACTION,
|
|
717
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol
|
|
718
|
+
)
|
|
719
|
+
|
|
720
|
+
sig do
|
|
721
|
+
override.returns(
|
|
722
|
+
T::Array[
|
|
723
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::Type::TaggedSymbol
|
|
724
|
+
]
|
|
725
|
+
)
|
|
726
|
+
end
|
|
727
|
+
def self.values
|
|
728
|
+
end
|
|
729
|
+
end
|
|
730
|
+
end
|
|
237
731
|
|
|
238
732
|
sig do
|
|
239
733
|
override.returns(
|
|
240
|
-
T::Array[Lithic::AuthRules::V2CreateParams::
|
|
734
|
+
T::Array[Lithic::AuthRules::V2CreateParams::Body::Variants]
|
|
241
735
|
)
|
|
242
736
|
end
|
|
243
|
-
def self.
|
|
737
|
+
def self.variants
|
|
244
738
|
end
|
|
245
739
|
end
|
|
246
740
|
end
|