Class: Desertcart::Marketplace::Authorization::Operations::Create

Inherits:
Operation::Create
  • Object
show all
Defined in:
lib/desertcart/marketplace/authorizations/operations/create.rb

Defined Under Namespace

Classes: Contract

Instance Method Summary collapse

Methods included from Operation::Mixin

included

Instance Method Details

#deserialized_resourceObject



20
21
22
23
24
25
# File 'lib/desertcart/marketplace/authorizations/operations/create.rb', line 20

def deserialized_resource
  Desertcart::AuthenticationToken::Deserializer.new.deserialize(
    hash: response.body['authentication_token'],
    resource: Desertcart::AuthenticationToken.new
  )
end

#ledger_namespace_pathObject



16
17
18
# File 'lib/desertcart/marketplace/authorizations/operations/create.rb', line 16

def ledger_namespace_path
  'marketplace'
end