mastercard_mcon 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 813110e7973bc1b9e221ab40b771a36c91542d55
4
- data.tar.gz: 83890e66b72b5f7557badbb8452aa4b5be1f9604
3
+ metadata.gz: b3bb9adf261acc232c913313836d4fe830db1118
4
+ data.tar.gz: 9b6b52b3067fba53a4ee90ac5e3083ebd7b7799b
5
5
  SHA512:
6
- metadata.gz: 20ff25bc555b1570ee98a63c27ffc9809dec188dac961b001bcf9beaf49ae47b9169f26c53c8284c13fa3f6270c4f41e51c097ff0575be6eba5265e697618f9f
7
- data.tar.gz: 57bea0212e636a1c011e56770157c248df4f587330dea6d7db8628c7b273f45f4a7aa3ade01bb8670dc098bc652460a7d87c8b35815587dfd4341aa2271a0806
6
+ metadata.gz: f07b13cd64de1aa0cfdc49544727e939b9ededaeb229926243c260528bf1e210219d5e2d497956b8a0537690899d02573527e8fa0f40a7900b2aa8d2d23e4c48
7
+ data.tar.gz: 5725bfe2ebc9d4e90ead7de3d0930a837b0d86d24b31c4c687873d49f24d6edd4963d2ef933d0773c547f4cc208304022ef26900eba94dc57b3d125cdd69f21b
@@ -37,11 +37,11 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '474675c8-d2b6-43e4-b530-e359bc6967eb' => OperationConfig.new("/loyalty/v1/airport/lounges", "query", ["x-client-correlation-id"], ["searchText","preferredLanguage"]),
41
- 'ce3b5307-24d8-464f-a5ca-c62877bb3427' => OperationConfig.new("/loyalty/v1/airport/lounges/{loungeId}/detail", "query", ["x-client-correlation-id"], ["preferredLanguage"]),
42
- '40043f1f-2a7b-49a7-bac8-fbd4e665b0f3' => OperationConfig.new("/loyalty/v1/airport/lounges/{loungeId}/history", "query", ["x-client-correlation-id"], ["userId"]),
43
- 'a46ca975-4b46-4136-be1f-3889fe175437' => OperationConfig.new("/loyalty/v1/airport/{userId}/dmc", "query", ["x-client-correlation-id"], []),
44
- '2ccf5120-56f4-46a1-babd-2f82789b716a' => OperationConfig.new("/loyalty/v1/users/{userId}/airport", "query", ["x-client-correlation-id"], []),
40
+ '9214fbd4-c1f9-4138-9efa-d75f6f9cef2f' => OperationConfig.new("/loyalty/v1/airport/lounges", "query", ["x-client-correlation-id"], ["searchText","preferredLanguage"]),
41
+ 'f215edb0-43fd-4886-b460-9ee3f367173e' => OperationConfig.new("/loyalty/v1/airport/lounges/{loungeId}/detail", "query", ["x-client-correlation-id"], ["preferredLanguage"]),
42
+ '3c9af6a6-de75-4af6-9651-2c011474c1be' => OperationConfig.new("/loyalty/v1/airport/lounges/{loungeId}/history", "query", ["x-client-correlation-id"], ["userId"]),
43
+ 'ee6d9c7e-5c10-4940-bbc7-d38113c51dc9' => OperationConfig.new("/loyalty/v1/airport/{userId}/dmc", "query", ["x-client-correlation-id"], []),
44
+ 'd1a897f7-f833-4649-9313-c0239236c171' => OperationConfig.new("/loyalty/v1/users/{userId}/airport", "query", ["x-client-correlation-id"], []),
45
45
 
46
46
  }
47
47
 
@@ -74,7 +74,7 @@ module MasterCard
74
74
  #@raise [APIException] an exception from the response status
75
75
  #
76
76
 
77
- return self.execute("474675c8-d2b6-43e4-b530-e359bc6967eb",Airport.new(criteria))
77
+ return self.execute("9214fbd4-c1f9-4138-9efa-d75f6f9cef2f",Airport.new(criteria))
78
78
  end
79
79
 
80
80
 
@@ -91,7 +91,7 @@ module MasterCard
91
91
  #@raise [APIException] an exception from the response status
92
92
  #
93
93
 
94
- return self.execute("ce3b5307-24d8-464f-a5ca-c62877bb3427",Airport.new(criteria))
94
+ return self.execute("f215edb0-43fd-4886-b460-9ee3f367173e",Airport.new(criteria))
95
95
  end
