# frozen_string_literal: true require_relative '../shipping_address/deserializer' module Desertcart module Marketplace class OrderItem class Deserializer < Desertcart::Deserializer id attribute :name attribute :store_uid attribute :store_id attribute :order_reference attribute :offer_reference attribute :merchant_id attribute :currency_code attribute :price attribute :title attribute :state attribute :marketplace_shipping_state attribute :reason_for_rejection attribute :checkin_condition attribute :shipment_movement_id attribute :seller_reference_number attribute :seller_notes attribute :order_placed_at attribute :acceptance_expiration_at attribute :estimated_delivery_date attribute :accepted_at attribute :purchase_order attribute :note references_one :shipping_address, hash_attribute: 'shipping_address', deserializer: ShippingAddress::Deserializer end end end end