Sha256: 62454991b0a96697128ffed21a7bc027269e5a2b81188cc08aa1a3b203b4b978

Contents?: true

Size: 778 Bytes

Versions: 8

Compression:

Stored size: 778 Bytes

Contents

# frozen_string_literal: true

require_relative '../../../resources/authentication_token'

module Desertcart
  module Marketplace
    class Authorization
      module Operations
        class Create < Desertcart::Operation::Create
          class Contract < LedgerSync::Ledgers::Contract
            params do
              optional(:store).maybe(:hash, Types::Reference)
            end
          end

          def ledger_namespace_path
            'marketplace'
          end

          def deserialized_resource
            Desertcart::AuthenticationToken::Deserializer.new.deserialize(
              hash: response.body['authentication_token'],
              resource: Desertcart::AuthenticationToken.new
            )
          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/authorizations/operations/create.rb
desertcart-1.1.5 lib/desertcart/marketplace/authorizations/operations/create.rb
desertcart-1.1.4 lib/desertcart/marketplace/authorizations/operations/create.rb
desertcart-1.1.3 lib/desertcart/marketplace/authorizations/operations/create.rb
desertcart-1.1.2 lib/desertcart/marketplace/authorizations/operations/create.rb
desertcart-1.1.1 lib/desertcart/marketplace/authorizations/operations/create.rb
desertcart-1.1.0 lib/desertcart/marketplace/authorizations/operations/create.rb
desertcart-1.0.0 lib/desertcart/marketplace/authorizations/operations/create.rb