lithic 0.1.0.pre.alpha.16 → 0.1.0.pre.alpha.18
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 +34 -0
- data/README.md +7 -7
- data/lib/lithic/file_part.rb +55 -0
- data/lib/lithic/internal/cursor_page.rb +1 -1
- data/lib/lithic/internal/single_page.rb +1 -1
- data/lib/lithic/internal/transport/base_client.rb +7 -7
- data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -1
- data/lib/lithic/internal/type/array_of.rb +2 -0
- data/lib/lithic/internal/type/base_model.rb +1 -1
- data/lib/lithic/internal/type/base_page.rb +1 -1
- data/lib/lithic/internal/type/converter.rb +1 -1
- data/lib/lithic/internal/type/{io_like.rb → file_input.rb} +8 -4
- data/lib/lithic/internal/type/hash_of.rb +2 -0
- data/lib/lithic/internal/util.rb +69 -61
- data/lib/lithic/models/account.rb +50 -19
- data/lib/lithic/models/account_holder.rb +139 -59
- data/lib/lithic/models/account_holder_create_params.rb +144 -52
- data/lib/lithic/models/account_holder_create_response.rb +18 -7
- data/lib/lithic/models/account_holder_list_params.rb +33 -11
- data/lib/lithic/models/account_holder_simulate_enrollment_document_review_params.rb +13 -4
- data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +10 -3
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +169 -60
- data/lib/lithic/models/account_holder_update_params.rb +147 -53
- data/lib/lithic/models/account_holder_update_response.rb +202 -74
- data/lib/lithic/models/account_holder_upload_document_params.rb +4 -2
- data/lib/lithic/models/account_list_params.rb +17 -5
- data/lib/lithic/models/account_spend_limits.rb +27 -9
- data/lib/lithic/models/account_update_params.rb +17 -5
- data/lib/lithic/models/address.rb +17 -6
- data/lib/lithic/models/address_update.rb +17 -6
- data/lib/lithic/models/aggregate_balance.rb +26 -10
- data/lib/lithic/models/aggregate_balance_list_params.rb +2 -1
- data/lib/lithic/models/auth_rules/auth_rule.rb +24 -9
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +8 -3
- data/lib/lithic/models/auth_rules/v2/backtest_create_params.rb +4 -2
- data/lib/lithic/models/auth_rules/v2/backtest_create_response.rb +1 -1
- data/lib/lithic/models/auth_rules/v2/backtest_results.rb +46 -18
- data/lib/lithic/models/auth_rules/v2_apply_params.rb +8 -4
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +31 -12
- data/lib/lithic/models/auth_rules/v2_create_params.rb +14 -7
- data/lib/lithic/models/auth_rules/v2_create_response.rb +31 -12
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +2 -1
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +31 -12
- data/lib/lithic/models/auth_rules/v2_list_params.rb +15 -5
- data/lib/lithic/models/auth_rules/v2_list_response.rb +31 -12
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +31 -12
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +32 -12
- data/lib/lithic/models/auth_rules/v2_update_params.rb +15 -6
- data/lib/lithic/models/auth_rules/v2_update_response.rb +31 -12
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +27 -7
- data/lib/lithic/models/auth_stream_secret.rb +1 -1
- data/lib/lithic/models/balance.rb +26 -10
- data/lib/lithic/models/balance_list_params.rb +12 -4
- data/lib/lithic/models/book_transfer_create_params.rb +23 -8
- data/lib/lithic/models/book_transfer_list_params.rb +28 -9
- data/lib/lithic/models/book_transfer_response.rb +54 -20
- data/lib/lithic/models/book_transfer_reverse_params.rb +2 -1
- data/lib/lithic/models/card.rb +33 -0
- data/lib/lithic/models/card_convert_physical_params.rb +12 -4
- data/lib/lithic/models/card_create_params.rb +45 -15
- data/lib/lithic/models/card_embed_params.rb +4 -2
- data/lib/lithic/models/card_list_params.rb +21 -7
- data/lib/lithic/models/card_program.rb +17 -7
- data/lib/lithic/models/card_program_list_params.rb +11 -3
- data/lib/lithic/models/card_provision_params.rb +20 -6
- data/lib/lithic/models/card_reissue_params.rb +12 -4
- data/lib/lithic/models/card_renew_params.rb +18 -6
- data/lib/lithic/models/card_search_by_pan_params.rb +2 -1
- data/lib/lithic/models/card_spend_limits.rb +27 -9
- data/lib/lithic/models/card_update_params.rb +21 -7
- data/lib/lithic/models/cards/aggregate_balance_list_params.rb +4 -2
- data/lib/lithic/models/cards/aggregate_balance_list_response.rb +24 -9
- data/lib/lithic/models/cards/balance_list_params.rb +7 -2
- data/lib/lithic/models/cards/balance_list_response.rb +26 -10
- data/lib/lithic/models/cards/financial_transaction_list_params.rb +21 -7
- data/lib/lithic/models/carrier.rb +1 -1
- data/lib/lithic/models/credit_products/prime_rate_create_params.rb +4 -2
- data/lib/lithic/models/credit_products/prime_rate_retrieve_params.rb +4 -2
- data/lib/lithic/models/credit_products/prime_rate_retrieve_response.rb +6 -4
- data/lib/lithic/models/digital_card_art.rb +13 -7
- data/lib/lithic/models/digital_card_art_list_params.rb +11 -3
- data/lib/lithic/models/dispute.rb +40 -18
- data/lib/lithic/models/dispute_create_params.rb +10 -5
- data/lib/lithic/models/dispute_evidence.rb +17 -7
- data/lib/lithic/models/dispute_initiate_evidence_upload_params.rb +2 -1
- data/lib/lithic/models/dispute_list_evidences_params.rb +17 -5
- data/lib/lithic/models/dispute_list_params.rb +21 -7
- data/lib/lithic/models/dispute_update_params.rb +8 -4
- data/lib/lithic/models/document.rb +31 -14
- data/lib/lithic/models/event.rb +9 -3
- data/lib/lithic/models/event_list_attempts_params.rb +18 -5
- data/lib/lithic/models/event_list_params.rb +21 -7
- data/lib/lithic/models/event_subscription.rb +7 -3
- data/lib/lithic/models/events/subscription_create_params.rb +12 -4
- data/lib/lithic/models/events/subscription_list_attempts_params.rb +18 -5
- data/lib/lithic/models/events/subscription_list_params.rb +11 -3
- data/lib/lithic/models/events/subscription_recover_params.rb +9 -2
- data/lib/lithic/models/events/subscription_replay_missing_params.rb +9 -2
- data/lib/lithic/models/events/subscription_retrieve_secret_response.rb +1 -1
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +2 -1
- data/lib/lithic/models/events/subscription_update_params.rb +12 -4
- data/lib/lithic/models/external_bank_account_create_params.rb +40 -16
- data/lib/lithic/models/external_bank_account_create_response.rb +53 -22
- data/lib/lithic/models/external_bank_account_list_params.rb +17 -3
- data/lib/lithic/models/external_bank_account_list_response.rb +53 -22
- data/lib/lithic/models/external_bank_account_retrieve_response.rb +53 -22
- data/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rb +54 -22
- data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +53 -22
- data/lib/lithic/models/external_bank_account_update_params.rb +21 -8
- data/lib/lithic/models/external_bank_account_update_response.rb +53 -22
- data/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rb +54 -22
- data/lib/lithic/models/external_payment_list_params.rb +27 -9
- data/lib/lithic/models/financial_account.rb +25 -8
- data/lib/lithic/models/financial_account_list_params.rb +6 -3
- data/lib/lithic/models/financial_account_update_status_params.rb +4 -2
- data/lib/lithic/models/financial_accounts/balance_list_params.rb +7 -2
- data/lib/lithic/models/financial_accounts/balance_list_response.rb +26 -10
- data/lib/lithic/models/financial_accounts/credit_configuration_update_params.rb +6 -2
- data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +12 -5
- data/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb +22 -7
- data/lib/lithic/models/financial_accounts/loan_tape.rb +119 -47
- data/lib/lithic/models/financial_accounts/loan_tape_list_params.rb +17 -5
- data/lib/lithic/models/financial_accounts/loan_tape_retrieve_params.rb +2 -1
- data/lib/lithic/models/financial_accounts/statement.rb +97 -40
- data/lib/lithic/models/financial_accounts/statement_list_params.rb +19 -6
- data/lib/lithic/models/financial_accounts/statement_retrieve_params.rb +2 -1
- data/lib/lithic/models/financial_accounts/statements/line_item_list_params.rb +14 -4
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +25 -9
- data/lib/lithic/models/financial_transaction.rb +42 -15
- data/lib/lithic/models/kyb.rb +101 -36
- data/lib/lithic/models/kyb_business_entity.rb +35 -12
- data/lib/lithic/models/kyc.rb +34 -12
- data/lib/lithic/models/kyc_exempt.rb +23 -9
- data/lib/lithic/models/management_operation_list_params.rb +25 -8
- data/lib/lithic/models/message_attempt.rb +17 -7
- data/lib/lithic/models/{card_list_response.rb → non_pci_card.rb} +96 -51
- data/lib/lithic/models/payment.rb +52 -18
- data/lib/lithic/models/payment_create_params.rb +14 -1
- data/lib/lithic/models/payment_create_response.rb +1 -1
- data/lib/lithic/models/payment_list_params.rb +23 -5
- data/lib/lithic/models/payment_retry_response.rb +1 -1
- data/lib/lithic/models/payment_simulate_action_params.rb +6 -3
- data/lib/lithic/models/payment_simulate_action_response.rb +5 -3
- data/lib/lithic/models/payment_simulate_receipt_params.rb +14 -5
- data/lib/lithic/models/payment_simulate_receipt_response.rb +5 -3
- data/lib/lithic/models/payment_simulate_release_params.rb +2 -1
- data/lib/lithic/models/payment_simulate_release_response.rb +5 -3
- data/lib/lithic/models/payment_simulate_return_params.rb +4 -2
- data/lib/lithic/models/payment_simulate_return_response.rb +5 -3
- data/lib/lithic/models/reports/settlement/network_total_list_params.rb +30 -11
- data/lib/lithic/models/reports/settlement/network_total_list_response.rb +39 -14
- data/lib/lithic/models/reports/settlement/network_total_retrieve_response.rb +39 -14
- data/lib/lithic/models/reports/settlement_list_details_params.rb +11 -3
- data/lib/lithic/models/required_document.rb +10 -3
- data/lib/lithic/models/responder_endpoint_check_status_params.rb +2 -1
- data/lib/lithic/models/responder_endpoint_create_params.rb +4 -2
- data/lib/lithic/models/responder_endpoint_create_response.rb +1 -1
- data/lib/lithic/models/responder_endpoint_delete_params.rb +2 -1
- data/lib/lithic/models/responder_endpoint_status.rb +3 -2
- data/lib/lithic/models/settlement_detail.rb +50 -21
- data/lib/lithic/models/settlement_report.rb +29 -10
- data/lib/lithic/models/settlement_summary_details.rb +21 -8
- data/lib/lithic/models/shipping_address.rb +31 -11
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +215 -71
- data/lib/lithic/models/three_ds/authentication_simulate_otp_entry_params.rb +9 -2
- data/lib/lithic/models/three_ds/authentication_simulate_params.rb +28 -8
- data/lib/lithic/models/three_ds/authentication_simulate_response.rb +5 -1
- data/lib/lithic/models/three_ds/challenge_response.rb +7 -2
- data/lib/lithic/models/three_ds/decisioning_retrieve_secret_response.rb +1 -1
- data/lib/lithic/models/tokenization.rb +37 -17
- data/lib/lithic/models/tokenization_decisioning_rotate_secret_response.rb +1 -1
- data/lib/lithic/models/tokenization_list_params.rb +22 -8
- data/lib/lithic/models/tokenization_resend_activation_code_params.rb +6 -1
- data/lib/lithic/models/tokenization_secret.rb +1 -1
- data/lib/lithic/models/tokenization_simulate_params.rb +22 -8
- data/lib/lithic/models/tokenization_update_digital_card_art_params.rb +6 -1
- data/lib/lithic/models/transaction.rb +248 -89
- data/lib/lithic/models/transaction_list_params.rb +26 -9
- data/lib/lithic/models/transaction_simulate_authorization_advice_params.rb +8 -2
- data/lib/lithic/models/transaction_simulate_authorization_advice_response.rb +3 -2
- data/lib/lithic/models/transaction_simulate_authorization_params.rb +27 -10
- data/lib/lithic/models/transaction_simulate_authorization_response.rb +7 -2
- data/lib/lithic/models/transaction_simulate_clearing_params.rb +8 -2
- data/lib/lithic/models/transaction_simulate_clearing_response.rb +1 -1
- data/lib/lithic/models/transaction_simulate_credit_authorization_params.rb +15 -5
- data/lib/lithic/models/transaction_simulate_credit_authorization_response.rb +3 -2
- data/lib/lithic/models/transaction_simulate_return_params.rb +6 -3
- data/lib/lithic/models/transaction_simulate_return_response.rb +3 -2
- data/lib/lithic/models/transaction_simulate_return_reversal_params.rb +2 -1
- data/lib/lithic/models/transaction_simulate_return_reversal_response.rb +1 -1
- data/lib/lithic/models/transaction_simulate_void_params.rb +10 -3
- data/lib/lithic/models/transaction_simulate_void_response.rb +1 -1
- data/lib/lithic/models/transactions/events/enhanced_data.rb +52 -24
- data/lib/lithic/models/transfer.rb +46 -17
- data/lib/lithic/models/transfer_create_params.rb +17 -5
- data/lib/lithic/resources/account_holders.rb +166 -60
- data/lib/lithic/resources/accounts.rb +40 -13
- data/lib/lithic/resources/aggregate_balances.rb +2 -1
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +10 -5
- data/lib/lithic/resources/auth_rules/v2.rb +68 -30
- data/lib/lithic/resources/balances.rb +12 -4
- data/lib/lithic/resources/book_transfers.rb +57 -20
- data/lib/lithic/resources/card_programs.rb +13 -4
- data/lib/lithic/resources/cards/aggregate_balances.rb +4 -2
- data/lib/lithic/resources/cards/balances.rb +8 -2
- data/lib/lithic/resources/cards/financial_transactions.rb +25 -8
- data/lib/lithic/resources/cards.rb +177 -69
- data/lib/lithic/resources/credit_products/extended_credit.rb +2 -1
- data/lib/lithic/resources/credit_products/prime_rates.rb +12 -6
- data/lib/lithic/resources/digital_card_art.rb +17 -4
- data/lib/lithic/resources/disputes.rb +61 -22
- data/lib/lithic/resources/events/subscriptions.rb +78 -21
- data/lib/lithic/resources/events.rb +40 -12
- data/lib/lithic/resources/external_bank_accounts.rb +79 -27
- data/lib/lithic/resources/external_payments.rb +46 -14
- data/lib/lithic/resources/financial_accounts/balances.rb +9 -3
- data/lib/lithic/resources/financial_accounts/credit_configuration.rb +10 -4
- data/lib/lithic/resources/financial_accounts/financial_transactions.rb +28 -10
- data/lib/lithic/resources/financial_accounts/loan_tapes.rb +23 -8
- data/lib/lithic/resources/financial_accounts/statements/line_items.rb +16 -5
- data/lib/lithic/resources/financial_accounts/statements.rb +25 -9
- data/lib/lithic/resources/financial_accounts.rb +22 -11
- data/lib/lithic/resources/management_operations.rb +31 -10
- data/lib/lithic/resources/payments.rb +64 -17
- data/lib/lithic/resources/reports/settlement/network_totals.rb +32 -12
- data/lib/lithic/resources/reports/settlement.rb +15 -5
- data/lib/lithic/resources/responder_endpoints.rb +8 -4
- data/lib/lithic/resources/three_ds/authentication.rb +21 -5
- data/lib/lithic/resources/three_ds/decisioning.rb +8 -2
- data/lib/lithic/resources/tokenizations.rb +70 -25
- data/lib/lithic/resources/transactions/enhanced_commercial_data.rb +2 -1
- data/lib/lithic/resources/transactions/events/enhanced_commercial_data.rb +2 -1
- data/lib/lithic/resources/transactions.rb +106 -37
- data/lib/lithic/resources/transfers.rb +17 -5
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +4 -9
- data/rbi/lib/lithic/file_part.rbi +34 -0
- data/rbi/lib/lithic/internal/transport/base_client.rbi +17 -3
- data/rbi/lib/lithic/internal/type/{io_like.rbi → file_input.rbi} +6 -2
- data/rbi/lib/lithic/internal/util.rbi +24 -19
- data/rbi/lib/lithic/models/account.rbi +62 -6
- data/rbi/lib/lithic/models/account_holder.rbi +139 -8
- data/rbi/lib/lithic/models/account_holder_create_params.rbi +131 -6
- data/rbi/lib/lithic/models/account_holder_create_response.rbi +14 -3
- data/rbi/lib/lithic/models/account_holder_list_params.rbi +19 -0
- data/rbi/lib/lithic/models/account_holder_simulate_enrollment_document_review_params.rbi +5 -0
- data/rbi/lib/lithic/models/account_holder_simulate_enrollment_review_params.rbi +10 -2
- data/rbi/lib/lithic/models/account_holder_simulate_enrollment_review_response.rbi +172 -17
- data/rbi/lib/lithic/models/account_holder_update_params.rbi +99 -0
- data/rbi/lib/lithic/models/account_holder_update_response.rbi +176 -19
- data/rbi/lib/lithic/models/account_holder_upload_document_params.rbi +7 -2
- data/rbi/lib/lithic/models/account_list_params.rbi +10 -3
- data/rbi/lib/lithic/models/account_spend_limits.rbi +30 -6
- data/rbi/lib/lithic/models/account_update_params.rbi +16 -0
- data/rbi/lib/lithic/models/address.rbi +19 -2
- data/rbi/lib/lithic/models/address_update.rbi +17 -2
- data/rbi/lib/lithic/models/aggregate_balance.rbi +14 -0
- data/rbi/lib/lithic/models/aggregate_balance_list_params.rbi +5 -2
- data/rbi/lib/lithic/models/auth_rules/auth_rule.rbi +15 -0
- data/rbi/lib/lithic/models/auth_rules/auth_rule_condition.rbi +54 -2
- data/rbi/lib/lithic/models/auth_rules/v2/backtest_create_params.rbi +7 -2
- data/rbi/lib/lithic/models/auth_rules/v2/backtest_create_response.rbi +4 -2
- data/rbi/lib/lithic/models/auth_rules/v2/backtest_results.rbi +60 -12
- data/rbi/lib/lithic/models/auth_rules/v2_apply_params.rbi +5 -3
- data/rbi/lib/lithic/models/auth_rules/v2_apply_response.rbi +22 -4
- data/rbi/lib/lithic/models/auth_rules/v2_create_params.rbi +7 -0
- data/rbi/lib/lithic/models/auth_rules/v2_create_response.rbi +22 -4
- data/rbi/lib/lithic/models/auth_rules/v2_draft_params.rbi +5 -2
- data/rbi/lib/lithic/models/auth_rules/v2_draft_response.rbi +22 -4
- data/rbi/lib/lithic/models/auth_rules/v2_list_params.rbi +7 -0
- data/rbi/lib/lithic/models/auth_rules/v2_list_response.rbi +22 -4
- data/rbi/lib/lithic/models/auth_rules/v2_promote_response.rbi +22 -4
- data/rbi/lib/lithic/models/auth_rules/v2_retrieve_response.rbi +22 -4
- data/rbi/lib/lithic/models/auth_rules/v2_update_params.rbi +10 -0
- data/rbi/lib/lithic/models/auth_rules/v2_update_response.rbi +22 -4
- data/rbi/lib/lithic/models/auth_rules/velocity_limit_params.rbi +33 -5
- data/rbi/lib/lithic/models/auth_stream_secret.rbi +4 -2
- data/rbi/lib/lithic/models/balance.rbi +14 -0
- data/rbi/lib/lithic/models/balance_list_params.rbi +5 -0
- data/rbi/lib/lithic/models/book_transfer_create_params.rbi +12 -0
- data/rbi/lib/lithic/models/book_transfer_list_params.rbi +14 -0
- data/rbi/lib/lithic/models/book_transfer_response.rbi +41 -2
- data/rbi/lib/lithic/models/book_transfer_reverse_params.rbi +5 -2
- data/rbi/lib/lithic/models/card.rbi +36 -0
- data/rbi/lib/lithic/models/card_convert_physical_params.rbi +18 -3
- data/rbi/lib/lithic/models/card_create_params.rbi +84 -0
- data/rbi/lib/lithic/models/card_embed_params.rbi +7 -2
- data/rbi/lib/lithic/models/card_list_params.rbi +11 -0
- data/rbi/lib/lithic/models/card_program.rbi +8 -0
- data/rbi/lib/lithic/models/card_program_list_params.rbi +11 -2
- data/rbi/lib/lithic/models/card_provision_params.rbi +17 -0
- data/rbi/lib/lithic/models/card_reissue_params.rbi +18 -3
- data/rbi/lib/lithic/models/card_renew_params.rbi +21 -0
- data/rbi/lib/lithic/models/card_search_by_pan_params.rbi +5 -2
- data/rbi/lib/lithic/models/card_spend_limits.rbi +30 -6
- data/rbi/lib/lithic/models/card_update_params.rbi +35 -0
- data/rbi/lib/lithic/models/cards/aggregate_balance_list_params.rbi +7 -2
- data/rbi/lib/lithic/models/cards/aggregate_balance_list_response.rbi +13 -0
- data/rbi/lib/lithic/models/cards/balance_list_params.rbi +9 -2
- data/rbi/lib/lithic/models/cards/balance_list_response.rbi +14 -0
- data/rbi/lib/lithic/models/cards/financial_transaction_list_params.rbi +11 -0
- data/rbi/lib/lithic/models/carrier.rbi +4 -2
- data/rbi/lib/lithic/models/credit_products/prime_rate_create_params.rbi +7 -2
- data/rbi/lib/lithic/models/credit_products/prime_rate_retrieve_params.rbi +7 -2
- data/rbi/lib/lithic/models/credit_products/prime_rate_retrieve_response.rbi +12 -4
- data/rbi/lib/lithic/models/digital_card_art.rbi +8 -3
- data/rbi/lib/lithic/models/digital_card_art_list_params.rbi +11 -2
- data/rbi/lib/lithic/models/dispute.rbi +66 -0
- data/rbi/lib/lithic/models/dispute_create_params.rbi +6 -3
- data/rbi/lib/lithic/models/dispute_evidence.rbi +15 -3
- data/rbi/lib/lithic/models/dispute_initiate_evidence_upload_params.rbi +5 -2
- data/rbi/lib/lithic/models/dispute_list_evidences_params.rbi +10 -3
- data/rbi/lib/lithic/models/dispute_list_params.rbi +11 -0
- data/rbi/lib/lithic/models/dispute_update_params.rbi +5 -3
- data/rbi/lib/lithic/models/document.rbi +27 -3
- data/rbi/lib/lithic/models/event.rbi +39 -2
- data/rbi/lib/lithic/models/event_list_attempts_params.rbi +9 -0
- data/rbi/lib/lithic/models/event_list_params.rbi +11 -0
- data/rbi/lib/lithic/models/event_subscription.rbi +10 -2
- data/rbi/lib/lithic/models/events/subscription_create_params.rbi +12 -2
- data/rbi/lib/lithic/models/events/subscription_list_attempts_params.rbi +9 -0
- data/rbi/lib/lithic/models/events/subscription_list_params.rbi +11 -2
- data/rbi/lib/lithic/models/events/subscription_recover_params.rbi +9 -2
- data/rbi/lib/lithic/models/events/subscription_replay_missing_params.rbi +9 -2
- data/rbi/lib/lithic/models/events/subscription_retrieve_secret_response.rbi +4 -2
- data/rbi/lib/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -2
- data/rbi/lib/lithic/models/events/subscription_update_params.rbi +12 -2
- data/rbi/lib/lithic/models/external_bank_account_create_params.rbi +20 -0
- data/rbi/lib/lithic/models/external_bank_account_create_response.rbi +33 -0
- data/rbi/lib/lithic/models/external_bank_account_list_params.rbi +5 -0
- data/rbi/lib/lithic/models/external_bank_account_list_response.rbi +33 -0
- data/rbi/lib/lithic/models/external_bank_account_retrieve_response.rbi +33 -0
- data/rbi/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +33 -0
- data/rbi/lib/lithic/models/external_bank_account_retry_prenote_response.rbi +33 -0
- data/rbi/lib/lithic/models/external_bank_account_update_params.rbi +9 -0
- data/rbi/lib/lithic/models/external_bank_account_update_response.rbi +33 -0
- data/rbi/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +33 -0
- data/rbi/lib/lithic/models/external_payment_list_params.rbi +14 -0
- data/rbi/lib/lithic/models/financial_account.rbi +8 -0
- data/rbi/lib/lithic/models/financial_account_list_params.rbi +9 -2
- data/rbi/lib/lithic/models/financial_account_update_status_params.rbi +7 -2
- data/rbi/lib/lithic/models/financial_accounts/balance_list_params.rbi +9 -2
- data/rbi/lib/lithic/models/financial_accounts/balance_list_response.rbi +14 -0
- data/rbi/lib/lithic/models/financial_accounts/credit_configuration_update_params.rbi +2 -0
- data/rbi/lib/lithic/models/financial_accounts/financial_account_credit_config.rbi +5 -0
- data/rbi/lib/lithic/models/financial_accounts/financial_transaction_list_params.rbi +11 -0
- data/rbi/lib/lithic/models/financial_accounts/loan_tape.rbi +94 -13
- data/rbi/lib/lithic/models/financial_accounts/loan_tape_list_params.rbi +10 -3
- data/rbi/lib/lithic/models/financial_accounts/loan_tape_retrieve_params.rbi +5 -2
- data/rbi/lib/lithic/models/financial_accounts/statement.rbi +72 -10
- data/rbi/lib/lithic/models/financial_accounts/statement_list_params.rbi +10 -0
- data/rbi/lib/lithic/models/financial_accounts/statement_retrieve_params.rbi +5 -2
- data/rbi/lib/lithic/models/financial_accounts/statements/line_item_list_params.rbi +7 -3
- data/rbi/lib/lithic/models/financial_accounts/statements/statement_line_items.rbi +10 -0
- data/rbi/lib/lithic/models/financial_transaction.rbi +44 -2
- data/rbi/lib/lithic/models/kyb.rbi +94 -4
- data/rbi/lib/lithic/models/kyb_business_entity.rbi +28 -2
- data/rbi/lib/lithic/models/kyc.rbi +40 -4
- data/rbi/lib/lithic/models/kyc_exempt.rbi +13 -0
- data/rbi/lib/lithic/models/management_operation_list_params.rbi +13 -0
- data/rbi/lib/lithic/models/message_attempt.rbi +10 -3
- data/rbi/lib/lithic/models/{card_list_response.rbi → non_pci_card.rbi} +137 -62
- data/rbi/lib/lithic/models/payment.rbi +57 -2
- data/rbi/lib/lithic/models/payment_create_params.rbi +2 -0
- data/rbi/lib/lithic/models/payment_create_response.rbi +4 -2
- data/rbi/lib/lithic/models/payment_list_params.rbi +9 -0
- data/rbi/lib/lithic/models/payment_retry_response.rbi +4 -2
- data/rbi/lib/lithic/models/payment_simulate_action_params.rbi +9 -2
- data/rbi/lib/lithic/models/payment_simulate_action_response.rbi +8 -2
- data/rbi/lib/lithic/models/payment_simulate_receipt_params.rbi +13 -3
- data/rbi/lib/lithic/models/payment_simulate_receipt_response.rbi +8 -2
- data/rbi/lib/lithic/models/payment_simulate_release_params.rbi +5 -2
- data/rbi/lib/lithic/models/payment_simulate_release_response.rbi +8 -2
- data/rbi/lib/lithic/models/payment_simulate_return_params.rbi +7 -2
- data/rbi/lib/lithic/models/payment_simulate_return_response.rbi +8 -2
- data/rbi/lib/lithic/models/reports/settlement/network_total_list_params.rbi +16 -0
- data/rbi/lib/lithic/models/reports/settlement/network_total_list_response.rbi +26 -2
- data/rbi/lib/lithic/models/reports/settlement/network_total_retrieve_response.rbi +26 -2
- data/rbi/lib/lithic/models/reports/settlement_list_details_params.rbi +11 -2
- data/rbi/lib/lithic/models/required_document.rbi +10 -2
- data/rbi/lib/lithic/models/responder_endpoint_check_status_params.rbi +5 -2
- data/rbi/lib/lithic/models/responder_endpoint_create_params.rbi +7 -2
- data/rbi/lib/lithic/models/responder_endpoint_create_response.rbi +4 -2
- data/rbi/lib/lithic/models/responder_endpoint_delete_params.rbi +5 -2
- data/rbi/lib/lithic/models/responder_endpoint_status.rbi +6 -2
- data/rbi/lib/lithic/models/settlement_detail.rbi +26 -0
- data/rbi/lib/lithic/models/settlement_report.rbi +25 -0
- data/rbi/lib/lithic/models/settlement_summary_details.rbi +11 -0
- data/rbi/lib/lithic/models/shipping_address.rbi +20 -0
- data/rbi/lib/lithic/models/three_ds/authentication_retrieve_response.rbi +165 -19
- data/rbi/lib/lithic/models/three_ds/authentication_simulate_otp_entry_params.rbi +8 -2
- data/rbi/lib/lithic/models/three_ds/authentication_simulate_params.rbi +31 -6
- data/rbi/lib/lithic/models/three_ds/authentication_simulate_response.rbi +5 -2
- data/rbi/lib/lithic/models/three_ds/challenge_response.rbi +9 -2
- data/rbi/lib/lithic/models/three_ds/decisioning_retrieve_secret_response.rbi +4 -2
- data/rbi/lib/lithic/models/tokenization.rbi +27 -2
- data/rbi/lib/lithic/models/tokenization_decisioning_rotate_secret_response.rbi +4 -2
- data/rbi/lib/lithic/models/tokenization_list_params.rbi +11 -0
- data/rbi/lib/lithic/models/tokenization_resend_activation_code_params.rbi +7 -2
- data/rbi/lib/lithic/models/tokenization_secret.rbi +4 -2
- data/rbi/lib/lithic/models/tokenization_simulate_params.rbi +11 -0
- data/rbi/lib/lithic/models/tokenization_update_digital_card_art_params.rbi +8 -2
- data/rbi/lib/lithic/models/transaction.rbi +246 -35
- data/rbi/lib/lithic/models/transaction_list_params.rbi +14 -0
- data/rbi/lib/lithic/models/transaction_simulate_authorization_advice_params.rbi +8 -2
- data/rbi/lib/lithic/models/transaction_simulate_authorization_advice_response.rbi +6 -2
- data/rbi/lib/lithic/models/transaction_simulate_authorization_params.rbi +35 -0
- data/rbi/lib/lithic/models/transaction_simulate_authorization_response.rbi +7 -2
- data/rbi/lib/lithic/models/transaction_simulate_clearing_params.rbi +15 -2
- data/rbi/lib/lithic/models/transaction_simulate_clearing_response.rbi +4 -2
- data/rbi/lib/lithic/models/transaction_simulate_credit_authorization_params.rbi +17 -2
- data/rbi/lib/lithic/models/transaction_simulate_credit_authorization_response.rbi +6 -2
- data/rbi/lib/lithic/models/transaction_simulate_return_params.rbi +9 -2
- data/rbi/lib/lithic/models/transaction_simulate_return_response.rbi +6 -2
- data/rbi/lib/lithic/models/transaction_simulate_return_reversal_params.rbi +5 -2
- data/rbi/lib/lithic/models/transaction_simulate_return_reversal_response.rbi +4 -2
- data/rbi/lib/lithic/models/transaction_simulate_void_params.rbi +14 -2
- data/rbi/lib/lithic/models/transaction_simulate_void_response.rbi +4 -2
- data/rbi/lib/lithic/models/transactions/events/enhanced_data.rbi +57 -16
- data/rbi/lib/lithic/models/transfer.rbi +41 -2
- data/rbi/lib/lithic/models/transfer_create_params.rbi +17 -2
- data/rbi/lib/lithic/resources/cards.rbi +8 -8
- data/sig/lithic/file_part.rbs +21 -0
- data/sig/lithic/internal/transport/base_client.rbs +9 -3
- data/sig/lithic/internal/type/{io_like.rbs → file_input.rbs} +1 -1
- data/sig/lithic/internal/util.rbs +14 -12
- data/sig/lithic/models/card.rbs +19 -0
- data/sig/lithic/models/{card_list_response.rbs → non_pci_card.rbs} +31 -31
- data/sig/lithic/resources/cards.rbs +8 -8
- metadata +14 -29
- data/lib/lithic/models/card_convert_physical_response.rb +0 -393
- data/lib/lithic/models/card_create_response.rb +0 -392
- data/lib/lithic/models/card_reissue_response.rb +0 -392
- data/lib/lithic/models/card_renew_response.rb +0 -392
- data/lib/lithic/models/card_retrieve_response.rb +0 -392
- data/lib/lithic/models/card_search_by_pan_response.rb +0 -392
- data/lib/lithic/models/card_update_response.rb +0 -392
- data/rbi/lib/lithic/models/card_convert_physical_response.rbi +0 -467
- data/rbi/lib/lithic/models/card_create_response.rbi +0 -458
- data/rbi/lib/lithic/models/card_reissue_response.rbi +0 -458
- data/rbi/lib/lithic/models/card_renew_response.rbi +0 -457
- data/rbi/lib/lithic/models/card_retrieve_response.rbi +0 -459
- data/rbi/lib/lithic/models/card_search_by_pan_response.rbi +0 -461
- data/rbi/lib/lithic/models/card_update_response.rbi +0 -458
- data/sig/lithic/models/card_convert_physical_response.rbs +0 -257
- data/sig/lithic/models/card_create_response.rbs +0 -257
- data/sig/lithic/models/card_reissue_response.rbs +0 -257
- data/sig/lithic/models/card_renew_response.rbs +0 -257
- data/sig/lithic/models/card_retrieve_response.rbs +0 -257
- data/sig/lithic/models/card_search_by_pan_response.rbs +0 -257
- data/sig/lithic/models/card_update_response.rbs +0 -257
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module Lithic
|
4
4
|
module Models
|
5
|
-
class
|
5
|
+
class NonPCICard < Lithic::Internal::Type::BaseModel
|
6
6
|
# Globally unique identifier.
|
7
7
|
sig { returns(String) }
|
8
8
|
attr_accessor :token
|
@@ -20,10 +20,10 @@ module Lithic
|
|
20
20
|
attr_accessor :created
|
21
21
|
|
22
22
|
# Deprecated: Funding account for the card.
|
23
|
-
sig { returns(Lithic::Models::
|
23
|
+
sig { returns(Lithic::Models::NonPCICard::Funding) }
|
24
24
|
attr_reader :funding
|
25
25
|
|
26
|
-
sig { params(funding: T.any(Lithic::Models::
|
26
|
+
sig { params(funding: T.any(Lithic::Models::NonPCICard::Funding, Lithic::Internal::AnyHash)).void }
|
27
27
|
attr_writer :funding
|
28
28
|
|
29
29
|
# Last four digits of the card number.
|
@@ -32,7 +32,7 @@ module Lithic
|
|
32
32
|
|
33
33
|
# Indicates if a card is blocked due a PIN status issue (e.g. excessive incorrect
|
34
34
|
# attempts).
|
35
|
-
sig { returns(Lithic::Models::
|
35
|
+
sig { returns(Lithic::Models::NonPCICard::PinStatus::TaggedSymbol) }
|
36
36
|
attr_accessor :pin_status
|
37
37
|
|
38
38
|
# Amount (in cents) to limit approved authorizations (e.g. 100000 would be a
|
@@ -41,7 +41,7 @@ module Lithic
|
|
41
41
|
attr_accessor :spend_limit
|
42
42
|
|
43
43
|
# Spend limit duration
|
44
|
-
sig { returns(Lithic::Models::
|
44
|
+
sig { returns(Lithic::Models::NonPCICard::SpendLimitDuration::TaggedSymbol) }
|
45
45
|
attr_accessor :spend_limit_duration
|
46
46
|
|
47
47
|
# Card state values: _ `CLOSED` - Card will no longer approve authorizations.
|
@@ -59,7 +59,7 @@ module Lithic
|
|
59
59
|
# card's state to `OPEN` only after the cardholder confirms receipt of the card.
|
60
60
|
# In sandbox, the same daily batch fulfillment occurs, but no cards are actually
|
61
61
|
# manufactured.
|
62
|
-
sig { returns(Lithic::Models::
|
62
|
+
sig { returns(Lithic::Models::NonPCICard::State::TaggedSymbol) }
|
63
63
|
attr_accessor :state
|
64
64
|
|
65
65
|
# Card types: _ `VIRTUAL` - Card will authorize at any merchant and can be added
|
@@ -72,7 +72,7 @@ module Lithic
|
|
72
72
|
# Similar behavior to VIRTUAL cards, please use VIRTUAL instead. _
|
73
73
|
# `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
|
74
74
|
# VIRTUAL instead.
|
75
|
-
sig { returns(Lithic::Models::
|
75
|
+
sig { returns(Lithic::Models::NonPCICard::Type::TaggedSymbol) }
|
76
76
|
attr_accessor :type
|
77
77
|
|
78
78
|
# List of identifiers for the Auth Rule(s) that are applied on the card. This
|
@@ -159,13 +159,13 @@ module Lithic
|
|
159
159
|
account_token: String,
|
160
160
|
card_program_token: String,
|
161
161
|
created: Time,
|
162
|
-
funding: T.any(Lithic::Models::
|
162
|
+
funding: T.any(Lithic::Models::NonPCICard::Funding, Lithic::Internal::AnyHash),
|
163
163
|
last_four: String,
|
164
|
-
pin_status: Lithic::Models::
|
164
|
+
pin_status: Lithic::Models::NonPCICard::PinStatus::OrSymbol,
|
165
165
|
spend_limit: Integer,
|
166
|
-
spend_limit_duration: Lithic::Models::
|
167
|
-
state: Lithic::Models::
|
168
|
-
type: Lithic::Models::
|
166
|
+
spend_limit_duration: Lithic::Models::NonPCICard::SpendLimitDuration::OrSymbol,
|
167
|
+
state: Lithic::Models::NonPCICard::State::OrSymbol,
|
168
|
+
type: Lithic::Models::NonPCICard::Type::OrSymbol,
|
169
169
|
auth_rule_tokens: T::Array[String],
|
170
170
|
cardholder_currency: String,
|
171
171
|
digital_card_art_token: String,
|
@@ -180,26 +180,82 @@ module Lithic
|
|
180
180
|
.returns(T.attached_class)
|
181
181
|
end
|
182
182
|
def self.new(
|
183
|
+
# Globally unique identifier.
|
183
184
|
token:,
|
185
|
+
# Globally unique identifier for the account to which the card belongs.
|
184
186
|
account_token:,
|
187
|
+
# Globally unique identifier for the card program on which the card exists.
|
185
188
|
card_program_token:,
|
189
|
+
# An RFC 3339 timestamp for when the card was created. UTC time zone.
|
186
190
|
created:,
|
191
|
+
# Deprecated: Funding account for the card.
|
187
192
|
funding:,
|
193
|
+
# Last four digits of the card number.
|
188
194
|
last_four:,
|
195
|
+
# Indicates if a card is blocked due a PIN status issue (e.g. excessive incorrect
|
196
|
+
# attempts).
|
189
197
|
pin_status:,
|
198
|
+
# Amount (in cents) to limit approved authorizations (e.g. 100000 would be a
|
199
|
+
# $1,000 limit). Transaction requests above the spend limit will be declined.
|
190
200
|
spend_limit:,
|
201
|
+
# Spend limit duration
|
191
202
|
spend_limit_duration:,
|
203
|
+
# Card state values: _ `CLOSED` - Card will no longer approve authorizations.
|
204
|
+
# Closing a card cannot be undone. _ `OPEN` - Card will approve authorizations (if
|
205
|
+
# they match card and account parameters). _ `PAUSED` - Card will decline
|
206
|
+
# authorizations, but can be resumed at a later time. _ `PENDING_FULFILLMENT` -
|
207
|
+
# The initial state for cards of type `PHYSICAL`. The card is provisioned pending
|
208
|
+
# manufacturing and fulfillment. Cards in this state can accept authorizations for
|
209
|
+
# e-commerce purchases, but not for "Card Present" purchases where the physical
|
210
|
+
# card itself is present. \* `PENDING_ACTIVATION` - At regular intervals, cards of
|
211
|
+
# type `PHYSICAL` in state `PENDING_FULFILLMENT` are sent to the card production
|
212
|
+
# warehouse and updated to state `PENDING_ACTIVATION`. Similar to
|
213
|
+
# `PENDING_FULFILLMENT`, cards in this state can be used for e-commerce
|
214
|
+
# transactions or can be added to mobile wallets. API clients should update the
|
215
|
+
# card's state to `OPEN` only after the cardholder confirms receipt of the card.
|
216
|
+
# In sandbox, the same daily batch fulfillment occurs, but no cards are actually
|
217
|
+
# manufactured.
|
192
218
|
state:,
|
219
|
+
# Card types: _ `VIRTUAL` - Card will authorize at any merchant and can be added
|
220
|
+
# to a digital wallet like Apple Pay or Google Pay (if the card program is digital
|
221
|
+
# wallet-enabled). _ `PHYSICAL` - Manufactured and sent to the cardholder. We
|
222
|
+
# offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe
|
223
|
+
# functionality. _ `SINGLE_USE` - Card is closed upon first successful
|
224
|
+
# authorization. _ `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first
|
225
|
+
# merchant that successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_
|
226
|
+
# Similar behavior to VIRTUAL cards, please use VIRTUAL instead. _
|
227
|
+
# `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
|
228
|
+
# VIRTUAL instead.
|
193
229
|
type:,
|
230
|
+
# List of identifiers for the Auth Rule(s) that are applied on the card. This
|
231
|
+
# field is deprecated and will no longer be populated in the `Card` object. The
|
232
|
+
# key will be removed from the schema in a future release. Use the `/auth_rules`
|
233
|
+
# endpoints to fetch Auth Rule information instead.
|
194
234
|
auth_rule_tokens: nil,
|
235
|
+
# 3-character alphabetic ISO 4217 code for the currency of the cardholder.
|
195
236
|
cardholder_currency: nil,
|
237
|
+
# Specifies the digital card art to be displayed in the user's digital wallet
|
238
|
+
# after tokenization. This artwork must be approved by Mastercard and configured
|
239
|
+
# by Lithic to use.
|
196
240
|
digital_card_art_token: nil,
|
241
|
+
# Two digit (MM) expiry month.
|
197
242
|
exp_month: nil,
|
243
|
+
# Four digit (yyyy) expiry year.
|
198
244
|
exp_year: nil,
|
245
|
+
# Hostname of card's locked merchant (will be empty if not applicable).
|
199
246
|
hostname: nil,
|
247
|
+
# Friendly name to identify the card.
|
200
248
|
memo: nil,
|
249
|
+
# Indicates if there are offline PIN changes pending card interaction with an
|
250
|
+
# offline PIN terminal. Possible commands are: CHANGE_PIN, UNBLOCK_PIN. Applicable
|
251
|
+
# only to cards issued in markets supporting offline PINs.
|
201
252
|
pending_commands: nil,
|
253
|
+
# Only applicable to cards of type `PHYSICAL`. This must be configured with Lithic
|
254
|
+
# before use. Specifies the configuration (i.e., physical card art) that the card
|
255
|
+
# should be manufactured with.
|
202
256
|
product_id: nil,
|
257
|
+
# If the card is a replacement for another card, the globally unique identifier
|
258
|
+
# for the card that was replaced.
|
203
259
|
replacement_for: nil
|
204
260
|
); end
|
205
261
|
sig do
|
@@ -210,13 +266,13 @@ module Lithic
|
|
210
266
|
account_token: String,
|
211
267
|
card_program_token: String,
|
212
268
|
created: Time,
|
213
|
-
funding: Lithic::Models::
|
269
|
+
funding: Lithic::Models::NonPCICard::Funding,
|
214
270
|
last_four: String,
|
215
|
-
pin_status: Lithic::Models::
|
271
|
+
pin_status: Lithic::Models::NonPCICard::PinStatus::TaggedSymbol,
|
216
272
|
spend_limit: Integer,
|
217
|
-
spend_limit_duration: Lithic::Models::
|
218
|
-
state: Lithic::Models::
|
219
|
-
type: Lithic::Models::
|
273
|
+
spend_limit_duration: Lithic::Models::NonPCICard::SpendLimitDuration::TaggedSymbol,
|
274
|
+
state: Lithic::Models::NonPCICard::State::TaggedSymbol,
|
275
|
+
type: Lithic::Models::NonPCICard::Type::TaggedSymbol,
|
220
276
|
auth_rule_tokens: T::Array[String],
|
221
277
|
cardholder_currency: String,
|
222
278
|
digital_card_art_token: String,
|
@@ -251,12 +307,12 @@ module Lithic
|
|
251
307
|
# account is available to use for card creation and transactions. _ `PENDING` -
|
252
308
|
# The funding account is still being verified e.g. bank micro-deposits
|
253
309
|
# verification. \* `DELETED` - The founding account has been deleted.
|
254
|
-
sig { returns(Lithic::Models::
|
310
|
+
sig { returns(Lithic::Models::NonPCICard::Funding::State::TaggedSymbol) }
|
255
311
|
attr_accessor :state
|
256
312
|
|
257
313
|
# Types of funding source: _ `DEPOSITORY_CHECKING` - Bank checking account. _
|
258
314
|
# `DEPOSITORY_SAVINGS` - Bank savings account.
|
259
|
-
sig { returns(Lithic::Models::
|
315
|
+
sig { returns(Lithic::Models::NonPCICard::Funding::Type::TaggedSymbol) }
|
260
316
|
attr_accessor :type
|
261
317
|
|
262
318
|
# Account name identifying the funding source. This may be `null`.
|
@@ -279,15 +335,35 @@ module Lithic
|
|
279
335
|
token: String,
|
280
336
|
created: Time,
|
281
337
|
last_four: String,
|
282
|
-
state: Lithic::Models::
|
283
|
-
type: Lithic::Models::
|
338
|
+
state: Lithic::Models::NonPCICard::Funding::State::OrSymbol,
|
339
|
+
type: Lithic::Models::NonPCICard::Funding::Type::OrSymbol,
|
284
340
|
account_name: String,
|
285
341
|
nickname: String
|
286
342
|
)
|
287
343
|
.returns(T.attached_class)
|
288
344
|
end
|
289
|
-
def self.new(
|
290
|
-
|
345
|
+
def self.new(
|
346
|
+
# A globally unique identifier for this FundingAccount.
|
347
|
+
token:,
|
348
|
+
# An RFC 3339 string representing when this funding source was added to the Lithic
|
349
|
+
# account. This may be `null`. UTC time zone.
|
350
|
+
created:,
|
351
|
+
# The last 4 digits of the account (e.g. bank account, debit card) associated with
|
352
|
+
# this FundingAccount. This may be null.
|
353
|
+
last_four:,
|
354
|
+
# State of funding source. Funding source states: _ `ENABLED` - The funding
|
355
|
+
# account is available to use for card creation and transactions. _ `PENDING` -
|
356
|
+
# The funding account is still being verified e.g. bank micro-deposits
|
357
|
+
# verification. \* `DELETED` - The founding account has been deleted.
|
358
|
+
state:,
|
359
|
+
# Types of funding source: _ `DEPOSITORY_CHECKING` - Bank checking account. _
|
360
|
+
# `DEPOSITORY_SAVINGS` - Bank savings account.
|
361
|
+
type:,
|
362
|
+
# Account name identifying the funding source. This may be `null`.
|
363
|
+
account_name: nil,
|
364
|
+
# The nickname given to the `FundingAccount` or `null` if it has no nickname.
|
365
|
+
nickname: nil
|
366
|
+
); end
|
291
367
|
sig do
|
292
368
|
override
|
293
369
|
.returns(
|
@@ -295,8 +371,8 @@ module Lithic
|
|
295
371
|
token: String,
|
296
372
|
created: Time,
|
297
373
|
last_four: String,
|
298
|
-
state: Lithic::Models::
|
299
|
-
type: Lithic::Models::
|
374
|
+
state: Lithic::Models::NonPCICard::Funding::State::TaggedSymbol,
|
375
|
+
type: Lithic::Models::NonPCICard::Funding::Type::TaggedSymbol,
|
300
376
|
account_name: String,
|
301
377
|
nickname: String
|
302
378
|
}
|
@@ -311,14 +387,14 @@ module Lithic
|
|
311
387
|
module State
|
312
388
|
extend Lithic::Internal::Type::Enum
|
313
389
|
|
314
|
-
TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Models::
|
390
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Models::NonPCICard::Funding::State) }
|
315
391
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
316
392
|
|
317
|
-
DELETED = T.let(:DELETED, Lithic::Models::
|
318
|
-
ENABLED = T.let(:ENABLED, Lithic::Models::
|
319
|
-
PENDING = T.let(:PENDING, Lithic::Models::
|
393
|
+
DELETED = T.let(:DELETED, Lithic::Models::NonPCICard::Funding::State::TaggedSymbol)
|
394
|
+
ENABLED = T.let(:ENABLED, Lithic::Models::NonPCICard::Funding::State::TaggedSymbol)
|
395
|
+
PENDING = T.let(:PENDING, Lithic::Models::NonPCICard::Funding::State::TaggedSymbol)
|
320
396
|
|
321
|
-
sig { override.returns(T::Array[Lithic::Models::
|
397
|
+
sig { override.returns(T::Array[Lithic::Models::NonPCICard::Funding::State::TaggedSymbol]) }
|
322
398
|
def self.values; end
|
323
399
|
end
|
324
400
|
|
@@ -327,15 +403,14 @@ module Lithic
|
|
327
403
|
module Type
|
328
404
|
extend Lithic::Internal::Type::Enum
|
329
405
|
|
330
|
-
TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Models::
|
406
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Models::NonPCICard::Funding::Type) }
|
331
407
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
332
408
|
|
333
409
|
DEPOSITORY_CHECKING =
|
334
|
-
T.let(:DEPOSITORY_CHECKING, Lithic::Models::
|
335
|
-
DEPOSITORY_SAVINGS =
|
336
|
-
T.let(:DEPOSITORY_SAVINGS, Lithic::Models::CardListResponse::Funding::Type::TaggedSymbol)
|
410
|
+
T.let(:DEPOSITORY_CHECKING, Lithic::Models::NonPCICard::Funding::Type::TaggedSymbol)
|
411
|
+
DEPOSITORY_SAVINGS = T.let(:DEPOSITORY_SAVINGS, Lithic::Models::NonPCICard::Funding::Type::TaggedSymbol)
|
337
412
|
|
338
|
-
sig { override.returns(T::Array[Lithic::Models::
|
413
|
+
sig { override.returns(T::Array[Lithic::Models::NonPCICard::Funding::Type::TaggedSymbol]) }
|
339
414
|
def self.values; end
|
340
415
|
end
|
341
416
|
end
|
@@ -345,14 +420,14 @@ module Lithic
|
|
345
420
|
module PinStatus
|
346
421
|
extend Lithic::Internal::Type::Enum
|
347
422
|
|
348
|
-
TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Models::
|
423
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Models::NonPCICard::PinStatus) }
|
349
424
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
350
425
|
|
351
|
-
OK = T.let(:OK, Lithic::Models::
|
352
|
-
BLOCKED = T.let(:BLOCKED, Lithic::Models::
|
353
|
-
NOT_SET = T.let(:NOT_SET, Lithic::Models::
|
426
|
+
OK = T.let(:OK, Lithic::Models::NonPCICard::PinStatus::TaggedSymbol)
|
427
|
+
BLOCKED = T.let(:BLOCKED, Lithic::Models::NonPCICard::PinStatus::TaggedSymbol)
|
428
|
+
NOT_SET = T.let(:NOT_SET, Lithic::Models::NonPCICard::PinStatus::TaggedSymbol)
|
354
429
|
|
355
|
-
sig { override.returns(T::Array[Lithic::Models::
|
430
|
+
sig { override.returns(T::Array[Lithic::Models::NonPCICard::PinStatus::TaggedSymbol]) }
|
356
431
|
def self.values; end
|
357
432
|
end
|
358
433
|
|
@@ -360,16 +435,16 @@ module Lithic
|
|
360
435
|
module SpendLimitDuration
|
361
436
|
extend Lithic::Internal::Type::Enum
|
362
437
|
|
363
|
-
TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Models::
|
438
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Models::NonPCICard::SpendLimitDuration) }
|
364
439
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
365
440
|
|
366
|
-
ANNUALLY = T.let(:ANNUALLY, Lithic::Models::
|
367
|
-
FOREVER = T.let(:FOREVER, Lithic::Models::
|
368
|
-
MONTHLY = T.let(:MONTHLY, Lithic::Models::
|
369
|
-
TRANSACTION = T.let(:TRANSACTION, Lithic::Models::
|
370
|
-
DAILY = T.let(:DAILY, Lithic::Models::
|
441
|
+
ANNUALLY = T.let(:ANNUALLY, Lithic::Models::NonPCICard::SpendLimitDuration::TaggedSymbol)
|
442
|
+
FOREVER = T.let(:FOREVER, Lithic::Models::NonPCICard::SpendLimitDuration::TaggedSymbol)
|
443
|
+
MONTHLY = T.let(:MONTHLY, Lithic::Models::NonPCICard::SpendLimitDuration::TaggedSymbol)
|
444
|
+
TRANSACTION = T.let(:TRANSACTION, Lithic::Models::NonPCICard::SpendLimitDuration::TaggedSymbol)
|
445
|
+
DAILY = T.let(:DAILY, Lithic::Models::NonPCICard::SpendLimitDuration::TaggedSymbol)
|
371
446
|
|
372
|
-
sig { override.returns(T::Array[Lithic::Models::
|
447
|
+
sig { override.returns(T::Array[Lithic::Models::NonPCICard::SpendLimitDuration::TaggedSymbol]) }
|
373
448
|
def self.values; end
|
374
449
|
end
|
375
450
|
|
@@ -391,16 +466,16 @@ module Lithic
|
|
391
466
|
module State
|
392
467
|
extend Lithic::Internal::Type::Enum
|
393
468
|
|
394
|
-
TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Models::
|
469
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Models::NonPCICard::State) }
|
395
470
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
396
471
|
|
397
|
-
CLOSED = T.let(:CLOSED, Lithic::Models::
|
398
|
-
OPEN = T.let(:OPEN, Lithic::Models::
|
399
|
-
PAUSED = T.let(:PAUSED, Lithic::Models::
|
400
|
-
PENDING_ACTIVATION = T.let(:PENDING_ACTIVATION, Lithic::Models::
|
401
|
-
PENDING_FULFILLMENT = T.let(:PENDING_FULFILLMENT, Lithic::Models::
|
472
|
+
CLOSED = T.let(:CLOSED, Lithic::Models::NonPCICard::State::TaggedSymbol)
|
473
|
+
OPEN = T.let(:OPEN, Lithic::Models::NonPCICard::State::TaggedSymbol)
|
474
|
+
PAUSED = T.let(:PAUSED, Lithic::Models::NonPCICard::State::TaggedSymbol)
|
475
|
+
PENDING_ACTIVATION = T.let(:PENDING_ACTIVATION, Lithic::Models::NonPCICard::State::TaggedSymbol)
|
476
|
+
PENDING_FULFILLMENT = T.let(:PENDING_FULFILLMENT, Lithic::Models::NonPCICard::State::TaggedSymbol)
|
402
477
|
|
403
|
-
sig { override.returns(T::Array[Lithic::Models::
|
478
|
+
sig { override.returns(T::Array[Lithic::Models::NonPCICard::State::TaggedSymbol]) }
|
404
479
|
def self.values; end
|
405
480
|
end
|
406
481
|
|
@@ -417,17 +492,17 @@ module Lithic
|
|
417
492
|
module Type
|
418
493
|
extend Lithic::Internal::Type::Enum
|
419
494
|
|
420
|
-
TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Models::
|
495
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, Lithic::Models::NonPCICard::Type) }
|
421
496
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
422
497
|
|
423
|
-
MERCHANT_LOCKED = T.let(:MERCHANT_LOCKED, Lithic::Models::
|
424
|
-
PHYSICAL = T.let(:PHYSICAL, Lithic::Models::
|
425
|
-
SINGLE_USE = T.let(:SINGLE_USE, Lithic::Models::
|
426
|
-
VIRTUAL = T.let(:VIRTUAL, Lithic::Models::
|
427
|
-
UNLOCKED = T.let(:UNLOCKED, Lithic::Models::
|
428
|
-
DIGITAL_WALLET = T.let(:DIGITAL_WALLET, Lithic::Models::
|
498
|
+
MERCHANT_LOCKED = T.let(:MERCHANT_LOCKED, Lithic::Models::NonPCICard::Type::TaggedSymbol)
|
499
|
+
PHYSICAL = T.let(:PHYSICAL, Lithic::Models::NonPCICard::Type::TaggedSymbol)
|
500
|
+
SINGLE_USE = T.let(:SINGLE_USE, Lithic::Models::NonPCICard::Type::TaggedSymbol)
|
501
|
+
VIRTUAL = T.let(:VIRTUAL, Lithic::Models::NonPCICard::Type::TaggedSymbol)
|
502
|
+
UNLOCKED = T.let(:UNLOCKED, Lithic::Models::NonPCICard::Type::TaggedSymbol)
|
503
|
+
DIGITAL_WALLET = T.let(:DIGITAL_WALLET, Lithic::Models::NonPCICard::Type::TaggedSymbol)
|
429
504
|
|
430
|
-
sig { override.returns(T::Array[Lithic::Models::
|
505
|
+
sig { override.returns(T::Array[Lithic::Models::NonPCICard::Type::TaggedSymbol]) }
|
431
506
|
def self.values; end
|
432
507
|
end
|
433
508
|
end
|
@@ -115,24 +115,46 @@ module Lithic
|
|
115
115
|
.returns(T.attached_class)
|
116
116
|
end
|
117
117
|
def self.new(
|
118
|
+
# Globally unique identifier.
|
118
119
|
token:,
|
120
|
+
# Payment category
|
119
121
|
category:,
|
122
|
+
# Date and time when the payment first occurred. UTC time zone.
|
120
123
|
created:,
|
124
|
+
# 3-character alphabetic ISO 4217 code for the settling currency of the payment.
|
121
125
|
currency:,
|
126
|
+
# A string that provides a description of the payment; may be useful to display to
|
127
|
+
# users.
|
122
128
|
descriptor:,
|
123
129
|
direction:,
|
130
|
+
# A list of all payment events that have modified this payment.
|
124
131
|
events:,
|
125
132
|
external_bank_account_token:,
|
126
133
|
financial_account_token:,
|
127
134
|
method_:,
|
128
135
|
method_attributes:,
|
136
|
+
# Pending amount of the payment in the currency's smallest unit (e.g., cents). The
|
137
|
+
# value of this field will go to zero over time once the payment is settled.
|
129
138
|
pending_amount:,
|
139
|
+
# APPROVED payments were successful while DECLINED payments were declined by
|
140
|
+
# Lithic or returned.
|
130
141
|
result:,
|
142
|
+
# Amount of the payment that has been settled in the currency's smallest unit
|
143
|
+
# (e.g., cents).
|
131
144
|
settled_amount:,
|
132
145
|
source:,
|
146
|
+
# Status types:
|
147
|
+
#
|
148
|
+
# - `DECLINED` - The payment was declined.
|
149
|
+
# - `PENDING` - The payment is being processed and has yet to settle or release
|
150
|
+
# (origination debit).
|
151
|
+
# - `RETURNED` - The payment has been returned.
|
152
|
+
# - `SETTLED` - The payment is completed.
|
133
153
|
status:,
|
154
|
+
# Date and time when the financial transaction was last updated. UTC time zone.
|
134
155
|
updated:,
|
135
156
|
user_defined_id:,
|
157
|
+
# Date when the financial transaction expected to be released after settlement
|
136
158
|
expected_release_date: nil
|
137
159
|
); end
|
138
160
|
sig do
|
@@ -249,8 +271,41 @@ module Lithic
|
|
249
271
|
)
|
250
272
|
.returns(T.attached_class)
|
251
273
|
end
|
252
|
-
def self.new(
|
253
|
-
|
274
|
+
def self.new(
|
275
|
+
# Globally unique identifier.
|
276
|
+
token:,
|
277
|
+
# Amount of the financial event that has been settled in the currency's smallest
|
278
|
+
# unit (e.g., cents).
|
279
|
+
amount:,
|
280
|
+
# Date and time when the financial event occurred. UTC time zone.
|
281
|
+
created:,
|
282
|
+
# APPROVED financial events were successful while DECLINED financial events were
|
283
|
+
# declined by user, Lithic, or the network.
|
284
|
+
result:,
|
285
|
+
# Event types:
|
286
|
+
#
|
287
|
+
# - `ACH_ORIGINATION_INITIATED` - ACH origination received and pending
|
288
|
+
# approval/release from an ACH hold.
|
289
|
+
# - `ACH_ORIGINATION_REVIEWED` - ACH origination has completed the review process.
|
290
|
+
# - `ACH_ORIGINATION_CANCELLED` - ACH origination has been cancelled.
|
291
|
+
# - `ACH_ORIGINATION_PROCESSED` - ACH origination has been processed and sent to
|
292
|
+
# the fed.
|
293
|
+
# - `ACH_ORIGINATION_SETTLED` - ACH origination has settled.
|
294
|
+
# - `ACH_ORIGINATION_RELEASED` - ACH origination released from pending to
|
295
|
+
# available balance.
|
296
|
+
# - `ACH_RETURN_PROCESSED` - ACH origination returned by the Receiving Depository
|
297
|
+
# Financial Institution.
|
298
|
+
# - `ACH_RECEIPT_PROCESSED` - ACH receipt pending release from an ACH holder.
|
299
|
+
# - `ACH_RETURN_INITIATED` - ACH initiated return for a ACH receipt.
|
300
|
+
# - `ACH_RECEIPT_SETTLED` - ACH receipt funds have settled.
|
301
|
+
# - `ACH_RECEIPT_RELEASED` - ACH receipt released from pending to available
|
302
|
+
# balance.
|
303
|
+
# - `ACH_RETURN_SETTLED` - ACH receipt return settled by the Receiving Depository
|
304
|
+
# Financial Institution.
|
305
|
+
type:,
|
306
|
+
# More detailed reasons for the event
|
307
|
+
detailed_results: nil
|
308
|
+
); end
|
254
309
|
sig do
|
255
310
|
override
|
256
311
|
.returns(
|
@@ -11,8 +11,10 @@ module Lithic
|
|
11
11
|
attr_writer :balance
|
12
12
|
|
13
13
|
sig { params(balance: T.any(Lithic::Models::Balance, Lithic::Internal::AnyHash)).returns(T.attached_class) }
|
14
|
-
def self.new(
|
15
|
-
|
14
|
+
def self.new(
|
15
|
+
# Balance
|
16
|
+
balance: nil
|
17
|
+
); end
|
16
18
|
sig { override.returns({balance: Lithic::Models::Balance}) }
|
17
19
|
def to_hash; end
|
18
20
|
end
|
@@ -100,14 +100,23 @@ module Lithic
|
|
100
100
|
end
|
101
101
|
def self.new(
|
102
102
|
account_token: nil,
|
103
|
+
# Date string in RFC 3339 format. Only entries created after the specified time
|
104
|
+
# will be included. UTC time zone.
|
103
105
|
begin_: nil,
|
104
106
|
business_account_token: nil,
|
105
107
|
category: nil,
|
108
|
+
# Date string in RFC 3339 format. Only entries created before the specified time
|
109
|
+
# will be included. UTC time zone.
|
106
110
|
end_: nil,
|
111
|
+
# A cursor representing an item's token before which a page of results should end.
|
112
|
+
# Used to retrieve the previous page of results before this item.
|
107
113
|
ending_before: nil,
|
108
114
|
financial_account_token: nil,
|
115
|
+
# Page size (for pagination).
|
109
116
|
page_size: nil,
|
110
117
|
result: nil,
|
118
|
+
# A cursor representing an item's token after which a page of results should
|
119
|
+
# begin. Used to retrieve the next page of results after this item.
|
111
120
|
starting_after: nil,
|
112
121
|
status: nil,
|
113
122
|
request_options: {}
|
@@ -11,8 +11,10 @@ module Lithic
|
|
11
11
|
attr_writer :balance
|
12
12
|
|
13
13
|
sig { params(balance: T.any(Lithic::Models::Balance, Lithic::Internal::AnyHash)).returns(T.attached_class) }
|
14
|
-
def self.new(
|
15
|
-
|
14
|
+
def self.new(
|
15
|
+
# Balance
|
16
|
+
balance: nil
|
17
|
+
); end
|
16
18
|
sig { override.returns({balance: Lithic::Models::Balance}) }
|
17
19
|
def to_hash; end
|
18
20
|
end
|
@@ -33,8 +33,15 @@ module Lithic
|
|
33
33
|
)
|
34
34
|
.returns(T.attached_class)
|
35
35
|
end
|
36
|
-
def self.new(
|
37
|
-
|
36
|
+
def self.new(
|
37
|
+
# Event Type
|
38
|
+
event_type:,
|
39
|
+
# Decline reason
|
40
|
+
decline_reason: nil,
|
41
|
+
# Return Reason Code
|
42
|
+
return_reason_code: nil,
|
43
|
+
request_options: {}
|
44
|
+
); end
|
38
45
|
sig do
|
39
46
|
override
|
40
47
|
.returns(
|
@@ -23,8 +23,14 @@ module Lithic
|
|
23
23
|
)
|
24
24
|
.returns(T.attached_class)
|
25
25
|
end
|
26
|
-
def self.new(
|
27
|
-
|
26
|
+
def self.new(
|
27
|
+
# Debugging Request Id
|
28
|
+
debugging_request_id:,
|
29
|
+
# Request Result
|
30
|
+
result:,
|
31
|
+
# Transaction Event Token
|
32
|
+
transaction_event_token:
|
33
|
+
); end
|
28
34
|
sig do
|
29
35
|
override
|
30
36
|
.returns(
|
@@ -40,9 +40,19 @@ module Lithic
|
|
40
40
|
)
|
41
41
|
.returns(T.attached_class)
|
42
42
|
end
|
43
|
-
def self.new(
|
44
|
-
|
45
|
-
|
43
|
+
def self.new(
|
44
|
+
# Customer-generated payment token used to uniquely identify the simulated payment
|
45
|
+
token:,
|
46
|
+
# Amount
|
47
|
+
amount:,
|
48
|
+
# Financial Account Token
|
49
|
+
financial_account_token:,
|
50
|
+
# Receipt Type
|
51
|
+
receipt_type:,
|
52
|
+
# Memo
|
53
|
+
memo: nil,
|
54
|
+
request_options: {}
|
55
|
+
); end
|
46
56
|
sig do
|
47
57
|
override
|
48
58
|
.returns(
|
@@ -23,8 +23,14 @@ module Lithic
|
|
23
23
|
)
|
24
24
|
.returns(T.attached_class)
|
25
25
|
end
|
26
|
-
def self.new(
|
27
|
-
|
26
|
+
def self.new(
|
27
|
+
# Debugging Request Id
|
28
|
+
debugging_request_id:,
|
29
|
+
# Request Result
|
30
|
+
result:,
|
31
|
+
# Transaction Event Token
|
32
|
+
transaction_event_token:
|
33
|
+
); end
|
28
34
|
sig do
|
29
35
|
override
|
30
36
|
.returns(
|
@@ -17,8 +17,11 @@ module Lithic
|
|
17
17
|
)
|
18
18
|
.returns(T.attached_class)
|
19
19
|
end
|
20
|
-
def self.new(
|
21
|
-
|
20
|
+
def self.new(
|
21
|
+
# Payment Token
|
22
|
+
payment_token:,
|
23
|
+
request_options: {}
|
24
|
+
); end
|
22
25
|
sig { override.returns({payment_token: String, request_options: Lithic::RequestOptions}) }
|
23
26
|
def to_hash; end
|
24
27
|
end
|
@@ -23,8 +23,14 @@ module Lithic
|
|
23
23
|
)
|
24
24
|
.returns(T.attached_class)
|
25
25
|
end
|
26
|
-
def self.new(
|
27
|
-
|
26
|
+
def self.new(
|
27
|
+
# Debugging Request Id
|
28
|
+
debugging_request_id:,
|
29
|
+
# Request Result
|
30
|
+
result:,
|
31
|
+
# Transaction Event Token
|
32
|
+
transaction_event_token:
|
33
|
+
); end
|
28
34
|
sig do
|
29
35
|
override
|
30
36
|
.returns(
|
@@ -25,8 +25,13 @@ module Lithic
|
|
25
25
|
)
|
26
26
|
.returns(T.attached_class)
|
27
27
|
end
|
28
|
-
def self.new(
|
29
|
-
|
28
|
+
def self.new(
|
29
|
+
# Payment Token
|
30
|
+
payment_token:,
|
31
|
+
# Return Reason Code
|
32
|
+
return_reason_code: nil,
|
33
|
+
request_options: {}
|
34
|
+
); end
|
30
35
|
sig do
|
31
36
|
override
|
32
37
|
.returns({
|