Sha256: ceb360e0b0368502638bed2ec6275766965256bd2387f14a044b616cff771403

Contents?: true

Size: 373 Bytes

Versions: 2

Compression:

Stored size: 373 Bytes

Contents

module Spree::AddressDecorator
  def active_merchant_hash
    {
      name: full_name,
      firstname: firstname,
      lastname: lastname,
      address1: address1,
      address2: address2,
      city: city,
      state: state_text,
      zip: zipcode,
      country: country.try(:iso),
      phone: phone
    }
  end
end

Spree::Address.prepend(Spree::AddressDecorator)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_mollie_gateway-4.0.1 app/models/spree/address_decorator.rb
spree_mollie_gateway-4.0.0 app/models/spree/address_decorator.rb