lithic 0.1.0.pre.alpha.23 → 0.1.0.pre.alpha.24
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 +21 -0
- data/README.md +2 -2
- data/lib/lithic/errors.rb +1 -1
- data/lib/lithic/internal/transport/base_client.rb +77 -5
- data/lib/lithic/internal/transport/pooled_net_requester.rb +14 -0
- data/lib/lithic/internal/type/array_of.rb +1 -1
- data/lib/lithic/internal/type/base_model.rb +62 -30
- data/lib/lithic/internal/type/converter.rb +18 -0
- data/lib/lithic/internal/type/enum.rb +1 -0
- data/lib/lithic/internal/type/hash_of.rb +1 -1
- data/lib/lithic/internal/type/union.rb +1 -0
- data/lib/lithic/internal/util.rb +56 -0
- data/lib/lithic/internal.rb +6 -0
- data/lib/lithic/models/account_holder_update_response.rb +9 -0
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +4 -0
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +20 -0
- data/lib/lithic/models/auth_rules/v2_create_params.rb +10 -0
- data/lib/lithic/models/auth_rules/v2_create_response.rb +20 -0
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +10 -0
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +20 -0
- data/lib/lithic/models/auth_rules/v2_list_response.rb +20 -0
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +20 -0
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +20 -0
- data/lib/lithic/models/auth_rules/v2_update_response.rb +20 -0
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -0
- data/lib/lithic/models/card_list_params.rb +9 -1
- data/lib/lithic/models/event.rb +1 -0
- data/lib/lithic/models/event_list_params.rb +1 -0
- data/lib/lithic/models/event_subscription.rb +1 -0
- data/lib/lithic/models/events/subscription_create_params.rb +1 -0
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
- data/lib/lithic/models/events/subscription_update_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +1 -0
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +10 -1
- data/lib/lithic/models/transaction.rb +65 -9
- data/lib/lithic/models.rb +27 -0
- data/lib/lithic/request_options.rb +4 -0
- data/lib/lithic/resources/cards.rb +3 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +2 -0
- data/rbi/lithic/internal/transport/base_client.rbi +31 -13
- data/rbi/lithic/internal/transport/pooled_net_requester.rbi +5 -5
- data/rbi/lithic/internal/type/base_model.rbi +31 -15
- data/rbi/lithic/internal/type/base_page.rbi +1 -2
- data/rbi/lithic/internal/type/converter.rbi +2 -0
- data/rbi/lithic/internal/type/enum.rbi +1 -0
- data/rbi/lithic/internal/type/union.rbi +1 -0
- data/rbi/lithic/internal/util.rbi +28 -5
- data/rbi/lithic/internal.rbi +2 -0
- data/rbi/lithic/models/account.rbi +17 -4
- data/rbi/lithic/models/account_holder.rbi +41 -7
- data/rbi/lithic/models/account_holder_create_params.rbi +39 -6
- data/rbi/lithic/models/account_holder_create_response.rbi +7 -1
- data/rbi/lithic/models/account_holder_list_documents_params.rbi +7 -1
- data/rbi/lithic/models/account_holder_list_documents_response.rbi +7 -1
- data/rbi/lithic/models/account_holder_list_params.rbi +4 -1
- data/rbi/lithic/models/account_holder_retrieve_document_params.rbi +7 -1
- data/rbi/lithic/models/account_holder_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/account_holder_simulate_enrollment_document_review_params.rbi +7 -1
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_params.rbi +7 -1
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +53 -8
- data/rbi/lithic/models/account_holder_update_params.rbi +39 -6
- data/rbi/lithic/models/account_holder_update_response.rbi +62 -10
- data/rbi/lithic/models/account_holder_upload_document_params.rbi +7 -1
- data/rbi/lithic/models/account_list_params.rbi +4 -1
- data/rbi/lithic/models/account_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/account_retrieve_spend_limits_params.rbi +7 -1
- data/rbi/lithic/models/account_spend_limits.rbi +25 -4
- data/rbi/lithic/models/account_update_params.rbi +11 -2
- data/rbi/lithic/models/address.rbi +2 -1
- data/rbi/lithic/models/address_update.rbi +2 -1
- data/rbi/lithic/models/aggregate_balance.rbi +4 -1
- data/rbi/lithic/models/aggregate_balance_list_params.rbi +4 -1
- data/rbi/lithic/models/api_status.rbi +2 -1
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +4 -1
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +7 -1
- data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +7 -1
- data/rbi/lithic/models/auth_rules/v2/backtest_create_params.rbi +6 -1
- data/rbi/lithic/models/auth_rules/v2/backtest_create_response.rbi +6 -1
- data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +42 -7
- data/rbi/lithic/models/auth_rules/v2/backtest_retrieve_params.rbi +6 -1
- data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +4 -1
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +43 -7
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +16 -3
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +43 -7
- data/rbi/lithic/models/auth_rules/v2_delete_params.rbi +4 -1
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +16 -3
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +43 -7
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +4 -1
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +43 -7
- data/rbi/lithic/models/auth_rules/v2_promote_params.rbi +4 -1
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +43 -7
- data/rbi/lithic/models/auth_rules/v2_report_params.rbi +4 -1
- data/rbi/lithic/models/auth_rules/v2_report_response.rbi +7 -1
- data/rbi/lithic/models/auth_rules/v2_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +43 -7
- data/rbi/lithic/models/auth_rules/v2_update_params.rbi +4 -1
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +43 -7
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +13 -2
- data/rbi/lithic/models/auth_stream_enrollment_retrieve_secret_params.rbi +7 -1
- data/rbi/lithic/models/auth_stream_enrollment_rotate_secret_params.rbi +7 -1
- data/rbi/lithic/models/auth_stream_secret.rbi +4 -1
- data/rbi/lithic/models/balance.rbi +2 -1
- data/rbi/lithic/models/balance_list_params.rbi +4 -1
- data/rbi/lithic/models/book_transfer_create_params.rbi +4 -1
- data/rbi/lithic/models/book_transfer_list_params.rbi +4 -1
- data/rbi/lithic/models/book_transfer_response.rbi +11 -2
- data/rbi/lithic/models/book_transfer_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/book_transfer_reverse_params.rbi +4 -1
- data/rbi/lithic/models/card.rbi +1 -1
- data/rbi/lithic/models/card_convert_physical_params.rbi +4 -1
- data/rbi/lithic/models/card_create_params.rbi +4 -1
- data/rbi/lithic/models/card_embed_params.rbi +4 -1
- data/rbi/lithic/models/card_list_params.rbi +15 -1
- data/rbi/lithic/models/card_program.rbi +2 -1
- data/rbi/lithic/models/card_program_list_params.rbi +4 -1
- data/rbi/lithic/models/card_program_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/card_provision_params.rbi +4 -1
- data/rbi/lithic/models/card_provision_response.rbi +7 -1
- data/rbi/lithic/models/card_reissue_params.rbi +4 -1
- data/rbi/lithic/models/card_renew_params.rbi +4 -1
- data/rbi/lithic/models/card_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/card_retrieve_spend_limits_params.rbi +7 -1
- data/rbi/lithic/models/card_search_by_pan_params.rbi +4 -1
- data/rbi/lithic/models/card_spend_limits.rbi +25 -4
- data/rbi/lithic/models/card_update_params.rbi +4 -1
- data/rbi/lithic/models/cards/aggregate_balance_list_params.rbi +7 -1
- data/rbi/lithic/models/cards/aggregate_balance_list_response.rbi +7 -1
- data/rbi/lithic/models/cards/balance_list_params.rbi +4 -1
- data/rbi/lithic/models/cards/balance_list_response.rbi +7 -1
- data/rbi/lithic/models/cards/financial_transaction_list_params.rbi +7 -1
- data/rbi/lithic/models/cards/financial_transaction_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/carrier.rbi +2 -1
- data/rbi/lithic/models/client_api_status_params.rbi +4 -1
- data/rbi/lithic/models/credit_products/extended_credit.rbi +7 -1
- data/rbi/lithic/models/credit_products/extended_credit_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/credit_products/prime_rate_create_params.rbi +7 -1
- data/rbi/lithic/models/credit_products/prime_rate_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/credit_products/prime_rate_retrieve_response.rbi +13 -2
- data/rbi/lithic/models/digital_card_art.rbi +4 -1
- data/rbi/lithic/models/digital_card_art_list_params.rbi +4 -1
- data/rbi/lithic/models/digital_card_art_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/dispute.rbi +2 -1
- data/rbi/lithic/models/dispute_create_params.rbi +4 -1
- data/rbi/lithic/models/dispute_delete_evidence_params.rbi +4 -1
- data/rbi/lithic/models/dispute_delete_params.rbi +4 -1
- data/rbi/lithic/models/dispute_evidence.rbi +4 -1
- data/rbi/lithic/models/dispute_initiate_evidence_upload_params.rbi +7 -1
- data/rbi/lithic/models/dispute_list_evidences_params.rbi +4 -1
- data/rbi/lithic/models/dispute_list_params.rbi +4 -1
- data/rbi/lithic/models/dispute_retrieve_evidence_params.rbi +7 -1
- data/rbi/lithic/models/dispute_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/dispute_update_params.rbi +4 -1
- data/rbi/lithic/models/document.rbi +9 -2
- data/rbi/lithic/models/event.rbi +6 -1
- data/rbi/lithic/models/event_list_attempts_params.rbi +4 -1
- data/rbi/lithic/models/event_list_params.rbi +9 -1
- data/rbi/lithic/models/event_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/event_subscription.rbi +9 -1
- data/rbi/lithic/models/events/event_subscription_resend_params.rbi +7 -1
- data/rbi/lithic/models/events/subscription_create_params.rbi +12 -1
- data/rbi/lithic/models/events/subscription_delete_params.rbi +7 -1
- data/rbi/lithic/models/events/subscription_list_attempts_params.rbi +7 -1
- data/rbi/lithic/models/events/subscription_list_params.rbi +7 -1
- data/rbi/lithic/models/events/subscription_recover_params.rbi +7 -1
- data/rbi/lithic/models/events/subscription_replay_missing_params.rbi +7 -1
- data/rbi/lithic/models/events/subscription_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/events/subscription_retrieve_secret_params.rbi +7 -1
- data/rbi/lithic/models/events/subscription_retrieve_secret_response.rbi +7 -1
- data/rbi/lithic/models/events/subscription_rotate_secret_params.rbi +7 -1
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +12 -1
- data/rbi/lithic/models/events/subscription_update_params.rbi +12 -1
- data/rbi/lithic/models/external_bank_account_address.rbi +4 -1
- data/rbi/lithic/models/external_bank_account_create_params.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_create_response.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_list_params.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_list_response.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_retrieve_response.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_retry_micro_deposits_params.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_retry_prenote_params.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_retry_prenote_response.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_update_params.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_update_response.rbi +7 -1
- data/rbi/lithic/models/external_bank_accounts/micro_deposit_create_params.rbi +7 -1
- data/rbi/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +7 -1
- data/rbi/lithic/models/external_payment.rbi +8 -2
- data/rbi/lithic/models/external_payment_cancel_params.rbi +4 -1
- data/rbi/lithic/models/external_payment_create_params.rbi +4 -1
- data/rbi/lithic/models/external_payment_list_params.rbi +4 -1
- data/rbi/lithic/models/external_payment_release_params.rbi +4 -1
- data/rbi/lithic/models/external_payment_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/external_payment_reverse_params.rbi +4 -1
- data/rbi/lithic/models/external_payment_settle_params.rbi +4 -1
- data/rbi/lithic/models/financial_account.rbi +11 -2
- data/rbi/lithic/models/financial_account_create_params.rbi +4 -1
- data/rbi/lithic/models/financial_account_list_params.rbi +4 -1
- data/rbi/lithic/models/financial_account_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/financial_account_update_params.rbi +4 -1
- data/rbi/lithic/models/financial_account_update_status_params.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/balance_list_params.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/balance_list_response.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/credit_configuration_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/credit_configuration_update_params.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/financial_transaction_list_params.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/financial_transaction_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +109 -18
- data/rbi/lithic/models/financial_accounts/loan_tape_list_params.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/loan_tape_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/statement.rbi +61 -10
- data/rbi/lithic/models/financial_accounts/statement_list_params.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/statement_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/statements/line_item_list_params.rbi +6 -1
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +17 -2
- data/rbi/lithic/models/financial_accounts/statements.rbi +7 -1
- data/rbi/lithic/models/financial_transaction.rbi +11 -2
- data/rbi/lithic/models/kyb.rbi +20 -5
- data/rbi/lithic/models/kyb_business_entity.rbi +8 -2
- data/rbi/lithic/models/kyc.rbi +5 -2
- data/rbi/lithic/models/kyc_exempt.rbi +2 -1
- data/rbi/lithic/models/management_operation_create_params.rbi +7 -1
- data/rbi/lithic/models/management_operation_list_params.rbi +7 -1
- data/rbi/lithic/models/management_operation_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/management_operation_reverse_params.rbi +7 -1
- data/rbi/lithic/models/management_operation_transaction.rbi +21 -3
- data/rbi/lithic/models/message_attempt.rbi +4 -1
- data/rbi/lithic/models/non_pci_card.rbi +6 -2
- data/rbi/lithic/models/payment.rbi +10 -3
- data/rbi/lithic/models/payment_create_params.rbi +11 -2
- data/rbi/lithic/models/payment_create_response.rbi +7 -1
- data/rbi/lithic/models/payment_list_params.rbi +4 -1
- data/rbi/lithic/models/payment_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/payment_retry_params.rbi +4 -1
- data/rbi/lithic/models/payment_retry_response.rbi +4 -1
- data/rbi/lithic/models/payment_simulate_action_params.rbi +4 -1
- data/rbi/lithic/models/payment_simulate_action_response.rbi +7 -1
- data/rbi/lithic/models/payment_simulate_receipt_params.rbi +4 -1
- data/rbi/lithic/models/payment_simulate_receipt_response.rbi +7 -1
- data/rbi/lithic/models/payment_simulate_release_params.rbi +4 -1
- data/rbi/lithic/models/payment_simulate_release_response.rbi +7 -1
- data/rbi/lithic/models/payment_simulate_return_params.rbi +4 -1
- data/rbi/lithic/models/payment_simulate_return_response.rbi +7 -1
- data/rbi/lithic/models/reports/settlement/network_total_list_params.rbi +6 -1
- data/rbi/lithic/models/reports/settlement/network_total_list_response.rbi +12 -2
- data/rbi/lithic/models/reports/settlement/network_total_retrieve_params.rbi +6 -1
- data/rbi/lithic/models/reports/settlement/network_total_retrieve_response.rbi +12 -2
- data/rbi/lithic/models/reports/settlement_list_details_params.rbi +7 -1
- data/rbi/lithic/models/reports/settlement_summary_params.rbi +7 -1
- data/rbi/lithic/models/required_document.rbi +4 -1
- data/rbi/lithic/models/responder_endpoint_check_status_params.rbi +7 -1
- data/rbi/lithic/models/responder_endpoint_create_params.rbi +7 -1
- data/rbi/lithic/models/responder_endpoint_create_response.rbi +7 -1
- data/rbi/lithic/models/responder_endpoint_delete_params.rbi +7 -1
- data/rbi/lithic/models/responder_endpoint_status.rbi +4 -1
- data/rbi/lithic/models/settlement_detail.rbi +11 -2
- data/rbi/lithic/models/settlement_report.rbi +4 -1
- data/rbi/lithic/models/settlement_summary_details.rbi +4 -1
- data/rbi/lithic/models/shipping_address.rbi +4 -1
- data/rbi/lithic/models/three_ds/authentication_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +77 -11
- data/rbi/lithic/models/three_ds/authentication_simulate_otp_entry_params.rbi +7 -1
- data/rbi/lithic/models/three_ds/authentication_simulate_params.rbi +19 -3
- data/rbi/lithic/models/three_ds/authentication_simulate_response.rbi +7 -1
- data/rbi/lithic/models/three_ds/challenge_response.rbi +4 -1
- data/rbi/lithic/models/three_ds/decisioning_challenge_response_params.rbi +7 -1
- data/rbi/lithic/models/three_ds/decisioning_retrieve_secret_params.rbi +7 -1
- data/rbi/lithic/models/three_ds/decisioning_retrieve_secret_response.rbi +7 -1
- data/rbi/lithic/models/three_ds/decisioning_rotate_secret_params.rbi +7 -1
- data/rbi/lithic/models/tokenization.rbi +6 -2
- data/rbi/lithic/models/tokenization_activate_params.rbi +4 -1
- data/rbi/lithic/models/tokenization_deactivate_params.rbi +4 -1
- data/rbi/lithic/models/tokenization_decisioning_retrieve_secret_params.rbi +7 -1
- data/rbi/lithic/models/tokenization_decisioning_rotate_secret_params.rbi +7 -1
- data/rbi/lithic/models/tokenization_decisioning_rotate_secret_response.rbi +7 -1
- data/rbi/lithic/models/tokenization_list_params.rbi +4 -1
- data/rbi/lithic/models/tokenization_pause_params.rbi +4 -1
- data/rbi/lithic/models/tokenization_resend_activation_code_params.rbi +7 -1
- data/rbi/lithic/models/tokenization_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/tokenization_retrieve_response.rbi +7 -1
- data/rbi/lithic/models/tokenization_secret.rbi +4 -1
- data/rbi/lithic/models/tokenization_simulate_params.rbi +4 -1
- data/rbi/lithic/models/tokenization_simulate_response.rbi +7 -1
- data/rbi/lithic/models/tokenization_unpause_params.rbi +4 -1
- data/rbi/lithic/models/tokenization_update_digital_card_art_params.rbi +7 -1
- data/rbi/lithic/models/tokenization_update_digital_card_art_response.rbi +7 -1
- data/rbi/lithic/models/transaction.rbi +293 -40
- data/rbi/lithic/models/transaction_expire_authorization_params.rbi +7 -1
- data/rbi/lithic/models/transaction_list_params.rbi +4 -1
- data/rbi/lithic/models/transaction_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/transaction_simulate_authorization_advice_params.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_authorization_advice_response.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_authorization_response.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_clearing_params.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_clearing_response.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_credit_authorization_params.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_credit_authorization_response.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_return_params.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_return_response.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_return_reversal_params.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_return_reversal_response.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_void_params.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_void_response.rbi +7 -1
- data/rbi/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/transactions/enhanced_commercial_data_retrieve_response.rbi +7 -1
- data/rbi/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rbi +6 -1
- data/rbi/lithic/models/transactions/events/enhanced_data.rbi +42 -7
- data/rbi/lithic/models/transfer.rbi +6 -2
- data/rbi/lithic/models/transfer_create_params.rbi +4 -1
- data/rbi/lithic/request_options.rbi +2 -1
- data/rbi/lithic/resources/cards.rbi +3 -0
- data/sig/lithic/internal/transport/base_client.rbs +16 -1
- data/sig/lithic/internal/transport/pooled_net_requester.rbs +2 -0
- data/sig/lithic/internal/type/base_model.rbs +11 -5
- data/sig/lithic/internal/type/base_page.rbs +1 -1
- data/sig/lithic/internal/type/converter.rbs +2 -0
- data/sig/lithic/internal/type/enum.rbs +1 -0
- data/sig/lithic/internal/type/union.rbs +1 -0
- data/sig/lithic/internal/util.rbs +13 -0
- data/sig/lithic/internal.rbs +2 -0
- data/sig/lithic/models/card_list_params.rbs +6 -0
- data/sig/lithic/models/event.rbs +2 -0
- data/sig/lithic/models/event_list_params.rbs +2 -0
- data/sig/lithic/models/event_subscription.rbs +2 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +2 -0
- data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +4 -0
- data/sig/lithic/models/transaction.rbs +43 -3
- data/sig/lithic/resources/cards.rbs +1 -0
- metadata +2 -2
@@ -3,7 +3,8 @@
|
|
3
3
|
module Lithic
|
4
4
|
module Models
|
5
5
|
class Transaction < Lithic::Internal::Type::BaseModel
|
6
|
-
OrHash =
|
6
|
+
OrHash =
|
7
|
+
T.type_alias { T.any(Lithic::Transaction, Lithic::Internal::AnyHash) }
|
7
8
|
|
8
9
|
# Globally unique identifier.
|
9
10
|
sig { returns(String) }
|
@@ -89,9 +90,8 @@ module Lithic
|
|
89
90
|
sig { returns(String) }
|
90
91
|
attr_accessor :merchant_currency
|
91
92
|
|
92
|
-
# Card network of the authorization.
|
93
|
-
#
|
94
|
-
# network code from the upstream provider.
|
93
|
+
# Card network of the authorization. Value is `UNKNOWN` when Lithic cannot
|
94
|
+
# determine the network code from the upstream provider.
|
95
95
|
sig { returns(T.nilable(Lithic::Transaction::Network::TaggedSymbol)) }
|
96
96
|
attr_accessor :network
|
97
97
|
|
@@ -206,9 +206,8 @@ module Lithic
|
|
206
206
|
merchant_authorization_amount:,
|
207
207
|
# 3-character alphabetic ISO 4217 code for the local currency of the transaction.
|
208
208
|
merchant_currency:,
|
209
|
-
# Card network of the authorization.
|
210
|
-
#
|
211
|
-
# network code from the upstream provider.
|
209
|
+
# Card network of the authorization. Value is `UNKNOWN` when Lithic cannot
|
210
|
+
# determine the network code from the upstream provider.
|
212
211
|
network:,
|
213
212
|
# Network-provided score assessing risk level associated with a given
|
214
213
|
# authorization. Scores are on a range of 0-999, with 0 representing the lowest
|
@@ -265,7 +264,10 @@ module Lithic
|
|
265
264
|
end
|
266
265
|
|
267
266
|
class Amounts < Lithic::Internal::Type::BaseModel
|
268
|
-
OrHash =
|
267
|
+
OrHash =
|
268
|
+
T.type_alias do
|
269
|
+
T.any(Lithic::Transaction::Amounts, Lithic::Internal::AnyHash)
|
270
|
+
end
|
269
271
|
|
270
272
|
sig { returns(Lithic::Transaction::Amounts::Cardholder) }
|
271
273
|
attr_reader :cardholder
|
@@ -327,7 +329,12 @@ module Lithic
|
|
327
329
|
|
328
330
|
class Cardholder < Lithic::Internal::Type::BaseModel
|
329
331
|
OrHash =
|
330
|
-
T.type_alias
|
332
|
+
T.type_alias do
|
333
|
+
T.any(
|
334
|
+
Lithic::Transaction::Amounts::Cardholder,
|
335
|
+
Lithic::Internal::AnyHash
|
336
|
+
)
|
337
|
+
end
|
331
338
|
|
332
339
|
# The estimated settled amount of the transaction in the cardholder billing
|
333
340
|
# currency.
|
@@ -373,7 +380,12 @@ module Lithic
|
|
373
380
|
|
374
381
|
class Hold < Lithic::Internal::Type::BaseModel
|
375
382
|
OrHash =
|
376
|
-
T.type_alias
|
383
|
+
T.type_alias do
|
384
|
+
T.any(
|
385
|
+
Lithic::Transaction::Amounts::Hold,
|
386
|
+
Lithic::Internal::AnyHash
|
387
|
+
)
|
388
|
+
end
|
377
389
|
|
378
390
|
# The pending amount of the transaction in the anticipated settlement currency.
|
379
391
|
sig { returns(Integer) }
|
@@ -401,7 +413,12 @@ module Lithic
|
|
401
413
|
|
402
414
|
class Merchant < Lithic::Internal::Type::BaseModel
|
403
415
|
OrHash =
|
404
|
-
T.type_alias
|
416
|
+
T.type_alias do
|
417
|
+
T.any(
|
418
|
+
Lithic::Transaction::Amounts::Merchant,
|
419
|
+
Lithic::Internal::AnyHash
|
420
|
+
)
|
421
|
+
end
|
405
422
|
|
406
423
|
# The settled amount of the transaction in the merchant currency.
|
407
424
|
sig { returns(Integer) }
|
@@ -429,7 +446,12 @@ module Lithic
|
|
429
446
|
|
430
447
|
class Settlement < Lithic::Internal::Type::BaseModel
|
431
448
|
OrHash =
|
432
|
-
T.type_alias
|
449
|
+
T.type_alias do
|
450
|
+
T.any(
|
451
|
+
Lithic::Transaction::Amounts::Settlement,
|
452
|
+
Lithic::Internal::AnyHash
|
453
|
+
)
|
454
|
+
end
|
433
455
|
|
434
456
|
# The settled amount of the transaction in the settlement currency.
|
435
457
|
sig { returns(Integer) }
|
@@ -457,7 +479,10 @@ module Lithic
|
|
457
479
|
end
|
458
480
|
|
459
481
|
class Avs < Lithic::Internal::Type::BaseModel
|
460
|
-
OrHash =
|
482
|
+
OrHash =
|
483
|
+
T.type_alias do
|
484
|
+
T.any(Lithic::Transaction::Avs, Lithic::Internal::AnyHash)
|
485
|
+
end
|
461
486
|
|
462
487
|
# Cardholder address
|
463
488
|
sig { returns(String) }
|
@@ -484,7 +509,13 @@ module Lithic
|
|
484
509
|
end
|
485
510
|
|
486
511
|
class CardholderAuthentication < Lithic::Internal::Type::BaseModel
|
487
|
-
OrHash =
|
512
|
+
OrHash =
|
513
|
+
T.type_alias do
|
514
|
+
T.any(
|
515
|
+
Lithic::Transaction::CardholderAuthentication,
|
516
|
+
Lithic::Internal::AnyHash
|
517
|
+
)
|
518
|
+
end
|
488
519
|
|
489
520
|
# The 3DS version used for the authentication
|
490
521
|
sig { returns(T.nilable(String)) }
|
@@ -558,6 +589,24 @@ module Lithic
|
|
558
589
|
end
|
559
590
|
attr_accessor :verification_result
|
560
591
|
|
592
|
+
# Indicates the method used to authenticate the cardholder.
|
593
|
+
sig do
|
594
|
+
returns(
|
595
|
+
T.nilable(
|
596
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
597
|
+
)
|
598
|
+
)
|
599
|
+
end
|
600
|
+
attr_reader :authentication_method
|
601
|
+
|
602
|
+
sig do
|
603
|
+
params(
|
604
|
+
authentication_method:
|
605
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::OrSymbol
|
606
|
+
).void
|
607
|
+
end
|
608
|
+
attr_writer :authentication_method
|
609
|
+
|
561
610
|
sig do
|
562
611
|
params(
|
563
612
|
three_ds_version: T.nilable(String),
|
@@ -573,7 +622,9 @@ module Lithic
|
|
573
622
|
verification_attempted:
|
574
623
|
Lithic::Transaction::CardholderAuthentication::VerificationAttempted::OrSymbol,
|
575
624
|
verification_result:
|
576
|
-
Lithic::Transaction::CardholderAuthentication::VerificationResult::OrSymbol
|
625
|
+
Lithic::Transaction::CardholderAuthentication::VerificationResult::OrSymbol,
|
626
|
+
authentication_method:
|
627
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::OrSymbol
|
577
628
|
).returns(T.attached_class)
|
578
629
|
end
|
579
630
|
def self.new(
|
@@ -608,7 +659,9 @@ module Lithic
|
|
608
659
|
verification_attempted:,
|
609
660
|
# Indicates whether a transaction is considered 3DS authenticated. (deprecated,
|
610
661
|
# use `authentication_result`)
|
611
|
-
verification_result
|
662
|
+
verification_result:,
|
663
|
+
# Indicates the method used to authenticate the cardholder.
|
664
|
+
authentication_method: nil
|
612
665
|
)
|
613
666
|
end
|
614
667
|
|
@@ -628,7 +681,9 @@ module Lithic
|
|
628
681
|
verification_attempted:
|
629
682
|
Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol,
|
630
683
|
verification_result:
|
631
|
-
Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
|
684
|
+
Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol,
|
685
|
+
authentication_method:
|
686
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
632
687
|
}
|
633
688
|
)
|
634
689
|
end
|
@@ -942,10 +997,53 @@ module Lithic
|
|
942
997
|
def self.values
|
943
998
|
end
|
944
999
|
end
|
1000
|
+
|
1001
|
+
# Indicates the method used to authenticate the cardholder.
|
1002
|
+
module AuthenticationMethod
|
1003
|
+
extend Lithic::Internal::Type::Enum
|
1004
|
+
|
1005
|
+
TaggedSymbol =
|
1006
|
+
T.type_alias do
|
1007
|
+
T.all(
|
1008
|
+
Symbol,
|
1009
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod
|
1010
|
+
)
|
1011
|
+
end
|
1012
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1013
|
+
|
1014
|
+
FRICTIONLESS =
|
1015
|
+
T.let(
|
1016
|
+
:FRICTIONLESS,
|
1017
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
1018
|
+
)
|
1019
|
+
CHALLENGE =
|
1020
|
+
T.let(
|
1021
|
+
:CHALLENGE,
|
1022
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
1023
|
+
)
|
1024
|
+
NONE =
|
1025
|
+
T.let(
|
1026
|
+
:NONE,
|
1027
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
1028
|
+
)
|
1029
|
+
|
1030
|
+
sig do
|
1031
|
+
override.returns(
|
1032
|
+
T::Array[
|
1033
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
1034
|
+
]
|
1035
|
+
)
|
1036
|
+
end
|
1037
|
+
def self.values
|
1038
|
+
end
|
1039
|
+
end
|
945
1040
|
end
|
946
1041
|
|
947
1042
|
class Merchant < Lithic::Internal::Type::BaseModel
|
948
|
-
OrHash =
|
1043
|
+
OrHash =
|
1044
|
+
T.type_alias do
|
1045
|
+
T.any(Lithic::Transaction::Merchant, Lithic::Internal::AnyHash)
|
1046
|
+
end
|
949
1047
|
|
950
1048
|
# Unique alphanumeric identifier for the payment card acceptor (merchant).
|
951
1049
|
sig { returns(String) }
|
@@ -1027,9 +1125,8 @@ module Lithic
|
|
1027
1125
|
end
|
1028
1126
|
end
|
1029
1127
|
|
1030
|
-
# Card network of the authorization.
|
1031
|
-
#
|
1032
|
-
# network code from the upstream provider.
|
1128
|
+
# Card network of the authorization. Value is `UNKNOWN` when Lithic cannot
|
1129
|
+
# determine the network code from the upstream provider.
|
1033
1130
|
module Network
|
1034
1131
|
extend Lithic::Internal::Type::Enum
|
1035
1132
|
|
@@ -1037,6 +1134,7 @@ module Lithic
|
|
1037
1134
|
T.type_alias { T.all(Symbol, Lithic::Transaction::Network) }
|
1038
1135
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1039
1136
|
|
1137
|
+
AMEX = T.let(:AMEX, Lithic::Transaction::Network::TaggedSymbol)
|
1040
1138
|
INTERLINK =
|
1041
1139
|
T.let(:INTERLINK, Lithic::Transaction::Network::TaggedSymbol)
|
1042
1140
|
MAESTRO = T.let(:MAESTRO, Lithic::Transaction::Network::TaggedSymbol)
|
@@ -1053,7 +1151,10 @@ module Lithic
|
|
1053
1151
|
end
|
1054
1152
|
|
1055
1153
|
class Pos < Lithic::Internal::Type::BaseModel
|
1056
|
-
OrHash =
|
1154
|
+
OrHash =
|
1155
|
+
T.type_alias do
|
1156
|
+
T.any(Lithic::Transaction::Pos, Lithic::Internal::AnyHash)
|
1157
|
+
end
|
1057
1158
|
|
1058
1159
|
sig { returns(Lithic::Transaction::Pos::EntryMode) }
|
1059
1160
|
attr_reader :entry_mode
|
@@ -1093,7 +1194,12 @@ module Lithic
|
|
1093
1194
|
|
1094
1195
|
class EntryMode < Lithic::Internal::Type::BaseModel
|
1095
1196
|
OrHash =
|
1096
|
-
T.type_alias
|
1197
|
+
T.type_alias do
|
1198
|
+
T.any(
|
1199
|
+
Lithic::Transaction::Pos::EntryMode,
|
1200
|
+
Lithic::Internal::AnyHash
|
1201
|
+
)
|
1202
|
+
end
|
1097
1203
|
|
1098
1204
|
# Card presence indicator
|
1099
1205
|
sig do
|
@@ -1366,7 +1472,12 @@ module Lithic
|
|
1366
1472
|
|
1367
1473
|
class Terminal < Lithic::Internal::Type::BaseModel
|
1368
1474
|
OrHash =
|
1369
|
-
T.type_alias
|
1475
|
+
T.type_alias do
|
1476
|
+
T.any(
|
1477
|
+
Lithic::Transaction::Pos::Terminal,
|
1478
|
+
Lithic::Internal::AnyHash
|
1479
|
+
)
|
1480
|
+
end
|
1370
1481
|
|
1371
1482
|
# True if a clerk is present at the sale.
|
1372
1483
|
sig { returns(T::Boolean) }
|
@@ -1807,7 +1918,10 @@ module Lithic
|
|
1807
1918
|
end
|
1808
1919
|
|
1809
1920
|
class TokenInfo < Lithic::Internal::Type::BaseModel
|
1810
|
-
OrHash =
|
1921
|
+
OrHash =
|
1922
|
+
T.type_alias do
|
1923
|
+
T.any(Lithic::Transaction::TokenInfo, Lithic::Internal::AnyHash)
|
1924
|
+
end
|
1811
1925
|
|
1812
1926
|
# The wallet_type field will indicate the source of the token. Possible token
|
1813
1927
|
# sources include digital wallets (Apple, Google, or Samsung Pay), merchant
|
@@ -1898,7 +2012,10 @@ module Lithic
|
|
1898
2012
|
end
|
1899
2013
|
|
1900
2014
|
class Event < Lithic::Internal::Type::BaseModel
|
1901
|
-
OrHash =
|
2015
|
+
OrHash =
|
2016
|
+
T.type_alias do
|
2017
|
+
T.any(Lithic::Transaction::Event, Lithic::Internal::AnyHash)
|
2018
|
+
end
|
1902
2019
|
|
1903
2020
|
# Transaction event identifier.
|
1904
2021
|
sig { returns(String) }
|
@@ -2052,7 +2169,12 @@ module Lithic
|
|
2052
2169
|
|
2053
2170
|
class Amounts < Lithic::Internal::Type::BaseModel
|
2054
2171
|
OrHash =
|
2055
|
-
T.type_alias
|
2172
|
+
T.type_alias do
|
2173
|
+
T.any(
|
2174
|
+
Lithic::Transaction::Event::Amounts,
|
2175
|
+
Lithic::Internal::AnyHash
|
2176
|
+
)
|
2177
|
+
end
|
2056
2178
|
|
2057
2179
|
sig { returns(Lithic::Transaction::Event::Amounts::Cardholder) }
|
2058
2180
|
attr_reader :cardholder
|
@@ -2119,7 +2241,12 @@ module Lithic
|
|
2119
2241
|
|
2120
2242
|
class Cardholder < Lithic::Internal::Type::BaseModel
|
2121
2243
|
OrHash =
|
2122
|
-
T.type_alias
|
2244
|
+
T.type_alias do
|
2245
|
+
T.any(
|
2246
|
+
Lithic::Transaction::Event::Amounts::Cardholder,
|
2247
|
+
Lithic::Internal::AnyHash
|
2248
|
+
)
|
2249
|
+
end
|
2123
2250
|
|
2124
2251
|
# Amount of the event in the cardholder billing currency.
|
2125
2252
|
sig { returns(Integer) }
|
@@ -2163,7 +2290,12 @@ module Lithic
|
|
2163
2290
|
|
2164
2291
|
class Merchant < Lithic::Internal::Type::BaseModel
|
2165
2292
|
OrHash =
|
2166
|
-
T.type_alias
|
2293
|
+
T.type_alias do
|
2294
|
+
T.any(
|
2295
|
+
Lithic::Transaction::Event::Amounts::Merchant,
|
2296
|
+
Lithic::Internal::AnyHash
|
2297
|
+
)
|
2298
|
+
end
|
2167
2299
|
|
2168
2300
|
# Amount of the event in the merchant currency.
|
2169
2301
|
sig { returns(Integer) }
|
@@ -2193,7 +2325,12 @@ module Lithic
|
|
2193
2325
|
|
2194
2326
|
class Settlement < Lithic::Internal::Type::BaseModel
|
2195
2327
|
OrHash =
|
2196
|
-
T.type_alias
|
2328
|
+
T.type_alias do
|
2329
|
+
T.any(
|
2330
|
+
Lithic::Transaction::Event::Amounts::Settlement,
|
2331
|
+
Lithic::Internal::AnyHash
|
2332
|
+
)
|
2333
|
+
end
|
2197
2334
|
|
2198
2335
|
# Amount of the event, if it is financial, in the settlement currency.
|
2199
2336
|
# Non-financial events do not contain this amount because they do not move funds.
|
@@ -2549,7 +2686,12 @@ module Lithic
|
|
2549
2686
|
|
2550
2687
|
class NetworkInfo < Lithic::Internal::Type::BaseModel
|
2551
2688
|
OrHash =
|
2552
|
-
T.type_alias
|
2689
|
+
T.type_alias do
|
2690
|
+
T.any(
|
2691
|
+
Lithic::Transaction::Event::NetworkInfo,
|
2692
|
+
Lithic::Internal::AnyHash
|
2693
|
+
)
|
2694
|
+
end
|
2553
2695
|
|
2554
2696
|
sig do
|
2555
2697
|
returns(
|
@@ -2568,6 +2710,19 @@ module Lithic
|
|
2568
2710
|
end
|
2569
2711
|
attr_writer :acquirer
|
2570
2712
|
|
2713
|
+
sig do
|
2714
|
+
returns(T.nilable(Lithic::Transaction::Event::NetworkInfo::Amex))
|
2715
|
+
end
|
2716
|
+
attr_reader :amex
|
2717
|
+
|
2718
|
+
sig do
|
2719
|
+
params(
|
2720
|
+
amex:
|
2721
|
+
T.nilable(Lithic::Transaction::Event::NetworkInfo::Amex::OrHash)
|
2722
|
+
).void
|
2723
|
+
end
|
2724
|
+
attr_writer :amex
|
2725
|
+
|
2571
2726
|
sig do
|
2572
2727
|
returns(
|
2573
2728
|
T.nilable(Lithic::Transaction::Event::NetworkInfo::Mastercard)
|
@@ -2613,6 +2768,10 @@ module Lithic
|
|
2613
2768
|
T.nilable(
|
2614
2769
|
Lithic::Transaction::Event::NetworkInfo::Acquirer::OrHash
|
2615
2770
|
),
|
2771
|
+
amex:
|
2772
|
+
T.nilable(
|
2773
|
+
Lithic::Transaction::Event::NetworkInfo::Amex::OrHash
|
2774
|
+
),
|
2616
2775
|
mastercard:
|
2617
2776
|
T.nilable(
|
2618
2777
|
Lithic::Transaction::Event::NetworkInfo::Mastercard::OrHash
|
@@ -2621,7 +2780,7 @@ module Lithic
|
|
2621
2780
|
T.nilable(Lithic::Transaction::Event::NetworkInfo::Visa::OrHash)
|
2622
2781
|
).returns(T.attached_class)
|
2623
2782
|
end
|
2624
|
-
def self.new(acquirer:, mastercard:, visa:)
|
2783
|
+
def self.new(acquirer:, amex:, mastercard:, visa:)
|
2625
2784
|
end
|
2626
2785
|
|
2627
2786
|
sig do
|
@@ -2629,6 +2788,7 @@ module Lithic
|
|
2629
2788
|
{
|
2630
2789
|
acquirer:
|
2631
2790
|
T.nilable(Lithic::Transaction::Event::NetworkInfo::Acquirer),
|
2791
|
+
amex: T.nilable(Lithic::Transaction::Event::NetworkInfo::Amex),
|
2632
2792
|
mastercard:
|
2633
2793
|
T.nilable(
|
2634
2794
|
Lithic::Transaction::Event::NetworkInfo::Mastercard
|
@@ -2642,7 +2802,12 @@ module Lithic
|
|
2642
2802
|
|
2643
2803
|
class Acquirer < Lithic::Internal::Type::BaseModel
|
2644
2804
|
OrHash =
|
2645
|
-
T.type_alias
|
2805
|
+
T.type_alias do
|
2806
|
+
T.any(
|
2807
|
+
Lithic::Transaction::Event::NetworkInfo::Acquirer,
|
2808
|
+
Lithic::Internal::AnyHash
|
2809
|
+
)
|
2810
|
+
end
|
2646
2811
|
|
2647
2812
|
# Identifier assigned by the acquirer, applicable to dual-message transactions
|
2648
2813
|
# only. The acquirer reference number (ARN) is only populated once a transaction
|
@@ -2686,9 +2851,67 @@ module Lithic
|
|
2686
2851
|
end
|
2687
2852
|
end
|
2688
2853
|
|
2854
|
+
class Amex < Lithic::Internal::Type::BaseModel
|
2855
|
+
OrHash =
|
2856
|
+
T.type_alias do
|
2857
|
+
T.any(
|
2858
|
+
Lithic::Transaction::Event::NetworkInfo::Amex,
|
2859
|
+
Lithic::Internal::AnyHash
|
2860
|
+
)
|
2861
|
+
end
|
2862
|
+
|
2863
|
+
# Identifier assigned by American Express. Matches the `transaction_id` of a prior
|
2864
|
+
# related event. May be populated in incremental authorizations (authorization
|
2865
|
+
# requests that augment a previously authorized amount), authorization advices,
|
2866
|
+
# financial authorizations, and clearings.
|
2867
|
+
sig { returns(T.nilable(String)) }
|
2868
|
+
attr_accessor :original_transaction_id
|
2869
|
+
|
2870
|
+
# Identifier assigned by American Express to link original messages to subsequent
|
2871
|
+
# messages. Guaranteed by American Express to be unique for each original
|
2872
|
+
# authorization and financial authorization.
|
2873
|
+
sig { returns(T.nilable(String)) }
|
2874
|
+
attr_accessor :transaction_id
|
2875
|
+
|
2876
|
+
sig do
|
2877
|
+
params(
|
2878
|
+
original_transaction_id: T.nilable(String),
|
2879
|
+
transaction_id: T.nilable(String)
|
2880
|
+
).returns(T.attached_class)
|
2881
|
+
end
|
2882
|
+
def self.new(
|
2883
|
+
# Identifier assigned by American Express. Matches the `transaction_id` of a prior
|
2884
|
+
# related event. May be populated in incremental authorizations (authorization
|
2885
|
+
# requests that augment a previously authorized amount), authorization advices,
|
2886
|
+
# financial authorizations, and clearings.
|
2887
|
+
original_transaction_id:,
|
2888
|
+
# Identifier assigned by American Express to link original messages to subsequent
|
2889
|
+
# messages. Guaranteed by American Express to be unique for each original
|
2890
|
+
# authorization and financial authorization.
|
2891
|
+
transaction_id:
|
2892
|
+
)
|
2893
|
+
end
|
2894
|
+
|
2895
|
+
sig do
|
2896
|
+
override.returns(
|
2897
|
+
{
|
2898
|
+
original_transaction_id: T.nilable(String),
|
2899
|
+
transaction_id: T.nilable(String)
|
2900
|
+
}
|
2901
|
+
)
|
2902
|
+
end
|
2903
|
+
def to_hash
|
2904
|
+
end
|
2905
|
+
end
|
2906
|
+
|
2689
2907
|
class Mastercard < Lithic::Internal::Type::BaseModel
|
2690
2908
|
OrHash =
|
2691
|
-
T.type_alias
|
2909
|
+
T.type_alias do
|
2910
|
+
T.any(
|
2911
|
+
Lithic::Transaction::Event::NetworkInfo::Mastercard,
|
2912
|
+
Lithic::Internal::AnyHash
|
2913
|
+
)
|
2914
|
+
end
|
2692
2915
|
|
2693
2916
|
# Identifier assigned by Mastercard. Guaranteed by Mastercard to be unique for any
|
2694
2917
|
# transaction within a specific financial network on any processing day.
|
@@ -2770,7 +2993,12 @@ module Lithic
|
|
2770
2993
|
|
2771
2994
|
class Visa < Lithic::Internal::Type::BaseModel
|
2772
2995
|
OrHash =
|
2773
|
-
T.type_alias
|
2996
|
+
T.type_alias do
|
2997
|
+
T.any(
|
2998
|
+
Lithic::Transaction::Event::NetworkInfo::Visa,
|
2999
|
+
Lithic::Internal::AnyHash
|
3000
|
+
)
|
3001
|
+
end
|
2774
3002
|
|
2775
3003
|
# Identifier assigned by Visa. Matches the `transaction_id` of a prior related
|
2776
3004
|
# event. May be populated in incremental authorizations (authorization requests
|
@@ -2945,7 +3173,12 @@ module Lithic
|
|
2945
3173
|
|
2946
3174
|
class RuleResult < Lithic::Internal::Type::BaseModel
|
2947
3175
|
OrHash =
|
2948
|
-
T.type_alias
|
3176
|
+
T.type_alias do
|
3177
|
+
T.any(
|
3178
|
+
Lithic::Transaction::Event::RuleResult,
|
3179
|
+
Lithic::Internal::AnyHash
|
3180
|
+
)
|
3181
|
+
end
|
2949
3182
|
|
2950
3183
|
# The Auth Rule Token associated with the rule from which the decline originated.
|
2951
3184
|
# If this is set to null, then the decline was not associated with a
|
@@ -3374,7 +3607,12 @@ module Lithic
|
|
3374
3607
|
|
3375
3608
|
class NetworkSpecificData < Lithic::Internal::Type::BaseModel
|
3376
3609
|
OrHash =
|
3377
|
-
T.type_alias
|
3610
|
+
T.type_alias do
|
3611
|
+
T.any(
|
3612
|
+
Lithic::Transaction::Event::NetworkSpecificData,
|
3613
|
+
Lithic::Internal::AnyHash
|
3614
|
+
)
|
3615
|
+
end
|
3378
3616
|
|
3379
3617
|
sig do
|
3380
3618
|
returns(Lithic::Transaction::Event::NetworkSpecificData::Mastercard)
|
@@ -3425,7 +3663,12 @@ module Lithic
|
|
3425
3663
|
|
3426
3664
|
class Mastercard < Lithic::Internal::Type::BaseModel
|
3427
3665
|
OrHash =
|
3428
|
-
T.type_alias
|
3666
|
+
T.type_alias do
|
3667
|
+
T.any(
|
3668
|
+
Lithic::Transaction::Event::NetworkSpecificData::Mastercard,
|
3669
|
+
Lithic::Internal::AnyHash
|
3670
|
+
)
|
3671
|
+
end
|
3429
3672
|
|
3430
3673
|
# Indicates the electronic commerce security level and UCAF collection.
|
3431
3674
|
sig { returns(T.nilable(String)) }
|
@@ -3492,7 +3735,12 @@ module Lithic
|
|
3492
3735
|
|
3493
3736
|
class OnBehalfServiceResult < Lithic::Internal::Type::BaseModel
|
3494
3737
|
OrHash =
|
3495
|
-
T.type_alias
|
3738
|
+
T.type_alias do
|
3739
|
+
T.any(
|
3740
|
+
Lithic::Transaction::Event::NetworkSpecificData::Mastercard::OnBehalfServiceResult,
|
3741
|
+
Lithic::Internal::AnyHash
|
3742
|
+
)
|
3743
|
+
end
|
3496
3744
|
|
3497
3745
|
# Indicates the results of the service processing.
|
3498
3746
|
sig { returns(String) }
|
@@ -3535,7 +3783,12 @@ module Lithic
|
|
3535
3783
|
|
3536
3784
|
class Visa < Lithic::Internal::Type::BaseModel
|
3537
3785
|
OrHash =
|
3538
|
-
T.type_alias
|
3786
|
+
T.type_alias do
|
3787
|
+
T.any(
|
3788
|
+
Lithic::Transaction::Event::NetworkSpecificData::Visa,
|
3789
|
+
Lithic::Internal::AnyHash
|
3790
|
+
)
|
3791
|
+
end
|
3539
3792
|
|
3540
3793
|
# Identifies the purpose or category of a transaction, used to classify and
|
3541
3794
|
# process transactions according to Visa’s rules.
|
@@ -6,7 +6,13 @@ module Lithic
|
|
6
6
|
extend Lithic::Internal::Type::RequestParameters::Converter
|
7
7
|
include Lithic::Internal::Type::RequestParameters
|
8
8
|
|
9
|
-
OrHash =
|
9
|
+
OrHash =
|
10
|
+
T.type_alias do
|
11
|
+
T.any(
|
12
|
+
Lithic::TransactionExpireAuthorizationParams,
|
13
|
+
Lithic::Internal::AnyHash
|
14
|
+
)
|
15
|
+
end
|
10
16
|
|
11
17
|
sig do
|
12
18
|
params(request_options: Lithic::RequestOptions::OrHash).returns(
|
@@ -6,7 +6,10 @@ module Lithic
|
|
6
6
|
extend Lithic::Internal::Type::RequestParameters::Converter
|
7
7
|
include Lithic::Internal::Type::RequestParameters
|
8
8
|
|
9
|
-
OrHash =
|
9
|
+
OrHash =
|
10
|
+
T.type_alias do
|
11
|
+
T.any(Lithic::TransactionListParams, Lithic::Internal::AnyHash)
|
12
|
+
end
|
10
13
|
|
11
14
|
# Filters for transactions associated with a specific account.
|
12
15
|
sig { returns(T.nilable(String)) }
|
@@ -6,7 +6,10 @@ module Lithic
|
|
6
6
|
extend Lithic::Internal::Type::RequestParameters::Converter
|
7
7
|
include Lithic::Internal::Type::RequestParameters
|
8
8
|
|
9
|
-
OrHash =
|
9
|
+
OrHash =
|
10
|
+
T.type_alias do
|
11
|
+
T.any(Lithic::TransactionRetrieveParams, Lithic::Internal::AnyHash)
|
12
|
+
end
|
10
13
|
|
11
14
|
sig do
|
12
15
|
params(request_options: Lithic::RequestOptions::OrHash).returns(
|
@@ -6,7 +6,13 @@ module Lithic
|
|
6
6
|
extend Lithic::Internal::Type::RequestParameters::Converter
|
7
7
|
include Lithic::Internal::Type::RequestParameters
|
8
8
|
|
9
|
-
OrHash =
|
9
|
+
OrHash =
|
10
|
+
T.type_alias do
|
11
|
+
T.any(
|
12
|
+
Lithic::TransactionSimulateAuthorizationAdviceParams,
|
13
|
+
Lithic::Internal::AnyHash
|
14
|
+
)
|
15
|
+
end
|
10
16
|
|
11
17
|
# The transaction token returned from the /v1/simulate/authorize. response.
|
12
18
|
sig { returns(String) }
|
@@ -3,7 +3,13 @@
|
|
3
3
|
module Lithic
|
4
4
|
module Models
|
5
5
|
class TransactionSimulateAuthorizationAdviceResponse < Lithic::Internal::Type::BaseModel
|
6
|
-
OrHash =
|
6
|
+
OrHash =
|
7
|
+
T.type_alias do
|
8
|
+
T.any(
|
9
|
+
Lithic::Models::TransactionSimulateAuthorizationAdviceResponse,
|
10
|
+
Lithic::Internal::AnyHash
|
11
|
+
)
|
12
|
+
end
|
7
13
|
|
8
14
|
# A unique token to reference this transaction.
|
9
15
|
sig { returns(T.nilable(String)) }
|
@@ -6,7 +6,13 @@ module Lithic
|
|
6
6
|
extend Lithic::Internal::Type::RequestParameters::Converter
|
7
7
|
include Lithic::Internal::Type::RequestParameters
|
8
8
|
|
9
|
-
OrHash =
|
9
|
+
OrHash =
|
10
|
+
T.type_alias do
|
11
|
+
T.any(
|
12
|
+
Lithic::TransactionSimulateAuthorizationParams,
|
13
|
+
Lithic::Internal::AnyHash
|
14
|
+
)
|
15
|
+
end
|
10
16
|
|
11
17
|
# Amount (in cents) to authorize. For credit authorizations and financial credit
|
12
18
|
# authorizations, any value entered will be converted into a negative amount in
|