Class: Desertcart::Marketplace::OrderItemAcceptance::Operations::Create

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

Defined Under Namespace

Classes: Contract

Instance Method Summary collapse

Methods included from Operation::Mixin

included

Instance Method Details

#deserialized_resourceObject



23
24
25
26
27
28
# File 'lib/desertcart/marketplace/order_item_acceptance/operations/create.rb', line 23

def deserialized_resource
  Desertcart::Marketplace::OrderItem::Deserializer.new.deserialize(
    hash: response.body['order_item'],
    resource: Desertcart::Marketplace::OrderItem.new
  )
end

#ledger_namespace_pathObject



19
20
21
# File 'lib/desertcart/marketplace/order_item_acceptance/operations/create.rb', line 19

def ledger_namespace_path
  'marketplace'
end