96
96
 
97
97
 
@@ -108,7 +108,7 @@ module MasterCard
108
108
  #@raise [APIException] an exception from the response status
109
109
  #
110
110
 
111
- return self.execute("40043f1f-2a7b-49a7-bac8-fbd4e665b0f3",Airport.new(criteria))
111
+ return self.execute("3c9af6a6-de75-4af6-9651-2c011474c1be",Airport.new(criteria))
112
112
  end
113
113
 
114
114
 
@@ -125,7 +125,7 @@ module MasterCard
125
125
  #@raise [APIException] an exception from the response status
126
126
  #
127
127
 
128
- return self.execute("a46ca975-4b46-4136-be1f-3889fe175437",Airport.new(criteria))
128
+ return self.execute("ee6d9c7e-5c10-4940-bbc7-d38113c51dc9",Airport.new(criteria))
129
129
  end
130
130
 
131
131
 
@@ -142,7 +142,7 @@ module MasterCard
142
142
  #@raise [APIException] an exception from the response status
143
143
  #
144
144
 
145
- return self.execute("2ccf5120-56f4-46a1-babd-2f82789b716a",Airport.new(criteria))
145
+ return self.execute("d1a897f7-f833-4649-9313-c0239236c171",Airport.new(criteria))
146
146
  end
147
147
 
148
148
 
@@ -37,12 +37,12 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '9081ac68-dc73-4495-945a-d645283faf99' => OperationConfig.new("/loyalty/v1/benefits/assigned", "query", ["x-client-correlation-id"], ["ica","userId","channel","preferredLanguage"]),
41
- 'e058d285-6026-4e23-a838-85180188ee9b' => OperationConfig.new("/loyalty/v1/benefits/{benefitId}/detail", "query", ["x-client-correlation-id"], ["ica","channel","preferredLanguage"]),
42
- 'b964459b-0f7b-4516-888d-bf40a54139b6' => OperationConfig.new("/loyalty/v1/benefits", "query", ["x-client-correlation-id"], ["ica","cardProductType","channel","preferredLanguage"]),
43
- '28a6b103-899a-4839-a46b-856f9bf821c1' => OperationConfig.new("/loyalty/v1/benefits", "create", ["x-client-correlation-id"], []),
44
- '97edd7d5-df48-4aaf-983f-fa84897b7e69' => OperationConfig.new("/loyalty/v1/benefits/programterms", "query", ["x-client-correlation-id"], ["ica","preferredLanguage"]),
45
- 'de1ab580-c3c0-450a-a08a-2d5611ac0520' => OperationConfig.new("/loyalty/v1/users/{userId}/benefits", "query", ["x-client-correlation-id"], []),
40
+ 'b25744fe-d95a-42fb-8a3f-640c02f1b16f' => OperationConfig.new("/loyalty/v1/benefits/assigned", "query", ["x-client-correlation-id"], ["ica","userId","channel","preferredLanguage"]),
41
+ '471fb7f6-4b7e-4a8c-8206-bebb4e70268f' => OperationConfig.new("/loyalty/v1/benefits/{benefitId}/detail", "query", ["x-client-correlation-id"], ["ica","channel","preferredLanguage"]),
42
+ '3b6b4fdb-182b-46b5-95cd-7cc21094e838' => OperationConfig.new("/loyalty/v1/benefits", "query", ["x-client-correlation-id"], ["ica","cardProductType","channel","preferredLanguage"]),
43
+ '1ff7ecdf-dc11-46db-973e-f1cce4030b7d' => OperationConfig.new("/loyalty/v1/benefits", "create", ["x-client-correlation-id"], []),
44
+ 'b59fb736-cdd1-4977-bdb9-e4c1c0f4136c' => OperationConfig.new("/loyalty/v1/benefits/programterms", "query", ["x-client-correlation-id"], ["ica","preferredLanguage"]),
45
+ 'f8d996d5-10f4-4dd3-af53-a0d6ecbc49fc' => OperationConfig.new("/loyalty/v1/users/{userId}/benefits", "query", ["x-client-correlation-id"], []),
46
46
 
47
47
  }
48
48
 
@@ -75,7 +75,7 @@ module MasterCard
75
75
  #@raise [APIException] an exception from the response status
76
76
  #
77
77
 
