Sha256: 5981fd02a746a050879c4acace689e0f8a6b789b7db350e9ce064dfeb8727c05

Contents?: true

Size: 500 Bytes

Versions: 8

Compression:

Stored size: 500 Bytes

Contents

# frozen_string_literal: true

module Desertcart
  module Marketplace
    class Movement
      class Serializer < Desertcart::Serializer
        id
        attribute :carrier
        attribute :tracking_number
        attribute :shipping_address_id
        attribute :departed_at
        attribute :estimated_arrival_at
        attribute :order_item_ids do |args = {}|
          resource = args.fetch(:resource)
          resource.order_items.map(&:ledger_id)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
desertcart-1.2.0 lib/desertcart/marketplace/movement/serializer.rb
desertcart-1.1.5 lib/desertcart/marketplace/movement/serializer.rb
desertcart-1.1.4 lib/desertcart/marketplace/movement/serializer.rb
desertcart-1.1.3 lib/desertcart/marketplace/movement/serializer.rb
desertcart-1.1.2 lib/desertcart/marketplace/movement/serializer.rb
desertcart-1.1.1 lib/desertcart/marketplace/movement/serializer.rb
desertcart-1.1.0 lib/desertcart/marketplace/movement/serializer.rb
desertcart-1.0.0 lib/desertcart/marketplace/movement/serializer.rb