module GenesisRuby::Api::Mixins::Requests::Financial::Business::CarPlaneAndBoatRentalsAttributes

def business_vehicle_pick_up_date

The date when customer takes the vehicle
def business_vehicle_pick_up_date
  @business_vehicle_pick_up_date&.strftime(
    GenesisRuby::Api::Constants::DateTimeFormats::DD_MM_YYYY_L_HYPHENS
  )
end

def business_vehicle_pick_up_date=(value)

The date when customer takes the vehicle
def business_vehicle_pick_up_date=(value)
  parse_date attribute: __method__, value: value, allow_empty: true
end

def business_vehicle_return_date

The date when the customer returns the vehicle back
def business_vehicle_return_date
  @business_vehicle_return_date&.strftime(
    GenesisRuby::Api::Constants::DateTimeFormats::DD_MM_YYYY_L_HYPHENS
  )
end

def business_vehicle_return_date=(value)

The date when the customer returns the vehicle back
def business_vehicle_return_date=(value)
  parse_date attribute: __method__, value: value, allow_empty: true
end

def car_plane_and_boat_rentals_attributes_structure

Car Plane and Boat Rentals Attributes Structure
def car_plane_and_boat_rentals_attributes_structure
  {
    vehicle_pick_up_date: business_vehicle_pick_up_date,
    vehicle_return_date:  business_vehicle_return_date,
    supplier_name:        business_supplier_name
  }
end