78
- return self.execute("9081ac68-dc73-4495-945a-d645283faf99",Benefits.new(criteria))
78
+ return self.execute("b25744fe-d95a-42fb-8a3f-640c02f1b16f",Benefits.new(criteria))
79
79
  end
80
80
 
81
81
 
@@ -92,7 +92,7 @@ module MasterCard
92
92
  #@raise [APIException] an exception from the response status
93
93
  #
94
94
 
95
- return self.execute("e058d285-6026-4e23-a838-85180188ee9b",Benefits.new(criteria))
95
+ return self.execute("471fb7f6-4b7e-4a8c-8206-bebb4e70268f",Benefits.new(criteria))
96
96
  end
97
97
 
98
98
 
@@ -109,7 +109,7 @@ module MasterCard
109
109
  #@raise [APIException] an exception from the response status
110
110
  #
111
111
 
112
- return self.execute("b964459b-0f7b-4516-888d-bf40a54139b6",Benefits.new(criteria))
112
+ return self.execute("3b6b4fdb-182b-46b5-95cd-7cc21094e838",Benefits.new(criteria))
113
113
  end
114
114
 
115
115
 
@@ -120,7 +120,7 @@ module MasterCard
120
120
  #@param Dict mapObj, containing the required parameters to create a new object
121
121
  #@return [Benefits] of the response of created instance.
122
122
  #@raise [APIException] an exception from the response status
123
- return self.execute("28a6b103-899a-4839-a46b-856f9bf821c1", Benefits.new(mapObj))
123
+ return self.execute("1ff7ecdf-dc11-46db-973e-f1cce4030b7d", Benefits.new(mapObj))
124
124
  end
125
125
 
126
126
 
@@ -142,7 +142,7 @@ module MasterCard
142
142
  #@raise [APIException] an exception from the response status
143
143
  #
144
144
 
145
- return self.execute("97edd7d5-df48-4aaf-983f-fa84897b7e69",Benefits.new(criteria))
145
+ return self.execute("b59fb736-cdd1-4977-bdb9-e4c1c0f4136c",Benefits.new(criteria))
146
146
  end
147
147
 
148
148
 
@@ -159,7 +159,7 @@ module MasterCard
159
159
  #@raise [APIException] an exception from the response status
160
160
  #
161
161
 
162
- return self.execute("de1ab580-c3c0-450a-a08a-2d5611ac0520",Benefits.new(criteria))
162
+ return self.execute("f8d996d5-10f4-4dd3-af53-a0d6ecbc49fc",Benefits.new(criteria))
163
163
  end
164
164
 
165
165
 
@@ -37,8 +37,8 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '739c1c7b-29f7-43c6-94c7-d9b73c1d89f6' => OperationConfig.new("/loyalty/v1/insurance/claim", "create", ["x-client-correlation-id"], []),
41
- '796588c6-b198-4942-89e6-f5a44f41db4f' => OperationConfig.new("/loyalty/v1/insurance/tokenizeUserData", "create", ["x-client-correlation-id"], []),
40
+ '36867fdb-20af-426a-9620-2bc3ad616a6c' => OperationConfig.new("/loyalty/v1/insurance/claim", "create", ["x-client-correlation-id"], []),
41
+ '37c208be-5494-4533-876d-5c6e81754dd2' => OperationConfig.new("/loyalty/v1/insurance/tokenizeUserData", "create", ["x-client-correlation-id"], []),
42
42
 
43
43
  }
44
44
 
@@ -65,7 +65,7 @@ module MasterCard
65
65
  #@param Dict mapObj, containing the required parameters to create a new object
66
66
  #@return [Insurance] of the response of created instance.
67
67
  #@raise [APIException] an exception from the response status
68
- return self.execute("739c1c7b-29f7-43c6-94c7-d9b73c1d89f6", Insurance.new(mapObj))
68
+ return self.execute("36867fdb-20af-426a-9620-2bc3ad616a6c", Insurance.new(mapObj))
69
69
  end
70
70
 
71
71
 
@@ -81,7 +81,7 @@ module MasterCard
81
81
  #@param Dict mapObj, containing the required parameters to create a new object
82
82
  #@return [Insurance] of the response of created instance.
83
83
  #@raise [APIException] an exception from the response status
84
- return self.execute("796588c6-b198-4942-89e6-f5a44f41db4f", Insurance.new(mapObj))
84
+ return self.execute("37c208be-5494-4533-876d-5c6e81754dd2", Insurance.new(mapObj))
85
85
  end
