lithic 0.1.0.pre.alpha.22 → 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 +29 -0
- data/README.md +4 -4
- data/lib/lithic/client.rb +2 -7
- data/lib/lithic/errors.rb +1 -1
- data/lib/lithic/file_part.rb +2 -2
- 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 +4 -3
- data/lib/lithic/internal/type/hash_of.rb +1 -1
- data/lib/lithic/internal/type/request_parameters.rb +4 -4
- data/lib/lithic/internal/type/union.rb +1 -0
- data/lib/lithic/internal/util.rb +57 -1
- data/lib/lithic/internal.rb +6 -0
- data/lib/lithic/models/account.rb +21 -26
- data/lib/lithic/models/account_holder.rb +71 -85
- data/lib/lithic/models/account_holder_create_params.rb +54 -77
- data/lib/lithic/models/account_holder_create_response.rb +4 -6
- data/lib/lithic/models/account_holder_list_documents_response.rb +3 -3
- data/lib/lithic/models/account_holder_list_params.rb +0 -8
- data/lib/lithic/models/account_holder_simulate_enrollment_document_review_params.rb +6 -7
- data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +8 -7
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +14 -40
- data/lib/lithic/models/account_holder_update_params.rb +42 -66
- data/lib/lithic/models/account_holder_update_response.rb +23 -43
- data/lib/lithic/models/account_holder_upload_document_params.rb +3 -3
- data/lib/lithic/models/account_list_params.rb +0 -4
- data/lib/lithic/models/account_spend_limits.rb +14 -20
- data/lib/lithic/models/account_update_params.rb +6 -10
- data/lib/lithic/models/address.rb +2 -5
- data/lib/lithic/models/address_update.rb +2 -5
- data/lib/lithic/models/aggregate_balance.rb +6 -10
- data/lib/lithic/models/aggregate_balance_list_params.rb +3 -4
- data/lib/lithic/models/auth_rules/auth_rule.rb +5 -9
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +15 -11
- data/lib/lithic/models/auth_rules/conditional_block_parameters.rb +3 -3
- data/lib/lithic/models/auth_rules/v2/backtest_results.rb +31 -32
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +30 -20
- data/lib/lithic/models/auth_rules/v2_create_params.rb +28 -20
- data/lib/lithic/models/auth_rules/v2_create_response.rb +30 -20
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +25 -17
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +30 -20
- data/lib/lithic/models/auth_rules/v2_list_params.rb +3 -5
- data/lib/lithic/models/auth_rules/v2_list_response.rb +30 -20
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +30 -20
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +30 -20
- data/lib/lithic/models/auth_rules/v2_update_params.rb +3 -3
- data/lib/lithic/models/auth_rules/v2_update_response.rb +30 -20
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +20 -23
- data/lib/lithic/models/balance.rb +6 -10
- data/lib/lithic/models/balance_list_params.rb +3 -4
- data/lib/lithic/models/book_transfer_create_params.rb +6 -10
- data/lib/lithic/models/book_transfer_list_params.rb +9 -14
- data/lib/lithic/models/book_transfer_response.rb +26 -34
- data/lib/lithic/models/card.rb +2 -3
- data/lib/lithic/models/card_convert_physical_params.rb +9 -10
- data/lib/lithic/models/card_create_params.rb +18 -28
- data/lib/lithic/models/card_list_params.rb +13 -9
- data/lib/lithic/models/card_program.rb +2 -3
- data/lib/lithic/models/card_program_list_params.rb +0 -2
- data/lib/lithic/models/card_provision_params.rb +3 -8
- data/lib/lithic/models/card_reissue_params.rb +9 -10
- data/lib/lithic/models/card_renew_params.rb +9 -12
- data/lib/lithic/models/card_spend_limits.rb +14 -20
- data/lib/lithic/models/card_update_params.rb +9 -13
- data/lib/lithic/models/cards/aggregate_balance_list_response.rb +0 -4
- data/lib/lithic/models/cards/balance_list_params.rb +1 -1
- data/lib/lithic/models/cards/balance_list_response.rb +0 -4
- data/lib/lithic/models/cards/financial_transaction_list_params.rb +9 -13
- data/lib/lithic/models/digital_card_art.rb +4 -4
- data/lib/lithic/models/digital_card_art_list_params.rb +0 -2
- data/lib/lithic/models/dispute.rb +14 -16
- data/lib/lithic/models/dispute_create_params.rb +3 -3
- data/lib/lithic/models/dispute_evidence.rb +6 -7
- data/lib/lithic/models/dispute_list_evidences_params.rb +0 -4
- data/lib/lithic/models/dispute_list_params.rb +3 -7
- data/lib/lithic/models/dispute_update_params.rb +3 -3
- data/lib/lithic/models/document.rb +22 -22
- data/lib/lithic/models/event.rb +8 -7
- data/lib/lithic/models/event_list_attempts_params.rb +3 -7
- data/lib/lithic/models/event_list_params.rb +4 -8
- data/lib/lithic/models/event_subscription.rb +4 -3
- data/lib/lithic/models/events/subscription_create_params.rb +6 -4
- data/lib/lithic/models/events/subscription_list_attempts_params.rb +3 -7
- data/lib/lithic/models/events/subscription_list_params.rb +0 -2
- data/lib/lithic/models/events/subscription_recover_params.rb +0 -2
- data/lib/lithic/models/events/subscription_replay_missing_params.rb +0 -2
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +4 -4
- data/lib/lithic/models/events/subscription_update_params.rb +6 -4
- data/lib/lithic/models/external_bank_account_create_params.rb +12 -16
- data/lib/lithic/models/external_bank_account_create_response.rb +3 -10
- data/lib/lithic/models/external_bank_account_list_params.rb +16 -14
- data/lib/lithic/models/external_bank_account_list_response.rb +3 -10
- data/lib/lithic/models/external_bank_account_retrieve_response.rb +3 -10
- data/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rb +3 -10
- data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +9 -16
- data/lib/lithic/models/external_bank_account_update_params.rb +9 -10
- data/lib/lithic/models/external_bank_account_update_response.rb +3 -10
- data/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rb +3 -10
- data/lib/lithic/models/external_payment.rb +30 -30
- data/lib/lithic/models/external_payment_create_params.rb +9 -9
- data/lib/lithic/models/external_payment_list_params.rb +9 -14
- data/lib/lithic/models/external_payment_settle_params.rb +3 -3
- data/lib/lithic/models/financial_account.rb +24 -24
- data/lib/lithic/models/financial_account_create_params.rb +3 -3
- data/lib/lithic/models/financial_account_list_params.rb +3 -3
- data/lib/lithic/models/financial_account_update_status_params.rb +6 -8
- data/lib/lithic/models/financial_accounts/balance_list_params.rb +1 -1
- data/lib/lithic/models/financial_accounts/balance_list_response.rb +0 -4
- data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +8 -8
- data/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb +9 -14
- data/lib/lithic/models/financial_accounts/loan_tape.rb +101 -100
- data/lib/lithic/models/financial_accounts/loan_tape_list_params.rb +0 -4
- data/lib/lithic/models/financial_accounts/statement.rb +68 -67
- data/lib/lithic/models/financial_accounts/statement_list_params.rb +0 -4
- data/lib/lithic/models/financial_accounts/statements/line_item_list_params.rb +0 -2
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +18 -14
- data/lib/lithic/models/financial_accounts/statements.rb +3 -3
- data/lib/lithic/models/financial_transaction.rb +25 -32
- data/lib/lithic/models/kyb.rb +40 -59
- data/lib/lithic/models/kyb_business_entity.rb +6 -13
- data/lib/lithic/models/kyc.rb +17 -23
- data/lib/lithic/models/kyc_exempt.rb +13 -16
- data/lib/lithic/models/management_operation_create_params.rb +9 -9
- data/lib/lithic/models/management_operation_list_params.rb +6 -11
- data/lib/lithic/models/management_operation_transaction.rb +38 -35
- data/lib/lithic/models/message_attempt.rb +7 -7
- data/lib/lithic/models/non_pci_card.rb +34 -44
- data/lib/lithic/models/payment.rb +51 -56
- data/lib/lithic/models/payment_create_params.rb +13 -14
- data/lib/lithic/models/payment_create_response.rb +3 -3
- data/lib/lithic/models/payment_list_params.rb +9 -13
- data/lib/lithic/models/payment_retry_response.rb +3 -3
- data/lib/lithic/models/payment_simulate_action_params.rb +6 -6
- data/lib/lithic/models/payment_simulate_receipt_params.rb +3 -4
- data/lib/lithic/models/reports/settlement/network_total_list_params.rb +3 -8
- data/lib/lithic/models/reports/settlement/network_total_list_response.rb +0 -4
- data/lib/lithic/models/reports/settlement/network_total_retrieve_response.rb +0 -4
- data/lib/lithic/models/reports/settlement_list_details_params.rb +0 -2
- data/lib/lithic/models/required_document.rb +2 -4
- data/lib/lithic/models/responder_endpoint_check_status_params.rb +3 -3
- data/lib/lithic/models/responder_endpoint_create_params.rb +3 -3
- data/lib/lithic/models/responder_endpoint_delete_params.rb +3 -3
- data/lib/lithic/models/settlement_detail.rb +14 -20
- data/lib/lithic/models/settlement_report.rb +5 -11
- data/lib/lithic/models/settlement_summary_details.rb +5 -8
- data/lib/lithic/models/shipping_address.rb +2 -9
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +14 -51
- data/lib/lithic/models/three_ds/authentication_simulate_otp_entry_params.rb +0 -1
- data/lib/lithic/models/three_ds/authentication_simulate_params.rb +12 -16
- data/lib/lithic/models/three_ds/authentication_simulate_response.rb +0 -1
- data/lib/lithic/models/three_ds/challenge_response.rb +4 -5
- data/lib/lithic/models/tokenization.rb +25 -27
- data/lib/lithic/models/tokenization_list_params.rb +3 -6
- data/lib/lithic/models/tokenization_resend_activation_code_params.rb +3 -4
- data/lib/lithic/models/tokenization_retrieve_response.rb +3 -3
- data/lib/lithic/models/tokenization_simulate_params.rb +6 -9
- data/lib/lithic/models/tokenization_simulate_response.rb +3 -3
- data/lib/lithic/models/tokenization_update_digital_card_art_params.rb +0 -1
- data/lib/lithic/models/tokenization_update_digital_card_art_response.rb +3 -3
- data/lib/lithic/models/transaction.rb +266 -247
- data/lib/lithic/models/transaction_list_params.rb +7 -12
- data/lib/lithic/models/transaction_simulate_authorization_advice_params.rb +0 -1
- data/lib/lithic/models/transaction_simulate_authorization_params.rb +4 -8
- data/lib/lithic/models/transaction_simulate_authorization_response.rb +0 -1
- data/lib/lithic/models/transaction_simulate_clearing_params.rb +0 -1
- data/lib/lithic/models/transaction_simulate_credit_authorization_params.rb +0 -2
- data/lib/lithic/models/transaction_simulate_void_params.rb +3 -4
- data/lib/lithic/models/transactions/enhanced_commercial_data_retrieve_response.rb +3 -3
- data/lib/lithic/models/transactions/events/enhanced_data.rb +45 -41
- data/lib/lithic/models/transfer.rb +33 -40
- data/lib/lithic/models/transfer_create_params.rb +0 -4
- data/lib/lithic/models.rb +27 -0
- data/lib/lithic/request_options.rb +4 -0
- data/lib/lithic/resources/account_holders.rb +36 -67
- data/lib/lithic/resources/accounts.rb +12 -20
- data/lib/lithic/resources/aggregate_balances.rb +4 -4
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +4 -4
- data/lib/lithic/resources/auth_rules/v2.rb +10 -12
- data/lib/lithic/resources/auth_stream_enrollment.rb +2 -2
- data/lib/lithic/resources/balances.rb +4 -5
- data/lib/lithic/resources/book_transfers.rb +16 -25
- data/lib/lithic/resources/card_programs.rb +5 -7
- data/lib/lithic/resources/cards/aggregate_balances.rb +1 -1
- data/lib/lithic/resources/cards/balances.rb +2 -2
- data/lib/lithic/resources/cards/financial_transactions.rb +9 -13
- data/lib/lithic/resources/cards.rb +51 -83
- data/lib/lithic/resources/credit_products/extended_credit.rb +2 -2
- data/lib/lithic/resources/credit_products/prime_rates.rb +2 -2
- data/lib/lithic/resources/digital_card_art.rb +5 -8
- data/lib/lithic/resources/disputes.rb +28 -36
- data/lib/lithic/resources/events/event_subscriptions.rb +1 -1
- data/lib/lithic/resources/events/subscriptions.rb +21 -33
- data/lib/lithic/resources/events.rb +10 -18
- data/lib/lithic/resources/external_bank_accounts/micro_deposits.rb +1 -1
- data/lib/lithic/resources/external_bank_accounts.rb +16 -22
- data/lib/lithic/resources/external_payments.rb +27 -32
- data/lib/lithic/resources/financial_accounts/balances.rb +2 -2
- data/lib/lithic/resources/financial_accounts/credit_configuration.rb +5 -5
- data/lib/lithic/resources/financial_accounts/financial_transactions.rb +9 -14
- data/lib/lithic/resources/financial_accounts/loan_tapes.rb +6 -10
- data/lib/lithic/resources/financial_accounts/statements/line_items.rb +3 -5
- data/lib/lithic/resources/financial_accounts/statements.rb +6 -10
- data/lib/lithic/resources/financial_accounts.rb +18 -18
- data/lib/lithic/resources/management_operations.rb +16 -21
- data/lib/lithic/resources/payments.rb +19 -25
- data/lib/lithic/resources/reports/settlement/network_totals.rb +2 -7
- data/lib/lithic/resources/reports/settlement.rb +5 -7
- data/lib/lithic/resources/responder_endpoints.rb +8 -8
- data/lib/lithic/resources/three_ds/authentication.rb +5 -7
- data/lib/lithic/resources/three_ds/decisioning.rb +2 -3
- data/lib/lithic/resources/tokenization_decisioning.rb +2 -2
- data/lib/lithic/resources/tokenizations.rb +10 -18
- data/lib/lithic/resources/transactions/events/enhanced_commercial_data.rb +2 -2
- data/lib/lithic/resources/transactions.rb +18 -32
- data/lib/lithic/resources/transfers.rb +3 -7
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +3 -0
- data/rbi/lithic/client.rbi +16 -7
- data/rbi/lithic/errors.rbi +35 -16
- data/rbi/lithic/file_part.rbi +9 -6
- data/rbi/lithic/internal/cursor_page.rbi +2 -1
- data/rbi/lithic/internal/single_page.rbi +2 -1
- data/rbi/lithic/internal/transport/base_client.rbi +158 -78
- data/rbi/lithic/internal/transport/pooled_net_requester.rbi +27 -13
- data/rbi/lithic/internal/type/array_of.rbi +34 -24
- data/rbi/lithic/internal/type/base_model.rbi +144 -69
- data/rbi/lithic/internal/type/base_page.rbi +12 -8
- data/rbi/lithic/internal/type/boolean.rbi +16 -14
- data/rbi/lithic/internal/type/converter.rbi +66 -28
- data/rbi/lithic/internal/type/enum.rbi +28 -15
- data/rbi/lithic/internal/type/file_input.rbi +12 -10
- data/rbi/lithic/internal/type/hash_of.rbi +34 -24
- data/rbi/lithic/internal/type/request_parameters.rbi +12 -4
- data/rbi/lithic/internal/type/union.rbi +57 -22
- data/rbi/lithic/internal/type/unknown.rbi +18 -9
- data/rbi/lithic/internal/util.rbi +237 -89
- data/rbi/lithic/internal.rbi +2 -0
- data/rbi/lithic/models/account.rbi +102 -59
- data/rbi/lithic/models/account_financial_account_type.rbi +13 -5
- data/rbi/lithic/models/account_holder.rbi +464 -241
- data/rbi/lithic/models/account_holder_create_params.rbi +268 -161
- data/rbi/lithic/models/account_holder_create_response.rbi +133 -42
- data/rbi/lithic/models/account_holder_list_documents_params.rbi +15 -8
- data/rbi/lithic/models/account_holder_list_documents_response.rbi +18 -7
- data/rbi/lithic/models/account_holder_list_params.rbi +28 -22
- data/rbi/lithic/models/account_holder_retrieve_document_params.rbi +22 -6
- data/rbi/lithic/models/account_holder_retrieve_params.rbi +13 -9
- data/rbi/lithic/models/account_holder_simulate_enrollment_document_review_params.rbi +82 -49
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_params.rbi +107 -49
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +460 -287
- data/rbi/lithic/models/account_holder_update_params.rbi +238 -152
- data/rbi/lithic/models/account_holder_update_response.rbi +519 -331
- data/rbi/lithic/models/account_holder_upload_document_params.rbi +101 -37
- data/rbi/lithic/models/account_list_params.rbi +22 -16
- data/rbi/lithic/models/account_retrieve_params.rbi +13 -9
- data/rbi/lithic/models/account_retrieve_spend_limits_params.rbi +15 -8
- data/rbi/lithic/models/account_spend_limits.rbi +106 -37
- data/rbi/lithic/models/account_update_params.rbi +77 -44
- data/rbi/lithic/models/address.rbi +19 -15
- data/rbi/lithic/models/address_update.rbi +19 -15
- data/rbi/lithic/models/aggregate_balance.rbi +59 -27
- data/rbi/lithic/models/aggregate_balance_list_params.rbi +61 -22
- data/rbi/lithic/models/api_status.rbi +8 -3
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +39 -25
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +96 -30
- data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +80 -19
- data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +20 -7
- data/rbi/lithic/models/auth_rules/v2/backtest_create_params.rbi +24 -9
- data/rbi/lithic/models/auth_rules/v2/backtest_create_response.rbi +14 -3
- data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +249 -118
- data/rbi/lithic/models/auth_rules/v2/backtest_retrieve_params.rbi +22 -9
- data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +21 -15
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +324 -136
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +146 -73
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +324 -136
- data/rbi/lithic/models/auth_rules/v2_delete_params.rbi +13 -9
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +103 -52
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +324 -136
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +53 -26
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +320 -136
- data/rbi/lithic/models/auth_rules/v2_promote_params.rbi +13 -9
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +328 -137
- data/rbi/lithic/models/auth_rules/v2_report_params.rbi +13 -9
- data/rbi/lithic/models/auth_rules/v2_report_response.rbi +13 -3
- data/rbi/lithic/models/auth_rules/v2_retrieve_params.rbi +15 -8
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +325 -136
- data/rbi/lithic/models/auth_rules/v2_update_params.rbi +46 -24
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +324 -136
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +107 -42
- data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +28 -6
- data/rbi/lithic/models/auth_stream_enrollment_retrieve_secret_params.rbi +15 -8
- data/rbi/lithic/models/auth_stream_enrollment_rotate_secret_params.rbi +15 -8
- data/rbi/lithic/models/auth_stream_secret.rbi +11 -3
- data/rbi/lithic/models/balance.rbi +42 -27
- data/rbi/lithic/models/balance_list_params.rbi +63 -24
- data/rbi/lithic/models/book_transfer_create_params.rbi +220 -70
- data/rbi/lithic/models/book_transfer_list_params.rbi +117 -52
- data/rbi/lithic/models/book_transfer_response.rbi +182 -82
- data/rbi/lithic/models/book_transfer_retrieve_params.rbi +13 -9
- data/rbi/lithic/models/book_transfer_reverse_params.rbi +19 -5
- data/rbi/lithic/models/card.rbi +8 -3
- data/rbi/lithic/models/card_convert_physical_params.rbi +82 -33
- data/rbi/lithic/models/card_create_params.rbi +131 -69
- data/rbi/lithic/models/card_embed_params.rbi +21 -6
- data/rbi/lithic/models/card_list_params.rbi +60 -29
- data/rbi/lithic/models/card_program.rbi +20 -16
- data/rbi/lithic/models/card_program_list_params.rbi +20 -14
- data/rbi/lithic/models/card_program_retrieve_params.rbi +13 -9
- data/rbi/lithic/models/card_provision_params.rbi +59 -26
- data/rbi/lithic/models/card_provision_response.rbi +13 -3
- data/rbi/lithic/models/card_reissue_params.rbi +77 -33
- data/rbi/lithic/models/card_renew_params.rbi +72 -35
- data/rbi/lithic/models/card_retrieve_params.rbi +13 -9
- data/rbi/lithic/models/card_retrieve_spend_limits_params.rbi +15 -8
- data/rbi/lithic/models/card_search_by_pan_params.rbi +19 -5
- data/rbi/lithic/models/card_spend_limits.rbi +106 -36
- data/rbi/lithic/models/card_update_params.rbi +59 -37
- data/rbi/lithic/models/cards/aggregate_balance_list_params.rbi +22 -11
- data/rbi/lithic/models/cards/aggregate_balance_list_response.rbi +27 -18
- data/rbi/lithic/models/cards/balance_list_params.rbi +19 -13
- data/rbi/lithic/models/cards/balance_list_response.rbi +62 -26
- data/rbi/lithic/models/cards/financial_transaction_list_params.rbi +169 -46
- data/rbi/lithic/models/cards/financial_transaction_retrieve_params.rbi +19 -6
- data/rbi/lithic/models/carrier.rbi +9 -3
- data/rbi/lithic/models/client_api_status_params.rbi +13 -9
- data/rbi/lithic/models/credit_products/extended_credit.rbi +13 -3
- data/rbi/lithic/models/credit_products/extended_credit_retrieve_params.rbi +15 -8
- data/rbi/lithic/models/credit_products/prime_rate_create_params.rbi +22 -6
- data/rbi/lithic/models/credit_products/prime_rate_retrieve_params.rbi +15 -5
- data/rbi/lithic/models/credit_products/prime_rate_retrieve_response.rbi +51 -14
- data/rbi/lithic/models/digital_card_art.rbi +36 -23
- data/rbi/lithic/models/digital_card_art_list_params.rbi +20 -14
- data/rbi/lithic/models/digital_card_art_retrieve_params.rbi +13 -9
- data/rbi/lithic/models/dispute.rbi +170 -82
- data/rbi/lithic/models/dispute_create_params.rbi +83 -35
- data/rbi/lithic/models/dispute_delete_evidence_params.rbi +16 -6
- data/rbi/lithic/models/dispute_delete_params.rbi +13 -9
- data/rbi/lithic/models/dispute_evidence.rbi +43 -26
- data/rbi/lithic/models/dispute_initiate_evidence_upload_params.rbi +22 -5
- data/rbi/lithic/models/dispute_list_evidences_params.rbi +22 -16
- data/rbi/lithic/models/dispute_list_params.rbi +58 -33
- data/rbi/lithic/models/dispute_retrieve_evidence_params.rbi +19 -6
- data/rbi/lithic/models/dispute_retrieve_params.rbi +13 -9
- data/rbi/lithic/models/dispute_update_params.rbi +83 -35
- data/rbi/lithic/models/document.rbi +242 -91
- data/rbi/lithic/models/event.rbi +169 -60
- data/rbi/lithic/models/event_list_attempts_params.rbi +50 -28
- data/rbi/lithic/models/event_list_params.rbi +211 -66
- data/rbi/lithic/models/event_retrieve_params.rbi +13 -9
- data/rbi/lithic/models/event_subscription.rbi +203 -61
- data/rbi/lithic/models/events/event_subscription_resend_params.rbi +19 -6
- data/rbi/lithic/models/events/subscription_create_params.rbi +143 -63
- data/rbi/lithic/models/events/subscription_delete_params.rbi +15 -8
- data/rbi/lithic/models/events/subscription_list_attempts_params.rbi +77 -27
- data/rbi/lithic/models/events/subscription_list_params.rbi +23 -14
- data/rbi/lithic/models/events/subscription_recover_params.rbi +24 -6
- data/rbi/lithic/models/events/subscription_replay_missing_params.rbi +24 -6
- data/rbi/lithic/models/events/subscription_retrieve_params.rbi +15 -8
- data/rbi/lithic/models/events/subscription_retrieve_secret_params.rbi +15 -8
- data/rbi/lithic/models/events/subscription_retrieve_secret_response.rbi +14 -3
- data/rbi/lithic/models/events/subscription_rotate_secret_params.rbi +15 -8
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +95 -62
- data/rbi/lithic/models/events/subscription_update_params.rbi +143 -63
- data/rbi/lithic/models/external_bank_account_address.rbi +27 -15
- data/rbi/lithic/models/external_bank_account_create_params.rbi +90 -48
- data/rbi/lithic/models/external_bank_account_create_response.rbi +214 -74
- data/rbi/lithic/models/external_bank_account_list_params.rbi +172 -52
- data/rbi/lithic/models/external_bank_account_list_response.rbi +212 -73
- data/rbi/lithic/models/external_bank_account_retrieve_params.rbi +15 -8
- data/rbi/lithic/models/external_bank_account_retrieve_response.rbi +210 -73
- data/rbi/lithic/models/external_bank_account_retry_micro_deposits_params.rbi +22 -6
- data/rbi/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +176 -75
- data/rbi/lithic/models/external_bank_account_retry_prenote_params.rbi +22 -6
- data/rbi/lithic/models/external_bank_account_retry_prenote_response.rbi +147 -63
- data/rbi/lithic/models/external_bank_account_update_params.rbi +69 -34
- data/rbi/lithic/models/external_bank_account_update_response.rbi +214 -74
- data/rbi/lithic/models/external_bank_accounts/micro_deposit_create_params.rbi +22 -6
- data/rbi/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +163 -74
- data/rbi/lithic/models/external_payment.rbi +280 -112
- data/rbi/lithic/models/external_payment_cancel_params.rbi +20 -6
- data/rbi/lithic/models/external_payment_create_params.rbi +123 -44
- data/rbi/lithic/models/external_payment_list_params.rbi +138 -50
- data/rbi/lithic/models/external_payment_release_params.rbi +20 -6
- data/rbi/lithic/models/external_payment_retrieve_params.rbi +15 -8
- data/rbi/lithic/models/external_payment_reverse_params.rbi +20 -6
- data/rbi/lithic/models/external_payment_settle_params.rbi +60 -22
- data/rbi/lithic/models/financial_account.rbi +207 -95
- data/rbi/lithic/models/financial_account_create_params.rbi +37 -21
- data/rbi/lithic/models/financial_account_list_params.rbi +53 -23
- data/rbi/lithic/models/financial_account_retrieve_params.rbi +15 -8
- data/rbi/lithic/models/financial_account_update_params.rbi +18 -5
- data/rbi/lithic/models/financial_account_update_status_params.rbi +99 -31
- data/rbi/lithic/models/financial_accounts/balance_list_params.rbi +22 -13
- data/rbi/lithic/models/financial_accounts/balance_list_response.rbi +66 -27
- data/rbi/lithic/models/financial_accounts/credit_configuration_retrieve_params.rbi +15 -8
- data/rbi/lithic/models/financial_accounts/credit_configuration_update_params.rbi +24 -15
- data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +74 -40
- data/rbi/lithic/models/financial_accounts/financial_transaction_list_params.rbi +154 -54
- data/rbi/lithic/models/financial_accounts/financial_transaction_retrieve_params.rbi +22 -6
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +669 -329
- data/rbi/lithic/models/financial_accounts/loan_tape_list_params.rbi +25 -16
- data/rbi/lithic/models/financial_accounts/loan_tape_retrieve_params.rbi +23 -6
- data/rbi/lithic/models/financial_accounts/statement.rbi +450 -247
- data/rbi/lithic/models/financial_accounts/statement_list_params.rbi +26 -17
- data/rbi/lithic/models/financial_accounts/statement_retrieve_params.rbi +23 -6
- data/rbi/lithic/models/financial_accounts/statements/line_item_list_params.rbi +24 -15
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +189 -129
- data/rbi/lithic/models/financial_accounts/statements.rbi +23 -7
- data/rbi/lithic/models/financial_transaction.rbi +441 -144
- data/rbi/lithic/models/instance_financial_account_type.rbi +34 -11
- data/rbi/lithic/models/kyb.rbi +148 -113
- data/rbi/lithic/models/kyb_business_entity.rbi +45 -33
- data/rbi/lithic/models/kyc.rbi +53 -43
- data/rbi/lithic/models/kyc_exempt.rbi +57 -34
- data/rbi/lithic/models/management_operation_create_params.rbi +186 -62
- data/rbi/lithic/models/management_operation_list_params.rbi +122 -42
- data/rbi/lithic/models/management_operation_retrieve_params.rbi +15 -8
- data/rbi/lithic/models/management_operation_reverse_params.rbi +23 -6
- data/rbi/lithic/models/management_operation_transaction.rbi +391 -135
- data/rbi/lithic/models/message_attempt.rbi +38 -26
- data/rbi/lithic/models/non_pci_card.rbi +167 -103
- data/rbi/lithic/models/owner_type.rbi +6 -5
- data/rbi/lithic/models/payment.rbi +302 -149
- data/rbi/lithic/models/payment_create_params.rbi +128 -52
- data/rbi/lithic/models/payment_create_response.rbi +17 -6
- data/rbi/lithic/models/payment_list_params.rbi +80 -48
- data/rbi/lithic/models/payment_retrieve_params.rbi +13 -9
- data/rbi/lithic/models/payment_retry_params.rbi +13 -9
- data/rbi/lithic/models/payment_retry_response.rbi +14 -6
- data/rbi/lithic/models/payment_simulate_action_params.rbi +100 -36
- data/rbi/lithic/models/payment_simulate_action_response.rbi +52 -19
- data/rbi/lithic/models/payment_simulate_receipt_params.rbi +49 -23
- data/rbi/lithic/models/payment_simulate_receipt_response.rbi +55 -19
- data/rbi/lithic/models/payment_simulate_release_params.rbi +17 -6
- data/rbi/lithic/models/payment_simulate_release_response.rbi +55 -19
- data/rbi/lithic/models/payment_simulate_return_params.rbi +19 -11
- data/rbi/lithic/models/payment_simulate_return_response.rbi +52 -19
- data/rbi/lithic/models/reports/settlement/network_total_list_params.rbi +77 -33
- data/rbi/lithic/models/reports/settlement/network_total_list_response.rbi +100 -48
- data/rbi/lithic/models/reports/settlement/network_total_retrieve_params.rbi +15 -8
- data/rbi/lithic/models/reports/settlement/network_total_retrieve_response.rbi +91 -54
- data/rbi/lithic/models/reports/settlement_list_details_params.rbi +23 -14
- data/rbi/lithic/models/reports/settlement_summary_params.rbi +15 -8
- data/rbi/lithic/models/required_document.rbi +22 -10
- data/rbi/lithic/models/responder_endpoint_check_status_params.rbi +50 -20
- data/rbi/lithic/models/responder_endpoint_create_params.rbi +54 -22
- data/rbi/lithic/models/responder_endpoint_create_response.rbi +14 -3
- data/rbi/lithic/models/responder_endpoint_delete_params.rbi +46 -17
- data/rbi/lithic/models/responder_endpoint_status.rbi +16 -4
- data/rbi/lithic/models/settlement_detail.rbi +104 -64
- data/rbi/lithic/models/settlement_report.rbi +28 -22
- data/rbi/lithic/models/settlement_summary_details.rbi +67 -28
- data/rbi/lithic/models/shipping_address.rbi +26 -20
- data/rbi/lithic/models/spend_limit_duration.rbi +11 -7
- data/rbi/lithic/models/three_ds/authentication_retrieve_params.rbi +15 -8
- data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +802 -392
- data/rbi/lithic/models/three_ds/authentication_simulate_otp_entry_params.rbi +24 -6
- data/rbi/lithic/models/three_ds/authentication_simulate_params.rbi +120 -45
- data/rbi/lithic/models/three_ds/authentication_simulate_response.rbi +14 -3
- data/rbi/lithic/models/three_ds/challenge_response.rbi +23 -6
- data/rbi/lithic/models/three_ds/challenge_result.rbi +16 -5
- data/rbi/lithic/models/three_ds/decisioning_challenge_response_params.rbi +15 -8
- data/rbi/lithic/models/three_ds/decisioning_retrieve_secret_params.rbi +15 -8
- data/rbi/lithic/models/three_ds/decisioning_retrieve_secret_response.rbi +14 -3
- data/rbi/lithic/models/three_ds/decisioning_rotate_secret_params.rbi +15 -8
- data/rbi/lithic/models/tokenization.rbi +260 -102
- data/rbi/lithic/models/tokenization_activate_params.rbi +13 -9
- data/rbi/lithic/models/tokenization_deactivate_params.rbi +13 -9
- data/rbi/lithic/models/tokenization_decisioning_retrieve_secret_params.rbi +15 -8
- data/rbi/lithic/models/tokenization_decisioning_rotate_secret_params.rbi +15 -8
- data/rbi/lithic/models/tokenization_decisioning_rotate_secret_response.rbi +14 -3
- data/rbi/lithic/models/tokenization_list_params.rbi +67 -28
- data/rbi/lithic/models/tokenization_pause_params.rbi +13 -9
- data/rbi/lithic/models/tokenization_resend_activation_code_params.rbi +49 -25
- data/rbi/lithic/models/tokenization_retrieve_params.rbi +13 -9
- data/rbi/lithic/models/tokenization_retrieve_response.rbi +18 -6
- data/rbi/lithic/models/tokenization_secret.rbi +11 -3
- data/rbi/lithic/models/tokenization_simulate_params.rbi +101 -40
- data/rbi/lithic/models/tokenization_simulate_response.rbi +18 -7
- data/rbi/lithic/models/tokenization_unpause_params.rbi +13 -9
- data/rbi/lithic/models/tokenization_update_digital_card_art_params.rbi +23 -6
- data/rbi/lithic/models/tokenization_update_digital_card_art_response.rbi +18 -6
- data/rbi/lithic/models/transaction.rbi +2273 -775
- data/rbi/lithic/models/transaction_expire_authorization_params.rbi +15 -8
- data/rbi/lithic/models/transaction_list_params.rbi +73 -40
- data/rbi/lithic/models/transaction_retrieve_params.rbi +13 -9
- data/rbi/lithic/models/transaction_simulate_authorization_advice_params.rbi +24 -6
- data/rbi/lithic/models/transaction_simulate_authorization_advice_response.rbi +19 -4
- data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +75 -32
- data/rbi/lithic/models/transaction_simulate_authorization_response.rbi +19 -4
- data/rbi/lithic/models/transaction_simulate_clearing_params.rbi +24 -6
- data/rbi/lithic/models/transaction_simulate_clearing_response.rbi +14 -3
- data/rbi/lithic/models/transaction_simulate_credit_authorization_params.rbi +25 -16
- data/rbi/lithic/models/transaction_simulate_credit_authorization_response.rbi +19 -4
- data/rbi/lithic/models/transaction_simulate_return_params.rbi +23 -12
- data/rbi/lithic/models/transaction_simulate_return_response.rbi +19 -4
- data/rbi/lithic/models/transaction_simulate_return_reversal_params.rbi +22 -5
- data/rbi/lithic/models/transaction_simulate_return_reversal_response.rbi +14 -3
- data/rbi/lithic/models/transaction_simulate_void_params.rbi +51 -22
- data/rbi/lithic/models/transaction_simulate_void_response.rbi +14 -3
- data/rbi/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rbi +15 -8
- data/rbi/lithic/models/transactions/enhanced_commercial_data_retrieve_response.rbi +20 -7
- data/rbi/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rbi +15 -8
- data/rbi/lithic/models/transactions/events/enhanced_data.rbi +523 -263
- data/rbi/lithic/models/transfer.rbi +375 -152
- data/rbi/lithic/models/transfer_create_params.rbi +22 -16
- data/rbi/lithic/models/verification_method.rbi +13 -8
- data/rbi/lithic/models.rbi +58 -29
- data/rbi/lithic/request_options.rbi +13 -6
- data/rbi/lithic/resources/account_holders.rbi +101 -57
- data/rbi/lithic/resources/accounts.rbi +31 -16
- data/rbi/lithic/resources/aggregate_balances.rbi +9 -6
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +16 -8
- data/rbi/lithic/resources/auth_rules/v2.rbi +77 -48
- data/rbi/lithic/resources/auth_rules.rbi +2 -1
- data/rbi/lithic/resources/auth_stream_enrollment.rbi +12 -5
- data/rbi/lithic/resources/balances.rbi +9 -6
- data/rbi/lithic/resources/book_transfers.rbi +32 -20
- data/rbi/lithic/resources/card_programs.rbi +14 -8
- data/rbi/lithic/resources/cards/aggregate_balances.rbi +14 -4
- data/rbi/lithic/resources/cards/balances.rbi +10 -4
- data/rbi/lithic/resources/cards/financial_transactions.rbi +18 -12
- data/rbi/lithic/resources/cards.rbi +94 -57
- data/rbi/lithic/resources/credit_products/extended_credit.rbi +9 -4
- data/rbi/lithic/resources/credit_products/prime_rates.rbi +12 -9
- data/rbi/lithic/resources/credit_products.rbi +2 -1
- data/rbi/lithic/resources/digital_card_art.rbi +14 -8
- data/rbi/lithic/resources/disputes.rbi +63 -33
- data/rbi/lithic/resources/events/event_subscriptions.rbi +5 -3
- data/rbi/lithic/resources/events/subscriptions.rbi +77 -43
- data/rbi/lithic/resources/events.rbi +22 -13
- data/rbi/lithic/resources/external_bank_accounts/micro_deposits.rbi +11 -4
- data/rbi/lithic/resources/external_bank_accounts.rbi +55 -33
- data/rbi/lithic/resources/external_payments.rbi +49 -35
- data/rbi/lithic/resources/financial_accounts/balances.rbi +10 -4
- data/rbi/lithic/resources/financial_accounts/credit_configuration.rbi +14 -8
- data/rbi/lithic/resources/financial_accounts/financial_transactions.rbi +18 -12
- data/rbi/lithic/resources/financial_accounts/loan_tapes.rbi +13 -8
- data/rbi/lithic/resources/financial_accounts/statements/line_items.rbi +10 -6
- data/rbi/lithic/resources/financial_accounts/statements.rbi +16 -9
- data/rbi/lithic/resources/financial_accounts.rbi +40 -24
- data/rbi/lithic/resources/management_operations.rbi +32 -20
- data/rbi/lithic/resources/payments.rbi +63 -37
- data/rbi/lithic/resources/reports/settlement/network_totals.rbi +21 -8
- data/rbi/lithic/resources/reports/settlement.rbi +16 -7
- data/rbi/lithic/resources/reports.rbi +2 -1
- data/rbi/lithic/resources/responder_endpoints.rbi +20 -16
- data/rbi/lithic/resources/three_ds/authentication.rbi +30 -13
- data/rbi/lithic/resources/three_ds/decisioning.rbi +16 -11
- data/rbi/lithic/resources/three_ds.rbi +2 -1
- data/rbi/lithic/resources/tokenization_decisioning.rbi +14 -6
- data/rbi/lithic/resources/tokenizations.rbi +73 -32
- data/rbi/lithic/resources/transactions/enhanced_commercial_data.rbi +11 -4
- data/rbi/lithic/resources/transactions/events/enhanced_commercial_data.rbi +9 -4
- data/rbi/lithic/resources/transactions/events.rbi +7 -2
- data/rbi/lithic/resources/transactions.rbi +78 -37
- data/rbi/lithic/resources/transfers.rbi +7 -5
- data/sig/lithic/client.rbs +1 -1
- 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/request_parameters.rbs +3 -1
- 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/account.rbs +17 -25
- data/sig/lithic/models/account_holder.rbs +86 -100
- data/sig/lithic/models/account_holder_create_params.rbs +35 -47
- data/sig/lithic/models/account_holder_create_response.rbs +5 -7
- data/sig/lithic/models/account_holder_list_documents_params.rbs +0 -2
- data/sig/lithic/models/account_holder_list_documents_response.rbs +4 -8
- data/sig/lithic/models/account_holder_list_params.rbs +0 -2
- data/sig/lithic/models/account_holder_retrieve_document_params.rbs +0 -2
- data/sig/lithic/models/account_holder_retrieve_params.rbs +0 -2
- data/sig/lithic/models/account_holder_simulate_enrollment_document_review_params.rbs +0 -2
- data/sig/lithic/models/account_holder_simulate_enrollment_review_params.rbs +6 -8
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +15 -31
- data/sig/lithic/models/account_holder_update_params.rbs +49 -73
- data/sig/lithic/models/account_holder_update_response.rbs +16 -36
- data/sig/lithic/models/account_holder_upload_document_params.rbs +0 -2
- data/sig/lithic/models/account_list_params.rbs +0 -2
- data/sig/lithic/models/account_retrieve_params.rbs +0 -2
- data/sig/lithic/models/account_retrieve_spend_limits_params.rbs +0 -2
- data/sig/lithic/models/account_spend_limits.rbs +13 -21
- data/sig/lithic/models/account_update_params.rbs +5 -9
- data/sig/lithic/models/address.rbs +0 -2
- data/sig/lithic/models/address_update.rbs +0 -2
- data/sig/lithic/models/aggregate_balance.rbs +4 -6
- data/sig/lithic/models/aggregate_balance_list_params.rbs +0 -2
- data/sig/lithic/models/api_status.rbs +0 -2
- data/sig/lithic/models/auth_rules/auth_rule.rbs +4 -6
- data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +12 -14
- data/sig/lithic/models/auth_rules/conditional_block_parameters.rbs +3 -5
- data/sig/lithic/models/auth_rules/v2/backtest_create_params.rbs +0 -2
- data/sig/lithic/models/auth_rules/v2/backtest_create_response.rbs +0 -2
- data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +22 -36
- data/sig/lithic/models/auth_rules/v2/backtest_retrieve_params.rbs +0 -2
- data/sig/lithic/models/auth_rules/v2_apply_params.rbs +0 -2
- data/sig/lithic/models/auth_rules/v2_apply_response.rbs +6 -20
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +7 -13
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +6 -20
- data/sig/lithic/models/auth_rules/v2_delete_params.rbs +0 -2
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +7 -13
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +6 -20
- data/sig/lithic/models/auth_rules/v2_list_params.rbs +0 -2
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +6 -20
- data/sig/lithic/models/auth_rules/v2_promote_params.rbs +0 -2
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +6 -20
- data/sig/lithic/models/auth_rules/v2_report_params.rbs +0 -2
- data/sig/lithic/models/auth_rules/v2_report_response.rbs +0 -2
- data/sig/lithic/models/auth_rules/v2_retrieve_params.rbs +0 -2
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +6 -20
- data/sig/lithic/models/auth_rules/v2_update_params.rbs +0 -2
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +6 -20
- data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +11 -15
- data/sig/lithic/models/auth_stream_enrollment_retrieve_secret_params.rbs +0 -2
- data/sig/lithic/models/auth_stream_enrollment_rotate_secret_params.rbs +0 -2
- data/sig/lithic/models/auth_stream_secret.rbs +0 -2
- data/sig/lithic/models/balance.rbs +4 -6
- data/sig/lithic/models/balance_list_params.rbs +0 -2
- data/sig/lithic/models/book_transfer_create_params.rbs +0 -2
- data/sig/lithic/models/book_transfer_list_params.rbs +0 -2
- data/sig/lithic/models/book_transfer_response.rbs +23 -27
- data/sig/lithic/models/book_transfer_retrieve_params.rbs +0 -2
- data/sig/lithic/models/book_transfer_reverse_params.rbs +0 -2
- data/sig/lithic/models/card.rbs +0 -2
- data/sig/lithic/models/card_convert_physical_params.rbs +7 -9
- data/sig/lithic/models/card_create_params.rbs +9 -11
- data/sig/lithic/models/card_embed_params.rbs +0 -2
- data/sig/lithic/models/card_list_params.rbs +6 -2
- data/sig/lithic/models/card_program.rbs +0 -2
- data/sig/lithic/models/card_program_list_params.rbs +0 -2
- data/sig/lithic/models/card_program_retrieve_params.rbs +0 -2
- data/sig/lithic/models/card_provision_params.rbs +0 -2
- data/sig/lithic/models/card_provision_response.rbs +0 -2
- data/sig/lithic/models/card_reissue_params.rbs +9 -11
- data/sig/lithic/models/card_renew_params.rbs +7 -9
- data/sig/lithic/models/card_retrieve_params.rbs +0 -2
- data/sig/lithic/models/card_retrieve_spend_limits_params.rbs +0 -2
- data/sig/lithic/models/card_search_by_pan_params.rbs +0 -2
- data/sig/lithic/models/card_spend_limits.rbs +13 -21
- data/sig/lithic/models/card_update_params.rbs +0 -2
- data/sig/lithic/models/cards/aggregate_balance_list_params.rbs +0 -2
- data/sig/lithic/models/cards/aggregate_balance_list_response.rbs +0 -2
- data/sig/lithic/models/cards/balance_list_params.rbs +0 -2
- data/sig/lithic/models/cards/balance_list_response.rbs +0 -2
- data/sig/lithic/models/cards/financial_transaction_list_params.rbs +0 -2
- data/sig/lithic/models/cards/financial_transaction_retrieve_params.rbs +0 -2
- data/sig/lithic/models/carrier.rbs +0 -2
- data/sig/lithic/models/client_api_status_params.rbs +0 -2
- data/sig/lithic/models/credit_products/extended_credit.rbs +0 -2
- data/sig/lithic/models/credit_products/extended_credit_retrieve_params.rbs +0 -2
- data/sig/lithic/models/credit_products/prime_rate_create_params.rbs +0 -2
- data/sig/lithic/models/credit_products/prime_rate_retrieve_params.rbs +0 -2
- data/sig/lithic/models/credit_products/prime_rate_retrieve_response.rbs +0 -4
- data/sig/lithic/models/digital_card_art.rbs +4 -6
- data/sig/lithic/models/digital_card_art_list_params.rbs +0 -2
- data/sig/lithic/models/digital_card_art_retrieve_params.rbs +0 -2
- data/sig/lithic/models/dispute.rbs +12 -14
- data/sig/lithic/models/dispute_create_params.rbs +0 -2
- data/sig/lithic/models/dispute_delete_evidence_params.rbs +0 -2
- data/sig/lithic/models/dispute_delete_params.rbs +0 -2
- data/sig/lithic/models/dispute_evidence.rbs +4 -6
- data/sig/lithic/models/dispute_initiate_evidence_upload_params.rbs +0 -2
- data/sig/lithic/models/dispute_list_evidences_params.rbs +0 -2
- data/sig/lithic/models/dispute_list_params.rbs +0 -2
- data/sig/lithic/models/dispute_retrieve_evidence_params.rbs +0 -2
- data/sig/lithic/models/dispute_retrieve_params.rbs +0 -2
- data/sig/lithic/models/dispute_update_params.rbs +0 -2
- data/sig/lithic/models/document.rbs +19 -23
- data/sig/lithic/models/event.rbs +6 -6
- data/sig/lithic/models/event_list_attempts_params.rbs +0 -2
- data/sig/lithic/models/event_list_params.rbs +8 -8
- data/sig/lithic/models/event_retrieve_params.rbs +0 -2
- data/sig/lithic/models/event_subscription.rbs +6 -6
- data/sig/lithic/models/events/event_subscription_resend_params.rbs +0 -2
- data/sig/lithic/models/events/subscription_create_params.rbs +8 -8
- data/sig/lithic/models/events/subscription_delete_params.rbs +0 -2
- data/sig/lithic/models/events/subscription_list_attempts_params.rbs +0 -2
- data/sig/lithic/models/events/subscription_list_params.rbs +0 -2
- data/sig/lithic/models/events/subscription_recover_params.rbs +0 -2
- data/sig/lithic/models/events/subscription_replay_missing_params.rbs +0 -2
- data/sig/lithic/models/events/subscription_retrieve_params.rbs +0 -2
- data/sig/lithic/models/events/subscription_retrieve_secret_params.rbs +0 -2
- data/sig/lithic/models/events/subscription_retrieve_secret_response.rbs +0 -2
- data/sig/lithic/models/events/subscription_rotate_secret_params.rbs +0 -2
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -2
- data/sig/lithic/models/events/subscription_update_params.rbs +8 -8
- data/sig/lithic/models/external_bank_account_address.rbs +0 -2
- data/sig/lithic/models/external_bank_account_create_params.rbs +5 -7
- data/sig/lithic/models/external_bank_account_create_response.rbs +5 -7
- data/sig/lithic/models/external_bank_account_list_params.rbs +18 -20
- data/sig/lithic/models/external_bank_account_list_response.rbs +5 -7
- data/sig/lithic/models/external_bank_account_retrieve_params.rbs +0 -2
- data/sig/lithic/models/external_bank_account_retrieve_response.rbs +5 -7
- data/sig/lithic/models/external_bank_account_retry_micro_deposits_params.rbs +0 -2
- data/sig/lithic/models/external_bank_account_retry_micro_deposits_response.rbs +5 -7
- data/sig/lithic/models/external_bank_account_retry_prenote_params.rbs +0 -2
- data/sig/lithic/models/external_bank_account_retry_prenote_response.rbs +5 -7
- data/sig/lithic/models/external_bank_account_update_params.rbs +5 -7
- data/sig/lithic/models/external_bank_account_update_response.rbs +5 -7
- data/sig/lithic/models/external_bank_accounts/micro_deposit_create_params.rbs +0 -2
- data/sig/lithic/models/external_bank_accounts/micro_deposit_create_response.rbs +5 -7
- data/sig/lithic/models/external_payment.rbs +31 -35
- data/sig/lithic/models/external_payment_cancel_params.rbs +0 -2
- data/sig/lithic/models/external_payment_create_params.rbs +0 -2
- data/sig/lithic/models/external_payment_list_params.rbs +0 -2
- data/sig/lithic/models/external_payment_release_params.rbs +0 -2
- data/sig/lithic/models/external_payment_retrieve_params.rbs +0 -2
- data/sig/lithic/models/external_payment_reverse_params.rbs +0 -2
- data/sig/lithic/models/external_payment_settle_params.rbs +0 -2
- data/sig/lithic/models/financial_account.rbs +23 -27
- data/sig/lithic/models/financial_account_create_params.rbs +0 -2
- data/sig/lithic/models/financial_account_list_params.rbs +0 -2
- data/sig/lithic/models/financial_account_retrieve_params.rbs +0 -2
- data/sig/lithic/models/financial_account_update_params.rbs +0 -2
- data/sig/lithic/models/financial_account_update_status_params.rbs +0 -2
- data/sig/lithic/models/financial_accounts/balance_list_params.rbs +0 -2
- data/sig/lithic/models/financial_accounts/balance_list_response.rbs +0 -2
- data/sig/lithic/models/financial_accounts/credit_configuration_retrieve_params.rbs +0 -2
- data/sig/lithic/models/financial_accounts/credit_configuration_update_params.rbs +0 -2
- data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +8 -10
- data/sig/lithic/models/financial_accounts/financial_transaction_list_params.rbs +0 -2
- data/sig/lithic/models/financial_accounts/financial_transaction_retrieve_params.rbs +0 -2
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +67 -103
- data/sig/lithic/models/financial_accounts/loan_tape_list_params.rbs +0 -2
- data/sig/lithic/models/financial_accounts/loan_tape_retrieve_params.rbs +0 -2
- data/sig/lithic/models/financial_accounts/statement.rbs +47 -67
- data/sig/lithic/models/financial_accounts/statement_list_params.rbs +0 -2
- data/sig/lithic/models/financial_accounts/statement_retrieve_params.rbs +0 -2
- data/sig/lithic/models/financial_accounts/statements/line_item_list_params.rbs +0 -2
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +13 -15
- data/sig/lithic/models/financial_accounts/statements.rbs +3 -8
- data/sig/lithic/models/financial_transaction.rbs +27 -31
- data/sig/lithic/models/kyb.rbs +30 -40
- data/sig/lithic/models/kyb_business_entity.rbs +3 -7
- data/sig/lithic/models/kyc.rbs +10 -14
- data/sig/lithic/models/kyc_exempt.rbs +11 -13
- data/sig/lithic/models/management_operation_create_params.rbs +0 -2
- data/sig/lithic/models/management_operation_list_params.rbs +0 -2
- data/sig/lithic/models/management_operation_retrieve_params.rbs +0 -2
- data/sig/lithic/models/management_operation_reverse_params.rbs +0 -2
- data/sig/lithic/models/management_operation_transaction.rbs +34 -40
- data/sig/lithic/models/message_attempt.rbs +4 -6
- data/sig/lithic/models/non_pci_card.rbs +27 -31
- data/sig/lithic/models/payment.rbs +48 -54
- data/sig/lithic/models/payment_create_params.rbs +7 -13
- data/sig/lithic/models/payment_create_response.rbs +4 -6
- data/sig/lithic/models/payment_list_params.rbs +0 -2
- data/sig/lithic/models/payment_retrieve_params.rbs +0 -2
- data/sig/lithic/models/payment_retry_params.rbs +0 -2
- data/sig/lithic/models/payment_retry_response.rbs +4 -6
- data/sig/lithic/models/payment_simulate_action_params.rbs +0 -2
- data/sig/lithic/models/payment_simulate_action_response.rbs +0 -2
- data/sig/lithic/models/payment_simulate_receipt_params.rbs +0 -2
- data/sig/lithic/models/payment_simulate_receipt_response.rbs +0 -2
- data/sig/lithic/models/payment_simulate_release_params.rbs +0 -2
- data/sig/lithic/models/payment_simulate_release_response.rbs +0 -2
- data/sig/lithic/models/payment_simulate_return_params.rbs +0 -2
- data/sig/lithic/models/payment_simulate_return_response.rbs +0 -2
- data/sig/lithic/models/reports/settlement/network_total_list_params.rbs +0 -2
- data/sig/lithic/models/reports/settlement/network_total_list_response.rbs +0 -4
- data/sig/lithic/models/reports/settlement/network_total_retrieve_params.rbs +0 -2
- data/sig/lithic/models/reports/settlement/network_total_retrieve_response.rbs +0 -4
- data/sig/lithic/models/reports/settlement_list_details_params.rbs +0 -2
- data/sig/lithic/models/reports/settlement_summary_params.rbs +0 -2
- data/sig/lithic/models/required_document.rbs +0 -2
- data/sig/lithic/models/responder_endpoint_check_status_params.rbs +0 -2
- data/sig/lithic/models/responder_endpoint_create_params.rbs +0 -2
- data/sig/lithic/models/responder_endpoint_create_response.rbs +0 -2
- data/sig/lithic/models/responder_endpoint_delete_params.rbs +0 -2
- data/sig/lithic/models/responder_endpoint_status.rbs +0 -2
- data/sig/lithic/models/settlement_detail.rbs +11 -15
- data/sig/lithic/models/settlement_report.rbs +3 -5
- data/sig/lithic/models/settlement_summary_details.rbs +6 -8
- data/sig/lithic/models/shipping_address.rbs +0 -2
- data/sig/lithic/models/three_ds/authentication_retrieve_params.rbs +0 -2
- data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +4 -22
- data/sig/lithic/models/three_ds/authentication_simulate_otp_entry_params.rbs +0 -2
- data/sig/lithic/models/three_ds/authentication_simulate_params.rbs +6 -12
- data/sig/lithic/models/three_ds/authentication_simulate_response.rbs +0 -2
- data/sig/lithic/models/three_ds/challenge_response.rbs +0 -2
- data/sig/lithic/models/three_ds/decisioning_challenge_response_params.rbs +0 -2
- data/sig/lithic/models/three_ds/decisioning_retrieve_secret_params.rbs +0 -2
- data/sig/lithic/models/three_ds/decisioning_retrieve_secret_response.rbs +0 -2
- data/sig/lithic/models/three_ds/decisioning_rotate_secret_params.rbs +0 -2
- data/sig/lithic/models/tokenization.rbs +29 -33
- data/sig/lithic/models/tokenization_activate_params.rbs +0 -2
- data/sig/lithic/models/tokenization_deactivate_params.rbs +0 -2
- data/sig/lithic/models/tokenization_decisioning_retrieve_secret_params.rbs +0 -2
- data/sig/lithic/models/tokenization_decisioning_rotate_secret_params.rbs +0 -2
- data/sig/lithic/models/tokenization_decisioning_rotate_secret_response.rbs +0 -2
- data/sig/lithic/models/tokenization_list_params.rbs +0 -2
- data/sig/lithic/models/tokenization_pause_params.rbs +0 -2
- data/sig/lithic/models/tokenization_resend_activation_code_params.rbs +0 -2
- data/sig/lithic/models/tokenization_retrieve_params.rbs +0 -2
- data/sig/lithic/models/tokenization_retrieve_response.rbs +4 -6
- data/sig/lithic/models/tokenization_secret.rbs +0 -2
- data/sig/lithic/models/tokenization_simulate_params.rbs +0 -2
- data/sig/lithic/models/tokenization_simulate_response.rbs +5 -7
- data/sig/lithic/models/tokenization_unpause_params.rbs +0 -2
- data/sig/lithic/models/tokenization_update_digital_card_art_params.rbs +0 -2
- data/sig/lithic/models/tokenization_update_digital_card_art_response.rbs +4 -6
- data/sig/lithic/models/transaction.rbs +206 -220
- data/sig/lithic/models/transaction_expire_authorization_params.rbs +0 -2
- data/sig/lithic/models/transaction_list_params.rbs +0 -2
- data/sig/lithic/models/transaction_retrieve_params.rbs +0 -2
- data/sig/lithic/models/transaction_simulate_authorization_advice_params.rbs +0 -2
- data/sig/lithic/models/transaction_simulate_authorization_advice_response.rbs +0 -2
- data/sig/lithic/models/transaction_simulate_authorization_params.rbs +0 -2
- data/sig/lithic/models/transaction_simulate_authorization_response.rbs +0 -2
- data/sig/lithic/models/transaction_simulate_clearing_params.rbs +0 -2
- data/sig/lithic/models/transaction_simulate_clearing_response.rbs +0 -2
- data/sig/lithic/models/transaction_simulate_credit_authorization_params.rbs +0 -2
- data/sig/lithic/models/transaction_simulate_credit_authorization_response.rbs +0 -2
- data/sig/lithic/models/transaction_simulate_return_params.rbs +0 -2
- data/sig/lithic/models/transaction_simulate_return_response.rbs +0 -2
- data/sig/lithic/models/transaction_simulate_return_reversal_params.rbs +0 -2
- data/sig/lithic/models/transaction_simulate_return_reversal_response.rbs +0 -2
- data/sig/lithic/models/transaction_simulate_void_params.rbs +0 -2
- data/sig/lithic/models/transaction_simulate_void_response.rbs +0 -2
- data/sig/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rbs +0 -2
- data/sig/lithic/models/transactions/enhanced_commercial_data_retrieve_response.rbs +3 -5
- data/sig/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rbs +0 -2
- data/sig/lithic/models/transactions/events/enhanced_data.rbs +42 -56
- data/sig/lithic/models/transfer.rbs +40 -54
- data/sig/lithic/models/transfer_create_params.rbs +0 -2
- data/sig/lithic/request_options.rbs +1 -1
- data/sig/lithic/resources/account_holders.rbs +18 -18
- data/sig/lithic/resources/accounts.rbs +5 -5
- data/sig/lithic/resources/aggregate_balances.rbs +1 -1
- data/sig/lithic/resources/auth_rules/v2/backtests.rbs +1 -1
- data/sig/lithic/resources/auth_stream_enrollment.rbs +1 -1
- data/sig/lithic/resources/balances.rbs +1 -1
- data/sig/lithic/resources/book_transfers.rbs +4 -4
- data/sig/lithic/resources/card_programs.rbs +2 -2
- data/sig/lithic/resources/cards/financial_transactions.rbs +2 -2
- data/sig/lithic/resources/cards.rbs +18 -17
- data/sig/lithic/resources/credit_products/extended_credit.rbs +1 -1
- data/sig/lithic/resources/digital_card_art.rbs +2 -2
- data/sig/lithic/resources/disputes.rbs +9 -9
- data/sig/lithic/resources/events/subscriptions.rbs +7 -7
- data/sig/lithic/resources/events.rbs +4 -4
- data/sig/lithic/resources/external_bank_accounts.rbs +5 -5
- data/sig/lithic/resources/external_payments.rbs +7 -7
- data/sig/lithic/resources/financial_accounts/credit_configuration.rbs +2 -2
- data/sig/lithic/resources/financial_accounts/financial_transactions.rbs +2 -2
- data/sig/lithic/resources/financial_accounts/loan_tapes.rbs +2 -2
- data/sig/lithic/resources/financial_accounts/statements/line_items.rbs +1 -1
- data/sig/lithic/resources/financial_accounts/statements.rbs +2 -2
- data/sig/lithic/resources/financial_accounts.rbs +5 -5
- data/sig/lithic/resources/management_operations.rbs +4 -4
- data/sig/lithic/resources/payments.rbs +3 -3
- data/sig/lithic/resources/reports/settlement.rbs +2 -2
- data/sig/lithic/resources/responder_endpoints.rbs +1 -1
- data/sig/lithic/resources/three_ds/authentication.rbs +2 -2
- data/sig/lithic/resources/tokenization_decisioning.rbs +1 -1
- data/sig/lithic/resources/tokenizations.rbs +1 -1
- data/sig/lithic/resources/transactions/events/enhanced_commercial_data.rbs +1 -1
- data/sig/lithic/resources/transactions.rbs +2 -2
- data/sig/lithic/resources/transfers.rbs +1 -1
- metadata +2 -2
@@ -3,6 +3,9 @@
|
|
3
3
|
module Lithic
|
4
4
|
module Models
|
5
5
|
class Transaction < Lithic::Internal::Type::BaseModel
|
6
|
+
OrHash =
|
7
|
+
T.type_alias { T.any(Lithic::Transaction, Lithic::Internal::AnyHash) }
|
8
|
+
|
6
9
|
# Globally unique identifier.
|
7
10
|
sig { returns(String) }
|
8
11
|
attr_accessor :token
|
@@ -28,10 +31,10 @@ module Lithic
|
|
28
31
|
sig { returns(Integer) }
|
29
32
|
attr_accessor :amount
|
30
33
|
|
31
|
-
sig { returns(Lithic::
|
34
|
+
sig { returns(Lithic::Transaction::Amounts) }
|
32
35
|
attr_reader :amounts
|
33
36
|
|
34
|
-
sig { params(amounts:
|
37
|
+
sig { params(amounts: Lithic::Transaction::Amounts::OrHash).void }
|
35
38
|
attr_writer :amounts
|
36
39
|
|
37
40
|
# The authorization amount of the transaction in the anticipated settlement
|
@@ -44,24 +47,24 @@ module Lithic
|
|
44
47
|
sig { returns(T.nilable(String)) }
|
45
48
|
attr_accessor :authorization_code
|
46
49
|
|
47
|
-
sig { returns(T.nilable(Lithic::
|
50
|
+
sig { returns(T.nilable(Lithic::Transaction::Avs)) }
|
48
51
|
attr_reader :avs
|
49
52
|
|
50
|
-
sig { params(avs: T.nilable(
|
53
|
+
sig { params(avs: T.nilable(Lithic::Transaction::Avs::OrHash)).void }
|
51
54
|
attr_writer :avs
|
52
55
|
|
53
56
|
# Token for the card used in this transaction.
|
54
57
|
sig { returns(String) }
|
55
58
|
attr_accessor :card_token
|
56
59
|
|
57
|
-
sig { returns(T.nilable(Lithic::
|
60
|
+
sig { returns(T.nilable(Lithic::Transaction::CardholderAuthentication)) }
|
58
61
|
attr_reader :cardholder_authentication
|
59
62
|
|
60
63
|
sig do
|
61
64
|
params(
|
62
|
-
cardholder_authentication:
|
63
|
-
|
64
|
-
|
65
|
+
cardholder_authentication:
|
66
|
+
T.nilable(Lithic::Transaction::CardholderAuthentication::OrHash)
|
67
|
+
).void
|
65
68
|
end
|
66
69
|
attr_writer :cardholder_authentication
|
67
70
|
|
@@ -69,10 +72,10 @@ module Lithic
|
|
69
72
|
sig { returns(Time) }
|
70
73
|
attr_accessor :created
|
71
74
|
|
72
|
-
sig { returns(Lithic::
|
75
|
+
sig { returns(Lithic::Transaction::Merchant) }
|
73
76
|
attr_reader :merchant
|
74
77
|
|
75
|
-
sig { params(merchant:
|
78
|
+
sig { params(merchant: Lithic::Transaction::Merchant::OrHash).void }
|
76
79
|
attr_writer :merchant
|
77
80
|
|
78
81
|
# Analogous to the 'amount', but in the merchant currency.
|
@@ -87,10 +90,9 @@ module Lithic
|
|
87
90
|
sig { returns(String) }
|
88
91
|
attr_accessor :merchant_currency
|
89
92
|
|
90
|
-
# Card network of the authorization.
|
91
|
-
#
|
92
|
-
|
93
|
-
sig { returns(T.nilable(Lithic::Models::Transaction::Network::TaggedSymbol)) }
|
93
|
+
# Card network of the authorization. Value is `UNKNOWN` when Lithic cannot
|
94
|
+
# determine the network code from the upstream provider.
|
95
|
+
sig { returns(T.nilable(Lithic::Transaction::Network::TaggedSymbol)) }
|
94
96
|
attr_accessor :network
|
95
97
|
|
96
98
|
# Network-provided score assessing risk level associated with a given
|
@@ -101,13 +103,13 @@ module Lithic
|
|
101
103
|
sig { returns(T.nilable(Integer)) }
|
102
104
|
attr_accessor :network_risk_score
|
103
105
|
|
104
|
-
sig { returns(Lithic::
|
106
|
+
sig { returns(Lithic::Transaction::Pos) }
|
105
107
|
attr_reader :pos
|
106
108
|
|
107
|
-
sig { params(pos:
|
109
|
+
sig { params(pos: Lithic::Transaction::Pos::OrHash).void }
|
108
110
|
attr_writer :pos
|
109
111
|
|
110
|
-
sig { returns(Lithic::
|
112
|
+
sig { returns(Lithic::Transaction::Result::TaggedSymbol) }
|
111
113
|
attr_accessor :result
|
112
114
|
|
113
115
|
# The settled amount of the transaction in the settlement currency.
|
@@ -115,15 +117,16 @@ module Lithic
|
|
115
117
|
attr_accessor :settled_amount
|
116
118
|
|
117
119
|
# Status of the transaction.
|
118
|
-
sig { returns(Lithic::
|
120
|
+
sig { returns(Lithic::Transaction::Status::TaggedSymbol) }
|
119
121
|
attr_accessor :status
|
120
122
|
|
121
|
-
sig { returns(T.nilable(Lithic::
|
123
|
+
sig { returns(T.nilable(Lithic::Transaction::TokenInfo)) }
|
122
124
|
attr_reader :token_info
|
123
125
|
|
124
126
|
sig do
|
125
|
-
params(
|
126
|
-
.
|
127
|
+
params(
|
128
|
+
token_info: T.nilable(Lithic::Transaction::TokenInfo::OrHash)
|
129
|
+
).void
|
127
130
|
end
|
128
131
|
attr_writer :token_info
|
129
132
|
|
@@ -131,10 +134,10 @@ module Lithic
|
|
131
134
|
sig { returns(Time) }
|
132
135
|
attr_accessor :updated
|
133
136
|
|
134
|
-
sig { returns(T.nilable(T::Array[Lithic::
|
137
|
+
sig { returns(T.nilable(T::Array[Lithic::Transaction::Event])) }
|
135
138
|
attr_reader :events
|
136
139
|
|
137
|
-
sig { params(events: T::Array[
|
140
|
+
sig { params(events: T::Array[Lithic::Transaction::Event::OrHash]).void }
|
138
141
|
attr_writer :events
|
139
142
|
|
140
143
|
sig do
|
@@ -144,28 +147,28 @@ module Lithic
|
|
144
147
|
acquirer_fee: T.nilable(Integer),
|
145
148
|
acquirer_reference_number: T.nilable(String),
|
146
149
|
amount: Integer,
|
147
|
-
amounts:
|
150
|
+
amounts: Lithic::Transaction::Amounts::OrHash,
|
148
151
|
authorization_amount: T.nilable(Integer),
|
149
152
|
authorization_code: T.nilable(String),
|
150
|
-
avs: T.nilable(
|
153
|
+
avs: T.nilable(Lithic::Transaction::Avs::OrHash),
|
151
154
|
card_token: String,
|
152
|
-
cardholder_authentication:
|
155
|
+
cardholder_authentication:
|
156
|
+
T.nilable(Lithic::Transaction::CardholderAuthentication::OrHash),
|
153
157
|
created: Time,
|
154
|
-
merchant:
|
158
|
+
merchant: Lithic::Transaction::Merchant::OrHash,
|
155
159
|
merchant_amount: T.nilable(Integer),
|
156
160
|
merchant_authorization_amount: T.nilable(Integer),
|
157
161
|
merchant_currency: String,
|
158
|
-
network: T.nilable(Lithic::
|
162
|
+
network: T.nilable(Lithic::Transaction::Network::OrSymbol),
|
159
163
|
network_risk_score: T.nilable(Integer),
|
160
|
-
pos:
|
161
|
-
result: Lithic::
|
164
|
+
pos: Lithic::Transaction::Pos::OrHash,
|
165
|
+
result: Lithic::Transaction::Result::OrSymbol,
|
162
166
|
settled_amount: Integer,
|
163
|
-
status: Lithic::
|
164
|
-
token_info: T.nilable(
|
167
|
+
status: Lithic::Transaction::Status::OrSymbol,
|
168
|
+
token_info: T.nilable(Lithic::Transaction::TokenInfo::OrHash),
|
165
169
|
updated: Time,
|
166
|
-
events: T::Array[
|
167
|
-
)
|
168
|
-
.returns(T.attached_class)
|
170
|
+
events: T::Array[Lithic::Transaction::Event::OrHash]
|
171
|
+
).returns(T.attached_class)
|
169
172
|
end
|
170
173
|
def self.new(
|
171
174
|
# Globally unique identifier.
|
@@ -203,9 +206,8 @@ module Lithic
|
|
203
206
|
merchant_authorization_amount:,
|
204
207
|
# 3-character alphabetic ISO 4217 code for the local currency of the transaction.
|
205
208
|
merchant_currency:,
|
206
|
-
# Card network of the authorization.
|
207
|
-
#
|
208
|
-
# 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.
|
209
211
|
network:,
|
210
212
|
# Network-provided score assessing risk level associated with a given
|
211
213
|
# authorization. Scores are on a range of 0-999, with 0 representing the lowest
|
@@ -223,95 +225,117 @@ module Lithic
|
|
223
225
|
# Date and time when the transaction last updated. UTC time zone.
|
224
226
|
updated:,
|
225
227
|
events: nil
|
226
|
-
)
|
228
|
+
)
|
229
|
+
end
|
230
|
+
|
227
231
|
sig do
|
228
|
-
override
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
232
|
+
override.returns(
|
233
|
+
{
|
234
|
+
token: String,
|
235
|
+
account_token: String,
|
236
|
+
acquirer_fee: T.nilable(Integer),
|
237
|
+
acquirer_reference_number: T.nilable(String),
|
238
|
+
amount: Integer,
|
239
|
+
amounts: Lithic::Transaction::Amounts,
|
240
|
+
authorization_amount: T.nilable(Integer),
|
241
|
+
authorization_code: T.nilable(String),
|
242
|
+
avs: T.nilable(Lithic::Transaction::Avs),
|
243
|
+
card_token: String,
|
244
|
+
cardholder_authentication:
|
245
|
+
T.nilable(Lithic::Transaction::CardholderAuthentication),
|
246
|
+
created: Time,
|
247
|
+
merchant: Lithic::Transaction::Merchant,
|
248
|
+
merchant_amount: T.nilable(Integer),
|
249
|
+
merchant_authorization_amount: T.nilable(Integer),
|
250
|
+
merchant_currency: String,
|
251
|
+
network: T.nilable(Lithic::Transaction::Network::TaggedSymbol),
|
252
|
+
network_risk_score: T.nilable(Integer),
|
253
|
+
pos: Lithic::Transaction::Pos,
|
254
|
+
result: Lithic::Transaction::Result::TaggedSymbol,
|
255
|
+
settled_amount: Integer,
|
256
|
+
status: Lithic::Transaction::Status::TaggedSymbol,
|
257
|
+
token_info: T.nilable(Lithic::Transaction::TokenInfo),
|
258
|
+
updated: Time,
|
259
|
+
events: T::Array[Lithic::Transaction::Event]
|
260
|
+
}
|
261
|
+
)
|
262
|
+
end
|
263
|
+
def to_hash
|
258
264
|
end
|
259
|
-
def to_hash; end
|
260
265
|
|
261
266
|
class Amounts < Lithic::Internal::Type::BaseModel
|
262
|
-
|
267
|
+
OrHash =
|
268
|
+
T.type_alias do
|
269
|
+
T.any(Lithic::Transaction::Amounts, Lithic::Internal::AnyHash)
|
270
|
+
end
|
271
|
+
|
272
|
+
sig { returns(Lithic::Transaction::Amounts::Cardholder) }
|
263
273
|
attr_reader :cardholder
|
264
274
|
|
265
275
|
sig do
|
266
|
-
params(
|
276
|
+
params(
|
277
|
+
cardholder: Lithic::Transaction::Amounts::Cardholder::OrHash
|
278
|
+
).void
|
267
279
|
end
|
268
280
|
attr_writer :cardholder
|
269
281
|
|
270
|
-
sig { returns(Lithic::
|
282
|
+
sig { returns(Lithic::Transaction::Amounts::Hold) }
|
271
283
|
attr_reader :hold
|
272
284
|
|
273
|
-
sig { params(hold:
|
285
|
+
sig { params(hold: Lithic::Transaction::Amounts::Hold::OrHash).void }
|
274
286
|
attr_writer :hold
|
275
287
|
|
276
|
-
sig { returns(Lithic::
|
288
|
+
sig { returns(Lithic::Transaction::Amounts::Merchant) }
|
277
289
|
attr_reader :merchant
|
278
290
|
|
279
|
-
sig
|
291
|
+
sig do
|
292
|
+
params(merchant: Lithic::Transaction::Amounts::Merchant::OrHash).void
|
293
|
+
end
|
280
294
|
attr_writer :merchant
|
281
295
|
|
282
|
-
sig { returns(Lithic::
|
296
|
+
sig { returns(Lithic::Transaction::Amounts::Settlement) }
|
283
297
|
attr_reader :settlement
|
284
298
|
|
285
299
|
sig do
|
286
|
-
params(
|
300
|
+
params(
|
301
|
+
settlement: Lithic::Transaction::Amounts::Settlement::OrHash
|
302
|
+
).void
|
287
303
|
end
|
288
304
|
attr_writer :settlement
|
289
305
|
|
290
306
|
sig do
|
291
307
|
params(
|
292
|
-
cardholder:
|
293
|
-
hold:
|
294
|
-
merchant:
|
295
|
-
settlement:
|
296
|
-
)
|
297
|
-
|
308
|
+
cardholder: Lithic::Transaction::Amounts::Cardholder::OrHash,
|
309
|
+
hold: Lithic::Transaction::Amounts::Hold::OrHash,
|
310
|
+
merchant: Lithic::Transaction::Amounts::Merchant::OrHash,
|
311
|
+
settlement: Lithic::Transaction::Amounts::Settlement::OrHash
|
312
|
+
).returns(T.attached_class)
|
313
|
+
end
|
314
|
+
def self.new(cardholder:, hold:, merchant:, settlement:)
|
298
315
|
end
|
299
|
-
def self.new(cardholder:, hold:, merchant:, settlement:); end
|
300
316
|
|
301
317
|
sig do
|
302
|
-
override
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
318
|
+
override.returns(
|
319
|
+
{
|
320
|
+
cardholder: Lithic::Transaction::Amounts::Cardholder,
|
321
|
+
hold: Lithic::Transaction::Amounts::Hold,
|
322
|
+
merchant: Lithic::Transaction::Amounts::Merchant,
|
323
|
+
settlement: Lithic::Transaction::Amounts::Settlement
|
324
|
+
}
|
325
|
+
)
|
326
|
+
end
|
327
|
+
def to_hash
|
311
328
|
end
|
312
|
-
def to_hash; end
|
313
329
|
|
314
330
|
class Cardholder < Lithic::Internal::Type::BaseModel
|
331
|
+
OrHash =
|
332
|
+
T.type_alias do
|
333
|
+
T.any(
|
334
|
+
Lithic::Transaction::Amounts::Cardholder,
|
335
|
+
Lithic::Internal::AnyHash
|
336
|
+
)
|
337
|
+
end
|
338
|
+
|
315
339
|
# The estimated settled amount of the transaction in the cardholder billing
|
316
340
|
# currency.
|
317
341
|
sig { returns(Integer) }
|
@@ -326,7 +350,13 @@ module Lithic
|
|
326
350
|
sig { returns(String) }
|
327
351
|
attr_accessor :currency
|
328
352
|
|
329
|
-
sig
|
353
|
+
sig do
|
354
|
+
params(
|
355
|
+
amount: Integer,
|
356
|
+
conversion_rate: String,
|
357
|
+
currency: String
|
358
|
+
).returns(T.attached_class)
|
359
|
+
end
|
330
360
|
def self.new(
|
331
361
|
# The estimated settled amount of the transaction in the cardholder billing
|
332
362
|
# currency.
|
@@ -336,12 +366,27 @@ module Lithic
|
|
336
366
|
conversion_rate:,
|
337
367
|
# 3-character alphabetic ISO 4217 currency
|
338
368
|
currency:
|
339
|
-
)
|
340
|
-
|
341
|
-
|
369
|
+
)
|
370
|
+
end
|
371
|
+
|
372
|
+
sig do
|
373
|
+
override.returns(
|
374
|
+
{ amount: Integer, conversion_rate: String, currency: String }
|
375
|
+
)
|
376
|
+
end
|
377
|
+
def to_hash
|
378
|
+
end
|
342
379
|
end
|
343
380
|
|
344
381
|
class Hold < Lithic::Internal::Type::BaseModel
|
382
|
+
OrHash =
|
383
|
+
T.type_alias do
|
384
|
+
T.any(
|
385
|
+
Lithic::Transaction::Amounts::Hold,
|
386
|
+
Lithic::Internal::AnyHash
|
387
|
+
)
|
388
|
+
end
|
389
|
+
|
345
390
|
# The pending amount of the transaction in the anticipated settlement currency.
|
346
391
|
sig { returns(Integer) }
|
347
392
|
attr_accessor :amount
|
@@ -350,18 +395,31 @@ module Lithic
|
|
350
395
|
sig { returns(String) }
|
351
396
|
attr_accessor :currency
|
352
397
|
|
353
|
-
sig
|
398
|
+
sig do
|
399
|
+
params(amount: Integer, currency: String).returns(T.attached_class)
|
400
|
+
end
|
354
401
|
def self.new(
|
355
402
|
# The pending amount of the transaction in the anticipated settlement currency.
|
356
403
|
amount:,
|
357
404
|
# 3-character alphabetic ISO 4217 currency
|
358
405
|
currency:
|
359
|
-
)
|
360
|
-
|
361
|
-
|
406
|
+
)
|
407
|
+
end
|
408
|
+
|
409
|
+
sig { override.returns({ amount: Integer, currency: String }) }
|
410
|
+
def to_hash
|
411
|
+
end
|
362
412
|
end
|
363
413
|
|
364
414
|
class Merchant < Lithic::Internal::Type::BaseModel
|
415
|
+
OrHash =
|
416
|
+
T.type_alias do
|
417
|
+
T.any(
|
418
|
+
Lithic::Transaction::Amounts::Merchant,
|
419
|
+
Lithic::Internal::AnyHash
|
420
|
+
)
|
421
|
+
end
|
422
|
+
|
365
423
|
# The settled amount of the transaction in the merchant currency.
|
366
424
|
sig { returns(Integer) }
|
367
425
|
attr_accessor :amount
|
@@ -370,18 +428,31 @@ module Lithic
|
|
370
428
|
sig { returns(String) }
|
371
429
|
attr_accessor :currency
|
372
430
|
|
373
|
-
sig
|
431
|
+
sig do
|
432
|
+
params(amount: Integer, currency: String).returns(T.attached_class)
|
433
|
+
end
|
374
434
|
def self.new(
|
375
435
|
# The settled amount of the transaction in the merchant currency.
|
376
436
|
amount:,
|
377
437
|
# 3-character alphabetic ISO 4217 currency
|
378
438
|
currency:
|
379
|
-
)
|
380
|
-
|
381
|
-
|
439
|
+
)
|
440
|
+
end
|
441
|
+
|
442
|
+
sig { override.returns({ amount: Integer, currency: String }) }
|
443
|
+
def to_hash
|
444
|
+
end
|
382
445
|
end
|
383
446
|
|
384
447
|
class Settlement < Lithic::Internal::Type::BaseModel
|
448
|
+
OrHash =
|
449
|
+
T.type_alias do
|
450
|
+
T.any(
|
451
|
+
Lithic::Transaction::Amounts::Settlement,
|
452
|
+
Lithic::Internal::AnyHash
|
453
|
+
)
|
454
|
+
end
|
455
|
+
|
385
456
|
# The settled amount of the transaction in the settlement currency.
|
386
457
|
sig { returns(Integer) }
|
387
458
|
attr_accessor :amount
|
@@ -390,19 +461,29 @@ module Lithic
|
|
390
461
|
sig { returns(String) }
|
391
462
|
attr_accessor :currency
|
392
463
|
|
393
|
-
sig
|
464
|
+
sig do
|
465
|
+
params(amount: Integer, currency: String).returns(T.attached_class)
|
466
|
+
end
|
394
467
|
def self.new(
|
395
468
|
# The settled amount of the transaction in the settlement currency.
|
396
469
|
amount:,
|
397
470
|
# 3-character alphabetic ISO 4217 currency
|
398
471
|
currency:
|
399
|
-
)
|
400
|
-
|
401
|
-
|
472
|
+
)
|
473
|
+
end
|
474
|
+
|
475
|
+
sig { override.returns({ amount: Integer, currency: String }) }
|
476
|
+
def to_hash
|
477
|
+
end
|
402
478
|
end
|
403
479
|
end
|
404
480
|
|
405
481
|
class Avs < Lithic::Internal::Type::BaseModel
|
482
|
+
OrHash =
|
483
|
+
T.type_alias do
|
484
|
+
T.any(Lithic::Transaction::Avs, Lithic::Internal::AnyHash)
|
485
|
+
end
|
486
|
+
|
406
487
|
# Cardholder address
|
407
488
|
sig { returns(String) }
|
408
489
|
attr_accessor :address
|
@@ -411,32 +492,57 @@ module Lithic
|
|
411
492
|
sig { returns(String) }
|
412
493
|
attr_accessor :zipcode
|
413
494
|
|
414
|
-
sig
|
495
|
+
sig do
|
496
|
+
params(address: String, zipcode: String).returns(T.attached_class)
|
497
|
+
end
|
415
498
|
def self.new(
|
416
499
|
# Cardholder address
|
417
500
|
address:,
|
418
501
|
# Cardholder ZIP code
|
419
502
|
zipcode:
|
420
|
-
)
|
421
|
-
|
422
|
-
|
503
|
+
)
|
504
|
+
end
|
505
|
+
|
506
|
+
sig { override.returns({ address: String, zipcode: String }) }
|
507
|
+
def to_hash
|
508
|
+
end
|
423
509
|
end
|
424
510
|
|
425
511
|
class CardholderAuthentication < Lithic::Internal::Type::BaseModel
|
512
|
+
OrHash =
|
513
|
+
T.type_alias do
|
514
|
+
T.any(
|
515
|
+
Lithic::Transaction::CardholderAuthentication,
|
516
|
+
Lithic::Internal::AnyHash
|
517
|
+
)
|
518
|
+
end
|
519
|
+
|
426
520
|
# The 3DS version used for the authentication
|
427
521
|
sig { returns(T.nilable(String)) }
|
428
522
|
attr_accessor :three_ds_version
|
429
523
|
|
430
524
|
# Whether an acquirer exemption applied to the transaction.
|
431
|
-
sig
|
525
|
+
sig do
|
526
|
+
returns(
|
527
|
+
Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
|
528
|
+
)
|
529
|
+
end
|
432
530
|
attr_accessor :acquirer_exemption
|
433
531
|
|
434
532
|
# Indicates what the outcome of the 3DS authentication process is.
|
435
|
-
sig
|
533
|
+
sig do
|
534
|
+
returns(
|
535
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationResult::TaggedSymbol
|
536
|
+
)
|
537
|
+
end
|
436
538
|
attr_accessor :authentication_result
|
437
539
|
|
438
540
|
# Indicates which party made the 3DS authentication decision.
|
439
|
-
sig
|
541
|
+
sig do
|
542
|
+
returns(
|
543
|
+
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol
|
544
|
+
)
|
545
|
+
end
|
440
546
|
attr_accessor :decision_made_by
|
441
547
|
|
442
548
|
# Indicates whether chargeback liability shift applies to the transaction.
|
@@ -451,7 +557,11 @@ module Lithic
|
|
451
557
|
# - `TOKEN_AUTHENTICATED`: The transaction was a tokenized payment with validated
|
452
558
|
# cryptography, possibly recurring. Chargeback liability shift to the issuer
|
453
559
|
# applies.
|
454
|
-
sig
|
560
|
+
sig do
|
561
|
+
returns(
|
562
|
+
Lithic::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol
|
563
|
+
)
|
564
|
+
end
|
455
565
|
attr_accessor :liability_shift
|
456
566
|
|
457
567
|
# Unique identifier you can use to match a given 3DS authentication (available via
|
@@ -463,26 +573,59 @@ module Lithic
|
|
463
573
|
|
464
574
|
# Indicates whether a 3DS challenge flow was used, and if so, what the
|
465
575
|
# verification method was. (deprecated, use `authentication_result`)
|
466
|
-
sig
|
576
|
+
sig do
|
577
|
+
returns(
|
578
|
+
Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol
|
579
|
+
)
|
580
|
+
end
|
467
581
|
attr_accessor :verification_attempted
|
468
582
|
|
469
583
|
# Indicates whether a transaction is considered 3DS authenticated. (deprecated,
|
470
584
|
# use `authentication_result`)
|
471
|
-
sig
|
585
|
+
sig do
|
586
|
+
returns(
|
587
|
+
Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
|
588
|
+
)
|
589
|
+
end
|
472
590
|
attr_accessor :verification_result
|
473
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
|
+
|
474
610
|
sig do
|
475
611
|
params(
|
476
612
|
three_ds_version: T.nilable(String),
|
477
|
-
acquirer_exemption:
|
478
|
-
|
479
|
-
|
480
|
-
|
613
|
+
acquirer_exemption:
|
614
|
+
Lithic::Transaction::CardholderAuthentication::AcquirerExemption::OrSymbol,
|
615
|
+
authentication_result:
|
616
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationResult::OrSymbol,
|
617
|
+
decision_made_by:
|
618
|
+
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::OrSymbol,
|
619
|
+
liability_shift:
|
620
|
+
Lithic::Transaction::CardholderAuthentication::LiabilityShift::OrSymbol,
|
481
621
|
three_ds_authentication_token: T.nilable(String),
|
482
|
-
verification_attempted:
|
483
|
-
|
484
|
-
|
485
|
-
|
622
|
+
verification_attempted:
|
623
|
+
Lithic::Transaction::CardholderAuthentication::VerificationAttempted::OrSymbol,
|
624
|
+
verification_result:
|
625
|
+
Lithic::Transaction::CardholderAuthentication::VerificationResult::OrSymbol,
|
626
|
+
authentication_method:
|
627
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::OrSymbol
|
628
|
+
).returns(T.attached_class)
|
486
629
|
end
|
487
630
|
def self.new(
|
488
631
|
# The 3DS version used for the authentication
|
@@ -516,73 +659,100 @@ module Lithic
|
|
516
659
|
verification_attempted:,
|
517
660
|
# Indicates whether a transaction is considered 3DS authenticated. (deprecated,
|
518
661
|
# use `authentication_result`)
|
519
|
-
verification_result
|
520
|
-
|
662
|
+
verification_result:,
|
663
|
+
# Indicates the method used to authenticate the cardholder.
|
664
|
+
authentication_method: nil
|
665
|
+
)
|
666
|
+
end
|
667
|
+
|
521
668
|
sig do
|
522
|
-
override
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
669
|
+
override.returns(
|
670
|
+
{
|
671
|
+
three_ds_version: T.nilable(String),
|
672
|
+
acquirer_exemption:
|
673
|
+
Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol,
|
674
|
+
authentication_result:
|
675
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationResult::TaggedSymbol,
|
676
|
+
decision_made_by:
|
677
|
+
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol,
|
678
|
+
liability_shift:
|
679
|
+
Lithic::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol,
|
680
|
+
three_ds_authentication_token: T.nilable(String),
|
681
|
+
verification_attempted:
|
682
|
+
Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol,
|
683
|
+
verification_result:
|
684
|
+
Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol,
|
685
|
+
authentication_method:
|
686
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
687
|
+
}
|
688
|
+
)
|
689
|
+
end
|
690
|
+
def to_hash
|
535
691
|
end
|
536
|
-
def to_hash; end
|
537
692
|
|
538
693
|
# Whether an acquirer exemption applied to the transaction.
|
539
694
|
module AcquirerExemption
|
540
695
|
extend Lithic::Internal::Type::Enum
|
541
696
|
|
542
697
|
TaggedSymbol =
|
543
|
-
T.type_alias
|
698
|
+
T.type_alias do
|
699
|
+
T.all(
|
700
|
+
Symbol,
|
701
|
+
Lithic::Transaction::CardholderAuthentication::AcquirerExemption
|
702
|
+
)
|
703
|
+
end
|
544
704
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
545
705
|
|
546
706
|
AUTHENTICATION_OUTAGE_EXCEPTION =
|
547
707
|
T.let(
|
548
708
|
:AUTHENTICATION_OUTAGE_EXCEPTION,
|
549
|
-
Lithic::
|
709
|
+
Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
|
550
710
|
)
|
551
711
|
LOW_VALUE =
|
552
|
-
T.let(
|
712
|
+
T.let(
|
713
|
+
:LOW_VALUE,
|
714
|
+
Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
|
715
|
+
)
|
553
716
|
MERCHANT_INITIATED_TRANSACTION =
|
554
717
|
T.let(
|
555
718
|
:MERCHANT_INITIATED_TRANSACTION,
|
556
|
-
Lithic::
|
719
|
+
Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
|
557
720
|
)
|
558
721
|
NONE =
|
559
|
-
T.let(
|
722
|
+
T.let(
|
723
|
+
:NONE,
|
724
|
+
Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
|
725
|
+
)
|
560
726
|
RECURRING_PAYMENT =
|
561
727
|
T.let(
|
562
728
|
:RECURRING_PAYMENT,
|
563
|
-
Lithic::
|
729
|
+
Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
|
564
730
|
)
|
565
731
|
SECURE_CORPORATE_PAYMENT =
|
566
732
|
T.let(
|
567
733
|
:SECURE_CORPORATE_PAYMENT,
|
568
|
-
Lithic::
|
734
|
+
Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
|
569
735
|
)
|
570
736
|
STRONG_CUSTOMER_AUTHENTICATION_DELEGATION =
|
571
737
|
T.let(
|
572
738
|
:STRONG_CUSTOMER_AUTHENTICATION_DELEGATION,
|
573
|
-
Lithic::
|
739
|
+
Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
|
574
740
|
)
|
575
741
|
TRANSACTION_RISK_ANALYSIS =
|
576
742
|
T.let(
|
577
743
|
:TRANSACTION_RISK_ANALYSIS,
|
578
|
-
Lithic::
|
744
|
+
Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
|
579
745
|
)
|
580
746
|
|
581
747
|
sig do
|
582
|
-
override
|
583
|
-
|
748
|
+
override.returns(
|
749
|
+
T::Array[
|
750
|
+
Lithic::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol
|
751
|
+
]
|
752
|
+
)
|
753
|
+
end
|
754
|
+
def self.values
|
584
755
|
end
|
585
|
-
def self.values; end
|
586
756
|
end
|
587
757
|
|
588
758
|
# Indicates what the outcome of the 3DS authentication process is.
|
@@ -590,28 +760,44 @@ module Lithic
|
|
590
760
|
extend Lithic::Internal::Type::Enum
|
591
761
|
|
592
762
|
TaggedSymbol =
|
593
|
-
T.type_alias
|
763
|
+
T.type_alias do
|
764
|
+
T.all(
|
765
|
+
Symbol,
|
766
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationResult
|
767
|
+
)
|
768
|
+
end
|
594
769
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
595
770
|
|
596
771
|
ATTEMPTS =
|
597
772
|
T.let(
|
598
773
|
:ATTEMPTS,
|
599
|
-
Lithic::
|
774
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationResult::TaggedSymbol
|
600
775
|
)
|
601
776
|
DECLINE =
|
602
|
-
T.let(
|
777
|
+
T.let(
|
778
|
+
:DECLINE,
|
779
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationResult::TaggedSymbol
|
780
|
+
)
|
603
781
|
NONE =
|
604
|
-
T.let(
|
782
|
+
T.let(
|
783
|
+
:NONE,
|
784
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationResult::TaggedSymbol
|
785
|
+
)
|
605
786
|
SUCCESS =
|
606
|
-
T.let(
|
787
|
+
T.let(
|
788
|
+
:SUCCESS,
|
789
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationResult::TaggedSymbol
|
790
|
+
)
|
607
791
|
|
608
792
|
sig do
|
609
|
-
override
|
610
|
-
|
611
|
-
|
612
|
-
|
793
|
+
override.returns(
|
794
|
+
T::Array[
|
795
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationResult::TaggedSymbol
|
796
|
+
]
|
797
|
+
)
|
798
|
+
end
|
799
|
+
def self.values
|
613
800
|
end
|
614
|
-
def self.values; end
|
615
801
|
end
|
616
802
|
|
617
803
|
# Indicates which party made the 3DS authentication decision.
|
@@ -619,31 +805,49 @@ module Lithic
|
|
619
805
|
extend Lithic::Internal::Type::Enum
|
620
806
|
|
621
807
|
TaggedSymbol =
|
622
|
-
T.type_alias
|
808
|
+
T.type_alias do
|
809
|
+
T.all(
|
810
|
+
Symbol,
|
811
|
+
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy
|
812
|
+
)
|
813
|
+
end
|
623
814
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
624
815
|
|
625
816
|
CUSTOMER_ENDPOINT =
|
626
817
|
T.let(
|
627
818
|
:CUSTOMER_ENDPOINT,
|
628
|
-
Lithic::
|
819
|
+
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol
|
629
820
|
)
|
630
821
|
LITHIC_DEFAULT =
|
631
822
|
T.let(
|
632
823
|
:LITHIC_DEFAULT,
|
633
|
-
Lithic::
|
824
|
+
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol
|
634
825
|
)
|
635
826
|
LITHIC_RULES =
|
636
|
-
T.let(
|
827
|
+
T.let(
|
828
|
+
:LITHIC_RULES,
|
829
|
+
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol
|
830
|
+
)
|
637
831
|
NETWORK =
|
638
|
-
T.let(
|
832
|
+
T.let(
|
833
|
+
:NETWORK,
|
834
|
+
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol
|
835
|
+
)
|
639
836
|
UNKNOWN =
|
640
|
-
T.let(
|
837
|
+
T.let(
|
838
|
+
:UNKNOWN,
|
839
|
+
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol
|
840
|
+
)
|
641
841
|
|
642
842
|
sig do
|
643
|
-
override
|
644
|
-
|
843
|
+
override.returns(
|
844
|
+
T::Array[
|
845
|
+
Lithic::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol
|
846
|
+
]
|
847
|
+
)
|
848
|
+
end
|
849
|
+
def self.values
|
645
850
|
end
|
646
|
-
def self.values; end
|
647
851
|
end
|
648
852
|
|
649
853
|
# Indicates whether chargeback liability shift applies to the transaction.
|
@@ -662,31 +866,44 @@ module Lithic
|
|
662
866
|
extend Lithic::Internal::Type::Enum
|
663
867
|
|
664
868
|
TaggedSymbol =
|
665
|
-
T.type_alias
|
869
|
+
T.type_alias do
|
870
|
+
T.all(
|
871
|
+
Symbol,
|
872
|
+
Lithic::Transaction::CardholderAuthentication::LiabilityShift
|
873
|
+
)
|
874
|
+
end
|
666
875
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
667
876
|
|
668
877
|
LIABILITY_SHIFT_3DS_AUTHENTICATED =
|
669
878
|
T.let(
|
670
879
|
:"3DS_AUTHENTICATED",
|
671
|
-
Lithic::
|
880
|
+
Lithic::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol
|
672
881
|
)
|
673
882
|
ACQUIRER_EXEMPTION =
|
674
883
|
T.let(
|
675
884
|
:ACQUIRER_EXEMPTION,
|
676
|
-
Lithic::
|
885
|
+
Lithic::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol
|
886
|
+
)
|
887
|
+
NONE =
|
888
|
+
T.let(
|
889
|
+
:NONE,
|
890
|
+
Lithic::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol
|
677
891
|
)
|
678
|
-
NONE = T.let(:NONE, Lithic::Models::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol)
|
679
892
|
TOKEN_AUTHENTICATED =
|
680
893
|
T.let(
|
681
894
|
:TOKEN_AUTHENTICATED,
|
682
|
-
Lithic::
|
895
|
+
Lithic::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol
|
683
896
|
)
|
684
897
|
|
685
898
|
sig do
|
686
|
-
override
|
687
|
-
|
899
|
+
override.returns(
|
900
|
+
T::Array[
|
901
|
+
Lithic::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol
|
902
|
+
]
|
903
|
+
)
|
904
|
+
end
|
905
|
+
def self.values
|
688
906
|
end
|
689
|
-
def self.values; end
|
690
907
|
end
|
691
908
|
|
692
909
|
# Indicates whether a 3DS challenge flow was used, and if so, what the
|
@@ -695,21 +912,34 @@ module Lithic
|
|
695
912
|
extend Lithic::Internal::Type::Enum
|
696
913
|
|
697
914
|
TaggedSymbol =
|
698
|
-
T.type_alias
|
915
|
+
T.type_alias do
|
916
|
+
T.all(
|
917
|
+
Symbol,
|
918
|
+
Lithic::Transaction::CardholderAuthentication::VerificationAttempted
|
919
|
+
)
|
920
|
+
end
|
699
921
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
700
922
|
|
701
923
|
NONE =
|
702
|
-
T.let(
|
924
|
+
T.let(
|
925
|
+
:NONE,
|
926
|
+
Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol
|
927
|
+
)
|
703
928
|
OTHER =
|
704
|
-
T.let(
|
929
|
+
T.let(
|
930
|
+
:OTHER,
|
931
|
+
Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol
|
932
|
+
)
|
705
933
|
|
706
934
|
sig do
|
707
|
-
override
|
708
|
-
|
709
|
-
|
710
|
-
|
935
|
+
override.returns(
|
936
|
+
T::Array[
|
937
|
+
Lithic::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol
|
938
|
+
]
|
939
|
+
)
|
940
|
+
end
|
941
|
+
def self.values
|
711
942
|
end
|
712
|
-
def self.values; end
|
713
943
|
end
|
714
944
|
|
715
945
|
# Indicates whether a transaction is considered 3DS authenticated. (deprecated,
|
@@ -718,37 +948,103 @@ module Lithic
|
|
718
948
|
extend Lithic::Internal::Type::Enum
|
719
949
|
|
720
950
|
TaggedSymbol =
|
721
|
-
T.type_alias
|
951
|
+
T.type_alias do
|
952
|
+
T.all(
|
953
|
+
Symbol,
|
954
|
+
Lithic::Transaction::CardholderAuthentication::VerificationResult
|
955
|
+
)
|
956
|
+
end
|
722
957
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
723
958
|
|
724
959
|
CANCELLED =
|
725
|
-
T.let(
|
960
|
+
T.let(
|
961
|
+
:CANCELLED,
|
962
|
+
Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
|
963
|
+
)
|
726
964
|
FAILED =
|
727
|
-
T.let(
|
965
|
+
T.let(
|
966
|
+
:FAILED,
|
967
|
+
Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
|
968
|
+
)
|
728
969
|
FRICTIONLESS =
|
729
970
|
T.let(
|
730
971
|
:FRICTIONLESS,
|
731
|
-
Lithic::
|
972
|
+
Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
|
732
973
|
)
|
733
974
|
NOT_ATTEMPTED =
|
734
975
|
T.let(
|
735
976
|
:NOT_ATTEMPTED,
|
736
|
-
Lithic::
|
977
|
+
Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
|
737
978
|
)
|
738
979
|
REJECTED =
|
739
|
-
T.let(
|
980
|
+
T.let(
|
981
|
+
:REJECTED,
|
982
|
+
Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
|
983
|
+
)
|
740
984
|
SUCCESS =
|
741
|
-
T.let(
|
985
|
+
T.let(
|
986
|
+
:SUCCESS,
|
987
|
+
Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
|
988
|
+
)
|
989
|
+
|
990
|
+
sig do
|
991
|
+
override.returns(
|
992
|
+
T::Array[
|
993
|
+
Lithic::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol
|
994
|
+
]
|
995
|
+
)
|
996
|
+
end
|
997
|
+
def self.values
|
998
|
+
end
|
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
|
+
)
|
742
1029
|
|
743
1030
|
sig do
|
744
|
-
override
|
745
|
-
|
1031
|
+
override.returns(
|
1032
|
+
T::Array[
|
1033
|
+
Lithic::Transaction::CardholderAuthentication::AuthenticationMethod::TaggedSymbol
|
1034
|
+
]
|
1035
|
+
)
|
1036
|
+
end
|
1037
|
+
def self.values
|
746
1038
|
end
|
747
|
-
def self.values; end
|
748
1039
|
end
|
749
1040
|
end
|
750
1041
|
|
751
1042
|
class Merchant < Lithic::Internal::Type::BaseModel
|
1043
|
+
OrHash =
|
1044
|
+
T.type_alias do
|
1045
|
+
T.any(Lithic::Transaction::Merchant, Lithic::Internal::AnyHash)
|
1046
|
+
end
|
1047
|
+
|
752
1048
|
# Unique alphanumeric identifier for the payment card acceptor (merchant).
|
753
1049
|
sig { returns(String) }
|
754
1050
|
attr_accessor :acceptor_id
|
@@ -789,8 +1085,7 @@ module Lithic
|
|
789
1085
|
descriptor: String,
|
790
1086
|
mcc: String,
|
791
1087
|
state: String
|
792
|
-
)
|
793
|
-
.returns(T.attached_class)
|
1088
|
+
).returns(T.attached_class)
|
794
1089
|
end
|
795
1090
|
def self.new(
|
796
1091
|
# Unique alphanumeric identifier for the payment card acceptor (merchant).
|
@@ -810,87 +1105,120 @@ module Lithic
|
|
810
1105
|
mcc:,
|
811
1106
|
# Geographic state of card acceptor.
|
812
1107
|
state:
|
813
|
-
)
|
1108
|
+
)
|
1109
|
+
end
|
1110
|
+
|
814
1111
|
sig do
|
815
|
-
override
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
1112
|
+
override.returns(
|
1113
|
+
{
|
1114
|
+
acceptor_id: String,
|
1115
|
+
acquiring_institution_id: String,
|
1116
|
+
city: String,
|
1117
|
+
country: String,
|
1118
|
+
descriptor: String,
|
1119
|
+
mcc: String,
|
1120
|
+
state: String
|
1121
|
+
}
|
1122
|
+
)
|
1123
|
+
end
|
1124
|
+
def to_hash
|
827
1125
|
end
|
828
|
-
def to_hash; end
|
829
1126
|
end
|
830
1127
|
|
831
|
-
# Card network of the authorization.
|
832
|
-
#
|
833
|
-
# 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.
|
834
1130
|
module Network
|
835
1131
|
extend Lithic::Internal::Type::Enum
|
836
1132
|
|
837
|
-
TaggedSymbol =
|
1133
|
+
TaggedSymbol =
|
1134
|
+
T.type_alias { T.all(Symbol, Lithic::Transaction::Network) }
|
838
1135
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
839
1136
|
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
1137
|
+
AMEX = T.let(:AMEX, Lithic::Transaction::Network::TaggedSymbol)
|
1138
|
+
INTERLINK =
|
1139
|
+
T.let(:INTERLINK, Lithic::Transaction::Network::TaggedSymbol)
|
1140
|
+
MAESTRO = T.let(:MAESTRO, Lithic::Transaction::Network::TaggedSymbol)
|
1141
|
+
MASTERCARD =
|
1142
|
+
T.let(:MASTERCARD, Lithic::Transaction::Network::TaggedSymbol)
|
1143
|
+
UNKNOWN = T.let(:UNKNOWN, Lithic::Transaction::Network::TaggedSymbol)
|
1144
|
+
VISA = T.let(:VISA, Lithic::Transaction::Network::TaggedSymbol)
|
845
1145
|
|
846
|
-
sig
|
847
|
-
|
1146
|
+
sig do
|
1147
|
+
override.returns(T::Array[Lithic::Transaction::Network::TaggedSymbol])
|
1148
|
+
end
|
1149
|
+
def self.values
|
1150
|
+
end
|
848
1151
|
end
|
849
1152
|
|
850
1153
|
class Pos < Lithic::Internal::Type::BaseModel
|
851
|
-
|
1154
|
+
OrHash =
|
1155
|
+
T.type_alias do
|
1156
|
+
T.any(Lithic::Transaction::Pos, Lithic::Internal::AnyHash)
|
1157
|
+
end
|
1158
|
+
|
1159
|
+
sig { returns(Lithic::Transaction::Pos::EntryMode) }
|
852
1160
|
attr_reader :entry_mode
|
853
1161
|
|
854
|
-
sig
|
1162
|
+
sig do
|
1163
|
+
params(entry_mode: Lithic::Transaction::Pos::EntryMode::OrHash).void
|
1164
|
+
end
|
855
1165
|
attr_writer :entry_mode
|
856
1166
|
|
857
|
-
sig { returns(Lithic::
|
1167
|
+
sig { returns(Lithic::Transaction::Pos::Terminal) }
|
858
1168
|
attr_reader :terminal
|
859
1169
|
|
860
|
-
sig
|
1170
|
+
sig do
|
1171
|
+
params(terminal: Lithic::Transaction::Pos::Terminal::OrHash).void
|
1172
|
+
end
|
861
1173
|
attr_writer :terminal
|
862
1174
|
|
863
1175
|
sig do
|
864
1176
|
params(
|
865
|
-
entry_mode:
|
866
|
-
terminal:
|
867
|
-
)
|
868
|
-
|
1177
|
+
entry_mode: Lithic::Transaction::Pos::EntryMode::OrHash,
|
1178
|
+
terminal: Lithic::Transaction::Pos::Terminal::OrHash
|
1179
|
+
).returns(T.attached_class)
|
1180
|
+
end
|
1181
|
+
def self.new(entry_mode:, terminal:)
|
869
1182
|
end
|
870
|
-
def self.new(entry_mode:, terminal:); end
|
871
1183
|
|
872
1184
|
sig do
|
873
|
-
override
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
1185
|
+
override.returns(
|
1186
|
+
{
|
1187
|
+
entry_mode: Lithic::Transaction::Pos::EntryMode,
|
1188
|
+
terminal: Lithic::Transaction::Pos::Terminal
|
1189
|
+
}
|
1190
|
+
)
|
1191
|
+
end
|
1192
|
+
def to_hash
|
880
1193
|
end
|
881
|
-
def to_hash; end
|
882
1194
|
|
883
1195
|
class EntryMode < Lithic::Internal::Type::BaseModel
|
1196
|
+
OrHash =
|
1197
|
+
T.type_alias do
|
1198
|
+
T.any(
|
1199
|
+
Lithic::Transaction::Pos::EntryMode,
|
1200
|
+
Lithic::Internal::AnyHash
|
1201
|
+
)
|
1202
|
+
end
|
1203
|
+
|
884
1204
|
# Card presence indicator
|
885
|
-
sig
|
1205
|
+
sig do
|
1206
|
+
returns(Lithic::Transaction::Pos::EntryMode::Card::TaggedSymbol)
|
1207
|
+
end
|
886
1208
|
attr_accessor :card
|
887
1209
|
|
888
1210
|
# Cardholder presence indicator
|
889
|
-
sig
|
1211
|
+
sig do
|
1212
|
+
returns(
|
1213
|
+
Lithic::Transaction::Pos::EntryMode::Cardholder::TaggedSymbol
|
1214
|
+
)
|
1215
|
+
end
|
890
1216
|
attr_accessor :cardholder
|
891
1217
|
|
892
1218
|
# Method of entry for the PAN
|
893
|
-
sig
|
1219
|
+
sig do
|
1220
|
+
returns(Lithic::Transaction::Pos::EntryMode::Pan::TaggedSymbol)
|
1221
|
+
end
|
894
1222
|
attr_accessor :pan
|
895
1223
|
|
896
1224
|
# Indicates whether the cardholder entered the PIN. True if the PIN was entered.
|
@@ -899,12 +1227,12 @@ module Lithic
|
|
899
1227
|
|
900
1228
|
sig do
|
901
1229
|
params(
|
902
|
-
card: Lithic::
|
903
|
-
cardholder:
|
904
|
-
|
1230
|
+
card: Lithic::Transaction::Pos::EntryMode::Card::OrSymbol,
|
1231
|
+
cardholder:
|
1232
|
+
Lithic::Transaction::Pos::EntryMode::Cardholder::OrSymbol,
|
1233
|
+
pan: Lithic::Transaction::Pos::EntryMode::Pan::OrSymbol,
|
905
1234
|
pin_entered: T::Boolean
|
906
|
-
)
|
907
|
-
.returns(T.attached_class)
|
1235
|
+
).returns(T.attached_class)
|
908
1236
|
end
|
909
1237
|
def self.new(
|
910
1238
|
# Card presence indicator
|
@@ -915,93 +1243,242 @@ module Lithic
|
|
915
1243
|
pan:,
|
916
1244
|
# Indicates whether the cardholder entered the PIN. True if the PIN was entered.
|
917
1245
|
pin_entered:
|
918
|
-
)
|
1246
|
+
)
|
1247
|
+
end
|
1248
|
+
|
919
1249
|
sig do
|
920
|
-
override
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
1250
|
+
override.returns(
|
1251
|
+
{
|
1252
|
+
card: Lithic::Transaction::Pos::EntryMode::Card::TaggedSymbol,
|
1253
|
+
cardholder:
|
1254
|
+
Lithic::Transaction::Pos::EntryMode::Cardholder::TaggedSymbol,
|
1255
|
+
pan: Lithic::Transaction::Pos::EntryMode::Pan::TaggedSymbol,
|
1256
|
+
pin_entered: T::Boolean
|
1257
|
+
}
|
1258
|
+
)
|
1259
|
+
end
|
1260
|
+
def to_hash
|
929
1261
|
end
|
930
|
-
def to_hash; end
|
931
1262
|
|
932
1263
|
# Card presence indicator
|
933
1264
|
module Card
|
934
1265
|
extend Lithic::Internal::Type::Enum
|
935
1266
|
|
936
|
-
TaggedSymbol =
|
1267
|
+
TaggedSymbol =
|
1268
|
+
T.type_alias do
|
1269
|
+
T.all(Symbol, Lithic::Transaction::Pos::EntryMode::Card)
|
1270
|
+
end
|
937
1271
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
938
1272
|
|
939
|
-
NOT_PRESENT =
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
1273
|
+
NOT_PRESENT =
|
1274
|
+
T.let(
|
1275
|
+
:NOT_PRESENT,
|
1276
|
+
Lithic::Transaction::Pos::EntryMode::Card::TaggedSymbol
|
1277
|
+
)
|
1278
|
+
PREAUTHORIZED =
|
1279
|
+
T.let(
|
1280
|
+
:PREAUTHORIZED,
|
1281
|
+
Lithic::Transaction::Pos::EntryMode::Card::TaggedSymbol
|
1282
|
+
)
|
1283
|
+
PRESENT =
|
1284
|
+
T.let(
|
1285
|
+
:PRESENT,
|
1286
|
+
Lithic::Transaction::Pos::EntryMode::Card::TaggedSymbol
|
1287
|
+
)
|
1288
|
+
UNKNOWN =
|
1289
|
+
T.let(
|
1290
|
+
:UNKNOWN,
|
1291
|
+
Lithic::Transaction::Pos::EntryMode::Card::TaggedSymbol
|
1292
|
+
)
|
1293
|
+
|
1294
|
+
sig do
|
1295
|
+
override.returns(
|
1296
|
+
T::Array[
|
1297
|
+
Lithic::Transaction::Pos::EntryMode::Card::TaggedSymbol
|
1298
|
+
]
|
1299
|
+
)
|
1300
|
+
end
|
1301
|
+
def self.values
|
1302
|
+
end
|
1303
|
+
end
|
947
1304
|
|
948
1305
|
# Cardholder presence indicator
|
949
1306
|
module Cardholder
|
950
1307
|
extend Lithic::Internal::Type::Enum
|
951
1308
|
|
952
|
-
TaggedSymbol =
|
1309
|
+
TaggedSymbol =
|
1310
|
+
T.type_alias do
|
1311
|
+
T.all(Symbol, Lithic::Transaction::Pos::EntryMode::Cardholder)
|
1312
|
+
end
|
953
1313
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
954
1314
|
|
955
1315
|
DEFERRED_BILLING =
|
956
|
-
T.let(
|
1316
|
+
T.let(
|
1317
|
+
:DEFERRED_BILLING,
|
1318
|
+
Lithic::Transaction::Pos::EntryMode::Cardholder::TaggedSymbol
|
1319
|
+
)
|
957
1320
|
ELECTRONIC_ORDER =
|
958
|
-
T.let(
|
959
|
-
|
960
|
-
|
961
|
-
|
1321
|
+
T.let(
|
1322
|
+
:ELECTRONIC_ORDER,
|
1323
|
+
Lithic::Transaction::Pos::EntryMode::Cardholder::TaggedSymbol
|
1324
|
+
)
|
1325
|
+
INSTALLMENT =
|
1326
|
+
T.let(
|
1327
|
+
:INSTALLMENT,
|
1328
|
+
Lithic::Transaction::Pos::EntryMode::Cardholder::TaggedSymbol
|
1329
|
+
)
|
1330
|
+
MAIL_ORDER =
|
1331
|
+
T.let(
|
1332
|
+
:MAIL_ORDER,
|
1333
|
+
Lithic::Transaction::Pos::EntryMode::Cardholder::TaggedSymbol
|
1334
|
+
)
|
1335
|
+
NOT_PRESENT =
|
1336
|
+
T.let(
|
1337
|
+
:NOT_PRESENT,
|
1338
|
+
Lithic::Transaction::Pos::EntryMode::Cardholder::TaggedSymbol
|
1339
|
+
)
|
962
1340
|
PREAUTHORIZED =
|
963
|
-
T.let(
|
964
|
-
|
965
|
-
|
1341
|
+
T.let(
|
1342
|
+
:PREAUTHORIZED,
|
1343
|
+
Lithic::Transaction::Pos::EntryMode::Cardholder::TaggedSymbol
|
1344
|
+
)
|
1345
|
+
PRESENT =
|
1346
|
+
T.let(
|
1347
|
+
:PRESENT,
|
1348
|
+
Lithic::Transaction::Pos::EntryMode::Cardholder::TaggedSymbol
|
1349
|
+
)
|
1350
|
+
REOCCURRING =
|
1351
|
+
T.let(
|
1352
|
+
:REOCCURRING,
|
1353
|
+
Lithic::Transaction::Pos::EntryMode::Cardholder::TaggedSymbol
|
1354
|
+
)
|
966
1355
|
TELEPHONE_ORDER =
|
967
|
-
T.let(
|
968
|
-
|
1356
|
+
T.let(
|
1357
|
+
:TELEPHONE_ORDER,
|
1358
|
+
Lithic::Transaction::Pos::EntryMode::Cardholder::TaggedSymbol
|
1359
|
+
)
|
1360
|
+
UNKNOWN =
|
1361
|
+
T.let(
|
1362
|
+
:UNKNOWN,
|
1363
|
+
Lithic::Transaction::Pos::EntryMode::Cardholder::TaggedSymbol
|
1364
|
+
)
|
969
1365
|
|
970
|
-
sig
|
971
|
-
|
1366
|
+
sig do
|
1367
|
+
override.returns(
|
1368
|
+
T::Array[
|
1369
|
+
Lithic::Transaction::Pos::EntryMode::Cardholder::TaggedSymbol
|
1370
|
+
]
|
1371
|
+
)
|
1372
|
+
end
|
1373
|
+
def self.values
|
1374
|
+
end
|
972
1375
|
end
|
973
1376
|
|
974
1377
|
# Method of entry for the PAN
|
975
1378
|
module Pan
|
976
1379
|
extend Lithic::Internal::Type::Enum
|
977
1380
|
|
978
|
-
TaggedSymbol =
|
1381
|
+
TaggedSymbol =
|
1382
|
+
T.type_alias do
|
1383
|
+
T.all(Symbol, Lithic::Transaction::Pos::EntryMode::Pan)
|
1384
|
+
end
|
979
1385
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
980
1386
|
|
981
|
-
AUTO_ENTRY =
|
982
|
-
|
983
|
-
|
1387
|
+
AUTO_ENTRY =
|
1388
|
+
T.let(
|
1389
|
+
:AUTO_ENTRY,
|
1390
|
+
Lithic::Transaction::Pos::EntryMode::Pan::TaggedSymbol
|
1391
|
+
)
|
1392
|
+
BAR_CODE =
|
1393
|
+
T.let(
|
1394
|
+
:BAR_CODE,
|
1395
|
+
Lithic::Transaction::Pos::EntryMode::Pan::TaggedSymbol
|
1396
|
+
)
|
1397
|
+
CONTACTLESS =
|
1398
|
+
T.let(
|
1399
|
+
:CONTACTLESS,
|
1400
|
+
Lithic::Transaction::Pos::EntryMode::Pan::TaggedSymbol
|
1401
|
+
)
|
984
1402
|
CREDENTIAL_ON_FILE =
|
985
|
-
T.let(
|
986
|
-
|
987
|
-
|
1403
|
+
T.let(
|
1404
|
+
:CREDENTIAL_ON_FILE,
|
1405
|
+
Lithic::Transaction::Pos::EntryMode::Pan::TaggedSymbol
|
1406
|
+
)
|
1407
|
+
ECOMMERCE =
|
1408
|
+
T.let(
|
1409
|
+
:ECOMMERCE,
|
1410
|
+
Lithic::Transaction::Pos::EntryMode::Pan::TaggedSymbol
|
1411
|
+
)
|
1412
|
+
ERROR_KEYED =
|
1413
|
+
T.let(
|
1414
|
+
:ERROR_KEYED,
|
1415
|
+
Lithic::Transaction::Pos::EntryMode::Pan::TaggedSymbol
|
1416
|
+
)
|
988
1417
|
ERROR_MAGNETIC_STRIPE =
|
989
|
-
T.let(
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
1418
|
+
T.let(
|
1419
|
+
:ERROR_MAGNETIC_STRIPE,
|
1420
|
+
Lithic::Transaction::Pos::EntryMode::Pan::TaggedSymbol
|
1421
|
+
)
|
1422
|
+
ICC =
|
1423
|
+
T.let(
|
1424
|
+
:ICC,
|
1425
|
+
Lithic::Transaction::Pos::EntryMode::Pan::TaggedSymbol
|
1426
|
+
)
|
1427
|
+
KEY_ENTERED =
|
1428
|
+
T.let(
|
1429
|
+
:KEY_ENTERED,
|
1430
|
+
Lithic::Transaction::Pos::EntryMode::Pan::TaggedSymbol
|
1431
|
+
)
|
1432
|
+
MAGNETIC_STRIPE =
|
1433
|
+
T.let(
|
1434
|
+
:MAGNETIC_STRIPE,
|
1435
|
+
Lithic::Transaction::Pos::EntryMode::Pan::TaggedSymbol
|
1436
|
+
)
|
1437
|
+
MANUAL =
|
1438
|
+
T.let(
|
1439
|
+
:MANUAL,
|
1440
|
+
Lithic::Transaction::Pos::EntryMode::Pan::TaggedSymbol
|
1441
|
+
)
|
1442
|
+
OCR =
|
1443
|
+
T.let(
|
1444
|
+
:OCR,
|
1445
|
+
Lithic::Transaction::Pos::EntryMode::Pan::TaggedSymbol
|
1446
|
+
)
|
1447
|
+
SECURE_CARDLESS =
|
1448
|
+
T.let(
|
1449
|
+
:SECURE_CARDLESS,
|
1450
|
+
Lithic::Transaction::Pos::EntryMode::Pan::TaggedSymbol
|
1451
|
+
)
|
1452
|
+
UNKNOWN =
|
1453
|
+
T.let(
|
1454
|
+
:UNKNOWN,
|
1455
|
+
Lithic::Transaction::Pos::EntryMode::Pan::TaggedSymbol
|
1456
|
+
)
|
1457
|
+
UNSPECIFIED =
|
1458
|
+
T.let(
|
1459
|
+
:UNSPECIFIED,
|
1460
|
+
Lithic::Transaction::Pos::EntryMode::Pan::TaggedSymbol
|
1461
|
+
)
|
998
1462
|
|
999
|
-
sig
|
1000
|
-
|
1463
|
+
sig do
|
1464
|
+
override.returns(
|
1465
|
+
T::Array[Lithic::Transaction::Pos::EntryMode::Pan::TaggedSymbol]
|
1466
|
+
)
|
1467
|
+
end
|
1468
|
+
def self.values
|
1469
|
+
end
|
1001
1470
|
end
|
1002
1471
|
end
|
1003
1472
|
|
1004
1473
|
class Terminal < Lithic::Internal::Type::BaseModel
|
1474
|
+
OrHash =
|
1475
|
+
T.type_alias do
|
1476
|
+
T.any(
|
1477
|
+
Lithic::Transaction::Pos::Terminal,
|
1478
|
+
Lithic::Internal::AnyHash
|
1479
|
+
)
|
1480
|
+
end
|
1481
|
+
|
1005
1482
|
# True if a clerk is present at the sale.
|
1006
1483
|
sig { returns(T::Boolean) }
|
1007
1484
|
attr_accessor :attended
|
@@ -1015,7 +1492,9 @@ module Lithic
|
|
1015
1492
|
attr_accessor :on_premise
|
1016
1493
|
|
1017
1494
|
# The person that is designated to swipe the card
|
1018
|
-
sig
|
1495
|
+
sig do
|
1496
|
+
returns(Lithic::Transaction::Pos::Terminal::Operator::TaggedSymbol)
|
1497
|
+
end
|
1019
1498
|
attr_accessor :operator
|
1020
1499
|
|
1021
1500
|
# True if the terminal is capable of partial approval. Partial approval is when
|
@@ -1027,11 +1506,17 @@ module Lithic
|
|
1027
1506
|
attr_accessor :partial_approval_capable
|
1028
1507
|
|
1029
1508
|
# Status of whether the POS is able to accept PINs
|
1030
|
-
sig
|
1509
|
+
sig do
|
1510
|
+
returns(
|
1511
|
+
Lithic::Transaction::Pos::Terminal::PinCapability::TaggedSymbol
|
1512
|
+
)
|
1513
|
+
end
|
1031
1514
|
attr_accessor :pin_capability
|
1032
1515
|
|
1033
1516
|
# POS Type
|
1034
|
-
sig
|
1517
|
+
sig do
|
1518
|
+
returns(Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol)
|
1519
|
+
end
|
1035
1520
|
attr_accessor :type
|
1036
1521
|
|
1037
1522
|
# Uniquely identifies a terminal at the card acceptor location of acquiring
|
@@ -1044,13 +1529,13 @@ module Lithic
|
|
1044
1529
|
attended: T::Boolean,
|
1045
1530
|
card_retention_capable: T::Boolean,
|
1046
1531
|
on_premise: T::Boolean,
|
1047
|
-
operator: Lithic::
|
1532
|
+
operator: Lithic::Transaction::Pos::Terminal::Operator::OrSymbol,
|
1048
1533
|
partial_approval_capable: T::Boolean,
|
1049
|
-
pin_capability:
|
1050
|
-
|
1534
|
+
pin_capability:
|
1535
|
+
Lithic::Transaction::Pos::Terminal::PinCapability::OrSymbol,
|
1536
|
+
type: Lithic::Transaction::Pos::Terminal::Type::OrSymbol,
|
1051
1537
|
acceptor_terminal_id: T.nilable(String)
|
1052
|
-
)
|
1053
|
-
.returns(T.attached_class)
|
1538
|
+
).returns(T.attached_class)
|
1054
1539
|
end
|
1055
1540
|
def self.new(
|
1056
1541
|
# True if a clerk is present at the sale.
|
@@ -1074,95 +1559,250 @@ module Lithic
|
|
1074
1559
|
# Uniquely identifies a terminal at the card acceptor location of acquiring
|
1075
1560
|
# institutions or merchant POS Systems
|
1076
1561
|
acceptor_terminal_id: nil
|
1077
|
-
)
|
1562
|
+
)
|
1563
|
+
end
|
1564
|
+
|
1078
1565
|
sig do
|
1079
|
-
override
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1566
|
+
override.returns(
|
1567
|
+
{
|
1568
|
+
attended: T::Boolean,
|
1569
|
+
card_retention_capable: T::Boolean,
|
1570
|
+
on_premise: T::Boolean,
|
1571
|
+
operator:
|
1572
|
+
Lithic::Transaction::Pos::Terminal::Operator::TaggedSymbol,
|
1573
|
+
partial_approval_capable: T::Boolean,
|
1574
|
+
pin_capability:
|
1575
|
+
Lithic::Transaction::Pos::Terminal::PinCapability::TaggedSymbol,
|
1576
|
+
type: Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol,
|
1577
|
+
acceptor_terminal_id: T.nilable(String)
|
1578
|
+
}
|
1579
|
+
)
|
1580
|
+
end
|
1581
|
+
def to_hash
|
1092
1582
|
end
|
1093
|
-
def to_hash; end
|
1094
1583
|
|
1095
1584
|
# The person that is designated to swipe the card
|
1096
1585
|
module Operator
|
1097
1586
|
extend Lithic::Internal::Type::Enum
|
1098
1587
|
|
1099
|
-
TaggedSymbol =
|
1588
|
+
TaggedSymbol =
|
1589
|
+
T.type_alias do
|
1590
|
+
T.all(Symbol, Lithic::Transaction::Pos::Terminal::Operator)
|
1591
|
+
end
|
1100
1592
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1101
1593
|
|
1102
1594
|
ADMINISTRATIVE =
|
1103
|
-
T.let(
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1595
|
+
T.let(
|
1596
|
+
:ADMINISTRATIVE,
|
1597
|
+
Lithic::Transaction::Pos::Terminal::Operator::TaggedSymbol
|
1598
|
+
)
|
1599
|
+
CARDHOLDER =
|
1600
|
+
T.let(
|
1601
|
+
:CARDHOLDER,
|
1602
|
+
Lithic::Transaction::Pos::Terminal::Operator::TaggedSymbol
|
1603
|
+
)
|
1604
|
+
CARD_ACCEPTOR =
|
1605
|
+
T.let(
|
1606
|
+
:CARD_ACCEPTOR,
|
1607
|
+
Lithic::Transaction::Pos::Terminal::Operator::TaggedSymbol
|
1608
|
+
)
|
1609
|
+
UNKNOWN =
|
1610
|
+
T.let(
|
1611
|
+
:UNKNOWN,
|
1612
|
+
Lithic::Transaction::Pos::Terminal::Operator::TaggedSymbol
|
1613
|
+
)
|
1107
1614
|
|
1108
|
-
sig
|
1109
|
-
|
1615
|
+
sig do
|
1616
|
+
override.returns(
|
1617
|
+
T::Array[
|
1618
|
+
Lithic::Transaction::Pos::Terminal::Operator::TaggedSymbol
|
1619
|
+
]
|
1620
|
+
)
|
1621
|
+
end
|
1622
|
+
def self.values
|
1623
|
+
end
|
1110
1624
|
end
|
1111
1625
|
|
1112
1626
|
# Status of whether the POS is able to accept PINs
|
1113
1627
|
module PinCapability
|
1114
1628
|
extend Lithic::Internal::Type::Enum
|
1115
1629
|
|
1116
|
-
TaggedSymbol =
|
1630
|
+
TaggedSymbol =
|
1631
|
+
T.type_alias do
|
1632
|
+
T.all(Symbol, Lithic::Transaction::Pos::Terminal::PinCapability)
|
1633
|
+
end
|
1117
1634
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1118
1635
|
|
1119
|
-
CAPABLE =
|
1636
|
+
CAPABLE =
|
1637
|
+
T.let(
|
1638
|
+
:CAPABLE,
|
1639
|
+
Lithic::Transaction::Pos::Terminal::PinCapability::TaggedSymbol
|
1640
|
+
)
|
1120
1641
|
INOPERATIVE =
|
1121
|
-
T.let(
|
1642
|
+
T.let(
|
1643
|
+
:INOPERATIVE,
|
1644
|
+
Lithic::Transaction::Pos::Terminal::PinCapability::TaggedSymbol
|
1645
|
+
)
|
1122
1646
|
NOT_CAPABLE =
|
1123
|
-
T.let(
|
1647
|
+
T.let(
|
1648
|
+
:NOT_CAPABLE,
|
1649
|
+
Lithic::Transaction::Pos::Terminal::PinCapability::TaggedSymbol
|
1650
|
+
)
|
1124
1651
|
UNSPECIFIED =
|
1125
|
-
T.let(
|
1652
|
+
T.let(
|
1653
|
+
:UNSPECIFIED,
|
1654
|
+
Lithic::Transaction::Pos::Terminal::PinCapability::TaggedSymbol
|
1655
|
+
)
|
1126
1656
|
|
1127
|
-
sig
|
1128
|
-
|
1657
|
+
sig do
|
1658
|
+
override.returns(
|
1659
|
+
T::Array[
|
1660
|
+
Lithic::Transaction::Pos::Terminal::PinCapability::TaggedSymbol
|
1661
|
+
]
|
1662
|
+
)
|
1663
|
+
end
|
1664
|
+
def self.values
|
1665
|
+
end
|
1129
1666
|
end
|
1130
1667
|
|
1131
1668
|
# POS Type
|
1132
1669
|
module Type
|
1133
1670
|
extend Lithic::Internal::Type::Enum
|
1134
1671
|
|
1135
|
-
TaggedSymbol =
|
1672
|
+
TaggedSymbol =
|
1673
|
+
T.type_alias do
|
1674
|
+
T.all(Symbol, Lithic::Transaction::Pos::Terminal::Type)
|
1675
|
+
end
|
1136
1676
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1137
1677
|
|
1138
|
-
ADMINISTRATIVE =
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1678
|
+
ADMINISTRATIVE =
|
1679
|
+
T.let(
|
1680
|
+
:ADMINISTRATIVE,
|
1681
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1682
|
+
)
|
1683
|
+
ATM =
|
1684
|
+
T.let(
|
1685
|
+
:ATM,
|
1686
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1687
|
+
)
|
1688
|
+
AUTHORIZATION =
|
1689
|
+
T.let(
|
1690
|
+
:AUTHORIZATION,
|
1691
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1692
|
+
)
|
1693
|
+
COUPON_MACHINE =
|
1694
|
+
T.let(
|
1695
|
+
:COUPON_MACHINE,
|
1696
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1697
|
+
)
|
1698
|
+
DIAL_TERMINAL =
|
1699
|
+
T.let(
|
1700
|
+
:DIAL_TERMINAL,
|
1701
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1702
|
+
)
|
1703
|
+
ECOMMERCE =
|
1704
|
+
T.let(
|
1705
|
+
:ECOMMERCE,
|
1706
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1707
|
+
)
|
1708
|
+
ECR =
|
1709
|
+
T.let(
|
1710
|
+
:ECR,
|
1711
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1712
|
+
)
|
1713
|
+
FUEL_MACHINE =
|
1714
|
+
T.let(
|
1715
|
+
:FUEL_MACHINE,
|
1716
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1717
|
+
)
|
1718
|
+
HOME_TERMINAL =
|
1719
|
+
T.let(
|
1720
|
+
:HOME_TERMINAL,
|
1721
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1722
|
+
)
|
1723
|
+
MICR =
|
1724
|
+
T.let(
|
1725
|
+
:MICR,
|
1726
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1727
|
+
)
|
1728
|
+
OFF_PREMISE =
|
1729
|
+
T.let(
|
1730
|
+
:OFF_PREMISE,
|
1731
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1732
|
+
)
|
1733
|
+
PAYMENT =
|
1734
|
+
T.let(
|
1735
|
+
:PAYMENT,
|
1736
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1737
|
+
)
|
1738
|
+
PDA =
|
1739
|
+
T.let(
|
1740
|
+
:PDA,
|
1741
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1742
|
+
)
|
1743
|
+
PHONE =
|
1744
|
+
T.let(
|
1745
|
+
:PHONE,
|
1746
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1747
|
+
)
|
1748
|
+
POINT =
|
1749
|
+
T.let(
|
1750
|
+
:POINT,
|
1751
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1752
|
+
)
|
1753
|
+
POS_TERMINAL =
|
1754
|
+
T.let(
|
1755
|
+
:POS_TERMINAL,
|
1756
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1757
|
+
)
|
1758
|
+
PUBLIC_UTILITY =
|
1759
|
+
T.let(
|
1760
|
+
:PUBLIC_UTILITY,
|
1761
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1762
|
+
)
|
1763
|
+
SELF_SERVICE =
|
1764
|
+
T.let(
|
1765
|
+
:SELF_SERVICE,
|
1766
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1767
|
+
)
|
1768
|
+
TELEVISION =
|
1769
|
+
T.let(
|
1770
|
+
:TELEVISION,
|
1771
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1772
|
+
)
|
1773
|
+
TELLER =
|
1774
|
+
T.let(
|
1775
|
+
:TELLER,
|
1776
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1777
|
+
)
|
1158
1778
|
TRAVELERS_CHECK_MACHINE =
|
1159
|
-
T.let(
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1779
|
+
T.let(
|
1780
|
+
:TRAVELERS_CHECK_MACHINE,
|
1781
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1782
|
+
)
|
1783
|
+
VENDING =
|
1784
|
+
T.let(
|
1785
|
+
:VENDING,
|
1786
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1787
|
+
)
|
1788
|
+
VOICE =
|
1789
|
+
T.let(
|
1790
|
+
:VOICE,
|
1791
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1792
|
+
)
|
1793
|
+
UNKNOWN =
|
1794
|
+
T.let(
|
1795
|
+
:UNKNOWN,
|
1796
|
+
Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol
|
1797
|
+
)
|
1163
1798
|
|
1164
|
-
sig
|
1165
|
-
|
1799
|
+
sig do
|
1800
|
+
override.returns(
|
1801
|
+
T::Array[Lithic::Transaction::Pos::Terminal::Type::TaggedSymbol]
|
1802
|
+
)
|
1803
|
+
end
|
1804
|
+
def self.values
|
1805
|
+
end
|
1166
1806
|
end
|
1167
1807
|
end
|
1168
1808
|
end
|
@@ -1170,68 +1810,132 @@ module Lithic
|
|
1170
1810
|
module Result
|
1171
1811
|
extend Lithic::Internal::Type::Enum
|
1172
1812
|
|
1173
|
-
TaggedSymbol =
|
1813
|
+
TaggedSymbol =
|
1814
|
+
T.type_alias { T.all(Symbol, Lithic::Transaction::Result) }
|
1174
1815
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1175
1816
|
|
1176
1817
|
ACCOUNT_STATE_TRANSACTION_FAIL =
|
1177
|
-
T.let(
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
1818
|
+
T.let(
|
1819
|
+
:ACCOUNT_STATE_TRANSACTION_FAIL,
|
1820
|
+
Lithic::Transaction::Result::TaggedSymbol
|
1821
|
+
)
|
1822
|
+
APPROVED = T.let(:APPROVED, Lithic::Transaction::Result::TaggedSymbol)
|
1823
|
+
BANK_CONNECTION_ERROR =
|
1824
|
+
T.let(
|
1825
|
+
:BANK_CONNECTION_ERROR,
|
1826
|
+
Lithic::Transaction::Result::TaggedSymbol
|
1827
|
+
)
|
1828
|
+
BANK_NOT_VERIFIED =
|
1829
|
+
T.let(:BANK_NOT_VERIFIED, Lithic::Transaction::Result::TaggedSymbol)
|
1830
|
+
CARD_CLOSED =
|
1831
|
+
T.let(:CARD_CLOSED, Lithic::Transaction::Result::TaggedSymbol)
|
1832
|
+
CARD_PAUSED =
|
1833
|
+
T.let(:CARD_PAUSED, Lithic::Transaction::Result::TaggedSymbol)
|
1834
|
+
DECLINED = T.let(:DECLINED, Lithic::Transaction::Result::TaggedSymbol)
|
1835
|
+
FRAUD_ADVICE =
|
1836
|
+
T.let(:FRAUD_ADVICE, Lithic::Transaction::Result::TaggedSymbol)
|
1837
|
+
IGNORED_TTL_EXPIRY =
|
1838
|
+
T.let(:IGNORED_TTL_EXPIRY, Lithic::Transaction::Result::TaggedSymbol)
|
1839
|
+
INACTIVE_ACCOUNT =
|
1840
|
+
T.let(:INACTIVE_ACCOUNT, Lithic::Transaction::Result::TaggedSymbol)
|
1841
|
+
INCORRECT_PIN =
|
1842
|
+
T.let(:INCORRECT_PIN, Lithic::Transaction::Result::TaggedSymbol)
|
1843
|
+
INVALID_CARD_DETAILS =
|
1844
|
+
T.let(
|
1845
|
+
:INVALID_CARD_DETAILS,
|
1846
|
+
Lithic::Transaction::Result::TaggedSymbol
|
1847
|
+
)
|
1848
|
+
INSUFFICIENT_FUNDS =
|
1849
|
+
T.let(:INSUFFICIENT_FUNDS, Lithic::Transaction::Result::TaggedSymbol)
|
1190
1850
|
INSUFFICIENT_FUNDS_PRELOAD =
|
1191
|
-
T.let(
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
|
1851
|
+
T.let(
|
1852
|
+
:INSUFFICIENT_FUNDS_PRELOAD,
|
1853
|
+
Lithic::Transaction::Result::TaggedSymbol
|
1854
|
+
)
|
1855
|
+
INVALID_TRANSACTION =
|
1856
|
+
T.let(:INVALID_TRANSACTION, Lithic::Transaction::Result::TaggedSymbol)
|
1857
|
+
MERCHANT_BLACKLIST =
|
1858
|
+
T.let(:MERCHANT_BLACKLIST, Lithic::Transaction::Result::TaggedSymbol)
|
1859
|
+
ORIGINAL_NOT_FOUND =
|
1860
|
+
T.let(:ORIGINAL_NOT_FOUND, Lithic::Transaction::Result::TaggedSymbol)
|
1861
|
+
PREVIOUSLY_COMPLETED =
|
1862
|
+
T.let(
|
1863
|
+
:PREVIOUSLY_COMPLETED,
|
1864
|
+
Lithic::Transaction::Result::TaggedSymbol
|
1865
|
+
)
|
1866
|
+
SINGLE_USE_RECHARGED =
|
1867
|
+
T.let(
|
1868
|
+
:SINGLE_USE_RECHARGED,
|
1869
|
+
Lithic::Transaction::Result::TaggedSymbol
|
1870
|
+
)
|
1197
1871
|
SWITCH_INOPERATIVE_ADVICE =
|
1198
|
-
T.let(
|
1199
|
-
|
1200
|
-
|
1872
|
+
T.let(
|
1873
|
+
:SWITCH_INOPERATIVE_ADVICE,
|
1874
|
+
Lithic::Transaction::Result::TaggedSymbol
|
1875
|
+
)
|
1876
|
+
UNAUTHORIZED_MERCHANT =
|
1877
|
+
T.let(
|
1878
|
+
:UNAUTHORIZED_MERCHANT,
|
1879
|
+
Lithic::Transaction::Result::TaggedSymbol
|
1880
|
+
)
|
1881
|
+
UNKNOWN_HOST_TIMEOUT =
|
1882
|
+
T.let(
|
1883
|
+
:UNKNOWN_HOST_TIMEOUT,
|
1884
|
+
Lithic::Transaction::Result::TaggedSymbol
|
1885
|
+
)
|
1201
1886
|
USER_TRANSACTION_LIMIT =
|
1202
|
-
T.let(
|
1887
|
+
T.let(
|
1888
|
+
:USER_TRANSACTION_LIMIT,
|
1889
|
+
Lithic::Transaction::Result::TaggedSymbol
|
1890
|
+
)
|
1203
1891
|
|
1204
|
-
sig
|
1205
|
-
|
1892
|
+
sig do
|
1893
|
+
override.returns(T::Array[Lithic::Transaction::Result::TaggedSymbol])
|
1894
|
+
end
|
1895
|
+
def self.values
|
1896
|
+
end
|
1206
1897
|
end
|
1207
1898
|
|
1208
1899
|
# Status of the transaction.
|
1209
1900
|
module Status
|
1210
1901
|
extend Lithic::Internal::Type::Enum
|
1211
1902
|
|
1212
|
-
TaggedSymbol =
|
1903
|
+
TaggedSymbol =
|
1904
|
+
T.type_alias { T.all(Symbol, Lithic::Transaction::Status) }
|
1213
1905
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1214
1906
|
|
1215
|
-
DECLINED = T.let(:DECLINED, Lithic::
|
1216
|
-
EXPIRED = T.let(:EXPIRED, Lithic::
|
1217
|
-
PENDING = T.let(:PENDING, Lithic::
|
1218
|
-
SETTLED = T.let(:SETTLED, Lithic::
|
1219
|
-
VOIDED = T.let(:VOIDED, Lithic::
|
1907
|
+
DECLINED = T.let(:DECLINED, Lithic::Transaction::Status::TaggedSymbol)
|
1908
|
+
EXPIRED = T.let(:EXPIRED, Lithic::Transaction::Status::TaggedSymbol)
|
1909
|
+
PENDING = T.let(:PENDING, Lithic::Transaction::Status::TaggedSymbol)
|
1910
|
+
SETTLED = T.let(:SETTLED, Lithic::Transaction::Status::TaggedSymbol)
|
1911
|
+
VOIDED = T.let(:VOIDED, Lithic::Transaction::Status::TaggedSymbol)
|
1220
1912
|
|
1221
|
-
sig
|
1222
|
-
|
1913
|
+
sig do
|
1914
|
+
override.returns(T::Array[Lithic::Transaction::Status::TaggedSymbol])
|
1915
|
+
end
|
1916
|
+
def self.values
|
1917
|
+
end
|
1223
1918
|
end
|
1224
1919
|
|
1225
1920
|
class TokenInfo < Lithic::Internal::Type::BaseModel
|
1921
|
+
OrHash =
|
1922
|
+
T.type_alias do
|
1923
|
+
T.any(Lithic::Transaction::TokenInfo, Lithic::Internal::AnyHash)
|
1924
|
+
end
|
1925
|
+
|
1226
1926
|
# The wallet_type field will indicate the source of the token. Possible token
|
1227
1927
|
# sources include digital wallets (Apple, Google, or Samsung Pay), merchant
|
1228
1928
|
# tokenization, and “other” sources like in-flight commerce. Masterpass is not
|
1229
1929
|
# currently supported and is included for future use.
|
1230
|
-
sig
|
1930
|
+
sig do
|
1931
|
+
returns(Lithic::Transaction::TokenInfo::WalletType::TaggedSymbol)
|
1932
|
+
end
|
1231
1933
|
attr_accessor :wallet_type
|
1232
1934
|
|
1233
1935
|
sig do
|
1234
|
-
params(
|
1936
|
+
params(
|
1937
|
+
wallet_type: Lithic::Transaction::TokenInfo::WalletType::OrSymbol
|
1938
|
+
).returns(T.attached_class)
|
1235
1939
|
end
|
1236
1940
|
def self.new(
|
1237
1941
|
# The wallet_type field will indicate the source of the token. Possible token
|
@@ -1239,9 +1943,19 @@ module Lithic
|
|
1239
1943
|
# tokenization, and “other” sources like in-flight commerce. Masterpass is not
|
1240
1944
|
# currently supported and is included for future use.
|
1241
1945
|
wallet_type:
|
1242
|
-
)
|
1243
|
-
|
1244
|
-
|
1946
|
+
)
|
1947
|
+
end
|
1948
|
+
|
1949
|
+
sig do
|
1950
|
+
override.returns(
|
1951
|
+
{
|
1952
|
+
wallet_type:
|
1953
|
+
Lithic::Transaction::TokenInfo::WalletType::TaggedSymbol
|
1954
|
+
}
|
1955
|
+
)
|
1956
|
+
end
|
1957
|
+
def to_hash
|
1958
|
+
end
|
1245
1959
|
|
1246
1960
|
# The wallet_type field will indicate the source of the token. Possible token
|
1247
1961
|
# sources include digital wallets (Apple, Google, or Samsung Pay), merchant
|
@@ -1250,22 +1964,59 @@ module Lithic
|
|
1250
1964
|
module WalletType
|
1251
1965
|
extend Lithic::Internal::Type::Enum
|
1252
1966
|
|
1253
|
-
TaggedSymbol =
|
1967
|
+
TaggedSymbol =
|
1968
|
+
T.type_alias do
|
1969
|
+
T.all(Symbol, Lithic::Transaction::TokenInfo::WalletType)
|
1970
|
+
end
|
1254
1971
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1255
1972
|
|
1256
|
-
APPLE_PAY =
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1973
|
+
APPLE_PAY =
|
1974
|
+
T.let(
|
1975
|
+
:APPLE_PAY,
|
1976
|
+
Lithic::Transaction::TokenInfo::WalletType::TaggedSymbol
|
1977
|
+
)
|
1978
|
+
GOOGLE_PAY =
|
1979
|
+
T.let(
|
1980
|
+
:GOOGLE_PAY,
|
1981
|
+
Lithic::Transaction::TokenInfo::WalletType::TaggedSymbol
|
1982
|
+
)
|
1983
|
+
MASTERPASS =
|
1984
|
+
T.let(
|
1985
|
+
:MASTERPASS,
|
1986
|
+
Lithic::Transaction::TokenInfo::WalletType::TaggedSymbol
|
1987
|
+
)
|
1988
|
+
MERCHANT =
|
1989
|
+
T.let(
|
1990
|
+
:MERCHANT,
|
1991
|
+
Lithic::Transaction::TokenInfo::WalletType::TaggedSymbol
|
1992
|
+
)
|
1993
|
+
OTHER =
|
1994
|
+
T.let(
|
1995
|
+
:OTHER,
|
1996
|
+
Lithic::Transaction::TokenInfo::WalletType::TaggedSymbol
|
1997
|
+
)
|
1998
|
+
SAMSUNG_PAY =
|
1999
|
+
T.let(
|
2000
|
+
:SAMSUNG_PAY,
|
2001
|
+
Lithic::Transaction::TokenInfo::WalletType::TaggedSymbol
|
2002
|
+
)
|
1262
2003
|
|
1263
|
-
sig
|
1264
|
-
|
2004
|
+
sig do
|
2005
|
+
override.returns(
|
2006
|
+
T::Array[Lithic::Transaction::TokenInfo::WalletType::TaggedSymbol]
|
2007
|
+
)
|
2008
|
+
end
|
2009
|
+
def self.values
|
2010
|
+
end
|
1265
2011
|
end
|
1266
2012
|
end
|
1267
2013
|
|
1268
2014
|
class Event < Lithic::Internal::Type::BaseModel
|
2015
|
+
OrHash =
|
2016
|
+
T.type_alias do
|
2017
|
+
T.any(Lithic::Transaction::Event, Lithic::Internal::AnyHash)
|
2018
|
+
end
|
2019
|
+
|
1269
2020
|
# Transaction event identifier.
|
1270
2021
|
sig { returns(String) }
|
1271
2022
|
attr_accessor :token
|
@@ -1274,21 +2025,29 @@ module Lithic
|
|
1274
2025
|
sig { returns(Integer) }
|
1275
2026
|
attr_accessor :amount
|
1276
2027
|
|
1277
|
-
sig { returns(Lithic::
|
2028
|
+
sig { returns(Lithic::Transaction::Event::Amounts) }
|
1278
2029
|
attr_reader :amounts
|
1279
2030
|
|
1280
|
-
sig
|
2031
|
+
sig do
|
2032
|
+
params(amounts: Lithic::Transaction::Event::Amounts::OrHash).void
|
2033
|
+
end
|
1281
2034
|
attr_writer :amounts
|
1282
2035
|
|
1283
2036
|
# RFC 3339 date and time this event entered the system. UTC time zone.
|
1284
2037
|
sig { returns(Time) }
|
1285
2038
|
attr_accessor :created
|
1286
2039
|
|
1287
|
-
sig
|
2040
|
+
sig do
|
2041
|
+
returns(
|
2042
|
+
T::Array[Lithic::Transaction::Event::DetailedResult::TaggedSymbol]
|
2043
|
+
)
|
2044
|
+
end
|
1288
2045
|
attr_accessor :detailed_results
|
1289
2046
|
|
1290
2047
|
# Indicates whether the transaction event is a credit or debit to the account.
|
1291
|
-
sig
|
2048
|
+
sig do
|
2049
|
+
returns(Lithic::Transaction::Event::EffectivePolarity::TaggedSymbol)
|
2050
|
+
end
|
1292
2051
|
attr_accessor :effective_polarity
|
1293
2052
|
|
1294
2053
|
# Information provided by the card network in each event. This includes common
|
@@ -1300,35 +2059,37 @@ module Lithic
|
|
1300
2059
|
# type. If the field is populated by the network, we will pass it through as is
|
1301
2060
|
# unless otherwise specified. Please consult the official network documentation
|
1302
2061
|
# for more details about these fields and how to use them.
|
1303
|
-
sig { returns(T.nilable(Lithic::
|
2062
|
+
sig { returns(T.nilable(Lithic::Transaction::Event::NetworkInfo)) }
|
1304
2063
|
attr_reader :network_info
|
1305
2064
|
|
1306
2065
|
sig do
|
1307
2066
|
params(
|
1308
|
-
network_info:
|
1309
|
-
|
1310
|
-
|
2067
|
+
network_info:
|
2068
|
+
T.nilable(Lithic::Transaction::Event::NetworkInfo::OrHash)
|
2069
|
+
).void
|
1311
2070
|
end
|
1312
2071
|
attr_writer :network_info
|
1313
2072
|
|
1314
|
-
sig { returns(Lithic::
|
2073
|
+
sig { returns(Lithic::Transaction::Event::Result::TaggedSymbol) }
|
1315
2074
|
attr_accessor :result
|
1316
2075
|
|
1317
|
-
sig { returns(T::Array[Lithic::
|
2076
|
+
sig { returns(T::Array[Lithic::Transaction::Event::RuleResult]) }
|
1318
2077
|
attr_accessor :rule_results
|
1319
2078
|
|
1320
2079
|
# Type of transaction event
|
1321
|
-
sig { returns(Lithic::
|
2080
|
+
sig { returns(Lithic::Transaction::Event::Type::TaggedSymbol) }
|
1322
2081
|
attr_accessor :type
|
1323
2082
|
|
1324
|
-
sig
|
2083
|
+
sig do
|
2084
|
+
returns(T.nilable(Lithic::Transaction::Event::NetworkSpecificData))
|
2085
|
+
end
|
1325
2086
|
attr_reader :network_specific_data
|
1326
2087
|
|
1327
2088
|
sig do
|
1328
2089
|
params(
|
1329
|
-
network_specific_data:
|
1330
|
-
|
1331
|
-
|
2090
|
+
network_specific_data:
|
2091
|
+
Lithic::Transaction::Event::NetworkSpecificData::OrHash
|
2092
|
+
).void
|
1332
2093
|
end
|
1333
2094
|
attr_writer :network_specific_data
|
1334
2095
|
|
@@ -1336,17 +2097,21 @@ module Lithic
|
|
1336
2097
|
params(
|
1337
2098
|
token: String,
|
1338
2099
|
amount: Integer,
|
1339
|
-
amounts:
|
2100
|
+
amounts: Lithic::Transaction::Event::Amounts::OrHash,
|
1340
2101
|
created: Time,
|
1341
|
-
detailed_results:
|
1342
|
-
|
1343
|
-
|
1344
|
-
|
1345
|
-
|
1346
|
-
|
1347
|
-
|
1348
|
-
|
1349
|
-
|
2102
|
+
detailed_results:
|
2103
|
+
T::Array[Lithic::Transaction::Event::DetailedResult::OrSymbol],
|
2104
|
+
effective_polarity:
|
2105
|
+
Lithic::Transaction::Event::EffectivePolarity::OrSymbol,
|
2106
|
+
network_info:
|
2107
|
+
T.nilable(Lithic::Transaction::Event::NetworkInfo::OrHash),
|
2108
|
+
result: Lithic::Transaction::Event::Result::OrSymbol,
|
2109
|
+
rule_results:
|
2110
|
+
T::Array[Lithic::Transaction::Event::RuleResult::OrHash],
|
2111
|
+
type: Lithic::Transaction::Event::Type::OrSymbol,
|
2112
|
+
network_specific_data:
|
2113
|
+
Lithic::Transaction::Event::NetworkSpecificData::OrHash
|
2114
|
+
).returns(T.attached_class)
|
1350
2115
|
end
|
1351
2116
|
def self.new(
|
1352
2117
|
# Transaction event identifier.
|
@@ -1374,82 +2139,115 @@ module Lithic
|
|
1374
2139
|
# Type of transaction event
|
1375
2140
|
type:,
|
1376
2141
|
network_specific_data: nil
|
1377
|
-
)
|
2142
|
+
)
|
2143
|
+
end
|
2144
|
+
|
1378
2145
|
sig do
|
1379
|
-
override
|
1380
|
-
|
1381
|
-
|
1382
|
-
|
1383
|
-
|
1384
|
-
|
1385
|
-
|
1386
|
-
|
1387
|
-
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1392
|
-
|
1393
|
-
|
1394
|
-
|
2146
|
+
override.returns(
|
2147
|
+
{
|
2148
|
+
token: String,
|
2149
|
+
amount: Integer,
|
2150
|
+
amounts: Lithic::Transaction::Event::Amounts,
|
2151
|
+
created: Time,
|
2152
|
+
detailed_results:
|
2153
|
+
T::Array[
|
2154
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2155
|
+
],
|
2156
|
+
effective_polarity:
|
2157
|
+
Lithic::Transaction::Event::EffectivePolarity::TaggedSymbol,
|
2158
|
+
network_info: T.nilable(Lithic::Transaction::Event::NetworkInfo),
|
2159
|
+
result: Lithic::Transaction::Event::Result::TaggedSymbol,
|
2160
|
+
rule_results: T::Array[Lithic::Transaction::Event::RuleResult],
|
2161
|
+
type: Lithic::Transaction::Event::Type::TaggedSymbol,
|
2162
|
+
network_specific_data:
|
2163
|
+
Lithic::Transaction::Event::NetworkSpecificData
|
2164
|
+
}
|
2165
|
+
)
|
2166
|
+
end
|
2167
|
+
def to_hash
|
1395
2168
|
end
|
1396
|
-
def to_hash; end
|
1397
2169
|
|
1398
2170
|
class Amounts < Lithic::Internal::Type::BaseModel
|
1399
|
-
|
2171
|
+
OrHash =
|
2172
|
+
T.type_alias do
|
2173
|
+
T.any(
|
2174
|
+
Lithic::Transaction::Event::Amounts,
|
2175
|
+
Lithic::Internal::AnyHash
|
2176
|
+
)
|
2177
|
+
end
|
2178
|
+
|
2179
|
+
sig { returns(Lithic::Transaction::Event::Amounts::Cardholder) }
|
1400
2180
|
attr_reader :cardholder
|
1401
2181
|
|
1402
2182
|
sig do
|
1403
2183
|
params(
|
1404
|
-
cardholder:
|
1405
|
-
|
1406
|
-
|
2184
|
+
cardholder:
|
2185
|
+
Lithic::Transaction::Event::Amounts::Cardholder::OrHash
|
2186
|
+
).void
|
1407
2187
|
end
|
1408
2188
|
attr_writer :cardholder
|
1409
2189
|
|
1410
|
-
sig { returns(Lithic::
|
2190
|
+
sig { returns(Lithic::Transaction::Event::Amounts::Merchant) }
|
1411
2191
|
attr_reader :merchant
|
1412
2192
|
|
1413
2193
|
sig do
|
1414
|
-
params(
|
1415
|
-
|
2194
|
+
params(
|
2195
|
+
merchant: Lithic::Transaction::Event::Amounts::Merchant::OrHash
|
2196
|
+
).void
|
1416
2197
|
end
|
1417
2198
|
attr_writer :merchant
|
1418
2199
|
|
1419
|
-
sig
|
2200
|
+
sig do
|
2201
|
+
returns(T.nilable(Lithic::Transaction::Event::Amounts::Settlement))
|
2202
|
+
end
|
1420
2203
|
attr_reader :settlement
|
1421
2204
|
|
1422
2205
|
sig do
|
1423
2206
|
params(
|
1424
|
-
settlement:
|
1425
|
-
|
1426
|
-
|
2207
|
+
settlement:
|
2208
|
+
T.nilable(
|
2209
|
+
Lithic::Transaction::Event::Amounts::Settlement::OrHash
|
2210
|
+
)
|
2211
|
+
).void
|
1427
2212
|
end
|
1428
2213
|
attr_writer :settlement
|
1429
2214
|
|
1430
2215
|
sig do
|
1431
2216
|
params(
|
1432
|
-
cardholder:
|
1433
|
-
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
2217
|
+
cardholder:
|
2218
|
+
Lithic::Transaction::Event::Amounts::Cardholder::OrHash,
|
2219
|
+
merchant: Lithic::Transaction::Event::Amounts::Merchant::OrHash,
|
2220
|
+
settlement:
|
2221
|
+
T.nilable(
|
2222
|
+
Lithic::Transaction::Event::Amounts::Settlement::OrHash
|
2223
|
+
)
|
2224
|
+
).returns(T.attached_class)
|
2225
|
+
end
|
2226
|
+
def self.new(cardholder:, merchant:, settlement:)
|
1437
2227
|
end
|
1438
|
-
def self.new(cardholder:, merchant:, settlement:); end
|
1439
2228
|
|
1440
2229
|
sig do
|
1441
|
-
override
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
|
1446
|
-
|
1447
|
-
|
1448
|
-
|
2230
|
+
override.returns(
|
2231
|
+
{
|
2232
|
+
cardholder: Lithic::Transaction::Event::Amounts::Cardholder,
|
2233
|
+
merchant: Lithic::Transaction::Event::Amounts::Merchant,
|
2234
|
+
settlement:
|
2235
|
+
T.nilable(Lithic::Transaction::Event::Amounts::Settlement)
|
2236
|
+
}
|
2237
|
+
)
|
2238
|
+
end
|
2239
|
+
def to_hash
|
1449
2240
|
end
|
1450
|
-
def to_hash; end
|
1451
2241
|
|
1452
2242
|
class Cardholder < Lithic::Internal::Type::BaseModel
|
2243
|
+
OrHash =
|
2244
|
+
T.type_alias do
|
2245
|
+
T.any(
|
2246
|
+
Lithic::Transaction::Event::Amounts::Cardholder,
|
2247
|
+
Lithic::Internal::AnyHash
|
2248
|
+
)
|
2249
|
+
end
|
2250
|
+
|
1453
2251
|
# Amount of the event in the cardholder billing currency.
|
1454
2252
|
sig { returns(Integer) }
|
1455
2253
|
attr_accessor :amount
|
@@ -1464,7 +2262,11 @@ module Lithic
|
|
1464
2262
|
attr_accessor :currency
|
1465
2263
|
|
1466
2264
|
sig do
|
1467
|
-
params(
|
2265
|
+
params(
|
2266
|
+
amount: Integer,
|
2267
|
+
conversion_rate: String,
|
2268
|
+
currency: String
|
2269
|
+
).returns(T.attached_class)
|
1468
2270
|
end
|
1469
2271
|
def self.new(
|
1470
2272
|
# Amount of the event in the cardholder billing currency.
|
@@ -1474,12 +2276,27 @@ module Lithic
|
|
1474
2276
|
conversion_rate:,
|
1475
2277
|
# 3-character alphabetic ISO 4217 currency
|
1476
2278
|
currency:
|
1477
|
-
)
|
1478
|
-
|
1479
|
-
|
2279
|
+
)
|
2280
|
+
end
|
2281
|
+
|
2282
|
+
sig do
|
2283
|
+
override.returns(
|
2284
|
+
{ amount: Integer, conversion_rate: String, currency: String }
|
2285
|
+
)
|
2286
|
+
end
|
2287
|
+
def to_hash
|
2288
|
+
end
|
1480
2289
|
end
|
1481
2290
|
|
1482
2291
|
class Merchant < Lithic::Internal::Type::BaseModel
|
2292
|
+
OrHash =
|
2293
|
+
T.type_alias do
|
2294
|
+
T.any(
|
2295
|
+
Lithic::Transaction::Event::Amounts::Merchant,
|
2296
|
+
Lithic::Internal::AnyHash
|
2297
|
+
)
|
2298
|
+
end
|
2299
|
+
|
1483
2300
|
# Amount of the event in the merchant currency.
|
1484
2301
|
sig { returns(Integer) }
|
1485
2302
|
attr_accessor :amount
|
@@ -1488,18 +2305,33 @@ module Lithic
|
|
1488
2305
|
sig { returns(String) }
|
1489
2306
|
attr_accessor :currency
|
1490
2307
|
|
1491
|
-
sig
|
2308
|
+
sig do
|
2309
|
+
params(amount: Integer, currency: String).returns(
|
2310
|
+
T.attached_class
|
2311
|
+
)
|
2312
|
+
end
|
1492
2313
|
def self.new(
|
1493
2314
|
# Amount of the event in the merchant currency.
|
1494
2315
|
amount:,
|
1495
2316
|
# 3-character alphabetic ISO 4217 currency
|
1496
2317
|
currency:
|
1497
|
-
)
|
1498
|
-
|
1499
|
-
|
2318
|
+
)
|
2319
|
+
end
|
2320
|
+
|
2321
|
+
sig { override.returns({ amount: Integer, currency: String }) }
|
2322
|
+
def to_hash
|
2323
|
+
end
|
1500
2324
|
end
|
1501
2325
|
|
1502
2326
|
class Settlement < Lithic::Internal::Type::BaseModel
|
2327
|
+
OrHash =
|
2328
|
+
T.type_alias do
|
2329
|
+
T.any(
|
2330
|
+
Lithic::Transaction::Event::Amounts::Settlement,
|
2331
|
+
Lithic::Internal::AnyHash
|
2332
|
+
)
|
2333
|
+
end
|
2334
|
+
|
1503
2335
|
# Amount of the event, if it is financial, in the settlement currency.
|
1504
2336
|
# Non-financial events do not contain this amount because they do not move funds.
|
1505
2337
|
sig { returns(Integer) }
|
@@ -1514,7 +2346,11 @@ module Lithic
|
|
1514
2346
|
attr_accessor :currency
|
1515
2347
|
|
1516
2348
|
sig do
|
1517
|
-
params(
|
2349
|
+
params(
|
2350
|
+
amount: Integer,
|
2351
|
+
conversion_rate: String,
|
2352
|
+
currency: String
|
2353
|
+
).returns(T.attached_class)
|
1518
2354
|
end
|
1519
2355
|
def self.new(
|
1520
2356
|
# Amount of the event, if it is financial, in the settlement currency.
|
@@ -1524,190 +2360,396 @@ module Lithic
|
|
1524
2360
|
conversion_rate:,
|
1525
2361
|
# 3-character alphabetic ISO 4217 currency
|
1526
2362
|
currency:
|
1527
|
-
)
|
1528
|
-
|
1529
|
-
|
2363
|
+
)
|
2364
|
+
end
|
2365
|
+
|
2366
|
+
sig do
|
2367
|
+
override.returns(
|
2368
|
+
{ amount: Integer, conversion_rate: String, currency: String }
|
2369
|
+
)
|
2370
|
+
end
|
2371
|
+
def to_hash
|
2372
|
+
end
|
1530
2373
|
end
|
1531
2374
|
end
|
1532
2375
|
|
1533
2376
|
module DetailedResult
|
1534
2377
|
extend Lithic::Internal::Type::Enum
|
1535
2378
|
|
1536
|
-
TaggedSymbol =
|
2379
|
+
TaggedSymbol =
|
2380
|
+
T.type_alias do
|
2381
|
+
T.all(Symbol, Lithic::Transaction::Event::DetailedResult)
|
2382
|
+
end
|
1537
2383
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1538
2384
|
|
1539
2385
|
ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED =
|
1540
2386
|
T.let(
|
1541
2387
|
:ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED,
|
1542
|
-
Lithic::
|
2388
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
1543
2389
|
)
|
1544
2390
|
ACCOUNT_DELINQUENT =
|
1545
|
-
T.let(
|
2391
|
+
T.let(
|
2392
|
+
:ACCOUNT_DELINQUENT,
|
2393
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2394
|
+
)
|
1546
2395
|
ACCOUNT_INACTIVE =
|
1547
|
-
T.let(
|
2396
|
+
T.let(
|
2397
|
+
:ACCOUNT_INACTIVE,
|
2398
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2399
|
+
)
|
1548
2400
|
ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED =
|
1549
2401
|
T.let(
|
1550
2402
|
:ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED,
|
1551
|
-
Lithic::
|
2403
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
1552
2404
|
)
|
1553
2405
|
ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED =
|
1554
2406
|
T.let(
|
1555
2407
|
:ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED,
|
1556
|
-
Lithic::
|
2408
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
1557
2409
|
)
|
1558
2410
|
ACCOUNT_UNDER_REVIEW =
|
1559
|
-
T.let(
|
2411
|
+
T.let(
|
2412
|
+
:ACCOUNT_UNDER_REVIEW,
|
2413
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2414
|
+
)
|
1560
2415
|
ADDRESS_INCORRECT =
|
1561
|
-
T.let(
|
1562
|
-
|
2416
|
+
T.let(
|
2417
|
+
:ADDRESS_INCORRECT,
|
2418
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2419
|
+
)
|
2420
|
+
APPROVED =
|
2421
|
+
T.let(
|
2422
|
+
:APPROVED,
|
2423
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2424
|
+
)
|
1563
2425
|
AUTH_RULE_ALLOWED_COUNTRY =
|
1564
|
-
T.let(
|
2426
|
+
T.let(
|
2427
|
+
:AUTH_RULE_ALLOWED_COUNTRY,
|
2428
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2429
|
+
)
|
1565
2430
|
AUTH_RULE_ALLOWED_MCC =
|
1566
|
-
T.let(
|
2431
|
+
T.let(
|
2432
|
+
:AUTH_RULE_ALLOWED_MCC,
|
2433
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2434
|
+
)
|
1567
2435
|
AUTH_RULE_BLOCKED_COUNTRY =
|
1568
|
-
T.let(
|
2436
|
+
T.let(
|
2437
|
+
:AUTH_RULE_BLOCKED_COUNTRY,
|
2438
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2439
|
+
)
|
1569
2440
|
AUTH_RULE_BLOCKED_MCC =
|
1570
|
-
T.let(
|
1571
|
-
|
2441
|
+
T.let(
|
2442
|
+
:AUTH_RULE_BLOCKED_MCC,
|
2443
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2444
|
+
)
|
2445
|
+
CARD_CLOSED =
|
2446
|
+
T.let(
|
2447
|
+
:CARD_CLOSED,
|
2448
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2449
|
+
)
|
1572
2450
|
CARD_CRYPTOGRAM_VALIDATION_FAILURE =
|
1573
2451
|
T.let(
|
1574
2452
|
:CARD_CRYPTOGRAM_VALIDATION_FAILURE,
|
1575
|
-
Lithic::
|
2453
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2454
|
+
)
|
2455
|
+
CARD_EXPIRED =
|
2456
|
+
T.let(
|
2457
|
+
:CARD_EXPIRED,
|
2458
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
1576
2459
|
)
|
1577
|
-
CARD_EXPIRED = T.let(:CARD_EXPIRED, Lithic::Models::Transaction::Event::DetailedResult::TaggedSymbol)
|
1578
2460
|
CARD_EXPIRY_DATE_INCORRECT =
|
1579
|
-
T.let(
|
1580
|
-
|
2461
|
+
T.let(
|
2462
|
+
:CARD_EXPIRY_DATE_INCORRECT,
|
2463
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2464
|
+
)
|
2465
|
+
CARD_INVALID =
|
2466
|
+
T.let(
|
2467
|
+
:CARD_INVALID,
|
2468
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2469
|
+
)
|
1581
2470
|
CARD_NOT_ACTIVATED =
|
1582
|
-
T.let(
|
1583
|
-
|
2471
|
+
T.let(
|
2472
|
+
:CARD_NOT_ACTIVATED,
|
2473
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2474
|
+
)
|
2475
|
+
CARD_PAUSED =
|
2476
|
+
T.let(
|
2477
|
+
:CARD_PAUSED,
|
2478
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2479
|
+
)
|
1584
2480
|
CARD_PIN_INCORRECT =
|
1585
|
-
T.let(
|
2481
|
+
T.let(
|
2482
|
+
:CARD_PIN_INCORRECT,
|
2483
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2484
|
+
)
|
1586
2485
|
CARD_RESTRICTED =
|
1587
|
-
T.let(
|
2486
|
+
T.let(
|
2487
|
+
:CARD_RESTRICTED,
|
2488
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2489
|
+
)
|
1588
2490
|
CARD_SECURITY_CODE_INCORRECT =
|
1589
|
-
T.let(
|
2491
|
+
T.let(
|
2492
|
+
:CARD_SECURITY_CODE_INCORRECT,
|
2493
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2494
|
+
)
|
1590
2495
|
CARD_SPEND_LIMIT_EXCEEDED =
|
1591
|
-
T.let(
|
2496
|
+
T.let(
|
2497
|
+
:CARD_SPEND_LIMIT_EXCEEDED,
|
2498
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2499
|
+
)
|
1592
2500
|
CONTACT_CARD_ISSUER =
|
1593
|
-
T.let(
|
2501
|
+
T.let(
|
2502
|
+
:CONTACT_CARD_ISSUER,
|
2503
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2504
|
+
)
|
1594
2505
|
CUSTOMER_ASA_TIMEOUT =
|
1595
|
-
T.let(
|
2506
|
+
T.let(
|
2507
|
+
:CUSTOMER_ASA_TIMEOUT,
|
2508
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2509
|
+
)
|
1596
2510
|
CUSTOM_ASA_RESULT =
|
1597
|
-
T.let(
|
1598
|
-
|
1599
|
-
|
2511
|
+
T.let(
|
2512
|
+
:CUSTOM_ASA_RESULT,
|
2513
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2514
|
+
)
|
2515
|
+
DECLINED =
|
2516
|
+
T.let(
|
2517
|
+
:DECLINED,
|
2518
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2519
|
+
)
|
2520
|
+
DO_NOT_HONOR =
|
2521
|
+
T.let(
|
2522
|
+
:DO_NOT_HONOR,
|
2523
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2524
|
+
)
|
1600
2525
|
DRIVER_NUMBER_INVALID =
|
1601
|
-
T.let(
|
1602
|
-
|
2526
|
+
T.let(
|
2527
|
+
:DRIVER_NUMBER_INVALID,
|
2528
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2529
|
+
)
|
2530
|
+
FORMAT_ERROR =
|
2531
|
+
T.let(
|
2532
|
+
:FORMAT_ERROR,
|
2533
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2534
|
+
)
|
1603
2535
|
INSUFFICIENT_FUNDING_SOURCE_BALANCE =
|
1604
2536
|
T.let(
|
1605
2537
|
:INSUFFICIENT_FUNDING_SOURCE_BALANCE,
|
1606
|
-
Lithic::
|
2538
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
1607
2539
|
)
|
1608
2540
|
INSUFFICIENT_FUNDS =
|
1609
|
-
T.let(
|
2541
|
+
T.let(
|
2542
|
+
:INSUFFICIENT_FUNDS,
|
2543
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2544
|
+
)
|
1610
2545
|
LITHIC_SYSTEM_ERROR =
|
1611
|
-
T.let(
|
2546
|
+
T.let(
|
2547
|
+
:LITHIC_SYSTEM_ERROR,
|
2548
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2549
|
+
)
|
1612
2550
|
LITHIC_SYSTEM_RATE_LIMIT =
|
1613
|
-
T.let(
|
2551
|
+
T.let(
|
2552
|
+
:LITHIC_SYSTEM_RATE_LIMIT,
|
2553
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2554
|
+
)
|
1614
2555
|
MALFORMED_ASA_RESPONSE =
|
1615
|
-
T.let(
|
2556
|
+
T.let(
|
2557
|
+
:MALFORMED_ASA_RESPONSE,
|
2558
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2559
|
+
)
|
1616
2560
|
MERCHANT_INVALID =
|
1617
|
-
T.let(
|
2561
|
+
T.let(
|
2562
|
+
:MERCHANT_INVALID,
|
2563
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2564
|
+
)
|
1618
2565
|
MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE =
|
1619
2566
|
T.let(
|
1620
2567
|
:MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE,
|
1621
|
-
Lithic::
|
2568
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
1622
2569
|
)
|
1623
2570
|
MERCHANT_NOT_PERMITTED =
|
1624
|
-
T.let(
|
2571
|
+
T.let(
|
2572
|
+
:MERCHANT_NOT_PERMITTED,
|
2573
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2574
|
+
)
|
1625
2575
|
OVER_REVERSAL_ATTEMPTED =
|
1626
|
-
T.let(
|
1627
|
-
|
2576
|
+
T.let(
|
2577
|
+
:OVER_REVERSAL_ATTEMPTED,
|
2578
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2579
|
+
)
|
2580
|
+
PIN_BLOCKED =
|
2581
|
+
T.let(
|
2582
|
+
:PIN_BLOCKED,
|
2583
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2584
|
+
)
|
1628
2585
|
PROGRAM_CARD_SPEND_LIMIT_EXCEEDED =
|
1629
2586
|
T.let(
|
1630
2587
|
:PROGRAM_CARD_SPEND_LIMIT_EXCEEDED,
|
1631
|
-
Lithic::
|
2588
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
1632
2589
|
)
|
1633
2590
|
PROGRAM_SUSPENDED =
|
1634
|
-
T.let(
|
2591
|
+
T.let(
|
2592
|
+
:PROGRAM_SUSPENDED,
|
2593
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2594
|
+
)
|
1635
2595
|
PROGRAM_USAGE_RESTRICTION =
|
1636
|
-
T.let(
|
2596
|
+
T.let(
|
2597
|
+
:PROGRAM_USAGE_RESTRICTION,
|
2598
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2599
|
+
)
|
1637
2600
|
REVERSAL_UNMATCHED =
|
1638
|
-
T.let(
|
2601
|
+
T.let(
|
2602
|
+
:REVERSAL_UNMATCHED,
|
2603
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2604
|
+
)
|
1639
2605
|
SECURITY_VIOLATION =
|
1640
|
-
T.let(
|
2606
|
+
T.let(
|
2607
|
+
:SECURITY_VIOLATION,
|
2608
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2609
|
+
)
|
1641
2610
|
SINGLE_USE_CARD_REATTEMPTED =
|
1642
|
-
T.let(
|
2611
|
+
T.let(
|
2612
|
+
:SINGLE_USE_CARD_REATTEMPTED,
|
2613
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2614
|
+
)
|
1643
2615
|
TRANSACTION_INVALID =
|
1644
|
-
T.let(
|
2616
|
+
T.let(
|
2617
|
+
:TRANSACTION_INVALID,
|
2618
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2619
|
+
)
|
1645
2620
|
TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL =
|
1646
2621
|
T.let(
|
1647
2622
|
:TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL,
|
1648
|
-
Lithic::
|
2623
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
1649
2624
|
)
|
1650
2625
|
TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER =
|
1651
2626
|
T.let(
|
1652
2627
|
:TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER,
|
1653
|
-
Lithic::
|
2628
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
1654
2629
|
)
|
1655
2630
|
TRANSACTION_PREVIOUSLY_COMPLETED =
|
1656
|
-
T.let(
|
2631
|
+
T.let(
|
2632
|
+
:TRANSACTION_PREVIOUSLY_COMPLETED,
|
2633
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2634
|
+
)
|
1657
2635
|
UNAUTHORIZED_MERCHANT =
|
1658
|
-
T.let(
|
2636
|
+
T.let(
|
2637
|
+
:UNAUTHORIZED_MERCHANT,
|
2638
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2639
|
+
)
|
1659
2640
|
VEHICLE_NUMBER_INVALID =
|
1660
|
-
T.let(
|
2641
|
+
T.let(
|
2642
|
+
:VEHICLE_NUMBER_INVALID,
|
2643
|
+
Lithic::Transaction::Event::DetailedResult::TaggedSymbol
|
2644
|
+
)
|
1661
2645
|
|
1662
|
-
sig
|
1663
|
-
|
2646
|
+
sig do
|
2647
|
+
override.returns(
|
2648
|
+
T::Array[Lithic::Transaction::Event::DetailedResult::TaggedSymbol]
|
2649
|
+
)
|
2650
|
+
end
|
2651
|
+
def self.values
|
2652
|
+
end
|
1664
2653
|
end
|
1665
2654
|
|
1666
2655
|
# Indicates whether the transaction event is a credit or debit to the account.
|
1667
2656
|
module EffectivePolarity
|
1668
2657
|
extend Lithic::Internal::Type::Enum
|
1669
2658
|
|
1670
|
-
TaggedSymbol =
|
2659
|
+
TaggedSymbol =
|
2660
|
+
T.type_alias do
|
2661
|
+
T.all(Symbol, Lithic::Transaction::Event::EffectivePolarity)
|
2662
|
+
end
|
1671
2663
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1672
2664
|
|
1673
|
-
CREDIT =
|
1674
|
-
|
2665
|
+
CREDIT =
|
2666
|
+
T.let(
|
2667
|
+
:CREDIT,
|
2668
|
+
Lithic::Transaction::Event::EffectivePolarity::TaggedSymbol
|
2669
|
+
)
|
2670
|
+
DEBIT =
|
2671
|
+
T.let(
|
2672
|
+
:DEBIT,
|
2673
|
+
Lithic::Transaction::Event::EffectivePolarity::TaggedSymbol
|
2674
|
+
)
|
1675
2675
|
|
1676
|
-
sig
|
1677
|
-
|
2676
|
+
sig do
|
2677
|
+
override.returns(
|
2678
|
+
T::Array[
|
2679
|
+
Lithic::Transaction::Event::EffectivePolarity::TaggedSymbol
|
2680
|
+
]
|
2681
|
+
)
|
2682
|
+
end
|
2683
|
+
def self.values
|
2684
|
+
end
|
1678
2685
|
end
|
1679
2686
|
|
1680
2687
|
class NetworkInfo < Lithic::Internal::Type::BaseModel
|
1681
|
-
|
2688
|
+
OrHash =
|
2689
|
+
T.type_alias do
|
2690
|
+
T.any(
|
2691
|
+
Lithic::Transaction::Event::NetworkInfo,
|
2692
|
+
Lithic::Internal::AnyHash
|
2693
|
+
)
|
2694
|
+
end
|
2695
|
+
|
2696
|
+
sig do
|
2697
|
+
returns(
|
2698
|
+
T.nilable(Lithic::Transaction::Event::NetworkInfo::Acquirer)
|
2699
|
+
)
|
2700
|
+
end
|
1682
2701
|
attr_reader :acquirer
|
1683
2702
|
|
1684
2703
|
sig do
|
1685
2704
|
params(
|
1686
|
-
acquirer:
|
1687
|
-
|
1688
|
-
|
2705
|
+
acquirer:
|
2706
|
+
T.nilable(
|
2707
|
+
Lithic::Transaction::Event::NetworkInfo::Acquirer::OrHash
|
2708
|
+
)
|
2709
|
+
).void
|
1689
2710
|
end
|
1690
2711
|
attr_writer :acquirer
|
1691
2712
|
|
1692
|
-
sig
|
1693
|
-
|
2713
|
+
sig do
|
2714
|
+
returns(T.nilable(Lithic::Transaction::Event::NetworkInfo::Amex))
|
2715
|
+
end
|
2716
|
+
attr_reader :amex
|
1694
2717
|
|
1695
2718
|
sig do
|
1696
2719
|
params(
|
1697
|
-
|
2720
|
+
amex:
|
2721
|
+
T.nilable(Lithic::Transaction::Event::NetworkInfo::Amex::OrHash)
|
2722
|
+
).void
|
2723
|
+
end
|
2724
|
+
attr_writer :amex
|
2725
|
+
|
2726
|
+
sig do
|
2727
|
+
returns(
|
2728
|
+
T.nilable(Lithic::Transaction::Event::NetworkInfo::Mastercard)
|
1698
2729
|
)
|
1699
|
-
|
2730
|
+
end
|
2731
|
+
attr_reader :mastercard
|
2732
|
+
|
2733
|
+
sig do
|
2734
|
+
params(
|
2735
|
+
mastercard:
|
2736
|
+
T.nilable(
|
2737
|
+
Lithic::Transaction::Event::NetworkInfo::Mastercard::OrHash
|
2738
|
+
)
|
2739
|
+
).void
|
1700
2740
|
end
|
1701
2741
|
attr_writer :mastercard
|
1702
2742
|
|
1703
|
-
sig
|
2743
|
+
sig do
|
2744
|
+
returns(T.nilable(Lithic::Transaction::Event::NetworkInfo::Visa))
|
2745
|
+
end
|
1704
2746
|
attr_reader :visa
|
1705
2747
|
|
1706
2748
|
sig do
|
1707
2749
|
params(
|
1708
|
-
visa:
|
1709
|
-
|
1710
|
-
|
2750
|
+
visa:
|
2751
|
+
T.nilable(Lithic::Transaction::Event::NetworkInfo::Visa::OrHash)
|
2752
|
+
).void
|
1711
2753
|
end
|
1712
2754
|
attr_writer :visa
|
1713
2755
|
|
@@ -1722,27 +2764,51 @@ module Lithic
|
|
1722
2764
|
# for more details about these fields and how to use them.
|
1723
2765
|
sig do
|
1724
2766
|
params(
|
1725
|
-
acquirer:
|
1726
|
-
|
1727
|
-
|
1728
|
-
|
1729
|
-
|
2767
|
+
acquirer:
|
2768
|
+
T.nilable(
|
2769
|
+
Lithic::Transaction::Event::NetworkInfo::Acquirer::OrHash
|
2770
|
+
),
|
2771
|
+
amex:
|
2772
|
+
T.nilable(
|
2773
|
+
Lithic::Transaction::Event::NetworkInfo::Amex::OrHash
|
2774
|
+
),
|
2775
|
+
mastercard:
|
2776
|
+
T.nilable(
|
2777
|
+
Lithic::Transaction::Event::NetworkInfo::Mastercard::OrHash
|
2778
|
+
),
|
2779
|
+
visa:
|
2780
|
+
T.nilable(Lithic::Transaction::Event::NetworkInfo::Visa::OrHash)
|
2781
|
+
).returns(T.attached_class)
|
2782
|
+
end
|
2783
|
+
def self.new(acquirer:, amex:, mastercard:, visa:)
|
1730
2784
|
end
|
1731
|
-
def self.new(acquirer:, mastercard:, visa:); end
|
1732
2785
|
|
1733
2786
|
sig do
|
1734
|
-
override
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
2787
|
+
override.returns(
|
2788
|
+
{
|
2789
|
+
acquirer:
|
2790
|
+
T.nilable(Lithic::Transaction::Event::NetworkInfo::Acquirer),
|
2791
|
+
amex: T.nilable(Lithic::Transaction::Event::NetworkInfo::Amex),
|
2792
|
+
mastercard:
|
2793
|
+
T.nilable(
|
2794
|
+
Lithic::Transaction::Event::NetworkInfo::Mastercard
|
2795
|
+
),
|
2796
|
+
visa: T.nilable(Lithic::Transaction::Event::NetworkInfo::Visa)
|
2797
|
+
}
|
2798
|
+
)
|
2799
|
+
end
|
2800
|
+
def to_hash
|
1742
2801
|
end
|
1743
|
-
def to_hash; end
|
1744
2802
|
|
1745
2803
|
class Acquirer < Lithic::Internal::Type::BaseModel
|
2804
|
+
OrHash =
|
2805
|
+
T.type_alias do
|
2806
|
+
T.any(
|
2807
|
+
Lithic::Transaction::Event::NetworkInfo::Acquirer,
|
2808
|
+
Lithic::Internal::AnyHash
|
2809
|
+
)
|
2810
|
+
end
|
2811
|
+
|
1746
2812
|
# Identifier assigned by the acquirer, applicable to dual-message transactions
|
1747
2813
|
# only. The acquirer reference number (ARN) is only populated once a transaction
|
1748
2814
|
# has been cleared, and it is not available in all transactions (such as automated
|
@@ -1759,8 +2825,7 @@ module Lithic
|
|
1759
2825
|
params(
|
1760
2826
|
acquirer_reference_number: T.nilable(String),
|
1761
2827
|
retrieval_reference_number: T.nilable(String)
|
1762
|
-
)
|
1763
|
-
.returns(T.attached_class)
|
2828
|
+
).returns(T.attached_class)
|
1764
2829
|
end
|
1765
2830
|
def self.new(
|
1766
2831
|
# Identifier assigned by the acquirer, applicable to dual-message transactions
|
@@ -1771,18 +2836,83 @@ module Lithic
|
|
1771
2836
|
acquirer_reference_number:,
|
1772
2837
|
# Identifier assigned by the acquirer.
|
1773
2838
|
retrieval_reference_number:
|
1774
|
-
)
|
2839
|
+
)
|
2840
|
+
end
|
2841
|
+
|
2842
|
+
sig do
|
2843
|
+
override.returns(
|
2844
|
+
{
|
2845
|
+
acquirer_reference_number: T.nilable(String),
|
2846
|
+
retrieval_reference_number: T.nilable(String)
|
2847
|
+
}
|
2848
|
+
)
|
2849
|
+
end
|
2850
|
+
def to_hash
|
2851
|
+
end
|
2852
|
+
end
|
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
|
+
|
1775
2876
|
sig do
|
1776
|
-
|
1777
|
-
.
|
1778
|
-
|
1779
|
-
|
1780
|
-
|
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
|
1781
2904
|
end
|
1782
|
-
def to_hash; end
|
1783
2905
|
end
|
1784
2906
|
|
1785
2907
|
class Mastercard < Lithic::Internal::Type::BaseModel
|
2908
|
+
OrHash =
|
2909
|
+
T.type_alias do
|
2910
|
+
T.any(
|
2911
|
+
Lithic::Transaction::Event::NetworkInfo::Mastercard,
|
2912
|
+
Lithic::Internal::AnyHash
|
2913
|
+
)
|
2914
|
+
end
|
2915
|
+
|
1786
2916
|
# Identifier assigned by Mastercard. Guaranteed by Mastercard to be unique for any
|
1787
2917
|
# transaction within a specific financial network on any processing day.
|
1788
2918
|
sig { returns(T.nilable(String)) }
|
@@ -1819,8 +2949,7 @@ module Lithic
|
|
1819
2949
|
original_banknet_reference_number: T.nilable(String),
|
1820
2950
|
original_switch_serial_number: T.nilable(String),
|
1821
2951
|
switch_serial_number: T.nilable(String)
|
1822
|
-
)
|
1823
|
-
.returns(T.attached_class)
|
2952
|
+
).returns(T.attached_class)
|
1824
2953
|
end
|
1825
2954
|
def self.new(
|
1826
2955
|
# Identifier assigned by Mastercard. Guaranteed by Mastercard to be unique for any
|
@@ -1845,22 +2974,32 @@ module Lithic
|
|
1845
2974
|
# Identifier assigned by Mastercard, applicable to single-message transactions
|
1846
2975
|
# only.
|
1847
2976
|
switch_serial_number:
|
1848
|
-
)
|
2977
|
+
)
|
2978
|
+
end
|
2979
|
+
|
1849
2980
|
sig do
|
1850
|
-
override
|
1851
|
-
|
1852
|
-
|
1853
|
-
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1858
|
-
|
2981
|
+
override.returns(
|
2982
|
+
{
|
2983
|
+
banknet_reference_number: T.nilable(String),
|
2984
|
+
original_banknet_reference_number: T.nilable(String),
|
2985
|
+
original_switch_serial_number: T.nilable(String),
|
2986
|
+
switch_serial_number: T.nilable(String)
|
2987
|
+
}
|
2988
|
+
)
|
2989
|
+
end
|
2990
|
+
def to_hash
|
1859
2991
|
end
|
1860
|
-
def to_hash; end
|
1861
2992
|
end
|
1862
2993
|
|
1863
2994
|
class Visa < Lithic::Internal::Type::BaseModel
|
2995
|
+
OrHash =
|
2996
|
+
T.type_alias do
|
2997
|
+
T.any(
|
2998
|
+
Lithic::Transaction::Event::NetworkInfo::Visa,
|
2999
|
+
Lithic::Internal::AnyHash
|
3000
|
+
)
|
3001
|
+
end
|
3002
|
+
|
1864
3003
|
# Identifier assigned by Visa. Matches the `transaction_id` of a prior related
|
1865
3004
|
# event. May be populated in incremental authorizations (authorization requests
|
1866
3005
|
# that augment a previously authorized amount), authorization advices, financial
|
@@ -1875,8 +3014,10 @@ module Lithic
|
|
1875
3014
|
attr_accessor :transaction_id
|
1876
3015
|
|
1877
3016
|
sig do
|
1878
|
-
params(
|
1879
|
-
.
|
3017
|
+
params(
|
3018
|
+
original_transaction_id: T.nilable(String),
|
3019
|
+
transaction_id: T.nilable(String)
|
3020
|
+
).returns(T.attached_class)
|
1880
3021
|
end
|
1881
3022
|
def self.new(
|
1882
3023
|
# Identifier assigned by Visa. Matches the `transaction_id` of a prior related
|
@@ -1888,7 +3029,9 @@ module Lithic
|
|
1888
3029
|
# Guaranteed by Visa to be unique for each original authorization and financial
|
1889
3030
|
# authorization.
|
1890
3031
|
transaction_id:
|
1891
|
-
)
|
3032
|
+
)
|
3033
|
+
end
|
3034
|
+
|
1892
3035
|
sig do
|
1893
3036
|
override.returns(
|
1894
3037
|
{
|
@@ -1897,56 +3040,146 @@ module Lithic
|
|
1897
3040
|
}
|
1898
3041
|
)
|
1899
3042
|
end
|
1900
|
-
def to_hash
|
3043
|
+
def to_hash
|
3044
|
+
end
|
1901
3045
|
end
|
1902
3046
|
end
|
1903
3047
|
|
1904
3048
|
module Result
|
1905
3049
|
extend Lithic::Internal::Type::Enum
|
1906
3050
|
|
1907
|
-
TaggedSymbol =
|
3051
|
+
TaggedSymbol =
|
3052
|
+
T.type_alias { T.all(Symbol, Lithic::Transaction::Event::Result) }
|
1908
3053
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
1909
3054
|
|
1910
3055
|
ACCOUNT_STATE_TRANSACTION_FAIL =
|
1911
|
-
T.let(
|
1912
|
-
|
3056
|
+
T.let(
|
3057
|
+
:ACCOUNT_STATE_TRANSACTION_FAIL,
|
3058
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3059
|
+
)
|
3060
|
+
APPROVED =
|
3061
|
+
T.let(:APPROVED, Lithic::Transaction::Event::Result::TaggedSymbol)
|
1913
3062
|
BANK_CONNECTION_ERROR =
|
1914
|
-
T.let(
|
1915
|
-
|
1916
|
-
|
1917
|
-
|
1918
|
-
|
1919
|
-
|
1920
|
-
|
1921
|
-
|
1922
|
-
|
3063
|
+
T.let(
|
3064
|
+
:BANK_CONNECTION_ERROR,
|
3065
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3066
|
+
)
|
3067
|
+
BANK_NOT_VERIFIED =
|
3068
|
+
T.let(
|
3069
|
+
:BANK_NOT_VERIFIED,
|
3070
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3071
|
+
)
|
3072
|
+
CARD_CLOSED =
|
3073
|
+
T.let(
|
3074
|
+
:CARD_CLOSED,
|
3075
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3076
|
+
)
|
3077
|
+
CARD_PAUSED =
|
3078
|
+
T.let(
|
3079
|
+
:CARD_PAUSED,
|
3080
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3081
|
+
)
|
3082
|
+
DECLINED =
|
3083
|
+
T.let(:DECLINED, Lithic::Transaction::Event::Result::TaggedSymbol)
|
3084
|
+
FRAUD_ADVICE =
|
3085
|
+
T.let(
|
3086
|
+
:FRAUD_ADVICE,
|
3087
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3088
|
+
)
|
3089
|
+
IGNORED_TTL_EXPIRY =
|
3090
|
+
T.let(
|
3091
|
+
:IGNORED_TTL_EXPIRY,
|
3092
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3093
|
+
)
|
3094
|
+
INACTIVE_ACCOUNT =
|
3095
|
+
T.let(
|
3096
|
+
:INACTIVE_ACCOUNT,
|
3097
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3098
|
+
)
|
3099
|
+
INCORRECT_PIN =
|
3100
|
+
T.let(
|
3101
|
+
:INCORRECT_PIN,
|
3102
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3103
|
+
)
|
1923
3104
|
INVALID_CARD_DETAILS =
|
1924
|
-
T.let(
|
1925
|
-
|
3105
|
+
T.let(
|
3106
|
+
:INVALID_CARD_DETAILS,
|
3107
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3108
|
+
)
|
3109
|
+
INSUFFICIENT_FUNDS =
|
3110
|
+
T.let(
|
3111
|
+
:INSUFFICIENT_FUNDS,
|
3112
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3113
|
+
)
|
1926
3114
|
INSUFFICIENT_FUNDS_PRELOAD =
|
1927
|
-
T.let(
|
3115
|
+
T.let(
|
3116
|
+
:INSUFFICIENT_FUNDS_PRELOAD,
|
3117
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3118
|
+
)
|
1928
3119
|
INVALID_TRANSACTION =
|
1929
|
-
T.let(
|
1930
|
-
|
1931
|
-
|
3120
|
+
T.let(
|
3121
|
+
:INVALID_TRANSACTION,
|
3122
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3123
|
+
)
|
3124
|
+
MERCHANT_BLACKLIST =
|
3125
|
+
T.let(
|
3126
|
+
:MERCHANT_BLACKLIST,
|
3127
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3128
|
+
)
|
3129
|
+
ORIGINAL_NOT_FOUND =
|
3130
|
+
T.let(
|
3131
|
+
:ORIGINAL_NOT_FOUND,
|
3132
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3133
|
+
)
|
1932
3134
|
PREVIOUSLY_COMPLETED =
|
1933
|
-
T.let(
|
3135
|
+
T.let(
|
3136
|
+
:PREVIOUSLY_COMPLETED,
|
3137
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3138
|
+
)
|
1934
3139
|
SINGLE_USE_RECHARGED =
|
1935
|
-
T.let(
|
3140
|
+
T.let(
|
3141
|
+
:SINGLE_USE_RECHARGED,
|
3142
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3143
|
+
)
|
1936
3144
|
SWITCH_INOPERATIVE_ADVICE =
|
1937
|
-
T.let(
|
3145
|
+
T.let(
|
3146
|
+
:SWITCH_INOPERATIVE_ADVICE,
|
3147
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3148
|
+
)
|
1938
3149
|
UNAUTHORIZED_MERCHANT =
|
1939
|
-
T.let(
|
3150
|
+
T.let(
|
3151
|
+
:UNAUTHORIZED_MERCHANT,
|
3152
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3153
|
+
)
|
1940
3154
|
UNKNOWN_HOST_TIMEOUT =
|
1941
|
-
T.let(
|
3155
|
+
T.let(
|
3156
|
+
:UNKNOWN_HOST_TIMEOUT,
|
3157
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3158
|
+
)
|
1942
3159
|
USER_TRANSACTION_LIMIT =
|
1943
|
-
T.let(
|
3160
|
+
T.let(
|
3161
|
+
:USER_TRANSACTION_LIMIT,
|
3162
|
+
Lithic::Transaction::Event::Result::TaggedSymbol
|
3163
|
+
)
|
1944
3164
|
|
1945
|
-
sig
|
1946
|
-
|
3165
|
+
sig do
|
3166
|
+
override.returns(
|
3167
|
+
T::Array[Lithic::Transaction::Event::Result::TaggedSymbol]
|
3168
|
+
)
|
3169
|
+
end
|
3170
|
+
def self.values
|
3171
|
+
end
|
1947
3172
|
end
|
1948
3173
|
|
1949
3174
|
class RuleResult < Lithic::Internal::Type::BaseModel
|
3175
|
+
OrHash =
|
3176
|
+
T.type_alias do
|
3177
|
+
T.any(
|
3178
|
+
Lithic::Transaction::Event::RuleResult,
|
3179
|
+
Lithic::Internal::AnyHash
|
3180
|
+
)
|
3181
|
+
end
|
3182
|
+
|
1950
3183
|
# The Auth Rule Token associated with the rule from which the decline originated.
|
1951
3184
|
# If this is set to null, then the decline was not associated with a
|
1952
3185
|
# customer-configured Auth Rule. This may happen in cases where a transaction is
|
@@ -1963,7 +3196,11 @@ module Lithic
|
|
1963
3196
|
attr_accessor :name
|
1964
3197
|
|
1965
3198
|
# The detailed_result associated with this rule's decline.
|
1966
|
-
sig
|
3199
|
+
sig do
|
3200
|
+
returns(
|
3201
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3202
|
+
)
|
3203
|
+
end
|
1967
3204
|
attr_accessor :result
|
1968
3205
|
|
1969
3206
|
sig do
|
@@ -1971,9 +3208,8 @@ module Lithic
|
|
1971
3208
|
auth_rule_token: T.nilable(String),
|
1972
3209
|
explanation: T.nilable(String),
|
1973
3210
|
name: T.nilable(String),
|
1974
|
-
result: Lithic::
|
1975
|
-
)
|
1976
|
-
.returns(T.attached_class)
|
3211
|
+
result: Lithic::Transaction::Event::RuleResult::Result::OrSymbol
|
3212
|
+
).returns(T.attached_class)
|
1977
3213
|
end
|
1978
3214
|
def self.new(
|
1979
3215
|
# The Auth Rule Token associated with the rule from which the decline originated.
|
@@ -1987,155 +3223,303 @@ module Lithic
|
|
1987
3223
|
name:,
|
1988
3224
|
# The detailed_result associated with this rule's decline.
|
1989
3225
|
result:
|
1990
|
-
)
|
3226
|
+
)
|
3227
|
+
end
|
3228
|
+
|
1991
3229
|
sig do
|
1992
|
-
override
|
1993
|
-
|
1994
|
-
|
1995
|
-
|
1996
|
-
|
1997
|
-
|
1998
|
-
|
1999
|
-
|
2000
|
-
|
3230
|
+
override.returns(
|
3231
|
+
{
|
3232
|
+
auth_rule_token: T.nilable(String),
|
3233
|
+
explanation: T.nilable(String),
|
3234
|
+
name: T.nilable(String),
|
3235
|
+
result:
|
3236
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3237
|
+
}
|
3238
|
+
)
|
3239
|
+
end
|
3240
|
+
def to_hash
|
2001
3241
|
end
|
2002
|
-
def to_hash; end
|
2003
3242
|
|
2004
3243
|
# The detailed_result associated with this rule's decline.
|
2005
3244
|
module Result
|
2006
3245
|
extend Lithic::Internal::Type::Enum
|
2007
3246
|
|
2008
|
-
TaggedSymbol =
|
3247
|
+
TaggedSymbol =
|
3248
|
+
T.type_alias do
|
3249
|
+
T.all(Symbol, Lithic::Transaction::Event::RuleResult::Result)
|
3250
|
+
end
|
2009
3251
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
2010
3252
|
|
2011
3253
|
ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED =
|
2012
3254
|
T.let(
|
2013
3255
|
:ACCOUNT_DAILY_SPEND_LIMIT_EXCEEDED,
|
2014
|
-
Lithic::
|
3256
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
2015
3257
|
)
|
2016
3258
|
ACCOUNT_DELINQUENT =
|
2017
|
-
T.let(
|
3259
|
+
T.let(
|
3260
|
+
:ACCOUNT_DELINQUENT,
|
3261
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3262
|
+
)
|
2018
3263
|
ACCOUNT_INACTIVE =
|
2019
|
-
T.let(
|
3264
|
+
T.let(
|
3265
|
+
:ACCOUNT_INACTIVE,
|
3266
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3267
|
+
)
|
2020
3268
|
ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED =
|
2021
3269
|
T.let(
|
2022
3270
|
:ACCOUNT_LIFETIME_SPEND_LIMIT_EXCEEDED,
|
2023
|
-
Lithic::
|
3271
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
2024
3272
|
)
|
2025
3273
|
ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED =
|
2026
3274
|
T.let(
|
2027
3275
|
:ACCOUNT_MONTHLY_SPEND_LIMIT_EXCEEDED,
|
2028
|
-
Lithic::
|
3276
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
2029
3277
|
)
|
2030
3278
|
ACCOUNT_UNDER_REVIEW =
|
2031
|
-
T.let(
|
3279
|
+
T.let(
|
3280
|
+
:ACCOUNT_UNDER_REVIEW,
|
3281
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3282
|
+
)
|
2032
3283
|
ADDRESS_INCORRECT =
|
2033
|
-
T.let(
|
2034
|
-
|
3284
|
+
T.let(
|
3285
|
+
:ADDRESS_INCORRECT,
|
3286
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3287
|
+
)
|
3288
|
+
APPROVED =
|
3289
|
+
T.let(
|
3290
|
+
:APPROVED,
|
3291
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3292
|
+
)
|
2035
3293
|
AUTH_RULE_ALLOWED_COUNTRY =
|
2036
|
-
T.let(
|
3294
|
+
T.let(
|
3295
|
+
:AUTH_RULE_ALLOWED_COUNTRY,
|
3296
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3297
|
+
)
|
2037
3298
|
AUTH_RULE_ALLOWED_MCC =
|
2038
|
-
T.let(
|
3299
|
+
T.let(
|
3300
|
+
:AUTH_RULE_ALLOWED_MCC,
|
3301
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3302
|
+
)
|
2039
3303
|
AUTH_RULE_BLOCKED_COUNTRY =
|
2040
|
-
T.let(
|
3304
|
+
T.let(
|
3305
|
+
:AUTH_RULE_BLOCKED_COUNTRY,
|
3306
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3307
|
+
)
|
2041
3308
|
AUTH_RULE_BLOCKED_MCC =
|
2042
|
-
T.let(
|
2043
|
-
|
3309
|
+
T.let(
|
3310
|
+
:AUTH_RULE_BLOCKED_MCC,
|
3311
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3312
|
+
)
|
3313
|
+
CARD_CLOSED =
|
3314
|
+
T.let(
|
3315
|
+
:CARD_CLOSED,
|
3316
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3317
|
+
)
|
2044
3318
|
CARD_CRYPTOGRAM_VALIDATION_FAILURE =
|
2045
3319
|
T.let(
|
2046
3320
|
:CARD_CRYPTOGRAM_VALIDATION_FAILURE,
|
2047
|
-
Lithic::
|
3321
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3322
|
+
)
|
3323
|
+
CARD_EXPIRED =
|
3324
|
+
T.let(
|
3325
|
+
:CARD_EXPIRED,
|
3326
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
2048
3327
|
)
|
2049
|
-
CARD_EXPIRED = T.let(:CARD_EXPIRED, Lithic::Models::Transaction::Event::RuleResult::Result::TaggedSymbol)
|
2050
3328
|
CARD_EXPIRY_DATE_INCORRECT =
|
2051
|
-
T.let(
|
2052
|
-
|
3329
|
+
T.let(
|
3330
|
+
:CARD_EXPIRY_DATE_INCORRECT,
|
3331
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3332
|
+
)
|
3333
|
+
CARD_INVALID =
|
3334
|
+
T.let(
|
3335
|
+
:CARD_INVALID,
|
3336
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3337
|
+
)
|
2053
3338
|
CARD_NOT_ACTIVATED =
|
2054
|
-
T.let(
|
2055
|
-
|
3339
|
+
T.let(
|
3340
|
+
:CARD_NOT_ACTIVATED,
|
3341
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3342
|
+
)
|
3343
|
+
CARD_PAUSED =
|
3344
|
+
T.let(
|
3345
|
+
:CARD_PAUSED,
|
3346
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3347
|
+
)
|
2056
3348
|
CARD_PIN_INCORRECT =
|
2057
|
-
T.let(
|
3349
|
+
T.let(
|
3350
|
+
:CARD_PIN_INCORRECT,
|
3351
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3352
|
+
)
|
2058
3353
|
CARD_RESTRICTED =
|
2059
|
-
T.let(
|
3354
|
+
T.let(
|
3355
|
+
:CARD_RESTRICTED,
|
3356
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3357
|
+
)
|
2060
3358
|
CARD_SECURITY_CODE_INCORRECT =
|
2061
|
-
T.let(
|
3359
|
+
T.let(
|
3360
|
+
:CARD_SECURITY_CODE_INCORRECT,
|
3361
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3362
|
+
)
|
2062
3363
|
CARD_SPEND_LIMIT_EXCEEDED =
|
2063
|
-
T.let(
|
3364
|
+
T.let(
|
3365
|
+
:CARD_SPEND_LIMIT_EXCEEDED,
|
3366
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3367
|
+
)
|
2064
3368
|
CONTACT_CARD_ISSUER =
|
2065
|
-
T.let(
|
3369
|
+
T.let(
|
3370
|
+
:CONTACT_CARD_ISSUER,
|
3371
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3372
|
+
)
|
2066
3373
|
CUSTOMER_ASA_TIMEOUT =
|
2067
|
-
T.let(
|
3374
|
+
T.let(
|
3375
|
+
:CUSTOMER_ASA_TIMEOUT,
|
3376
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3377
|
+
)
|
2068
3378
|
CUSTOM_ASA_RESULT =
|
2069
|
-
T.let(
|
2070
|
-
|
2071
|
-
|
3379
|
+
T.let(
|
3380
|
+
:CUSTOM_ASA_RESULT,
|
3381
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3382
|
+
)
|
3383
|
+
DECLINED =
|
3384
|
+
T.let(
|
3385
|
+
:DECLINED,
|
3386
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3387
|
+
)
|
3388
|
+
DO_NOT_HONOR =
|
3389
|
+
T.let(
|
3390
|
+
:DO_NOT_HONOR,
|
3391
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3392
|
+
)
|
2072
3393
|
DRIVER_NUMBER_INVALID =
|
2073
|
-
T.let(
|
2074
|
-
|
3394
|
+
T.let(
|
3395
|
+
:DRIVER_NUMBER_INVALID,
|
3396
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3397
|
+
)
|
3398
|
+
FORMAT_ERROR =
|
3399
|
+
T.let(
|
3400
|
+
:FORMAT_ERROR,
|
3401
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3402
|
+
)
|
2075
3403
|
INSUFFICIENT_FUNDING_SOURCE_BALANCE =
|
2076
3404
|
T.let(
|
2077
3405
|
:INSUFFICIENT_FUNDING_SOURCE_BALANCE,
|
2078
|
-
Lithic::
|
3406
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
2079
3407
|
)
|
2080
3408
|
INSUFFICIENT_FUNDS =
|
2081
|
-
T.let(
|
3409
|
+
T.let(
|
3410
|
+
:INSUFFICIENT_FUNDS,
|
3411
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3412
|
+
)
|
2082
3413
|
LITHIC_SYSTEM_ERROR =
|
2083
|
-
T.let(
|
3414
|
+
T.let(
|
3415
|
+
:LITHIC_SYSTEM_ERROR,
|
3416
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3417
|
+
)
|
2084
3418
|
LITHIC_SYSTEM_RATE_LIMIT =
|
2085
|
-
T.let(
|
3419
|
+
T.let(
|
3420
|
+
:LITHIC_SYSTEM_RATE_LIMIT,
|
3421
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3422
|
+
)
|
2086
3423
|
MALFORMED_ASA_RESPONSE =
|
2087
|
-
T.let(
|
3424
|
+
T.let(
|
3425
|
+
:MALFORMED_ASA_RESPONSE,
|
3426
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3427
|
+
)
|
2088
3428
|
MERCHANT_INVALID =
|
2089
|
-
T.let(
|
3429
|
+
T.let(
|
3430
|
+
:MERCHANT_INVALID,
|
3431
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3432
|
+
)
|
2090
3433
|
MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE =
|
2091
3434
|
T.let(
|
2092
3435
|
:MERCHANT_LOCKED_CARD_ATTEMPTED_ELSEWHERE,
|
2093
|
-
Lithic::
|
3436
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
2094
3437
|
)
|
2095
3438
|
MERCHANT_NOT_PERMITTED =
|
2096
|
-
T.let(
|
3439
|
+
T.let(
|
3440
|
+
:MERCHANT_NOT_PERMITTED,
|
3441
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3442
|
+
)
|
2097
3443
|
OVER_REVERSAL_ATTEMPTED =
|
2098
|
-
T.let(
|
2099
|
-
|
3444
|
+
T.let(
|
3445
|
+
:OVER_REVERSAL_ATTEMPTED,
|
3446
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3447
|
+
)
|
3448
|
+
PIN_BLOCKED =
|
3449
|
+
T.let(
|
3450
|
+
:PIN_BLOCKED,
|
3451
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3452
|
+
)
|
2100
3453
|
PROGRAM_CARD_SPEND_LIMIT_EXCEEDED =
|
2101
3454
|
T.let(
|
2102
3455
|
:PROGRAM_CARD_SPEND_LIMIT_EXCEEDED,
|
2103
|
-
Lithic::
|
3456
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
2104
3457
|
)
|
2105
3458
|
PROGRAM_SUSPENDED =
|
2106
|
-
T.let(
|
3459
|
+
T.let(
|
3460
|
+
:PROGRAM_SUSPENDED,
|
3461
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3462
|
+
)
|
2107
3463
|
PROGRAM_USAGE_RESTRICTION =
|
2108
|
-
T.let(
|
3464
|
+
T.let(
|
3465
|
+
:PROGRAM_USAGE_RESTRICTION,
|
3466
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3467
|
+
)
|
2109
3468
|
REVERSAL_UNMATCHED =
|
2110
|
-
T.let(
|
3469
|
+
T.let(
|
3470
|
+
:REVERSAL_UNMATCHED,
|
3471
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3472
|
+
)
|
2111
3473
|
SECURITY_VIOLATION =
|
2112
|
-
T.let(
|
3474
|
+
T.let(
|
3475
|
+
:SECURITY_VIOLATION,
|
3476
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3477
|
+
)
|
2113
3478
|
SINGLE_USE_CARD_REATTEMPTED =
|
2114
|
-
T.let(
|
3479
|
+
T.let(
|
3480
|
+
:SINGLE_USE_CARD_REATTEMPTED,
|
3481
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3482
|
+
)
|
2115
3483
|
TRANSACTION_INVALID =
|
2116
|
-
T.let(
|
3484
|
+
T.let(
|
3485
|
+
:TRANSACTION_INVALID,
|
3486
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3487
|
+
)
|
2117
3488
|
TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL =
|
2118
3489
|
T.let(
|
2119
3490
|
:TRANSACTION_NOT_PERMITTED_TO_ACQUIRER_OR_TERMINAL,
|
2120
|
-
Lithic::
|
3491
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
2121
3492
|
)
|
2122
3493
|
TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER =
|
2123
3494
|
T.let(
|
2124
3495
|
:TRANSACTION_NOT_PERMITTED_TO_ISSUER_OR_CARDHOLDER,
|
2125
|
-
Lithic::
|
3496
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
2126
3497
|
)
|
2127
3498
|
TRANSACTION_PREVIOUSLY_COMPLETED =
|
2128
3499
|
T.let(
|
2129
3500
|
:TRANSACTION_PREVIOUSLY_COMPLETED,
|
2130
|
-
Lithic::
|
3501
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
2131
3502
|
)
|
2132
3503
|
UNAUTHORIZED_MERCHANT =
|
2133
|
-
T.let(
|
3504
|
+
T.let(
|
3505
|
+
:UNAUTHORIZED_MERCHANT,
|
3506
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3507
|
+
)
|
2134
3508
|
VEHICLE_NUMBER_INVALID =
|
2135
|
-
T.let(
|
3509
|
+
T.let(
|
3510
|
+
:VEHICLE_NUMBER_INVALID,
|
3511
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3512
|
+
)
|
2136
3513
|
|
2137
|
-
sig
|
2138
|
-
|
3514
|
+
sig do
|
3515
|
+
override.returns(
|
3516
|
+
T::Array[
|
3517
|
+
Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
|
3518
|
+
]
|
3519
|
+
)
|
3520
|
+
end
|
3521
|
+
def self.values
|
3522
|
+
end
|
2139
3523
|
end
|
2140
3524
|
end
|
2141
3525
|
|
@@ -2143,79 +3527,149 @@ module Lithic
|
|
2143
3527
|
module Type
|
2144
3528
|
extend Lithic::Internal::Type::Enum
|
2145
3529
|
|
2146
|
-
TaggedSymbol =
|
3530
|
+
TaggedSymbol =
|
3531
|
+
T.type_alias { T.all(Symbol, Lithic::Transaction::Event::Type) }
|
2147
3532
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
2148
3533
|
|
2149
|
-
AUTHORIZATION =
|
3534
|
+
AUTHORIZATION =
|
3535
|
+
T.let(
|
3536
|
+
:AUTHORIZATION,
|
3537
|
+
Lithic::Transaction::Event::Type::TaggedSymbol
|
3538
|
+
)
|
2150
3539
|
AUTHORIZATION_ADVICE =
|
2151
|
-
T.let(
|
3540
|
+
T.let(
|
3541
|
+
:AUTHORIZATION_ADVICE,
|
3542
|
+
Lithic::Transaction::Event::Type::TaggedSymbol
|
3543
|
+
)
|
2152
3544
|
AUTHORIZATION_EXPIRY =
|
2153
|
-
T.let(
|
3545
|
+
T.let(
|
3546
|
+
:AUTHORIZATION_EXPIRY,
|
3547
|
+
Lithic::Transaction::Event::Type::TaggedSymbol
|
3548
|
+
)
|
2154
3549
|
AUTHORIZATION_REVERSAL =
|
2155
|
-
T.let(
|
2156
|
-
|
2157
|
-
|
2158
|
-
|
2159
|
-
|
3550
|
+
T.let(
|
3551
|
+
:AUTHORIZATION_REVERSAL,
|
3552
|
+
Lithic::Transaction::Event::Type::TaggedSymbol
|
3553
|
+
)
|
3554
|
+
BALANCE_INQUIRY =
|
3555
|
+
T.let(
|
3556
|
+
:BALANCE_INQUIRY,
|
3557
|
+
Lithic::Transaction::Event::Type::TaggedSymbol
|
3558
|
+
)
|
3559
|
+
CLEARING =
|
3560
|
+
T.let(:CLEARING, Lithic::Transaction::Event::Type::TaggedSymbol)
|
3561
|
+
CORRECTION_CREDIT =
|
3562
|
+
T.let(
|
3563
|
+
:CORRECTION_CREDIT,
|
3564
|
+
Lithic::Transaction::Event::Type::TaggedSymbol
|
3565
|
+
)
|
3566
|
+
CORRECTION_DEBIT =
|
3567
|
+
T.let(
|
3568
|
+
:CORRECTION_DEBIT,
|
3569
|
+
Lithic::Transaction::Event::Type::TaggedSymbol
|
3570
|
+
)
|
2160
3571
|
CREDIT_AUTHORIZATION =
|
2161
|
-
T.let(
|
3572
|
+
T.let(
|
3573
|
+
:CREDIT_AUTHORIZATION,
|
3574
|
+
Lithic::Transaction::Event::Type::TaggedSymbol
|
3575
|
+
)
|
2162
3576
|
CREDIT_AUTHORIZATION_ADVICE =
|
2163
|
-
T.let(
|
3577
|
+
T.let(
|
3578
|
+
:CREDIT_AUTHORIZATION_ADVICE,
|
3579
|
+
Lithic::Transaction::Event::Type::TaggedSymbol
|
3580
|
+
)
|
2164
3581
|
FINANCIAL_AUTHORIZATION =
|
2165
|
-
T.let(
|
3582
|
+
T.let(
|
3583
|
+
:FINANCIAL_AUTHORIZATION,
|
3584
|
+
Lithic::Transaction::Event::Type::TaggedSymbol
|
3585
|
+
)
|
2166
3586
|
FINANCIAL_CREDIT_AUTHORIZATION =
|
2167
|
-
T.let(
|
2168
|
-
|
2169
|
-
|
3587
|
+
T.let(
|
3588
|
+
:FINANCIAL_CREDIT_AUTHORIZATION,
|
3589
|
+
Lithic::Transaction::Event::Type::TaggedSymbol
|
3590
|
+
)
|
3591
|
+
RETURN =
|
3592
|
+
T.let(:RETURN, Lithic::Transaction::Event::Type::TaggedSymbol)
|
3593
|
+
RETURN_REVERSAL =
|
3594
|
+
T.let(
|
3595
|
+
:RETURN_REVERSAL,
|
3596
|
+
Lithic::Transaction::Event::Type::TaggedSymbol
|
3597
|
+
)
|
2170
3598
|
|
2171
|
-
sig
|
2172
|
-
|
3599
|
+
sig do
|
3600
|
+
override.returns(
|
3601
|
+
T::Array[Lithic::Transaction::Event::Type::TaggedSymbol]
|
3602
|
+
)
|
3603
|
+
end
|
3604
|
+
def self.values
|
3605
|
+
end
|
2173
3606
|
end
|
2174
3607
|
|
2175
3608
|
class NetworkSpecificData < Lithic::Internal::Type::BaseModel
|
2176
|
-
|
3609
|
+
OrHash =
|
3610
|
+
T.type_alias do
|
3611
|
+
T.any(
|
3612
|
+
Lithic::Transaction::Event::NetworkSpecificData,
|
3613
|
+
Lithic::Internal::AnyHash
|
3614
|
+
)
|
3615
|
+
end
|
3616
|
+
|
3617
|
+
sig do
|
3618
|
+
returns(Lithic::Transaction::Event::NetworkSpecificData::Mastercard)
|
3619
|
+
end
|
2177
3620
|
attr_reader :mastercard
|
2178
3621
|
|
2179
3622
|
sig do
|
2180
3623
|
params(
|
2181
|
-
mastercard:
|
2182
|
-
|
2183
|
-
|
3624
|
+
mastercard:
|
3625
|
+
Lithic::Transaction::Event::NetworkSpecificData::Mastercard::OrHash
|
3626
|
+
).void
|
2184
3627
|
end
|
2185
3628
|
attr_writer :mastercard
|
2186
3629
|
|
2187
|
-
sig { returns(Lithic::
|
3630
|
+
sig { returns(Lithic::Transaction::Event::NetworkSpecificData::Visa) }
|
2188
3631
|
attr_reader :visa
|
2189
3632
|
|
2190
3633
|
sig do
|
2191
3634
|
params(
|
2192
|
-
visa:
|
2193
|
-
|
2194
|
-
|
3635
|
+
visa:
|
3636
|
+
Lithic::Transaction::Event::NetworkSpecificData::Visa::OrHash
|
3637
|
+
).void
|
2195
3638
|
end
|
2196
3639
|
attr_writer :visa
|
2197
3640
|
|
2198
3641
|
sig do
|
2199
3642
|
params(
|
2200
|
-
mastercard:
|
2201
|
-
|
2202
|
-
|
2203
|
-
|
3643
|
+
mastercard:
|
3644
|
+
Lithic::Transaction::Event::NetworkSpecificData::Mastercard::OrHash,
|
3645
|
+
visa:
|
3646
|
+
Lithic::Transaction::Event::NetworkSpecificData::Visa::OrHash
|
3647
|
+
).returns(T.attached_class)
|
3648
|
+
end
|
3649
|
+
def self.new(mastercard:, visa:)
|
2204
3650
|
end
|
2205
|
-
def self.new(mastercard:, visa:); end
|
2206
3651
|
|
2207
3652
|
sig do
|
2208
|
-
override
|
2209
|
-
|
2210
|
-
|
2211
|
-
|
2212
|
-
|
2213
|
-
|
2214
|
-
|
3653
|
+
override.returns(
|
3654
|
+
{
|
3655
|
+
mastercard:
|
3656
|
+
Lithic::Transaction::Event::NetworkSpecificData::Mastercard,
|
3657
|
+
visa: Lithic::Transaction::Event::NetworkSpecificData::Visa
|
3658
|
+
}
|
3659
|
+
)
|
3660
|
+
end
|
3661
|
+
def to_hash
|
2215
3662
|
end
|
2216
|
-
def to_hash; end
|
2217
3663
|
|
2218
3664
|
class Mastercard < Lithic::Internal::Type::BaseModel
|
3665
|
+
OrHash =
|
3666
|
+
T.type_alias do
|
3667
|
+
T.any(
|
3668
|
+
Lithic::Transaction::Event::NetworkSpecificData::Mastercard,
|
3669
|
+
Lithic::Internal::AnyHash
|
3670
|
+
)
|
3671
|
+
end
|
3672
|
+
|
2219
3673
|
# Indicates the electronic commerce security level and UCAF collection.
|
2220
3674
|
sig { returns(T.nilable(String)) }
|
2221
3675
|
attr_accessor :ecommerce_security_level_indicator
|
@@ -2226,7 +3680,9 @@ module Lithic
|
|
2226
3680
|
sig do
|
2227
3681
|
returns(
|
2228
3682
|
T.nilable(
|
2229
|
-
T::Array[
|
3683
|
+
T::Array[
|
3684
|
+
Lithic::Transaction::Event::NetworkSpecificData::Mastercard::OnBehalfServiceResult
|
3685
|
+
]
|
2230
3686
|
)
|
2231
3687
|
)
|
2232
3688
|
end
|
@@ -2239,17 +3695,14 @@ module Lithic
|
|
2239
3695
|
sig do
|
2240
3696
|
params(
|
2241
3697
|
ecommerce_security_level_indicator: T.nilable(String),
|
2242
|
-
on_behalf_service_result:
|
2243
|
-
T
|
2244
|
-
T
|
2245
|
-
Lithic::
|
2246
|
-
|
2247
|
-
|
2248
|
-
]
|
2249
|
-
),
|
3698
|
+
on_behalf_service_result:
|
3699
|
+
T.nilable(
|
3700
|
+
T::Array[
|
3701
|
+
Lithic::Transaction::Event::NetworkSpecificData::Mastercard::OnBehalfServiceResult::OrHash
|
3702
|
+
]
|
3703
|
+
),
|
2250
3704
|
transaction_type_identifier: T.nilable(String)
|
2251
|
-
)
|
2252
|
-
.returns(T.attached_class)
|
3705
|
+
).returns(T.attached_class)
|
2253
3706
|
end
|
2254
3707
|
def self.new(
|
2255
3708
|
# Indicates the electronic commerce security level and UCAF collection.
|
@@ -2260,22 +3713,35 @@ module Lithic
|
|
2260
3713
|
on_behalf_service_result:,
|
2261
3714
|
# Indicates the type of additional transaction purpose.
|
2262
3715
|
transaction_type_identifier:
|
2263
|
-
)
|
3716
|
+
)
|
3717
|
+
end
|
3718
|
+
|
2264
3719
|
sig do
|
2265
|
-
override
|
2266
|
-
|
2267
|
-
|
2268
|
-
|
2269
|
-
|
2270
|
-
T::Array[
|
3720
|
+
override.returns(
|
3721
|
+
{
|
3722
|
+
ecommerce_security_level_indicator: T.nilable(String),
|
3723
|
+
on_behalf_service_result:
|
3724
|
+
T.nilable(
|
3725
|
+
T::Array[
|
3726
|
+
Lithic::Transaction::Event::NetworkSpecificData::Mastercard::OnBehalfServiceResult
|
3727
|
+
]
|
2271
3728
|
),
|
2272
|
-
|
2273
|
-
|
2274
|
-
|
3729
|
+
transaction_type_identifier: T.nilable(String)
|
3730
|
+
}
|
3731
|
+
)
|
3732
|
+
end
|
3733
|
+
def to_hash
|
2275
3734
|
end
|
2276
|
-
def to_hash; end
|
2277
3735
|
|
2278
3736
|
class OnBehalfServiceResult < Lithic::Internal::Type::BaseModel
|
3737
|
+
OrHash =
|
3738
|
+
T.type_alias do
|
3739
|
+
T.any(
|
3740
|
+
Lithic::Transaction::Event::NetworkSpecificData::Mastercard::OnBehalfServiceResult,
|
3741
|
+
Lithic::Internal::AnyHash
|
3742
|
+
)
|
3743
|
+
end
|
3744
|
+
|
2279
3745
|
# Indicates the results of the service processing.
|
2280
3746
|
sig { returns(String) }
|
2281
3747
|
attr_accessor :result_1
|
@@ -2288,7 +3754,13 @@ module Lithic
|
|
2288
3754
|
sig { returns(String) }
|
2289
3755
|
attr_accessor :service
|
2290
3756
|
|
2291
|
-
sig
|
3757
|
+
sig do
|
3758
|
+
params(
|
3759
|
+
result_1: String,
|
3760
|
+
result_2: String,
|
3761
|
+
service: String
|
3762
|
+
).returns(T.attached_class)
|
3763
|
+
end
|
2292
3764
|
def self.new(
|
2293
3765
|
# Indicates the results of the service processing.
|
2294
3766
|
result_1:,
|
@@ -2296,26 +3768,52 @@ module Lithic
|
|
2296
3768
|
result_2:,
|
2297
3769
|
# Indicates the service performed on the transaction.
|
2298
3770
|
service:
|
2299
|
-
)
|
2300
|
-
|
2301
|
-
|
3771
|
+
)
|
3772
|
+
end
|
3773
|
+
|
3774
|
+
sig do
|
3775
|
+
override.returns(
|
3776
|
+
{ result_1: String, result_2: String, service: String }
|
3777
|
+
)
|
3778
|
+
end
|
3779
|
+
def to_hash
|
3780
|
+
end
|
2302
3781
|
end
|
2303
3782
|
end
|
2304
3783
|
|
2305
3784
|
class Visa < Lithic::Internal::Type::BaseModel
|
3785
|
+
OrHash =
|
3786
|
+
T.type_alias do
|
3787
|
+
T.any(
|
3788
|
+
Lithic::Transaction::Event::NetworkSpecificData::Visa,
|
3789
|
+
Lithic::Internal::AnyHash
|
3790
|
+
)
|
3791
|
+
end
|
3792
|
+
|
2306
3793
|
# Identifies the purpose or category of a transaction, used to classify and
|
2307
3794
|
# process transactions according to Visa’s rules.
|
2308
3795
|
sig { returns(T.nilable(String)) }
|
2309
3796
|
attr_accessor :business_application_identifier
|
2310
3797
|
|
2311
|
-
sig
|
3798
|
+
sig do
|
3799
|
+
params(
|
3800
|
+
business_application_identifier: T.nilable(String)
|
3801
|
+
).returns(T.attached_class)
|
3802
|
+
end
|
2312
3803
|
def self.new(
|
2313
3804
|
# Identifies the purpose or category of a transaction, used to classify and
|
2314
3805
|
# process transactions according to Visa’s rules.
|
2315
3806
|
business_application_identifier:
|
2316
|
-
)
|
2317
|
-
|
2318
|
-
|
3807
|
+
)
|
3808
|
+
end
|
3809
|
+
|
3810
|
+
sig do
|
3811
|
+
override.returns(
|
3812
|
+
{ business_application_identifier: T.nilable(String) }
|
3813
|
+
)
|
3814
|
+
end
|
3815
|
+
def to_hash
|
3816
|
+
end
|
2319
3817
|
end
|
2320
3818
|
end
|
2321
3819
|
end
|