Sha256: 154dc5c930799cd7ca465ba08cee2a19ef14e5a2b2b9fdfc75370d40c4b1f115

Contents?: true

Size: 344 Bytes

Versions: 8

Compression:

Stored size: 344 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

8 entries across 8 versions & 1 rubygems

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