Class: Desertcart::Marketplace::OrderItemRejection::Operations::Create

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

Defined Under Namespace

Classes: Contract

Instance Method Summary collapse

Methods included from Operation::Mixin

included

Instance Method Details

#deserialized_resourceObject



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

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

#ledger_namespace_pathObject



17
18
19
# File 'lib/desertcart/marketplace/order_item_rejection/operations/create.rb', line 17

def ledger_namespace_path
  'marketplace'
end