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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba4b2ced2860455f74eec19b5b828190d4159cb4e1d3e7a985ebfc0bf6740c66
|
4
|
+
data.tar.gz: c07e21c629b95ed6e9384bb7de2a5a610a6c23db9b6a5dc37472ad089678ee38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 512ce892a78e39108a9773771eca855ea47a6fd300728b54635eadfc526530330f7055b6d8982499f29d64c3b523b724982456262faa6bea5761f9d6d06c153c
|
7
|
+
data.tar.gz: d31695bd240b2563752cf7a4f57a451168c249fadcfe220341c491a04da2f4b7e124583efda729e27afce7e05b4e8c5210b7e55bad721821e8d5cbe7363d7d17
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.1.0-alpha.24 (2025-05-12)
|
4
|
+
|
5
|
+
Full Changelog: [v0.1.0-alpha.23...v0.1.0-alpha.24](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.23...v0.1.0-alpha.24)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** manual updates ([2190d4d](https://github.com/lithic-com/lithic-ruby/commit/2190d4d4b9efc8b24cefeb0c8f6e011821f012a6))
|
10
|
+
* expose base client options as read only attributes ([6aa1141](https://github.com/lithic-com/lithic-ruby/commit/6aa1141978a57e8d138e182c7f5dd6f1135e2106))
|
11
|
+
* expose recursive `#to_h` conversion ([0d2635e](https://github.com/lithic-com/lithic-ruby/commit/0d2635eaf67be12441797b0d067b618b3e2cb076))
|
12
|
+
* support sorbet aliases at the runtime ([aeb0c42](https://github.com/lithic-com/lithic-ruby/commit/aeb0c4266234c86ac7b36b46ddbc6dc956faa599))
|
13
|
+
|
14
|
+
|
15
|
+
### Chores
|
16
|
+
|
17
|
+
* fix misc linting / minor issues ([5b17b81](https://github.com/lithic-com/lithic-ruby/commit/5b17b8150b6eeed2e347960e2f5e86093b391a97))
|
18
|
+
|
19
|
+
|
20
|
+
### Documentation
|
21
|
+
|
22
|
+
* remove or fix invalid readme examples ([a533c26](https://github.com/lithic-com/lithic-ruby/commit/a533c267af8a88c539880430ce6616a1387425ff))
|
23
|
+
|
3
24
|
## 0.1.0-alpha.23 (2025-05-07)
|
4
25
|
|
5
26
|
Full Changelog: [v0.1.0-alpha.22...v0.1.0-alpha.23](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.22...v0.1.0-alpha.23)
|
data/README.md
CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
15
15
|
<!-- x-release-please-start-version -->
|
16
16
|
|
17
17
|
```ruby
|
18
|
-
gem "lithic", "~> 0.1.0.pre.alpha.
|
18
|
+
gem "lithic", "~> 0.1.0.pre.alpha.24"
|
19
19
|
```
|
20
20
|
|
21
21
|
<!-- x-release-please-end -->
|
@@ -71,7 +71,7 @@ When the library is unable to connect to the API, or if the API returns a non-su
|
|
71
71
|
|
72
72
|
```ruby
|
73
73
|
begin
|
74
|
-
card = lithic.cards.create(type: "
|
74
|
+
card = lithic.cards.create(type: "MERCHANT_LOCKED")
|
75
75
|
rescue Lithic::Errors::APIError => e
|
76
76
|
puts(e.status) # 400
|
77
77
|
end
|
data/lib/lithic/errors.rb
CHANGED
@@ -7,6 +7,8 @@ module Lithic
|
|
7
7
|
#
|
8
8
|
# @abstract
|
9
9
|
class BaseClient
|
10
|
+
extend Lithic::Internal::Util::SorbetRuntimeSupport
|
11
|
+
|
10
12
|
# from whatwg fetch spec
|
11
13
|
MAX_REDIRECTS = 20
|
12
14
|
|
@@ -151,6 +153,27 @@ module Lithic
|
|
151
153
|
end
|
152
154
|
end
|
153
155
|
|
156
|
+
# @return [URI::Generic]
|
157
|
+
attr_reader :base_url
|
158
|
+
|
159
|
+
# @return [Float]
|
160
|
+
attr_reader :timeout
|
161
|
+
|
162
|
+
# @return [Integer]
|
163
|
+
attr_reader :max_retries
|
164
|
+
|
165
|
+
# @return [Float]
|
166
|
+
attr_reader :initial_retry_delay
|
167
|
+
|
168
|
+
# @return [Float]
|
169
|
+
attr_reader :max_retry_delay
|
170
|
+
|
171
|
+
# @return [Hash{String=>String}]
|
172
|
+
attr_reader :headers
|
173
|
+
|
174
|
+
# @return [String, nil]
|
175
|
+
attr_reader :idempotency_header
|
176
|
+
|
154
177
|
# @api private
|
155
178
|
# @return [Lithic::Internal::Transport::PooledNetRequester]
|
156
179
|
attr_reader :requester
|
@@ -182,10 +205,11 @@ module Lithic
|
|
182
205
|
},
|
183
206
|
headers
|
184
207
|
)
|
185
|
-
@
|
208
|
+
@base_url_components = Lithic::Internal::Util.parse_uri(base_url)
|
209
|
+
@base_url = Lithic::Internal::Util.unparse_uri(@base_url_components)
|
186
210
|
@idempotency_header = idempotency_header&.to_s&.downcase
|
187
|
-
@max_retries = max_retries
|
188
211
|
@timeout = timeout
|
212
|
+
@max_retries = max_retries
|
189
213
|
@initial_retry_delay = initial_retry_delay
|
190
214
|
@max_retry_delay = max_retry_delay
|
191
215
|
end
|
@@ -276,10 +300,14 @@ module Lithic
|
|
276
300
|
Lithic::Internal::Util.deep_merge(*[req[:body], opts[:extra_body]].compact)
|
277
301
|
end
|
278
302
|
|
303
|
+
url = Lithic::Internal::Util.join_parsed_uri(
|
304
|
+
@base_url_components,
|
305
|
+
{**req, path: path, query: query}
|
306
|
+
)
|
279
307
|
headers, encoded = Lithic::Internal::Util.encode_content(headers, body)
|
280
308
|
{
|
281
309
|
method: method,
|
282
|
-
url:
|
310
|
+
url: url,
|
283
311
|
headers: headers,
|
284
312
|
body: encoded,
|
285
313
|
max_retries: opts.fetch(:max_retries, @max_retries),
|
@@ -473,10 +501,54 @@ module Lithic
|
|
473
501
|
# @return [String]
|
474
502
|
def inspect
|
475
503
|
# rubocop:disable Layout/LineLength
|
476
|
-
base_url
|
477
|
-
"#<#{self.class.name}:0x#{object_id.to_s(16)} base_url=#{base_url} max_retries=#{@max_retries} timeout=#{@timeout}>"
|
504
|
+
"#<#{self.class.name}:0x#{object_id.to_s(16)} base_url=#{@base_url} max_retries=#{@max_retries} timeout=#{@timeout}>"
|
478
505
|
# rubocop:enable Layout/LineLength
|
479
506
|
end
|
507
|
+
|
508
|
+
define_sorbet_constant!(:RequestComponents) do
|
509
|
+
T.type_alias do
|
510
|
+
{
|
511
|
+
method: Symbol,
|
512
|
+
path: T.any(String, T::Array[String]),
|
513
|
+
query: T.nilable(T::Hash[String, T.nilable(T.any(T::Array[String], String))]),
|
514
|
+
headers: T.nilable(
|
515
|
+
T::Hash[String,
|
516
|
+
T.nilable(
|
517
|
+
T.any(
|
518
|
+
String,
|
519
|
+
Integer,
|
520
|
+
T::Array[T.nilable(T.any(String, Integer))]
|
521
|
+
)
|
522
|
+
)]
|
523
|
+
),
|
524
|
+
body: T.nilable(T.anything),
|
525
|
+
unwrap: T.nilable(
|
526
|
+
T.any(
|
527
|
+
Symbol,
|
528
|
+
Integer,
|
529
|
+
T::Array[T.any(Symbol, Integer)],
|
530
|
+
T.proc.params(arg0: T.anything).returns(T.anything)
|
531
|
+
)
|
532
|
+
),
|
533
|
+
page: T.nilable(T::Class[Lithic::Internal::Type::BasePage[Lithic::Internal::Type::BaseModel]]),
|
534
|
+
stream: T.nilable(T::Class[T.anything]),
|
535
|
+
model: T.nilable(Lithic::Internal::Type::Converter::Input),
|
536
|
+
options: T.nilable(Lithic::RequestOptions::OrHash)
|
537
|
+
}
|
538
|
+
end
|
539
|
+
end
|
540
|
+
define_sorbet_constant!(:RequestInput) do
|
541
|
+
T.type_alias do
|
542
|
+
{
|
543
|
+
method: Symbol,
|
544
|
+
url: URI::Generic,
|
545
|
+
headers: T::Hash[String, String],
|
546
|
+
body: T.anything,
|
547
|
+
max_retries: Integer,
|
548
|
+
timeout: Float
|
549
|
+
}
|
550
|
+
end
|
551
|
+
end
|
480
552
|
end
|
481
553
|
end
|
482
554
|
end
|
@@ -5,6 +5,8 @@ module Lithic
|
|
5
5
|
module Transport
|
6
6
|
# @api private
|
7
7
|
class PooledNetRequester
|
8
|
+
extend Lithic::Internal::Util::SorbetRuntimeSupport
|
9
|
+
|
8
10
|
# from the golang stdlib
|
9
11
|
# https://github.com/golang/go/blob/c8eced8580028328fde7c03cbfcb720ce15b2358/src/net/http/transport.go#L49
|
10
12
|
KEEP_ALIVE_TIMEOUT = 30
|
@@ -187,6 +189,18 @@ module Lithic
|
|
187
189
|
@size = size
|
188
190
|
@pools = {}
|
189
191
|
end
|
192
|
+
|
193
|
+
define_sorbet_constant!(:Request) do
|
194
|
+
T.type_alias do
|
195
|
+
{
|
196
|
+
method: Symbol,
|
197
|
+
url: URI::Generic,
|
198
|
+
headers: T::Hash[String, String],
|
199
|
+
body: T.anything,
|
200
|
+
deadline: Float
|
201
|
+
}
|
202
|
+
end
|
203
|
+
end
|
190
204
|
end
|
191
205
|
end
|
192
206
|
end
|
@@ -6,6 +6,7 @@ module Lithic
|
|
6
6
|
# @abstract
|
7
7
|
class BaseModel
|
8
8
|
extend Lithic::Internal::Type::Converter
|
9
|
+
extend Lithic::Internal::Util::SorbetRuntimeSupport
|
9
10
|
|
10
11
|
class << self
|
11
12
|
# @api private
|
@@ -13,11 +14,17 @@ module Lithic
|
|
13
14
|
# Assumes superclass fields are totally defined before fields are accessed /
|
14
15
|
# defined on subclasses.
|
15
16
|
#
|
16
|
-
# @
|
17
|
-
def
|
18
|
-
|
17
|
+
# @param child [Class<Lithic::Internal::Type::BaseModel>]
|
18
|
+
def inherited(child)
|
19
|
+
super
|
20
|
+
child.known_fields.replace(known_fields.dup)
|
19
21
|
end
|
20
22
|
|
23
|
+
# @api private
|
24
|
+
#
|
25
|
+
# @return [Hash{Symbol=>Hash{Symbol=>Object}}]
|
26
|
+
def known_fields = @known_fields ||= {}
|
27
|
+
|
21
28
|
# @api private
|
22
29
|
#
|
23
30
|
# @return [Hash{Symbol=>Hash{Symbol=>Object}}]
|
@@ -199,7 +206,7 @@ module Lithic
|
|
199
206
|
#
|
200
207
|
# @option state [Integer] :branched
|
201
208
|
#
|
202
|
-
# @return [
|
209
|
+
# @return [self, Object]
|
203
210
|
def coerce(value, state:)
|
204
211
|
exactness = state.fetch(:exactness)
|
205
212
|
|
@@ -258,7 +265,7 @@ module Lithic
|
|
258
265
|
|
259
266
|
# @api private
|
260
267
|
#
|
261
|
-
# @param value [
|
268
|
+
# @param value [self, Object]
|
262
269
|
#
|
263
270
|
# @param state [Hash{Symbol=>Object}] .
|
264
271
|
#
|
@@ -299,6 +306,39 @@ module Lithic
|
|
299
306
|
end
|
300
307
|
end
|
301
308
|
|
309
|
+
class << self
|
310
|
+
# @api private
|
311
|
+
#
|
312
|
+
# @param model [Lithic::Internal::Type::BaseModel]
|
313
|
+
# @param convert [Boolean]
|
314
|
+
#
|
315
|
+
# @return [Hash{Symbol=>Object}]
|
316
|
+
def recursively_to_h(model, convert:)
|
317
|
+
rec = ->(x) do
|
318
|
+
case x
|
319
|
+
in Lithic::Internal::Type::BaseModel
|
320
|
+
if convert
|
321
|
+
fields = x.class.known_fields
|
322
|
+
x.to_h.to_h do |key, val|
|
323
|
+
[key, rec.call(fields.key?(key) ? x.public_send(key) : val)]
|
324
|
+
rescue Lithic::Errors::ConversionError
|
325
|
+
[key, rec.call(val)]
|
326
|
+
end
|
327
|
+
else
|
328
|
+
rec.call(x.to_h)
|
329
|
+
end
|
330
|
+
in Hash
|
331
|
+
x.transform_values(&rec)
|
332
|
+
in Array
|
333
|
+
x.map(&rec)
|
334
|
+
else
|
335
|
+
x
|
336
|
+
end
|
337
|
+
end
|
338
|
+
rec.call(model)
|
339
|
+
end
|
340
|
+
end
|
341
|
+
|
302
342
|
# @api public
|
303
343
|
#
|
304
344
|
# Returns the raw value associated with the given key, if found. Otherwise, nil is
|
@@ -335,6 +375,14 @@ module Lithic
|
|
335
375
|
|
336
376
|
alias_method :to_hash, :to_h
|
337
377
|
|
378
|
+
# @api public
|
379
|
+
#
|
380
|
+
# In addition to the behaviour of `#to_h`, this method will recursively call
|
381
|
+
# `#to_h` on nested models.
|
382
|
+
#
|
383
|
+
# @return [Hash{Symbol=>Object}]
|
384
|
+
def deep_to_h = self.class.recursively_to_h(@data, convert: false)
|
385
|
+
|
338
386
|
# @param keys [Array<Symbol>, nil]
|
339
387
|
#
|
340
388
|
# @return [Hash{Symbol=>Object}]
|
@@ -350,29 +398,6 @@ module Lithic
|
|
350
398
|
.to_h
|
351
399
|
end
|
352
400
|
|
353
|
-
class << self
|
354
|
-
# @api private
|
355
|
-
#
|
356
|
-
# @param model [Lithic::Internal::Type::BaseModel]
|
357
|
-
#
|
358
|
-
# @return [Hash{Symbol=>Object}]
|
359
|
-
def walk(model)
|
360
|
-
walk = ->(x) do
|
361
|
-
case x
|
362
|
-
in Lithic::Internal::Type::BaseModel
|
363
|
-
walk.call(x.to_h)
|
364
|
-
in Hash
|
365
|
-
x.transform_values(&walk)
|
366
|
-
in Array
|
367
|
-
x.map(&walk)
|
368
|
-
else
|
369
|
-
x
|
370
|
-
end
|
371
|
-
end
|
372
|
-
walk.call(model)
|
373
|
-
end
|
374
|
-
end
|
375
|
-
|
376
401
|
# @api public
|
377
402
|
#
|
378
403
|
# @param a [Object]
|
@@ -418,12 +443,19 @@ module Lithic
|
|
418
443
|
# @api public
|
419
444
|
#
|
420
445
|
# @return [String]
|
421
|
-
def to_s =
|
446
|
+
def to_s = deep_to_h.to_s
|
422
447
|
|
423
448
|
# @api private
|
424
449
|
#
|
425
450
|
# @return [String]
|
426
|
-
def inspect
|
451
|
+
def inspect
|
452
|
+
converted = self.class.recursively_to_h(self, convert: true)
|
453
|
+
"#<#{self.class}:0x#{object_id.to_s(16)} #{converted}>"
|
454
|
+
end
|
455
|
+
|
456
|
+
define_sorbet_constant!(:KnownField) do
|
457
|
+
T.type_alias { {mode: T.nilable(Symbol), required: T::Boolean, nilable: T::Boolean} }
|
458
|
+
end
|
427
459
|
end
|
428
460
|
end
|
429
461
|
end
|
@@ -5,6 +5,8 @@ module Lithic
|
|
5
5
|
module Type
|
6
6
|
# @api private
|
7
7
|
module Converter
|
8
|
+
extend Lithic::Internal::Util::SorbetRuntimeSupport
|
9
|
+
|
8
10
|
# rubocop:disable Lint/UnusedMethodArgument
|
9
11
|
|
10
12
|
# @api private
|
@@ -268,6 +270,22 @@ module Lithic
|
|
268
270
|
end
|
269
271
|
end
|
270
272
|
end
|
273
|
+
|
274
|
+
define_sorbet_constant!(:Input) do
|
275
|
+
T.type_alias { T.any(Lithic::Internal::Type::Converter, T::Class[T.anything]) }
|
276
|
+
end
|
277
|
+
define_sorbet_constant!(:CoerceState) do
|
278
|
+
T.type_alias do
|
279
|
+
{
|
280
|
+
strictness: T.any(T::Boolean, Symbol),
|
281
|
+
exactness: {yes: Integer, no: Integer, maybe: Integer},
|
282
|
+
branched: Integer
|
283
|
+
}
|
284
|
+
end
|
285
|
+
end
|
286
|
+
define_sorbet_constant!(:DumpState) do
|
287
|
+
T.type_alias { {can_retry: T::Boolean} }
|
288
|
+
end
|
271
289
|
end
|
272
290
|
end
|
273
291
|
end
|
data/lib/lithic/internal/util.rb
CHANGED
@@ -801,6 +801,62 @@ module Lithic
|
|
801
801
|
end
|
802
802
|
end
|
803
803
|
end
|
804
|
+
|
805
|
+
# @api private
|
806
|
+
module SorbetRuntimeSupport
|
807
|
+
class MissingSorbetRuntimeError < ::RuntimeError
|
808
|
+
end
|
809
|
+
|
810
|
+
# @api private
|
811
|
+
#
|
812
|
+
# @return [Hash{Symbol=>Object}]
|
813
|
+
private def sorbet_runtime_constants = @sorbet_runtime_constants ||= {}
|
814
|
+
|
815
|
+
# @api private
|
816
|
+
#
|
817
|
+
# @param name [Symbol]
|
818
|
+
def const_missing(name)
|
819
|
+
super unless sorbet_runtime_constants.key?(name)
|
820
|
+
|
821
|
+
unless Object.const_defined?(:T)
|
822
|
+
message = "Trying to access a Sorbet constant #{name.inspect} without `sorbet-runtime`."
|
823
|
+
raise MissingSorbetRuntimeError.new(message)
|
824
|
+
end
|
825
|
+
|
826
|
+
sorbet_runtime_constants.fetch(name).call
|
827
|
+
end
|
828
|
+
|
829
|
+
# @api private
|
830
|
+
#
|
831
|
+
# @param name [Symbol]
|
832
|
+
# @param blk [Proc]
|
833
|
+
def define_sorbet_constant!(name, &blk) = sorbet_runtime_constants.store(name, blk)
|
834
|
+
end
|
835
|
+
|
836
|
+
extend Lithic::Internal::Util::SorbetRuntimeSupport
|
837
|
+
|
838
|
+
define_sorbet_constant!(:ParsedUri) do
|
839
|
+
T.type_alias do
|
840
|
+
{
|
841
|
+
scheme: T.nilable(String),
|
842
|
+
host: T.nilable(String),
|
843
|
+
port: T.nilable(Integer),
|
844
|
+
path: T.nilable(String),
|
845
|
+
query: T::Hash[String, T::Array[String]]
|
846
|
+
}
|
847
|
+
end
|
848
|
+
end
|
849
|
+
|
850
|
+
define_sorbet_constant!(:ServerSentEvent) do
|
851
|
+
T.type_alias do
|
852
|
+
{
|
853
|
+
event: T.nilable(String),
|
854
|
+
data: T.nilable(String),
|
855
|
+
id: T.nilable(String),
|
856
|
+
retry: T.nilable(Integer)
|
857
|
+
}
|
858
|
+
end
|
859
|
+
end
|
804
860
|
end
|
805
861
|
end
|
806
862
|
end
|
data/lib/lithic/internal.rb
CHANGED
@@ -2,10 +2,16 @@
|
|
2
2
|
|
3
3
|
module Lithic
|
4
4
|
module Internal
|
5
|
+
extend Lithic::Internal::Util::SorbetRuntimeSupport
|
6
|
+
|
5
7
|
OMIT =
|
6
8
|
Object.new.tap do
|
7
9
|
_1.define_singleton_method(:inspect) { "#<#{Lithic::Internal}::OMIT>" }
|
8
10
|
end
|
9
11
|
.freeze
|
12
|
+
|
13
|
+
define_sorbet_constant!(:AnyHash) do
|
14
|
+
T.type_alias { T::Hash[Symbol, T.anything] }
|
15
|
+
end
|
10
16
|
end
|
11
17
|
end
|
@@ -921,6 +921,15 @@ module Lithic
|
|
921
921
|
|
922
922
|
# @!method self.variants
|
923
923
|
# @return [Array(Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse, Lithic::Models::AccountHolderUpdateResponse::PatchResponse)]
|
924
|
+
|
925
|
+
define_sorbet_constant!(:Variants) do
|
926
|
+
T.type_alias do
|
927
|
+
T.any(
|
928
|
+
Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse,
|
929
|
+
Lithic::Models::AccountHolderUpdateResponse::PatchResponse
|
930
|
+
)
|
931
|
+
end
|
932
|
+
end
|
924
933
|
end
|
925
934
|
end
|
926
935
|
end
|
@@ -113,6 +113,10 @@ module Lithic
|
|
113
113
|
# @!method self.variants
|
114
114
|
# @return [Array(String, Integer, Array<String>)]
|
115
115
|
|
116
|
+
define_sorbet_constant!(:Variants) do
|
117
|
+
T.type_alias { T.any(String, Integer, T::Array[String]) }
|
118
|
+
end
|
119
|
+
|
116
120
|
# @type [Lithic::Internal::Type::Converter]
|
117
121
|
StringArray = Lithic::Internal::Type::ArrayOf[String]
|
118
122
|
end
|
@@ -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::V2ApplyResponse::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::V2ApplyResponse::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::V2ApplyResponse::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::V2ApplyResponse::DraftVersion::Parameters::MerchantLockParameters
|
299
|
+
)
|
300
|
+
end
|
301
|
+
end
|
282
302
|
end
|
283
303
|
end
|
284
304
|
|
@@ -138,6 +138,16 @@ module Lithic
|
|
138
138
|
|
139
139
|
# @!method self.variants
|
140
140
|
# @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters)]
|
141
|
+
|
142
|
+
define_sorbet_constant!(:Variants) do
|
143
|
+
T.type_alias do
|
144
|
+
T.any(
|
145
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
146
|
+
Lithic::AuthRules::VelocityLimitParams,
|
147
|
+
Lithic::AuthRules::V2CreateParams::Parameters::MerchantLockParameters
|
148
|
+
)
|
149
|
+
end
|
150
|
+
end
|
141
151
|
end
|
142
152
|
|
143
153
|
# The type of Auth Rule
|
@@ -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::V2CreateResponse::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::V2CreateResponse::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::V2CreateResponse::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::V2CreateResponse::DraftVersion::Parameters::MerchantLockParameters
|
300
|
+
)
|
301
|
+
end
|
302
|
+
end
|
283
303
|
end
|
284
304
|
end
|
285
305
|
|
@@ -90,6 +90,16 @@ module Lithic
|
|
90
90
|
|
91
91
|
# @!method self.variants
|
92
92
|
# @return [Array(Lithic::AuthRules::ConditionalBlockParameters, Lithic::AuthRules::VelocityLimitParams, Lithic::AuthRules::V2DraftParams::Parameters::MerchantLockParameters)]
|
93
|
+
|
94
|
+
define_sorbet_constant!(:Variants) do
|
95
|
+
T.type_alias do
|
96
|
+
T.any(
|
97
|
+
Lithic::AuthRules::ConditionalBlockParameters,
|
98
|
+
Lithic::AuthRules::VelocityLimitParams,
|
99
|
+
Lithic::AuthRules::V2DraftParams::Parameters::MerchantLockParameters
|
100
|
+
)
|
101
|
+
end
|
102
|
+
end
|
93
103
|
end
|
94
104
|
end
|
95
105
|
end
|