Sha256: 778eb20c167a794e0c394015fd4fdebae6da1290e57142d3b35da0fbf5734ca2

Contents?: true

Size: 1.03 KB

Versions: 3

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true

module CyberbizExpress
  module ExpressBase
    def access_token
      raise(NoMethodError, "There is no access_token API for #{@tracking_company}")
    end

    def estimate_fee(_order)
      raise(NoMethodError, "There is no estimate_fee API for #{@tracking_company}")
    end

    def submit_order(_order, _shipping_address, _shop, _options)
      raise(NoMethodError, "There is no submit_order API for #{@tracking_company}")
    end

    def update_order(_order_number, _shipping_address)
      raise(NoMethodError, "There is no update_order API for #{@tracking_company}")
    end

    def cancel_order(_tracking_number, _order_number, _shop_info, _reason)
      raise(NoMethodError, "There is no cancel_order API for #{@tracking_company}")
    end

    def track_status(_order)
      raise(NoMethodError, "There is no track_status API for #{@tracking_company}")
    end

    def reconcile(_file, _dry_run_mode, _options)
      raise(NoMethodError, "There is no reconcile API for #{@tracking_company}")
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cyberbiz_express-0.1.12 lib/cyberbiz_express/express_base.rb
cyberbiz_express-0.1.11 lib/cyberbiz_express/express_base.rb
cyberbiz_express-0.1.10 lib/cyberbiz_express/express_base.rb