Class: AuctionFunCore::Contracts::BidContext::CreateBidClosedContract
- Inherits:
-
ApplicationContract
- Object
- Dry::Validation::Contract
- ApplicationContract
- AuctionFunCore::Contracts::BidContext::CreateBidClosedContract
- Defined in:
- lib/auction_fun_core/contracts/bid_context/create_bid_closed_contract.rb
Overview
This class validates the creation of new bids for closed-type auctions. It ensures the bid is placed by a valid user on a valid auction that is open for bids, and that the bid value meets or exceeds the starting bid required by the auction. Furthermore, only one bid per participant is allowed.
Constant Summary
Constants inherited from ApplicationContract
ApplicationContract::EMAIL_REGEX, ApplicationContract::I18N_MACRO_SCOPE
Constants included from Business::Configuration
Business::Configuration::AUCTION_KINDS, Business::Configuration::AUCTION_MAX_TITLE_LENGTH, Business::Configuration::AUCTION_MIN_TITLE_LENGTH, Business::Configuration::AUCTION_STATUSES, Business::Configuration::AUCTION_STOPWATCH_MAX_VALUE, Business::Configuration::AUCTION_STOPWATCH_MIN_VALUE, Business::Configuration::MAX_NAME_LENGTH, Business::Configuration::MAX_PASSWORD_LENGTH, Business::Configuration::MIN_NAME_LENGTH, Business::Configuration::MIN_PASSWORD_LENGTH