86
86
 
87
87
 
@@ -37,19 +37,19 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- 'ff3d410d-f8a8-4bd4-b897-8c7ecb370813' => OperationConfig.new("/loyalty/v1/offers", "query", ["x-client-correlation-id"], ["userId","preferredLanguage","sort","category","featured","favorite","partner","latitude","longitude","searchRadius"]),
41
- '1f1f8519-5aff-4f05-ae36-3eaad53d2a8f' => OperationConfig.new("/loyalty/v1/offers/{offerId}/activate", "create", ["x-client-correlation-id"], []),
42
- 'e1a5bf6e-80f0-46a9-89e0-03456a83f50c' => OperationConfig.new("/loyalty/v1/offers/{offerId}/detail", "query", ["x-client-correlation-id"], ["userId","preferredLanguage"]),
43
- '320c950d-3b7c-4988-ae90-e7decd003622' => OperationConfig.new("/loyalty/v1/offers/{offerId}/favorite", "create", ["x-client-correlation-id"], []),
44
- '68ab1540-c9ed-4790-9424-f55b05642a82' => OperationConfig.new("/loyalty/v1/offers/{offerId}/redeem", "create", ["x-client-correlation-id"], []),
45
- '159c5daf-c1f2-4aa6-96eb-7a6dc636e904' => OperationConfig.new("/loyalty/v1/offers/{offerId}/unfavorite", "create", ["x-client-correlation-id"], []),
46
- '9d8d3efb-1be2-42b4-aac7-3e1b8181ad58' => OperationConfig.new("/loyalty/v1/offers/promo", "create", ["x-client-correlation-id"], []),
47
- '0f94f5b3-8de3-4ede-bf5a-bcc45d4306e5' => OperationConfig.new("/loyalty/v1/offers/redeemed", "query", ["x-client-correlation-id"], ["userId","preferredLanguage"]),
48
- 'd87f02cb-3440-458a-a465-2e85d9d92bc8' => OperationConfig.new("/loyalty/v1/points/expiring", "query", ["x-client-correlation-id"], ["userId"]),
49
- '3e0bd002-9807-477b-b8a8-78a5d61168bb' => OperationConfig.new("/loyalty/v1/points", "query", ["x-client-correlation-id"], ["userId"]),
50
- '0dd5501b-59e3-42fa-8370-ce123dd001ee' => OperationConfig.new("/loyalty/v1/users/{userId}/offers", "query", ["x-client-correlation-id"], []),
51
- '2d43c13c-9e91-476f-8871-570b3298e586' => OperationConfig.new("/loyalty/v1/vouchers", "query", ["x-client-correlation-id"], ["userId"]),
52
- '21526adf-86f5-45a9-98fe-108d849ef38e' => OperationConfig.new("/loyalty/v1/vouchers/{voucherId}/detail", "query", ["x-client-correlation-id"], ["userId"]),
40
+ 'cba2c5c8-3998-41bf-a381-871fbc6aae87' => OperationConfig.new("/loyalty/v1/offers", "list", ["x-client-correlation-id"], ["userId","preferredLanguage","sort","category","featured","favorite","partner","latitude","longitude","searchRadius"]),
41
+ '6851b8d2-f300-47d9-ac68-b1f960b7eec3' => OperationConfig.new("/loyalty/v1/offers/{offerId}/activate", "create", ["x-client-correlation-id"], []),
42
+ '7b6bcb7a-526b-4873-ab8a-e64737876bee' => OperationConfig.new("/loyalty/v1/offers/{offerId}/detail", "query", ["x-client-correlation-id"], ["userId","preferredLanguage"]),
43
+ 'ce244292-514d-4022-837d-f61830bd20ab' => OperationConfig.new("/loyalty/v1/offers/{offerId}/favorite", "create", ["x-client-correlation-id"], []),
44
+ '2f67272a-2247-4ead-99bf-a25bc9fd929c' => OperationConfig.new("/loyalty/v1/offers/{offerId}/redeem", "create", ["x-client-correlation-id"], []),
45
+ 'b64d01ea-92f1-4a2d-8c47-db883910c18b' => OperationConfig.new("/loyalty/v1/offers/{offerId}/unfavorite", "create", ["x-client-correlation-id"], []),
46
+ '9eaec443-ab25-4fb1-bf45-736bc654c217' => OperationConfig.new("/loyalty/v1/offers/promo", "create", ["x-client-correlation-id"], []),
47
+ 'f89d3973-8fc5-46f4-ae0a-035a41cb52db' => OperationConfig.new("/loyalty/v1/offers/redeemed", "list", ["x-client-correlation-id"], ["userId","preferredLanguage"]),
48
+ '4fce153a-4d7d-4aae-9eb9-5c0a8f8cfd15' => OperationConfig.new("/loyalty/v1/points/expiring", "query", ["x-client-correlation-id"], ["userId"]),
49
+ '3498fa18-91b4-4b83-8059-b104edc0c09c' => OperationConfig.new("/loyalty/v1/points", "query", ["x-client-correlation-id"], ["userId"]),
50
+ '072b87c6-f65d-4af7-90dd-cf5102981dd1' => OperationConfig.new("/loyalty/v1/users/{userId}/offers", "query", ["x-client-correlation-id"], []),
51
+ 'f94538a0-4a24-4a69-b665-bc070879f41f' => OperationConfig.new("/loyalty/v1/vouchers", "list", ["x-client-correlation-id"], ["userId"]),
52
+ '9d9f3631-bcf3-430a-bea4-2529842fd0df' => OperationConfig.new("/loyalty/v1/vouchers/{voucherId}/detail", "query", ["x-client-correlation-id"], ["userId"]),
53
53
 
