Sha256: 3c85e6905afdba8ed04d367649e5590b2479566e59269c0eebc9d82062d59bf1

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 Update < Desertcart::Operation::Update
          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/update.rb