Sha256: 5dc242546a562daf79bd73af171bbf99cea67c0d38468607546ce3e0ed77c40b

Contents?: true

Size: 1.66 KB

Versions: 2

Compression:

Stored size: 1.66 KB

Contents

# frozen_string_literal: true

module Desertcart
  module Marketplace
    class OrderItem
      module Operations
        class Find < Desertcart::Operation::Find
          class Contract < LedgerSync::Ledgers::Contract
            params do
              required(:ledger_id).filled(:string)
              optional(:name).maybe(:string)
              optional(:store_uid).maybe(:string)
              optional(:store_id).maybe(:integer)
              optional(:order_reference).maybe(:string)
              optional(:offer_reference).maybe(:string)
              optional(:merchant_id).maybe(:string)
              optional(:currency_code).maybe(:string)
              optional(:price).maybe(:integer)
              optional(:title).maybe(:string)
              optional(:state).maybe(:string)
              optional(:marketplace_shipping_state).maybe(:string)
              optional(:reason_for_rejection).maybe(:string)
              optional(:checkin_condition).maybe(:string)
              optional(:shipment_movement_id).maybe(:integer)
              optional(:seller_reference_number).maybe(:string)
              optional(:seller_notes).maybe(:string)
              optional(:order_placed_at).maybe(:integer)
              optional(:acceptance_expiration_at).maybe(:integer)
              optional(:estimated_delivery_date).maybe(:string)
              optional(:accepted_at).maybe(:integer)
              optional(:purchase_order).maybe(:integer)
              optional(:shipping_address).maybe(:hash)
              optional(:note).maybe(:string)
            end
          end

          def ledger_namespace_path
            'marketplace'
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
desertcart-1.1.0 lib/desertcart/marketplace/order_item/operations/find.rb
desertcart-1.0.0 lib/desertcart/marketplace/order_item/operations/find.rb