54
54
  }
55
55
 
@@ -71,21 +71,24 @@ module MasterCard
71
71
 
72
72
 
73
73
 
74
-
75
-
76
-
77
- def self.getOffers(criteria)
74
+ def self.getOffers(criteria = nil)
75
+ #
76
+ #List objects of type Offers
78
77
  #
79
- #Query objects of type Offers by id and optional criteria
80
78
  #@param [Dict] criteria
81
- #@return [Offers] object representing the response.
79
+ #@return Array [Offers] object matching the criteria.
82
80
  #@raise [APIException] an exception from the response status
83
- #
84
81
 
85
- return self.execute("ff3d410d-f8a8-4bd4-b897-8c7ecb370813",Offers.new(criteria))
82
+ if criteria.nil?
83
+ return self.execute("cba2c5c8-3998-41bf-a381-871fbc6aae87",Offers.new)
84
+ else
85
+ return self.execute("cba2c5c8-3998-41bf-a381-871fbc6aae87",Offers.new(criteria))
86
+ end
86
87
  end
87
88
 
88
89
 
90
+
91
+
89
92
  def self.activateOffer(mapObj)
90
93
  #
91
94
  #Creates object of type Offers
@@ -93,7 +96,7 @@ module MasterCard
93
96
  #@param Dict mapObj, containing the required parameters to create a new object
94
97
  #@return [Offers] of the response of created instance.
95
98
  #@raise [APIException] an exception from the response status
96
- return self.execute("1f1f8519-5aff-4f05-ae36-3eaad53d2a8f", Offers.new(mapObj))
99
+ return self.execute("6851b8d2-f300-47d9-ac68-b1f960b7eec3", Offers.new(mapObj))
97
100
  end
98
101
 
99
102
 
@@ -115,7 +118,7 @@ module MasterCard
115
118
  #@raise [APIException] an exception from the response status
116
119
  #
117
120
 
118
- return self.execute("e1a5bf6e-80f0-46a9-89e0-03456a83f50c",Offers.new(criteria))
121
+ return self.execute("7b6bcb7a-526b-4873-ab8a-e64737876bee",Offers.new(criteria))
119
122
  end
120
123
 
121
124
 
@@ -126,7 +129,7 @@ module MasterCard
126
129
  #@param Dict mapObj, containing the required parameters to create a new object
127
130
  #@return [Offers] of the response of created instance.
128
131
  #@raise [APIException] an exception from the response status
129
- return self.execute("320c950d-3b7c-4988-ae90-e7decd003622", Offers.new(mapObj))
132
+ return self.execute("ce244292-514d-4022-837d-f61830bd20ab", Offers.new(mapObj))
130
133
  end
131
134
 
132
135
 
@@ -142,7 +145,7 @@ module MasterCard
142
145
  #@param Dict mapObj, containing the required parameters to create a new object
143
146
  #@return [Offers] of the response of created instance.
144
147
  #@raise [APIException] an exception from the response status
