Sha256: 8afac9af5346c96e93083822078db892e45855026a05fdd748e21dba9200a71d

Contents?: true

Size: 450 Bytes

Versions: 5

Compression:

Stored size: 450 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
        attribute :final_purchase_price
        attribute :final_purchase_currency_code
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
desertcart-1.2.0 lib/desertcart/marketplace/order_item_acceptance/serializer.rb
desertcart-1.1.5 lib/desertcart/marketplace/order_item_acceptance/serializer.rb
desertcart-1.1.4 lib/desertcart/marketplace/order_item_acceptance/serializer.rb
desertcart-1.1.3 lib/desertcart/marketplace/order_item_acceptance/serializer.rb
desertcart-1.1.2 lib/desertcart/marketplace/order_item_acceptance/serializer.rb