lithic 0.5.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 +42 -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/account_holder_entity.rb +183 -0
- data/lib/lithic/models/account_holders/entity_create_params.rb +166 -0
- data/lib/lithic/models/account_holders/entity_create_response.rb +113 -0
- data/lib/lithic/models/account_holders/entity_delete_params.rb +28 -0
- data/lib/lithic/models/account_retrieve_params.rb +7 -1
- data/lib/lithic/models/account_retrieve_spend_limits_params.rb +7 -1
- data/lib/lithic/models/account_update_params.rb +8 -1
- data/lib/lithic/models/auth_rules/auth_rule.rb +6 -2
- 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_block_parameters.rb +3 -0
- 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 -110
- data/lib/lithic/models/auth_rules/v2_delete_params.rb +7 -1
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +9 -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/digital_wallet_tokenization_approval_request_webhook_event.rb +9 -9
- 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.rb +1 -0
- data/lib/lithic/models/financial_account_register_account_number_params.rb +7 -1
- data/lib/lithic/models/financial_account_retrieve_params.rb +7 -1
- data/lib/lithic/models/financial_account_update_params.rb +7 -1
- data/lib/lithic/models/financial_account_update_status_params.rb +9 -1
- data/lib/lithic/models/financial_accounts/balance_list_params.rb +8 -1
- data/lib/lithic/models/financial_accounts/category_tier.rb +28 -0
- data/lib/lithic/models/financial_accounts/credit_configuration_retrieve_params.rb +7 -1
- data/lib/lithic/models/financial_accounts/credit_configuration_update_params.rb +8 -1
- data/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb +8 -1
- data/lib/lithic/models/financial_accounts/financial_transaction_retrieve_params.rb +7 -1
- data/lib/lithic/models/financial_accounts/interest_tier_schedule.rb +50 -0
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_create_params.rb +22 -0
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rb +28 -0
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_list_params.rb +47 -0
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rb +28 -0
- data/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb +51 -0
- data/lib/lithic/models/financial_accounts/loan_tape.rb +1 -0
- data/lib/lithic/models/financial_accounts/loan_tape_configuration.rb +63 -0
- data/lib/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rb +24 -0
- data/lib/lithic/models/financial_accounts/loan_tape_list_params.rb +9 -1
- data/lib/lithic/models/financial_accounts/loan_tape_rebuild_configuration.rb +36 -0
- data/lib/lithic/models/financial_accounts/loan_tape_retrieve_params.rb +9 -1
- data/lib/lithic/models/financial_accounts/statement.rb +1 -0
- 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/{digital_wallet_token_metadata.rb → token_metadata.rb} +18 -19
- data/lib/lithic/models/tokenization_activate_params.rb +7 -1
- data/lib/lithic/models/tokenization_approval_request_webhook_event.rb +9 -9
- data/lib/lithic/models/tokenization_deactivate_params.rb +7 -1
- data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +9 -9
- data/lib/lithic/models/tokenization_pause_params.rb +7 -1
- data/lib/lithic/models/tokenization_resend_activation_code_params.rb +8 -1
- data/lib/lithic/models/tokenization_retrieve_params.rb +7 -1
- data/lib/lithic/models/tokenization_unpause_params.rb +7 -1
- data/lib/lithic/models/tokenization_update_digital_card_art_params.rb +8 -1
- data/lib/lithic/models/transaction_expire_authorization_params.rb +7 -1
- data/lib/lithic/models/transaction_retrieve_params.rb +7 -1
- data/lib/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rb +7 -1
- data/lib/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rb +7 -1
- data/lib/lithic/models.rb +4 -2
- data/lib/lithic/resources/account_activity.rb +2 -1
- data/lib/lithic/resources/account_holders/entities.rb +89 -0
- data/lib/lithic/resources/account_holders.rb +13 -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 +206 -0
- data/lib/lithic/resources/financial_accounts/loan_tape_configuration.rb +36 -0
- 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 +11 -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 +20 -2
- 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/account_holder_entity.rbi +296 -0
- data/rbi/lithic/models/account_holders/entity_create_params.rbi +248 -0
- data/rbi/lithic/models/account_holders/entity_create_response.rbi +292 -0
- data/rbi/lithic/models/account_holders/entity_delete_params.rbi +48 -0
- data/rbi/lithic/models/account_retrieve_params.rbi +13 -5
- data/rbi/lithic/models/account_retrieve_spend_limits_params.rbi +13 -5
- data/rbi/lithic/models/account_update_params.rbi +6 -0
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +6 -3
- 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_block_parameters.rbi +1 -0
- 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 -178
- 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/digital_wallet_tokenization_approval_request_webhook_event.rbi +15 -17
- 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.rbi +5 -0
- data/rbi/lithic/models/financial_account_register_account_number_params.rbi +14 -2
- data/rbi/lithic/models/financial_account_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/financial_account_update_params.rbi +10 -2
- data/rbi/lithic/models/financial_account_update_status_params.rbi +11 -0
- data/rbi/lithic/models/financial_accounts/balance_list_params.rbi +6 -0
- data/rbi/lithic/models/financial_accounts/category_tier.rbi +45 -0
- data/rbi/lithic/models/financial_accounts/credit_configuration_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/financial_accounts/credit_configuration_update_params.rbi +6 -0
- data/rbi/lithic/models/financial_accounts/financial_transaction_list_params.rbi +6 -0
- data/rbi/lithic/models/financial_accounts/financial_transaction_retrieve_params.rbi +10 -1
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule.rbi +75 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbi +43 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbi +52 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbi +79 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbi +52 -0
- data/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi +76 -0
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +5 -0
- data/rbi/lithic/models/financial_accounts/loan_tape_configuration.rbi +99 -0
- data/rbi/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbi +48 -0
- data/rbi/lithic/models/financial_accounts/loan_tape_list_params.rbi +8 -0
- data/rbi/lithic/models/financial_accounts/loan_tape_rebuild_configuration.rbi +65 -0
- data/rbi/lithic/models/financial_accounts/loan_tape_retrieve_params.rbi +8 -0
- data/rbi/lithic/models/financial_accounts/statement.rbi +5 -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/{digital_wallet_token_metadata.rbi → token_metadata.rbi} +34 -41
- data/rbi/lithic/models/tokenization_activate_params.rbi +16 -5
- data/rbi/lithic/models/tokenization_approval_request_webhook_event.rbi +11 -17
- data/rbi/lithic/models/tokenization_deactivate_params.rbi +16 -5
- data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +15 -17
- data/rbi/lithic/models/tokenization_pause_params.rbi +16 -5
- data/rbi/lithic/models/tokenization_resend_activation_code_params.rbi +6 -0
- data/rbi/lithic/models/tokenization_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/tokenization_unpause_params.rbi +16 -5
- data/rbi/lithic/models/tokenization_update_digital_card_art_params.rbi +6 -0
- data/rbi/lithic/models/transaction_expire_authorization_params.rbi +13 -5
- data/rbi/lithic/models/transaction_retrieve_params.rbi +13 -5
- data/rbi/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rbi +16 -5
- data/rbi/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rbi +13 -5
- data/rbi/lithic/models.rbi +4 -2
- data/rbi/lithic/resources/account_holders/entities.rbi +80 -0
- data/rbi/lithic/resources/account_holders.rbi +19 -177
- data/rbi/lithic/resources/auth_rules/v2.rbi +20 -75
- data/rbi/lithic/resources/external_bank_accounts.rbi +7 -58
- data/rbi/lithic/resources/financial_accounts/interest_tier_schedule.rbi +156 -0
- data/rbi/lithic/resources/financial_accounts/loan_tape_configuration.rbi +30 -0
- data/rbi/lithic/resources/financial_accounts.rbi +10 -0
- 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/account_holder_entity.rbs +137 -0
- data/sig/lithic/models/account_holders/entity_create_params.rbs +123 -0
- data/sig/lithic/models/account_holders/entity_create_response.rbs +117 -0
- data/sig/lithic/models/account_holders/entity_delete_params.rbs +30 -0
- 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/digital_wallet_tokenization_approval_request_webhook_event.rbs +5 -9
- 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.rbs +2 -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 +7 -0
- data/sig/lithic/models/financial_accounts/balance_list_params.rbs +9 -1
- data/sig/lithic/models/financial_accounts/category_tier.rbs +21 -0
- data/sig/lithic/models/financial_accounts/credit_configuration_retrieve_params.rbs +12 -3
- data/sig/lithic/models/financial_accounts/credit_configuration_update_params.rbs +5 -0
- data/sig/lithic/models/financial_accounts/financial_transaction_list_params.rbs +5 -0
- data/sig/lithic/models/financial_accounts/financial_transaction_retrieve_params.rbs +5 -1
- data/sig/lithic/models/financial_accounts/interest_tier_schedule.rbs +41 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbs +28 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbs +30 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbs +49 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbs +30 -0
- data/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs +47 -0
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +2 -0
- data/sig/lithic/models/financial_accounts/loan_tape_configuration.rbs +60 -0
- data/sig/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbs +26 -0
- data/sig/lithic/models/financial_accounts/loan_tape_list_params.rbs +5 -0
- data/sig/lithic/models/financial_accounts/loan_tape_rebuild_configuration.rbs +32 -0
- data/sig/lithic/models/financial_accounts/loan_tape_retrieve_params.rbs +5 -1
- data/sig/lithic/models/financial_accounts/statement.rbs +2 -0
- 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/{digital_wallet_token_metadata.rbs → token_metadata.rbs} +19 -17
- data/sig/lithic/models/tokenization_activate_params.rbs +12 -3
- data/sig/lithic/models/tokenization_approval_request_webhook_event.rbs +5 -9
- data/sig/lithic/models/tokenization_deactivate_params.rbs +12 -3
- data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +5 -9
- data/sig/lithic/models/tokenization_pause_params.rbs +12 -3
- data/sig/lithic/models/tokenization_resend_activation_code_params.rbs +5 -0
- data/sig/lithic/models/tokenization_retrieve_params.rbs +12 -3
- data/sig/lithic/models/tokenization_unpause_params.rbs +12 -3
- data/sig/lithic/models/tokenization_update_digital_card_art_params.rbs +5 -1
- data/sig/lithic/models/transaction_expire_authorization_params.rbs +11 -3
- data/sig/lithic/models/transaction_retrieve_params.rbs +11 -3
- data/sig/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rbs +12 -3
- data/sig/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rbs +11 -3
- data/sig/lithic/models.rbs +4 -2
- data/sig/lithic/resources/account_holders/entities.rbs +28 -0
- data/sig/lithic/resources/account_holders.rbs +4 -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/financial_accounts/interest_tier_schedule.rbs +46 -0
- data/sig/lithic/resources/financial_accounts/loan_tape_configuration.rbs +14 -0
- data/sig/lithic/resources/financial_accounts.rbs +4 -0
- data/sig/lithic/resources/payments.rbs +1 -0
- metadata +62 -8
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
module Lithic
|
|
4
4
|
module Resources
|
|
5
5
|
class AccountHolders
|
|
6
|
+
sig { returns(Lithic::Resources::AccountHolders::Entities) }
|
|
7
|
+
attr_reader :entities
|
|
8
|
+
|
|
6
9
|
# Create an account holder and initiate the appropriate onboarding workflow.
|
|
7
10
|
# Account holders and accounts have a 1:1 relationship. When an account holder is
|
|
8
11
|
# successfully created an associated account is also created. All calls to this
|
|
@@ -13,108 +16,17 @@ module Lithic
|
|
|
13
16
|
# that the calling API key manages.
|
|
14
17
|
sig do
|
|
15
18
|
params(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
first_name: String,
|
|
24
|
-
kyc_exemption_type:
|
|
25
|
-
Lithic::AccountHolderCreateParams::KYCExemptionType::OrSymbol,
|
|
26
|
-
last_name: String,
|
|
27
|
-
phone_number: String,
|
|
28
|
-
beneficial_owner_individuals:
|
|
29
|
-
T::Array[
|
|
30
|
-
Lithic::AccountHolderCreateParams::BeneficialOwnerIndividual::OrHash
|
|
31
|
-
],
|
|
32
|
-
control_person:
|
|
33
|
-
Lithic::AccountHolderCreateParams::ControlPerson::OrHash,
|
|
34
|
-
nature_of_business: String,
|
|
35
|
-
beneficial_owner_entities:
|
|
36
|
-
T::Array[
|
|
37
|
-
Lithic::AccountHolderCreateParams::BeneficialOwnerEntity::OrHash
|
|
38
|
-
],
|
|
39
|
-
external_id: String,
|
|
40
|
-
kyb_passed_timestamp: String,
|
|
41
|
-
naics_code: String,
|
|
42
|
-
website_url: String,
|
|
43
|
-
kyc_passed_timestamp: String,
|
|
44
|
-
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
|
+
),
|
|
45
26
|
request_options: Lithic::RequestOptions::OrHash
|
|
46
27
|
).returns(Lithic::Models::AccountHolderCreateResponse)
|
|
47
28
|
end
|
|
48
|
-
def create(
|
|
49
|
-
# Information for business for which the account is being opened.
|
|
50
|
-
business_entity:,
|
|
51
|
-
# An RFC 3339 timestamp indicating when the account holder accepted the applicable
|
|
52
|
-
# legal agreements (e.g., cardholder terms) as agreed upon during API customer's
|
|
53
|
-
# implementation with Lithic.
|
|
54
|
-
tos_timestamp:,
|
|
55
|
-
# Specifies the workflow type. This must be 'KYC_EXEMPT'
|
|
56
|
-
workflow:,
|
|
57
|
-
# Information on individual for whom the account is being opened and KYC is being
|
|
58
|
-
# run.
|
|
59
|
-
individual:,
|
|
60
|
-
# KYC Exempt user's current address - PO boxes, UPS drops, and FedEx drops are not
|
|
61
|
-
# acceptable; APO/FPO are acceptable.
|
|
62
|
-
address:,
|
|
63
|
-
# The KYC Exempt user's email
|
|
64
|
-
email:,
|
|
65
|
-
# The KYC Exempt user's first name
|
|
66
|
-
first_name:,
|
|
67
|
-
# Specifies the type of KYC Exempt user
|
|
68
|
-
kyc_exemption_type:,
|
|
69
|
-
# The KYC Exempt user's last name
|
|
70
|
-
last_name:,
|
|
71
|
-
# The KYC Exempt user's phone number, entered in E.164 format.
|
|
72
|
-
phone_number:,
|
|
73
|
-
# You can submit a list of all direct and indirect individuals with 25% or more
|
|
74
|
-
# ownership in the company. A maximum of 4 beneficial owners can be submitted. If
|
|
75
|
-
# no individual owns 25% of the company you do not need to send beneficial owner
|
|
76
|
-
# information. See
|
|
77
|
-
# [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
|
|
78
|
-
# (Section I) for more background on individuals that should be included.
|
|
79
|
-
beneficial_owner_individuals: nil,
|
|
80
|
-
# An individual with significant responsibility for managing the legal entity
|
|
81
|
-
# (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating
|
|
82
|
-
# Officer, Managing Member, General Partner, President, Vice President, or
|
|
83
|
-
# Treasurer). This can be an executive, or someone who will have program-wide
|
|
84
|
-
# access to the cards that Lithic will provide. In some cases, this individual
|
|
85
|
-
# could also be a beneficial owner listed above. See
|
|
86
|
-
# [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
|
|
87
|
-
# (Section II) for more background.
|
|
88
|
-
control_person: nil,
|
|
89
|
-
# Short description of the company's line of business (i.e., what does the company
|
|
90
|
-
# do?).
|
|
91
|
-
nature_of_business: nil,
|
|
92
|
-
# Deprecated.
|
|
93
|
-
beneficial_owner_entities: nil,
|
|
94
|
-
# A user provided id that can be used to link an account holder with an external
|
|
95
|
-
# system
|
|
96
|
-
external_id: nil,
|
|
97
|
-
# An RFC 3339 timestamp indicating when precomputed KYB was completed on the
|
|
98
|
-
# business with a pass result.
|
|
99
|
-
#
|
|
100
|
-
# This field is required only if workflow type is `KYB_BYO`.
|
|
101
|
-
kyb_passed_timestamp: nil,
|
|
102
|
-
# 6-digit North American Industry Classification System (NAICS) code for the
|
|
103
|
-
# business.
|
|
104
|
-
naics_code: nil,
|
|
105
|
-
# Company website URL.
|
|
106
|
-
website_url: nil,
|
|
107
|
-
# An RFC 3339 timestamp indicating when precomputed KYC was completed on the
|
|
108
|
-
# individual with a pass result.
|
|
109
|
-
#
|
|
110
|
-
# This field is required only if workflow type is `KYC_BYO`.
|
|
111
|
-
kyc_passed_timestamp: nil,
|
|
112
|
-
# Only applicable for customers using the KYC-Exempt workflow to enroll authorized
|
|
113
|
-
# users of businesses. Pass the account_token of the enrolled business associated
|
|
114
|
-
# with the AUTHORIZED_USER in this field.
|
|
115
|
-
business_account_token: nil,
|
|
116
|
-
request_options: {}
|
|
117
|
-
)
|
|
29
|
+
def create(body:, request_options: {})
|
|
118
30
|
end
|
|
119
31
|
|
|
120
32
|
# Get an Individual or Business Account Holder and/or their KYC or KYB evaluation
|
|
@@ -145,90 +57,20 @@ module Lithic
|
|
|
145
57
|
sig do
|
|
146
58
|
params(
|
|
147
59
|
account_holder_token: String,
|
|
148
|
-
|
|
149
|
-
T
|
|
150
|
-
Lithic::AccountHolderUpdateParams::
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
Lithic::AccountHolderUpdateParams::BeneficialOwnerIndividual::OrHash
|
|
155
|
-
],
|
|
156
|
-
business_entity:
|
|
157
|
-
Lithic::AccountHolderUpdateParams::BusinessEntity::OrHash,
|
|
158
|
-
control_person:
|
|
159
|
-
Lithic::AccountHolderUpdateParams::ControlPerson::OrHash,
|
|
160
|
-
external_id: String,
|
|
161
|
-
naics_code: String,
|
|
162
|
-
nature_of_business: String,
|
|
163
|
-
website_url: String,
|
|
164
|
-
individual: Lithic::AccountHolderUpdateParams::Individual::OrHash,
|
|
165
|
-
address: Lithic::AddressUpdate::OrHash,
|
|
166
|
-
business_account_token: String,
|
|
167
|
-
email: String,
|
|
168
|
-
first_name: String,
|
|
169
|
-
last_name: String,
|
|
170
|
-
legal_business_name: String,
|
|
171
|
-
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
|
+
),
|
|
172
66
|
request_options: Lithic::RequestOptions::OrHash
|
|
173
67
|
).returns(Lithic::Models::AccountHolderUpdateResponse::Variants)
|
|
174
68
|
end
|
|
175
69
|
def update(
|
|
176
70
|
# Globally unique identifier for the account holder.
|
|
177
71
|
account_holder_token,
|
|
178
|
-
#
|
|
179
|
-
|
|
180
|
-
# You must submit a list of all direct and indirect individuals with 25% or more
|
|
181
|
-
# ownership in the company. A maximum of 4 beneficial owners can be submitted. If
|
|
182
|
-
# no individual owns 25% of the company you do not need to send beneficial owner
|
|
183
|
-
# information. See
|
|
184
|
-
# [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
|
|
185
|
-
# (Section I) for more background on individuals that should be included.
|
|
186
|
-
beneficial_owner_individuals: nil,
|
|
187
|
-
# Information for business for which the account is being opened and KYB is being
|
|
188
|
-
# run.
|
|
189
|
-
business_entity: nil,
|
|
190
|
-
# An individual with significant responsibility for managing the legal entity
|
|
191
|
-
# (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating
|
|
192
|
-
# Officer, Managing Member, General Partner, President, Vice President, or
|
|
193
|
-
# Treasurer). This can be an executive, or someone who will have program-wide
|
|
194
|
-
# access to the cards that Lithic will provide. In some cases, this individual
|
|
195
|
-
# could also be a beneficial owner listed above. See
|
|
196
|
-
# [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
|
|
197
|
-
# (Section II) for more background.
|
|
198
|
-
control_person: nil,
|
|
199
|
-
# A user provided id that can be used to link an account holder with an external
|
|
200
|
-
# system
|
|
201
|
-
external_id: nil,
|
|
202
|
-
# 6-digit North American Industry Classification System (NAICS) code for the
|
|
203
|
-
# business.
|
|
204
|
-
naics_code: nil,
|
|
205
|
-
# Short description of the company's line of business (i.e., what does the company
|
|
206
|
-
# do?).
|
|
207
|
-
nature_of_business: nil,
|
|
208
|
-
# Company website URL.
|
|
209
|
-
website_url: nil,
|
|
210
|
-
# Information on the individual for whom the account is being opened and KYC is
|
|
211
|
-
# being run.
|
|
212
|
-
individual: nil,
|
|
213
|
-
# Allowed for: KYC-Exempt, BYO-KYC, BYO-KYB.
|
|
214
|
-
address: nil,
|
|
215
|
-
# Allowed for: KYC-Exempt, BYO-KYC. The token of the business account to which the
|
|
216
|
-
# account holder is associated.
|
|
217
|
-
business_account_token: nil,
|
|
218
|
-
# Allowed for all Account Holders. Account holder's email address. The primary
|
|
219
|
-
# purpose of this field is for cardholder identification and verification during
|
|
220
|
-
# the digital wallet tokenization process.
|
|
221
|
-
email: nil,
|
|
222
|
-
# Allowed for KYC-Exempt, BYO-KYC. Account holder's first name.
|
|
223
|
-
first_name: nil,
|
|
224
|
-
# Allowed for KYC-Exempt, BYO-KYC. Account holder's last name.
|
|
225
|
-
last_name: nil,
|
|
226
|
-
# Allowed for BYO-KYB. Legal business name of the account holder.
|
|
227
|
-
legal_business_name: nil,
|
|
228
|
-
# Allowed for all Account Holders. Account holder's phone number, entered in E.164
|
|
229
|
-
# format. The primary purpose of this field is for cardholder identification and
|
|
230
|
-
# verification during the digital wallet tokenization process.
|
|
231
|
-
phone_number: nil,
|
|
72
|
+
# The KYB request payload for updating a business.
|
|
73
|
+
body:,
|
|
232
74
|
request_options: {}
|
|
233
75
|
)
|
|
234
76
|
end
|
|
@@ -10,57 +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`: AUTHORIZATION event stream.
|
|
43
|
-
# - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
|
|
44
|
-
# - `MERCHANT_LOCK`: AUTHORIZATION event stream.
|
|
45
|
-
# - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
|
|
46
|
-
# ACH_CREDIT_RECEIPT, or ACH_DEBIT_RECEIPT event stream.
|
|
47
|
-
type:,
|
|
48
|
-
# Card tokens to which the Auth Rule applies.
|
|
49
|
-
card_tokens:,
|
|
50
|
-
# Whether the Auth Rule applies to all authorizations on the card program.
|
|
51
|
-
program_level:,
|
|
52
|
-
# Account tokens to which the Auth Rule applies.
|
|
53
|
-
account_tokens: nil,
|
|
54
|
-
# Business Account tokens to which the Auth Rule applies.
|
|
55
|
-
business_account_tokens: nil,
|
|
56
|
-
# The event stream during which the rule will be evaluated.
|
|
57
|
-
event_stream: nil,
|
|
58
|
-
# Auth Rule Name
|
|
59
|
-
name: nil,
|
|
60
|
-
# Card tokens to which the Auth Rule does not apply.
|
|
61
|
-
excluded_card_tokens: nil,
|
|
62
|
-
request_options: {}
|
|
63
|
-
)
|
|
22
|
+
def create(body:, request_options: {})
|
|
64
23
|
end
|
|
65
24
|
|
|
66
25
|
# Fetches a V2 Auth rule by its token
|
|
@@ -81,38 +40,16 @@ module Lithic
|
|
|
81
40
|
sig do
|
|
82
41
|
params(
|
|
83
42
|
auth_rule_token: String,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
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
|
+
),
|
|
91
49
|
request_options: Lithic::RequestOptions::OrHash
|
|
92
50
|
).returns(Lithic::AuthRules::AuthRule)
|
|
93
51
|
end
|
|
94
|
-
def update(
|
|
95
|
-
auth_rule_token,
|
|
96
|
-
# Account tokens to which the Auth Rule applies.
|
|
97
|
-
account_tokens: nil,
|
|
98
|
-
# Business Account tokens to which the Auth Rule applies.
|
|
99
|
-
business_account_tokens: nil,
|
|
100
|
-
# Auth Rule Name
|
|
101
|
-
name: nil,
|
|
102
|
-
# The desired state of the Auth Rule.
|
|
103
|
-
#
|
|
104
|
-
# Note that only deactivating an Auth Rule through this endpoint is supported at
|
|
105
|
-
# this time. If you need to (re-)activate an Auth Rule the /promote endpoint
|
|
106
|
-
# should be used to promote a draft to the currently active version.
|
|
107
|
-
state: nil,
|
|
108
|
-
# Card tokens to which the Auth Rule applies.
|
|
109
|
-
card_tokens: nil,
|
|
110
|
-
# Card tokens to which the Auth Rule does not apply.
|
|
111
|
-
excluded_card_tokens: nil,
|
|
112
|
-
# Whether the Auth Rule applies to all authorizations on the card program.
|
|
113
|
-
program_level: nil,
|
|
114
|
-
request_options: {}
|
|
115
|
-
)
|
|
52
|
+
def update(auth_rule_token, body:, request_options: {})
|
|
116
53
|
end
|
|
117
54
|
|
|
118
55
|
# Lists V2 Auth rules
|
|
@@ -208,6 +145,8 @@ module Lithic
|
|
|
208
145
|
sig do
|
|
209
146
|
params(
|
|
210
147
|
auth_rule_token: String,
|
|
148
|
+
begin_: Time,
|
|
149
|
+
end_: Time,
|
|
211
150
|
ending_before: String,
|
|
212
151
|
event_token: String,
|
|
213
152
|
has_actions: T::Boolean,
|
|
@@ -223,6 +162,12 @@ module Lithic
|
|
|
223
162
|
def list_results(
|
|
224
163
|
# Filter by Auth Rule token
|
|
225
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,
|
|
226
171
|
# A cursor representing an item's token before which a page of results should end.
|
|
227
172
|
# Used to retrieve the previous page of results before this item.
|
|
228
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.
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Resources
|
|
5
|
+
class FinancialAccounts
|
|
6
|
+
class InterestTierSchedule
|
|
7
|
+
# Create a new interest tier schedule entry for a supported financial account
|
|
8
|
+
sig do
|
|
9
|
+
params(
|
|
10
|
+
financial_account_token: String,
|
|
11
|
+
credit_product_token: String,
|
|
12
|
+
effective_date: Date,
|
|
13
|
+
tier_name: String,
|
|
14
|
+
tier_rates: T.anything,
|
|
15
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
16
|
+
).returns(
|
|
17
|
+
Lithic::FinancialAccounts::FinancialAccountsInterestTierSchedule
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
def create(
|
|
21
|
+
# Globally unique identifier for financial account
|
|
22
|
+
financial_account_token,
|
|
23
|
+
# Globally unique identifier for a credit product
|
|
24
|
+
credit_product_token:,
|
|
25
|
+
# Date the tier should be effective in YYYY-MM-DD format
|
|
26
|
+
effective_date:,
|
|
27
|
+
# Name of a tier contained in the credit product. Mutually exclusive with
|
|
28
|
+
# tier_rates
|
|
29
|
+
tier_name: nil,
|
|
30
|
+
# Custom rates per category. Mutually exclusive with tier_name
|
|
31
|
+
tier_rates: nil,
|
|
32
|
+
request_options: {}
|
|
33
|
+
)
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Get a specific interest tier schedule by effective date
|
|
37
|
+
sig do
|
|
38
|
+
params(
|
|
39
|
+
effective_date: Date,
|
|
40
|
+
financial_account_token: String,
|
|
41
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
42
|
+
).returns(
|
|
43
|
+
Lithic::FinancialAccounts::FinancialAccountsInterestTierSchedule
|
|
44
|
+
)
|
|
45
|
+
end
|
|
46
|
+
def retrieve(
|
|
47
|
+
# Effective date in ISO format (YYYY-MM-DD)
|
|
48
|
+
effective_date,
|
|
49
|
+
# Globally unique identifier for financial account
|
|
50
|
+
financial_account_token:,
|
|
51
|
+
request_options: {}
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Update an existing interest tier schedule
|
|
56
|
+
sig do
|
|
57
|
+
params(
|
|
58
|
+
effective_date: Date,
|
|
59
|
+
financial_account_token: String,
|
|
60
|
+
tier_name: String,
|
|
61
|
+
tier_rates: T.anything,
|
|
62
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
63
|
+
).returns(
|
|
64
|
+
Lithic::FinancialAccounts::FinancialAccountsInterestTierSchedule
|
|
65
|
+
)
|
|
66
|
+
end
|
|
67
|
+
def update(
|
|
68
|
+
# Path param: Effective date in ISO format (YYYY-MM-DD)
|
|
69
|
+
effective_date,
|
|
70
|
+
# Path param: Globally unique identifier for financial account
|
|
71
|
+
financial_account_token:,
|
|
72
|
+
# Body param: Name of a tier contained in the credit product. Mutually exclusive
|
|
73
|
+
# with tier_rates
|
|
74
|
+
tier_name: nil,
|
|
75
|
+
# Body param: Custom rates per category. Mutually exclusive with tier_name
|
|
76
|
+
tier_rates: nil,
|
|
77
|
+
request_options: {}
|
|
78
|
+
)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# List interest tier schedules for a financial account with optional date
|
|
82
|
+
# filtering.
|
|
83
|
+
#
|
|
84
|
+
# If no date parameters are provided, returns all tier schedules. If date
|
|
85
|
+
# parameters are provided, uses filtering to return matching schedules (max 100).
|
|
86
|
+
#
|
|
87
|
+
# - for_date: Returns exact match (takes precedence over other dates)
|
|
88
|
+
# - before_date: Returns schedules with effective_date <= before_date
|
|
89
|
+
# - after_date: Returns schedules with effective_date >= after_date
|
|
90
|
+
# - Both before_date and after_date: Returns schedules in range
|
|
91
|
+
sig do
|
|
92
|
+
params(
|
|
93
|
+
financial_account_token: String,
|
|
94
|
+
after_date: Date,
|
|
95
|
+
before_date: Date,
|
|
96
|
+
for_date: Date,
|
|
97
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
98
|
+
).returns(
|
|
99
|
+
Lithic::Internal::SinglePage[
|
|
100
|
+
Lithic::FinancialAccounts::FinancialAccountsInterestTierSchedule
|
|
101
|
+
]
|
|
102
|
+
)
|
|
103
|
+
end
|
|
104
|
+
def list(
|
|
105
|
+
# Globally unique identifier for financial account
|
|
106
|
+
financial_account_token,
|
|
107
|
+
# Return schedules with effective_date >= after_date (ISO format YYYY-MM-DD)
|
|
108
|
+
after_date: nil,
|
|
109
|
+
# Return schedules with effective_date <= before_date (ISO format YYYY-MM-DD)
|
|
110
|
+
before_date: nil,
|
|
111
|
+
# Return schedule with effective_date == for_date (ISO format YYYY-MM-DD)
|
|
112
|
+
for_date: nil,
|
|
113
|
+
request_options: {}
|
|
114
|
+
)
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Delete an interest tier schedule entry.
|
|
118
|
+
#
|
|
119
|
+
# Returns:
|
|
120
|
+
#
|
|
121
|
+
# - 400 Bad Request: Invalid effective_date format OR attempting to delete the
|
|
122
|
+
# earliest tier schedule entry for a non-PENDING account
|
|
123
|
+
# - 404 Not Found: Tier schedule entry not found for the given effective_date OR
|
|
124
|
+
# ledger account not found
|
|
125
|
+
#
|
|
126
|
+
# Note: PENDING accounts can delete the earliest tier schedule entry (account
|
|
127
|
+
# hasn't opened yet). Active/non-PENDING accounts cannot delete the earliest entry
|
|
128
|
+
# to prevent orphaning the account.
|
|
129
|
+
#
|
|
130
|
+
# If the deleted tier schedule has a past effective_date and the account is
|
|
131
|
+
# ACTIVE, the loan tape rebuild configuration will be updated to trigger rebuilds
|
|
132
|
+
# from that date.
|
|
133
|
+
sig do
|
|
134
|
+
params(
|
|
135
|
+
effective_date: Date,
|
|
136
|
+
financial_account_token: String,
|
|
137
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
138
|
+
).void
|
|
139
|
+
end
|
|
140
|
+
def delete(
|
|
141
|
+
# Effective date in ISO format (YYYY-MM-DD)
|
|
142
|
+
effective_date,
|
|
143
|
+
# Globally unique identifier for financial account
|
|
144
|
+
financial_account_token:,
|
|
145
|
+
request_options: {}
|
|
146
|
+
)
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# @api private
|
|
150
|
+
sig { params(client: Lithic::Client).returns(T.attached_class) }
|
|
151
|
+
def self.new(client:)
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Lithic
|
|
4
|
+
module Resources
|
|
5
|
+
class FinancialAccounts
|
|
6
|
+
class LoanTapeConfiguration
|
|
7
|
+
# Get the loan tape configuration for a given financial account.
|
|
8
|
+
sig do
|
|
9
|
+
params(
|
|
10
|
+
financial_account_token: String,
|
|
11
|
+
request_options: Lithic::RequestOptions::OrHash
|
|
12
|
+
).returns(
|
|
13
|
+
Lithic::FinancialAccounts::FinancialAccountsLoanTapeConfiguration
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
def retrieve(
|
|
17
|
+
# Globally unique identifier for financial account.
|
|
18
|
+
financial_account_token,
|
|
19
|
+
request_options: {}
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# @api private
|
|
24
|
+
sig { params(client: Lithic::Client).returns(T.attached_class) }
|
|
25
|
+
def self.new(client:)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -20,6 +20,16 @@ module Lithic
|
|
|
20
20
|
sig { returns(Lithic::Resources::FinancialAccounts::LoanTapes) }
|
|
21
21
|
attr_reader :loan_tapes
|
|
22
22
|
|
|
23
|
+
sig do
|
|
24
|
+
returns(Lithic::Resources::FinancialAccounts::LoanTapeConfiguration)
|
|
25
|
+
end
|
|
26
|
+
attr_reader :loan_tape_configuration
|
|
27
|
+
|
|
28
|
+
sig do
|
|
29
|
+
returns(Lithic::Resources::FinancialAccounts::InterestTierSchedule)
|
|
30
|
+
end
|
|
31
|
+
attr_reader :interest_tier_schedule
|
|
32
|
+
|
|
23
33
|
# Create a new financial account
|
|
24
34
|
sig do
|
|
25
35
|
params(
|
|
@@ -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,
|