You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: checkout_request_helper.rb
    path of file: ./repos/openfoodnetwork/spec/support/request
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module CheckoutRequestsHelper
  def have_checkout_details
    have_content "Your details"
  end

  def checkout_as_guest
    click_button "Checkout as guest"
  end

  def place_order
    find("button", text: "Place orde
    
  def fill_out_form(shipping_method_name, payment_method_name, save_default_addresses: true)
    within "#shipping" do
      choose shipping_method_name
    end

    within "#payment" do
      choose payment_method_name
    end

    fill_out_details

    within "#billing" do
      check "Save as default billing address" if save_default_addresses
    end

    fill_out_billing_address

    return unless save_default_addresses

    within "#shipping" do
      find(:xpath, '//*[@id="shipping"]/ng-form/dd').click
      check "Shipping address same as billing address?"
      check "Save as default shipping address"
    end
  end