Module: SolidusBolt::AddressDecorator

Defined in:
app/decorators/models/solidus_bolt/address_decorator.rb

Instance Method Summary collapse

Instance Method Details

#bolt_address(email) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'app/decorators/models/solidus_bolt/address_decorator.rb', line 5

def bolt_address(email)
  {
    street_address1: address1,
    street_address2: address2,
    locality: city,
    region: state.abbr,
    postal_code: zipcode,
    country_code: country.iso,
    first_name: Spree::Address::Name.new(name).first_name,
    last_name: Spree::Address::Name.new(name).last_name,
    phone: phone,
    email: email
  }
end