lithic 0.1.0.pre.alpha.14 → 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/CHANGELOG.md +16 -0
- data/README.md +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 +26 -5
- data/lib/lithic/models/card.rb +0 -524
- data/rbi/lib/lithic/models/card.rbi +0 -487
data/lib/lithic/models/card.rb
DELETED
@@ -1,524 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Lithic
|
4
|
-
module Models
|
5
|
-
# @see Lithic::Resources::Cards#create
|
6
|
-
class Card < Lithic::Internal::Type::BaseModel
|
7
|
-
# @!attribute token
|
8
|
-
# Globally unique identifier.
|
9
|
-
#
|
10
|
-
# @return [String]
|
11
|
-
required :token, String
|
12
|
-
|
13
|
-
# @!attribute account_token
|
14
|
-
# Globally unique identifier for the account to which the card belongs.
|
15
|
-
#
|
16
|
-
# @return [String]
|
17
|
-
required :account_token, String
|
18
|
-
|
19
|
-
# @!attribute card_program_token
|
20
|
-
# Globally unique identifier for the card program on which the card exists.
|
21
|
-
#
|
22
|
-
# @return [String]
|
23
|
-
required :card_program_token, String
|
24
|
-
|
25
|
-
# @!attribute created
|
26
|
-
# An RFC 3339 timestamp for when the card was created. UTC time zone.
|
27
|
-
#
|
28
|
-
# @return [Time]
|
29
|
-
required :created, Time
|
30
|
-
|
31
|
-
# @!attribute funding
|
32
|
-
# Deprecated: Funding account for the card.
|
33
|
-
#
|
34
|
-
# @return [Lithic::Models::Card::Funding]
|
35
|
-
required :funding, -> { Lithic::Models::Card::Funding }
|
36
|
-
|
37
|
-
# @!attribute last_four
|
38
|
-
# Last four digits of the card number.
|
39
|
-
#
|
40
|
-
# @return [String]
|
41
|
-
required :last_four, String
|
42
|
-
|
43
|
-
# @!attribute pin_status
|
44
|
-
# Indicates if a card is blocked due a PIN status issue (e.g. excessive incorrect
|
45
|
-
# attempts).
|
46
|
-
#
|
47
|
-
# @return [Symbol, Lithic::Models::Card::PinStatus]
|
48
|
-
required :pin_status, enum: -> { Lithic::Models::Card::PinStatus }
|
49
|
-
|
50
|
-
# @!attribute spend_limit
|
51
|
-
# Amount (in cents) to limit approved authorizations (e.g. 100000 would be a
|
52
|
-
# $1,000 limit). Transaction requests above the spend limit will be declined.
|
53
|
-
#
|
54
|
-
# @return [Integer]
|
55
|
-
required :spend_limit, Integer
|
56
|
-
|
57
|
-
# @!attribute spend_limit_duration
|
58
|
-
# Spend limit duration values:
|
59
|
-
#
|
60
|
-
# - `ANNUALLY` - Card will authorize transactions up to spend limit for the
|
61
|
-
# trailing year.
|
62
|
-
# - `FOREVER` - Card will authorize only up to spend limit for the entire lifetime
|
63
|
-
# of the card.
|
64
|
-
# - `MONTHLY` - Card will authorize transactions up to spend limit for the
|
65
|
-
# trailing month. To support recurring monthly payments, which can occur on
|
66
|
-
# different day every month, the time window we consider for monthly velocity
|
67
|
-
# starts 6 days after the current calendar date one month prior.
|
68
|
-
# - `TRANSACTION` - Card will authorize multiple transactions if each individual
|
69
|
-
# transaction is under the spend limit.
|
70
|
-
#
|
71
|
-
# @return [Symbol, Lithic::Models::SpendLimitDuration]
|
72
|
-
required :spend_limit_duration, enum: -> { Lithic::Models::SpendLimitDuration }
|
73
|
-
|
74
|
-
# @!attribute state
|
75
|
-
# Card state values:
|
76
|
-
#
|
77
|
-
# - `CLOSED` - Card will no longer approve authorizations. Closing a card cannot
|
78
|
-
# be undone.
|
79
|
-
# - `OPEN` - Card will approve authorizations (if they match card and account
|
80
|
-
# parameters).
|
81
|
-
# - `PAUSED` - Card will decline authorizations, but can be resumed at a later
|
82
|
-
# time.
|
83
|
-
# - `PENDING_FULFILLMENT` - The initial state for cards of type `PHYSICAL`. The
|
84
|
-
# card is provisioned pending manufacturing and fulfillment. Cards in this state
|
85
|
-
# can accept authorizations for e-commerce purchases, but not for "Card Present"
|
86
|
-
# purchases where the physical card itself is present.
|
87
|
-
# - `PENDING_ACTIVATION` - At regular intervals, cards of type `PHYSICAL` in state
|
88
|
-
# `PENDING_FULFILLMENT` are sent to the card production warehouse and updated to
|
89
|
-
# state `PENDING_ACTIVATION` . Similar to `PENDING_FULFILLMENT`, cards in this
|
90
|
-
# state can be used for e-commerce transactions or can be added to mobile
|
91
|
-
# wallets. API clients should update the card's state to `OPEN` only after the
|
92
|
-
# cardholder confirms receipt of the card.
|
93
|
-
#
|
94
|
-
# In sandbox, the same daily batch fulfillment occurs, but no cards are actually
|
95
|
-
# manufactured.
|
96
|
-
#
|
97
|
-
# @return [Symbol, Lithic::Models::Card::State]
|
98
|
-
required :state, enum: -> { Lithic::Models::Card::State }
|
99
|
-
|
100
|
-
# @!attribute type
|
101
|
-
# Card types:
|
102
|
-
#
|
103
|
-
# - `VIRTUAL` - Card will authorize at any merchant and can be added to a digital
|
104
|
-
# wallet like Apple Pay or Google Pay (if the card program is digital
|
105
|
-
# wallet-enabled).
|
106
|
-
# - `PHYSICAL` - Manufactured and sent to the cardholder. We offer white label
|
107
|
-
# branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe functionality.
|
108
|
-
# Reach out at [lithic.com/contact](https://lithic.com/contact) for more
|
109
|
-
# information.
|
110
|
-
# - `SINGLE_USE` - Card is closed upon first successful authorization.
|
111
|
-
# - `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first merchant that
|
112
|
-
# successfully authorizes the card.
|
113
|
-
# - `UNLOCKED` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
|
114
|
-
# VIRTUAL instead.
|
115
|
-
# - `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please
|
116
|
-
# use VIRTUAL instead.
|
117
|
-
#
|
118
|
-
# @return [Symbol, Lithic::Models::Card::Type]
|
119
|
-
required :type, enum: -> { Lithic::Models::Card::Type }
|
120
|
-
|
121
|
-
# @!attribute [r] auth_rule_tokens
|
122
|
-
# List of identifiers for the Auth Rule(s) that are applied on the card. This
|
123
|
-
# field is deprecated and will no longer be populated in the `Card` object. The
|
124
|
-
# key will be removed from the schema in a future release. Use the `/auth_rules`
|
125
|
-
# endpoints to fetch Auth Rule information instead.
|
126
|
-
#
|
127
|
-
# @return [Array<String>, nil]
|
128
|
-
optional :auth_rule_tokens, Lithic::Internal::Type::ArrayOf[String]
|
129
|
-
|
130
|
-
# @!parse
|
131
|
-
# # @return [Array<String>]
|
132
|
-
# attr_writer :auth_rule_tokens
|
133
|
-
|
134
|
-
# @!attribute [r] cardholder_currency
|
135
|
-
# 3-character alphabetic ISO 4217 code for the currency of the cardholder.
|
136
|
-
#
|
137
|
-
# @return [String, nil]
|
138
|
-
optional :cardholder_currency, String
|
139
|
-
|
140
|
-
# @!parse
|
141
|
-
# # @return [String]
|
142
|
-
# attr_writer :cardholder_currency
|
143
|
-
|
144
|
-
# @!attribute [r] cvv
|
145
|
-
# Three digit cvv printed on the back of the card.
|
146
|
-
#
|
147
|
-
# @return [String, nil]
|
148
|
-
optional :cvv, String
|
149
|
-
|
150
|
-
# @!parse
|
151
|
-
# # @return [String]
|
152
|
-
# attr_writer :cvv
|
153
|
-
|
154
|
-
# @!attribute [r] digital_card_art_token
|
155
|
-
# Specifies the digital card art to be displayed in the user’s digital wallet
|
156
|
-
# after tokenization. This artwork must be approved by Mastercard and configured
|
157
|
-
# by Lithic to use. See
|
158
|
-
# [Flexible Card Art Guide](https://docs.lithic.com/docs/about-digital-wallets#flexible-card-art).
|
159
|
-
#
|
160
|
-
# @return [String, nil]
|
161
|
-
optional :digital_card_art_token, String
|
162
|
-
|
163
|
-
# @!parse
|
164
|
-
# # @return [String]
|
165
|
-
# attr_writer :digital_card_art_token
|
166
|
-
|
167
|
-
# @!attribute [r] exp_month
|
168
|
-
# Two digit (MM) expiry month.
|
169
|
-
#
|
170
|
-
# @return [String, nil]
|
171
|
-
optional :exp_month, String
|
172
|
-
|
173
|
-
# @!parse
|
174
|
-
# # @return [String]
|
175
|
-
# attr_writer :exp_month
|
176
|
-
|
177
|
-
# @!attribute [r] exp_year
|
178
|
-
# Four digit (yyyy) expiry year.
|
179
|
-
#
|
180
|
-
# @return [String, nil]
|
181
|
-
optional :exp_year, String
|
182
|
-
|
183
|
-
# @!parse
|
184
|
-
# # @return [String]
|
185
|
-
# attr_writer :exp_year
|
186
|
-
|
187
|
-
# @!attribute [r] hostname
|
188
|
-
# Hostname of card’s locked merchant (will be empty if not applicable).
|
189
|
-
#
|
190
|
-
# @return [String, nil]
|
191
|
-
optional :hostname, String
|
192
|
-
|
193
|
-
# @!parse
|
194
|
-
# # @return [String]
|
195
|
-
# attr_writer :hostname
|
196
|
-
|
197
|
-
# @!attribute [r] memo
|
198
|
-
# Friendly name to identify the card.
|
199
|
-
#
|
200
|
-
# @return [String, nil]
|
201
|
-
optional :memo, String
|
202
|
-
|
203
|
-
# @!parse
|
204
|
-
# # @return [String]
|
205
|
-
# attr_writer :memo
|
206
|
-
|
207
|
-
# @!attribute [r] pan
|
208
|
-
# Primary Account Number (PAN) (i.e. the card number). Customers must be PCI
|
209
|
-
# compliant to have PAN returned as a field in production. Please contact
|
210
|
-
# [support@lithic.com](mailto:support@lithic.com) for questions.
|
211
|
-
#
|
212
|
-
# @return [String, nil]
|
213
|
-
optional :pan, String
|
214
|
-
|
215
|
-
# @!parse
|
216
|
-
# # @return [String]
|
217
|
-
# attr_writer :pan
|
218
|
-
|
219
|
-
# @!attribute [r] pending_commands
|
220
|
-
# Indicates if there are offline PIN changes pending card interaction with an
|
221
|
-
# offline PIN terminal. Possible commands are: CHANGE_PIN, UNBLOCK_PIN. Applicable
|
222
|
-
# only to cards issued in markets supporting offline PINs.
|
223
|
-
#
|
224
|
-
# @return [Array<String>, nil]
|
225
|
-
optional :pending_commands, Lithic::Internal::Type::ArrayOf[String]
|
226
|
-
|
227
|
-
# @!parse
|
228
|
-
# # @return [Array<String>]
|
229
|
-
# attr_writer :pending_commands
|
230
|
-
|
231
|
-
# @!attribute [r] product_id
|
232
|
-
# Only applicable to cards of type `PHYSICAL`. This must be configured with Lithic
|
233
|
-
# before use. Specifies the configuration (i.e., physical card art) that the card
|
234
|
-
# should be manufactured with.
|
235
|
-
#
|
236
|
-
# @return [String, nil]
|
237
|
-
optional :product_id, String
|
238
|
-
|
239
|
-
# @!parse
|
240
|
-
# # @return [String]
|
241
|
-
# attr_writer :product_id
|
242
|
-
|
243
|
-
# @!attribute replacement_for
|
244
|
-
# If the card is a replacement for another card, the globally unique identifier
|
245
|
-
# for the card that was replaced.
|
246
|
-
#
|
247
|
-
# @return [String, nil]
|
248
|
-
optional :replacement_for, String, nil?: true
|
249
|
-
|
250
|
-
# @!parse
|
251
|
-
# # @param token [String]
|
252
|
-
# # @param account_token [String]
|
253
|
-
# # @param card_program_token [String]
|
254
|
-
# # @param created [Time]
|
255
|
-
# # @param funding [Lithic::Models::Card::Funding]
|
256
|
-
# # @param last_four [String]
|
257
|
-
# # @param pin_status [Symbol, Lithic::Models::Card::PinStatus]
|
258
|
-
# # @param spend_limit [Integer]
|
259
|
-
# # @param spend_limit_duration [Symbol, Lithic::Models::SpendLimitDuration]
|
260
|
-
# # @param state [Symbol, Lithic::Models::Card::State]
|
261
|
-
# # @param type [Symbol, Lithic::Models::Card::Type]
|
262
|
-
# # @param auth_rule_tokens [Array<String>]
|
263
|
-
# # @param cardholder_currency [String]
|
264
|
-
# # @param cvv [String]
|
265
|
-
# # @param digital_card_art_token [String]
|
266
|
-
# # @param exp_month [String]
|
267
|
-
# # @param exp_year [String]
|
268
|
-
# # @param hostname [String]
|
269
|
-
# # @param memo [String]
|
270
|
-
# # @param pan [String]
|
271
|
-
# # @param pending_commands [Array<String>]
|
272
|
-
# # @param product_id [String]
|
273
|
-
# # @param replacement_for [String, nil]
|
274
|
-
# #
|
275
|
-
# def initialize(
|
276
|
-
# token:,
|
277
|
-
# account_token:,
|
278
|
-
# card_program_token:,
|
279
|
-
# created:,
|
280
|
-
# funding:,
|
281
|
-
# last_four:,
|
282
|
-
# pin_status:,
|
283
|
-
# spend_limit:,
|
284
|
-
# spend_limit_duration:,
|
285
|
-
# state:,
|
286
|
-
# type:,
|
287
|
-
# auth_rule_tokens: nil,
|
288
|
-
# cardholder_currency: nil,
|
289
|
-
# cvv: nil,
|
290
|
-
# digital_card_art_token: nil,
|
291
|
-
# exp_month: nil,
|
292
|
-
# exp_year: nil,
|
293
|
-
# hostname: nil,
|
294
|
-
# memo: nil,
|
295
|
-
# pan: nil,
|
296
|
-
# pending_commands: nil,
|
297
|
-
# product_id: nil,
|
298
|
-
# replacement_for: nil,
|
299
|
-
# **
|
300
|
-
# )
|
301
|
-
# super
|
302
|
-
# end
|
303
|
-
|
304
|
-
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
|
305
|
-
|
306
|
-
# @see Lithic::Models::Card#funding
|
307
|
-
class Funding < Lithic::Internal::Type::BaseModel
|
308
|
-
# @!attribute token
|
309
|
-
# A globally unique identifier for this FundingAccount.
|
310
|
-
#
|
311
|
-
# @return [String]
|
312
|
-
required :token, String
|
313
|
-
|
314
|
-
# @!attribute created
|
315
|
-
# An RFC 3339 string representing when this funding source was added to the Lithic
|
316
|
-
# account. This may be `null`. UTC time zone.
|
317
|
-
#
|
318
|
-
# @return [Time]
|
319
|
-
required :created, Time
|
320
|
-
|
321
|
-
# @!attribute last_four
|
322
|
-
# The last 4 digits of the account (e.g. bank account, debit card) associated with
|
323
|
-
# this FundingAccount. This may be null.
|
324
|
-
#
|
325
|
-
# @return [String]
|
326
|
-
required :last_four, String
|
327
|
-
|
328
|
-
# @!attribute state
|
329
|
-
# State of funding source.
|
330
|
-
#
|
331
|
-
# Funding source states:
|
332
|
-
#
|
333
|
-
# - `ENABLED` - The funding account is available to use for card creation and
|
334
|
-
# transactions.
|
335
|
-
# - `PENDING` - The funding account is still being verified e.g. bank
|
336
|
-
# micro-deposits verification.
|
337
|
-
# - `DELETED` - The founding account has been deleted.
|
338
|
-
#
|
339
|
-
# @return [Symbol, Lithic::Models::Card::Funding::State]
|
340
|
-
required :state, enum: -> { Lithic::Models::Card::Funding::State }
|
341
|
-
|
342
|
-
# @!attribute type
|
343
|
-
# Types of funding source:
|
344
|
-
#
|
345
|
-
# - `DEPOSITORY_CHECKING` - Bank checking account.
|
346
|
-
# - `DEPOSITORY_SAVINGS` - Bank savings account.
|
347
|
-
#
|
348
|
-
# @return [Symbol, Lithic::Models::Card::Funding::Type]
|
349
|
-
required :type, enum: -> { Lithic::Models::Card::Funding::Type }
|
350
|
-
|
351
|
-
# @!attribute [r] account_name
|
352
|
-
# Account name identifying the funding source. This may be `null`.
|
353
|
-
#
|
354
|
-
# @return [String, nil]
|
355
|
-
optional :account_name, String
|
356
|
-
|
357
|
-
# @!parse
|
358
|
-
# # @return [String]
|
359
|
-
# attr_writer :account_name
|
360
|
-
|
361
|
-
# @!attribute [r] nickname
|
362
|
-
# The nickname given to the `FundingAccount` or `null` if it has no nickname.
|
363
|
-
#
|
364
|
-
# @return [String, nil]
|
365
|
-
optional :nickname, String
|
366
|
-
|
367
|
-
# @!parse
|
368
|
-
# # @return [String]
|
369
|
-
# attr_writer :nickname
|
370
|
-
|
371
|
-
# @!parse
|
372
|
-
# # Deprecated: Funding account for the card.
|
373
|
-
# #
|
374
|
-
# # @param token [String]
|
375
|
-
# # @param created [Time]
|
376
|
-
# # @param last_four [String]
|
377
|
-
# # @param state [Symbol, Lithic::Models::Card::Funding::State]
|
378
|
-
# # @param type [Symbol, Lithic::Models::Card::Funding::Type]
|
379
|
-
# # @param account_name [String]
|
380
|
-
# # @param nickname [String]
|
381
|
-
# #
|
382
|
-
# def initialize(token:, created:, last_four:, state:, type:, account_name: nil, nickname: nil, **) = super
|
383
|
-
|
384
|
-
# def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
|
385
|
-
|
386
|
-
# State of funding source.
|
387
|
-
#
|
388
|
-
# Funding source states:
|
389
|
-
#
|
390
|
-
# - `ENABLED` - The funding account is available to use for card creation and
|
391
|
-
# transactions.
|
392
|
-
# - `PENDING` - The funding account is still being verified e.g. bank
|
393
|
-
# micro-deposits verification.
|
394
|
-
# - `DELETED` - The founding account has been deleted.
|
395
|
-
#
|
396
|
-
# @see Lithic::Models::Card::Funding#state
|
397
|
-
module State
|
398
|
-
extend Lithic::Internal::Type::Enum
|
399
|
-
|
400
|
-
DELETED = :DELETED
|
401
|
-
ENABLED = :ENABLED
|
402
|
-
PENDING = :PENDING
|
403
|
-
|
404
|
-
finalize!
|
405
|
-
|
406
|
-
# @!parse
|
407
|
-
# # @return [Array<Symbol>]
|
408
|
-
# def self.values; end
|
409
|
-
end
|
410
|
-
|
411
|
-
# Types of funding source:
|
412
|
-
#
|
413
|
-
# - `DEPOSITORY_CHECKING` - Bank checking account.
|
414
|
-
# - `DEPOSITORY_SAVINGS` - Bank savings account.
|
415
|
-
#
|
416
|
-
# @see Lithic::Models::Card::Funding#type
|
417
|
-
module Type
|
418
|
-
extend Lithic::Internal::Type::Enum
|
419
|
-
|
420
|
-
DEPOSITORY_CHECKING = :DEPOSITORY_CHECKING
|
421
|
-
DEPOSITORY_SAVINGS = :DEPOSITORY_SAVINGS
|
422
|
-
|
423
|
-
finalize!
|
424
|
-
|
425
|
-
# @!parse
|
426
|
-
# # @return [Array<Symbol>]
|
427
|
-
# def self.values; end
|
428
|
-
end
|
429
|
-
end
|
430
|
-
|
431
|
-
# Indicates if a card is blocked due a PIN status issue (e.g. excessive incorrect
|
432
|
-
# attempts).
|
433
|
-
#
|
434
|
-
# @see Lithic::Models::Card#pin_status
|
435
|
-
module PinStatus
|
436
|
-
extend Lithic::Internal::Type::Enum
|
437
|
-
|
438
|
-
OK = :OK
|
439
|
-
BLOCKED = :BLOCKED
|
440
|
-
NOT_SET = :NOT_SET
|
441
|
-
|
442
|
-
finalize!
|
443
|
-
|
444
|
-
# @!parse
|
445
|
-
# # @return [Array<Symbol>]
|
446
|
-
# def self.values; end
|
447
|
-
end
|
448
|
-
|
449
|
-
# Card state values:
|
450
|
-
#
|
451
|
-
# - `CLOSED` - Card will no longer approve authorizations. Closing a card cannot
|
452
|
-
# be undone.
|
453
|
-
# - `OPEN` - Card will approve authorizations (if they match card and account
|
454
|
-
# parameters).
|
455
|
-
# - `PAUSED` - Card will decline authorizations, but can be resumed at a later
|
456
|
-
# time.
|
457
|
-
# - `PENDING_FULFILLMENT` - The initial state for cards of type `PHYSICAL`. The
|
458
|
-
# card is provisioned pending manufacturing and fulfillment. Cards in this state
|
459
|
-
# can accept authorizations for e-commerce purchases, but not for "Card Present"
|
460
|
-
# purchases where the physical card itself is present.
|
461
|
-
# - `PENDING_ACTIVATION` - At regular intervals, cards of type `PHYSICAL` in state
|
462
|
-
# `PENDING_FULFILLMENT` are sent to the card production warehouse and updated to
|
463
|
-
# state `PENDING_ACTIVATION` . Similar to `PENDING_FULFILLMENT`, cards in this
|
464
|
-
# state can be used for e-commerce transactions or can be added to mobile
|
465
|
-
# wallets. API clients should update the card's state to `OPEN` only after the
|
466
|
-
# cardholder confirms receipt of the card.
|
467
|
-
#
|
468
|
-
# In sandbox, the same daily batch fulfillment occurs, but no cards are actually
|
469
|
-
# manufactured.
|
470
|
-
#
|
471
|
-
# @see Lithic::Models::Card#state
|
472
|
-
module State
|
473
|
-
extend Lithic::Internal::Type::Enum
|
474
|
-
|
475
|
-
CLOSED = :CLOSED
|
476
|
-
OPEN = :OPEN
|
477
|
-
PAUSED = :PAUSED
|
478
|
-
PENDING_ACTIVATION = :PENDING_ACTIVATION
|
479
|
-
PENDING_FULFILLMENT = :PENDING_FULFILLMENT
|
480
|
-
|
481
|
-
finalize!
|
482
|
-
|
483
|
-
# @!parse
|
484
|
-
# # @return [Array<Symbol>]
|
485
|
-
# def self.values; end
|
486
|
-
end
|
487
|
-
|
488
|
-
# Card types:
|
489
|
-
#
|
490
|
-
# - `VIRTUAL` - Card will authorize at any merchant and can be added to a digital
|
491
|
-
# wallet like Apple Pay or Google Pay (if the card program is digital
|
492
|
-
# wallet-enabled).
|
493
|
-
# - `PHYSICAL` - Manufactured and sent to the cardholder. We offer white label
|
494
|
-
# branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe functionality.
|
495
|
-
# Reach out at [lithic.com/contact](https://lithic.com/contact) for more
|
496
|
-
# information.
|
497
|
-
# - `SINGLE_USE` - Card is closed upon first successful authorization.
|
498
|
-
# - `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first merchant that
|
499
|
-
# successfully authorizes the card.
|
500
|
-
# - `UNLOCKED` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
|
501
|
-
# VIRTUAL instead.
|
502
|
-
# - `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please
|
503
|
-
# use VIRTUAL instead.
|
504
|
-
#
|
505
|
-
# @see Lithic::Models::Card#type
|
506
|
-
module Type
|
507
|
-
extend Lithic::Internal::Type::Enum
|
508
|
-
|
509
|
-
MERCHANT_LOCKED = :MERCHANT_LOCKED
|
510
|
-
PHYSICAL = :PHYSICAL
|
511
|
-
SINGLE_USE = :SINGLE_USE
|
512
|
-
VIRTUAL = :VIRTUAL
|
513
|
-
UNLOCKED = :UNLOCKED
|
514
|
-
DIGITAL_WALLET = :DIGITAL_WALLET
|
515
|
-
|
516
|
-
finalize!
|
517
|
-
|
518
|
-
# @!parse
|
519
|
-
# # @return [Array<Symbol>]
|
520
|
-
# def self.values; end
|
521
|
-
end
|
522
|
-
end
|
523
|
-
end
|
524
|
-
end
|