Sha256: 0fcd495af0aa24bf04fc9b291e924762de6c3aa6d3dbeef3caa3658913503c5e
Contents?: true
Size: 963 Bytes
Versions: 8
Compression:
Stored size: 963 Bytes
Contents
# frozen_string_literal: true require_relative '../../../resources/authentication_token' module Desertcart module Marketplace class Registration module Operations class Create < Desertcart::Operation::Create class Contract < LedgerSync::Ledgers::Contract params do required(:external_id).maybe(:string) required(:ledger_id).filled(:string) required(:name).filled(:string) required(:url).filled(:string) required(:country_code).filled(:string) 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