class Order
  def initialize(order_hash)
    @order_hash = order_hash
  end

  def customer_phone
    @order_hash['billing_address']['phone']
  end

  def number
    @order_hash['number']
  end

  def customer_name
    @order_hash['billing_address']['firstname']
  end
end

class Order
  def initialize(order_hash)
    @order_hash = order_hash
  end

  def address
    address_type = @config['twilio.address_type'] || "billing"
    @order_hash["#{address_type}_address"]
  end

  def customer_phone
    address['phone']
  end

  def number
    @order_hash['number']
  end

  def customer_name
    address['firstname']
  end
end

Bring back address picking via param
Bring back address picking via param

Originally checked in 753c650e1e471f21215e480d198384c61856eb61 and lost
later on in 7c5e414b083b41253fbb19fcb08dcc6e8345e1c9
