Sha256: 75f9b5f55baadf9452b860303a27a638e8871510bbe97b881a6e6ffc0106d452
Contents?: true
Size: 461 Bytes
Versions: 5
Compression:
Stored size: 461 Bytes
Contents
# frozen_string_literal: true class EasyPost::Services::CustomsInfo < EasyPost::Services::Service MODEL_CLASS = EasyPost::Models::CustomsInfo # Create a CustomsInfo object def create(params) wrapped_params = { customs_info: params } @client.make_request(:post, 'customs_infos', MODEL_CLASS, wrapped_params) end # Retrieve a CustomsInfo object def retrieve(id) @client.make_request(:get, "customs_infos/#{id}", MODEL_CLASS) end end
Version data entries
5 entries across 5 versions & 1 rubygems