Sha256: ef67a14b2a611264e8b03109ff2eaf20907669f7ba7643c6b8a3b056c9e7dd9a
Contents?: true
Size: 851 Bytes
Versions: 3
Compression:
Stored size: 851 Bytes
Contents
# frozen_string_literal: true require_relative '../../../resources/marketplace/order_item' module Desertcart module Marketplace class OrderItemAcceptance module Operations class Create < Desertcart::Operation::Create class Contract < LedgerSync::Ledgers::Contract params do required(:order_item).maybe(:hash, Types::Reference) optional(:seller_reference_number).maybe(:string) end end def ledger_namespace_path 'marketplace' end def deserialized_resource Desertcart::Marketplace::OrderItem::Deserializer.new.deserialize( hash: response.body['order_item'], resource: Desertcart::Marketplace::OrderItem.new ) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems