lithic 0.1.0.pre.alpha.13 → 0.1.0.pre.alpha.15
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/.ignore +2 -0
- data/CHANGELOG.md +29 -0
- data/README.md +1 -1
- data/lib/lithic/internal/transport/base_client.rb +1 -1
- data/lib/lithic/internal/type/base_model.rb +33 -15
- data/lib/lithic/internal/type/enum.rb +1 -6
- data/lib/lithic/internal/type/request_parameters.rb +1 -2
- data/lib/lithic/models/account.rb +39 -91
- data/lib/lithic/models/account_financial_account_type.rb +2 -5
- data/lib/lithic/models/account_holder.rb +125 -312
- data/lib/lithic/models/account_holder_create_params.rb +97 -219
- data/lib/lithic/models/account_holder_create_response.rb +15 -48
- data/lib/lithic/models/account_holder_list_documents_params.rb +3 -8
- data/lib/lithic/models/account_holder_list_documents_response.rb +3 -11
- data/lib/lithic/models/account_holder_list_params.rb +25 -90
- data/lib/lithic/models/account_holder_retrieve_document_params.rb +4 -9
- data/lib/lithic/models/account_holder_retrieve_params.rb +3 -8
- data/lib/lithic/models/account_holder_simulate_enrollment_document_review_params.rb +13 -41
- data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +13 -36
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +151 -388
- data/lib/lithic/models/account_holder_update_params.rb +130 -424
- data/lib/lithic/models/account_holder_update_response.rb +180 -474
- data/lib/lithic/models/account_holder_upload_document_params.rb +7 -15
- data/lib/lithic/models/account_list_params.rb +13 -38
- data/lib/lithic/models/account_retrieve_params.rb +3 -8
- data/lib/lithic/models/account_retrieve_spend_limits_params.rb +3 -8
- data/lib/lithic/models/account_spend_limits.rb +27 -87
- data/lib/lithic/models/account_update_params.rb +33 -99
- data/lib/lithic/models/address.rb +8 -16
- data/lib/lithic/models/address_update.rb +13 -41
- data/lib/lithic/models/aggregate_balance.rb +15 -36
- data/lib/lithic/models/aggregate_balance_list_params.rb +7 -19
- data/lib/lithic/models/api_status.rb +3 -11
- data/lib/lithic/models/auth_rules/auth_rule.rb +19 -67
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +11 -31
- data/lib/lithic/models/auth_rules/conditional_attribute.rb +2 -5
- data/lib/lithic/models/auth_rules/conditional_block_parameters.rb +2 -6
- data/lib/lithic/models/auth_rules/v2/backtest_create_params.rb +7 -20
- data/lib/lithic/models/auth_rules/v2/backtest_create_response.rb +3 -11
- data/lib/lithic/models/auth_rules/v2/backtest_results.rb +46 -142
- data/lib/lithic/models/auth_rules/v2/backtest_retrieve_params.rb +4 -9
- data/lib/lithic/models/auth_rules/v2_apply_params.rb +8 -17
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +26 -64
- data/lib/lithic/models/auth_rules/v2_create_params.rb +17 -50
- data/lib/lithic/models/auth_rules/v2_create_response.rb +26 -64
- data/lib/lithic/models/auth_rules/v2_delete_params.rb +3 -8
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +6 -12
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +26 -64
- data/lib/lithic/models/auth_rules/v2_list_params.rb +13 -48
- data/lib/lithic/models/auth_rules/v2_list_response.rb +26 -64
- data/lib/lithic/models/auth_rules/v2_promote_params.rb +3 -8
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +26 -64
- data/lib/lithic/models/auth_rules/v2_report_params.rb +3 -8
- data/lib/lithic/models/auth_rules/v2_report_response.rb +3 -11
- data/lib/lithic/models/auth_rules/v2_retrieve_params.rb +3 -8
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +26 -64
- data/lib/lithic/models/auth_rules/v2_update_params.rb +16 -55
- data/lib/lithic/models/auth_rules/v2_update_response.rb +26 -64
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +15 -27
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +2 -5
- data/lib/lithic/models/auth_stream_enrollment_retrieve_secret_params.rb +3 -8
- data/lib/lithic/models/auth_stream_enrollment_rotate_secret_params.rb +3 -8
- data/lib/lithic/models/auth_stream_secret.rb +3 -11
- data/lib/lithic/models/balance.rb +15 -36
- data/lib/lithic/models/balance_list_params.rb +13 -46
- data/lib/lithic/models/book_transfer_create_params.rb +17 -49
- data/lib/lithic/models/book_transfer_list_params.rb +31 -105
- data/lib/lithic/models/book_transfer_response.rb +32 -71
- data/lib/lithic/models/book_transfer_retrieve_params.rb +3 -8
- data/lib/lithic/models/book_transfer_reverse_params.rb +5 -14
- data/lib/lithic/models/card_convert_physical_params.rb +12 -32
- data/lib/lithic/models/card_convert_physical_response.rb +391 -0
- data/lib/lithic/models/card_create_params.rb +42 -142
- data/lib/lithic/models/card_create_response.rb +390 -0
- data/lib/lithic/models/card_embed_params.rb +5 -10
- data/lib/lithic/models/card_list_params.rb +19 -67
- data/lib/lithic/models/card_list_response.rb +374 -0
- data/lib/lithic/models/card_program.rb +10 -33
- data/lib/lithic/models/card_program_list_params.rb +9 -26
- data/lib/lithic/models/card_program_retrieve_params.rb +3 -8
- data/lib/lithic/models/card_provision_params.rb +17 -60
- data/lib/lithic/models/card_provision_response.rb +3 -11
- data/lib/lithic/models/card_reissue_params.rb +13 -37
- data/lib/lithic/models/card_reissue_response.rb +390 -0
- data/lib/lithic/models/card_renew_params.rb +16 -55
- data/lib/lithic/models/card_renew_response.rb +390 -0
- data/lib/lithic/models/card_retrieve_params.rb +3 -8
- data/lib/lithic/models/card_retrieve_response.rb +390 -0
- data/lib/lithic/models/card_retrieve_spend_limits_params.rb +3 -8
- data/lib/lithic/models/card_search_by_pan_params.rb +4 -9
- data/lib/lithic/models/card_search_by_pan_response.rb +390 -0
- data/lib/lithic/models/card_spend_limits.rb +27 -87
- data/lib/lithic/models/card_update_params.rb +21 -72
- data/lib/lithic/models/card_update_response.rb +390 -0
- data/lib/lithic/models/cards/aggregate_balance_list_params.rb +7 -20
- data/lib/lithic/models/cards/aggregate_balance_list_response.rb +12 -29
- data/lib/lithic/models/cards/balance_list_params.rb +7 -20
- data/lib/lithic/models/cards/balance_list_response.rb +15 -36
- data/lib/lithic/models/cards/financial_transaction_list_params.rb +23 -77
- data/lib/lithic/models/cards/financial_transaction_retrieve_params.rb +4 -9
- data/lib/lithic/models/carrier.rb +3 -11
- data/lib/lithic/models/client_api_status_params.rb +3 -8
- data/lib/lithic/models/credit_products/extended_credit.rb +2 -6
- data/lib/lithic/models/credit_products/extended_credit_retrieve_params.rb +3 -8
- data/lib/lithic/models/credit_products/prime_rate_create_params.rb +5 -10
- data/lib/lithic/models/credit_products/prime_rate_retrieve_params.rb +7 -20
- data/lib/lithic/models/credit_products/prime_rate_retrieve_response.rb +6 -14
- data/lib/lithic/models/digital_card_art.rb +11 -33
- data/lib/lithic/models/digital_card_art_list_params.rb +9 -26
- data/lib/lithic/models/digital_card_art_retrieve_params.rb +3 -8
- data/lib/lithic/models/dispute.rb +27 -70
- data/lib/lithic/models/dispute_create_params.rb +12 -38
- data/lib/lithic/models/dispute_delete_evidence_params.rb +4 -9
- data/lib/lithic/models/dispute_delete_params.rb +3 -8
- data/lib/lithic/models/dispute_evidence.rb +15 -34
- data/lib/lithic/models/dispute_initiate_evidence_upload_params.rb +5 -14
- data/lib/lithic/models/dispute_list_evidences_params.rb +13 -38
- data/lib/lithic/models/dispute_list_params.rb +19 -67
- data/lib/lithic/models/dispute_retrieve_evidence_params.rb +4 -9
- data/lib/lithic/models/dispute_retrieve_params.rb +3 -8
- data/lib/lithic/models/dispute_update_params.rb +13 -37
- data/lib/lithic/models/document.rb +29 -62
- data/lib/lithic/models/event.rb +9 -16
- data/lib/lithic/models/event_list_attempts_params.rb +17 -60
- data/lib/lithic/models/event_list_params.rb +19 -67
- data/lib/lithic/models/event_retrieve_params.rb +3 -8
- data/lib/lithic/models/event_subscription.rb +10 -17
- data/lib/lithic/models/events/event_subscription_resend_params.rb +4 -9
- data/lib/lithic/models/events/subscription_create_params.rb +12 -32
- data/lib/lithic/models/events/subscription_delete_params.rb +3 -8
- data/lib/lithic/models/events/subscription_list_attempts_params.rb +17 -60
- data/lib/lithic/models/events/subscription_list_params.rb +9 -26
- data/lib/lithic/models/events/subscription_recover_params.rb +7 -20
- data/lib/lithic/models/events/subscription_replay_missing_params.rb +7 -20
- data/lib/lithic/models/events/subscription_retrieve_params.rb +3 -8
- data/lib/lithic/models/events/subscription_retrieve_secret_params.rb +3 -8
- data/lib/lithic/models/events/subscription_retrieve_secret_response.rb +3 -11
- data/lib/lithic/models/events/subscription_rotate_secret_params.rb +3 -8
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +7 -19
- data/lib/lithic/models/events/subscription_update_params.rb +12 -32
- data/lib/lithic/models/external_bank_account_address.rb +8 -16
- data/lib/lithic/models/external_bank_account_create_params.rb +33 -99
- data/lib/lithic/models/external_bank_account_create_response.rb +42 -123
- data/lib/lithic/models/external_bank_account_list_params.rb +27 -91
- data/lib/lithic/models/external_bank_account_list_response.rb +42 -123
- data/lib/lithic/models/external_bank_account_retrieve_params.rb +3 -8
- data/lib/lithic/models/external_bank_account_retrieve_response.rb +42 -123
- data/lib/lithic/models/external_bank_account_retry_micro_deposits_params.rb +5 -14
- data/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rb +42 -123
- data/lib/lithic/models/external_bank_account_retry_prenote_params.rb +5 -14
- data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +38 -113
- data/lib/lithic/models/external_bank_account_update_params.rb +23 -81
- data/lib/lithic/models/external_bank_account_update_response.rb +42 -123
- data/lib/lithic/models/external_bank_accounts/micro_deposit_create_params.rb +4 -9
- data/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rb +42 -123
- data/lib/lithic/models/external_payment.rb +38 -88
- data/lib/lithic/models/external_payment_cancel_params.rb +6 -15
- data/lib/lithic/models/external_payment_create_params.rb +22 -66
- data/lib/lithic/models/external_payment_list_params.rb +29 -98
- data/lib/lithic/models/external_payment_release_params.rb +6 -15
- data/lib/lithic/models/external_payment_retrieve_params.rb +3 -8
- data/lib/lithic/models/external_payment_reverse_params.rb +6 -15
- data/lib/lithic/models/external_payment_settle_params.rb +10 -26
- data/lib/lithic/models/financial_account.rb +33 -81
- data/lib/lithic/models/financial_account_create_params.rb +13 -43
- data/lib/lithic/models/financial_account_list_params.rb +11 -31
- data/lib/lithic/models/financial_account_retrieve_params.rb +3 -8
- data/lib/lithic/models/financial_account_update_params.rb +5 -14
- data/lib/lithic/models/financial_account_update_status_params.rb +9 -20
- data/lib/lithic/models/financial_accounts/balance_list_params.rb +7 -20
- data/lib/lithic/models/financial_accounts/balance_list_response.rb +15 -36
- data/lib/lithic/models/financial_accounts/credit_configuration_retrieve_params.rb +3 -8
- data/lib/lithic/models/financial_accounts/credit_configuration_update_params.rb +11 -41
- data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +13 -35
- data/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb +23 -77
- data/lib/lithic/models/financial_accounts/financial_transaction_retrieve_params.rb +4 -9
- data/lib/lithic/models/financial_accounts/loan_tape.rb +132 -269
- data/lib/lithic/models/financial_accounts/loan_tape_list_params.rb +13 -38
- data/lib/lithic/models/financial_accounts/loan_tape_retrieve_params.rb +4 -9
- data/lib/lithic/models/financial_accounts/statement.rb +87 -198
- data/lib/lithic/models/financial_accounts/statement_list_params.rb +15 -55
- data/lib/lithic/models/financial_accounts/statement_retrieve_params.rb +4 -9
- data/lib/lithic/models/financial_accounts/statements/line_item_list_params.rb +10 -27
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +24 -60
- data/lib/lithic/models/financial_accounts/statements.rb +3 -7
- data/lib/lithic/models/financial_transaction.rb +34 -91
- data/lib/lithic/models/instance_financial_account_type.rb +4 -5
- data/lib/lithic/models/kyb.rb +71 -167
- data/lib/lithic/models/kyb_business_entity.rb +20 -50
- data/lib/lithic/models/kyc.rb +21 -40
- data/lib/lithic/models/kyc_exempt.rb +16 -47
- data/lib/lithic/models/management_operation_create_params.rb +34 -74
- data/lib/lithic/models/management_operation_list_params.rb +26 -86
- data/lib/lithic/models/management_operation_retrieve_params.rb +3 -8
- data/lib/lithic/models/management_operation_reverse_params.rb +6 -15
- data/lib/lithic/models/management_operation_transaction.rb +56 -110
- data/lib/lithic/models/message_attempt.rb +13 -32
- data/lib/lithic/models/owner_type.rb +2 -5
- data/lib/lithic/models/payment.rb +56 -129
- data/lib/lithic/models/payment_create_params.rb +23 -67
- data/lib/lithic/models/payment_create_response.rb +3 -11
- data/lib/lithic/models/payment_list_params.rb +31 -105
- data/lib/lithic/models/payment_retrieve_params.rb +3 -8
- data/lib/lithic/models/payment_retry_params.rb +3 -8
- data/lib/lithic/models/payment_retry_response.rb +3 -11
- data/lib/lithic/models/payment_simulate_action_params.rb +12 -31
- data/lib/lithic/models/payment_simulate_action_response.rb +6 -13
- data/lib/lithic/models/payment_simulate_receipt_params.rb +12 -24
- data/lib/lithic/models/payment_simulate_receipt_response.rb +6 -13
- data/lib/lithic/models/payment_simulate_release_params.rb +4 -9
- data/lib/lithic/models/payment_simulate_release_response.rb +6 -13
- data/lib/lithic/models/payment_simulate_return_params.rb +6 -15
- data/lib/lithic/models/payment_simulate_return_response.rb +6 -13
- data/lib/lithic/models/reports/settlement/network_total_list_params.rb +27 -95
- data/lib/lithic/models/reports/settlement/network_total_list_response.rb +21 -55
- data/lib/lithic/models/reports/settlement/network_total_retrieve_params.rb +3 -8
- data/lib/lithic/models/reports/settlement/network_total_retrieve_response.rb +21 -55
- data/lib/lithic/models/reports/settlement_list_details_params.rb +9 -26
- data/lib/lithic/models/reports/settlement_summary_params.rb +3 -8
- data/lib/lithic/models/required_document.rb +4 -8
- data/lib/lithic/models/responder_endpoint_check_status_params.rb +6 -14
- data/lib/lithic/models/responder_endpoint_create_params.rb +9 -25
- data/lib/lithic/models/responder_endpoint_create_response.rb +3 -11
- data/lib/lithic/models/responder_endpoint_delete_params.rb +6 -14
- data/lib/lithic/models/responder_endpoint_status.rb +4 -12
- data/lib/lithic/models/settlement_detail.rb +32 -79
- data/lib/lithic/models/settlement_report.rb +12 -31
- data/lib/lithic/models/settlement_summary_details.rb +19 -70
- data/lib/lithic/models/shipping_address.rb +16 -51
- data/lib/lithic/models/spend_limit_duration.rb +2 -5
- data/lib/lithic/models/three_ds/authentication_retrieve_params.rb +3 -8
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +148 -312
- data/lib/lithic/models/three_ds/authentication_simulate_otp_entry_params.rb +5 -10
- data/lib/lithic/models/three_ds/authentication_simulate_params.rb +18 -38
- data/lib/lithic/models/three_ds/authentication_simulate_response.rb +3 -11
- data/lib/lithic/models/three_ds/challenge_response.rb +3 -7
- data/lib/lithic/models/three_ds/challenge_result.rb +2 -5
- data/lib/lithic/models/three_ds/decisioning_challenge_response_params.rb +3 -8
- data/lib/lithic/models/three_ds/decisioning_retrieve_secret_params.rb +3 -8
- data/lib/lithic/models/three_ds/decisioning_retrieve_secret_response.rb +3 -11
- data/lib/lithic/models/three_ds/decisioning_rotate_secret_params.rb +3 -8
- data/lib/lithic/models/tokenization.rb +35 -99
- data/lib/lithic/models/tokenization_activate_params.rb +3 -8
- data/lib/lithic/models/tokenization_deactivate_params.rb +3 -8
- data/lib/lithic/models/tokenization_decisioning_retrieve_secret_params.rb +3 -8
- data/lib/lithic/models/tokenization_decisioning_rotate_secret_params.rb +3 -8
- data/lib/lithic/models/tokenization_decisioning_rotate_secret_response.rb +3 -11
- data/lib/lithic/models/tokenization_list_params.rb +21 -74
- data/lib/lithic/models/tokenization_pause_params.rb +3 -8
- data/lib/lithic/models/tokenization_resend_activation_code_params.rb +7 -19
- data/lib/lithic/models/tokenization_retrieve_params.rb +3 -8
- data/lib/lithic/models/tokenization_retrieve_response.rb +3 -11
- data/lib/lithic/models/tokenization_secret.rb +3 -11
- data/lib/lithic/models/tokenization_simulate_params.rb +19 -59
- data/lib/lithic/models/tokenization_simulate_response.rb +3 -11
- data/lib/lithic/models/tokenization_unpause_params.rb +3 -8
- data/lib/lithic/models/tokenization_update_digital_card_art_params.rb +5 -14
- data/lib/lithic/models/tokenization_update_digital_card_art_response.rb +3 -11
- data/lib/lithic/models/transaction.rb +279 -413
- data/lib/lithic/models/transaction_expire_authorization_params.rb +3 -8
- data/lib/lithic/models/transaction_list_params.rb +25 -86
- data/lib/lithic/models/transaction_retrieve_params.rb +3 -8
- data/lib/lithic/models/transaction_simulate_authorization_advice_params.rb +5 -10
- data/lib/lithic/models/transaction_simulate_authorization_advice_response.rb +5 -17
- data/lib/lithic/models/transaction_simulate_authorization_params.rb +22 -73
- data/lib/lithic/models/transaction_simulate_authorization_response.rb +5 -17
- data/lib/lithic/models/transaction_simulate_clearing_params.rb +6 -15
- data/lib/lithic/models/transaction_simulate_clearing_response.rb +3 -11
- data/lib/lithic/models/transaction_simulate_credit_authorization_params.rb +10 -23
- data/lib/lithic/models/transaction_simulate_credit_authorization_response.rb +5 -17
- data/lib/lithic/models/transaction_simulate_return_params.rb +6 -11
- data/lib/lithic/models/transaction_simulate_return_response.rb +5 -17
- data/lib/lithic/models/transaction_simulate_return_reversal_params.rb +4 -9
- data/lib/lithic/models/transaction_simulate_return_reversal_response.rb +3 -11
- data/lib/lithic/models/transaction_simulate_void_params.rb +10 -26
- data/lib/lithic/models/transaction_simulate_void_response.rb +3 -11
- data/lib/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rb +3 -8
- data/lib/lithic/models/transactions/enhanced_commercial_data_retrieve_response.rb +2 -6
- data/lib/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rb +3 -8
- data/lib/lithic/models/transactions/events/enhanced_data.rb +68 -192
- data/lib/lithic/models/transfer.rb +49 -160
- data/lib/lithic/models/transfer_create_params.rb +10 -23
- data/lib/lithic/models/verification_method.rb +2 -5
- data/lib/lithic/request_options.rb +3 -4
- data/lib/lithic/resources/account_holders.rb +10 -8
- data/lib/lithic/resources/cards.rb +16 -16
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +8 -1
- data/rbi/lib/lithic/internal/type/base_model.rbi +10 -0
- data/rbi/lib/lithic/internal/type/enum.rbi +0 -6
- data/rbi/lib/lithic/models/account.rbi +2 -3
- data/rbi/lib/lithic/models/account_financial_account_type.rbi +1 -2
- data/rbi/lib/lithic/models/account_holder.rbi +10 -13
- data/rbi/lib/lithic/models/account_holder_create_params.rbi +6 -7
- data/rbi/lib/lithic/models/account_holder_create_response.rbi +2 -4
- data/rbi/lib/lithic/models/account_holder_simulate_enrollment_document_review_params.rbi +2 -16
- data/rbi/lib/lithic/models/account_holder_simulate_enrollment_review_params.rbi +2 -10
- data/rbi/lib/lithic/models/account_holder_simulate_enrollment_review_response.rbi +10 -45
- data/rbi/lib/lithic/models/account_holder_update_params.rbi +4 -3
- data/rbi/lib/lithic/models/account_holder_update_response.rbi +10 -51
- data/rbi/lib/lithic/models/account_holder_upload_document_params.rbi +1 -2
- data/rbi/lib/lithic/models/account_update_params.rbi +1 -2
- data/rbi/lib/lithic/models/aggregate_balance.rbi +1 -2
- data/rbi/lib/lithic/models/aggregate_balance_list_params.rbi +1 -2
- data/rbi/lib/lithic/models/auth_rules/auth_rule.rbi +1 -2
- data/rbi/lib/lithic/models/auth_rules/auth_rule_condition.rbi +1 -2
- data/rbi/lib/lithic/models/auth_rules/conditional_attribute.rbi +1 -2
- data/rbi/lib/lithic/models/auth_rules/v2_apply_response.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2_create_params.rbi +1 -2
- data/rbi/lib/lithic/models/auth_rules/v2_create_response.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2_draft_response.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2_list_response.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2_promote_response.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2_retrieve_response.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2_update_params.rbi +1 -2
- data/rbi/lib/lithic/models/auth_rules/v2_update_response.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/velocity_limit_params.rbi +2 -3
- data/rbi/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +1 -2
- data/rbi/lib/lithic/models/balance.rbi +1 -2
- data/rbi/lib/lithic/models/balance_list_params.rbi +1 -2
- data/rbi/lib/lithic/models/book_transfer_create_params.rbi +2 -4
- data/rbi/lib/lithic/models/book_transfer_list_params.rbi +3 -6
- data/rbi/lib/lithic/models/book_transfer_response.rbi +5 -10
- data/rbi/lib/lithic/models/card_convert_physical_params.rbi +1 -2
- data/rbi/lib/lithic/models/card_convert_physical_response.rbi +467 -0
- data/rbi/lib/lithic/models/card_create_params.rbi +3 -4
- data/rbi/lib/lithic/models/card_create_response.rbi +458 -0
- data/rbi/lib/lithic/models/card_list_params.rbi +1 -1
- data/rbi/lib/lithic/models/card_list_response.rbi +435 -0
- data/rbi/lib/lithic/models/card_provision_params.rbi +1 -2
- data/rbi/lib/lithic/models/card_reissue_params.rbi +1 -2
- data/rbi/lib/lithic/models/card_reissue_response.rbi +458 -0
- data/rbi/lib/lithic/models/card_renew_params.rbi +1 -2
- data/rbi/lib/lithic/models/card_renew_response.rbi +457 -0
- data/rbi/lib/lithic/models/card_retrieve_response.rbi +459 -0
- data/rbi/lib/lithic/models/card_search_by_pan_response.rbi +461 -0
- data/rbi/lib/lithic/models/card_update_params.rbi +2 -3
- data/rbi/lib/lithic/models/card_update_response.rbi +458 -0
- data/rbi/lib/lithic/models/cards/balance_list_response.rbi +1 -2
- data/rbi/lib/lithic/models/cards/financial_transaction_list_params.rbi +3 -6
- data/rbi/lib/lithic/models/digital_card_art.rbi +1 -2
- data/rbi/lib/lithic/models/dispute.rbi +3 -11
- data/rbi/lib/lithic/models/dispute_create_params.rbi +1 -2
- data/rbi/lib/lithic/models/dispute_evidence.rbi +1 -2
- data/rbi/lib/lithic/models/dispute_list_params.rbi +1 -2
- data/rbi/lib/lithic/models/dispute_update_params.rbi +1 -2
- data/rbi/lib/lithic/models/document.rbi +4 -7
- data/rbi/lib/lithic/models/event.rbi +1 -1
- data/rbi/lib/lithic/models/event_list_attempts_params.rbi +1 -2
- data/rbi/lib/lithic/models/event_list_params.rbi +1 -2
- data/rbi/lib/lithic/models/event_subscription.rbi +1 -2
- data/rbi/lib/lithic/models/events/subscription_create_params.rbi +1 -2
- data/rbi/lib/lithic/models/events/subscription_list_attempts_params.rbi +1 -2
- data/rbi/lib/lithic/models/events/subscription_send_simulated_example_params.rbi +1 -8
- data/rbi/lib/lithic/models/events/subscription_update_params.rbi +1 -2
- data/rbi/lib/lithic/models/external_bank_account_create_params.rbi +2 -4
- data/rbi/lib/lithic/models/external_bank_account_create_response.rbi +5 -10
- data/rbi/lib/lithic/models/external_bank_account_list_params.rbi +3 -6
- data/rbi/lib/lithic/models/external_bank_account_list_response.rbi +5 -10
- data/rbi/lib/lithic/models/external_bank_account_retrieve_response.rbi +5 -22
- data/rbi/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +5 -28
- data/rbi/lib/lithic/models/external_bank_account_retry_prenote_response.rbi +3 -12
- data/rbi/lib/lithic/models/external_bank_account_update_params.rbi +1 -2
- data/rbi/lib/lithic/models/external_bank_account_update_response.rbi +5 -10
- data/rbi/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +5 -40
- data/rbi/lib/lithic/models/external_payment.rbi +7 -12
- data/rbi/lib/lithic/models/external_payment_create_params.rbi +3 -6
- data/rbi/lib/lithic/models/external_payment_list_params.rbi +3 -6
- data/rbi/lib/lithic/models/external_payment_settle_params.rbi +1 -2
- data/rbi/lib/lithic/models/financial_account.rbi +7 -20
- data/rbi/lib/lithic/models/financial_account_create_params.rbi +1 -2
- data/rbi/lib/lithic/models/financial_account_list_params.rbi +1 -2
- data/rbi/lib/lithic/models/financial_account_update_status_params.rbi +2 -4
- data/rbi/lib/lithic/models/financial_accounts/balance_list_response.rbi +1 -2
- data/rbi/lib/lithic/models/financial_accounts/financial_account_credit_config.rbi +2 -16
- data/rbi/lib/lithic/models/financial_accounts/financial_transaction_list_params.rbi +3 -24
- data/rbi/lib/lithic/models/financial_accounts/loan_tape.rbi +4 -32
- data/rbi/lib/lithic/models/financial_accounts/statement.rbi +5 -34
- data/rbi/lib/lithic/models/financial_accounts/statements/statement_line_items.rbi +12 -16
- data/rbi/lib/lithic/models/financial_transaction.rbi +7 -10
- data/rbi/lib/lithic/models/instance_financial_account_type.rbi +4 -2
- data/rbi/lib/lithic/models/kyb.rbi +5 -4
- data/rbi/lib/lithic/models/kyc.rbi +1 -1
- data/rbi/lib/lithic/models/kyc_exempt.rbi +2 -3
- data/rbi/lib/lithic/models/management_operation_create_params.rbi +22 -16
- data/rbi/lib/lithic/models/management_operation_list_params.rbi +4 -4
- data/rbi/lib/lithic/models/management_operation_transaction.rbi +26 -24
- 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 +10 -12
- data/rbi/lib/lithic/models/payment_create_params.rbi +3 -6
- data/rbi/lib/lithic/models/payment_list_params.rbi +3 -6
- data/rbi/lib/lithic/models/payment_simulate_action_params.rbi +2 -4
- data/rbi/lib/lithic/models/payment_simulate_action_response.rbi +1 -2
- data/rbi/lib/lithic/models/payment_simulate_receipt_params.rbi +2 -3
- data/rbi/lib/lithic/models/payment_simulate_receipt_response.rbi +1 -2
- data/rbi/lib/lithic/models/payment_simulate_release_response.rbi +1 -2
- data/rbi/lib/lithic/models/payment_simulate_return_response.rbi +1 -2
- data/rbi/lib/lithic/models/reports/settlement/network_total_list_params.rbi +1 -2
- data/rbi/lib/lithic/models/reports/settlement/network_total_list_response.rbi +1 -8
- data/rbi/lib/lithic/models/reports/settlement/network_total_retrieve_response.rbi +1 -8
- data/rbi/lib/lithic/models/responder_endpoint_check_status_params.rbi +1 -2
- data/rbi/lib/lithic/models/responder_endpoint_create_params.rbi +1 -2
- data/rbi/lib/lithic/models/responder_endpoint_delete_params.rbi +1 -2
- data/rbi/lib/lithic/models/settlement_detail.rbi +2 -3
- data/rbi/lib/lithic/models/settlement_summary_details.rbi +1 -2
- data/rbi/lib/lithic/models/spend_limit_duration.rbi +1 -1
- data/rbi/lib/lithic/models/three_ds/authentication_retrieve_response.rbi +17 -124
- data/rbi/lib/lithic/models/three_ds/authentication_simulate_params.rbi +1 -8
- data/rbi/lib/lithic/models/three_ds/challenge_result.rbi +1 -1
- data/rbi/lib/lithic/models/tokenization.rbi +5 -9
- data/rbi/lib/lithic/models/tokenization_list_params.rbi +1 -2
- data/rbi/lib/lithic/models/tokenization_resend_activation_code_params.rbi +1 -8
- data/rbi/lib/lithic/models/tokenization_simulate_params.rbi +2 -4
- data/rbi/lib/lithic/models/transaction.rbi +184 -68
- data/rbi/lib/lithic/models/transaction_list_params.rbi +2 -4
- data/rbi/lib/lithic/models/transaction_simulate_authorization_params.rbi +1 -2
- data/rbi/lib/lithic/models/transaction_simulate_void_params.rbi +1 -2
- data/rbi/lib/lithic/models/transactions/events/enhanced_data.rbi +4 -26
- data/rbi/lib/lithic/models/transfer.rbi +7 -5
- data/rbi/lib/lithic/models/verification_method.rbi +1 -1
- data/rbi/lib/lithic/resources/account_holders.rbi +18 -14
- data/rbi/lib/lithic/resources/cards.rbi +8 -8
- data/rbi/lib/lithic/resources/payments.rbi +1 -1
- data/sig/lithic/internal/type/base_model.rbs +6 -0
- data/sig/lithic/internal/type/enum.rbs +0 -2
- data/sig/lithic/models/card_convert_physical_response.rbs +257 -0
- data/sig/lithic/models/card_create_response.rbs +257 -0
- data/sig/lithic/models/card_list_response.rbs +245 -0
- data/sig/lithic/models/card_reissue_response.rbs +257 -0
- data/sig/lithic/models/{card.rbs → card_renew_response.rbs} +45 -30
- data/sig/lithic/models/card_retrieve_response.rbs +257 -0
- data/sig/lithic/models/card_search_by_pan_response.rbs +257 -0
- data/sig/lithic/models/card_update_response.rbs +257 -0
- data/sig/lithic/models/dispute.rbs +0 -4
- data/sig/lithic/models/financial_account.rbs +4 -0
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +4 -0
- data/sig/lithic/models/financial_transaction.rbs +2 -0
- data/sig/lithic/models/instance_financial_account_type.rbs +4 -0
- data/sig/lithic/models/management_operation_create_params.rbs +23 -13
- data/sig/lithic/models/management_operation_list_params.rbs +2 -0
- data/sig/lithic/models/management_operation_transaction.rbs +23 -13
- data/sig/lithic/models/transaction.rbs +87 -4
- data/sig/lithic/models/transfer.rbs +2 -0
- data/sig/lithic/resources/cards.rbs +8 -8
- metadata +27 -5
- data/lib/lithic/models/card.rb +0 -524
- data/rbi/lib/lithic/models/card.rbi +0 -487
@@ -4,17 +4,13 @@ module Lithic
|
|
4
4
|
module Models
|
5
5
|
# @see Lithic::Resources::Transfers#create
|
6
6
|
class Transfer < Lithic::Internal::Type::BaseModel
|
7
|
-
# @!attribute
|
7
|
+
# @!attribute token
|
8
8
|
# Globally unique identifier for the transfer event.
|
9
9
|
#
|
10
10
|
# @return [String, nil]
|
11
11
|
optional :token, String
|
12
12
|
|
13
|
-
# @!
|
14
|
-
# # @return [String]
|
15
|
-
# attr_writer :token
|
16
|
-
|
17
|
-
# @!attribute [r] category
|
13
|
+
# @!attribute category
|
18
14
|
# Status types:
|
19
15
|
#
|
20
16
|
# - `TRANSFER` - Internal transfer of funds between financial accounts in your
|
@@ -23,63 +19,39 @@ module Lithic
|
|
23
19
|
# @return [Symbol, Lithic::Models::Transfer::Category, nil]
|
24
20
|
optional :category, enum: -> { Lithic::Models::Transfer::Category }
|
25
21
|
|
26
|
-
# @!
|
27
|
-
# # @return [Symbol, Lithic::Models::Transfer::Category]
|
28
|
-
# attr_writer :category
|
29
|
-
|
30
|
-
# @!attribute [r] created
|
22
|
+
# @!attribute created
|
31
23
|
# Date and time when the transfer occurred. UTC time zone.
|
32
24
|
#
|
33
25
|
# @return [Time, nil]
|
34
26
|
optional :created, Time
|
35
27
|
|
36
|
-
# @!
|
37
|
-
# # @return [Time]
|
38
|
-
# attr_writer :created
|
39
|
-
|
40
|
-
# @!attribute [r] currency
|
28
|
+
# @!attribute currency
|
41
29
|
# 3-character alphabetic ISO 4217 code for the settling currency of the
|
42
30
|
# transaction.
|
43
31
|
#
|
44
32
|
# @return [String, nil]
|
45
33
|
optional :currency, String
|
46
34
|
|
47
|
-
# @!
|
48
|
-
# # @return [String]
|
49
|
-
# attr_writer :currency
|
50
|
-
|
51
|
-
# @!attribute [r] descriptor
|
35
|
+
# @!attribute descriptor
|
52
36
|
# A string that provides a description of the transfer; may be useful to display
|
53
37
|
# to users.
|
54
38
|
#
|
55
39
|
# @return [String, nil]
|
56
40
|
optional :descriptor, String
|
57
41
|
|
58
|
-
# @!
|
59
|
-
# # @return [String]
|
60
|
-
# attr_writer :descriptor
|
61
|
-
|
62
|
-
# @!attribute [r] events
|
42
|
+
# @!attribute events
|
63
43
|
# A list of all financial events that have modified this trasnfer.
|
64
44
|
#
|
65
45
|
# @return [Array<Lithic::Models::Transfer::Event>, nil]
|
66
46
|
optional :events, -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::Transfer::Event] }
|
67
47
|
|
68
|
-
# @!
|
69
|
-
# # @return [Array<Lithic::Models::Transfer::Event>]
|
70
|
-
# attr_writer :events
|
71
|
-
|
72
|
-
# @!attribute [r] from_balance
|
48
|
+
# @!attribute from_balance
|
73
49
|
# The updated balance of the sending financial account.
|
74
50
|
#
|
75
51
|
# @return [Array<Lithic::Models::Balance>, nil]
|
76
52
|
optional :from_balance, -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::Balance] }
|
77
53
|
|
78
|
-
# @!
|
79
|
-
# # @return [Array<Lithic::Models::Balance>]
|
80
|
-
# attr_writer :from_balance
|
81
|
-
|
82
|
-
# @!attribute [r] pending_amount
|
54
|
+
# @!attribute pending_amount
|
83
55
|
# Pending amount of the transaction in the currency's smallest unit (e.g., cents),
|
84
56
|
# including any acquirer fees. The value of this field will go to zero over time
|
85
57
|
# once the financial transaction is settled.
|
@@ -87,33 +59,21 @@ module Lithic
|
|
87
59
|
# @return [Integer, nil]
|
88
60
|
optional :pending_amount, Integer
|
89
61
|
|
90
|
-
# @!
|
91
|
-
# # @return [Integer]
|
92
|
-
# attr_writer :pending_amount
|
93
|
-
|
94
|
-
# @!attribute [r] result
|
62
|
+
# @!attribute result
|
95
63
|
# APPROVED transactions were successful while DECLINED transactions were declined
|
96
64
|
# by user, Lithic, or the network.
|
97
65
|
#
|
98
66
|
# @return [Symbol, Lithic::Models::Transfer::Result, nil]
|
99
67
|
optional :result, enum: -> { Lithic::Models::Transfer::Result }
|
100
68
|
|
101
|
-
# @!
|
102
|
-
# # @return [Symbol, Lithic::Models::Transfer::Result]
|
103
|
-
# attr_writer :result
|
104
|
-
|
105
|
-
# @!attribute [r] settled_amount
|
69
|
+
# @!attribute settled_amount
|
106
70
|
# Amount of the transaction that has been settled in the currency's smallest unit
|
107
71
|
# (e.g., cents).
|
108
72
|
#
|
109
73
|
# @return [Integer, nil]
|
110
74
|
optional :settled_amount, Integer
|
111
75
|
|
112
|
-
# @!
|
113
|
-
# # @return [Integer]
|
114
|
-
# attr_writer :settled_amount
|
115
|
-
|
116
|
-
# @!attribute [r] status
|
76
|
+
# @!attribute status
|
117
77
|
# Status types:
|
118
78
|
#
|
119
79
|
# - `DECLINED` - The transfer was declined.
|
@@ -125,65 +85,32 @@ module Lithic
|
|
125
85
|
# @return [Symbol, Lithic::Models::Transfer::Status, nil]
|
126
86
|
optional :status, enum: -> { Lithic::Models::Transfer::Status }
|
127
87
|
|
128
|
-
# @!
|
129
|
-
# # @return [Symbol, Lithic::Models::Transfer::Status]
|
130
|
-
# attr_writer :status
|
131
|
-
|
132
|
-
# @!attribute [r] to_balance
|
88
|
+
# @!attribute to_balance
|
133
89
|
# The updated balance of the receiving financial account.
|
134
90
|
#
|
135
91
|
# @return [Array<Lithic::Models::Balance>, nil]
|
136
92
|
optional :to_balance, -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::Balance] }
|
137
93
|
|
138
|
-
# @!
|
139
|
-
# # @return [Array<Lithic::Models::Balance>]
|
140
|
-
# attr_writer :to_balance
|
141
|
-
|
142
|
-
# @!attribute [r] updated
|
94
|
+
# @!attribute updated
|
143
95
|
# Date and time when the financial transaction was last updated. UTC time zone.
|
144
96
|
#
|
145
97
|
# @return [Time, nil]
|
146
98
|
optional :updated, Time
|
147
99
|
|
148
|
-
# @!
|
149
|
-
#
|
150
|
-
#
|
151
|
-
|
152
|
-
#
|
153
|
-
#
|
154
|
-
#
|
155
|
-
#
|
156
|
-
#
|
157
|
-
#
|
158
|
-
#
|
159
|
-
#
|
160
|
-
#
|
161
|
-
#
|
162
|
-
# # @param settled_amount [Integer]
|
163
|
-
# # @param status [Symbol, Lithic::Models::Transfer::Status]
|
164
|
-
# # @param to_balance [Array<Lithic::Models::Balance>]
|
165
|
-
# # @param updated [Time]
|
166
|
-
# #
|
167
|
-
# def initialize(
|
168
|
-
# token: nil,
|
169
|
-
# category: nil,
|
170
|
-
# created: nil,
|
171
|
-
# currency: nil,
|
172
|
-
# descriptor: nil,
|
173
|
-
# events: nil,
|
174
|
-
# from_balance: nil,
|
175
|
-
# pending_amount: nil,
|
176
|
-
# result: nil,
|
177
|
-
# settled_amount: nil,
|
178
|
-
# status: nil,
|
179
|
-
# to_balance: nil,
|
180
|
-
# updated: nil,
|
181
|
-
# **
|
182
|
-
# )
|
183
|
-
# super
|
184
|
-
# end
|
185
|
-
|
186
|
-
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
|
100
|
+
# @!method initialize(token: nil, category: nil, created: nil, currency: nil, descriptor: nil, events: nil, from_balance: nil, pending_amount: nil, result: nil, settled_amount: nil, status: nil, to_balance: nil, updated: nil)
|
101
|
+
# @param token [String]
|
102
|
+
# @param category [Symbol, Lithic::Models::Transfer::Category]
|
103
|
+
# @param created [Time]
|
104
|
+
# @param currency [String]
|
105
|
+
# @param descriptor [String]
|
106
|
+
# @param events [Array<Lithic::Models::Transfer::Event>]
|
107
|
+
# @param from_balance [Array<Lithic::Models::Balance>]
|
108
|
+
# @param pending_amount [Integer]
|
109
|
+
# @param result [Symbol, Lithic::Models::Transfer::Result]
|
110
|
+
# @param settled_amount [Integer]
|
111
|
+
# @param status [Symbol, Lithic::Models::Transfer::Status]
|
112
|
+
# @param to_balance [Array<Lithic::Models::Balance>]
|
113
|
+
# @param updated [Time]
|
187
114
|
|
188
115
|
# Status types:
|
189
116
|
#
|
@@ -196,75 +123,48 @@ module Lithic
|
|
196
123
|
|
197
124
|
TRANSFER = :TRANSFER
|
198
125
|
|
199
|
-
|
200
|
-
|
201
|
-
# @!parse
|
202
|
-
# # @return [Array<Symbol>]
|
203
|
-
# def self.values; end
|
126
|
+
# @!method self.values
|
127
|
+
# @return [Array<Symbol>]
|
204
128
|
end
|
205
129
|
|
206
130
|
class Event < Lithic::Internal::Type::BaseModel
|
207
|
-
# @!attribute
|
131
|
+
# @!attribute token
|
208
132
|
# Globally unique identifier.
|
209
133
|
#
|
210
134
|
# @return [String, nil]
|
211
135
|
optional :token, String
|
212
136
|
|
213
|
-
# @!
|
214
|
-
# # @return [String]
|
215
|
-
# attr_writer :token
|
216
|
-
|
217
|
-
# @!attribute [r] amount
|
137
|
+
# @!attribute amount
|
218
138
|
# Amount of the financial event that has been settled in the currency's smallest
|
219
139
|
# unit (e.g., cents).
|
220
140
|
#
|
221
141
|
# @return [Integer, nil]
|
222
142
|
optional :amount, Integer
|
223
143
|
|
224
|
-
# @!
|
225
|
-
# # @return [Integer]
|
226
|
-
# attr_writer :amount
|
227
|
-
|
228
|
-
# @!attribute [r] created
|
144
|
+
# @!attribute created
|
229
145
|
# Date and time when the financial event occurred. UTC time zone.
|
230
146
|
#
|
231
147
|
# @return [Time, nil]
|
232
148
|
optional :created, Time
|
233
149
|
|
234
|
-
# @!
|
235
|
-
# # @return [Time]
|
236
|
-
# attr_writer :created
|
237
|
-
|
238
|
-
# @!attribute [r] result
|
150
|
+
# @!attribute result
|
239
151
|
# APPROVED financial events were successful while DECLINED financial events were
|
240
152
|
# declined by user, Lithic, or the network.
|
241
153
|
#
|
242
154
|
# @return [Symbol, Lithic::Models::Transfer::Event::Result, nil]
|
243
155
|
optional :result, enum: -> { Lithic::Models::Transfer::Event::Result }
|
244
156
|
|
245
|
-
# @!
|
246
|
-
# # @return [Symbol, Lithic::Models::Transfer::Event::Result]
|
247
|
-
# attr_writer :result
|
248
|
-
|
249
|
-
# @!attribute [r] type
|
157
|
+
# @!attribute type
|
250
158
|
#
|
251
159
|
# @return [Symbol, Lithic::Models::Transfer::Event::Type, nil]
|
252
160
|
optional :type, enum: -> { Lithic::Models::Transfer::Event::Type }
|
253
161
|
|
254
|
-
# @!
|
255
|
-
#
|
256
|
-
#
|
257
|
-
|
258
|
-
#
|
259
|
-
#
|
260
|
-
# # @param amount [Integer]
|
261
|
-
# # @param created [Time]
|
262
|
-
# # @param result [Symbol, Lithic::Models::Transfer::Event::Result]
|
263
|
-
# # @param type [Symbol, Lithic::Models::Transfer::Event::Type]
|
264
|
-
# #
|
265
|
-
# def initialize(token: nil, amount: nil, created: nil, result: nil, type: nil, **) = super
|
266
|
-
|
267
|
-
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
|
162
|
+
# @!method initialize(token: nil, amount: nil, created: nil, result: nil, type: nil)
|
163
|
+
# @param token [String]
|
164
|
+
# @param amount [Integer]
|
165
|
+
# @param created [Time]
|
166
|
+
# @param result [Symbol, Lithic::Models::Transfer::Event::Result]
|
167
|
+
# @param type [Symbol, Lithic::Models::Transfer::Event::Type]
|
268
168
|
|
269
169
|
# APPROVED financial events were successful while DECLINED financial events were
|
270
170
|
# declined by user, Lithic, or the network.
|
@@ -276,11 +176,8 @@ module Lithic
|
|
276
176
|
APPROVED = :APPROVED
|
277
177
|
DECLINED = :DECLINED
|
278
178
|
|
279
|
-
|
280
|
-
|
281
|
-
# @!parse
|
282
|
-
# # @return [Array<Symbol>]
|
283
|
-
# def self.values; end
|
179
|
+
# @!method self.values
|
180
|
+
# @return [Array<Symbol>]
|
284
181
|
end
|
285
182
|
|
286
183
|
# @see Lithic::Models::Transfer::Event#type
|
@@ -352,12 +249,10 @@ module Lithic
|
|
352
249
|
TRANSFER_INSUFFICIENT_FUNDS = :TRANSFER_INSUFFICIENT_FUNDS
|
353
250
|
RETURNED_PAYMENT = :RETURNED_PAYMENT
|
354
251
|
RETURNED_PAYMENT_REVERSAL = :RETURNED_PAYMENT_REVERSAL
|
252
|
+
LITHIC_NETWORK_PAYMENT = :LITHIC_NETWORK_PAYMENT
|
355
253
|
|
356
|
-
|
357
|
-
|
358
|
-
# @!parse
|
359
|
-
# # @return [Array<Symbol>]
|
360
|
-
# def self.values; end
|
254
|
+
# @!method self.values
|
255
|
+
# @return [Array<Symbol>]
|
361
256
|
end
|
362
257
|
end
|
363
258
|
|
@@ -371,11 +266,8 @@ module Lithic
|
|
371
266
|
APPROVED = :APPROVED
|
372
267
|
DECLINED = :DECLINED
|
373
268
|
|
374
|
-
|
375
|
-
|
376
|
-
# @!parse
|
377
|
-
# # @return [Array<Symbol>]
|
378
|
-
# def self.values; end
|
269
|
+
# @!method self.values
|
270
|
+
# @return [Array<Symbol>]
|
379
271
|
end
|
380
272
|
|
381
273
|
# Status types:
|
@@ -396,11 +288,8 @@ module Lithic
|
|
396
288
|
SETTLED = :SETTLED
|
397
289
|
VOIDED = :VOIDED
|
398
290
|
|
399
|
-
|
400
|
-
|
401
|
-
# @!parse
|
402
|
-
# # @return [Array<Symbol>]
|
403
|
-
# def self.values; end
|
291
|
+
# @!method self.values
|
292
|
+
# @return [Array<Symbol>]
|
404
293
|
end
|
405
294
|
end
|
406
295
|
end
|
@@ -4,8 +4,7 @@ module Lithic
|
|
4
4
|
module Models
|
5
5
|
# @see Lithic::Resources::Transfers#create
|
6
6
|
class TransferCreateParams < Lithic::Internal::Type::BaseModel
|
7
|
-
|
8
|
-
# extend Lithic::Internal::Type::RequestParameters::Converter
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
9
8
|
include Lithic::Internal::Type::RequestParameters
|
10
9
|
|
11
10
|
# @!attribute amount
|
@@ -29,38 +28,26 @@ module Lithic
|
|
29
28
|
# @return [String]
|
30
29
|
required :to, String
|
31
30
|
|
32
|
-
# @!attribute
|
31
|
+
# @!attribute token
|
33
32
|
# Customer-provided token that will serve as an idempotency token. This token will
|
34
33
|
# become the transaction token.
|
35
34
|
#
|
36
35
|
# @return [String, nil]
|
37
36
|
optional :token, String
|
38
37
|
|
39
|
-
# @!
|
40
|
-
# # @return [String]
|
41
|
-
# attr_writer :token
|
42
|
-
|
43
|
-
# @!attribute [r] memo
|
38
|
+
# @!attribute memo
|
44
39
|
# Optional descriptor for the transfer.
|
45
40
|
#
|
46
41
|
# @return [String, nil]
|
47
42
|
optional :memo, String
|
48
43
|
|
49
|
-
# @!
|
50
|
-
#
|
51
|
-
#
|
52
|
-
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
# # @param to [String]
|
57
|
-
# # @param token [String]
|
58
|
-
# # @param memo [String]
|
59
|
-
# # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
60
|
-
# #
|
61
|
-
# def initialize(amount:, from:, to:, token: nil, memo: nil, request_options: {}, **) = super
|
62
|
-
|
63
|
-
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
|
44
|
+
# @!method initialize(amount:, from:, to:, token: nil, memo: nil, request_options: {})
|
45
|
+
# @param amount [Integer]
|
46
|
+
# @param from [String]
|
47
|
+
# @param to [String]
|
48
|
+
# @param token [String]
|
49
|
+
# @param memo [String]
|
50
|
+
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
|
64
51
|
end
|
65
52
|
end
|
66
53
|
end
|
@@ -66,10 +66,9 @@ module Lithic
|
|
66
66
|
optional :timeout, Float
|
67
67
|
|
68
68
|
# @!parse
|
69
|
-
# #
|
69
|
+
# # @!method initialize(values = {})
|
70
|
+
# # Returns a new instance of RequestOptions.
|
70
71
|
# #
|
71
|
-
# #
|
72
|
-
# #
|
73
|
-
# def initialize(values = {}) = super
|
72
|
+
# # @param values [Hash{Symbol=>Object}]
|
74
73
|
end
|
75
74
|
end
|
@@ -6,10 +6,11 @@ module Lithic
|
|
6
6
|
# Create an account holder and initiate the appropriate onboarding workflow.
|
7
7
|
# Account holders and accounts have a 1:1 relationship. When an account holder is
|
8
8
|
# successfully created an associated account is also created. All calls to this
|
9
|
-
# endpoint will return
|
10
|
-
#
|
11
|
-
#
|
12
|
-
# accounts that are part of the program
|
9
|
+
# endpoint will return a synchronous response. The response time will depend on
|
10
|
+
# the workflow. In some cases, the response may indicate the workflow is under
|
11
|
+
# review or further action will be needed to complete the account creation
|
12
|
+
# process. This endpoint can only be used on accounts that are part of the program
|
13
|
+
# that the calling API key manages.
|
13
14
|
#
|
14
15
|
# @overload create(beneficial_owner_individuals:, business_entity:, control_person:, nature_of_business:, tos_timestamp:, workflow:, individual:, address:, email:, first_name:, kyc_exemption_type:, last_name:, phone_number:, beneficial_owner_entities: nil, external_id: nil, kyb_passed_timestamp: nil, website_url: nil, kyc_passed_timestamp: nil, business_account_token: nil, request_options: {})
|
15
16
|
#
|
@@ -73,10 +74,11 @@ module Lithic
|
|
73
74
|
# is performing KYB or KYC and additional verification is required we will run the
|
74
75
|
# individual's or business's updated information again and return whether the
|
75
76
|
# status is accepted or pending (i.e., further action required). All calls to this
|
76
|
-
# endpoint will return
|
77
|
-
#
|
78
|
-
#
|
79
|
-
#
|
77
|
+
# endpoint will return a synchronous response. The response time will depend on
|
78
|
+
# the workflow. In some cases, the response may indicate the workflow is under
|
79
|
+
# review or further action will be needed to complete the account creation
|
80
|
+
# process. This endpoint can only be used on existing accounts that are part of
|
81
|
+
# the program that the calling API key manages.
|
80
82
|
#
|
81
83
|
# @overload update(account_holder_token, beneficial_owner_entities: nil, beneficial_owner_individuals: nil, business_entity: nil, control_person: nil, external_id: nil, nature_of_business: nil, website_url: nil, individual: nil, address: nil, business_account_token: nil, email: nil, first_name: nil, last_name: nil, legal_business_name: nil, phone_number: nil, request_options: {})
|
82
84
|
#
|
@@ -36,7 +36,7 @@ module Lithic
|
|
36
36
|
# @param state [Symbol, Lithic::Models::CardCreateParams::State]
|
37
37
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
38
38
|
#
|
39
|
-
# @return [Lithic::Models::
|
39
|
+
# @return [Lithic::Models::CardCreateResponse]
|
40
40
|
#
|
41
41
|
# @see Lithic::Models::CardCreateParams
|
42
42
|
def create(params)
|
@@ -45,7 +45,7 @@ module Lithic
|
|
45
45
|
method: :post,
|
46
46
|
path: "v1/cards",
|
47
47
|
body: parsed,
|
48
|
-
model: Lithic::Models::
|
48
|
+
model: Lithic::Models::CardCreateResponse,
|
49
49
|
options: options
|
50
50
|
)
|
51
51
|
end
|
@@ -57,14 +57,14 @@ module Lithic
|
|
57
57
|
# @param card_token [String]
|
58
58
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
59
59
|
#
|
60
|
-
# @return [Lithic::Models::
|
60
|
+
# @return [Lithic::Models::CardRetrieveResponse]
|
61
61
|
#
|
62
62
|
# @see Lithic::Models::CardRetrieveParams
|
63
63
|
def retrieve(card_token, params = {})
|
64
64
|
@client.request(
|
65
65
|
method: :get,
|
66
66
|
path: ["v1/cards/%1$s", card_token],
|
67
|
-
model: Lithic::Models::
|
67
|
+
model: Lithic::Models::CardRetrieveResponse,
|
68
68
|
options: params[:request_options]
|
69
69
|
)
|
70
70
|
end
|
@@ -87,7 +87,7 @@ module Lithic
|
|
87
87
|
# @param state [Symbol, Lithic::Models::CardUpdateParams::State]
|
88
88
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
89
89
|
#
|
90
|
-
# @return [Lithic::Models::
|
90
|
+
# @return [Lithic::Models::CardUpdateResponse]
|
91
91
|
#
|
92
92
|
# @see Lithic::Models::CardUpdateParams
|
93
93
|
def update(card_token, params = {})
|
@@ -96,7 +96,7 @@ module Lithic
|
|
96
96
|
method: :patch,
|
97
97
|
path: ["v1/cards/%1$s", card_token],
|
98
98
|
body: parsed,
|
99
|
-
model: Lithic::Models::
|
99
|
+
model: Lithic::Models::CardUpdateResponse,
|
100
100
|
options: options
|
101
101
|
)
|
102
102
|
end
|
@@ -114,7 +114,7 @@ module Lithic
|
|
114
114
|
# @param state [Symbol, Lithic::Models::CardListParams::State]
|
115
115
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
116
116
|
#
|
117
|
-
# @return [Lithic::Internal::CursorPage<Lithic::Models::
|
117
|
+
# @return [Lithic::Internal::CursorPage<Lithic::Models::CardListResponse>]
|
118
118
|
#
|
119
119
|
# @see Lithic::Models::CardListParams
|
120
120
|
def list(params = {})
|
@@ -124,7 +124,7 @@ module Lithic
|
|
124
124
|
path: "v1/cards",
|
125
125
|
query: parsed.transform_keys(begin_: "begin", end_: "end"),
|
126
126
|
page: Lithic::Internal::CursorPage,
|
127
|
-
model: Lithic::Models::
|
127
|
+
model: Lithic::Models::CardListResponse,
|
128
128
|
options: options
|
129
129
|
)
|
130
130
|
end
|
@@ -149,7 +149,7 @@ module Lithic
|
|
149
149
|
# @param shipping_method [Symbol, Lithic::Models::CardConvertPhysicalParams::ShippingMethod]
|
150
150
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
151
151
|
#
|
152
|
-
# @return [Lithic::Models::
|
152
|
+
# @return [Lithic::Models::CardConvertPhysicalResponse]
|
153
153
|
#
|
154
154
|
# @see Lithic::Models::CardConvertPhysicalParams
|
155
155
|
def convert_physical(card_token, params)
|
@@ -158,7 +158,7 @@ module Lithic
|
|
158
158
|
method: :post,
|
159
159
|
path: ["v1/cards/%1$s/convert_physical", card_token],
|
160
160
|
body: parsed,
|
161
|
-
model: Lithic::Models::
|
161
|
+
model: Lithic::Models::CardConvertPhysicalResponse,
|
162
162
|
options: options
|
163
163
|
)
|
164
164
|
end
|
@@ -259,7 +259,7 @@ module Lithic
|
|
259
259
|
# @param shipping_method [Symbol, Lithic::Models::CardReissueParams::ShippingMethod]
|
260
260
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
261
261
|
#
|
262
|
-
# @return [Lithic::Models::
|
262
|
+
# @return [Lithic::Models::CardReissueResponse]
|
263
263
|
#
|
264
264
|
# @see Lithic::Models::CardReissueParams
|
265
265
|
def reissue(card_token, params = {})
|
@@ -268,7 +268,7 @@ module Lithic
|
|
268
268
|
method: :post,
|
269
269
|
path: ["v1/cards/%1$s/reissue", card_token],
|
270
270
|
body: parsed,
|
271
|
-
model: Lithic::Models::
|
271
|
+
model: Lithic::Models::CardReissueResponse,
|
272
272
|
options: options
|
273
273
|
)
|
274
274
|
end
|
@@ -294,7 +294,7 @@ module Lithic
|
|
294
294
|
# @param shipping_method [Symbol, Lithic::Models::CardRenewParams::ShippingMethod]
|
295
295
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
296
296
|
#
|
297
|
-
# @return [Lithic::Models::
|
297
|
+
# @return [Lithic::Models::CardRenewResponse]
|
298
298
|
#
|
299
299
|
# @see Lithic::Models::CardRenewParams
|
300
300
|
def renew(card_token, params)
|
@@ -303,7 +303,7 @@ module Lithic
|
|
303
303
|
method: :post,
|
304
304
|
path: ["v1/cards/%1$s/renew", card_token],
|
305
305
|
body: parsed,
|
306
|
-
model: Lithic::Models::
|
306
|
+
model: Lithic::Models::CardRenewResponse,
|
307
307
|
options: options
|
308
308
|
)
|
309
309
|
end
|
@@ -341,7 +341,7 @@ module Lithic
|
|
341
341
|
# @param pan [String]
|
342
342
|
# @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
|
343
343
|
#
|
344
|
-
# @return [Lithic::Models::
|
344
|
+
# @return [Lithic::Models::CardSearchByPanResponse]
|
345
345
|
#
|
346
346
|
# @see Lithic::Models::CardSearchByPanParams
|
347
347
|
def search_by_pan(params)
|
@@ -350,7 +350,7 @@ module Lithic
|
|
350
350
|
method: :post,
|
351
351
|
path: "v1/cards/search_by_pan",
|
352
352
|
body: parsed,
|
353
|
-
model: Lithic::Models::
|
353
|
+
model: Lithic::Models::CardSearchByPanResponse,
|
354
354
|
options: options
|
355
355
|
)
|
356
356
|
end
|
data/lib/lithic/version.rb
CHANGED
data/lib/lithic.rb
CHANGED
@@ -121,19 +121,24 @@ require_relative "lithic/models/book_transfer_list_params"
|
|
121
121
|
require_relative "lithic/models/book_transfer_response"
|
122
122
|
require_relative "lithic/models/book_transfer_retrieve_params"
|
123
123
|
require_relative "lithic/models/book_transfer_reverse_params"
|
124
|
-
require_relative "lithic/models/card"
|
125
124
|
require_relative "lithic/models/card_convert_physical_params"
|
125
|
+
require_relative "lithic/models/card_convert_physical_response"
|
126
126
|
require_relative "lithic/models/card_create_params"
|
127
|
+
require_relative "lithic/models/card_create_response"
|
127
128
|
require_relative "lithic/models/card_embed_params"
|
128
129
|
require_relative "lithic/models/card_list_params"
|
130
|
+
require_relative "lithic/models/card_list_response"
|
129
131
|
require_relative "lithic/models/card_program"
|
130
132
|
require_relative "lithic/models/card_program_list_params"
|
131
133
|
require_relative "lithic/models/card_program_retrieve_params"
|
132
134
|
require_relative "lithic/models/card_provision_params"
|
133
135
|
require_relative "lithic/models/card_provision_response"
|
134
136
|
require_relative "lithic/models/card_reissue_params"
|
137
|
+
require_relative "lithic/models/card_reissue_response"
|
135
138
|
require_relative "lithic/models/card_renew_params"
|
139
|
+
require_relative "lithic/models/card_renew_response"
|
136
140
|
require_relative "lithic/models/card_retrieve_params"
|
141
|
+
require_relative "lithic/models/card_retrieve_response"
|
137
142
|
require_relative "lithic/models/card_retrieve_spend_limits_params"
|
138
143
|
require_relative "lithic/models/cards/aggregate_balance_list_params"
|
139
144
|
require_relative "lithic/models/cards/aggregate_balance_list_response"
|
@@ -142,8 +147,10 @@ require_relative "lithic/models/cards/balance_list_response"
|
|
142
147
|
require_relative "lithic/models/cards/financial_transaction_list_params"
|
143
148
|
require_relative "lithic/models/cards/financial_transaction_retrieve_params"
|
144
149
|
require_relative "lithic/models/card_search_by_pan_params"
|
150
|
+
require_relative "lithic/models/card_search_by_pan_response"
|
145
151
|
require_relative "lithic/models/card_spend_limits"
|
146
152
|
require_relative "lithic/models/card_update_params"
|
153
|
+
require_relative "lithic/models/card_update_response"
|
147
154
|
require_relative "lithic/models/carrier"
|
148
155
|
require_relative "lithic/models/client_api_status_params"
|
149
156
|
require_relative "lithic/models/credit_products/extended_credit"
|