lithic 0.1.0.pre.alpha.3 → 0.1.0.pre.alpha.4
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/README.md +3 -3
- data/lib/lithic/client.rb +8 -6
- data/lib/lithic/errors.rb +195 -158
- data/lib/lithic/models/account.rb +7 -0
- data/lib/lithic/models/account_holder.rb +13 -0
- data/lib/lithic/models/account_holder_create_params.rb +1 -0
- data/lib/lithic/models/account_holder_create_response.rb +3 -0
- data/lib/lithic/models/account_holder_list_documents_params.rb +1 -0
- data/lib/lithic/models/account_holder_list_documents_response.rb +1 -0
- data/lib/lithic/models/account_holder_list_params.rb +1 -0
- data/lib/lithic/models/account_holder_retrieve_document_params.rb +1 -0
- data/lib/lithic/models/account_holder_retrieve_params.rb +1 -0
- data/lib/lithic/models/account_holder_simulate_enrollment_document_review_params.rb +1 -0
- data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -0
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +15 -0
- data/lib/lithic/models/account_holder_update_params.rb +1 -0
- data/lib/lithic/models/account_holder_update_response.rb +16 -0
- data/lib/lithic/models/account_holder_upload_document_params.rb +1 -0
- data/lib/lithic/models/account_list_params.rb +1 -0
- data/lib/lithic/models/account_retrieve_params.rb +1 -0
- data/lib/lithic/models/account_retrieve_spend_limits_params.rb +1 -0
- data/lib/lithic/models/account_spend_limits.rb +4 -0
- data/lib/lithic/models/account_update_params.rb +1 -0
- data/lib/lithic/models/aggregate_balance.rb +3 -0
- data/lib/lithic/models/aggregate_balance_list_params.rb +1 -0
- data/lib/lithic/models/api_status.rb +1 -0
- data/lib/lithic/models/auth_rules/auth_rule.rb +2 -0
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +4 -0
- data/lib/lithic/models/auth_rules/v2/backtest_create_params.rb +1 -0
- data/lib/lithic/models/auth_rules/v2/backtest_create_response.rb +1 -0
- data/lib/lithic/models/auth_rules/v2/backtest_results.rb +5 -0
- data/lib/lithic/models/auth_rules/v2/backtest_retrieve_params.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_apply_params.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +11 -0
- data/lib/lithic/models/auth_rules/v2_create_params.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_create_response.rb +11 -0
- data/lib/lithic/models/auth_rules/v2_delete_params.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +11 -0
- data/lib/lithic/models/auth_rules/v2_list_params.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_list_response.rb +11 -0
- data/lib/lithic/models/auth_rules/v2_promote_params.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +11 -0
- data/lib/lithic/models/auth_rules/v2_report_params.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_report_response.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_retrieve_params.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +11 -0
- data/lib/lithic/models/auth_rules/v2_update_params.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_update_response.rb +11 -0
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -0
- data/lib/lithic/models/auth_stream_enrollment_retrieve_secret_params.rb +1 -0
- data/lib/lithic/models/auth_stream_enrollment_rotate_secret_params.rb +1 -0
- data/lib/lithic/models/auth_stream_secret.rb +1 -0
- data/lib/lithic/models/balance.rb +3 -0
- data/lib/lithic/models/balance_list_params.rb +1 -0
- data/lib/lithic/models/book_transfer_create_params.rb +1 -0
- data/lib/lithic/models/book_transfer_list_params.rb +1 -0
- data/lib/lithic/models/book_transfer_response.rb +9 -0
- data/lib/lithic/models/book_transfer_retrieve_params.rb +1 -0
- data/lib/lithic/models/book_transfer_reverse_params.rb +1 -0
- data/lib/lithic/models/card.rb +12 -0
- data/lib/lithic/models/card_convert_physical_params.rb +2 -1
- data/lib/lithic/models/card_create_params.rb +2 -1
- data/lib/lithic/models/card_embed_params.rb +1 -0
- data/lib/lithic/models/card_list_params.rb +1 -0
- data/lib/lithic/models/card_program.rb +1 -0
- data/lib/lithic/models/card_program_list_params.rb +1 -0
- data/lib/lithic/models/card_program_retrieve_params.rb +1 -0
- data/lib/lithic/models/card_provision_params.rb +1 -0
- data/lib/lithic/models/card_provision_response.rb +1 -0
- data/lib/lithic/models/card_reissue_params.rb +2 -1
- data/lib/lithic/models/card_renew_params.rb +2 -1
- data/lib/lithic/models/card_retrieve_params.rb +1 -0
- data/lib/lithic/models/card_retrieve_spend_limits_params.rb +1 -0
- data/lib/lithic/models/card_search_by_pan_params.rb +1 -0
- data/lib/lithic/models/card_spend_limits.rb +4 -0
- data/lib/lithic/models/card_update_params.rb +1 -0
- data/lib/lithic/models/cards/aggregate_balance_list_params.rb +1 -0
- data/lib/lithic/models/cards/aggregate_balance_list_response.rb +1 -0
- data/lib/lithic/models/cards/balance_list_params.rb +1 -0
- data/lib/lithic/models/cards/balance_list_response.rb +3 -0
- data/lib/lithic/models/cards/financial_transaction_list_params.rb +1 -0
- data/lib/lithic/models/cards/financial_transaction_retrieve_params.rb +1 -0
- data/lib/lithic/models/client_api_status_params.rb +1 -0
- data/lib/lithic/models/credit_products/extended_credit.rb +1 -0
- data/lib/lithic/models/credit_products/extended_credit_retrieve_params.rb +1 -0
- data/lib/lithic/models/credit_products/prime_rate_create_params.rb +1 -0
- data/lib/lithic/models/credit_products/prime_rate_retrieve_params.rb +1 -0
- data/lib/lithic/models/credit_products/prime_rate_retrieve_response.rb +1 -0
- data/lib/lithic/models/digital_card_art.rb +3 -0
- data/lib/lithic/models/digital_card_art_list_params.rb +1 -0
- data/lib/lithic/models/digital_card_art_retrieve_params.rb +1 -0
- data/lib/lithic/models/dispute.rb +7 -0
- data/lib/lithic/models/dispute_create_params.rb +1 -0
- data/lib/lithic/models/dispute_delete_evidence_params.rb +1 -0
- data/lib/lithic/models/dispute_delete_params.rb +1 -0
- data/lib/lithic/models/dispute_evidence.rb +3 -0
- data/lib/lithic/models/dispute_initiate_evidence_upload_params.rb +1 -0
- data/lib/lithic/models/dispute_list_evidences_params.rb +1 -0
- data/lib/lithic/models/dispute_list_params.rb +1 -0
- data/lib/lithic/models/dispute_retrieve_evidence_params.rb +1 -0
- data/lib/lithic/models/dispute_retrieve_params.rb +1 -0
- data/lib/lithic/models/dispute_update_params.rb +1 -0
- data/lib/lithic/models/document.rb +6 -0
- data/lib/lithic/models/event.rb +3 -0
- data/lib/lithic/models/event_list_attempts_params.rb +1 -0
- data/lib/lithic/models/event_list_params.rb +1 -0
- data/lib/lithic/models/event_retrieve_params.rb +1 -0
- data/lib/lithic/models/events/subscription_create_params.rb +1 -0
- data/lib/lithic/models/events/subscription_delete_params.rb +1 -0
- data/lib/lithic/models/events/subscription_list_attempts_params.rb +1 -0
- data/lib/lithic/models/events/subscription_list_params.rb +1 -0
- data/lib/lithic/models/events/subscription_recover_params.rb +1 -0
- data/lib/lithic/models/events/subscription_replay_missing_params.rb +1 -0
- data/lib/lithic/models/events/subscription_retrieve_params.rb +1 -0
- data/lib/lithic/models/events/subscription_retrieve_secret_params.rb +1 -0
- data/lib/lithic/models/events/subscription_retrieve_secret_response.rb +1 -0
- data/lib/lithic/models/events/subscription_rotate_secret_params.rb +1 -0
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
- data/lib/lithic/models/events/subscription_update_params.rb +1 -0
- data/lib/lithic/models/external_bank_account_create_params.rb +1 -0
- data/lib/lithic/models/external_bank_account_create_response.rb +11 -0
- data/lib/lithic/models/external_bank_account_list_params.rb +1 -0
- data/lib/lithic/models/external_bank_account_list_response.rb +11 -0
- data/lib/lithic/models/external_bank_account_retrieve_params.rb +1 -0
- data/lib/lithic/models/external_bank_account_retrieve_response.rb +11 -0
- data/lib/lithic/models/external_bank_account_retry_micro_deposits_params.rb +1 -0
- data/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rb +11 -0
- data/lib/lithic/models/external_bank_account_retry_prenote_params.rb +1 -0
- data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +7 -0
- data/lib/lithic/models/external_bank_account_update_params.rb +1 -0
- data/lib/lithic/models/external_bank_account_update_response.rb +11 -0
- data/lib/lithic/models/external_bank_accounts/micro_deposit_create_params.rb +1 -0
- data/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rb +11 -0
- data/lib/lithic/models/external_payment.rb +7 -0
- data/lib/lithic/models/external_payment_cancel_params.rb +1 -0
- data/lib/lithic/models/external_payment_create_params.rb +1 -0
- data/lib/lithic/models/external_payment_list_params.rb +1 -0
- data/lib/lithic/models/external_payment_release_params.rb +1 -0
- data/lib/lithic/models/external_payment_retrieve_params.rb +1 -0
- data/lib/lithic/models/external_payment_reverse_params.rb +1 -0
- data/lib/lithic/models/external_payment_settle_params.rb +1 -0
- data/lib/lithic/models/financial_account.rb +11 -0
- data/lib/lithic/models/financial_account_create_params.rb +1 -0
- data/lib/lithic/models/financial_account_list_params.rb +1 -0
- data/lib/lithic/models/financial_account_retrieve_params.rb +1 -0
- data/lib/lithic/models/financial_account_update_params.rb +1 -0
- data/lib/lithic/models/financial_account_update_status_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/balance_list_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/balance_list_response.rb +3 -0
- data/lib/lithic/models/financial_accounts/credit_configuration_retrieve_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/credit_configuration_update_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +5 -0
- data/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/financial_transaction_retrieve_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/loan_tape.rb +24 -0
- data/lib/lithic/models/financial_accounts/loan_tape_list_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/loan_tape_retrieve_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/statement.rb +17 -0
- data/lib/lithic/models/financial_accounts/statement_list_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/statement_retrieve_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/statements/line_item_list_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +2 -0
- data/lib/lithic/models/financial_transaction.rb +9 -0
- data/lib/lithic/models/kyb.rb +4 -0
- data/lib/lithic/models/kyb_business_entity.rb +1 -0
- data/lib/lithic/models/kyc.rb +3 -0
- data/lib/lithic/models/kyc_exempt.rb +4 -0
- data/lib/lithic/models/management_operation_create_params.rb +1 -0
- data/lib/lithic/models/management_operation_list_params.rb +1 -0
- data/lib/lithic/models/management_operation_retrieve_params.rb +1 -0
- data/lib/lithic/models/management_operation_reverse_params.rb +1 -0
- data/lib/lithic/models/management_operation_transaction.rb +7 -0
- data/lib/lithic/models/message_attempt.rb +3 -0
- data/lib/lithic/models/payment.rb +16 -0
- data/lib/lithic/models/payment_create_params.rb +2 -0
- data/lib/lithic/models/payment_create_response.rb +1 -0
- data/lib/lithic/models/payment_list_params.rb +1 -0
- data/lib/lithic/models/payment_retrieve_params.rb +1 -0
- data/lib/lithic/models/payment_retry_params.rb +1 -0
- data/lib/lithic/models/payment_retry_response.rb +1 -0
- data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
- data/lib/lithic/models/payment_simulate_action_response.rb +3 -0
- data/lib/lithic/models/payment_simulate_receipt_params.rb +1 -0
- data/lib/lithic/models/payment_simulate_receipt_response.rb +3 -0
- data/lib/lithic/models/payment_simulate_release_params.rb +1 -0
- data/lib/lithic/models/payment_simulate_release_response.rb +3 -0
- data/lib/lithic/models/payment_simulate_return_params.rb +1 -0
- data/lib/lithic/models/payment_simulate_return_response.rb +3 -0
- data/lib/lithic/models/reports/settlement/network_total_list_params.rb +1 -0
- data/lib/lithic/models/reports/settlement/network_total_list_response.rb +4 -0
- data/lib/lithic/models/reports/settlement/network_total_retrieve_params.rb +1 -0
- data/lib/lithic/models/reports/settlement/network_total_retrieve_response.rb +4 -0
- data/lib/lithic/models/reports/settlement_list_details_params.rb +1 -0
- data/lib/lithic/models/reports/settlement_summary_params.rb +1 -0
- data/lib/lithic/models/responder_endpoint_check_status_params.rb +1 -0
- data/lib/lithic/models/responder_endpoint_create_params.rb +1 -0
- data/lib/lithic/models/responder_endpoint_create_response.rb +1 -0
- data/lib/lithic/models/responder_endpoint_delete_params.rb +1 -0
- data/lib/lithic/models/responder_endpoint_status.rb +1 -0
- data/lib/lithic/models/settlement_detail.rb +5 -0
- data/lib/lithic/models/settlement_summary_details.rb +2 -0
- data/lib/lithic/models/three_ds/authentication_retrieve_params.rb +1 -0
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +45 -0
- data/lib/lithic/models/three_ds/authentication_simulate_otp_entry_params.rb +1 -0
- data/lib/lithic/models/three_ds/authentication_simulate_params.rb +1 -0
- data/lib/lithic/models/three_ds/authentication_simulate_response.rb +1 -0
- data/lib/lithic/models/three_ds/decisioning_challenge_response_params.rb +1 -0
- data/lib/lithic/models/three_ds/decisioning_retrieve_secret_params.rb +1 -0
- data/lib/lithic/models/three_ds/decisioning_retrieve_secret_response.rb +1 -0
- data/lib/lithic/models/three_ds/decisioning_rotate_secret_params.rb +1 -0
- data/lib/lithic/models/tokenization.rb +11 -0
- data/lib/lithic/models/tokenization_activate_params.rb +1 -0
- data/lib/lithic/models/tokenization_deactivate_params.rb +1 -0
- data/lib/lithic/models/tokenization_decisioning_retrieve_secret_params.rb +1 -0
- data/lib/lithic/models/tokenization_decisioning_rotate_secret_params.rb +1 -0
- data/lib/lithic/models/tokenization_decisioning_rotate_secret_response.rb +1 -0
- data/lib/lithic/models/tokenization_list_params.rb +1 -0
- data/lib/lithic/models/tokenization_pause_params.rb +1 -0
- data/lib/lithic/models/tokenization_resend_activation_code_params.rb +1 -0
- data/lib/lithic/models/tokenization_retrieve_params.rb +1 -0
- data/lib/lithic/models/tokenization_retrieve_response.rb +1 -0
- data/lib/lithic/models/tokenization_secret.rb +1 -0
- data/lib/lithic/models/tokenization_simulate_params.rb +1 -0
- data/lib/lithic/models/tokenization_simulate_response.rb +1 -0
- data/lib/lithic/models/tokenization_unpause_params.rb +1 -0
- data/lib/lithic/models/tokenization_update_digital_card_art_params.rb +1 -0
- data/lib/lithic/models/tokenization_update_digital_card_art_response.rb +1 -0
- data/lib/lithic/models/transaction.rb +60 -1
- data/lib/lithic/models/transaction_expire_authorization_params.rb +1 -0
- data/lib/lithic/models/transaction_list_params.rb +1 -0
- data/lib/lithic/models/transaction_retrieve_params.rb +1 -0
- data/lib/lithic/models/transaction_simulate_authorization_advice_params.rb +1 -0
- data/lib/lithic/models/transaction_simulate_authorization_advice_response.rb +1 -0
- data/lib/lithic/models/transaction_simulate_authorization_params.rb +1 -0
- data/lib/lithic/models/transaction_simulate_authorization_response.rb +1 -0
- data/lib/lithic/models/transaction_simulate_clearing_params.rb +1 -0
- data/lib/lithic/models/transaction_simulate_clearing_response.rb +1 -0
- data/lib/lithic/models/transaction_simulate_credit_authorization_params.rb +1 -0
- data/lib/lithic/models/transaction_simulate_credit_authorization_response.rb +1 -0
- data/lib/lithic/models/transaction_simulate_return_params.rb +1 -0
- data/lib/lithic/models/transaction_simulate_return_response.rb +1 -0
- data/lib/lithic/models/transaction_simulate_return_reversal_params.rb +1 -0
- data/lib/lithic/models/transaction_simulate_return_reversal_response.rb +1 -0
- data/lib/lithic/models/transaction_simulate_void_params.rb +1 -0
- data/lib/lithic/models/transaction_simulate_void_response.rb +1 -0
- data/lib/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rb +1 -0
- data/lib/lithic/models/transactions/enhanced_commercial_data_retrieve_response.rb +1 -0
- data/lib/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rb +1 -0
- data/lib/lithic/models/transactions/events/enhanced_data.rb +13 -0
- data/lib/lithic/models/transfer.rb +10 -0
- data/lib/lithic/models/transfer_create_params.rb +1 -0
- data/lib/lithic/resources/account_holders.rb +101 -213
- data/lib/lithic/resources/accounts.rb +31 -49
- data/lib/lithic/resources/aggregate_balances.rb +7 -4
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +15 -14
- data/lib/lithic/resources/auth_rules/v2.rb +68 -84
- data/lib/lithic/resources/auth_rules.rb +2 -0
- data/lib/lithic/resources/auth_stream_enrollment.rb +10 -4
- data/lib/lithic/resources/balances.rb +10 -11
- data/lib/lithic/resources/book_transfers.rb +42 -63
- data/lib/lithic/resources/card_programs.rb +14 -14
- data/lib/lithic/resources/cards/aggregate_balances.rb +8 -6
- data/lib/lithic/resources/cards/balances.rb +9 -10
- data/lib/lithic/resources/cards/financial_transactions.rb +20 -28
- data/lib/lithic/resources/cards.rb +108 -298
- data/lib/lithic/resources/credit_products/extended_credit.rb +7 -4
- data/lib/lithic/resources/credit_products/prime_rates.rb +16 -16
- data/lib/lithic/resources/credit_products.rb +2 -0
- data/lib/lithic/resources/digital_card_art.rb +14 -17
- data/lib/lithic/resources/disputes.rb +69 -88
- data/lib/lithic/resources/events/subscriptions.rb +77 -96
- data/lib/lithic/resources/events.rb +29 -44
- data/lib/lithic/resources/external_bank_accounts/micro_deposits.rb +8 -6
- data/lib/lithic/resources/external_bank_accounts.rb +69 -104
- data/lib/lithic/resources/external_payments.rb +64 -86
- data/lib/lithic/resources/financial_accounts/balances.rb +9 -10
- data/lib/lithic/resources/financial_accounts/credit_configuration.rb +16 -16
- data/lib/lithic/resources/financial_accounts/financial_transactions.rb +20 -28
- data/lib/lithic/resources/financial_accounts/loan_tapes.rb +18 -24
- data/lib/lithic/resources/financial_accounts/statements/line_items.rb +11 -15
- data/lib/lithic/resources/financial_accounts/statements.rb +19 -26
- data/lib/lithic/resources/financial_accounts.rb +36 -38
- data/lib/lithic/resources/management_operations.rb +42 -60
- data/lib/lithic/resources/payments.rb +70 -91
- data/lib/lithic/resources/reports/settlement/network_totals.rb +23 -34
- data/lib/lithic/resources/reports/settlement.rb +15 -16
- data/lib/lithic/resources/reports.rb +2 -0
- data/lib/lithic/resources/responder_endpoints.rb +18 -14
- data/lib/lithic/resources/three_ds/authentication.rb +21 -22
- data/lib/lithic/resources/three_ds/decisioning.rb +16 -13
- data/lib/lithic/resources/three_ds.rb +2 -0
- data/lib/lithic/resources/tokenization_decisioning.rb +10 -4
- data/lib/lithic/resources/tokenizations.rb +63 -79
- data/lib/lithic/resources/transactions/enhanced_commercial_data.rb +7 -4
- data/lib/lithic/resources/transactions/events/enhanced_commercial_data.rb +7 -4
- data/lib/lithic/resources/transactions/events.rb +2 -0
- data/lib/lithic/resources/transactions.rb +79 -142
- data/lib/lithic/resources/transfers.rb +11 -16
- data/lib/lithic/transport/base_client.rb +9 -9
- data/lib/lithic/transport/pooled_net_requester.rb +1 -1
- data/lib/lithic/type/base_model.rb +10 -0
- data/lib/lithic/type/base_page.rb +1 -1
- data/lib/lithic/util.rb +6 -10
- data/lib/lithic/version.rb +1 -1
- data/rbi/lib/lithic/client.rbi +3 -3
- data/rbi/lib/lithic/errors.rbi +145 -115
- data/rbi/lib/lithic/models/account.rbi +1 -1
- data/rbi/lib/lithic/models/account_financial_account_type.rbi +2 -1
- data/rbi/lib/lithic/models/account_holder.rbi +8 -6
- data/rbi/lib/lithic/models/account_holder_create_params.rbi +2 -2
- data/rbi/lib/lithic/models/account_holder_create_response.rbi +2 -2
- data/rbi/lib/lithic/models/account_holder_simulate_enrollment_document_review_params.rbi +8 -1
- data/rbi/lib/lithic/models/account_holder_simulate_enrollment_review_params.rbi +8 -2
- data/rbi/lib/lithic/models/account_holder_simulate_enrollment_review_response.rbi +24 -4
- data/rbi/lib/lithic/models/account_holder_update_response.rbi +18 -2
- data/rbi/lib/lithic/models/account_holder_upload_document_params.rbi +1 -1
- data/rbi/lib/lithic/models/account_update_params.rbi +2 -1
- data/rbi/lib/lithic/models/aggregate_balance.rbi +1 -1
- data/rbi/lib/lithic/models/aggregate_balance_list_params.rbi +1 -1
- data/rbi/lib/lithic/models/auth_rules/auth_rule.rbi +2 -1
- data/rbi/lib/lithic/models/auth_rules/auth_rule_condition.rbi +1 -1
- data/rbi/lib/lithic/models/auth_rules/conditional_attribute.rbi +2 -1
- data/rbi/lib/lithic/models/auth_rules/v2_apply_response.rbi +3 -2
- data/rbi/lib/lithic/models/auth_rules/v2_create_params.rbi +2 -1
- data/rbi/lib/lithic/models/auth_rules/v2_create_response.rbi +2 -2
- data/rbi/lib/lithic/models/auth_rules/v2_draft_response.rbi +3 -2
- data/rbi/lib/lithic/models/auth_rules/v2_list_response.rbi +4 -2
- data/rbi/lib/lithic/models/auth_rules/v2_promote_response.rbi +2 -2
- data/rbi/lib/lithic/models/auth_rules/v2_retrieve_response.rbi +2 -2
- data/rbi/lib/lithic/models/auth_rules/v2_update_params.rbi +2 -1
- data/rbi/lib/lithic/models/auth_rules/v2_update_response.rbi +2 -2
- data/rbi/lib/lithic/models/auth_rules/velocity_limit_params.rbi +1 -1
- data/rbi/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +1 -1
- data/rbi/lib/lithic/models/balance.rbi +2 -1
- data/rbi/lib/lithic/models/balance_list_params.rbi +1 -1
- data/rbi/lib/lithic/models/book_transfer_create_params.rbi +3 -2
- data/rbi/lib/lithic/models/book_transfer_list_params.rbi +6 -3
- data/rbi/lib/lithic/models/book_transfer_response.rbi +8 -5
- data/rbi/lib/lithic/models/card.rbi +5 -5
- data/rbi/lib/lithic/models/card_convert_physical_params.rbi +3 -2
- data/rbi/lib/lithic/models/card_create_params.rbi +5 -4
- data/rbi/lib/lithic/models/card_list_params.rbi +1 -1
- data/rbi/lib/lithic/models/card_provision_params.rbi +1 -1
- data/rbi/lib/lithic/models/card_reissue_params.rbi +2 -2
- data/rbi/lib/lithic/models/card_renew_params.rbi +3 -2
- data/rbi/lib/lithic/models/card_update_params.rbi +3 -2
- data/rbi/lib/lithic/models/cards/balance_list_response.rbi +2 -1
- data/rbi/lib/lithic/models/cards/financial_transaction_list_params.rbi +3 -3
- data/rbi/lib/lithic/models/digital_card_art.rbi +2 -1
- data/rbi/lib/lithic/models/dispute.rbi +4 -3
- data/rbi/lib/lithic/models/dispute_create_params.rbi +2 -1
- data/rbi/lib/lithic/models/dispute_evidence.rbi +2 -1
- data/rbi/lib/lithic/models/dispute_list_params.rbi +2 -1
- data/rbi/lib/lithic/models/dispute_update_params.rbi +2 -1
- data/rbi/lib/lithic/models/document.rbi +4 -4
- data/rbi/lib/lithic/models/event.rbi +1 -1
- data/rbi/lib/lithic/models/event_list_attempts_params.rbi +2 -1
- data/rbi/lib/lithic/models/event_list_params.rbi +2 -1
- data/rbi/lib/lithic/models/event_subscription.rbi +2 -1
- data/rbi/lib/lithic/models/events/subscription_create_params.rbi +1 -1
- data/rbi/lib/lithic/models/events/subscription_list_attempts_params.rbi +1 -1
- data/rbi/lib/lithic/models/events/subscription_send_simulated_example_params.rbi +7 -1
- data/rbi/lib/lithic/models/events/subscription_update_params.rbi +1 -1
- data/rbi/lib/lithic/models/external_bank_account_create_params.rbi +2 -2
- data/rbi/lib/lithic/models/external_bank_account_create_response.rbi +5 -5
- data/rbi/lib/lithic/models/external_bank_account_list_params.rbi +3 -3
- data/rbi/lib/lithic/models/external_bank_account_list_response.rbi +5 -5
- data/rbi/lib/lithic/models/external_bank_account_retrieve_response.rbi +17 -5
- data/rbi/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +11 -3
- data/rbi/lib/lithic/models/external_bank_account_retry_prenote_response.rbi +9 -3
- data/rbi/lib/lithic/models/external_bank_account_update_params.rbi +1 -1
- data/rbi/lib/lithic/models/external_bank_account_update_response.rbi +5 -5
- data/rbi/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +23 -3
- data/rbi/lib/lithic/models/external_payment.rbi +11 -7
- data/rbi/lib/lithic/models/external_payment_create_params.rbi +3 -3
- data/rbi/lib/lithic/models/external_payment_list_params.rbi +3 -3
- data/rbi/lib/lithic/models/external_payment_settle_params.rbi +1 -1
- data/rbi/lib/lithic/models/financial_account.rbi +17 -5
- data/rbi/lib/lithic/models/financial_account_create_params.rbi +1 -1
- data/rbi/lib/lithic/models/financial_account_list_params.rbi +2 -1
- data/rbi/lib/lithic/models/financial_account_update_status_params.rbi +8 -2
- data/rbi/lib/lithic/models/financial_accounts/balance_list_response.rbi +1 -1
- data/rbi/lib/lithic/models/financial_accounts/financial_account_credit_config.rbi +2 -0
- data/rbi/lib/lithic/models/financial_accounts/financial_transaction_list_params.rbi +21 -3
- data/rbi/lib/lithic/models/financial_accounts/loan_tape.rbi +10 -1
- data/rbi/lib/lithic/models/financial_accounts/statement.rbi +11 -2
- data/rbi/lib/lithic/models/financial_accounts/statements/statement_line_items.rbi +2 -0
- data/rbi/lib/lithic/models/financial_transaction.rbi +8 -5
- data/rbi/lib/lithic/models/instance_financial_account_type.rbi +2 -1
- data/rbi/lib/lithic/models/kyb.rbi +1 -1
- data/rbi/lib/lithic/models/kyc.rbi +1 -1
- data/rbi/lib/lithic/models/kyc_exempt.rbi +3 -2
- data/rbi/lib/lithic/models/management_operation_create_params.rbi +3 -3
- data/rbi/lib/lithic/models/management_operation_list_params.rbi +2 -2
- data/rbi/lib/lithic/models/management_operation_transaction.rbi +7 -7
- data/rbi/lib/lithic/models/message_attempt.rbi +1 -1
- data/rbi/lib/lithic/models/owner_type.rbi +1 -1
- data/rbi/lib/lithic/models/payment.rbi +11 -10
- data/rbi/lib/lithic/models/payment_create_params.rbi +5 -3
- data/rbi/lib/lithic/models/payment_list_params.rbi +6 -3
- data/rbi/lib/lithic/models/payment_simulate_action_params.rbi +2 -2
- data/rbi/lib/lithic/models/payment_simulate_action_response.rbi +1 -1
- data/rbi/lib/lithic/models/payment_simulate_receipt_params.rbi +1 -1
- data/rbi/lib/lithic/models/payment_simulate_receipt_response.rbi +1 -1
- data/rbi/lib/lithic/models/payment_simulate_release_response.rbi +1 -1
- data/rbi/lib/lithic/models/payment_simulate_return_response.rbi +1 -1
- data/rbi/lib/lithic/models/reports/settlement/network_total_list_params.rbi +1 -1
- data/rbi/lib/lithic/models/reports/settlement/network_total_list_response.rbi +7 -1
- data/rbi/lib/lithic/models/reports/settlement/network_total_retrieve_response.rbi +7 -1
- data/rbi/lib/lithic/models/responder_endpoint_check_status_params.rbi +1 -1
- data/rbi/lib/lithic/models/responder_endpoint_create_params.rbi +1 -1
- data/rbi/lib/lithic/models/responder_endpoint_delete_params.rbi +1 -1
- data/rbi/lib/lithic/models/settlement_detail.rbi +3 -2
- data/rbi/lib/lithic/models/settlement_summary_details.rbi +1 -1
- data/rbi/lib/lithic/models/spend_limit_duration.rbi +1 -1
- data/rbi/lib/lithic/models/three_ds/authentication_retrieve_response.rbi +53 -8
- data/rbi/lib/lithic/models/three_ds/authentication_simulate_params.rbi +7 -1
- data/rbi/lib/lithic/models/three_ds/challenge_result.rbi +1 -1
- data/rbi/lib/lithic/models/tokenization.rbi +8 -5
- data/rbi/lib/lithic/models/tokenization_list_params.rbi +1 -1
- data/rbi/lib/lithic/models/tokenization_resend_activation_code_params.rbi +7 -1
- data/rbi/lib/lithic/models/tokenization_simulate_params.rbi +2 -2
- data/rbi/lib/lithic/models/transaction.rbi +49 -22
- data/rbi/lib/lithic/models/transaction_list_params.rbi +4 -2
- data/rbi/lib/lithic/models/transaction_simulate_authorization_params.rbi +1 -1
- data/rbi/lib/lithic/models/transaction_simulate_void_params.rbi +1 -1
- data/rbi/lib/lithic/models/transactions/events/enhanced_data.rbi +16 -3
- data/rbi/lib/lithic/models/transfer.rbi +5 -5
- data/rbi/lib/lithic/models/verification_method.rbi +1 -1
- data/rbi/lib/lithic/resources/account_holders.rbi +1 -0
- data/rbi/lib/lithic/resources/accounts.rbi +1 -0
- data/rbi/lib/lithic/resources/aggregate_balances.rbi +1 -0
- data/rbi/lib/lithic/resources/auth_rules/v2/backtests.rbi +1 -0
- data/rbi/lib/lithic/resources/auth_rules/v2.rbi +1 -0
- data/rbi/lib/lithic/resources/auth_rules.rbi +1 -0
- data/rbi/lib/lithic/resources/auth_stream_enrollment.rbi +1 -0
- data/rbi/lib/lithic/resources/balances.rbi +1 -0
- data/rbi/lib/lithic/resources/book_transfers.rbi +1 -0
- data/rbi/lib/lithic/resources/card_programs.rbi +1 -0
- data/rbi/lib/lithic/resources/cards/aggregate_balances.rbi +1 -0
- data/rbi/lib/lithic/resources/cards/balances.rbi +1 -0
- data/rbi/lib/lithic/resources/cards/financial_transactions.rbi +1 -0
- data/rbi/lib/lithic/resources/cards.rbi +1 -0
- data/rbi/lib/lithic/resources/credit_products/extended_credit.rbi +1 -0
- data/rbi/lib/lithic/resources/credit_products/prime_rates.rbi +1 -0
- data/rbi/lib/lithic/resources/credit_products.rbi +1 -0
- data/rbi/lib/lithic/resources/digital_card_art.rbi +1 -0
- data/rbi/lib/lithic/resources/disputes.rbi +1 -0
- data/rbi/lib/lithic/resources/events/subscriptions.rbi +1 -0
- data/rbi/lib/lithic/resources/events.rbi +1 -0
- data/rbi/lib/lithic/resources/external_bank_accounts/micro_deposits.rbi +1 -0
- data/rbi/lib/lithic/resources/external_bank_accounts.rbi +1 -0
- data/rbi/lib/lithic/resources/external_payments.rbi +1 -0
- data/rbi/lib/lithic/resources/financial_accounts/balances.rbi +1 -0
- data/rbi/lib/lithic/resources/financial_accounts/credit_configuration.rbi +1 -0
- data/rbi/lib/lithic/resources/financial_accounts/financial_transactions.rbi +1 -0
- data/rbi/lib/lithic/resources/financial_accounts/loan_tapes.rbi +1 -0
- data/rbi/lib/lithic/resources/financial_accounts/statements/line_items.rbi +1 -0
- data/rbi/lib/lithic/resources/financial_accounts/statements.rbi +1 -0
- data/rbi/lib/lithic/resources/financial_accounts.rbi +1 -0
- data/rbi/lib/lithic/resources/management_operations.rbi +1 -0
- data/rbi/lib/lithic/resources/payments.rbi +1 -0
- data/rbi/lib/lithic/resources/reports/settlement/network_totals.rbi +1 -0
- data/rbi/lib/lithic/resources/reports/settlement.rbi +1 -0
- data/rbi/lib/lithic/resources/reports.rbi +1 -0
- data/rbi/lib/lithic/resources/responder_endpoints.rbi +1 -0
- data/rbi/lib/lithic/resources/three_ds/authentication.rbi +1 -0
- data/rbi/lib/lithic/resources/three_ds/decisioning.rbi +1 -0
- data/rbi/lib/lithic/resources/three_ds.rbi +1 -0
- data/rbi/lib/lithic/resources/tokenization_decisioning.rbi +1 -0
- data/rbi/lib/lithic/resources/tokenizations.rbi +1 -0
- data/rbi/lib/lithic/resources/transactions/enhanced_commercial_data.rbi +1 -0
- data/rbi/lib/lithic/resources/transactions/events/enhanced_commercial_data.rbi +1 -0
- data/rbi/lib/lithic/resources/transactions/events.rbi +1 -0
- data/rbi/lib/lithic/resources/transactions.rbi +1 -0
- data/rbi/lib/lithic/resources/transfers.rbi +1 -0
- data/rbi/lib/lithic/transport/base_client.rbi +3 -2
- data/rbi/lib/lithic/type/base_model.rbi +8 -0
- data/rbi/lib/lithic/util.rbi +2 -2
- data/rbi/lib/lithic/version.rbi +1 -1
- data/sig/lithic/client.rbs +1 -1
- data/sig/lithic/errors.rbs +112 -82
- data/sig/lithic/models/card_convert_physical_params.rbs +1 -1
- data/sig/lithic/models/card_create_params.rbs +1 -1
- data/sig/lithic/models/card_reissue_params.rbs +1 -1
- data/sig/lithic/models/card_renew_params.rbs +1 -1
- data/sig/lithic/models/transaction.rbs +1 -1
- data/sig/lithic/transport/base_client.rbs +1 -1
- data/sig/lithic/type/base_model.rbs +4 -0
- data/sig/lithic/util.rbs +2 -2
- data/sig/lithic/version.rbs +1 -1
- metadata +2 -2
@@ -8,13 +8,14 @@ module Lithic
|
|
8
8
|
|
9
9
|
# Get an event.
|
10
10
|
#
|
11
|
-
# @
|
12
|
-
#
|
13
|
-
# @param params [Lithic::Models::EventRetrieveParams, Hash{Symbol=>Object}] .
|
11
|
+
# @overload retrieve(event_token, request_options: {})
|
14
12
|
#
|
15
|
-
#
|
13
|
+
# @param event_token [String]
|
14
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
16
15
|
#
|
17
16
|
# @return [Lithic::Models::Event]
|
17
|
+
#
|
18
|
+
# @see Lithic::Models::EventRetrieveParams
|
18
19
|
def retrieve(event_token, params = {})
|
19
20
|
@client.request(
|
20
21
|
method: :get,
|
@@ -26,29 +27,20 @@ module Lithic
|
|
26
27
|
|
27
28
|
# List all events.
|
28
29
|
#
|
29
|
-
# @
|
30
|
-
#
|
31
|
-
# @option params [Time] :begin_ Date string in RFC 3339 format. Only entries created after the specified time
|
32
|
-
# will be included. UTC time zone.
|
33
|
-
#
|
34
|
-
# @option params [Time] :end_ Date string in RFC 3339 format. Only entries created before the specified time
|
35
|
-
# will be included. UTC time zone.
|
30
|
+
# @overload list(begin_: nil, end_: nil, ending_before: nil, event_types: nil, page_size: nil, starting_after: nil, with_content: nil, request_options: {})
|
36
31
|
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
40
|
-
#
|
41
|
-
#
|
42
|
-
#
|
43
|
-
#
|
44
|
-
#
|
45
|
-
# begin. Used to retrieve the next page of results after this item.
|
46
|
-
#
|
47
|
-
# @option params [Boolean] :with_content Whether to include the event payload content in the response.
|
48
|
-
#
|
49
|
-
# @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
|
32
|
+
# @param begin_ [Time]
|
33
|
+
# @param end_ [Time]
|
34
|
+
# @param ending_before [String]
|
35
|
+
# @param event_types [Array<Symbol, Lithic::Models::EventListParams::EventType>]
|
36
|
+
# @param page_size [Integer]
|
37
|
+
# @param starting_after [String]
|
38
|
+
# @param with_content [Boolean]
|
39
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
50
40
|
#
|
51
41
|
# @return [Lithic::CursorPage<Lithic::Models::Event>]
|
42
|
+
#
|
43
|
+
# @see Lithic::Models::EventListParams
|
52
44
|
def list(params = {})
|
53
45
|
parsed, options = Lithic::Models::EventListParams.dump_request(params)
|
54
46
|
@client.request(
|
@@ -63,29 +55,20 @@ module Lithic
|
|
63
55
|
|
64
56
|
# List all the message attempts for a given event.
|
65
57
|
#
|
66
|
-
# @
|
67
|
-
#
|
68
|
-
# @param params [Lithic::Models::EventListAttemptsParams, Hash{Symbol=>Object}] .
|
69
|
-
#
|
70
|
-
# @option params [Time] :begin_ Date string in RFC 3339 format. Only entries created after the specified time
|
71
|
-
# will be included. UTC time zone.
|
72
|
-
#
|
73
|
-
# @option params [Time] :end_ Date string in RFC 3339 format. Only entries created before the specified time
|
74
|
-
# will be included. UTC time zone.
|
75
|
-
#
|
76
|
-
# @option params [String] :ending_before A cursor representing an item's token before which a page of results should end.
|
77
|
-
# Used to retrieve the previous page of results before this item.
|
78
|
-
#
|
79
|
-
# @option params [Integer] :page_size Page size (for pagination).
|
58
|
+
# @overload list_attempts(event_token, begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, status: nil, request_options: {})
|
80
59
|
#
|
81
|
-
#
|
82
|
-
#
|
83
|
-
#
|
84
|
-
#
|
85
|
-
#
|
86
|
-
#
|
60
|
+
# @param event_token [String]
|
61
|
+
# @param begin_ [Time]
|
62
|
+
# @param end_ [Time]
|
63
|
+
# @param ending_before [String]
|
64
|
+
# @param page_size [Integer]
|
65
|
+
# @param starting_after [String]
|
66
|
+
# @param status [Symbol, Lithic::Models::EventListAttemptsParams::Status]
|
67
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
87
68
|
#
|
88
69
|
# @return [Lithic::CursorPage<Lithic::Models::MessageAttempt>]
|
70
|
+
#
|
71
|
+
# @see Lithic::Models::EventListAttemptsParams
|
89
72
|
def list_attempts(event_token, params = {})
|
90
73
|
parsed, options = Lithic::Models::EventListAttemptsParams.dump_request(params)
|
91
74
|
@client.request(
|
@@ -98,6 +81,8 @@ module Lithic
|
|
98
81
|
)
|
99
82
|
end
|
100
83
|
|
84
|
+
# @api private
|
85
|
+
#
|
101
86
|
# @param client [Lithic::Client]
|
102
87
|
def initialize(client:)
|
103
88
|
@client = client
|
@@ -6,15 +6,15 @@ module Lithic
|
|
6
6
|
class MicroDeposits
|
7
7
|
# Verify the external bank account by providing the micro deposit amounts.
|
8
8
|
#
|
9
|
-
# @
|
10
|
-
#
|
11
|
-
# @param params [Lithic::Models::ExternalBankAccounts::MicroDepositCreateParams, Hash{Symbol=>Object}] .
|
12
|
-
#
|
13
|
-
# @option params [Array<Integer>] :micro_deposits
|
9
|
+
# @overload create(external_bank_account_token, micro_deposits:, request_options: {})
|
14
10
|
#
|
15
|
-
#
|
11
|
+
# @param external_bank_account_token [String]
|
12
|
+
# @param micro_deposits [Array<Integer>]
|
13
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
16
14
|
#
|
17
15
|
# @return [Lithic::Models::ExternalBankAccounts::MicroDepositCreateResponse]
|
16
|
+
#
|
17
|
+
# @see Lithic::Models::ExternalBankAccounts::MicroDepositCreateParams
|
18
18
|
def create(external_bank_account_token, params)
|
19
19
|
parsed, options = Lithic::Models::ExternalBankAccounts::MicroDepositCreateParams.dump_request(params)
|
20
20
|
@client.request(
|
@@ -26,6 +26,8 @@ module Lithic
|
|
26
26
|
)
|
27
27
|
end
|
28
28
|
|
29
|
+
# @api private
|
30
|
+
#
|
29
31
|
# @param client [Lithic::Client]
|
30
32
|
def initialize(client:)
|
31
33
|
@client = client
|
@@ -8,51 +8,31 @@ module Lithic
|
|
8
8
|
|
9
9
|
# Creates an external bank account within a program or Lithic account.
|
10
10
|
#
|
11
|
-
# @
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
17
|
-
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
#
|
21
|
-
#
|
22
|
-
#
|
23
|
-
#
|
24
|
-
#
|
25
|
-
#
|
26
|
-
#
|
27
|
-
#
|
28
|
-
#
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
32
|
-
#
|
33
|
-
# @option params [String] :processor_token
|
34
|
-
#
|
35
|
-
# @option params [String] :account_token Indicates which Lithic account the external account is associated with. For
|
36
|
-
# external accounts that are associated with the program, account_token field
|
37
|
-
# returned will be null
|
38
|
-
#
|
39
|
-
# @option params [Lithic::Models::ExternalBankAccountAddress] :address Address
|
40
|
-
#
|
41
|
-
# @option params [String] :company_id Optional field that helps identify bank accounts in receipts
|
42
|
-
#
|
43
|
-
# @option params [Date] :dob Date of Birth of the Individual that owns the external bank account
|
44
|
-
#
|
45
|
-
# @option params [String] :doing_business_as Doing Business As
|
46
|
-
#
|
47
|
-
# @option params [String] :name The nickname for this External Bank Account
|
48
|
-
#
|
49
|
-
# @option params [String] :user_defined_id User Defined ID
|
50
|
-
#
|
51
|
-
# @option params [Boolean] :verification_enforcement
|
52
|
-
#
|
53
|
-
# @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
|
11
|
+
# @overload create(account_number:, country:, currency:, financial_account_token:, owner:, owner_type:, routing_number:, type:, verification_method:, processor_token:, account_token: nil, address: nil, company_id: nil, dob: nil, doing_business_as: nil, name: nil, user_defined_id: nil, verification_enforcement: nil, request_options: {})
|
12
|
+
#
|
13
|
+
# @param account_number [String]
|
14
|
+
# @param country [String]
|
15
|
+
# @param currency [String]
|
16
|
+
# @param financial_account_token [String]
|
17
|
+
# @param owner [String]
|
18
|
+
# @param owner_type [Symbol, Lithic::Models::OwnerType]
|
19
|
+
# @param routing_number [String]
|
20
|
+
# @param type [Symbol, Lithic::Models::ExternalBankAccountCreateParams::Type]
|
21
|
+
# @param verification_method [Symbol, Lithic::Models::ExternalBankAccountCreateParams::VerificationMethod]
|
22
|
+
# @param processor_token [String]
|
23
|
+
# @param account_token [String]
|
24
|
+
# @param address [Lithic::Models::ExternalBankAccountAddress]
|
25
|
+
# @param company_id [String]
|
26
|
+
# @param dob [Date]
|
27
|
+
# @param doing_business_as [String]
|
28
|
+
# @param name [String]
|
29
|
+
# @param user_defined_id [String]
|
30
|
+
# @param verification_enforcement [Boolean]
|
31
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
54
32
|
#
|
55
33
|
# @return [Lithic::Models::ExternalBankAccountCreateResponse]
|
34
|
+
#
|
35
|
+
# @see Lithic::Models::ExternalBankAccountCreateParams
|
56
36
|
def create(params)
|
57
37
|
parsed, options = Lithic::Models::ExternalBankAccountCreateParams.dump_request(params)
|
58
38
|
@client.request(
|
@@ -66,13 +46,14 @@ module Lithic
|
|
66
46
|
|
67
47
|
# Get the external bank account by token.
|
68
48
|
#
|
69
|
-
# @
|
70
|
-
#
|
71
|
-
# @param params [Lithic::Models::ExternalBankAccountRetrieveParams, Hash{Symbol=>Object}] .
|
49
|
+
# @overload retrieve(external_bank_account_token, request_options: {})
|
72
50
|
#
|
73
|
-
#
|
51
|
+
# @param external_bank_account_token [String]
|
52
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
74
53
|
#
|
75
54
|
# @return [Lithic::Models::ExternalBankAccountRetrieveResponse]
|
55
|
+
#
|
56
|
+
# @see Lithic::Models::ExternalBankAccountRetrieveParams
|
76
57
|
def retrieve(external_bank_account_token, params = {})
|
77
58
|
@client.request(
|
78
59
|
method: :get,
|
@@ -84,32 +65,23 @@ module Lithic
|
|
84
65
|
|
85
66
|
# Update the external bank account by token.
|
86
67
|
#
|
87
|
-
# @
|
88
|
-
#
|
89
|
-
# @param params [Lithic::Models::ExternalBankAccountUpdateParams, Hash{Symbol=>Object}] .
|
90
|
-
#
|
91
|
-
# @option params [Lithic::Models::ExternalBankAccountAddress] :address Address
|
92
|
-
#
|
93
|
-
# @option params [String] :company_id Optional field that helps identify bank accounts in receipts
|
94
|
-
#
|
95
|
-
# @option params [Date] :dob Date of Birth of the Individual that owns the external bank account
|
68
|
+
# @overload update(external_bank_account_token, address: nil, company_id: nil, dob: nil, doing_business_as: nil, name: nil, owner: nil, owner_type: nil, type: nil, user_defined_id: nil, request_options: {})
|
96
69
|
#
|
97
|
-
#
|
98
|
-
#
|
99
|
-
#
|
100
|
-
#
|
101
|
-
#
|
102
|
-
#
|
103
|
-
#
|
104
|
-
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
# @option params [String] :user_defined_id User Defined ID
|
109
|
-
#
|
110
|
-
# @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
|
70
|
+
# @param external_bank_account_token [String]
|
71
|
+
# @param address [Lithic::Models::ExternalBankAccountAddress]
|
72
|
+
# @param company_id [String]
|
73
|
+
# @param dob [Date]
|
74
|
+
# @param doing_business_as [String]
|
75
|
+
# @param name [String]
|
76
|
+
# @param owner [String]
|
77
|
+
# @param owner_type [Symbol, Lithic::Models::OwnerType]
|
78
|
+
# @param type [Symbol, Lithic::Models::ExternalBankAccountUpdateParams::Type]
|
79
|
+
# @param user_defined_id [String]
|
80
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
111
81
|
#
|
112
82
|
# @return [Lithic::Models::ExternalBankAccountUpdateResponse]
|
83
|
+
#
|
84
|
+
# @see Lithic::Models::ExternalBankAccountUpdateParams
|
113
85
|
def update(external_bank_account_token, params = {})
|
114
86
|
parsed, options = Lithic::Models::ExternalBankAccountUpdateParams.dump_request(params)
|
115
87
|
@client.request(
|
@@ -123,31 +95,22 @@ module Lithic
|
|
123
95
|
|
124
96
|
# List all the external bank accounts for the provided search criteria.
|
125
97
|
#
|
126
|
-
# @
|
127
|
-
#
|
128
|
-
# @option params [String] :account_token
|
129
|
-
#
|
130
|
-
# @option params [Array<Symbol, Lithic::Models::ExternalBankAccountListParams::AccountType>] :account_types
|
131
|
-
#
|
132
|
-
# @option params [Array<String>] :countries
|
133
|
-
#
|
134
|
-
# @option params [String] :ending_before A cursor representing an item's token before which a page of results should end.
|
135
|
-
# Used to retrieve the previous page of results before this item.
|
136
|
-
#
|
137
|
-
# @option params [Array<Symbol, Lithic::Models::OwnerType>] :owner_types
|
138
|
-
#
|
139
|
-
# @option params [Integer] :page_size Page size (for pagination).
|
140
|
-
#
|
141
|
-
# @option params [String] :starting_after A cursor representing an item's token after which a page of results should
|
142
|
-
# begin. Used to retrieve the next page of results after this item.
|
98
|
+
# @overload list(account_token: nil, account_types: nil, countries: nil, ending_before: nil, owner_types: nil, page_size: nil, starting_after: nil, states: nil, verification_states: nil, request_options: {})
|
143
99
|
#
|
144
|
-
#
|
145
|
-
#
|
146
|
-
#
|
147
|
-
#
|
148
|
-
#
|
100
|
+
# @param account_token [String]
|
101
|
+
# @param account_types [Array<Symbol, Lithic::Models::ExternalBankAccountListParams::AccountType>]
|
102
|
+
# @param countries [Array<String>]
|
103
|
+
# @param ending_before [String]
|
104
|
+
# @param owner_types [Array<Symbol, Lithic::Models::OwnerType>]
|
105
|
+
# @param page_size [Integer]
|
106
|
+
# @param starting_after [String]
|
107
|
+
# @param states [Array<Symbol, Lithic::Models::ExternalBankAccountListParams::State>]
|
108
|
+
# @param verification_states [Array<Symbol, Lithic::Models::ExternalBankAccountListParams::VerificationState>]
|
109
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
149
110
|
#
|
150
111
|
# @return [Lithic::CursorPage<Lithic::Models::ExternalBankAccountListResponse>]
|
112
|
+
#
|
113
|
+
# @see Lithic::Models::ExternalBankAccountListParams
|
151
114
|
def list(params = {})
|
152
115
|
parsed, options = Lithic::Models::ExternalBankAccountListParams.dump_request(params)
|
153
116
|
@client.request(
|
@@ -162,15 +125,15 @@ module Lithic
|
|
162
125
|
|
163
126
|
# Retry external bank account micro deposit verification.
|
164
127
|
#
|
165
|
-
# @
|
128
|
+
# @overload retry_micro_deposits(external_bank_account_token, financial_account_token: nil, request_options: {})
|
166
129
|
#
|
167
|
-
# @param
|
168
|
-
#
|
169
|
-
#
|
170
|
-
#
|
171
|
-
# @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
|
130
|
+
# @param external_bank_account_token [String]
|
131
|
+
# @param financial_account_token [String]
|
132
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
172
133
|
#
|
173
134
|
# @return [Lithic::Models::ExternalBankAccountRetryMicroDepositsResponse]
|
135
|
+
#
|
136
|
+
# @see Lithic::Models::ExternalBankAccountRetryMicroDepositsParams
|
174
137
|
def retry_micro_deposits(external_bank_account_token, params = {})
|
175
138
|
parsed, options = Lithic::Models::ExternalBankAccountRetryMicroDepositsParams.dump_request(params)
|
176
139
|
@client.request(
|
@@ -184,15 +147,15 @@ module Lithic
|
|
184
147
|
|
185
148
|
# Retry external bank account prenote verification.
|
186
149
|
#
|
187
|
-
# @
|
188
|
-
#
|
189
|
-
# @param params [Lithic::Models::ExternalBankAccountRetryPrenoteParams, Hash{Symbol=>Object}] .
|
190
|
-
#
|
191
|
-
# @option params [String] :financial_account_token
|
150
|
+
# @overload retry_prenote(external_bank_account_token, financial_account_token: nil, request_options: {})
|
192
151
|
#
|
193
|
-
#
|
152
|
+
# @param external_bank_account_token [String]
|
153
|
+
# @param financial_account_token [String]
|
154
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
194
155
|
#
|
195
156
|
# @return [Lithic::Models::ExternalBankAccountRetryPrenoteResponse]
|
157
|
+
#
|
158
|
+
# @see Lithic::Models::ExternalBankAccountRetryPrenoteParams
|
196
159
|
def retry_prenote(external_bank_account_token, params = {})
|
197
160
|
parsed, options = Lithic::Models::ExternalBankAccountRetryPrenoteParams.dump_request(params)
|
198
161
|
@client.request(
|
@@ -204,6 +167,8 @@ module Lithic
|
|
204
167
|
)
|
205
168
|
end
|
206
169
|
|
170
|
+
# @api private
|
171
|
+
#
|
207
172
|
# @param client [Lithic::Client]
|
208
173
|
def initialize(client:)
|
209
174
|
@client = client
|
@@ -5,29 +5,22 @@ module Lithic
|
|
5
5
|
class ExternalPayments
|
6
6
|
# Create external payment
|
7
7
|
#
|
8
|
-
# @
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
17
|
-
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
# @option params [String] :token
|
21
|
-
#
|
22
|
-
# @option params [String] :memo
|
23
|
-
#
|
24
|
-
# @option params [Symbol, Lithic::Models::ExternalPaymentCreateParams::ProgressTo] :progress_to
|
25
|
-
#
|
26
|
-
# @option params [String] :user_defined_id
|
27
|
-
#
|
28
|
-
# @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
|
8
|
+
# @overload create(amount:, category:, effective_date:, financial_account_token:, payment_type:, token: nil, memo: nil, progress_to: nil, user_defined_id: nil, request_options: {})
|
9
|
+
#
|
10
|
+
# @param amount [Integer]
|
11
|
+
# @param category [Symbol, Lithic::Models::ExternalPaymentCreateParams::Category]
|
12
|
+
# @param effective_date [Date]
|
13
|
+
# @param financial_account_token [String]
|
14
|
+
# @param payment_type [Symbol, Lithic::Models::ExternalPaymentCreateParams::PaymentType]
|
15
|
+
# @param token [String]
|
16
|
+
# @param memo [String]
|
17
|
+
# @param progress_to [Symbol, Lithic::Models::ExternalPaymentCreateParams::ProgressTo]
|
18
|
+
# @param user_defined_id [String]
|
19
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
29
20
|
#
|
30
21
|
# @return [Lithic::Models::ExternalPayment]
|
22
|
+
#
|
23
|
+
# @see Lithic::Models::ExternalPaymentCreateParams
|
31
24
|
def create(params)
|
32
25
|
parsed, options = Lithic::Models::ExternalPaymentCreateParams.dump_request(params)
|
33
26
|
@client.request(
|
@@ -41,13 +34,14 @@ module Lithic
|
|
41
34
|
|
42
35
|
# Get external payment
|
43
36
|
#
|
44
|
-
# @
|
37
|
+
# @overload retrieve(external_payment_token, request_options: {})
|
45
38
|
#
|
46
|
-
# @param
|
47
|
-
#
|
48
|
-
# @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
|
39
|
+
# @param external_payment_token [String]
|
40
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
49
41
|
#
|
50
42
|
# @return [Lithic::Models::ExternalPayment]
|
43
|
+
#
|
44
|
+
# @see Lithic::Models::ExternalPaymentRetrieveParams
|
51
45
|
def retrieve(external_payment_token, params = {})
|
52
46
|
@client.request(
|
53
47
|
method: :get,
|
@@ -59,36 +53,23 @@ module Lithic
|
|
59
53
|
|
60
54
|
# List external payments
|
61
55
|
#
|
62
|
-
# @
|
63
|
-
#
|
64
|
-
# @option params [Time] :begin_ Date string in RFC 3339 format. Only entries created after the specified time
|
65
|
-
# will be included. UTC time zone.
|
66
|
-
#
|
67
|
-
# @option params [String] :business_account_token
|
68
|
-
#
|
69
|
-
# @option params [Symbol, Lithic::Models::ExternalPaymentListParams::Category] :category External Payment category to be returned.
|
70
|
-
#
|
71
|
-
# @option params [Time] :end_ Date string in RFC 3339 format. Only entries created before the specified time
|
72
|
-
# will be included. UTC time zone.
|
73
|
-
#
|
74
|
-
# @option params [String] :ending_before A cursor representing an item's token before which a page of results should end.
|
75
|
-
# Used to retrieve the previous page of results before this item.
|
76
|
-
#
|
77
|
-
# @option params [String] :financial_account_token Globally unique identifier for the financial account or card that will send the
|
78
|
-
# funds. Accepted type dependent on the program's use case.
|
79
|
-
#
|
80
|
-
# @option params [Integer] :page_size Page size (for pagination).
|
81
|
-
#
|
82
|
-
# @option params [Symbol, Lithic::Models::ExternalPaymentListParams::Result] :result External Payment result to be returned.
|
56
|
+
# @overload list(begin_: nil, business_account_token: nil, category: nil, end_: nil, ending_before: nil, financial_account_token: nil, page_size: nil, result: nil, starting_after: nil, status: nil, request_options: {})
|
83
57
|
#
|
84
|
-
#
|
85
|
-
#
|
86
|
-
#
|
87
|
-
#
|
88
|
-
#
|
89
|
-
#
|
58
|
+
# @param begin_ [Time]
|
59
|
+
# @param business_account_token [String]
|
60
|
+
# @param category [Symbol, Lithic::Models::ExternalPaymentListParams::Category]
|
61
|
+
# @param end_ [Time]
|
62
|
+
# @param ending_before [String]
|
63
|
+
# @param financial_account_token [String]
|
64
|
+
# @param page_size [Integer]
|
65
|
+
# @param result [Symbol, Lithic::Models::ExternalPaymentListParams::Result]
|
66
|
+
# @param starting_after [String]
|
67
|
+
# @param status [Symbol, Lithic::Models::ExternalPaymentListParams::Status]
|
68
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
90
69
|
#
|
91
70
|
# @return [Lithic::CursorPage<Lithic::Models::ExternalPayment>]
|
71
|
+
#
|
72
|
+
# @see Lithic::Models::ExternalPaymentListParams
|
92
73
|
def list(params = {})
|
93
74
|
parsed, options = Lithic::Models::ExternalPaymentListParams.dump_request(params)
|
94
75
|
@client.request(
|
@@ -103,17 +84,16 @@ module Lithic
|
|
103
84
|
|
104
85
|
# Cancel external payment
|
105
86
|
#
|
106
|
-
# @
|
107
|
-
#
|
108
|
-
# @param params [Lithic::Models::ExternalPaymentCancelParams, Hash{Symbol=>Object}] .
|
109
|
-
#
|
110
|
-
# @option params [Date] :effective_date
|
111
|
-
#
|
112
|
-
# @option params [String] :memo
|
87
|
+
# @overload cancel(external_payment_token, effective_date:, memo: nil, request_options: {})
|
113
88
|
#
|
114
|
-
#
|
89
|
+
# @param external_payment_token [String]
|
90
|
+
# @param effective_date [Date]
|
91
|
+
# @param memo [String]
|
92
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
115
93
|
#
|
116
94
|
# @return [Lithic::Models::ExternalPayment]
|
95
|
+
#
|
96
|
+
# @see Lithic::Models::ExternalPaymentCancelParams
|
117
97
|
def cancel(external_payment_token, params)
|
118
98
|
parsed, options = Lithic::Models::ExternalPaymentCancelParams.dump_request(params)
|
119
99
|
@client.request(
|
@@ -127,17 +107,16 @@ module Lithic
|
|
127
107
|
|
128
108
|
# Release external payment
|
129
109
|
#
|
130
|
-
# @
|
131
|
-
#
|
132
|
-
# @param params [Lithic::Models::ExternalPaymentReleaseParams, Hash{Symbol=>Object}] .
|
133
|
-
#
|
134
|
-
# @option params [Date] :effective_date
|
110
|
+
# @overload release(external_payment_token, effective_date:, memo: nil, request_options: {})
|
135
111
|
#
|
136
|
-
#
|
137
|
-
#
|
138
|
-
#
|
112
|
+
# @param external_payment_token [String]
|
113
|
+
# @param effective_date [Date]
|
114
|
+
# @param memo [String]
|
115
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
139
116
|
#
|
140
117
|
# @return [Lithic::Models::ExternalPayment]
|
118
|
+
#
|
119
|
+
# @see Lithic::Models::ExternalPaymentReleaseParams
|
141
120
|
def release(external_payment_token, params)
|
142
121
|
parsed, options = Lithic::Models::ExternalPaymentReleaseParams.dump_request(params)
|
143
122
|
@client.request(
|
@@ -151,17 +130,16 @@ module Lithic
|
|
151
130
|
|
152
131
|
# Reverse external payment
|
153
132
|
#
|
154
|
-
# @
|
133
|
+
# @overload reverse(external_payment_token, effective_date:, memo: nil, request_options: {})
|
155
134
|
#
|
156
|
-
# @param
|
157
|
-
#
|
158
|
-
#
|
159
|
-
#
|
160
|
-
# @option params [String] :memo
|
161
|
-
#
|
162
|
-
# @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
|
135
|
+
# @param external_payment_token [String]
|
136
|
+
# @param effective_date [Date]
|
137
|
+
# @param memo [String]
|
138
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
163
139
|
#
|
164
140
|
# @return [Lithic::Models::ExternalPayment]
|
141
|
+
#
|
142
|
+
# @see Lithic::Models::ExternalPaymentReverseParams
|
165
143
|
def reverse(external_payment_token, params)
|
166
144
|
parsed, options = Lithic::Models::ExternalPaymentReverseParams.dump_request(params)
|
167
145
|
@client.request(
|
@@ -175,19 +153,17 @@ module Lithic
|
|
175
153
|
|
176
154
|
# Settle external payment
|
177
155
|
#
|
178
|
-
# @
|
179
|
-
#
|
180
|
-
# @param params [Lithic::Models::ExternalPaymentSettleParams, Hash{Symbol=>Object}] .
|
156
|
+
# @overload settle(external_payment_token, effective_date:, memo: nil, progress_to: nil, request_options: {})
|
181
157
|
#
|
182
|
-
#
|
183
|
-
#
|
184
|
-
#
|
185
|
-
#
|
186
|
-
#
|
187
|
-
#
|
188
|
-
# @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
|
158
|
+
# @param external_payment_token [String]
|
159
|
+
# @param effective_date [Date]
|
160
|
+
# @param memo [String]
|
161
|
+
# @param progress_to [Symbol, Lithic::Models::ExternalPaymentSettleParams::ProgressTo]
|
162
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
189
163
|
#
|
190
164
|
# @return [Lithic::Models::ExternalPayment]
|
165
|
+
#
|
166
|
+
# @see Lithic::Models::ExternalPaymentSettleParams
|
191
167
|
def settle(external_payment_token, params)
|
192
168
|
parsed, options = Lithic::Models::ExternalPaymentSettleParams.dump_request(params)
|
193
169
|
@client.request(
|
@@ -199,6 +175,8 @@ module Lithic
|
|
199
175
|
)
|
200
176
|
end
|
201
177
|
|
178
|
+
# @api private
|
179
|
+
#
|
202
180
|
# @param client [Lithic::Client]
|
203
181
|
def initialize(client:)
|
204
182
|
@client = client
|
@@ -6,19 +6,16 @@ module Lithic
|
|
6
6
|
class Balances
|
7
7
|
# Get the balances for a given financial account.
|
8
8
|
#
|
9
|
-
# @
|
9
|
+
# @overload list(financial_account_token, balance_date: nil, last_transaction_event_token: nil, request_options: {})
|
10
10
|
#
|
11
|
-
# @param
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
# @option params [String] :last_transaction_event_token Balance after a given financial event occured. For example, passing the
|
16
|
-
# event_token of a $5 CARD_CLEARING financial event will return a balance
|
17
|
-
# decreased by $5
|
18
|
-
#
|
19
|
-
# @option params [Lithic::RequestOptions, Hash{Symbol=>Object}, nil] :request_options
|
11
|
+
# @param financial_account_token [String]
|
12
|
+
# @param balance_date [Time]
|
13
|
+
# @param last_transaction_event_token [String]
|
14
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
20
15
|
#
|
21
16
|
# @return [Lithic::SinglePage<Lithic::Models::FinancialAccounts::BalanceListResponse>]
|
17
|
+
#
|
18
|
+
# @see Lithic::Models::FinancialAccounts::BalanceListParams
|
22
19
|
def list(financial_account_token, params = {})
|
23
20
|
parsed, options = Lithic::Models::FinancialAccounts::BalanceListParams.dump_request(params)
|
24
21
|
@client.request(
|
@@ -31,6 +28,8 @@ module Lithic
|
|
31
28
|
)
|
32
29
|
end
|
33
30
|
|
31
|
+
# @api private
|
32
|
+
#
|
34
33
|
# @param client [Lithic::Client]
|
35
34
|
def initialize(client:)
|
36
35
|
@client = client
|