Class: MasterCard::API::McOn::BundleProfile

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.createUser(mapObj) ⇒ Object



64
65
66
67
68
69
70
71
72
# File 'lib/mastercard/api/mcon/bundleprofile.rb', line 64

def self.createUser(mapObj)
    #
    #Creates object of type BundleProfile
    #
    #@param Dict mapObj, containing the required parameters to create a new object
    #@return [BundleProfile] of the response of created instance.
    #@raise [APIException] an exception from the response status
    return self.execute("ccff9a33-58af-4940-b9e8-1558edd52538", BundleProfile.new(mapObj))
end

.deleteUserById(id, map = nil) ⇒ Object



83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'lib/mastercard/api/mcon/bundleprofile.rb', line 83

def self.deleteUserById(id, map = nil)
    #Delete object of type BundleProfile by id

    #@param [String] id
    #@param [Dict] map, containing additional parameters
    #@return [BundleProfile] of the response of the deleted instance.
    #@raise [APIException] an exception from the response status


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

    return self.execute("c2c54b4d-2b23-4ae7-b537-0d1f94ec7b83", mapObj)
end

.patchUser(mapObj) ⇒ Object



123
124
125
126
127
128
129
130
131
# File 'lib/mastercard/api/mcon/bundleprofile.rb', line 123

def self.patchUser(mapObj)
    #
    #Creates object of type BundleProfile
    #
    #@param Dict mapObj, containing the required parameters to create a new object
    #@return [BundleProfile] of the response of created instance.
    #@raise [APIException] an exception from the response status
    return self.execute("d74ab067-a623-4398-b1f6-c821d7f948a5", BundleProfile.new(mapObj))
end

.readUser(id, criteria = nil) ⇒ Object



143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# File 'lib/mastercard/api/mcon/bundleprofile.rb', line 143

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

    mapObj = BundleProfile.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("0db1446a-d974-4d1b-93ba-bb671d16b172",BundleProfile.new(mapObj))
end

Instance Method Details

#deleteUserObject



108
109
110
111
112
113
114
115
116
117
118
# File 'lib/mastercard/api/mcon/bundleprofile.rb', line 108

def deleteUser
    #
    #Delete object of type BundleProfile

    #@param [String] id
    #@return [BundleProfile] of the response of the deleted instance.
    #@raise [APIException] an exception from the response status
    #

    return self.class.execute("c2c54b4d-2b23-4ae7-b537-0d1f94ec7b83", self)
end

#updateUserObject



169
170
171
172
173
174
175
176
177
# File 'lib/mastercard/api/mcon/bundleprofile.rb', line 169

def updateUser
    #
    #Updates an object of type BundleProfile
    #
    #@return [BundleProfile] object representing the response.
    #@raise [APIException] an exception from the response status
    #
    return self.class.execute("ae94a9c0-80b9-4fa8-b71e-2ffddd7c94cb",self)
end