Class: MasterCard::API::Qkr::OrderCalendar

Inherits:
Core::Model::BaseObject
  • Object
show all
Includes:
Core::Model
Defined in:
lib/mastercard/api/qkr/ordercalendar.rb

Class Method Summary collapse

Class Method Details

.read(id, criteria = nil) ⇒ Object



64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/mastercard/api/qkr/ordercalendar.rb', line 64

def self.read(id, criteria = nil)
    #
    #Returns objects of type OrderCalendar by id and optional criteria
    #@param [String] id
    #@param [Dict] criteria
    #@return [OrderCalendar] object representing the response
    #@raise [APIException] an exception from the response status

    mapObj = OrderCalendar.new
    if !(id.nil? || id.to_s.empty?)
      mapObj.set("id", id)
    end
    if !criteria.nil?
        if criteria.instance_of? RequestMap
          mapObj.setAll(criteria.getObject())
        else
          mapObj.setAll(criteria)
        end
    end

    return self.execute("71ec3493-7bdd-4835-9b38-4b45daffd449",OrderCalendar.new(mapObj))
end