145
- return self.execute("68ab1540-c9ed-4790-9424-f55b05642a82", Offers.new(mapObj))
148
+ return self.execute("2f67272a-2247-4ead-99bf-a25bc9fd929c", Offers.new(mapObj))
146
149
  end
147
150
 
148
151
 
@@ -158,7 +161,7 @@ module MasterCard
158
161
  #@param Dict mapObj, containing the required parameters to create a new object
159
162
  #@return [Offers] of the response of created instance.
160
163
  #@raise [APIException] an exception from the response status
161
- return self.execute("159c5daf-c1f2-4aa6-96eb-7a6dc636e904", Offers.new(mapObj))
164
+ return self.execute("b64d01ea-92f1-4a2d-8c47-db883910c18b", Offers.new(mapObj))
162
165
  end
163
166
 
164
167
 
@@ -174,7 +177,7 @@ module MasterCard
174
177
  #@param Dict mapObj, containing the required parameters to create a new object
175
178
  #@return [Offers] of the response of created instance.
176
179
  #@raise [APIException] an exception from the response status
177
- return self.execute("9d8d3efb-1be2-42b4-aac7-3e1b8181ad58", Offers.new(mapObj))
180
+ return self.execute("9eaec443-ab25-4fb1-bf45-736bc654c217", Offers.new(mapObj))
178
181
  end
179
182
 
180
183
 
@@ -185,18 +188,19 @@ module MasterCard
185
188
 
186
189
 
187
190
 
188
-
189
-
190
-
191
- def self.getRedeemedOffers(criteria)
191
+ def self.getRedeemedOffers(criteria = nil)
192
+ #
193
+ #List objects of type Offers
192
194
  #
193
- #Query objects of type Offers by id and optional criteria
194
195
  #@param [Dict] criteria
195
- #@return [Offers] object representing the response.
196
+ #@return Array [Offers] object matching the criteria.
196
197
  #@raise [APIException] an exception from the response status
197
- #
198
198
 
199
- return self.execute("0f94f5b3-8de3-4ede-bf5a-bcc45d4306e5",Offers.new(criteria))
199
+ if criteria.nil?
200
+ return self.execute("f89d3973-8fc5-46f4-ae0a-035a41cb52db",Offers.new)
201
+ else
202
+ return self.execute("f89d3973-8fc5-46f4-ae0a-035a41cb52db",Offers.new(criteria))
203
+ end
200
204
  end
201
205
 
202
206
 
@@ -205,6 +209,8 @@ module MasterCard
205
209
 
206
210
 
207
211
 
212
+
213
+
208
214
  def self.getPointsExpiring(criteria)
209
215
  #
210
216
  #Query objects of type Offers by id and optional criteria
@@ -213,7 +219,7 @@ module MasterCard
213
219
  #@raise [APIException] an exception from the response status
214
220
  #
215
221
 
216
- return self.execute("d87f02cb-3440-458a-a465-2e85d9d92bc8",Offers.new(criteria))
222
+ return self.execute("4fce153a-4d7d-4aae-9eb9-5c0a8f8cfd15",Offers.new(criteria))
217
223
  end
218
224
 
219
225
 
@@ -230,7 +236,7 @@ module MasterCard
230
236
  #@raise [APIException] an exception from the response status
231
237
  #
232
238
 
233
- return self.execute("3e0bd002-9807-477b-b8a8-78a5d61168bb",Offers.new(criteria))
239
+ return self.execute("3498fa18-91b4-4b83-8059-b104edc0c09c",Offers.new(criteria))
234
240
  end
235
241
 
236
242
 
@@ -247,24 +253,25 @@ module MasterCard
247
253
  #@raise [APIException] an exception from the response status
248
254
  #
249
255
 
250
- return self.execute("0dd5501b-59e3-42fa-8370-ce123dd001ee",Offers.new(criteria))
256
+ return self.execute("072b87c6-f65d-4af7-90dd-cf5102981dd1",Offers.new(criteria))
251
257
  end
252
258
 
253
259
 
254
260
 
255
261
 
256
-
257
-
258
-
259
- def self.getVouchers(criteria)
262
+ def self.getVouchers(criteria = nil)
263
+ #
264
+ #List objects of type Offers
260
265
  #
261
- #Query objects of type Offers by id and optional criteria
262
266
  #@param [Dict] criteria
