Sha256: b4a2d334388e2ef029c20e8599721f450cce1a2b202e4b250afb227f0aaccde8

Contents?: true

Size: 1.79 KB

Versions: 1

Compression:

Stored size: 1.79 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(:final_purchase_currency_code).maybe(:string)
              optional(:final_pruchase_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

1 entries across 1 versions & 1 rubygems

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