lithic 0.1.0.pre.alpha.5 → 0.1.0.pre.alpha.7
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/README.md +29 -5
- data/lib/lithic/client.rb +3 -3
- data/lib/lithic/internal/cursor_page.rb +5 -1
- data/lib/lithic/internal/single_page.rb +5 -1
- data/lib/lithic/internal/transport/base_client.rb +3 -3
- data/lib/lithic/internal/transport/pooled_net_requester.rb +2 -2
- data/lib/lithic/internal/type/array_of.rb +5 -3
- data/lib/lithic/internal/type/base_model.rb +19 -16
- data/lib/lithic/internal/type/base_page.rb +4 -1
- data/lib/lithic/internal/type/{boolean_model.rb → boolean.rb} +2 -2
- data/lib/lithic/internal/type/converter.rb +26 -23
- data/lib/lithic/internal/type/enum.rb +10 -8
- data/lib/lithic/internal/type/hash_of.rb +3 -1
- data/lib/lithic/internal/util.rb +29 -50
- data/lib/lithic/models/account.rb +37 -37
- data/lib/lithic/models/account_holder.rb +58 -56
- data/lib/lithic/models/account_holder_create_params.rb +140 -144
- data/lib/lithic/models/account_holder_create_response.rb +6 -6
- data/lib/lithic/models/account_holder_list_params.rb +10 -10
- data/lib/lithic/models/account_holder_simulate_enrollment_document_review_params.rb +2 -2
- data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -1
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +71 -71
- data/lib/lithic/models/account_holder_update_params.rb +56 -64
- data/lib/lithic/models/account_holder_update_response.rb +75 -75
- data/lib/lithic/models/account_list_params.rb +6 -6
- data/lib/lithic/models/account_spend_limits.rb +6 -6
- data/lib/lithic/models/account_update_params.rb +14 -14
- data/lib/lithic/models/address.rb +5 -5
- data/lib/lithic/models/address_update.rb +3 -3
- data/lib/lithic/models/aggregate_balance.rb +4 -4
- data/lib/lithic/models/auth_rules/auth_rule.rb +7 -7
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +44 -44
- data/lib/lithic/models/auth_rules/conditional_attribute.rb +44 -44
- data/lib/lithic/models/auth_rules/v2/backtest_results.rb +12 -12
- data/lib/lithic/models/auth_rules/v2_apply_params.rb +1 -1
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +3 -3
- data/lib/lithic/models/auth_rules/v2_create_params.rb +1 -1
- data/lib/lithic/models/auth_rules/v2_create_response.rb +3 -3
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +3 -3
- data/lib/lithic/models/auth_rules/v2_list_params.rb +2 -2
- data/lib/lithic/models/auth_rules/v2_list_response.rb +3 -3
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +3 -3
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +3 -3
- data/lib/lithic/models/auth_rules/v2_update_params.rb +7 -7
- data/lib/lithic/models/auth_rules/v2_update_response.rb +3 -3
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +14 -14
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +5 -5
- data/lib/lithic/models/balance.rb +4 -4
- data/lib/lithic/models/balance_list_params.rb +1 -1
- data/lib/lithic/models/book_transfer_create_params.rb +4 -4
- data/lib/lithic/models/book_transfer_list_params.rb +7 -7
- data/lib/lithic/models/book_transfer_response.rb +14 -14
- data/lib/lithic/models/card.rb +110 -110
- data/lib/lithic/models/card_convert_physical_params.rb +25 -25
- data/lib/lithic/models/card_create_params.rb +93 -93
- data/lib/lithic/models/card_list_params.rb +6 -6
- data/lib/lithic/models/card_program.rb +1 -1
- data/lib/lithic/models/card_program_list_params.rb +2 -2
- data/lib/lithic/models/card_provision_params.rb +11 -11
- data/lib/lithic/models/card_reissue_params.rb +25 -25
- data/lib/lithic/models/card_renew_params.rb +27 -27
- data/lib/lithic/models/card_spend_limits.rb +6 -6
- data/lib/lithic/models/card_update_params.rb +33 -33
- data/lib/lithic/models/cards/aggregate_balance_list_response.rb +4 -4
- data/lib/lithic/models/cards/balance_list_params.rb +2 -2
- data/lib/lithic/models/cards/balance_list_response.rb +4 -4
- data/lib/lithic/models/cards/financial_transaction_list_params.rb +6 -6
- data/lib/lithic/models/credit_products/prime_rate_retrieve_response.rb +1 -1
- data/lib/lithic/models/digital_card_art.rb +2 -2
- data/lib/lithic/models/digital_card_art_list_params.rb +2 -2
- data/lib/lithic/models/dispute.rb +88 -88
- data/lib/lithic/models/dispute_evidence.rb +11 -11
- data/lib/lithic/models/dispute_list_evidences_params.rb +6 -6
- data/lib/lithic/models/dispute_list_params.rb +6 -6
- data/lib/lithic/models/document.rb +6 -6
- data/lib/lithic/models/event.rb +51 -51
- data/lib/lithic/models/event_list_attempts_params.rb +6 -6
- data/lib/lithic/models/event_list_params.rb +7 -7
- data/lib/lithic/models/event_subscription.rb +1 -1
- data/lib/lithic/models/events/event_subscription_resend_params.rb +27 -0
- data/lib/lithic/models/events/subscription_create_params.rb +2 -2
- data/lib/lithic/models/events/subscription_list_attempts_params.rb +6 -6
- data/lib/lithic/models/events/subscription_list_params.rb +2 -2
- data/lib/lithic/models/events/subscription_recover_params.rb +4 -4
- data/lib/lithic/models/events/subscription_replay_missing_params.rb +4 -4
- data/lib/lithic/models/events/subscription_update_params.rb +2 -2
- data/lib/lithic/models/external_bank_account_create_params.rb +5 -5
- data/lib/lithic/models/external_bank_account_create_response.rb +11 -11
- data/lib/lithic/models/external_bank_account_list_params.rb +2 -2
- data/lib/lithic/models/external_bank_account_list_response.rb +11 -11
- data/lib/lithic/models/external_bank_account_retrieve_response.rb +11 -11
- data/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rb +11 -11
- data/lib/lithic/models/external_bank_account_retry_prenote_response.rb +11 -11
- data/lib/lithic/models/external_bank_account_update_params.rb +1 -1
- data/lib/lithic/models/external_bank_account_update_response.rb +11 -11
- data/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rb +11 -11
- data/lib/lithic/models/external_payment_list_params.rb +7 -7
- data/lib/lithic/models/financial_account.rb +11 -13
- data/lib/lithic/models/financial_account_create_params.rb +2 -2
- data/lib/lithic/models/financial_account_update_status_params.rb +9 -9
- data/lib/lithic/models/financial_accounts/balance_list_params.rb +2 -2
- data/lib/lithic/models/financial_accounts/balance_list_response.rb +4 -4
- data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -1
- data/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb +6 -6
- data/lib/lithic/models/financial_accounts/loan_tape.rb +24 -24
- data/lib/lithic/models/financial_accounts/loan_tape_list_params.rb +6 -6
- data/lib/lithic/models/financial_accounts/statement.rb +17 -17
- data/lib/lithic/models/financial_accounts/statement_list_params.rb +7 -7
- data/lib/lithic/models/financial_accounts/statements/line_item_list_params.rb +2 -2
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +3 -2
- data/lib/lithic/models/financial_accounts/statements.rb +1 -1
- data/lib/lithic/models/financial_transaction.rb +35 -34
- data/lib/lithic/models/kyb.rb +128 -132
- data/lib/lithic/models/kyb_business_entity.rb +9 -9
- data/lib/lithic/models/kyc.rb +12 -12
- data/lib/lithic/models/kyc_exempt.rb +4 -4
- data/lib/lithic/models/management_operation_list_params.rb +7 -7
- data/lib/lithic/models/management_operation_transaction.rb +36 -0
- data/lib/lithic/models/message_attempt.rb +1 -1
- data/lib/lithic/models/payment.rb +66 -54
- data/lib/lithic/models/payment_create_params.rb +1 -1
- data/lib/lithic/models/payment_list_params.rb +6 -6
- data/lib/lithic/models/reports/settlement/network_total_list_params.rb +7 -7
- data/lib/lithic/models/reports/settlement/network_total_list_response.rb +7 -7
- data/lib/lithic/models/reports/settlement/network_total_retrieve_response.rb +7 -7
- data/lib/lithic/models/reports/settlement_list_details_params.rb +2 -2
- data/lib/lithic/models/required_document.rb +2 -2
- data/lib/lithic/models/responder_endpoint_create_response.rb +1 -1
- data/lib/lithic/models/responder_endpoint_status.rb +1 -1
- data/lib/lithic/models/settlement_detail.rb +5 -5
- data/lib/lithic/models/settlement_report.rb +16 -16
- data/lib/lithic/models/settlement_summary_details.rb +3 -3
- data/lib/lithic/models/shipping_address.rb +9 -9
- data/lib/lithic/models/spend_limit_duration.rb +10 -10
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +100 -100
- data/lib/lithic/models/three_ds/authentication_simulate_otp_entry_params.rb +1 -1
- data/lib/lithic/models/three_ds/authentication_simulate_params.rb +7 -7
- data/lib/lithic/models/three_ds/authentication_simulate_response.rb +1 -1
- data/lib/lithic/models/three_ds/challenge_response.rb +3 -3
- data/lib/lithic/models/tokenization.rb +5 -5
- data/lib/lithic/models/tokenization_list_params.rb +6 -6
- data/lib/lithic/models/tokenization_resend_activation_code_params.rb +4 -4
- data/lib/lithic/models/tokenization_simulate_params.rb +3 -3
- data/lib/lithic/models/tokenization_update_digital_card_art_params.rb +3 -3
- data/lib/lithic/models/transaction.rb +100 -100
- data/lib/lithic/models/transaction_list_params.rb +8 -8
- data/lib/lithic/models/transaction_simulate_authorization_advice_params.rb +1 -1
- data/lib/lithic/models/transaction_simulate_authorization_params.rb +39 -39
- data/lib/lithic/models/transaction_simulate_authorization_response.rb +1 -1
- data/lib/lithic/models/transaction_simulate_clearing_params.rb +7 -7
- data/lib/lithic/models/transaction_simulate_credit_authorization_params.rb +4 -4
- data/lib/lithic/models/transaction_simulate_void_params.rb +7 -7
- data/lib/lithic/models/transactions/events/enhanced_data.rb +2 -2
- data/lib/lithic/models/transfer.rb +25 -24
- data/lib/lithic/models/transfer_create_params.rb +4 -4
- data/lib/lithic/request_options.rb +7 -7
- data/lib/lithic/resources/account_holders.rb +54 -54
- data/lib/lithic/resources/accounts.rb +7 -7
- data/lib/lithic/resources/aggregate_balances.rb +1 -1
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +37 -37
- data/lib/lithic/resources/auth_rules/v2.rb +58 -58
- data/lib/lithic/resources/auth_stream_enrollment.rb +8 -8
- data/lib/lithic/resources/book_transfers.rb +2 -2
- data/lib/lithic/resources/cards/financial_transactions.rb +1 -1
- data/lib/lithic/resources/cards.rb +64 -61
- data/lib/lithic/resources/disputes.rb +6 -6
- data/lib/lithic/resources/events/event_subscriptions.rb +41 -0
- data/lib/lithic/resources/events/subscriptions.rb +8 -8
- data/lib/lithic/resources/events.rb +6 -2
- data/lib/lithic/resources/external_payments.rb +1 -1
- data/lib/lithic/resources/financial_accounts/financial_transactions.rb +1 -1
- data/lib/lithic/resources/financial_accounts/loan_tapes.rb +1 -1
- data/lib/lithic/resources/financial_accounts/statements.rb +1 -1
- data/lib/lithic/resources/financial_accounts.rb +6 -6
- data/lib/lithic/resources/management_operations.rb +1 -1
- data/lib/lithic/resources/payments.rb +1 -1
- data/lib/lithic/resources/reports/settlement/network_totals.rb +1 -1
- data/lib/lithic/resources/three_ds/authentication.rb +6 -6
- data/lib/lithic/resources/three_ds/decisioning.rb +8 -8
- data/lib/lithic/resources/tokenization_decisioning.rb +7 -7
- data/lib/lithic/resources/tokenizations.rb +46 -46
- data/lib/lithic/resources/transactions/enhanced_commercial_data.rb +1 -1
- data/lib/lithic/resources/transactions/events/enhanced_commercial_data.rb +1 -1
- data/lib/lithic/resources/transactions.rb +24 -24
- data/lib/lithic/resources/transfers.rb +1 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +3 -1
- data/rbi/lib/lithic/client.rbi +6 -9
- data/rbi/lib/lithic/errors.rbi +3 -6
- data/rbi/lib/lithic/internal/cursor_page.rbi +1 -2
- data/rbi/lib/lithic/internal/single_page.rbi +1 -2
- data/rbi/lib/lithic/internal/transport/base_client.rbi +13 -27
- data/rbi/lib/lithic/internal/transport/pooled_net_requester.rbi +7 -13
- data/rbi/lib/lithic/internal/type/array_of.rbi +10 -18
- data/rbi/lib/lithic/internal/type/base_model.rbi +45 -64
- data/rbi/lib/lithic/internal/type/base_page.rbi +5 -10
- data/rbi/lib/lithic/internal/type/{boolean_model.rbi → boolean.rbi} +5 -9
- data/rbi/lib/lithic/internal/type/converter.rbi +25 -31
- data/rbi/lib/lithic/internal/type/enum.rbi +14 -20
- data/rbi/lib/lithic/internal/type/hash_of.rbi +8 -16
- data/rbi/lib/lithic/internal/type/request_parameters.rbi +1 -2
- data/rbi/lib/lithic/internal/type/union.rbi +10 -20
- data/rbi/lib/lithic/internal/type/unknown.rbi +4 -8
- data/rbi/lib/lithic/internal/util.rbi +40 -72
- data/rbi/lib/lithic/internal.rbi +1 -1
- data/rbi/lib/lithic/models/account.rbi +46 -56
- data/rbi/lib/lithic/models/account_financial_account_type.rbi +1 -2
- data/rbi/lib/lithic/models/account_holder.rbi +81 -100
- data/rbi/lib/lithic/models/account_holder_create_params.rbi +154 -171
- data/rbi/lib/lithic/models/account_holder_create_response.rbi +9 -12
- data/rbi/lib/lithic/models/account_holder_list_documents_params.rbi +2 -4
- data/rbi/lib/lithic/models/account_holder_list_documents_response.rbi +2 -4
- data/rbi/lib/lithic/models/account_holder_list_params.rbi +10 -13
- data/rbi/lib/lithic/models/account_holder_retrieve_document_params.rbi +2 -4
- data/rbi/lib/lithic/models/account_holder_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/account_holder_simulate_enrollment_document_review_params.rbi +6 -11
- data/rbi/lib/lithic/models/account_holder_simulate_enrollment_review_params.rbi +5 -9
- data/rbi/lib/lithic/models/account_holder_simulate_enrollment_review_response.rbi +103 -123
- data/rbi/lib/lithic/models/account_holder_update_params.rbi +68 -94
- data/rbi/lib/lithic/models/account_holder_update_response.rbi +135 -140
- data/rbi/lib/lithic/models/account_holder_upload_document_params.rbi +3 -6
- data/rbi/lib/lithic/models/account_list_params.rbi +5 -6
- data/rbi/lib/lithic/models/account_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/account_retrieve_spend_limits_params.rbi +2 -4
- data/rbi/lib/lithic/models/account_spend_limits.rbi +14 -22
- data/rbi/lib/lithic/models/account_update_params.rbi +19 -25
- data/rbi/lib/lithic/models/address.rbi +7 -9
- data/rbi/lib/lithic/models/address_update.rbi +5 -7
- data/rbi/lib/lithic/models/aggregate_balance.rbi +7 -11
- data/rbi/lib/lithic/models/aggregate_balance_list_params.rbi +3 -6
- data/rbi/lib/lithic/models/api_status.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/auth_rule.rbi +9 -13
- data/rbi/lib/lithic/models/auth_rules/auth_rule_condition.rbi +48 -52
- data/rbi/lib/lithic/models/auth_rules/conditional_attribute.rbi +45 -46
- data/rbi/lib/lithic/models/auth_rules/conditional_block_parameters.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2/backtest_create_params.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2/backtest_create_response.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2/backtest_results.rbi +40 -54
- data/rbi/lib/lithic/models/auth_rules/v2/backtest_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2_apply_params.rbi +1 -2
- data/rbi/lib/lithic/models/auth_rules/v2_apply_response.rbi +12 -23
- data/rbi/lib/lithic/models/auth_rules/v2_create_params.rbi +4 -9
- data/rbi/lib/lithic/models/auth_rules/v2_create_response.rbi +12 -23
- data/rbi/lib/lithic/models/auth_rules/v2_delete_params.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2_draft_params.rbi +3 -6
- data/rbi/lib/lithic/models/auth_rules/v2_draft_response.rbi +12 -23
- data/rbi/lib/lithic/models/auth_rules/v2_list_params.rbi +4 -7
- data/rbi/lib/lithic/models/auth_rules/v2_list_response.rbi +12 -23
- data/rbi/lib/lithic/models/auth_rules/v2_promote_params.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2_promote_response.rbi +12 -23
- data/rbi/lib/lithic/models/auth_rules/v2_report_params.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2_report_response.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/auth_rules/v2_retrieve_response.rbi +12 -23
- data/rbi/lib/lithic/models/auth_rules/v2_update_params.rbi +9 -13
- data/rbi/lib/lithic/models/auth_rules/v2_update_response.rbi +12 -23
- data/rbi/lib/lithic/models/auth_rules/velocity_limit_params.rbi +19 -24
- data/rbi/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +6 -7
- data/rbi/lib/lithic/models/auth_stream_enrollment_retrieve_secret_params.rbi +2 -4
- data/rbi/lib/lithic/models/auth_stream_enrollment_rotate_secret_params.rbi +2 -4
- data/rbi/lib/lithic/models/auth_stream_secret.rbi +2 -4
- data/rbi/lib/lithic/models/balance.rbi +7 -11
- data/rbi/lib/lithic/models/balance_list_params.rbi +4 -8
- data/rbi/lib/lithic/models/book_transfer_create_params.rbi +8 -13
- data/rbi/lib/lithic/models/book_transfer_list_params.rbi +10 -16
- data/rbi/lib/lithic/models/book_transfer_response.rbi +23 -33
- data/rbi/lib/lithic/models/book_transfer_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/book_transfer_reverse_params.rbi +2 -4
- data/rbi/lib/lithic/models/card.rbi +117 -127
- data/rbi/lib/lithic/models/card_convert_physical_params.rbi +27 -29
- data/rbi/lib/lithic/models/card_create_params.rbi +98 -104
- data/rbi/lib/lithic/models/card_embed_params.rbi +2 -4
- data/rbi/lib/lithic/models/card_list_params.rbi +7 -11
- data/rbi/lib/lithic/models/card_program.rbi +3 -6
- data/rbi/lib/lithic/models/card_program_list_params.rbi +4 -6
- data/rbi/lib/lithic/models/card_program_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/card_provision_params.rbi +14 -18
- data/rbi/lib/lithic/models/card_provision_response.rbi +2 -4
- data/rbi/lib/lithic/models/card_reissue_params.rbi +27 -29
- data/rbi/lib/lithic/models/card_renew_params.rbi +30 -34
- data/rbi/lib/lithic/models/card_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/card_retrieve_spend_limits_params.rbi +2 -4
- data/rbi/lib/lithic/models/card_search_by_pan_params.rbi +2 -4
- data/rbi/lib/lithic/models/card_spend_limits.rbi +14 -22
- data/rbi/lib/lithic/models/card_update_params.rbi +37 -42
- data/rbi/lib/lithic/models/cards/aggregate_balance_list_params.rbi +2 -4
- data/rbi/lib/lithic/models/cards/aggregate_balance_list_response.rbi +6 -9
- data/rbi/lib/lithic/models/cards/balance_list_params.rbi +4 -6
- data/rbi/lib/lithic/models/cards/balance_list_response.rbi +7 -11
- data/rbi/lib/lithic/models/cards/financial_transaction_list_params.rbi +9 -15
- data/rbi/lib/lithic/models/cards/financial_transaction_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/carrier.rbi +2 -4
- data/rbi/lib/lithic/models/client_api_status_params.rbi +2 -4
- data/rbi/lib/lithic/models/credit_products/extended_credit.rbi +2 -4
- data/rbi/lib/lithic/models/credit_products/extended_credit_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/credit_products/prime_rate_create_params.rbi +2 -4
- data/rbi/lib/lithic/models/credit_products/prime_rate_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/credit_products/prime_rate_retrieve_response.rbi +4 -8
- data/rbi/lib/lithic/models/digital_card_art.rbi +2 -4
- data/rbi/lib/lithic/models/digital_card_art_list_params.rbi +4 -6
- data/rbi/lib/lithic/models/digital_card_art_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/dispute.rbi +93 -99
- data/rbi/lib/lithic/models/dispute_create_params.rbi +2 -4
- data/rbi/lib/lithic/models/dispute_delete_evidence_params.rbi +2 -4
- data/rbi/lib/lithic/models/dispute_delete_params.rbi +2 -4
- data/rbi/lib/lithic/models/dispute_evidence.rbi +13 -15
- data/rbi/lib/lithic/models/dispute_initiate_evidence_upload_params.rbi +2 -4
- data/rbi/lib/lithic/models/dispute_list_evidences_params.rbi +5 -6
- data/rbi/lib/lithic/models/dispute_list_params.rbi +7 -11
- data/rbi/lib/lithic/models/dispute_retrieve_evidence_params.rbi +2 -4
- data/rbi/lib/lithic/models/dispute_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/dispute_update_params.rbi +2 -4
- data/rbi/lib/lithic/models/document.rbi +13 -21
- data/rbi/lib/lithic/models/event.rbi +58 -61
- data/rbi/lib/lithic/models/event_list_attempts_params.rbi +7 -11
- data/rbi/lib/lithic/models/event_list_params.rbi +7 -11
- data/rbi/lib/lithic/models/event_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/event_subscription.rbi +3 -6
- data/rbi/lib/lithic/models/events/event_subscription_resend_params.rbi +27 -0
- data/rbi/lib/lithic/models/events/subscription_create_params.rbi +4 -7
- data/rbi/lib/lithic/models/events/subscription_delete_params.rbi +2 -4
- data/rbi/lib/lithic/models/events/subscription_list_attempts_params.rbi +7 -11
- data/rbi/lib/lithic/models/events/subscription_list_params.rbi +4 -6
- data/rbi/lib/lithic/models/events/subscription_recover_params.rbi +4 -6
- data/rbi/lib/lithic/models/events/subscription_replay_missing_params.rbi +4 -6
- data/rbi/lib/lithic/models/events/subscription_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/events/subscription_retrieve_secret_params.rbi +2 -4
- data/rbi/lib/lithic/models/events/subscription_retrieve_secret_response.rbi +2 -4
- data/rbi/lib/lithic/models/events/subscription_rotate_secret_params.rbi +2 -4
- data/rbi/lib/lithic/models/events/subscription_send_simulated_example_params.rbi +3 -6
- data/rbi/lib/lithic/models/events/subscription_update_params.rbi +4 -7
- data/rbi/lib/lithic/models/external_bank_account_address.rbi +2 -4
- data/rbi/lib/lithic/models/external_bank_account_create_params.rbi +8 -13
- data/rbi/lib/lithic/models/external_bank_account_create_response.rbi +18 -26
- data/rbi/lib/lithic/models/external_bank_account_list_params.rbi +7 -13
- data/rbi/lib/lithic/models/external_bank_account_list_response.rbi +18 -26
- data/rbi/lib/lithic/models/external_bank_account_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/external_bank_account_retrieve_response.rbi +18 -26
- data/rbi/lib/lithic/models/external_bank_account_retry_micro_deposits_params.rbi +2 -4
- data/rbi/lib/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +18 -26
- data/rbi/lib/lithic/models/external_bank_account_retry_prenote_params.rbi +2 -4
- data/rbi/lib/lithic/models/external_bank_account_retry_prenote_response.rbi +16 -22
- data/rbi/lib/lithic/models/external_bank_account_update_params.rbi +4 -8
- data/rbi/lib/lithic/models/external_bank_account_update_response.rbi +18 -26
- data/rbi/lib/lithic/models/external_bank_accounts/micro_deposit_create_params.rbi +2 -4
- data/rbi/lib/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +18 -26
- data/rbi/lib/lithic/models/external_payment.rbi +10 -21
- data/rbi/lib/lithic/models/external_payment_cancel_params.rbi +2 -4
- data/rbi/lib/lithic/models/external_payment_create_params.rbi +5 -11
- data/rbi/lib/lithic/models/external_payment_list_params.rbi +10 -16
- data/rbi/lib/lithic/models/external_payment_release_params.rbi +2 -4
- data/rbi/lib/lithic/models/external_payment_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/external_payment_reverse_params.rbi +2 -4
- data/rbi/lib/lithic/models/external_payment_settle_params.rbi +3 -6
- data/rbi/lib/lithic/models/financial_account.rbi +26 -39
- data/rbi/lib/lithic/models/financial_account_create_params.rbi +2 -4
- data/rbi/lib/lithic/models/financial_account_list_params.rbi +3 -6
- data/rbi/lib/lithic/models/financial_account_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/financial_account_update_params.rbi +2 -4
- data/rbi/lib/lithic/models/financial_account_update_status_params.rbi +18 -37
- data/rbi/lib/lithic/models/financial_accounts/balance_list_params.rbi +4 -6
- data/rbi/lib/lithic/models/financial_accounts/balance_list_response.rbi +7 -11
- data/rbi/lib/lithic/models/financial_accounts/credit_configuration_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/financial_accounts/credit_configuration_update_params.rbi +2 -5
- data/rbi/lib/lithic/models/financial_accounts/financial_account_credit_config.rbi +4 -9
- data/rbi/lib/lithic/models/financial_accounts/financial_transaction_list_params.rbi +9 -15
- data/rbi/lib/lithic/models/financial_accounts/financial_transaction_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/financial_accounts/loan_tape.rbi +67 -107
- data/rbi/lib/lithic/models/financial_accounts/loan_tape_list_params.rbi +5 -6
- data/rbi/lib/lithic/models/financial_accounts/loan_tape_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/financial_accounts/statement.rbi +46 -72
- data/rbi/lib/lithic/models/financial_accounts/statement_list_params.rbi +6 -9
- data/rbi/lib/lithic/models/financial_accounts/statement_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/financial_accounts/statements/line_item_list_params.rbi +3 -4
- data/rbi/lib/lithic/models/financial_accounts/statements/statement_line_items.rbi +12 -14
- data/rbi/lib/lithic/models/financial_accounts/statements.rbi +2 -4
- data/rbi/lib/lithic/models/financial_transaction.rbi +44 -53
- data/rbi/lib/lithic/models/instance_financial_account_type.rbi +1 -2
- data/rbi/lib/lithic/models/kyb.rbi +139 -153
- data/rbi/lib/lithic/models/kyb_business_entity.rbi +13 -18
- data/rbi/lib/lithic/models/kyc.rbi +17 -22
- data/rbi/lib/lithic/models/kyc_exempt.rbi +8 -13
- data/rbi/lib/lithic/models/management_operation_create_params.rbi +5 -11
- data/rbi/lib/lithic/models/management_operation_list_params.rbi +9 -14
- data/rbi/lib/lithic/models/management_operation_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/management_operation_reverse_params.rbi +2 -4
- data/rbi/lib/lithic/models/management_operation_transaction.rbi +60 -20
- data/rbi/lib/lithic/models/message_attempt.rbi +3 -5
- data/rbi/lib/lithic/models/owner_type.rbi +1 -2
- data/rbi/lib/lithic/models/payment.rbi +85 -89
- data/rbi/lib/lithic/models/payment_create_params.rbi +8 -16
- data/rbi/lib/lithic/models/payment_create_response.rbi +2 -4
- data/rbi/lib/lithic/models/payment_list_params.rbi +9 -15
- data/rbi/lib/lithic/models/payment_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/payment_retry_params.rbi +2 -4
- data/rbi/lib/lithic/models/payment_retry_response.rbi +2 -4
- data/rbi/lib/lithic/models/payment_simulate_action_params.rbi +4 -8
- data/rbi/lib/lithic/models/payment_simulate_action_response.rbi +3 -6
- data/rbi/lib/lithic/models/payment_simulate_receipt_params.rbi +2 -4
- data/rbi/lib/lithic/models/payment_simulate_receipt_response.rbi +3 -6
- data/rbi/lib/lithic/models/payment_simulate_release_params.rbi +2 -4
- data/rbi/lib/lithic/models/payment_simulate_release_response.rbi +3 -6
- data/rbi/lib/lithic/models/payment_simulate_return_params.rbi +2 -4
- data/rbi/lib/lithic/models/payment_simulate_return_response.rbi +3 -6
- data/rbi/lib/lithic/models/reports/settlement/network_total_list_params.rbi +8 -12
- data/rbi/lib/lithic/models/reports/settlement/network_total_list_response.rbi +12 -18
- data/rbi/lib/lithic/models/reports/settlement/network_total_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/reports/settlement/network_total_retrieve_response.rbi +12 -18
- data/rbi/lib/lithic/models/reports/settlement_list_details_params.rbi +4 -6
- data/rbi/lib/lithic/models/reports/settlement_summary_params.rbi +2 -4
- data/rbi/lib/lithic/models/required_document.rbi +4 -6
- data/rbi/lib/lithic/models/responder_endpoint_check_status_params.rbi +3 -6
- data/rbi/lib/lithic/models/responder_endpoint_create_params.rbi +3 -6
- data/rbi/lib/lithic/models/responder_endpoint_create_response.rbi +2 -4
- data/rbi/lib/lithic/models/responder_endpoint_delete_params.rbi +3 -6
- data/rbi/lib/lithic/models/responder_endpoint_status.rbi +2 -4
- data/rbi/lib/lithic/models/settlement_detail.rbi +11 -18
- data/rbi/lib/lithic/models/settlement_report.rbi +17 -20
- data/rbi/lib/lithic/models/settlement_summary_details.rbi +6 -10
- data/rbi/lib/lithic/models/shipping_address.rbi +11 -14
- data/rbi/lib/lithic/models/spend_limit_duration.rbi +11 -12
- data/rbi/lib/lithic/models/three_ds/authentication_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/three_ds/authentication_retrieve_response.rbi +137 -176
- data/rbi/lib/lithic/models/three_ds/authentication_simulate_otp_entry_params.rbi +3 -5
- data/rbi/lib/lithic/models/three_ds/authentication_simulate_params.rbi +14 -21
- data/rbi/lib/lithic/models/three_ds/authentication_simulate_response.rbi +3 -5
- data/rbi/lib/lithic/models/three_ds/challenge_response.rbi +5 -7
- data/rbi/lib/lithic/models/three_ds/challenge_result.rbi +1 -2
- data/rbi/lib/lithic/models/three_ds/decisioning_challenge_response_params.rbi +2 -4
- data/rbi/lib/lithic/models/three_ds/decisioning_retrieve_secret_params.rbi +2 -4
- data/rbi/lib/lithic/models/three_ds/decisioning_retrieve_secret_response.rbi +2 -4
- data/rbi/lib/lithic/models/three_ds/decisioning_rotate_secret_params.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization.rbi +14 -24
- data/rbi/lib/lithic/models/tokenization_activate_params.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_deactivate_params.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_decisioning_retrieve_secret_params.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_decisioning_rotate_secret_params.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_decisioning_rotate_secret_response.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_list_params.rbi +7 -11
- data/rbi/lib/lithic/models/tokenization_pause_params.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_resend_activation_code_params.rbi +7 -10
- data/rbi/lib/lithic/models/tokenization_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_retrieve_response.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_secret.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_simulate_params.rbi +7 -12
- data/rbi/lib/lithic/models/tokenization_simulate_response.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_unpause_params.rbi +2 -4
- data/rbi/lib/lithic/models/tokenization_update_digital_card_art_params.rbi +5 -7
- data/rbi/lib/lithic/models/tokenization_update_digital_card_art_response.rbi +2 -4
- data/rbi/lib/lithic/models/transaction.rbi +168 -236
- data/rbi/lib/lithic/models/transaction_expire_authorization_params.rbi +2 -4
- data/rbi/lib/lithic/models/transaction_list_params.rbi +10 -15
- data/rbi/lib/lithic/models/transaction_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/transaction_simulate_authorization_advice_params.rbi +3 -5
- data/rbi/lib/lithic/models/transaction_simulate_authorization_advice_response.rbi +2 -4
- data/rbi/lib/lithic/models/transaction_simulate_authorization_params.rbi +41 -45
- data/rbi/lib/lithic/models/transaction_simulate_authorization_response.rbi +3 -5
- data/rbi/lib/lithic/models/transaction_simulate_clearing_params.rbi +9 -11
- data/rbi/lib/lithic/models/transaction_simulate_clearing_response.rbi +2 -4
- data/rbi/lib/lithic/models/transaction_simulate_credit_authorization_params.rbi +6 -8
- data/rbi/lib/lithic/models/transaction_simulate_credit_authorization_response.rbi +2 -4
- data/rbi/lib/lithic/models/transaction_simulate_return_params.rbi +2 -4
- data/rbi/lib/lithic/models/transaction_simulate_return_response.rbi +2 -4
- data/rbi/lib/lithic/models/transaction_simulate_return_reversal_params.rbi +2 -4
- data/rbi/lib/lithic/models/transaction_simulate_return_reversal_response.rbi +2 -4
- data/rbi/lib/lithic/models/transaction_simulate_void_params.rbi +10 -13
- data/rbi/lib/lithic/models/transaction_simulate_void_response.rbi +2 -4
- data/rbi/lib/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/transactions/enhanced_commercial_data_retrieve_response.rbi +2 -4
- data/rbi/lib/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rbi +2 -4
- data/rbi/lib/lithic/models/transactions/events/enhanced_data.rbi +21 -35
- data/rbi/lib/lithic/models/transfer.rbi +34 -43
- data/rbi/lib/lithic/models/transfer_create_params.rbi +6 -8
- data/rbi/lib/lithic/models/verification_method.rbi +1 -2
- data/rbi/lib/lithic/request_options.rbi +9 -11
- data/rbi/lib/lithic/resources/account_holders.rbi +121 -156
- data/rbi/lib/lithic/resources/accounts.rbi +26 -35
- data/rbi/lib/lithic/resources/aggregate_balances.rbi +3 -6
- data/rbi/lib/lithic/resources/auth_rules/v2/backtests.rbi +40 -45
- data/rbi/lib/lithic/resources/auth_rules/v2.rbi +69 -88
- data/rbi/lib/lithic/resources/auth_rules.rbi +1 -2
- data/rbi/lib/lithic/resources/auth_stream_enrollment.rbi +11 -14
- data/rbi/lib/lithic/resources/balances.rbi +3 -6
- data/rbi/lib/lithic/resources/book_transfers.rbi +15 -24
- data/rbi/lib/lithic/resources/card_programs.rbi +5 -10
- data/rbi/lib/lithic/resources/cards/aggregate_balances.rbi +2 -5
- data/rbi/lib/lithic/resources/cards/balances.rbi +4 -7
- data/rbi/lib/lithic/resources/cards/financial_transactions.rbi +7 -12
- data/rbi/lib/lithic/resources/cards.rbi +219 -237
- data/rbi/lib/lithic/resources/credit_products/extended_credit.rbi +2 -5
- data/rbi/lib/lithic/resources/credit_products/prime_rates.rbi +3 -8
- data/rbi/lib/lithic/resources/credit_products.rbi +1 -2
- data/rbi/lib/lithic/resources/digital_card_art.rbi +8 -13
- data/rbi/lib/lithic/resources/disputes.rbi +22 -37
- data/rbi/lib/lithic/resources/events/event_subscriptions.rbi +24 -0
- data/rbi/lib/lithic/resources/events/subscriptions.rbi +29 -48
- data/rbi/lib/lithic/resources/events.rbi +15 -18
- data/rbi/lib/lithic/resources/external_bank_accounts/micro_deposits.rbi +2 -4
- data/rbi/lib/lithic/resources/external_bank_accounts.rbi +18 -23
- data/rbi/lib/lithic/resources/external_payments.rbi +13 -28
- data/rbi/lib/lithic/resources/financial_accounts/balances.rbi +4 -7
- data/rbi/lib/lithic/resources/financial_accounts/credit_configuration.rbi +3 -8
- data/rbi/lib/lithic/resources/financial_accounts/financial_transactions.rbi +7 -12
- data/rbi/lib/lithic/resources/financial_accounts/loan_tapes.rbi +7 -12
- data/rbi/lib/lithic/resources/financial_accounts/statements/line_items.rbi +5 -8
- data/rbi/lib/lithic/resources/financial_accounts/statements.rbi +7 -12
- data/rbi/lib/lithic/resources/financial_accounts.rbi +10 -19
- data/rbi/lib/lithic/resources/management_operations.rbi +10 -19
- data/rbi/lib/lithic/resources/payments.rbi +14 -29
- data/rbi/lib/lithic/resources/reports/settlement/network_totals.rbi +8 -13
- data/rbi/lib/lithic/resources/reports/settlement.rbi +5 -10
- data/rbi/lib/lithic/resources/reports.rbi +1 -2
- data/rbi/lib/lithic/resources/responder_endpoints.rbi +4 -11
- data/rbi/lib/lithic/resources/three_ds/authentication.rbi +12 -19
- data/rbi/lib/lithic/resources/three_ds/decisioning.rbi +15 -20
- data/rbi/lib/lithic/resources/three_ds.rbi +1 -2
- data/rbi/lib/lithic/resources/tokenization_decisioning.rbi +10 -13
- data/rbi/lib/lithic/resources/tokenizations.rbi +66 -85
- data/rbi/lib/lithic/resources/transactions/enhanced_commercial_data.rbi +3 -6
- data/rbi/lib/lithic/resources/transactions/events/enhanced_commercial_data.rbi +3 -6
- data/rbi/lib/lithic/resources/transactions/events.rbi +1 -2
- data/rbi/lib/lithic/resources/transactions.rbi +79 -100
- data/rbi/lib/lithic/resources/transfers.rbi +7 -10
- data/rbi/lib/lithic/version.rbi +1 -1
- data/sig/lithic/internal/type/array_of.rbs +2 -2
- data/sig/lithic/internal/type/{boolean_model.rbs → boolean.rbs} +1 -1
- data/sig/lithic/internal/util.rbs +5 -5
- data/sig/lithic/models/account_holder_create_params.rbs +47 -43
- data/sig/lithic/models/card_convert_physical_params.rbs +2 -2
- data/sig/lithic/models/card_reissue_params.rbs +2 -2
- data/sig/lithic/models/card_renew_params.rbs +2 -2
- data/sig/lithic/models/events/event_subscription_resend_params.rbs +22 -0
- data/sig/lithic/models/financial_account.rbs +6 -6
- data/sig/lithic/models/financial_account_update_status_params.rbs +6 -6
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +6 -6
- data/sig/lithic/models/financial_accounts/statement.rbs +6 -6
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +2 -0
- data/sig/lithic/models/financial_transaction.rbs +2 -0
- data/sig/lithic/models/kyb.rbs +47 -43
- data/sig/lithic/models/management_operation_transaction.rbs +27 -0
- data/sig/lithic/models/payment.rbs +8 -2
- data/sig/lithic/models/transfer.rbs +2 -0
- data/sig/lithic/resources/account_holders.rbs +1 -1
- data/sig/lithic/resources/events/event_subscriptions.rbs +15 -0
- data/sig/lithic/resources/events.rbs +2 -0
- data/sig/lithic/resources/financial_accounts.rbs +1 -1
- data/sig/lithic/version.rbs +1 -1
- metadata +11 -5
@@ -12,19 +12,19 @@ module Lithic
|
|
12
12
|
attr_accessor :account_token
|
13
13
|
|
14
14
|
# Fee assessed by the merchant and paid for by the cardholder in the smallest unit
|
15
|
-
#
|
16
|
-
#
|
15
|
+
# of the currency. Will be zero if no fee is assessed. Rebates may be transmitted
|
16
|
+
# as a negative value to indicate credited fees.
|
17
17
|
sig { returns(T.nilable(Integer)) }
|
18
18
|
attr_accessor :acquirer_fee
|
19
19
|
|
20
20
|
# Unique identifier assigned to a transaction by the acquirer that can be used in
|
21
|
-
#
|
21
|
+
# dispute and chargeback filing.
|
22
22
|
sig { returns(T.nilable(String)) }
|
23
23
|
attr_accessor :acquirer_reference_number
|
24
24
|
|
25
25
|
# When the transaction is pending, this represents the authorization amount of the
|
26
|
-
#
|
27
|
-
#
|
26
|
+
# transaction in the anticipated settlement currency. Once the transaction has
|
27
|
+
# settled, this field represents the settled amount in the settlement currency.
|
28
28
|
sig { returns(Integer) }
|
29
29
|
attr_accessor :amount
|
30
30
|
|
@@ -35,12 +35,12 @@ module Lithic
|
|
35
35
|
attr_writer :amounts
|
36
36
|
|
37
37
|
# The authorization amount of the transaction in the anticipated settlement
|
38
|
-
#
|
38
|
+
# currency.
|
39
39
|
sig { returns(T.nilable(Integer)) }
|
40
40
|
attr_accessor :authorization_amount
|
41
41
|
|
42
42
|
# A fixed-width 6-digit numeric identifier that can be used to identify a
|
43
|
-
#
|
43
|
+
# transaction with networks.
|
44
44
|
sig { returns(T.nilable(String)) }
|
45
45
|
attr_accessor :authorization_code
|
46
46
|
|
@@ -88,16 +88,16 @@ module Lithic
|
|
88
88
|
attr_accessor :merchant_currency
|
89
89
|
|
90
90
|
# Card network of the authorization. Can be `INTERLINK`, `MAESTRO`, `MASTERCARD`,
|
91
|
-
#
|
92
|
-
#
|
91
|
+
# `VISA`, or `UNKNOWN`. Value is `UNKNOWN` when Lithic cannot determine the
|
92
|
+
# network code from the upstream provider.
|
93
93
|
sig { returns(T.nilable(Lithic::Models::Transaction::Network::TaggedSymbol)) }
|
94
94
|
attr_accessor :network
|
95
95
|
|
96
96
|
# Network-provided score assessing risk level associated with a given
|
97
|
-
#
|
98
|
-
#
|
99
|
-
#
|
100
|
-
#
|
97
|
+
# authorization. Scores are on a range of 0-999, with 0 representing the lowest
|
98
|
+
# risk and 999 representing the highest risk. For Visa transactions, where the raw
|
99
|
+
# score has a range of 0-99, Lithic will normalize the score by multiplying the
|
100
|
+
# raw score by 10x.
|
101
101
|
sig { returns(T.nilable(Integer)) }
|
102
102
|
attr_accessor :network_risk_score
|
103
103
|
|
@@ -193,9 +193,7 @@ module Lithic
|
|
193
193
|
token_info:,
|
194
194
|
updated:,
|
195
195
|
events: nil
|
196
|
-
)
|
197
|
-
end
|
198
|
-
|
196
|
+
); end
|
199
197
|
sig do
|
200
198
|
override
|
201
199
|
.returns(
|
@@ -228,14 +226,15 @@ module Lithic
|
|
228
226
|
}
|
229
227
|
)
|
230
228
|
end
|
231
|
-
def to_hash
|
232
|
-
end
|
229
|
+
def to_hash; end
|
233
230
|
|
234
231
|
class Amounts < Lithic::Internal::Type::BaseModel
|
235
232
|
sig { returns(Lithic::Models::Transaction::Amounts::Cardholder) }
|
236
233
|
attr_reader :cardholder
|
237
234
|
|
238
|
-
sig
|
235
|
+
sig do
|
236
|
+
params(cardholder: T.any(Lithic::Models::Transaction::Amounts::Cardholder, Lithic::Internal::AnyHash)).void
|
237
|
+
end
|
239
238
|
attr_writer :cardholder
|
240
239
|
|
241
240
|
sig { returns(Lithic::Models::Transaction::Amounts::Hold) }
|
@@ -253,7 +252,9 @@ module Lithic
|
|
253
252
|
sig { returns(Lithic::Models::Transaction::Amounts::Settlement) }
|
254
253
|
attr_reader :settlement
|
255
254
|
|
256
|
-
sig
|
255
|
+
sig do
|
256
|
+
params(settlement: T.any(Lithic::Models::Transaction::Amounts::Settlement, Lithic::Internal::AnyHash)).void
|
257
|
+
end
|
257
258
|
attr_writer :settlement
|
258
259
|
|
259
260
|
sig do
|
@@ -265,8 +266,7 @@ module Lithic
|
|
265
266
|
)
|
266
267
|
.returns(T.attached_class)
|
267
268
|
end
|
268
|
-
def self.new(cardholder:, hold:, merchant:, settlement:)
|
269
|
-
end
|
269
|
+
def self.new(cardholder:, hold:, merchant:, settlement:); end
|
270
270
|
|
271
271
|
sig do
|
272
272
|
override
|
@@ -279,17 +279,16 @@ module Lithic
|
|
279
279
|
}
|
280
280
|
)
|
281
281
|
end
|
282
|
-
def to_hash
|
283
|
-
end
|
282
|
+
def to_hash; end
|
284
283
|
|
285
284
|
class Cardholder < Lithic::Internal::Type::BaseModel
|
286
285
|
# The estimated settled amount of the transaction in the cardholder billing
|
287
|
-
#
|
286
|
+
# currency.
|
288
287
|
sig { returns(Integer) }
|
289
288
|
attr_accessor :amount
|
290
289
|
|
291
290
|
# The exchange rate used to convert the merchant amount to the cardholder billing
|
292
|
-
#
|
291
|
+
# amount.
|
293
292
|
sig { returns(String) }
|
294
293
|
attr_accessor :conversion_rate
|
295
294
|
|
@@ -298,12 +297,10 @@ module Lithic
|
|
298
297
|
attr_accessor :currency
|
299
298
|
|
300
299
|
sig { params(amount: Integer, conversion_rate: String, currency: String).returns(T.attached_class) }
|
301
|
-
def self.new(amount:, conversion_rate:, currency:)
|
302
|
-
end
|
300
|
+
def self.new(amount:, conversion_rate:, currency:); end
|
303
301
|
|
304
302
|
sig { override.returns({amount: Integer, conversion_rate: String, currency: String}) }
|
305
|
-
def to_hash
|
306
|
-
end
|
303
|
+
def to_hash; end
|
307
304
|
end
|
308
305
|
|
309
306
|
class Hold < Lithic::Internal::Type::BaseModel
|
@@ -316,12 +313,10 @@ module Lithic
|
|
316
313
|
attr_accessor :currency
|
317
314
|
|
318
315
|
sig { params(amount: Integer, currency: String).returns(T.attached_class) }
|
319
|
-
def self.new(amount:, currency:)
|
320
|
-
end
|
316
|
+
def self.new(amount:, currency:); end
|
321
317
|
|
322
318
|
sig { override.returns({amount: Integer, currency: String}) }
|
323
|
-
def to_hash
|
324
|
-
end
|
319
|
+
def to_hash; end
|
325
320
|
end
|
326
321
|
|
327
322
|
class Merchant < Lithic::Internal::Type::BaseModel
|
@@ -334,12 +329,10 @@ module Lithic
|
|
334
329
|
attr_accessor :currency
|
335
330
|
|
336
331
|
sig { params(amount: Integer, currency: String).returns(T.attached_class) }
|
337
|
-
def self.new(amount:, currency:)
|
338
|
-
end
|
332
|
+
def self.new(amount:, currency:); end
|
339
333
|
|
340
334
|
sig { override.returns({amount: Integer, currency: String}) }
|
341
|
-
def to_hash
|
342
|
-
end
|
335
|
+
def to_hash; end
|
343
336
|
end
|
344
337
|
|
345
338
|
class Settlement < Lithic::Internal::Type::BaseModel
|
@@ -352,12 +345,10 @@ module Lithic
|
|
352
345
|
attr_accessor :currency
|
353
346
|
|
354
347
|
sig { params(amount: Integer, currency: String).returns(T.attached_class) }
|
355
|
-
def self.new(amount:, currency:)
|
356
|
-
end
|
348
|
+
def self.new(amount:, currency:); end
|
357
349
|
|
358
350
|
sig { override.returns({amount: Integer, currency: String}) }
|
359
|
-
def to_hash
|
360
|
-
end
|
351
|
+
def to_hash; end
|
361
352
|
end
|
362
353
|
end
|
363
354
|
|
@@ -371,12 +362,10 @@ module Lithic
|
|
371
362
|
attr_accessor :zipcode
|
372
363
|
|
373
364
|
sig { params(address: String, zipcode: String).returns(T.attached_class) }
|
374
|
-
def self.new(address:, zipcode:)
|
375
|
-
end
|
365
|
+
def self.new(address:, zipcode:); end
|
376
366
|
|
377
367
|
sig { override.returns({address: String, zipcode: String}) }
|
378
|
-
def to_hash
|
379
|
-
end
|
368
|
+
def to_hash; end
|
380
369
|
end
|
381
370
|
|
382
371
|
class CardholderAuthentication < Lithic::Internal::Type::BaseModel
|
@@ -397,34 +386,34 @@ module Lithic
|
|
397
386
|
attr_accessor :decision_made_by
|
398
387
|
|
399
388
|
# Indicates whether chargeback liability shift applies to the transaction.
|
400
|
-
#
|
389
|
+
# Possible enum values:
|
401
390
|
#
|
402
|
-
#
|
391
|
+
# * `3DS_AUTHENTICATED`: The transaction was fully authenticated through a 3-D Secure flow, chargeback liability shift applies.
|
403
392
|
#
|
404
|
-
#
|
393
|
+
# * `ACQUIRER_EXEMPTION`: The acquirer utilised an exemption to bypass Strong Customer Authentication (`transStatus = N`, or `transStatus = I`). Liability remains with the acquirer and in this case the `acquirer_exemption` field is expected to be not `NONE`.
|
405
394
|
#
|
406
|
-
#
|
395
|
+
# * `NONE`: Chargeback liability shift has not shifted to the issuer, i.e. the merchant is liable.
|
407
396
|
#
|
408
|
-
#
|
409
|
-
#
|
410
|
-
#
|
397
|
+
# - `TOKEN_AUTHENTICATED`: The transaction was a tokenized payment with validated
|
398
|
+
# cryptography, possibly recurring. Chargeback liability shift to the issuer
|
399
|
+
# applies.
|
411
400
|
sig { returns(Lithic::Models::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol) }
|
412
401
|
attr_accessor :liability_shift
|
413
402
|
|
414
403
|
# Unique identifier you can use to match a given 3DS authentication (available via
|
415
|
-
#
|
416
|
-
#
|
417
|
-
#
|
404
|
+
# the three_ds_authentication.created event webhook) and the transaction. Note
|
405
|
+
# that in cases where liability shift does not occur, this token is matched to the
|
406
|
+
# transaction on a best-effort basis.
|
418
407
|
sig { returns(T.nilable(String)) }
|
419
408
|
attr_accessor :three_ds_authentication_token
|
420
409
|
|
421
410
|
# Indicates whether a 3DS challenge flow was used, and if so, what the
|
422
|
-
#
|
411
|
+
# verification method was. (deprecated, use `authentication_result`)
|
423
412
|
sig { returns(Lithic::Models::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol) }
|
424
413
|
attr_accessor :verification_attempted
|
425
414
|
|
426
415
|
# Indicates whether a transaction is considered 3DS authenticated. (deprecated,
|
427
|
-
#
|
416
|
+
# use `authentication_result`)
|
428
417
|
sig { returns(Lithic::Models::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol) }
|
429
418
|
attr_accessor :verification_result
|
430
419
|
|
@@ -450,9 +439,7 @@ module Lithic
|
|
450
439
|
three_ds_authentication_token:,
|
451
440
|
verification_attempted:,
|
452
441
|
verification_result:
|
453
|
-
)
|
454
|
-
end
|
455
|
-
|
442
|
+
); end
|
456
443
|
sig do
|
457
444
|
override
|
458
445
|
.returns(
|
@@ -468,8 +455,7 @@ module Lithic
|
|
468
455
|
}
|
469
456
|
)
|
470
457
|
end
|
471
|
-
def to_hash
|
472
|
-
end
|
458
|
+
def to_hash; end
|
473
459
|
|
474
460
|
# Whether an acquirer exemption applied to the transaction.
|
475
461
|
module AcquirerExemption
|
@@ -525,8 +511,7 @@ module Lithic
|
|
525
511
|
override
|
526
512
|
.returns(T::Array[Lithic::Models::Transaction::CardholderAuthentication::AcquirerExemption::TaggedSymbol])
|
527
513
|
end
|
528
|
-
def self.values
|
529
|
-
end
|
514
|
+
def self.values; end
|
530
515
|
end
|
531
516
|
|
532
517
|
# Indicates what the outcome of the 3DS authentication process is.
|
@@ -562,8 +547,7 @@ module Lithic
|
|
562
547
|
T::Array[Lithic::Models::Transaction::CardholderAuthentication::AuthenticationResult::TaggedSymbol]
|
563
548
|
)
|
564
549
|
end
|
565
|
-
def self.values
|
566
|
-
end
|
550
|
+
def self.values; end
|
567
551
|
end
|
568
552
|
|
569
553
|
# Indicates which party made the 3DS authentication decision.
|
@@ -596,22 +580,21 @@ module Lithic
|
|
596
580
|
override
|
597
581
|
.returns(T::Array[Lithic::Models::Transaction::CardholderAuthentication::DecisionMadeBy::TaggedSymbol])
|
598
582
|
end
|
599
|
-
def self.values
|
600
|
-
end
|
583
|
+
def self.values; end
|
601
584
|
end
|
602
585
|
|
603
586
|
# Indicates whether chargeback liability shift applies to the transaction.
|
604
|
-
#
|
587
|
+
# Possible enum values:
|
605
588
|
#
|
606
|
-
#
|
589
|
+
# * `3DS_AUTHENTICATED`: The transaction was fully authenticated through a 3-D Secure flow, chargeback liability shift applies.
|
607
590
|
#
|
608
|
-
#
|
591
|
+
# * `ACQUIRER_EXEMPTION`: The acquirer utilised an exemption to bypass Strong Customer Authentication (`transStatus = N`, or `transStatus = I`). Liability remains with the acquirer and in this case the `acquirer_exemption` field is expected to be not `NONE`.
|
609
592
|
#
|
610
|
-
#
|
593
|
+
# * `NONE`: Chargeback liability shift has not shifted to the issuer, i.e. the merchant is liable.
|
611
594
|
#
|
612
|
-
#
|
613
|
-
#
|
614
|
-
#
|
595
|
+
# - `TOKEN_AUTHENTICATED`: The transaction was a tokenized payment with validated
|
596
|
+
# cryptography, possibly recurring. Chargeback liability shift to the issuer
|
597
|
+
# applies.
|
615
598
|
module LiabilityShift
|
616
599
|
extend Lithic::Internal::Type::Enum
|
617
600
|
|
@@ -641,12 +624,11 @@ module Lithic
|
|
641
624
|
override
|
642
625
|
.returns(T::Array[Lithic::Models::Transaction::CardholderAuthentication::LiabilityShift::TaggedSymbol])
|
643
626
|
end
|
644
|
-
def self.values
|
645
|
-
end
|
627
|
+
def self.values; end
|
646
628
|
end
|
647
629
|
|
648
630
|
# Indicates whether a 3DS challenge flow was used, and if so, what the
|
649
|
-
#
|
631
|
+
# verification method was. (deprecated, use `authentication_result`)
|
650
632
|
module VerificationAttempted
|
651
633
|
extend Lithic::Internal::Type::Enum
|
652
634
|
|
@@ -672,12 +654,11 @@ module Lithic
|
|
672
654
|
T::Array[Lithic::Models::Transaction::CardholderAuthentication::VerificationAttempted::TaggedSymbol]
|
673
655
|
)
|
674
656
|
end
|
675
|
-
def self.values
|
676
|
-
end
|
657
|
+
def self.values; end
|
677
658
|
end
|
678
659
|
|
679
660
|
# Indicates whether a transaction is considered 3DS authenticated. (deprecated,
|
680
|
-
#
|
661
|
+
# use `authentication_result`)
|
681
662
|
module VerificationResult
|
682
663
|
extend Lithic::Internal::Type::Enum
|
683
664
|
|
@@ -715,8 +696,7 @@ module Lithic
|
|
715
696
|
override
|
716
697
|
.returns(T::Array[Lithic::Models::Transaction::CardholderAuthentication::VerificationResult::TaggedSymbol])
|
717
698
|
end
|
718
|
-
def self.values
|
719
|
-
end
|
699
|
+
def self.values; end
|
720
700
|
end
|
721
701
|
end
|
722
702
|
|
@@ -730,12 +710,12 @@ module Lithic
|
|
730
710
|
attr_accessor :acquiring_institution_id
|
731
711
|
|
732
712
|
# City of card acceptor. Note that in many cases, particularly in card-not-present
|
733
|
-
#
|
713
|
+
# transactions, merchants may send through a phone number or URL in this field.
|
734
714
|
sig { returns(String) }
|
735
715
|
attr_accessor :city
|
736
716
|
|
737
717
|
# Country or entity of card acceptor. Possible values are: (1) all ISO 3166-1
|
738
|
-
#
|
718
|
+
# alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for Netherlands Antilles.
|
739
719
|
sig { returns(String) }
|
740
720
|
attr_accessor :country
|
741
721
|
|
@@ -744,7 +724,7 @@ module Lithic
|
|
744
724
|
attr_accessor :descriptor
|
745
725
|
|
746
726
|
# Merchant category code (MCC). A four-digit number listed in ISO 18245. An MCC is
|
747
|
-
#
|
727
|
+
# used to classify a business by the types of goods or services it provides.
|
748
728
|
sig { returns(String) }
|
749
729
|
attr_accessor :mcc
|
750
730
|
|
@@ -764,8 +744,7 @@ module Lithic
|
|
764
744
|
)
|
765
745
|
.returns(T.attached_class)
|
766
746
|
end
|
767
|
-
def self.new(acceptor_id:, acquiring_institution_id:, city:, country:, descriptor:, mcc:, state:)
|
768
|
-
end
|
747
|
+
def self.new(acceptor_id:, acquiring_institution_id:, city:, country:, descriptor:, mcc:, state:); end
|
769
748
|
|
770
749
|
sig do
|
771
750
|
override
|
@@ -781,13 +760,12 @@ module Lithic
|
|
781
760
|
}
|
782
761
|
)
|
783
762
|
end
|
784
|
-
def to_hash
|
785
|
-
end
|
763
|
+
def to_hash; end
|
786
764
|
end
|
787
765
|
|
788
766
|
# Card network of the authorization. Can be `INTERLINK`, `MAESTRO`, `MASTERCARD`,
|
789
|
-
#
|
790
|
-
#
|
767
|
+
# `VISA`, or `UNKNOWN`. Value is `UNKNOWN` when Lithic cannot determine the
|
768
|
+
# network code from the upstream provider.
|
791
769
|
module Network
|
792
770
|
extend Lithic::Internal::Type::Enum
|
793
771
|
|
@@ -801,8 +779,7 @@ module Lithic
|
|
801
779
|
VISA = T.let(:VISA, Lithic::Models::Transaction::Network::TaggedSymbol)
|
802
780
|
|
803
781
|
sig { override.returns(T::Array[Lithic::Models::Transaction::Network::TaggedSymbol]) }
|
804
|
-
def self.values
|
805
|
-
end
|
782
|
+
def self.values; end
|
806
783
|
end
|
807
784
|
|
808
785
|
class Pos < Lithic::Internal::Type::BaseModel
|
@@ -825,8 +802,7 @@ module Lithic
|
|
825
802
|
)
|
826
803
|
.returns(T.attached_class)
|
827
804
|
end
|
828
|
-
def self.new(entry_mode:, terminal:)
|
829
|
-
end
|
805
|
+
def self.new(entry_mode:, terminal:); end
|
830
806
|
|
831
807
|
sig do
|
832
808
|
override
|
@@ -837,8 +813,7 @@ module Lithic
|
|
837
813
|
}
|
838
814
|
)
|
839
815
|
end
|
840
|
-
def to_hash
|
841
|
-
end
|
816
|
+
def to_hash; end
|
842
817
|
|
843
818
|
class EntryMode < Lithic::Internal::Type::BaseModel
|
844
819
|
# Card presence indicator
|
@@ -866,8 +841,7 @@ module Lithic
|
|
866
841
|
)
|
867
842
|
.returns(T.attached_class)
|
868
843
|
end
|
869
|
-
def self.new(card:, cardholder:, pan:, pin_entered:)
|
870
|
-
end
|
844
|
+
def self.new(card:, cardholder:, pan:, pin_entered:); end
|
871
845
|
|
872
846
|
sig do
|
873
847
|
override
|
@@ -880,8 +854,7 @@ module Lithic
|
|
880
854
|
}
|
881
855
|
)
|
882
856
|
end
|
883
|
-
def to_hash
|
884
|
-
end
|
857
|
+
def to_hash; end
|
885
858
|
|
886
859
|
# Card presence indicator
|
887
860
|
module Card
|
@@ -897,8 +870,7 @@ module Lithic
|
|
897
870
|
UNKNOWN = T.let(:UNKNOWN, Lithic::Models::Transaction::Pos::EntryMode::Card::TaggedSymbol)
|
898
871
|
|
899
872
|
sig { override.returns(T::Array[Lithic::Models::Transaction::Pos::EntryMode::Card::TaggedSymbol]) }
|
900
|
-
def self.values
|
901
|
-
end
|
873
|
+
def self.values; end
|
902
874
|
end
|
903
875
|
|
904
876
|
# Cardholder presence indicator
|
@@ -925,8 +897,7 @@ module Lithic
|
|
925
897
|
UNKNOWN = T.let(:UNKNOWN, Lithic::Models::Transaction::Pos::EntryMode::Cardholder::TaggedSymbol)
|
926
898
|
|
927
899
|
sig { override.returns(T::Array[Lithic::Models::Transaction::Pos::EntryMode::Cardholder::TaggedSymbol]) }
|
928
|
-
def self.values
|
929
|
-
end
|
900
|
+
def self.values; end
|
930
901
|
end
|
931
902
|
|
932
903
|
# Method of entry for the PAN
|
@@ -956,8 +927,7 @@ module Lithic
|
|
956
927
|
UNSPECIFIED = T.let(:UNSPECIFIED, Lithic::Models::Transaction::Pos::EntryMode::Pan::TaggedSymbol)
|
957
928
|
|
958
929
|
sig { override.returns(T::Array[Lithic::Models::Transaction::Pos::EntryMode::Pan::TaggedSymbol]) }
|
959
|
-
def self.values
|
960
|
-
end
|
930
|
+
def self.values; end
|
961
931
|
end
|
962
932
|
end
|
963
933
|
|
@@ -979,10 +949,10 @@ module Lithic
|
|
979
949
|
attr_accessor :operator
|
980
950
|
|
981
951
|
# True if the terminal is capable of partial approval. Partial approval is when
|
982
|
-
#
|
983
|
-
#
|
984
|
-
#
|
985
|
-
#
|
952
|
+
# part of a transaction is approved and another payment must be used for the
|
953
|
+
# remainder. Example scenario: A $40 transaction is attempted on a prepaid card
|
954
|
+
# with a $25 balance. If partial approval is enabled, $25 can be authorized, at
|
955
|
+
# which point the POS will prompt the user for an additional payment of $15.
|
986
956
|
sig { returns(T::Boolean) }
|
987
957
|
attr_accessor :partial_approval_capable
|
988
958
|
|
@@ -1014,9 +984,7 @@ module Lithic
|
|
1014
984
|
partial_approval_capable:,
|
1015
985
|
pin_capability:,
|
1016
986
|
type:
|
1017
|
-
)
|
1018
|
-
end
|
1019
|
-
|
987
|
+
); end
|
1020
988
|
sig do
|
1021
989
|
override
|
1022
990
|
.returns(
|
@@ -1031,8 +999,7 @@ module Lithic
|
|
1031
999
|
}
|
1032
1000
|
)
|
1033
1001
|
end
|
1034
|
-
def to_hash
|
1035
|
-
end
|
1002
|
+
def to_hash; end
|
1036
1003
|
|
1037
1004
|
# The person that is designated to swipe the card
|
1038
1005
|
module Operator
|
@@ -1049,8 +1016,7 @@ module Lithic
|
|
1049
1016
|
UNKNOWN = T.let(:UNKNOWN, Lithic::Models::Transaction::Pos::Terminal::Operator::TaggedSymbol)
|
1050
1017
|
|
1051
1018
|
sig { override.returns(T::Array[Lithic::Models::Transaction::Pos::Terminal::Operator::TaggedSymbol]) }
|
1052
|
-
def self.values
|
1053
|
-
end
|
1019
|
+
def self.values; end
|
1054
1020
|
end
|
1055
1021
|
|
1056
1022
|
# Status of whether the POS is able to accept PINs
|
@@ -1070,8 +1036,7 @@ module Lithic
|
|
1070
1036
|
T.let(:UNSPECIFIED, Lithic::Models::Transaction::Pos::Terminal::PinCapability::TaggedSymbol)
|
1071
1037
|
|
1072
1038
|
sig { override.returns(T::Array[Lithic::Models::Transaction::Pos::Terminal::PinCapability::TaggedSymbol]) }
|
1073
|
-
def self.values
|
1074
|
-
end
|
1039
|
+
def self.values; end
|
1075
1040
|
end
|
1076
1041
|
|
1077
1042
|
# POS Type
|
@@ -1109,8 +1074,7 @@ module Lithic
|
|
1109
1074
|
UNKNOWN = T.let(:UNKNOWN, Lithic::Models::Transaction::Pos::Terminal::Type::TaggedSymbol)
|
1110
1075
|
|
1111
1076
|
sig { override.returns(T::Array[Lithic::Models::Transaction::Pos::Terminal::Type::TaggedSymbol]) }
|
1112
|
-
def self.values
|
1113
|
-
end
|
1077
|
+
def self.values; end
|
1114
1078
|
end
|
1115
1079
|
end
|
1116
1080
|
end
|
@@ -1150,8 +1114,7 @@ module Lithic
|
|
1150
1114
|
T.let(:USER_TRANSACTION_LIMIT, Lithic::Models::Transaction::Result::TaggedSymbol)
|
1151
1115
|
|
1152
1116
|
sig { override.returns(T::Array[Lithic::Models::Transaction::Result::TaggedSymbol]) }
|
1153
|
-
def self.values
|
1154
|
-
end
|
1117
|
+
def self.values; end
|
1155
1118
|
end
|
1156
1119
|
|
1157
1120
|
# Status of the transaction.
|
@@ -1168,32 +1131,29 @@ module Lithic
|
|
1168
1131
|
VOIDED = T.let(:VOIDED, Lithic::Models::Transaction::Status::TaggedSymbol)
|
1169
1132
|
|
1170
1133
|
sig { override.returns(T::Array[Lithic::Models::Transaction::Status::TaggedSymbol]) }
|
1171
|
-
def self.values
|
1172
|
-
end
|
1134
|
+
def self.values; end
|
1173
1135
|
end
|
1174
1136
|
|
1175
1137
|
class TokenInfo < Lithic::Internal::Type::BaseModel
|
1176
1138
|
# The wallet_type field will indicate the source of the token. Possible token
|
1177
|
-
#
|
1178
|
-
#
|
1179
|
-
#
|
1139
|
+
# sources include digital wallets (Apple, Google, or Samsung Pay), merchant
|
1140
|
+
# tokenization, and “other” sources like in-flight commerce. Masterpass is not
|
1141
|
+
# currently supported and is included for future use.
|
1180
1142
|
sig { returns(Lithic::Models::Transaction::TokenInfo::WalletType::TaggedSymbol) }
|
1181
1143
|
attr_accessor :wallet_type
|
1182
1144
|
|
1183
1145
|
sig do
|
1184
1146
|
params(wallet_type: Lithic::Models::Transaction::TokenInfo::WalletType::OrSymbol).returns(T.attached_class)
|
1185
1147
|
end
|
1186
|
-
def self.new(wallet_type:)
|
1187
|
-
end
|
1148
|
+
def self.new(wallet_type:); end
|
1188
1149
|
|
1189
1150
|
sig { override.returns({wallet_type: Lithic::Models::Transaction::TokenInfo::WalletType::TaggedSymbol}) }
|
1190
|
-
def to_hash
|
1191
|
-
end
|
1151
|
+
def to_hash; end
|
1192
1152
|
|
1193
1153
|
# The wallet_type field will indicate the source of the token. Possible token
|
1194
|
-
#
|
1195
|
-
#
|
1196
|
-
#
|
1154
|
+
# sources include digital wallets (Apple, Google, or Samsung Pay), merchant
|
1155
|
+
# tokenization, and “other” sources like in-flight commerce. Masterpass is not
|
1156
|
+
# currently supported and is included for future use.
|
1197
1157
|
module WalletType
|
1198
1158
|
extend Lithic::Internal::Type::Enum
|
1199
1159
|
|
@@ -1209,8 +1169,7 @@ module Lithic
|
|
1209
1169
|
SAMSUNG_PAY = T.let(:SAMSUNG_PAY, Lithic::Models::Transaction::TokenInfo::WalletType::TaggedSymbol)
|
1210
1170
|
|
1211
1171
|
sig { override.returns(T::Array[Lithic::Models::Transaction::TokenInfo::WalletType::TaggedSymbol]) }
|
1212
|
-
def self.values
|
1213
|
-
end
|
1172
|
+
def self.values; end
|
1214
1173
|
end
|
1215
1174
|
end
|
1216
1175
|
|
@@ -1241,14 +1200,14 @@ module Lithic
|
|
1241
1200
|
attr_accessor :effective_polarity
|
1242
1201
|
|
1243
1202
|
# Information provided by the card network in each event. This includes common
|
1244
|
-
#
|
1245
|
-
#
|
1246
|
-
#
|
1247
|
-
#
|
1248
|
-
#
|
1249
|
-
#
|
1250
|
-
#
|
1251
|
-
#
|
1203
|
+
# identifiers shared between you, Lithic, the card network and in some cases the
|
1204
|
+
# acquirer. These identifiers often link together events within the same
|
1205
|
+
# transaction lifecycle and can be used to locate a particular transaction, such
|
1206
|
+
# as during processing of disputes. Not all fields are available in all events,
|
1207
|
+
# and the presence of these fields is dependent on the card network and the event
|
1208
|
+
# type. If the field is populated by the network, we will pass it through as is
|
1209
|
+
# unless otherwise specified. Please consult the official network documentation
|
1210
|
+
# for more details about these fields and how to use them.
|
1252
1211
|
sig { returns(T.nilable(Lithic::Models::Transaction::Event::NetworkInfo)) }
|
1253
1212
|
attr_reader :network_info
|
1254
1213
|
|
@@ -1296,9 +1255,7 @@ module Lithic
|
|
1296
1255
|
result:,
|
1297
1256
|
rule_results:,
|
1298
1257
|
type:
|
1299
|
-
)
|
1300
|
-
end
|
1301
|
-
|
1258
|
+
); end
|
1302
1259
|
sig do
|
1303
1260
|
override
|
1304
1261
|
.returns(
|
@@ -1316,8 +1273,7 @@ module Lithic
|
|
1316
1273
|
}
|
1317
1274
|
)
|
1318
1275
|
end
|
1319
|
-
def to_hash
|
1320
|
-
end
|
1276
|
+
def to_hash; end
|
1321
1277
|
|
1322
1278
|
class Amounts < Lithic::Internal::Type::BaseModel
|
1323
1279
|
sig { returns(Lithic::Models::Transaction::Event::Amounts::Cardholder) }
|
@@ -1359,8 +1315,7 @@ module Lithic
|
|
1359
1315
|
)
|
1360
1316
|
.returns(T.attached_class)
|
1361
1317
|
end
|
1362
|
-
def self.new(cardholder:, merchant:, settlement:)
|
1363
|
-
end
|
1318
|
+
def self.new(cardholder:, merchant:, settlement:); end
|
1364
1319
|
|
1365
1320
|
sig do
|
1366
1321
|
override
|
@@ -1372,8 +1327,7 @@ module Lithic
|
|
1372
1327
|
}
|
1373
1328
|
)
|
1374
1329
|
end
|
1375
|
-
def to_hash
|
1376
|
-
end
|
1330
|
+
def to_hash; end
|
1377
1331
|
|
1378
1332
|
class Cardholder < Lithic::Internal::Type::BaseModel
|
1379
1333
|
# Amount of the event in the cardholder billing currency.
|
@@ -1381,7 +1335,7 @@ module Lithic
|
|
1381
1335
|
attr_accessor :amount
|
1382
1336
|
|
1383
1337
|
# Exchange rate used to convert the merchant amount to the cardholder billing
|
1384
|
-
#
|
1338
|
+
# amount.
|
1385
1339
|
sig { returns(String) }
|
1386
1340
|
attr_accessor :conversion_rate
|
1387
1341
|
|
@@ -1392,12 +1346,10 @@ module Lithic
|
|
1392
1346
|
sig do
|
1393
1347
|
params(amount: Integer, conversion_rate: String, currency: String).returns(T.attached_class)
|
1394
1348
|
end
|
1395
|
-
def self.new(amount:, conversion_rate:, currency:)
|
1396
|
-
end
|
1349
|
+
def self.new(amount:, conversion_rate:, currency:); end
|
1397
1350
|
|
1398
1351
|
sig { override.returns({amount: Integer, conversion_rate: String, currency: String}) }
|
1399
|
-
def to_hash
|
1400
|
-
end
|
1352
|
+
def to_hash; end
|
1401
1353
|
end
|
1402
1354
|
|
1403
1355
|
class Merchant < Lithic::Internal::Type::BaseModel
|
@@ -1410,17 +1362,15 @@ module Lithic
|
|
1410
1362
|
attr_accessor :currency
|
1411
1363
|
|
1412
1364
|
sig { params(amount: Integer, currency: String).returns(T.attached_class) }
|
1413
|
-
def self.new(amount:, currency:)
|
1414
|
-
end
|
1365
|
+
def self.new(amount:, currency:); end
|
1415
1366
|
|
1416
1367
|
sig { override.returns({amount: Integer, currency: String}) }
|
1417
|
-
def to_hash
|
1418
|
-
end
|
1368
|
+
def to_hash; end
|
1419
1369
|
end
|
1420
1370
|
|
1421
1371
|
class Settlement < Lithic::Internal::Type::BaseModel
|
1422
1372
|
# Amount of the event, if it is financial, in the settlement currency.
|
1423
|
-
#
|
1373
|
+
# Non-financial events do not contain this amount because they do not move funds.
|
1424
1374
|
sig { returns(Integer) }
|
1425
1375
|
attr_accessor :amount
|
1426
1376
|
|
@@ -1435,12 +1385,10 @@ module Lithic
|
|
1435
1385
|
sig do
|
1436
1386
|
params(amount: Integer, conversion_rate: String, currency: String).returns(T.attached_class)
|
1437
1387
|
end
|
1438
|
-
def self.new(amount:, conversion_rate:, currency:)
|
1439
|
-
end
|
1388
|
+
def self.new(amount:, conversion_rate:, currency:); end
|
1440
1389
|
|
1441
1390
|
sig { override.returns({amount: Integer, conversion_rate: String, currency: String}) }
|
1442
|
-
def to_hash
|
1443
|
-
end
|
1391
|
+
def to_hash; end
|
1444
1392
|
end
|
1445
1393
|
end
|
1446
1394
|
|
@@ -1575,8 +1523,7 @@ module Lithic
|
|
1575
1523
|
T.let(:VEHICLE_NUMBER_INVALID, Lithic::Models::Transaction::Event::DetailedResult::TaggedSymbol)
|
1576
1524
|
|
1577
1525
|
sig { override.returns(T::Array[Lithic::Models::Transaction::Event::DetailedResult::TaggedSymbol]) }
|
1578
|
-
def self.values
|
1579
|
-
end
|
1526
|
+
def self.values; end
|
1580
1527
|
end
|
1581
1528
|
|
1582
1529
|
# Indicates whether the transaction event is a credit or debit to the account.
|
@@ -1591,8 +1538,7 @@ module Lithic
|
|
1591
1538
|
DEBIT = T.let(:DEBIT, Lithic::Models::Transaction::Event::EffectivePolarity::TaggedSymbol)
|
1592
1539
|
|
1593
1540
|
sig { override.returns(T::Array[Lithic::Models::Transaction::Event::EffectivePolarity::TaggedSymbol]) }
|
1594
|
-
def self.values
|
1595
|
-
end
|
1541
|
+
def self.values; end
|
1596
1542
|
end
|
1597
1543
|
|
1598
1544
|
class NetworkInfo < Lithic::Internal::Type::BaseModel
|
@@ -1630,14 +1576,14 @@ module Lithic
|
|
1630
1576
|
attr_writer :visa
|
1631
1577
|
|
1632
1578
|
# Information provided by the card network in each event. This includes common
|
1633
|
-
#
|
1634
|
-
#
|
1635
|
-
#
|
1636
|
-
#
|
1637
|
-
#
|
1638
|
-
#
|
1639
|
-
#
|
1640
|
-
#
|
1579
|
+
# identifiers shared between you, Lithic, the card network and in some cases the
|
1580
|
+
# acquirer. These identifiers often link together events within the same
|
1581
|
+
# transaction lifecycle and can be used to locate a particular transaction, such
|
1582
|
+
# as during processing of disputes. Not all fields are available in all events,
|
1583
|
+
# and the presence of these fields is dependent on the card network and the event
|
1584
|
+
# type. If the field is populated by the network, we will pass it through as is
|
1585
|
+
# unless otherwise specified. Please consult the official network documentation
|
1586
|
+
# for more details about these fields and how to use them.
|
1641
1587
|
sig do
|
1642
1588
|
params(
|
1643
1589
|
acquirer: T.nilable(T.any(Lithic::Models::Transaction::Event::NetworkInfo::Acquirer, Lithic::Internal::AnyHash)),
|
@@ -1646,8 +1592,7 @@ module Lithic
|
|
1646
1592
|
)
|
1647
1593
|
.returns(T.attached_class)
|
1648
1594
|
end
|
1649
|
-
def self.new(acquirer:, mastercard:, visa:)
|
1650
|
-
end
|
1595
|
+
def self.new(acquirer:, mastercard:, visa:); end
|
1651
1596
|
|
1652
1597
|
sig do
|
1653
1598
|
override
|
@@ -1659,15 +1604,14 @@ module Lithic
|
|
1659
1604
|
}
|
1660
1605
|
)
|
1661
1606
|
end
|
1662
|
-
def to_hash
|
1663
|
-
end
|
1607
|
+
def to_hash; end
|
1664
1608
|
|
1665
1609
|
class Acquirer < Lithic::Internal::Type::BaseModel
|
1666
1610
|
# Identifier assigned by the acquirer, applicable to dual-message transactions
|
1667
|
-
#
|
1668
|
-
#
|
1669
|
-
#
|
1670
|
-
#
|
1611
|
+
# only. The acquirer reference number (ARN) is only populated once a transaction
|
1612
|
+
# has been cleared, and it is not available in all transactions (such as automated
|
1613
|
+
# fuel dispenser transactions). A single transaction can contain multiple ARNs if
|
1614
|
+
# the merchant sends multiple clearings.
|
1671
1615
|
sig { returns(T.nilable(String)) }
|
1672
1616
|
attr_accessor :acquirer_reference_number
|
1673
1617
|
|
@@ -1682,8 +1626,7 @@ module Lithic
|
|
1682
1626
|
)
|
1683
1627
|
.returns(T.attached_class)
|
1684
1628
|
end
|
1685
|
-
def self.new(acquirer_reference_number:, retrieval_reference_number:)
|
1686
|
-
end
|
1629
|
+
def self.new(acquirer_reference_number:, retrieval_reference_number:); end
|
1687
1630
|
|
1688
1631
|
sig do
|
1689
1632
|
override
|
@@ -1692,38 +1635,37 @@ module Lithic
|
|
1692
1635
|
retrieval_reference_number: T.nilable(String)
|
1693
1636
|
})
|
1694
1637
|
end
|
1695
|
-
def to_hash
|
1696
|
-
end
|
1638
|
+
def to_hash; end
|
1697
1639
|
end
|
1698
1640
|
|
1699
1641
|
class Mastercard < Lithic::Internal::Type::BaseModel
|
1700
1642
|
# Identifier assigned by Mastercard. Guaranteed by Mastercard to be unique for any
|
1701
|
-
#
|
1643
|
+
# transaction within a specific financial network on any processing day.
|
1702
1644
|
sig { returns(T.nilable(String)) }
|
1703
1645
|
attr_accessor :banknet_reference_number
|
1704
1646
|
|
1705
1647
|
# Identifier assigned by Mastercard. Matches the `banknet_reference_number` of a
|
1706
|
-
#
|
1707
|
-
#
|
1708
|
-
#
|
1709
|
-
#
|
1710
|
-
#
|
1711
|
-
#
|
1712
|
-
#
|
1713
|
-
#
|
1714
|
-
#
|
1715
|
-
#
|
1648
|
+
# prior related event. May be populated in authorization reversals, incremental
|
1649
|
+
# authorizations (authorization requests that augment a previously authorized
|
1650
|
+
# amount), automated fuel dispenser authorization advices and clearings, and
|
1651
|
+
# financial authorizations. If the original banknet reference number contains all
|
1652
|
+
# zeroes, then no actual reference number could be found by the network or
|
1653
|
+
# acquirer. If Mastercard converts a transaction from dual-message to
|
1654
|
+
# single-message, such as for certain ATM transactions, it will populate the
|
1655
|
+
# original banknet reference number in the resulting financial authorization with
|
1656
|
+
# the banknet reference number of the initial authorization, which Lithic does not
|
1657
|
+
# receive.
|
1716
1658
|
sig { returns(T.nilable(String)) }
|
1717
1659
|
attr_accessor :original_banknet_reference_number
|
1718
1660
|
|
1719
1661
|
# Identifier assigned by Mastercard. Matches the `switch_serial_number` of a prior
|
1720
|
-
#
|
1721
|
-
#
|
1662
|
+
# related event. May be populated in returns and return reversals. Applicable to
|
1663
|
+
# single-message transactions only.
|
1722
1664
|
sig { returns(T.nilable(String)) }
|
1723
1665
|
attr_accessor :original_switch_serial_number
|
1724
1666
|
|
1725
1667
|
# Identifier assigned by Mastercard, applicable to single-message transactions
|
1726
|
-
#
|
1668
|
+
# only.
|
1727
1669
|
sig { returns(T.nilable(String)) }
|
1728
1670
|
attr_accessor :switch_serial_number
|
1729
1671
|
|
@@ -1741,9 +1683,7 @@ module Lithic
|
|
1741
1683
|
original_banknet_reference_number:,
|
1742
1684
|
original_switch_serial_number:,
|
1743
1685
|
switch_serial_number:
|
1744
|
-
)
|
1745
|
-
end
|
1746
|
-
|
1686
|
+
); end
|
1747
1687
|
sig do
|
1748
1688
|
override
|
1749
1689
|
.returns(
|
@@ -1755,21 +1695,20 @@ module Lithic
|
|
1755
1695
|
}
|
1756
1696
|
)
|
1757
1697
|
end
|
1758
|
-
def to_hash
|
1759
|
-
end
|
1698
|
+
def to_hash; end
|
1760
1699
|
end
|
1761
1700
|
|
1762
1701
|
class Visa < Lithic::Internal::Type::BaseModel
|
1763
1702
|
# Identifier assigned by Visa. Matches the `transaction_id` of a prior related
|
1764
|
-
#
|
1765
|
-
#
|
1766
|
-
#
|
1703
|
+
# event. May be populated in incremental authorizations (authorization requests
|
1704
|
+
# that augment a previously authorized amount), authorization advices, financial
|
1705
|
+
# authorizations, and clearings.
|
1767
1706
|
sig { returns(T.nilable(String)) }
|
1768
1707
|
attr_accessor :original_transaction_id
|
1769
1708
|
|
1770
1709
|
# Identifier assigned by Visa to link original messages to subsequent messages.
|
1771
|
-
#
|
1772
|
-
#
|
1710
|
+
# Guaranteed by Visa to be unique for each original authorization and financial
|
1711
|
+
# authorization.
|
1773
1712
|
sig { returns(T.nilable(String)) }
|
1774
1713
|
attr_accessor :transaction_id
|
1775
1714
|
|
@@ -1777,8 +1716,7 @@ module Lithic
|
|
1777
1716
|
params(original_transaction_id: T.nilable(String), transaction_id: T.nilable(String))
|
1778
1717
|
.returns(T.attached_class)
|
1779
1718
|
end
|
1780
|
-
def self.new(original_transaction_id:, transaction_id:)
|
1781
|
-
end
|
1719
|
+
def self.new(original_transaction_id:, transaction_id:); end
|
1782
1720
|
|
1783
1721
|
sig do
|
1784
1722
|
override.returns(
|
@@ -1788,8 +1726,7 @@ module Lithic
|
|
1788
1726
|
}
|
1789
1727
|
)
|
1790
1728
|
end
|
1791
|
-
def to_hash
|
1792
|
-
end
|
1729
|
+
def to_hash; end
|
1793
1730
|
end
|
1794
1731
|
end
|
1795
1732
|
|
@@ -1836,15 +1773,14 @@ module Lithic
|
|
1836
1773
|
T.let(:USER_TRANSACTION_LIMIT, Lithic::Models::Transaction::Event::Result::TaggedSymbol)
|
1837
1774
|
|
1838
1775
|
sig { override.returns(T::Array[Lithic::Models::Transaction::Event::Result::TaggedSymbol]) }
|
1839
|
-
def self.values
|
1840
|
-
end
|
1776
|
+
def self.values; end
|
1841
1777
|
end
|
1842
1778
|
|
1843
1779
|
class RuleResult < Lithic::Internal::Type::BaseModel
|
1844
1780
|
# The Auth Rule Token associated with the rule from which the decline originated.
|
1845
|
-
#
|
1846
|
-
#
|
1847
|
-
#
|
1781
|
+
# If this is set to null, then the decline was not associated with a
|
1782
|
+
# customer-configured Auth Rule. This may happen in cases where a transaction is
|
1783
|
+
# declined due to a Lithic-configured security or compliance rule, for example.
|
1848
1784
|
sig { returns(T.nilable(String)) }
|
1849
1785
|
attr_accessor :auth_rule_token
|
1850
1786
|
|
@@ -1869,8 +1805,7 @@ module Lithic
|
|
1869
1805
|
)
|
1870
1806
|
.returns(T.attached_class)
|
1871
1807
|
end
|
1872
|
-
def self.new(auth_rule_token:, explanation:, name:, result:)
|
1873
|
-
end
|
1808
|
+
def self.new(auth_rule_token:, explanation:, name:, result:); end
|
1874
1809
|
|
1875
1810
|
sig do
|
1876
1811
|
override
|
@@ -1883,8 +1818,7 @@ module Lithic
|
|
1883
1818
|
}
|
1884
1819
|
)
|
1885
1820
|
end
|
1886
|
-
def to_hash
|
1887
|
-
end
|
1821
|
+
def to_hash; end
|
1888
1822
|
|
1889
1823
|
# The detailed_result associated with this rule's decline.
|
1890
1824
|
module Result
|
@@ -2021,8 +1955,7 @@ module Lithic
|
|
2021
1955
|
T.let(:VEHICLE_NUMBER_INVALID, Lithic::Models::Transaction::Event::RuleResult::Result::TaggedSymbol)
|
2022
1956
|
|
2023
1957
|
sig { override.returns(T::Array[Lithic::Models::Transaction::Event::RuleResult::Result::TaggedSymbol]) }
|
2024
|
-
def self.values
|
2025
|
-
end
|
1958
|
+
def self.values; end
|
2026
1959
|
end
|
2027
1960
|
end
|
2028
1961
|
|
@@ -2056,8 +1989,7 @@ module Lithic
|
|
2056
1989
|
RETURN_REVERSAL = T.let(:RETURN_REVERSAL, Lithic::Models::Transaction::Event::Type::TaggedSymbol)
|
2057
1990
|
|
2058
1991
|
sig { override.returns(T::Array[Lithic::Models::Transaction::Event::Type::TaggedSymbol]) }
|
2059
|
-
def self.values
|
2060
|
-
end
|
1992
|
+
def self.values; end
|
2061
1993
|
end
|
2062
1994
|
end
|
2063
1995
|
end
|