Sha256: 1e1e717f280b90a3636c8a502ad594257117931ebca02e018fbc7fe66694bf74

Contents?: true

Size: 746 Bytes

Versions: 8

Compression:

Stored size: 746 Bytes

Contents

# frozen_string_literal: true

module Desertcart
  module Marketplace
    class Movement
      module Operations
        class Create < Desertcart::Operation::Create
          class Contract < LedgerSync::Ledgers::Contract
            params do
              required(:carrier).filled(:string)
              required(:tracking_number).filled(:string)
              required(:shipping_address_id).filled(:integer)
              required(:departed_at).filled(:integer)
              required(:estimated_arrival_at).filled(:integer)
              required(:order_items).filled(:hash, Types::Reference)
            end
          end

          def ledger_namespace_path
            'marketplace'
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
desertcart-1.2.0 lib/desertcart/marketplace/movement/operations/create.rb
desertcart-1.1.5 lib/desertcart/marketplace/movement/operations/create.rb
desertcart-1.1.4 lib/desertcart/marketplace/movement/operations/create.rb
desertcart-1.1.3 lib/desertcart/marketplace/movement/operations/create.rb
desertcart-1.1.2 lib/desertcart/marketplace/movement/operations/create.rb
desertcart-1.1.1 lib/desertcart/marketplace/movement/operations/create.rb
desertcart-1.1.0 lib/desertcart/marketplace/movement/operations/create.rb
desertcart-1.0.0 lib/desertcart/marketplace/movement/operations/create.rb