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
|
@@ -14,15 +14,23 @@ module Lithic
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
sig { returns(String) }
|
|
18
|
+
attr_accessor :transaction_token
|
|
19
|
+
|
|
17
20
|
sig do
|
|
18
|
-
params(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
params(
|
|
22
|
+
transaction_token: String,
|
|
23
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
24
|
+
).returns(T.attached_class)
|
|
21
25
|
end
|
|
22
|
-
def self.new(request_options: {})
|
|
26
|
+
def self.new(transaction_token:, request_options: {})
|
|
23
27
|
end
|
|
24
28
|
|
|
25
|
-
sig
|
|
29
|
+
sig do
|
|
30
|
+
override.returns(
|
|
31
|
+
{ transaction_token: String, request_options: Lithic::RequestOptions }
|
|
32
|
+
)
|
|
33
|
+
end
|
|
26
34
|
def to_hash
|
|
27
35
|
end
|
|
28
36
|
end
|
|
@@ -11,15 +11,23 @@ module Lithic
|
|
|
11
11
|
T.any(Lithic::TransactionRetrieveParams, Lithic::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
sig { returns(String) }
|
|
15
|
+
attr_accessor :transaction_token
|
|
16
|
+
|
|
14
17
|
sig do
|
|
15
|
-
params(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
params(
|
|
19
|
+
transaction_token: String,
|
|
20
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
21
|
+
).returns(T.attached_class)
|
|
18
22
|
end
|
|
19
|
-
def self.new(request_options: {})
|
|
23
|
+
def self.new(transaction_token:, request_options: {})
|
|
20
24
|
end
|
|
21
25
|
|
|
22
|
-
sig
|
|
26
|
+
sig do
|
|
27
|
+
override.returns(
|
|
28
|
+
{ transaction_token: String, request_options: Lithic::RequestOptions }
|
|
29
|
+
)
|
|
30
|
+
end
|
|
23
31
|
def to_hash
|
|
24
32
|
end
|
|
25
33
|
end
|
|
@@ -15,15 +15,26 @@ module Lithic
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :transaction_token
|
|
20
|
+
|
|
18
21
|
sig do
|
|
19
|
-
params(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
params(
|
|
23
|
+
transaction_token: String,
|
|
24
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
25
|
+
).returns(T.attached_class)
|
|
22
26
|
end
|
|
23
|
-
def self.new(request_options: {})
|
|
27
|
+
def self.new(transaction_token:, request_options: {})
|
|
24
28
|
end
|
|
25
29
|
|
|
26
|
-
sig
|
|
30
|
+
sig do
|
|
31
|
+
override.returns(
|
|
32
|
+
{
|
|
33
|
+
transaction_token: String,
|
|
34
|
+
request_options: Lithic::RequestOptions
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
end
|
|
27
38
|
def to_hash
|
|
28
39
|
end
|
|
29
40
|
end
|
|
@@ -16,15 +16,23 @@ module Lithic
|
|
|
16
16
|
)
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :event_token
|
|
21
|
+
|
|
19
22
|
sig do
|
|
20
|
-
params(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
params(
|
|
24
|
+
event_token: String,
|
|
25
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
26
|
+
).returns(T.attached_class)
|
|
23
27
|
end
|
|
24
|
-
def self.new(request_options: {})
|
|
28
|
+
def self.new(event_token:, request_options: {})
|
|
25
29
|
end
|
|
26
30
|
|
|
27
|
-
sig
|
|
31
|
+
sig do
|
|
32
|
+
override.returns(
|
|
33
|
+
{ event_token: String, request_options: Lithic::RequestOptions }
|
|
34
|
+
)
|
|
35
|
+
end
|
|
28
36
|
def to_hash
|
|
29
37
|
end
|
|
30
38
|
end
|
|
@@ -4,8 +4,8 @@ module Lithic
|
|
|
4
4
|
module Resources
|
|
5
5
|
class AccountHolders
|
|
6
6
|
class Entities
|
|
7
|
-
# Create a new beneficial owner or replace the control person entity on
|
|
8
|
-
# existing KYB account holder. This endpoint is only applicable for account
|
|
7
|
+
# Create a new beneficial owner individual or replace the control person entity on
|
|
8
|
+
# an existing KYB account holder. This endpoint is only applicable for account
|
|
9
9
|
# holders enrolled through a KYB workflow with the Persona KYB provider. A new
|
|
10
10
|
# control person can only replace the existing one. A maximum of 4 beneficial
|
|
11
11
|
# owners can be associated with an account holder.
|
|
@@ -52,8 +52,8 @@ module Lithic
|
|
|
52
52
|
)
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
# Deactivate a beneficial owner
|
|
56
|
-
# beneficial owner
|
|
55
|
+
# Deactivate a beneficial owner individual on an existing KYB account holder. Only
|
|
56
|
+
# beneficial owner individuals can be deactivated.
|
|
57
57
|
sig do
|
|
58
58
|
params(
|
|
59
59
|
entity_token: String,
|
|
@@ -16,108 +16,17 @@ module Lithic
|
|
|
16
16
|
# that the calling API key manages.
|
|
17
17
|
sig do
|
|
18
18
|
params(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
first_name: String,
|
|
27
|
-
kyc_exemption_type:
|
|
28
|
-
Lithic::AccountHolderCreateParams::KYCExemptionType::OrSymbol,
|
|
29
|
-
last_name: String,
|
|
30
|
-
phone_number: String,
|
|
31
|
-
beneficial_owner_individuals:
|
|
32
|
-
T::Array[
|
|
33
|
-
Lithic::AccountHolderCreateParams::BeneficialOwnerIndividual::OrHash
|
|
34
|
-
],
|
|
35
|
-
control_person:
|
|
36
|
-
Lithic::AccountHolderCreateParams::ControlPerson::OrHash,
|
|
37
|
-
nature_of_business: String,
|
|
38
|
-
beneficial_owner_entities:
|
|
39
|
-
T::Array[
|
|
40
|
-
Lithic::AccountHolderCreateParams::BeneficialOwnerEntity::OrHash
|
|
41
|
-
],
|
|
42
|
-
external_id: String,
|
|
43
|
-
kyb_passed_timestamp: String,
|
|
44
|
-
naics_code: String,
|
|
45
|
-
website_url: String,
|
|
46
|
-
kyc_passed_timestamp: String,
|
|
47
|
-
business_account_token: String,
|
|
19
|
+
body:
|
|
20
|
+
T.any(
|
|
21
|
+
Lithic::KYB::OrHash,
|
|
22
|
+
Lithic::AccountHolderCreateParams::Body::KYBDelegated::OrHash,
|
|
23
|
+
Lithic::KYC::OrHash,
|
|
24
|
+
Lithic::KYCExempt::OrHash
|
|
25
|
+
),
|
|
48
26
|
request_options: Lithic::RequestOptions::OrHash
|
|
49
27
|
).returns(Lithic::Models::AccountHolderCreateResponse)
|
|
50
28
|
end
|
|
51
|
-
def create(
|
|
52
|
-
# Information for business for which the account is being opened.
|
|
53
|
-
business_entity:,
|
|
54
|
-
# An RFC 3339 timestamp indicating when the account holder accepted the applicable
|
|
55
|
-
# legal agreements (e.g., cardholder terms) as agreed upon during API customer's
|
|
56
|
-
# implementation with Lithic.
|
|
57
|
-
tos_timestamp:,
|
|
58
|
-
# Specifies the workflow type. This must be 'KYC_EXEMPT'
|
|
59
|
-
workflow:,
|
|
60
|
-
# Information on individual for whom the account is being opened and KYC is being
|
|
61
|
-
# run.
|
|
62
|
-
individual:,
|
|
63
|
-
# KYC Exempt user's current address - PO boxes, UPS drops, and FedEx drops are not
|
|
64
|
-
# acceptable; APO/FPO are acceptable.
|
|
65
|
-
address:,
|
|
66
|
-
# The KYC Exempt user's email
|
|
67
|
-
email:,
|
|
68
|
-
# The KYC Exempt user's first name
|
|
69
|
-
first_name:,
|
|
70
|
-
# Specifies the type of KYC Exempt user
|
|
71
|
-
kyc_exemption_type:,
|
|
72
|
-
# The KYC Exempt user's last name
|
|
73
|
-
last_name:,
|
|
74
|
-
# The KYC Exempt user's phone number, entered in E.164 format.
|
|
75
|
-
phone_number:,
|
|
76
|
-
# You can submit a list of all direct and indirect individuals with 25% or more
|
|
77
|
-
# ownership in the company. A maximum of 4 beneficial owners can be submitted. If
|
|
78
|
-
# no individual owns 25% of the company you do not need to send beneficial owner
|
|
79
|
-
# information. See
|
|
80
|
-
# [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
|
|
81
|
-
# (Section I) for more background on individuals that should be included.
|
|
82
|
-
beneficial_owner_individuals: nil,
|
|
83
|
-
# An individual with significant responsibility for managing the legal entity
|
|
84
|
-
# (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating
|
|
85
|
-
# Officer, Managing Member, General Partner, President, Vice President, or
|
|
86
|
-
# Treasurer). This can be an executive, or someone who will have program-wide
|
|
87
|
-
# access to the cards that Lithic will provide. In some cases, this individual
|
|
88
|
-
# could also be a beneficial owner listed above. See
|
|
89
|
-
# [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
|
|
90
|
-
# (Section II) for more background.
|
|
91
|
-
control_person: nil,
|
|
92
|
-
# Short description of the company's line of business (i.e., what does the company
|
|
93
|
-
# do?).
|
|
94
|
-
nature_of_business: nil,
|
|
95
|
-
# Deprecated.
|
|
96
|
-
beneficial_owner_entities: nil,
|
|
97
|
-
# A user provided id that can be used to link an account holder with an external
|
|
98
|
-
# system
|
|
99
|
-
external_id: nil,
|
|
100
|
-
# An RFC 3339 timestamp indicating when precomputed KYB was completed on the
|
|
101
|
-
# business with a pass result.
|
|
102
|
-
#
|
|
103
|
-
# This field is required only if workflow type is `KYB_BYO`.
|
|
104
|
-
kyb_passed_timestamp: nil,
|
|
105
|
-
# 6-digit North American Industry Classification System (NAICS) code for the
|
|
106
|
-
# business.
|
|
107
|
-
naics_code: nil,
|
|
108
|
-
# Company website URL.
|
|
109
|
-
website_url: nil,
|
|
110
|
-
# An RFC 3339 timestamp indicating when precomputed KYC was completed on the
|
|
111
|
-
# individual with a pass result.
|
|
112
|
-
#
|
|
113
|
-
# This field is required only if workflow type is `KYC_BYO`.
|
|
114
|
-
kyc_passed_timestamp: nil,
|
|
115
|
-
# Only applicable for customers using the KYC-Exempt workflow to enroll authorized
|
|
116
|
-
# users of businesses. Pass the account_token of the enrolled business associated
|
|
117
|
-
# with the AUTHORIZED_USER in this field.
|
|
118
|
-
business_account_token: nil,
|
|
119
|
-
request_options: {}
|
|
120
|
-
)
|
|
29
|
+
def create(body:, request_options: {})
|
|
121
30
|
end
|
|
122
31
|
|
|
123
32
|
# Get an Individual or Business Account Holder and/or their KYC or KYB evaluation
|
|
@@ -148,90 +57,20 @@ module Lithic
|
|
|
148
57
|
sig do
|
|
149
58
|
params(
|
|
150
59
|
account_holder_token: String,
|
|
151
|
-
|
|
152
|
-
T
|
|
153
|
-
Lithic::AccountHolderUpdateParams::
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual::OrHash
|
|
158
|
-
],
|
|
159
|
-
business_entity:
|
|
160
|
-
Lithic::AccountHolderUpdateParams::BusinessEntity::OrHash,
|
|
161
|
-
control_person:
|
|
162
|
-
Lithic::AccountHolderUpdateParams::ControlPerson::OrHash,
|
|
163
|
-
external_id: String,
|
|
164
|
-
naics_code: String,
|
|
165
|
-
nature_of_business: String,
|
|
166
|
-
website_url: String,
|
|
167
|
-
individual: Lithic::AccountHolderUpdateParams::Individual::OrHash,
|
|
168
|
-
address: Lithic::AddressUpdate::OrHash,
|
|
169
|
-
business_account_token: String,
|
|
170
|
-
email: String,
|
|
171
|
-
first_name: String,
|
|
172
|
-
last_name: String,
|
|
173
|
-
legal_business_name: String,
|
|
174
|
-
phone_number: String,
|
|
60
|
+
body:
|
|
61
|
+
T.any(
|
|
62
|
+
Lithic::AccountHolderUpdateParams::Body::KYBPatchRequest::OrHash,
|
|
63
|
+
Lithic::AccountHolderUpdateParams::Body::KYCPatchRequest::OrHash,
|
|
64
|
+
Lithic::AccountHolderUpdateParams::Body::PatchRequest::OrHash
|
|
65
|
+
),
|
|
175
66
|
request_options: Lithic::RequestOptions::OrHash
|
|
176
67
|
).returns(Lithic::Models::AccountHolderUpdateResponse::Variants)
|
|
177
68
|
end
|
|
178
69
|
def update(
|
|
179
70
|
# Globally unique identifier for the account holder.
|
|
180
71
|
account_holder_token,
|
|
181
|
-
#
|
|
182
|
-
|
|
183
|
-
# You must submit a list of all direct and indirect individuals with 25% or more
|
|
184
|
-
# ownership in the company. A maximum of 4 beneficial owners can be submitted. If
|
|
185
|
-
# no individual owns 25% of the company you do not need to send beneficial owner
|
|
186
|
-
# information. See
|
|
187
|
-
# [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
|
|
188
|
-
# (Section I) for more background on individuals that should be included.
|
|
189
|
-
beneficial_owner_individuals: nil,
|
|
190
|
-
# Information for business for which the account is being opened and KYB is being
|
|
191
|
-
# run.
|
|
192
|
-
business_entity: nil,
|
|
193
|
-
# An individual with significant responsibility for managing the legal entity
|
|
194
|
-
# (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating
|
|
195
|
-
# Officer, Managing Member, General Partner, President, Vice President, or
|
|
196
|
-
# Treasurer). This can be an executive, or someone who will have program-wide
|
|
197
|
-
# access to the cards that Lithic will provide. In some cases, this individual
|
|
198
|
-
# could also be a beneficial owner listed above. See
|
|
199
|
-
# [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
|
|
200
|
-
# (Section II) for more background.
|
|
201
|
-
control_person: nil,
|
|
202
|
-
# A user provided id that can be used to link an account holder with an external
|
|
203
|
-
# system
|
|
204
|
-
external_id: nil,
|
|
205
|
-
# 6-digit North American Industry Classification System (NAICS) code for the
|
|
206
|
-
# business.
|
|
207
|
-
naics_code: nil,
|
|
208
|
-
# Short description of the company's line of business (i.e., what does the company
|
|
209
|
-
# do?).
|
|
210
|
-
nature_of_business: nil,
|
|
211
|
-
# Company website URL.
|
|
212
|
-
website_url: nil,
|
|
213
|
-
# Information on the individual for whom the account is being opened and KYC is
|
|
214
|
-
# being run.
|
|
215
|
-
individual: nil,
|
|
216
|
-
# Allowed for: KYC-Exempt, BYO-KYC, BYO-KYB.
|
|
217
|
-
address: nil,
|
|
218
|
-
# Allowed for: KYC-Exempt, BYO-KYC. The token of the business account to which the
|
|
219
|
-
# account holder is associated.
|
|
220
|
-
business_account_token: nil,
|
|
221
|
-
# Allowed for all Account Holders. Account holder's email address. The primary
|
|
222
|
-
# purpose of this field is for cardholder identification and verification during
|
|
223
|
-
# the digital wallet tokenization process.
|
|
224
|
-
email: nil,
|
|
225
|
-
# Allowed for KYC-Exempt, BYO-KYC. Account holder's first name.
|
|
226
|
-
first_name: nil,
|
|
227
|
-
# Allowed for KYC-Exempt, BYO-KYC. Account holder's last name.
|
|
228
|
-
last_name: nil,
|
|
229
|
-
# Allowed for BYO-KYB. Legal business name of the account holder.
|
|
230
|
-
legal_business_name: nil,
|
|
231
|
-
# Allowed for all Account Holders. Account holder's phone number, entered in E.164
|
|
232
|
-
# format. The primary purpose of this field is for cardholder identification and
|
|
233
|
-
# verification during the digital wallet tokenization process.
|
|
234
|
-
phone_number: nil,
|
|
72
|
+
# The KYB request payload for updating a business.
|
|
73
|
+
body:,
|
|
235
74
|
request_options: {}
|
|
236
75
|
)
|
|
237
76
|
end
|
|
@@ -10,58 +10,16 @@ module Lithic
|
|
|
10
10
|
# Creates a new V2 Auth rule in draft mode
|
|
11
11
|
sig do
|
|
12
12
|
params(
|
|
13
|
-
|
|
13
|
+
body:
|
|
14
14
|
T.any(
|
|
15
|
-
Lithic::AuthRules::
|
|
16
|
-
Lithic::AuthRules::
|
|
17
|
-
Lithic::AuthRules::
|
|
18
|
-
Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
|
|
19
|
-
Lithic::AuthRules::ConditionalAuthorizationActionParameters::OrHash,
|
|
20
|
-
Lithic::AuthRules::ConditionalACHActionParameters::OrHash,
|
|
21
|
-
Lithic::AuthRules::ConditionalTokenizationActionParameters::OrHash
|
|
15
|
+
Lithic::AuthRules::V2CreateParams::Body::AccountLevelRule::OrHash,
|
|
16
|
+
Lithic::AuthRules::V2CreateParams::Body::CardLevelRule::OrHash,
|
|
17
|
+
Lithic::AuthRules::V2CreateParams::Body::ProgramLevelRule::OrHash
|
|
22
18
|
),
|
|
23
|
-
type: Lithic::AuthRules::V2CreateParams::Type::OrSymbol,
|
|
24
|
-
card_tokens: T::Array[String],
|
|
25
|
-
program_level: T::Boolean,
|
|
26
|
-
account_tokens: T::Array[String],
|
|
27
|
-
business_account_tokens: T::Array[String],
|
|
28
|
-
event_stream: Lithic::AuthRules::EventStream::OrSymbol,
|
|
29
|
-
name: T.nilable(String),
|
|
30
|
-
excluded_card_tokens: T::Array[String],
|
|
31
19
|
request_options: Lithic::RequestOptions::OrHash
|
|
32
20
|
).returns(Lithic::AuthRules::AuthRule)
|
|
33
21
|
end
|
|
34
|
-
def create(
|
|
35
|
-
# Parameters for the Auth Rule
|
|
36
|
-
parameters:,
|
|
37
|
-
# The type of Auth Rule. For certain rule types, this determines the event stream
|
|
38
|
-
# during which it will be evaluated. For rules that can be applied to one of
|
|
39
|
-
# several event streams, the effective one is defined by the separate
|
|
40
|
-
# `event_stream` field.
|
|
41
|
-
#
|
|
42
|
-
# - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
|
|
43
|
-
# AUTHORIZATION event stream.
|
|
44
|
-
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
45
|
-
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
46
|
-
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
47
|
-
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
48
|
-
type:,
|
|
49
|
-
# Card tokens to which the Auth Rule applies.
|
|
50
|
-
card_tokens:,
|
|
51
|
-
# Whether the Auth Rule applies to all authorizations on the card program.
|
|
52
|
-
program_level:,
|
|
53
|
-
# Account tokens to which the Auth Rule applies.
|
|
54
|
-
account_tokens: nil,
|
|
55
|
-
# Business Account tokens to which the Auth Rule applies.
|
|
56
|
-
business_account_tokens: nil,
|
|
57
|
-
# The event stream during which the rule will be evaluated.
|
|
58
|
-
event_stream: nil,
|
|
59
|
-
# Auth Rule Name
|
|
60
|
-
name: nil,
|
|
61
|
-
# Card tokens to which the Auth Rule does not apply.
|
|
62
|
-
excluded_card_tokens: nil,
|
|
63
|
-
request_options: {}
|
|
64
|
-
)
|
|
22
|
+
def create(body:, request_options: {})
|
|
65
23
|
end
|
|
66
24
|
|
|
67
25
|
# Fetches a V2 Auth rule by its token
|
|
@@ -82,38 +40,16 @@ module Lithic
|
|
|
82
40
|
sig do
|
|
83
41
|
params(
|
|
84
42
|
auth_rule_token: String,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
program_level: T::Boolean,
|
|
43
|
+
body:
|
|
44
|
+
T.any(
|
|
45
|
+
Lithic::AuthRules::V2UpdateParams::Body::AccountLevelRule::OrHash,
|
|
46
|
+
Lithic::AuthRules::V2UpdateParams::Body::CardLevelRule::OrHash,
|
|
47
|
+
Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule::OrHash
|
|
48
|
+
),
|
|
92
49
|
request_options: Lithic::RequestOptions::OrHash
|
|
93
50
|
).returns(Lithic::AuthRules::AuthRule)
|
|
94
51
|
end
|
|
95
|
-
def update(
|
|
96
|
-
auth_rule_token,
|
|
97
|
-
# Account tokens to which the Auth Rule applies.
|
|
98
|
-
account_tokens: nil,
|
|
99
|
-
# Business Account tokens to which the Auth Rule applies.
|
|
100
|
-
business_account_tokens: nil,
|
|
101
|
-
# Auth Rule Name
|
|
102
|
-
name: nil,
|
|
103
|
-
# The desired state of the Auth Rule.
|
|
104
|
-
#
|
|
105
|
-
# Note that only deactivating an Auth Rule through this endpoint is supported at
|
|
106
|
-
# this time. If you need to (re-)activate an Auth Rule the /promote endpoint
|
|
107
|
-
# should be used to promote a draft to the currently active version.
|
|
108
|
-
state: nil,
|
|
109
|
-
# Card tokens to which the Auth Rule applies.
|
|
110
|
-
card_tokens: nil,
|
|
111
|
-
# Card tokens to which the Auth Rule does not apply.
|
|
112
|
-
excluded_card_tokens: nil,
|
|
113
|
-
# Whether the Auth Rule applies to all authorizations on the card program.
|
|
114
|
-
program_level: nil,
|
|
115
|
-
request_options: {}
|
|
116
|
-
)
|
|
52
|
+
def update(auth_rule_token, body:, request_options: {})
|
|
117
53
|
end
|
|
118
54
|
|
|
119
55
|
# Lists V2 Auth rules
|
|
@@ -209,6 +145,8 @@ module Lithic
|
|
|
209
145
|
sig do
|
|
210
146
|
params(
|
|
211
147
|
auth_rule_token: String,
|
|
148
|
+
begin_: Time,
|
|
149
|
+
end_: Time,
|
|
212
150
|
ending_before: String,
|
|
213
151
|
event_token: String,
|
|
214
152
|
has_actions: T::Boolean,
|
|
@@ -224,6 +162,12 @@ module Lithic
|
|
|
224
162
|
def list_results(
|
|
225
163
|
# Filter by Auth Rule token
|
|
226
164
|
auth_rule_token: nil,
|
|
165
|
+
# Date string in RFC 3339 format. Only events evaluated after the specified time
|
|
166
|
+
# will be included. UTC time zone.
|
|
167
|
+
begin_: nil,
|
|
168
|
+
# Date string in RFC 3339 format. Only events evaluated before the specified time
|
|
169
|
+
# will be included. UTC time zone.
|
|
170
|
+
end_: nil,
|
|
227
171
|
# A cursor representing an item's token before which a page of results should end.
|
|
228
172
|
# Used to retrieve the previous page of results before this item.
|
|
229
173
|
ending_before: nil,
|
|
@@ -9,67 +9,16 @@ module Lithic
|
|
|
9
9
|
# Creates an external bank account within a program or Lithic account.
|
|
10
10
|
sig do
|
|
11
11
|
params(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
routing_number: String,
|
|
19
|
-
type: Lithic::ExternalBankAccountCreateParams::Type::OrSymbol,
|
|
20
|
-
verification_method:
|
|
21
|
-
Lithic::ExternalBankAccountCreateParams::VerificationMethod::OrSymbol,
|
|
22
|
-
account_token: String,
|
|
23
|
-
address: Lithic::ExternalBankAccountAddress::OrHash,
|
|
24
|
-
company_id: String,
|
|
25
|
-
dob: Date,
|
|
26
|
-
doing_business_as: String,
|
|
27
|
-
name: String,
|
|
28
|
-
user_defined_id: String,
|
|
29
|
-
verification_enforcement: T::Boolean,
|
|
12
|
+
body:
|
|
13
|
+
T.any(
|
|
14
|
+
Lithic::ExternalBankAccountCreateParams::Body::ExternallyVerified::OrHash,
|
|
15
|
+
Lithic::ExternalBankAccountCreateParams::Body::Unverified::OrHash,
|
|
16
|
+
Lithic::ExternalBankAccountCreateParams::Body::BankVerifiedCreateBankAccountAPIRequest::OrHash
|
|
17
|
+
),
|
|
30
18
|
request_options: Lithic::RequestOptions::OrHash
|
|
31
19
|
).returns(Lithic::Models::ExternalBankAccountCreateResponse)
|
|
32
20
|
end
|
|
33
|
-
def create(
|
|
34
|
-
# Account Number
|
|
35
|
-
account_number:,
|
|
36
|
-
# The country that the bank account is located in using ISO 3166-1. We will only
|
|
37
|
-
# accept USA bank accounts e.g., USA
|
|
38
|
-
country:,
|
|
39
|
-
# currency of the external account 3-character alphabetic ISO 4217 code
|
|
40
|
-
currency:,
|
|
41
|
-
# The financial account token of the operating account to fund the micro deposits
|
|
42
|
-
financial_account_token:,
|
|
43
|
-
# Legal Name of the business or individual who owns the external account. This
|
|
44
|
-
# will appear in statements
|
|
45
|
-
owner:,
|
|
46
|
-
# Owner Type
|
|
47
|
-
owner_type:,
|
|
48
|
-
# Routing Number
|
|
49
|
-
routing_number:,
|
|
50
|
-
# Account Type
|
|
51
|
-
type:,
|
|
52
|
-
# Verification Method
|
|
53
|
-
verification_method:,
|
|
54
|
-
# Indicates which Lithic account the external account is associated with. For
|
|
55
|
-
# external accounts that are associated with the program, account_token field
|
|
56
|
-
# returned will be null
|
|
57
|
-
account_token: nil,
|
|
58
|
-
# Address
|
|
59
|
-
address: nil,
|
|
60
|
-
# Optional field that helps identify bank accounts in receipts
|
|
61
|
-
company_id: nil,
|
|
62
|
-
# Date of Birth of the Individual that owns the external bank account
|
|
63
|
-
dob: nil,
|
|
64
|
-
# Doing Business As
|
|
65
|
-
doing_business_as: nil,
|
|
66
|
-
# The nickname for this External Bank Account
|
|
67
|
-
name: nil,
|
|
68
|
-
# User Defined ID
|
|
69
|
-
user_defined_id: nil,
|
|
70
|
-
verification_enforcement: nil,
|
|
71
|
-
request_options: {}
|
|
72
|
-
)
|
|
21
|
+
def create(body:, request_options: {})
|
|
73
22
|
end
|
|
74
23
|
|
|
75
24
|
# Get the external bank account by token.
|
|
@@ -14,6 +14,7 @@ module Lithic
|
|
|
14
14
|
Lithic::PaymentCreateParams::MethodAttributes::OrHash,
|
|
15
15
|
type: Lithic::PaymentCreateParams::Type::OrSymbol,
|
|
16
16
|
token: String,
|
|
17
|
+
hold: Lithic::PaymentCreateParams::Hold::OrHash,
|
|
17
18
|
memo: String,
|
|
18
19
|
user_defined_id: String,
|
|
19
20
|
request_options: Lithic::RequestOptions::OrHash
|
|
@@ -29,6 +30,8 @@ module Lithic
|
|
|
29
30
|
# Customer-provided token that will serve as an idempotency token. This token will
|
|
30
31
|
# become the transaction token.
|
|
31
32
|
token: nil,
|
|
33
|
+
# Optional hold to settle when this payment is initiated.
|
|
34
|
+
hold: nil,
|
|
32
35
|
memo: nil,
|
|
33
36
|
user_defined_id: nil,
|
|
34
37
|
request_options: {}
|
|
@@ -106,6 +106,16 @@ module Lithic
|
|
|
106
106
|
JSON_CONTENT: Regexp
|
|
107
107
|
JSONL_CONTENT: Regexp
|
|
108
108
|
|
|
109
|
+
def encode_query_params: (
|
|
110
|
+
::Hash[Symbol, top] query
|
|
111
|
+
) -> ::Hash[Symbol, top]
|
|
112
|
+
|
|
113
|
+
private def write_query_param_element!: (
|
|
114
|
+
::Hash[Symbol, top] collection,
|
|
115
|
+
String key,
|
|
116
|
+
top element
|
|
117
|
+
) -> nil
|
|
118
|
+
|
|
109
119
|
def self?.write_multipart_content: (
|
|
110
120
|
Enumerator::Yielder y,
|
|
111
121
|
val: top,
|
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
module Lithic
|
|
2
2
|
module Models
|
|
3
3
|
type account_activity_retrieve_transaction_params =
|
|
4
|
-
{
|
|
4
|
+
{ transaction_token: String } & Lithic::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
6
|
class AccountActivityRetrieveTransactionParams < Lithic::Internal::Type::BaseModel
|
|
7
7
|
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Lithic::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
attr_accessor transaction_token: String
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def initialize: (
|
|
13
|
+
transaction_token: String,
|
|
14
|
+
?request_options: Lithic::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
transaction_token: String,
|
|
19
|
+
request_options: Lithic::RequestOptions
|
|
20
|
+
}
|
|
13
21
|
end
|
|
14
22
|
end
|
|
15
23
|
end
|