Sha256: 26f16cbd6740cf43ae85b00a54d847e297ebc6d107ff72af2dfd46995194c940

Contents?: true

Size: 362 Bytes

Versions: 3

Compression:

Stored size: 362 Bytes

Contents

# frozen_string_literal: true

module Desertcart
  module Marketplace
    class OrderItemAcceptance
      class Serializer < Desertcart::Serializer
        attribute :order_item_id do |args = {}|
          resource = args.fetch(:resource)
          resource.order_item.ledger_id
        end
        attribute :seller_reference_number
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
desertcart-1.1.1 lib/desertcart/marketplace/order_item_acceptance/serializer.rb
desertcart-1.1.0 lib/desertcart/marketplace/order_item_acceptance/serializer.rb
desertcart-1.0.0 lib/desertcart/marketplace/order_item_acceptance/serializer.rb