263
- #@return [Offers] object representing the response.
267
+ #@return Array [Offers] object matching the criteria.
264
268
  #@raise [APIException] an exception from the response status
265
- #
266
269
 
267
- return self.execute("2d43c13c-9e91-476f-8871-570b3298e586",Offers.new(criteria))
270
+ if criteria.nil?
271
+ return self.execute("f94538a0-4a24-4a69-b665-bc070879f41f",Offers.new)
272
+ else
273
+ return self.execute("f94538a0-4a24-4a69-b665-bc070879f41f",Offers.new(criteria))
274
+ end
268
275
  end
269
276
 
270
277
 
@@ -273,6 +280,8 @@ module MasterCard
273
280
 
274
281
 
275
282
 
283
+
284
+
276
285
  def self.getVoucherDetail(criteria)
277
286
  #
278
287
  #Query objects of type Offers by id and optional criteria
@@ -281,7 +290,7 @@ module MasterCard
281
290
  #@raise [APIException] an exception from the response status
282
291
  #
283
292
 
284
- return self.execute("21526adf-86f5-45a9-98fe-108d849ef38e",Offers.new(criteria))
293
+ return self.execute("9d9f3631-bcf3-430a-bea4-2529842fd0df",Offers.new(criteria))
285
294
  end
286
295
 
287
296
 
@@ -71,7 +71,7 @@ module MasterCard
71
71
  end
72
72
 
73
73
  def getVersion
74
- return "mc-on:1.0.0"
74
+ return "mc-on:1.0.1"
75
75
  end
76
76
 
77
77
  def getJsonNative
@@ -37,11 +37,11 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- 'a53bba31-7e98-49fc-9194-f555976a2cf3' => OperationConfig.new("/bundle/profile/v1/users", "create", ["x-client-correlation-id"], []),
41
- '9efef3c7-6291-4680-b0d0-a156e6ab40ca' => OperationConfig.new("/bundle/profile/v1/users/{userId}", "delete", ["x-client-correlation-id"], []),
42
- '84c87d8f-40a4-4217-b86c-294d2d871ab9' => OperationConfig.new("/bundle/profile/v1/users/{userId}/patch", "create", ["x-client-correlation-id"], []),
43
- '28911b02-d33a-4e4e-81b1-e94cef8a660f' => OperationConfig.new("/bundle/profile/v1/users/{userId}", "read", ["x-client-correlation-id"], []),
44
- '5e9b7042-d0af-4a1a-a5f3-424308c528d3' => OperationConfig.new("/bundle/profile/v1/users/{userId}", "update", ["x-client-correlation-id"], []),
40
+ 'd9b5fdb7-867a-448d-862d-6b97f7085234' => OperationConfig.new("/bundle/profile/v1/users", "create", ["x-client-correlation-id"], []),
41
+ '7e411710-0e8c-494a-9b67-3b98a0ae3b5b' => OperationConfig.new("/bundle/profile/v1/users/{userId}", "delete", ["x-client-correlation-id"], []),
42
+ 'b6cbc0db-e771-4d3b-b617-10836319ad63' => OperationConfig.new("/bundle/profile/v1/users/{userId}/patch", "create", ["x-client-correlation-id"], []),
43
+ 'fb2e9244-5266-4157-8fb6-1ce1bd7a8872' => OperationConfig.new("/bundle/profile/v1/users/{userId}", "read", ["x-client-correlation-id"], []),
44
+ '0fc1de80-da09-4178-b6fc-00b029354744' => OperationConfig.new("/bundle/profile/v1/users/{userId}", "update", ["x-client-correlation-id"], []),
45
45
 
46
46
  }
47
47
 
@@ -68,7 +68,7 @@ module MasterCard
68
68
  #@param Dict mapObj, containing the required parameters to create a new object
69
69
  #@return [User] of the response of created instance.
70
70
  #@raise [APIException] an exception from the response status
71
- return self.execute("a53bba31-7e98-49fc-9194-f555976a2cf3", User.new(mapObj))
71
+ return self.execute("d9b5fdb7-867a-448d-862d-6b97f7085234", User.new(mapObj))
72
72
  end
73
73
 
74
74
 
@@ -101,7 +101,7 @@ module MasterCard
101
101
  end
102
102
  end
103
103
 
104
- return self.execute("9efef3c7-6291-4680-b0d0-a156e6ab40ca", mapObj)
104
+ return self.execute("7e411710-0e8c-494a-9b67-3b98a0ae3b5b", mapObj)
105
105
  end
