lithic 0.1.0.pre.alpha.23 → 0.1.0.pre.alpha.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +2 -2
- data/lib/lithic/errors.rb +1 -1
- data/lib/lithic/internal/transport/base_client.rb +77 -5
- data/lib/lithic/internal/transport/pooled_net_requester.rb +14 -0
- data/lib/lithic/internal/type/array_of.rb +1 -1
- data/lib/lithic/internal/type/base_model.rb +62 -30
- data/lib/lithic/internal/type/converter.rb +18 -0
- data/lib/lithic/internal/type/enum.rb +1 -0
- data/lib/lithic/internal/type/hash_of.rb +1 -1
- data/lib/lithic/internal/type/union.rb +1 -0
- data/lib/lithic/internal/util.rb +56 -0
- data/lib/lithic/internal.rb +6 -0
- data/lib/lithic/models/account_holder_update_response.rb +9 -0
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +4 -0
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +20 -0
- data/lib/lithic/models/auth_rules/v2_create_params.rb +10 -0
- data/lib/lithic/models/auth_rules/v2_create_response.rb +20 -0
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +10 -0
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +20 -0
- data/lib/lithic/models/auth_rules/v2_list_response.rb +20 -0
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +20 -0
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +20 -0
- data/lib/lithic/models/auth_rules/v2_update_response.rb +20 -0
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -0
- data/lib/lithic/models/card_list_params.rb +9 -1
- data/lib/lithic/models/event.rb +1 -0
- data/lib/lithic/models/event_list_params.rb +1 -0
- data/lib/lithic/models/event_subscription.rb +1 -0
- data/lib/lithic/models/events/subscription_create_params.rb +1 -0
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
- data/lib/lithic/models/events/subscription_update_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +1 -0
- data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +10 -1
- data/lib/lithic/models/transaction.rb +65 -9
- data/lib/lithic/models.rb +27 -0
- data/lib/lithic/request_options.rb +4 -0
- data/lib/lithic/resources/cards.rb +3 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +2 -0
- data/rbi/lithic/internal/transport/base_client.rbi +31 -13
- data/rbi/lithic/internal/transport/pooled_net_requester.rbi +5 -5
- data/rbi/lithic/internal/type/base_model.rbi +31 -15
- data/rbi/lithic/internal/type/base_page.rbi +1 -2
- data/rbi/lithic/internal/type/converter.rbi +2 -0
- data/rbi/lithic/internal/type/enum.rbi +1 -0
- data/rbi/lithic/internal/type/union.rbi +1 -0
- data/rbi/lithic/internal/util.rbi +28 -5
- data/rbi/lithic/internal.rbi +2 -0
- data/rbi/lithic/models/account.rbi +17 -4
- data/rbi/lithic/models/account_holder.rbi +41 -7
- data/rbi/lithic/models/account_holder_create_params.rbi +39 -6
- data/rbi/lithic/models/account_holder_create_response.rbi +7 -1
- data/rbi/lithic/models/account_holder_list_documents_params.rbi +7 -1
- data/rbi/lithic/models/account_holder_list_documents_response.rbi +7 -1
- data/rbi/lithic/models/account_holder_list_params.rbi +4 -1
- data/rbi/lithic/models/account_holder_retrieve_document_params.rbi +7 -1
- data/rbi/lithic/models/account_holder_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/account_holder_simulate_enrollment_document_review_params.rbi +7 -1
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_params.rbi +7 -1
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +53 -8
- data/rbi/lithic/models/account_holder_update_params.rbi +39 -6
- data/rbi/lithic/models/account_holder_update_response.rbi +62 -10
- data/rbi/lithic/models/account_holder_upload_document_params.rbi +7 -1
- data/rbi/lithic/models/account_list_params.rbi +4 -1
- data/rbi/lithic/models/account_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/account_retrieve_spend_limits_params.rbi +7 -1
- data/rbi/lithic/models/account_spend_limits.rbi +25 -4
- data/rbi/lithic/models/account_update_params.rbi +11 -2
- data/rbi/lithic/models/address.rbi +2 -1
- data/rbi/lithic/models/address_update.rbi +2 -1
- data/rbi/lithic/models/aggregate_balance.rbi +4 -1
- data/rbi/lithic/models/aggregate_balance_list_params.rbi +4 -1
- data/rbi/lithic/models/api_status.rbi +2 -1
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +4 -1
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +7 -1
- data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +7 -1
- data/rbi/lithic/models/auth_rules/v2/backtest_create_params.rbi +6 -1
- data/rbi/lithic/models/auth_rules/v2/backtest_create_response.rbi +6 -1
- data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +42 -7
- data/rbi/lithic/models/auth_rules/v2/backtest_retrieve_params.rbi +6 -1
- data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +4 -1
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +43 -7
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +16 -3
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +43 -7
- data/rbi/lithic/models/auth_rules/v2_delete_params.rbi +4 -1
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +16 -3
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +43 -7
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +4 -1
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +43 -7
- data/rbi/lithic/models/auth_rules/v2_promote_params.rbi +4 -1
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +43 -7
- data/rbi/lithic/models/auth_rules/v2_report_params.rbi +4 -1
- data/rbi/lithic/models/auth_rules/v2_report_response.rbi +7 -1
- data/rbi/lithic/models/auth_rules/v2_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +43 -7
- data/rbi/lithic/models/auth_rules/v2_update_params.rbi +4 -1
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +43 -7
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +13 -2
- data/rbi/lithic/models/auth_stream_enrollment_retrieve_secret_params.rbi +7 -1
- data/rbi/lithic/models/auth_stream_enrollment_rotate_secret_params.rbi +7 -1
- data/rbi/lithic/models/auth_stream_secret.rbi +4 -1
- data/rbi/lithic/models/balance.rbi +2 -1
- data/rbi/lithic/models/balance_list_params.rbi +4 -1
- data/rbi/lithic/models/book_transfer_create_params.rbi +4 -1
- data/rbi/lithic/models/book_transfer_list_params.rbi +4 -1
- data/rbi/lithic/models/book_transfer_response.rbi +11 -2
- data/rbi/lithic/models/book_transfer_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/book_transfer_reverse_params.rbi +4 -1
- data/rbi/lithic/models/card.rbi +1 -1
- data/rbi/lithic/models/card_convert_physical_params.rbi +4 -1
- data/rbi/lithic/models/card_create_params.rbi +4 -1
- data/rbi/lithic/models/card_embed_params.rbi +4 -1
- data/rbi/lithic/models/card_list_params.rbi +15 -1
- data/rbi/lithic/models/card_program.rbi +2 -1
- data/rbi/lithic/models/card_program_list_params.rbi +4 -1
- data/rbi/lithic/models/card_program_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/card_provision_params.rbi +4 -1
- data/rbi/lithic/models/card_provision_response.rbi +7 -1
- data/rbi/lithic/models/card_reissue_params.rbi +4 -1
- data/rbi/lithic/models/card_renew_params.rbi +4 -1
- data/rbi/lithic/models/card_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/card_retrieve_spend_limits_params.rbi +7 -1
- data/rbi/lithic/models/card_search_by_pan_params.rbi +4 -1
- data/rbi/lithic/models/card_spend_limits.rbi +25 -4
- data/rbi/lithic/models/card_update_params.rbi +4 -1
- data/rbi/lithic/models/cards/aggregate_balance_list_params.rbi +7 -1
- data/rbi/lithic/models/cards/aggregate_balance_list_response.rbi +7 -1
- data/rbi/lithic/models/cards/balance_list_params.rbi +4 -1
- data/rbi/lithic/models/cards/balance_list_response.rbi +7 -1
- data/rbi/lithic/models/cards/financial_transaction_list_params.rbi +7 -1
- data/rbi/lithic/models/cards/financial_transaction_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/carrier.rbi +2 -1
- data/rbi/lithic/models/client_api_status_params.rbi +4 -1
- data/rbi/lithic/models/credit_products/extended_credit.rbi +7 -1
- data/rbi/lithic/models/credit_products/extended_credit_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/credit_products/prime_rate_create_params.rbi +7 -1
- data/rbi/lithic/models/credit_products/prime_rate_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/credit_products/prime_rate_retrieve_response.rbi +13 -2
- data/rbi/lithic/models/digital_card_art.rbi +4 -1
- data/rbi/lithic/models/digital_card_art_list_params.rbi +4 -1
- data/rbi/lithic/models/digital_card_art_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/dispute.rbi +2 -1
- data/rbi/lithic/models/dispute_create_params.rbi +4 -1
- data/rbi/lithic/models/dispute_delete_evidence_params.rbi +4 -1
- data/rbi/lithic/models/dispute_delete_params.rbi +4 -1
- data/rbi/lithic/models/dispute_evidence.rbi +4 -1
- data/rbi/lithic/models/dispute_initiate_evidence_upload_params.rbi +7 -1
- data/rbi/lithic/models/dispute_list_evidences_params.rbi +4 -1
- data/rbi/lithic/models/dispute_list_params.rbi +4 -1
- data/rbi/lithic/models/dispute_retrieve_evidence_params.rbi +7 -1
- data/rbi/lithic/models/dispute_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/dispute_update_params.rbi +4 -1
- data/rbi/lithic/models/document.rbi +9 -2
- data/rbi/lithic/models/event.rbi +6 -1
- data/rbi/lithic/models/event_list_attempts_params.rbi +4 -1
- data/rbi/lithic/models/event_list_params.rbi +9 -1
- data/rbi/lithic/models/event_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/event_subscription.rbi +9 -1
- data/rbi/lithic/models/events/event_subscription_resend_params.rbi +7 -1
- data/rbi/lithic/models/events/subscription_create_params.rbi +12 -1
- data/rbi/lithic/models/events/subscription_delete_params.rbi +7 -1
- data/rbi/lithic/models/events/subscription_list_attempts_params.rbi +7 -1
- data/rbi/lithic/models/events/subscription_list_params.rbi +7 -1
- data/rbi/lithic/models/events/subscription_recover_params.rbi +7 -1
- data/rbi/lithic/models/events/subscription_replay_missing_params.rbi +7 -1
- data/rbi/lithic/models/events/subscription_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/events/subscription_retrieve_secret_params.rbi +7 -1
- data/rbi/lithic/models/events/subscription_retrieve_secret_response.rbi +7 -1
- data/rbi/lithic/models/events/subscription_rotate_secret_params.rbi +7 -1
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +12 -1
- data/rbi/lithic/models/events/subscription_update_params.rbi +12 -1
- data/rbi/lithic/models/external_bank_account_address.rbi +4 -1
- data/rbi/lithic/models/external_bank_account_create_params.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_create_response.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_list_params.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_list_response.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_retrieve_response.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_retry_micro_deposits_params.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_retry_micro_deposits_response.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_retry_prenote_params.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_retry_prenote_response.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_update_params.rbi +7 -1
- data/rbi/lithic/models/external_bank_account_update_response.rbi +7 -1
- data/rbi/lithic/models/external_bank_accounts/micro_deposit_create_params.rbi +7 -1
- data/rbi/lithic/models/external_bank_accounts/micro_deposit_create_response.rbi +7 -1
- data/rbi/lithic/models/external_payment.rbi +8 -2
- data/rbi/lithic/models/external_payment_cancel_params.rbi +4 -1
- data/rbi/lithic/models/external_payment_create_params.rbi +4 -1
- data/rbi/lithic/models/external_payment_list_params.rbi +4 -1
- data/rbi/lithic/models/external_payment_release_params.rbi +4 -1
- data/rbi/lithic/models/external_payment_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/external_payment_reverse_params.rbi +4 -1
- data/rbi/lithic/models/external_payment_settle_params.rbi +4 -1
- data/rbi/lithic/models/financial_account.rbi +11 -2
- data/rbi/lithic/models/financial_account_create_params.rbi +4 -1
- data/rbi/lithic/models/financial_account_list_params.rbi +4 -1
- data/rbi/lithic/models/financial_account_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/financial_account_update_params.rbi +4 -1
- data/rbi/lithic/models/financial_account_update_status_params.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/balance_list_params.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/balance_list_response.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/credit_configuration_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/credit_configuration_update_params.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/financial_transaction_list_params.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/financial_transaction_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +109 -18
- data/rbi/lithic/models/financial_accounts/loan_tape_list_params.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/loan_tape_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/statement.rbi +61 -10
- data/rbi/lithic/models/financial_accounts/statement_list_params.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/statement_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/financial_accounts/statements/line_item_list_params.rbi +6 -1
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +17 -2
- data/rbi/lithic/models/financial_accounts/statements.rbi +7 -1
- data/rbi/lithic/models/financial_transaction.rbi +11 -2
- data/rbi/lithic/models/kyb.rbi +20 -5
- data/rbi/lithic/models/kyb_business_entity.rbi +8 -2
- data/rbi/lithic/models/kyc.rbi +5 -2
- data/rbi/lithic/models/kyc_exempt.rbi +2 -1
- data/rbi/lithic/models/management_operation_create_params.rbi +7 -1
- data/rbi/lithic/models/management_operation_list_params.rbi +7 -1
- data/rbi/lithic/models/management_operation_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/management_operation_reverse_params.rbi +7 -1
- data/rbi/lithic/models/management_operation_transaction.rbi +21 -3
- data/rbi/lithic/models/message_attempt.rbi +4 -1
- data/rbi/lithic/models/non_pci_card.rbi +6 -2
- data/rbi/lithic/models/payment.rbi +10 -3
- data/rbi/lithic/models/payment_create_params.rbi +11 -2
- data/rbi/lithic/models/payment_create_response.rbi +7 -1
- data/rbi/lithic/models/payment_list_params.rbi +4 -1
- data/rbi/lithic/models/payment_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/payment_retry_params.rbi +4 -1
- data/rbi/lithic/models/payment_retry_response.rbi +4 -1
- data/rbi/lithic/models/payment_simulate_action_params.rbi +4 -1
- data/rbi/lithic/models/payment_simulate_action_response.rbi +7 -1
- data/rbi/lithic/models/payment_simulate_receipt_params.rbi +4 -1
- data/rbi/lithic/models/payment_simulate_receipt_response.rbi +7 -1
- data/rbi/lithic/models/payment_simulate_release_params.rbi +4 -1
- data/rbi/lithic/models/payment_simulate_release_response.rbi +7 -1
- data/rbi/lithic/models/payment_simulate_return_params.rbi +4 -1
- data/rbi/lithic/models/payment_simulate_return_response.rbi +7 -1
- data/rbi/lithic/models/reports/settlement/network_total_list_params.rbi +6 -1
- data/rbi/lithic/models/reports/settlement/network_total_list_response.rbi +12 -2
- data/rbi/lithic/models/reports/settlement/network_total_retrieve_params.rbi +6 -1
- data/rbi/lithic/models/reports/settlement/network_total_retrieve_response.rbi +12 -2
- data/rbi/lithic/models/reports/settlement_list_details_params.rbi +7 -1
- data/rbi/lithic/models/reports/settlement_summary_params.rbi +7 -1
- data/rbi/lithic/models/required_document.rbi +4 -1
- data/rbi/lithic/models/responder_endpoint_check_status_params.rbi +7 -1
- data/rbi/lithic/models/responder_endpoint_create_params.rbi +7 -1
- data/rbi/lithic/models/responder_endpoint_create_response.rbi +7 -1
- data/rbi/lithic/models/responder_endpoint_delete_params.rbi +7 -1
- data/rbi/lithic/models/responder_endpoint_status.rbi +4 -1
- data/rbi/lithic/models/settlement_detail.rbi +11 -2
- data/rbi/lithic/models/settlement_report.rbi +4 -1
- data/rbi/lithic/models/settlement_summary_details.rbi +4 -1
- data/rbi/lithic/models/shipping_address.rbi +4 -1
- data/rbi/lithic/models/three_ds/authentication_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +77 -11
- data/rbi/lithic/models/three_ds/authentication_simulate_otp_entry_params.rbi +7 -1
- data/rbi/lithic/models/three_ds/authentication_simulate_params.rbi +19 -3
- data/rbi/lithic/models/three_ds/authentication_simulate_response.rbi +7 -1
- data/rbi/lithic/models/three_ds/challenge_response.rbi +4 -1
- data/rbi/lithic/models/three_ds/decisioning_challenge_response_params.rbi +7 -1
- data/rbi/lithic/models/three_ds/decisioning_retrieve_secret_params.rbi +7 -1
- data/rbi/lithic/models/three_ds/decisioning_retrieve_secret_response.rbi +7 -1
- data/rbi/lithic/models/three_ds/decisioning_rotate_secret_params.rbi +7 -1
- data/rbi/lithic/models/tokenization.rbi +6 -2
- data/rbi/lithic/models/tokenization_activate_params.rbi +4 -1
- data/rbi/lithic/models/tokenization_deactivate_params.rbi +4 -1
- data/rbi/lithic/models/tokenization_decisioning_retrieve_secret_params.rbi +7 -1
- data/rbi/lithic/models/tokenization_decisioning_rotate_secret_params.rbi +7 -1
- data/rbi/lithic/models/tokenization_decisioning_rotate_secret_response.rbi +7 -1
- data/rbi/lithic/models/tokenization_list_params.rbi +4 -1
- data/rbi/lithic/models/tokenization_pause_params.rbi +4 -1
- data/rbi/lithic/models/tokenization_resend_activation_code_params.rbi +7 -1
- data/rbi/lithic/models/tokenization_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/tokenization_retrieve_response.rbi +7 -1
- data/rbi/lithic/models/tokenization_secret.rbi +4 -1
- data/rbi/lithic/models/tokenization_simulate_params.rbi +4 -1
- data/rbi/lithic/models/tokenization_simulate_response.rbi +7 -1
- data/rbi/lithic/models/tokenization_unpause_params.rbi +4 -1
- data/rbi/lithic/models/tokenization_update_digital_card_art_params.rbi +7 -1
- data/rbi/lithic/models/tokenization_update_digital_card_art_response.rbi +7 -1
- data/rbi/lithic/models/transaction.rbi +293 -40
- data/rbi/lithic/models/transaction_expire_authorization_params.rbi +7 -1
- data/rbi/lithic/models/transaction_list_params.rbi +4 -1
- data/rbi/lithic/models/transaction_retrieve_params.rbi +4 -1
- data/rbi/lithic/models/transaction_simulate_authorization_advice_params.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_authorization_advice_response.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_authorization_response.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_clearing_params.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_clearing_response.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_credit_authorization_params.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_credit_authorization_response.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_return_params.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_return_response.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_return_reversal_params.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_return_reversal_response.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_void_params.rbi +7 -1
- data/rbi/lithic/models/transaction_simulate_void_response.rbi +7 -1
- data/rbi/lithic/models/transactions/enhanced_commercial_data_retrieve_params.rbi +7 -1
- data/rbi/lithic/models/transactions/enhanced_commercial_data_retrieve_response.rbi +7 -1
- data/rbi/lithic/models/transactions/events/enhanced_commercial_data_retrieve_params.rbi +6 -1
- data/rbi/lithic/models/transactions/events/enhanced_data.rbi +42 -7
- data/rbi/lithic/models/transfer.rbi +6 -2
- data/rbi/lithic/models/transfer_create_params.rbi +4 -1
- data/rbi/lithic/request_options.rbi +2 -1
- data/rbi/lithic/resources/cards.rbi +3 -0
- data/sig/lithic/internal/transport/base_client.rbs +16 -1
- data/sig/lithic/internal/transport/pooled_net_requester.rbs +2 -0
- data/sig/lithic/internal/type/base_model.rbs +11 -5
- data/sig/lithic/internal/type/base_page.rbs +1 -1
- data/sig/lithic/internal/type/converter.rbs +2 -0
- data/sig/lithic/internal/type/enum.rbs +1 -0
- data/sig/lithic/internal/type/union.rbs +1 -0
- data/sig/lithic/internal/util.rbs +13 -0
- data/sig/lithic/internal.rbs +2 -0
- data/sig/lithic/models/card_list_params.rbs +6 -0
- data/sig/lithic/models/event.rbs +2 -0
- data/sig/lithic/models/event_list_params.rbs +2 -0
- data/sig/lithic/models/event_subscription.rbs +2 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +2 -0
- data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +4 -0
- data/sig/lithic/models/transaction.rbs +43 -3
- data/sig/lithic/resources/cards.rbs +1 -0
- metadata +2 -2
@@ -180,6 +180,16 @@ module Lithic
|
|
180
180
|
|
181
181
|
# @!method self.variants
|
182
182
|
# @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::MerchantLockParameters)]
|
183
|
+
|
184
|
+
define_sorbet_constant!(:Variants) do
|
185
|
+
T.type_alias do
|
186
|
+
T.any(
|
187
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
188
|
+
Lithic::AuthRules::VelocityLimitParams,
|
189
|
+
Lithic::Models::AuthRules::V2DraftResponse::CurrentVersion::Parameters::MerchantLockParameters
|
190
|
+
)
|
191
|
+
end
|
192
|
+
end
|
183
193
|
end
|
184
194
|
end
|
185
195
|
|
@@ -279,6 +289,16 @@ module Lithic
|
|
279
289
|
|
280
290
|
# @!method self.variants
|
281
291
|
# @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::MerchantLockParameters)]
|
292
|
+
|
293
|
+
define_sorbet_constant!(:Variants) do
|
294
|
+
T.type_alias do
|
295
|
+
T.any(
|
296
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
297
|
+
Lithic::AuthRules::VelocityLimitParams,
|
298
|
+
Lithic::Models::AuthRules::V2DraftResponse::DraftVersion::Parameters::MerchantLockParameters
|
299
|
+
)
|
300
|
+
end
|
301
|
+
end
|
282
302
|
end
|
283
303
|
end
|
284
304
|
|
@@ -180,6 +180,16 @@ module Lithic
|
|
180
180
|
|
181
181
|
# @!method self.variants
|
182
182
|
# @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::MerchantLockParameters)]
|
183
|
+
|
184
|
+
define_sorbet_constant!(:Variants) do
|
185
|
+
T.type_alias do
|
186
|
+
T.any(
|
187
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
188
|
+
Lithic::AuthRules::VelocityLimitParams,
|
189
|
+
Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::MerchantLockParameters
|
190
|
+
)
|
191
|
+
end
|
192
|
+
end
|
183
193
|
end
|
184
194
|
end
|
185
195
|
|
@@ -279,6 +289,16 @@ module Lithic
|
|
279
289
|
|
280
290
|
# @!method self.variants
|
281
291
|
# @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::MerchantLockParameters)]
|
292
|
+
|
293
|
+
define_sorbet_constant!(:Variants) do
|
294
|
+
T.type_alias do
|
295
|
+
T.any(
|
296
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
297
|
+
Lithic::AuthRules::VelocityLimitParams,
|
298
|
+
Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::MerchantLockParameters
|
299
|
+
)
|
300
|
+
end
|
301
|
+
end
|
282
302
|
end
|
283
303
|
end
|
284
304
|
|
@@ -181,6 +181,16 @@ module Lithic
|
|
181
181
|
|
182
182
|
# @!method self.variants
|
183
183
|
# @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::MerchantLockParameters)]
|
184
|
+
|
185
|
+
define_sorbet_constant!(:Variants) do
|
186
|
+
T.type_alias do
|
187
|
+
T.any(
|
188
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
189
|
+
Lithic::AuthRules::VelocityLimitParams,
|
190
|
+
Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::MerchantLockParameters
|
191
|
+
)
|
192
|
+
end
|
193
|
+
end
|
184
194
|
end
|
185
195
|
end
|
186
196
|
|
@@ -280,6 +290,16 @@ module Lithic
|
|
280
290
|
|
281
291
|
# @!method self.variants
|
282
292
|
# @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::MerchantLockParameters)]
|
293
|
+
|
294
|
+
define_sorbet_constant!(:Variants) do
|
295
|
+
T.type_alias do
|
296
|
+
T.any(
|
297
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
298
|
+
Lithic::AuthRules::VelocityLimitParams,
|
299
|
+
Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::MerchantLockParameters
|
300
|
+
)
|
301
|
+
end
|
302
|
+
end
|
283
303
|
end
|
284
304
|
end
|
285
305
|
|
@@ -188,6 +188,16 @@ module Lithic
|
|
188
188
|
|
189
189
|
# @!method self.variants
|
190
190
|
# @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::MerchantLockParameters)]
|
191
|
+
|
192
|
+
define_sorbet_constant!(:Variants) do
|
193
|
+
T.type_alias do
|
194
|
+
T.any(
|
195
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
196
|
+
Lithic::AuthRules::VelocityLimitParams,
|
197
|
+
Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::MerchantLockParameters
|
198
|
+
)
|
199
|
+
end
|
200
|
+
end
|
191
201
|
end
|
192
202
|
end
|
193
203
|
|
@@ -288,6 +298,16 @@ module Lithic
|
|
288
298
|
|
289
299
|
# @!method self.variants
|
290
300
|
# @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::MerchantLockParameters)]
|
301
|
+
|
302
|
+
define_sorbet_constant!(:Variants) do
|
303
|
+
T.type_alias do
|
304
|
+
T.any(
|
305
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
306
|
+
Lithic::AuthRules::VelocityLimitParams,
|
307
|
+
Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::MerchantLockParameters
|
308
|
+
)
|
309
|
+
end
|
310
|
+
end
|
291
311
|
end
|
292
312
|
end
|
293
313
|
|
@@ -181,6 +181,16 @@ module Lithic
|
|
181
181
|
|
182
182
|
# @!method self.variants
|
183
183
|
# @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::MerchantLockParameters)]
|
184
|
+
|
185
|
+
define_sorbet_constant!(:Variants) do
|
186
|
+
T.type_alias do
|
187
|
+
T.any(
|
188
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
189
|
+
Lithic::AuthRules::VelocityLimitParams,
|
190
|
+
Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::MerchantLockParameters
|
191
|
+
)
|
192
|
+
end
|
193
|
+
end
|
184
194
|
end
|
185
195
|
end
|
186
196
|
|
@@ -280,6 +290,16 @@ module Lithic
|
|
280
290
|
|
281
291
|
# @!method self.variants
|
282
292
|
# @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::MerchantLockParameters)]
|
293
|
+
|
294
|
+
define_sorbet_constant!(:Variants) do
|
295
|
+
T.type_alias do
|
296
|
+
T.any(
|
297
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
298
|
+
Lithic::AuthRules::VelocityLimitParams,
|
299
|
+
Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::MerchantLockParameters
|
300
|
+
)
|
301
|
+
end
|
302
|
+
end
|
283
303
|
end
|
284
304
|
end
|
285
305
|
|
@@ -117,6 +117,10 @@ module Lithic
|
|
117
117
|
|
118
118
|
# @!method self.variants
|
119
119
|
# @return [Array(Integer, Symbol, Lithic::AuthRules::VelocityLimitParamsPeriodWindow)]
|
120
|
+
|
121
|
+
define_sorbet_constant!(:Variants) do
|
122
|
+
T.type_alias { T.any(Integer, Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TaggedSymbol) }
|
123
|
+
end
|
120
124
|
end
|
121
125
|
|
122
126
|
# @see Lithic::AuthRules::VelocityLimitParams#scope
|
@@ -34,6 +34,12 @@ module Lithic
|
|
34
34
|
# @return [String, nil]
|
35
35
|
optional :ending_before, String
|
36
36
|
|
37
|
+
# @!attribute memo
|
38
|
+
# Returns cards containing the specified partial or full memo text.
|
39
|
+
#
|
40
|
+
# @return [String, nil]
|
41
|
+
optional :memo, String
|
42
|
+
|
37
43
|
# @!attribute page_size
|
38
44
|
# Page size (for pagination).
|
39
45
|
#
|
@@ -53,7 +59,7 @@ module Lithic
|
|
53
59
|
# @return [Symbol, Lithic::CardListParams::State, nil]
|
54
60
|
optional :state, enum: -> { Lithic::CardListParams::State }
|
55
61
|
|
56
|
-
# @!method initialize(account_token: nil, begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, state: nil, request_options: {})
|
62
|
+
# @!method initialize(account_token: nil, begin_: nil, end_: nil, ending_before: nil, memo: nil, page_size: nil, starting_after: nil, state: nil, request_options: {})
|
57
63
|
# Some parameter documentations has been truncated, see
|
58
64
|
# {Lithic::Models::CardListParams} for more details.
|
59
65
|
#
|
@@ -65,6 +71,8 @@ module Lithic
|
|
65
71
|
#
|
66
72
|
# @param ending_before [String] A cursor representing an item's token before which a page of results should end.
|
67
73
|
#
|
74
|
+
# @param memo [String] Returns cards containing the specified partial or full memo text.
|
75
|
+
#
|
68
76
|
# @param page_size [Integer] Page size (for pagination).
|
69
77
|
#
|
70
78
|
# @param starting_after [String] A cursor representing an item's token after which a page of results should begin
|
data/lib/lithic/models/event.rb
CHANGED
@@ -132,6 +132,7 @@ module Lithic
|
|
132
132
|
EXTERNAL_PAYMENT_UPDATED = :"external_payment.updated"
|
133
133
|
FINANCIAL_ACCOUNT_CREATED = :"financial_account.created"
|
134
134
|
FINANCIAL_ACCOUNT_UPDATED = :"financial_account.updated"
|
135
|
+
FUNDING_EVENT_CREATED = :"funding_event.created"
|
135
136
|
LOAN_TAPE_CREATED = :"loan_tape.created"
|
136
137
|
LOAN_TAPE_UPDATED = :"loan_tape.updated"
|
137
138
|
MANAGEMENT_OPERATION_CREATED = :"management_operation.created"
|
@@ -103,6 +103,7 @@ module Lithic
|
|
103
103
|
EXTERNAL_PAYMENT_UPDATED = :"external_payment.updated"
|
104
104
|
FINANCIAL_ACCOUNT_CREATED = :"financial_account.created"
|
105
105
|
FINANCIAL_ACCOUNT_UPDATED = :"financial_account.updated"
|
106
|
+
FUNDING_EVENT_CREATED = :"funding_event.created"
|
106
107
|
LOAN_TAPE_CREATED = :"loan_tape.created"
|
107
108
|
LOAN_TAPE_UPDATED = :"loan_tape.updated"
|
108
109
|
MANAGEMENT_OPERATION_CREATED = :"management_operation.created"
|
@@ -76,6 +76,7 @@ module Lithic
|
|
76
76
|
EXTERNAL_PAYMENT_UPDATED = :"external_payment.updated"
|
77
77
|
FINANCIAL_ACCOUNT_CREATED = :"financial_account.created"
|
78
78
|
FINANCIAL_ACCOUNT_UPDATED = :"financial_account.updated"
|
79
|
+
FUNDING_EVENT_CREATED = :"funding_event.created"
|
79
80
|
LOAN_TAPE_CREATED = :"loan_tape.created"
|
80
81
|
LOAN_TAPE_UPDATED = :"loan_tape.updated"
|
81
82
|
MANAGEMENT_OPERATION_CREATED = :"management_operation.created"
|
@@ -80,6 +80,7 @@ module Lithic
|
|
80
80
|
EXTERNAL_PAYMENT_UPDATED = :"external_payment.updated"
|
81
81
|
FINANCIAL_ACCOUNT_CREATED = :"financial_account.created"
|
82
82
|
FINANCIAL_ACCOUNT_UPDATED = :"financial_account.updated"
|
83
|
+
FUNDING_EVENT_CREATED = :"funding_event.created"
|
83
84
|
LOAN_TAPE_CREATED = :"loan_tape.created"
|
84
85
|
LOAN_TAPE_UPDATED = :"loan_tape.updated"
|
85
86
|
MANAGEMENT_OPERATION_CREATED = :"management_operation.created"
|
@@ -50,6 +50,7 @@ module Lithic
|
|
50
50
|
EXTERNAL_PAYMENT_UPDATED = :"external_payment.updated"
|
51
51
|
FINANCIAL_ACCOUNT_CREATED = :"financial_account.created"
|
52
52
|
FINANCIAL_ACCOUNT_UPDATED = :"financial_account.updated"
|
53
|
+
FUNDING_EVENT_CREATED = :"funding_event.created"
|
53
54
|
LOAN_TAPE_CREATED = :"loan_tape.created"
|
54
55
|
LOAN_TAPE_UPDATED = :"loan_tape.updated"
|
55
56
|
MANAGEMENT_OPERATION_CREATED = :"management_operation.created"
|
@@ -80,6 +80,7 @@ module Lithic
|
|
80
80
|
EXTERNAL_PAYMENT_UPDATED = :"external_payment.updated"
|
81
81
|
FINANCIAL_ACCOUNT_CREATED = :"financial_account.created"
|
82
82
|
FINANCIAL_ACCOUNT_UPDATED = :"financial_account.updated"
|
83
|
+
FUNDING_EVENT_CREATED = :"funding_event.created"
|
83
84
|
LOAN_TAPE_CREATED = :"loan_tape.created"
|
84
85
|
LOAN_TAPE_UPDATED = :"loan_tape.updated"
|
85
86
|
MANAGEMENT_OPERATION_CREATED = :"management_operation.created"
|
@@ -1011,6 +1011,13 @@ module Lithic
|
|
1011
1011
|
# @return [Float]
|
1012
1012
|
required :amount, Float
|
1013
1013
|
|
1014
|
+
# @!attribute cardholder_amount
|
1015
|
+
# Approximate amount of the purchase in minor units of cardholder currency.
|
1016
|
+
# Derived from `amount` using a daily conversion rate.
|
1017
|
+
#
|
1018
|
+
# @return [Float, nil]
|
1019
|
+
required :cardholder_amount, Float, nil?: true
|
1020
|
+
|
1014
1021
|
# @!attribute currency
|
1015
1022
|
# Currency of the purchase. Maps to EMV 3DS field purchaseCurrency.
|
1016
1023
|
#
|
@@ -1040,7 +1047,7 @@ module Lithic
|
|
1040
1047
|
enum: -> { Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Transaction::Type },
|
1041
1048
|
nil?: true
|
1042
1049
|
|
1043
|
-
# @!method initialize(amount:, currency:, currency_exponent:, date_time:, type:)
|
1050
|
+
# @!method initialize(amount:, cardholder_amount:, currency:, currency_exponent:, date_time:, type:)
|
1044
1051
|
# Some parameter documentations has been truncated, see
|
1045
1052
|
# {Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Transaction} for more
|
1046
1053
|
# details.
|
@@ -1050,6 +1057,8 @@ module Lithic
|
|
1050
1057
|
#
|
1051
1058
|
# @param amount [Float] Amount of the purchase in minor units of currency with all punctuation removed.
|
1052
1059
|
#
|
1060
|
+
# @param cardholder_amount [Float, nil] Approximate amount of the purchase in minor units of cardholder currency. Derive
|
1061
|
+
#
|
1053
1062
|
# @param currency [String] Currency of the purchase. Maps to EMV 3DS field purchaseCurrency.
|
1054
1063
|
#
|
1055
1064
|
# @param currency_exponent [Float] Minor units of currency, as specified in ISO 4217 currency exponent. Maps to EMV
|
@@ -116,9 +116,8 @@ module Lithic
|
|
116
116
|
required :merchant_currency, String
|
117
117
|
|
118
118
|
# @!attribute network
|
119
|
-
# Card network of the authorization.
|
120
|
-
#
|
121
|
-
# network code from the upstream provider.
|
119
|
+
# Card network of the authorization. Value is `UNKNOWN` when Lithic cannot
|
120
|
+
# determine the network code from the upstream provider.
|
122
121
|
#
|
123
122
|
# @return [Symbol, Lithic::Transaction::Network, nil]
|
124
123
|
required :network, enum: -> { Lithic::Transaction::Network }, nil?: true
|
@@ -209,7 +208,7 @@ module Lithic
|
|
209
208
|
#
|
210
209
|
# @param merchant_currency [String] 3-character alphabetic ISO 4217 code for the local currency of the transaction.
|
211
210
|
#
|
212
|
-
# @param network [Symbol, Lithic::Transaction::Network, nil] Card network of the authorization.
|
211
|
+
# @param network [Symbol, Lithic::Transaction::Network, nil] Card network of the authorization. Value is `UNKNOWN` when Lithic cannot determi
|
213
212
|
#
|
214
213
|
# @param network_risk_score [Integer, nil] Network-provided score assessing risk level associated with a given authorizatio
|
215
214
|
#
|
@@ -439,7 +438,14 @@ module Lithic
|
|
439
438
|
required :verification_result,
|
440
439
|
enum: -> { Lithic::Transaction::CardholderAuthentication::VerificationResult }
|
441
440
|
|
442
|
-
# @!
|
441
|
+
# @!attribute authentication_method
|
442
|
+
# Indicates the method used to authenticate the cardholder.
|
443
|
+
#
|
444
|
+
# @return [Symbol, Lithic::Transaction::CardholderAuthentication::AuthenticationMethod, nil]
|
445
|
+
optional :authentication_method,
|
446
|
+
enum: -> { Lithic::Transaction::CardholderAuthentication::AuthenticationMethod }
|
447
|
+
|
448
|
+
# @!method initialize(three_ds_version:, acquirer_exemption:, authentication_result:, decision_made_by:, liability_shift:, three_ds_authentication_token:, verification_attempted:, verification_result:, authentication_method: nil)
|
443
449
|
# Some parameter documentations has been truncated, see
|
444
450
|
# {Lithic::Transaction::CardholderAuthentication} for more details.
|
445
451
|
#
|
@@ -458,6 +464,8 @@ module Lithic
|
|
458
464
|
# @param verification_attempted [Symbol, Lithic::Transaction::CardholderAuthentication::VerificationAttempted] Indicates whether a 3DS challenge flow was used, and if so, what the verificatio
|
459
465
|
#
|
460
466
|
# @param verification_result [Symbol, Lithic::Transaction::CardholderAuthentication::VerificationResult] Indicates whether a transaction is considered 3DS authenticated. (deprecated, us
|
467
|
+
#
|
468
|
+
# @param authentication_method [Symbol, Lithic::Transaction::CardholderAuthentication::AuthenticationMethod] Indicates the method used to authenticate the cardholder.
|
461
469
|
|
462
470
|
# Whether an acquirer exemption applied to the transaction.
|
463
471
|
#
|
@@ -566,6 +574,20 @@ module Lithic
|
|
566
574
|
# @!method self.values
|
567
575
|
# @return [Array<Symbol>]
|
568
576
|
end
|
577
|
+
|
578
|
+
# Indicates the method used to authenticate the cardholder.
|
579
|
+
#
|
580
|
+
# @see Lithic::Transaction::CardholderAuthentication#authentication_method
|
581
|
+
module AuthenticationMethod
|
582
|
+
extend Lithic::Internal::Type::Enum
|
583
|
+
|
584
|
+
FRICTIONLESS = :FRICTIONLESS
|
585
|
+
CHALLENGE = :CHALLENGE
|
586
|
+
NONE = :NONE
|
587
|
+
|
588
|
+
# @!method self.values
|
589
|
+
# @return [Array<Symbol>]
|
590
|
+
end
|
569
591
|
end
|
570
592
|
|
571
593
|
# @see Lithic::Transaction#merchant
|
@@ -634,14 +656,14 @@ module Lithic
|
|
634
656
|
# @param state [String] Geographic state of card acceptor.
|
635
657
|
end
|
636
658
|
|
637
|
-
# Card network of the authorization.
|
638
|
-
#
|
639
|
-
# network code from the upstream provider.
|
659
|
+
# Card network of the authorization. Value is `UNKNOWN` when Lithic cannot
|
660
|
+
# determine the network code from the upstream provider.
|
640
661
|
#
|
641
662
|
# @see Lithic::Transaction#network
|
642
663
|
module Network
|
643
664
|
extend Lithic::Internal::Type::Enum
|
644
665
|
|
666
|
+
AMEX = :AMEX
|
645
667
|
INTERLINK = :INTERLINK
|
646
668
|
MAESTRO = :MAESTRO
|
647
669
|
MASTERCARD = :MASTERCARD
|
@@ -1280,6 +1302,11 @@ module Lithic
|
|
1280
1302
|
# @return [Lithic::Transaction::Event::NetworkInfo::Acquirer, nil]
|
1281
1303
|
required :acquirer, -> { Lithic::Transaction::Event::NetworkInfo::Acquirer }, nil?: true
|
1282
1304
|
|
1305
|
+
# @!attribute amex
|
1306
|
+
#
|
1307
|
+
# @return [Lithic::Transaction::Event::NetworkInfo::Amex, nil]
|
1308
|
+
required :amex, -> { Lithic::Transaction::Event::NetworkInfo::Amex }, nil?: true
|
1309
|
+
|
1283
1310
|
# @!attribute mastercard
|
1284
1311
|
#
|
1285
1312
|
# @return [Lithic::Transaction::Event::NetworkInfo::Mastercard, nil]
|
@@ -1290,7 +1317,7 @@ module Lithic
|
|
1290
1317
|
# @return [Lithic::Transaction::Event::NetworkInfo::Visa, nil]
|
1291
1318
|
required :visa, -> { Lithic::Transaction::Event::NetworkInfo::Visa }, nil?: true
|
1292
1319
|
|
1293
|
-
# @!method initialize(acquirer:, mastercard:, visa:)
|
1320
|
+
# @!method initialize(acquirer:, amex:, mastercard:, visa:)
|
1294
1321
|
# Information provided by the card network in each event. This includes common
|
1295
1322
|
# identifiers shared between you, Lithic, the card network and in some cases the
|
1296
1323
|
# acquirer. These identifiers often link together events within the same
|
@@ -1302,6 +1329,7 @@ module Lithic
|
|
1302
1329
|
# for more details about these fields and how to use them.
|
1303
1330
|
#
|
1304
1331
|
# @param acquirer [Lithic::Transaction::Event::NetworkInfo::Acquirer, nil]
|
1332
|
+
# @param amex [Lithic::Transaction::Event::NetworkInfo::Amex, nil]
|
1305
1333
|
# @param mastercard [Lithic::Transaction::Event::NetworkInfo::Mastercard, nil]
|
1306
1334
|
# @param visa [Lithic::Transaction::Event::NetworkInfo::Visa, nil]
|
1307
1335
|
|
@@ -1332,6 +1360,34 @@ module Lithic
|
|
1332
1360
|
# @param retrieval_reference_number [String, nil] Identifier assigned by the acquirer.
|
1333
1361
|
end
|
1334
1362
|
|
1363
|
+
# @see Lithic::Transaction::Event::NetworkInfo#amex
|
1364
|
+
class Amex < Lithic::Internal::Type::BaseModel
|
1365
|
+
# @!attribute original_transaction_id
|
1366
|
+
# Identifier assigned by American Express. Matches the `transaction_id` of a prior
|
1367
|
+
# related event. May be populated in incremental authorizations (authorization
|
1368
|
+
# requests that augment a previously authorized amount), authorization advices,
|
1369
|
+
# financial authorizations, and clearings.
|
1370
|
+
#
|
1371
|
+
# @return [String, nil]
|
1372
|
+
required :original_transaction_id, String, nil?: true
|
1373
|
+
|
1374
|
+
# @!attribute transaction_id
|
1375
|
+
# Identifier assigned by American Express to link original messages to subsequent
|
1376
|
+
# messages. Guaranteed by American Express to be unique for each original
|
1377
|
+
# authorization and financial authorization.
|
1378
|
+
#
|
1379
|
+
# @return [String, nil]
|
1380
|
+
required :transaction_id, String, nil?: true
|
1381
|
+
|
1382
|
+
# @!method initialize(original_transaction_id:, transaction_id:)
|
1383
|
+
# Some parameter documentations has been truncated, see
|
1384
|
+
# {Lithic::Transaction::Event::NetworkInfo::Amex} for more details.
|
1385
|
+
#
|
1386
|
+
# @param original_transaction_id [String, nil] Identifier assigned by American Express. Matches the `transaction_id` of a prior
|
1387
|
+
#
|
1388
|
+
# @param transaction_id [String, nil] Identifier assigned by American Express to link original messages to subsequent
|
1389
|
+
end
|
1390
|
+
|
1335
1391
|
# @see Lithic::Transaction::Event::NetworkInfo#mastercard
|
1336
1392
|
class Mastercard < Lithic::Internal::Type::BaseModel
|
1337
1393
|
# @!attribute banknet_reference_number
|
data/lib/lithic/models.rb
CHANGED
@@ -1,6 +1,33 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module Lithic
|
4
|
+
[Lithic::Internal::Type::BaseModel, *Lithic::Internal::Type::BaseModel.subclasses].each do |cls|
|
5
|
+
cls.define_sorbet_constant!(:OrHash) { T.type_alias { T.any(cls, Lithic::Internal::AnyHash) } }
|
6
|
+
end
|
7
|
+
|
8
|
+
[
|
9
|
+
*Lithic::Internal::Type::Enum.included_modules,
|
10
|
+
*Lithic::Internal::Type::Union.included_modules
|
11
|
+
].each do |cls|
|
12
|
+
cls.constants.each do |name|
|
13
|
+
case cls.const_get(name)
|
14
|
+
in true | false
|
15
|
+
cls.define_sorbet_constant!(:TaggedBoolean) { T.type_alias { T.all(T::Boolean, cls) } }
|
16
|
+
cls.define_sorbet_constant!(:OrBoolean) { T.type_alias { T::Boolean } }
|
17
|
+
in Integer
|
18
|
+
cls.define_sorbet_constant!(:TaggedInteger) { T.type_alias { T.all(Integer, cls) } }
|
19
|
+
cls.define_sorbet_constant!(:OrInteger) { T.type_alias { Integer } }
|
20
|
+
in Float
|
21
|
+
cls.define_sorbet_constant!(:TaggedFloat) { T.type_alias { T.all(Float, cls) } }
|
22
|
+
cls.define_sorbet_constant!(:OrFloat) { T.type_alias { Float } }
|
23
|
+
in Symbol
|
24
|
+
cls.define_sorbet_constant!(:TaggedSymbol) { T.type_alias { T.all(Symbol, cls) } }
|
25
|
+
cls.define_sorbet_constant!(:OrSymbol) { T.type_alias { T.any(Symbol, String) } }
|
26
|
+
else
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
4
31
|
Account = Lithic::Models::Account
|
5
32
|
|
6
33
|
AccountFinancialAccountType = Lithic::Models::AccountFinancialAccountType
|
@@ -131,7 +131,7 @@ module Lithic
|
|
131
131
|
#
|
132
132
|
# List cards.
|
133
133
|
#
|
134
|
-
# @overload list(account_token: nil, begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, state: nil, request_options: {})
|
134
|
+
# @overload list(account_token: nil, begin_: nil, end_: nil, ending_before: nil, memo: nil, page_size: nil, starting_after: nil, state: nil, request_options: {})
|
135
135
|
#
|
136
136
|
# @param account_token [String] Returns cards associated with the specified account.
|
137
137
|
#
|
@@ -141,6 +141,8 @@ module Lithic
|
|
141
141
|
#
|
142
142
|
# @param ending_before [String] A cursor representing an item's token before which a page of results should end.
|
143
143
|
#
|
144
|
+
# @param memo [String] Returns cards containing the specified partial or full memo text.
|
145
|
+
#
|
144
146
|
# @param page_size [Integer] Page size (for pagination).
|
145
147
|
#
|
146
148
|
# @param starting_after [String] A cursor representing an item's token after which a page of results should begin
|
data/lib/lithic/version.rb
CHANGED
data/lib/lithic.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Standard libraries.
|
4
|
+
# rubocop:disable Lint/RedundantRequireStatement
|
4
5
|
require "English"
|
5
6
|
require "cgi"
|
6
7
|
require "date"
|
@@ -15,6 +16,7 @@ require "set"
|
|
15
16
|
require "stringio"
|
16
17
|
require "time"
|
17
18
|
require "uri"
|
19
|
+
# rubocop:enable Lint/RedundantRequireStatement
|
18
20
|
|
19
21
|
# We already ship the preferred sorbet manifests in the package itself.
|
20
22
|
# `tapioca` currently does not offer us a way to opt out of unnecessary compilation.
|
@@ -5,9 +5,11 @@ module Lithic
|
|
5
5
|
module Transport
|
6
6
|
# @api private
|
7
7
|
class BaseClient
|
8
|
+
extend Lithic::Internal::Util::SorbetRuntimeSupport
|
9
|
+
|
8
10
|
abstract!
|
9
11
|
|
10
|
-
|
12
|
+
RequestComponents =
|
11
13
|
T.type_alias do
|
12
14
|
{
|
13
15
|
method: Symbol,
|
@@ -53,7 +55,7 @@ module Lithic
|
|
53
55
|
}
|
54
56
|
end
|
55
57
|
|
56
|
-
|
58
|
+
RequestInput =
|
57
59
|
T.type_alias do
|
58
60
|
{
|
59
61
|
method: Symbol,
|
@@ -74,8 +76,7 @@ module Lithic
|
|
74
76
|
# @api private
|
75
77
|
sig do
|
76
78
|
params(
|
77
|
-
req:
|
78
|
-
Lithic::Internal::Transport::BaseClient::RequestComponentsShape
|
79
|
+
req: Lithic::Internal::Transport::BaseClient::RequestComponents
|
79
80
|
).void
|
80
81
|
end
|
81
82
|
def validate!(req)
|
@@ -94,13 +95,10 @@ module Lithic
|
|
94
95
|
# @api private
|
95
96
|
sig do
|
96
97
|
params(
|
97
|
-
request:
|
98
|
-
Lithic::Internal::Transport::BaseClient::RequestInputShape,
|
98
|
+
request: Lithic::Internal::Transport::BaseClient::RequestInput,
|
99
99
|
status: Integer,
|
100
100
|
response_headers: T.any(T::Hash[String, String], Net::HTTPHeader)
|
101
|
-
).returns(
|
102
|
-
Lithic::Internal::Transport::BaseClient::RequestInputShape
|
103
|
-
)
|
101
|
+
).returns(Lithic::Internal::Transport::BaseClient::RequestInput)
|
104
102
|
end
|
105
103
|
def follow_redirect(request, status:, response_headers:)
|
106
104
|
end
|
@@ -116,6 +114,27 @@ module Lithic
|
|
116
114
|
end
|
117
115
|
end
|
118
116
|
|
117
|
+
sig { returns(URI::Generic) }
|
118
|
+
attr_reader :base_url
|
119
|
+
|
120
|
+
sig { returns(Float) }
|
121
|
+
attr_reader :timeout
|
122
|
+
|
123
|
+
sig { returns(Integer) }
|
124
|
+
attr_reader :max_retries
|
125
|
+
|
126
|
+
sig { returns(Float) }
|
127
|
+
attr_reader :initial_retry_delay
|
128
|
+
|
129
|
+
sig { returns(Float) }
|
130
|
+
attr_reader :max_retry_delay
|
131
|
+
|
132
|
+
sig { returns(T::Hash[String, String]) }
|
133
|
+
attr_reader :headers
|
134
|
+
|
135
|
+
sig { returns(T.nilable(String)) }
|
136
|
+
attr_reader :idempotency_header
|
137
|
+
|
119
138
|
# @api private
|
120
139
|
sig { returns(Lithic::Internal::Transport::PooledNetRequester) }
|
121
140
|
attr_reader :requester
|
@@ -167,11 +186,10 @@ module Lithic
|
|
167
186
|
sig do
|
168
187
|
overridable
|
169
188
|
.params(
|
170
|
-
req:
|
171
|
-
Lithic::Internal::Transport::BaseClient::RequestComponentsShape,
|
189
|
+
req: Lithic::Internal::Transport::BaseClient::RequestComponents,
|
172
190
|
opts: Lithic::Internal::AnyHash
|
173
191
|
)
|
174
|
-
.returns(Lithic::Internal::Transport::BaseClient::
|
192
|
+
.returns(Lithic::Internal::Transport::BaseClient::RequestInput)
|
175
193
|
end
|
176
194
|
private def build_request(req, opts)
|
177
195
|
end
|
@@ -189,7 +207,7 @@ module Lithic
|
|
189
207
|
# @api private
|
190
208
|
sig do
|
191
209
|
params(
|
192
|
-
request: Lithic::Internal::Transport::BaseClient::
|
210
|
+
request: Lithic::Internal::Transport::BaseClient::RequestInput,
|
193
211
|
redirect_count: Integer,
|
194
212
|
retry_count: Integer,
|
195
213
|
send_retry_header: T::Boolean
|