106
106
 
107
107
 
@@ -114,7 +114,7 @@ module MasterCard
114
114
  #@raise [APIException] an exception from the response status
115
115
  #
116
116
 
117
- return self.class.execute("9efef3c7-6291-4680-b0d0-a156e6ab40ca", self)
117
+ return self.class.execute("7e411710-0e8c-494a-9b67-3b98a0ae3b5b", self)
118
118
  end
119
119
 
120
120
 
@@ -127,7 +127,7 @@ module MasterCard
127
127
  #@param Dict mapObj, containing the required parameters to create a new object
128
128
  #@return [User] of the response of created instance.
129
129
  #@raise [APIException] an exception from the response status
130
- return self.execute("84c87d8f-40a4-4217-b86c-294d2d871ab9", User.new(mapObj))
130
+ return self.execute("b6cbc0db-e771-4d3b-b617-10836319ad63", User.new(mapObj))
131
131
  end
132
132
 
133
133
 
@@ -160,7 +160,7 @@ module MasterCard
160
160
  end
161
161
  end
162
162
 
163
- return self.execute("28911b02-d33a-4e4e-81b1-e94cef8a660f",User.new(mapObj))
163
+ return self.execute("fb2e9244-5266-4157-8fb6-1ce1bd7a8872",User.new(mapObj))
164
164
  end
165
165
 
166
166
 
@@ -173,7 +173,7 @@ module MasterCard
173
173
  #@return [User] object representing the response.
174
174
  #@raise [APIException] an exception from the response status
175
175
  #
176
- return self.class.execute("5e9b7042-d0af-4a1a-a5f3-424308c528d3",self)
176
+ return self.class.execute("0fc1de80-da09-4178-b6fc-00b029354744",self)
177
177
  end
178
178
 
179
179
 
@@ -37,8 +37,8 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '1a286779-4344-4cc0-aab7-91118a1a05c0' => OperationConfig.new("/loyalty/v1/users/{userId}/wifi", "query", ["x-client-correlation-id"], []),
41
- '37bbc226-a145-4a07-a716-4304b6533d38' => OperationConfig.new("/loyalty/v1/wifi", "query", ["x-client-correlation-id"], ["latitude","longitude","radius"]),
40
+ '457b9e76-1596-4dc8-b542-9866c72d6879' => OperationConfig.new("/loyalty/v1/users/{userId}/wifi", "query", ["x-client-correlation-id"], []),
41
+ 'ec5de542-c9d1-4433-a7f2-ef9fa4c47f1d' => OperationConfig.new("/loyalty/v1/wifi", "list", ["x-client-correlation-id"], ["latitude","longitude","radius"]),
42
42
 
43
43
  }
44
44
 
@@ -71,27 +71,30 @@ module MasterCard
71
71
  #@raise [APIException] an exception from the response status
72
72
  #
73
73
 
74
- return self.execute("1a286779-4344-4cc0-aab7-91118a1a05c0",Wifi.new(criteria))
74
+ return self.execute("457b9e76-1596-4dc8-b542-9866c72d6879",Wifi.new(criteria))
75
75
  end
76
76
 
77
77
 
78
78
 
79
79
 
80
-
81
-
82
-
83
- def self.getWifi(criteria)
80
+ def self.getWifi(criteria = nil)
81
+ #
82
+ #List objects of type Wifi
84
83
  #
85
- #Query objects of type Wifi by id and optional criteria
86
84
  #@param [Dict] criteria
87
- #@return [Wifi] object representing the response.
85
+ #@return Array [Wifi] object matching the criteria.
88
86
  #@raise [APIException] an exception from the response status
89
- #
90
87
 
91
- return self.execute("37bbc226-a145-4a07-a716-4304b6533d38",Wifi.new(criteria))
88
+ if criteria.nil?
89
+ return self.execute("ec5de542-c9d1-4433-a7f2-ef9fa4c47f1d",Wifi.new)
90
+ else
91
+ return self.execute("ec5de542-c9d1-4433-a7f2-ef9fa4c47f1d",Wifi.new(criteria))
92
+ end
92
93
  end
93
94
 
94
95
 
96
+
97
+
95
98
  end
96
99
  end
97
100
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastercard_mcon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - MasterCard Worldwide
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-27 00:00:00.000000000 Z
11
+ date: 2018-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mastercard_api_core