mastercard_spendalerts 1.0.2 → 1.0.3

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: bda3310785588a4b2cd4d458056833d2340b0e34
4
- data.tar.gz: d0a01fcf1159663186a51500652af07b6c622770
3
+ metadata.gz: dec5d8f2673f6a77e71c2a8e54e73c640dd1eb2a
4
+ data.tar.gz: f8d29afcf101078f4db13e191f45e027fe23fd43
5
5
  SHA512:
6
- metadata.gz: 5a77bac7e9d7c8fa9f1474230734c551a0bddf794cbf1e8ae1702cbd66d3c447886c9b0513b71eef38c5ace7b9e6a6390e1f90f5c7071d95ecffb7c9869035e2
7
- data.tar.gz: 21bfd9b5e74f51c42a9b86a70803cc29744958f5c26c15d18b1e004d8c77a1d932119e84e116daf7384f6f16611218c8f64961d4310024ad4752f3641ef2e8a3
6
+ metadata.gz: 4a7b8c828fc7605bbddbca4d3e2fb2c43ecb5b204d324b431f2c311597b9cac830d80ba3c0a0ab08aacc43965a6cc8f1bf466f3b39696adeaad07901d2ec2f87
7
+ data.tar.gz: 0b538a66f0e5580da8fcd2e79f2dc85b82d92ddea188abb2e8c6d2ddc9608ca0519215d100bf03da5d9994639ca405d885f4876cb726ea0a0a2e6a1b63792d7e
@@ -37,9 +37,9 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '5f7b292e-491f-4b9a-a7ef-e10142791b1b' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts", "delete", [], []),
41
- '0006ff75-d453-4bfc-834d-2abf2cd7f61d' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts", "query", [], []),
42
- 'fce45809-cbb9-43cf-ac1c-31f51bbe09ba' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts", "create", [], []),
40
+ 'b3233a53-80e2-4523-93f5-a6ee75952f4c' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts", "delete", [], []),
41
+ 'b608eda9-1f1a-4068-a747-2325799ade0b' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts", "query", [], []),
42
+ 'a42ce6c7-4ad2-4bfc-8106-e64707c0ab73' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts", "create", [], []),
43
43
 
44
44
  }
45
45
 
@@ -83,7 +83,7 @@ module MasterCard
83
83
  end
84
84
  end
85
85
 
86
- return self.execute("5f7b292e-491f-4b9a-a7ef-e10142791b1b", mapObj)
86
+ return self.execute("b3233a53-80e2-4523-93f5-a6ee75952f4c", mapObj)
87
87
  end
88
88
 
89
89
 
@@ -96,7 +96,7 @@ module MasterCard
96
96
  #@raise [APIException] an exception from the response status
97
97
  #
98
98
 
99
- return self.class.execute("5f7b292e-491f-4b9a-a7ef-e10142791b1b", self)
99
+ return self.class.execute("b3233a53-80e2-4523-93f5-a6ee75952f4c", self)
100
100
  end
101
101
 
102
102
 
@@ -115,7 +115,7 @@ module MasterCard
115
115
  #@raise [APIException] an exception from the response status
116
116
  #
117
117
 
118
- return self.execute("0006ff75-d453-4bfc-834d-2abf2cd7f61d",Alerts.new(criteria))
118
+ return self.execute("b608eda9-1f1a-4068-a747-2325799ade0b",Alerts.new(criteria))
119
119
  end
120
120
 
121
121
 
@@ -126,7 +126,7 @@ module MasterCard
126
126
  #@param Dict mapObj, containing the required parameters to create a new object
127
127
  #@return [Alerts] of the response of created instance.
128
128
  #@raise [APIException] an exception from the response status
129
- return self.execute("fce45809-cbb9-43cf-ac1c-31f51bbe09ba", Alerts.new(mapObj))
129
+ return self.execute("a42ce6c7-4ad2-4bfc-8106-e64707c0ab73", Alerts.new(mapObj))
130
130
  end
131
131
 
132
132
 
@@ -37,9 +37,9 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- 'a5c9a827-c514-4bf3-ac0c-a2ff161466fc' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/transactionamount", "delete", [], []),
41
- '88ff1fb5-3e98-43af-9428-e76afebeb144' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/transactionamount", "query", [], []),
42
- 'cb10f18f-0c63-4576-a361-f815604fcc20' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/transactionamount", "create", [], []),
40
+ '9b245c27-f926-4f62-a706-9ea42a4eef22' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/transactionamount", "delete", [], []),
41
+ 'edf6241c-46ed-4496-893d-98b69de39318' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/transactionamount", "query", [], []),
42
+ 'b181a686-ecd2-4a0b-85b1-99beaede1e7f' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/transactionamount", "create", [], []),
43
43
 
44
44
  }
45
45
 
@@ -83,7 +83,7 @@ module MasterCard
83
83
  end
84
84
  end
85
85
 
86
- return self.execute("a5c9a827-c514-4bf3-ac0c-a2ff161466fc", mapObj)
86
+ return self.execute("9b245c27-f926-4f62-a706-9ea42a4eef22", mapObj)
87
87
  end
88
88
 
89
89
 
@@ -96,7 +96,7 @@ module MasterCard
96
96
  #@raise [APIException] an exception from the response status
97
97
  #
98
98
 
99
- return self.class.execute("a5c9a827-c514-4bf3-ac0c-a2ff161466fc", self)
99
+ return self.class.execute("9b245c27-f926-4f62-a706-9ea42a4eef22", self)
100
100
  end
101
101
 
102
102
 
@@ -115,7 +115,7 @@ module MasterCard
115
115
  #@raise [APIException] an exception from the response status
116
116
  #
117
117
 
118
- return self.execute("88ff1fb5-3e98-43af-9428-e76afebeb144",Amount.new(criteria))
118
+ return self.execute("edf6241c-46ed-4496-893d-98b69de39318",Amount.new(criteria))
119
119
  end
120
120
 
121
121
 
@@ -126,7 +126,7 @@ module MasterCard
126
126
  #@param Dict mapObj, containing the required parameters to create a new object
127
127
  #@return [Amount] of the response of created instance.
128
128
  #@raise [APIException] an exception from the response status
129
- return self.execute("cb10f18f-0c63-4576-a361-f815604fcc20", Amount.new(mapObj))
129
+ return self.execute("b181a686-ecd2-4a0b-85b1-99beaede1e7f", Amount.new(mapObj))
130
130
  end
131
131
 
132
132
 
@@ -37,9 +37,10 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '35f7e126-bf08-468b-9b60-3421f31bb3ed' => OperationConfig.new("/issuer/v1/card", "create", [], []),
41
- '61fe408d-ca42-467a-a51f-ae92377bfdfc' => OperationConfig.new("/issuer/v1/card/{uuid}", "delete", [], []),
42
- '0f1e097f-f374-4b73-8275-a0fe2d59082a' => OperationConfig.new("/issuer/v1/card/{uuid}", "create", [], []),
40
+ '8e0e7c35-3311-48f1-9357-59d2a84339c0' => OperationConfig.new("/issuer/v1/card", "create", [], []),
41
+ '236caeea-a2fd-461b-b1de-4f4527a5f81c' => OperationConfig.new("/issuer/v1/card/uuid", "create", [], []),
42
+ 'f7245020-226a-4c9c-aa56-48d3f273e928' => OperationConfig.new("/issuer/v1/card/{uuid}", "delete", [], []),
43
+ '26737bc6-218d-486c-8669-49442340858a' => OperationConfig.new("/issuer/v1/card/{uuid}", "create", [], []),
43
44
 
44
45
  }
45
46
 
@@ -66,7 +67,23 @@ module MasterCard
66
67
  #@param Dict mapObj, containing the required parameters to create a new object
67
68
  #@return [Card] of the response of created instance.
68
69
  #@raise [APIException] an exception from the response status
69
- return self.execute("35f7e126-bf08-468b-9b60-3421f31bb3ed", Card.new(mapObj))
70
+ return self.execute("8e0e7c35-3311-48f1-9357-59d2a84339c0", Card.new(mapObj))
71
+ end
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+ def self.read(mapObj)
80
+ #
81
+ #Creates object of type Card
82
+ #
83
+ #@param Dict mapObj, containing the required parameters to create a new object
84
+ #@return [Card] of the response of created instance.
85
+ #@raise [APIException] an exception from the response status
86
+ return self.execute("236caeea-a2fd-461b-b1de-4f4527a5f81c", Card.new(mapObj))
70
87
  end
71
88
 
72
89
 
@@ -99,7 +116,7 @@ module MasterCard
99
116
  end
100
117
  end
101
118
 
102
- return self.execute("61fe408d-ca42-467a-a51f-ae92377bfdfc", mapObj)
119
+ return self.execute("f7245020-226a-4c9c-aa56-48d3f273e928", mapObj)
103
120
  end
104
121
 
105
122
 
@@ -112,7 +129,7 @@ module MasterCard
112
129
  #@raise [APIException] an exception from the response status
113
130
  #
114
131
 
115
- return self.class.execute("61fe408d-ca42-467a-a51f-ae92377bfdfc", self)
132
+ return self.class.execute("f7245020-226a-4c9c-aa56-48d3f273e928", self)
116
133
  end
117
134
 
118
135
 
@@ -125,7 +142,7 @@ module MasterCard
125
142
  #@param Dict mapObj, containing the required parameters to create a new object
126
143
  #@return [Card] of the response of created instance.
127
144
  #@raise [APIException] an exception from the response status
128
- return self.execute("0f1e097f-f374-4b73-8275-a0fe2d59082a", Card.new(mapObj))
145
+ return self.execute("26737bc6-218d-486c-8669-49442340858a", Card.new(mapObj))
129
146
  end
130
147
 
131
148
 
@@ -37,9 +37,9 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '4007bf29-ccee-4af3-9da8-cee51ae22eb7' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/channels", "delete", [], []),
41
- 'ec11e8eb-bd5a-4a1a-bf94-cc176235ca8f' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/channels", "query", [], []),
42
- '45a0cfeb-56b7-4906-b7a7-db66c372aa6c' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/channels", "create", [], []),
40
+ '22fbf9bc-c80b-40b0-b5d7-6e971619fb6a' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/channels", "delete", [], []),
41
+ '127da697-16f9-4cd1-a4ee-5f48ce679172' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/channels", "query", [], []),
42
+ '356e8dfa-81fd-46a4-b888-88508f25605d' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/channels", "create", [], []),
43
43
 
44
44
  }
45
45
 
@@ -83,7 +83,7 @@ module MasterCard
83
83
  end
84
84
  end
85
85
 
86
- return self.execute("4007bf29-ccee-4af3-9da8-cee51ae22eb7", mapObj)
86
+ return self.execute("22fbf9bc-c80b-40b0-b5d7-6e971619fb6a", mapObj)
87
87
  end
88
88
 
89
89
 
@@ -96,7 +96,7 @@ module MasterCard
96
96
  #@raise [APIException] an exception from the response status
97
97
  #
98
98
 
99
- return self.class.execute("4007bf29-ccee-4af3-9da8-cee51ae22eb7", self)
99
+ return self.class.execute("22fbf9bc-c80b-40b0-b5d7-6e971619fb6a", self)
100
100
  end
101
101
 
102
102
 
@@ -115,7 +115,7 @@ module MasterCard
115
115
  #@raise [APIException] an exception from the response status
116
116
  #
117
117
 
118
- return self.execute("ec11e8eb-bd5a-4a1a-bf94-cc176235ca8f",Channel.new(criteria))
118
+ return self.execute("127da697-16f9-4cd1-a4ee-5f48ce679172",Channel.new(criteria))
119
119
  end
120
120
 
121
121
 
@@ -126,7 +126,7 @@ module MasterCard
126
126
  #@param Dict mapObj, containing the required parameters to create a new object
127
127
  #@return [Channel] of the response of created instance.
128
128
  #@raise [APIException] an exception from the response status
129
- return self.execute("45a0cfeb-56b7-4906-b7a7-db66c372aa6c", Channel.new(mapObj))
129
+ return self.execute("356e8dfa-81fd-46a4-b888-88508f25605d", Channel.new(mapObj))
130
130
  end
131
131
 
132
132
 
@@ -37,9 +37,9 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '688aaeb6-cc72-4fdc-b926-76c89af49080' => OperationConfig.new("/issuer/v1/card/{uuid}/controls", "delete", [], []),
41
- '655d611a-69f4-49ca-856a-1aa5d7a7b79c' => OperationConfig.new("/issuer/v1/card/{uuid}/controls", "query", [], []),
42
- '5d0d5500-8856-4faf-8753-2ea793b627c6' => OperationConfig.new("/issuer/v1/card/{uuid}/controls", "create", [], []),
40
+ '1b907f56-4d1c-4469-8a9a-63f3e3304fd4' => OperationConfig.new("/issuer/v1/card/{uuid}/controls", "delete", [], []),
41
+ 'b13484c0-e58b-4292-91ae-d7141293f96c' => OperationConfig.new("/issuer/v1/card/{uuid}/controls", "query", [], []),
42
+ '6fb3dc53-4b8d-448d-a00f-3f4174e5b2f5' => OperationConfig.new("/issuer/v1/card/{uuid}/controls", "create", [], []),
43
43
 
44
44
  }
45
45
 
@@ -83,7 +83,7 @@ module MasterCard
83
83
  end
84
84
  end
85
85
 
86
- return self.execute("688aaeb6-cc72-4fdc-b926-76c89af49080", mapObj)
86
+ return self.execute("1b907f56-4d1c-4469-8a9a-63f3e3304fd4", mapObj)
87
87
  end
88
88
 
89
89
 
@@ -96,7 +96,7 @@ module MasterCard
96
96
  #@raise [APIException] an exception from the response status
97
97
  #
98
98
 
99
- return self.class.execute("688aaeb6-cc72-4fdc-b926-76c89af49080", self)
99
+ return self.class.execute("1b907f56-4d1c-4469-8a9a-63f3e3304fd4", self)
100
100
  end
101
101
 
102
102
 
@@ -115,7 +115,7 @@ module MasterCard
115
115
  #@raise [APIException] an exception from the response status
116
116
  #
117
117
 
118
- return self.execute("655d611a-69f4-49ca-856a-1aa5d7a7b79c",Controls.new(criteria))
118
+ return self.execute("b13484c0-e58b-4292-91ae-d7141293f96c",Controls.new(criteria))
119
119
  end
120
120
 
121
121
 
@@ -126,7 +126,7 @@ module MasterCard
126
126
  #@param Dict mapObj, containing the required parameters to create a new object
127
127
  #@return [Controls] of the response of created instance.
128
128
  #@raise [APIException] an exception from the response status
129
- return self.execute("5d0d5500-8856-4faf-8753-2ea793b627c6", Controls.new(mapObj))
129
+ return self.execute("6fb3dc53-4b8d-448d-a00f-3f4174e5b2f5", Controls.new(mapObj))
130
130
  end
131
131
 
132
132
 
@@ -0,0 +1,87 @@
1
+ #
2
+ # Copyright (c) 2016 MasterCard International Incorporated
3
+ # All rights reserved.
4
+ #
5
+ # Redistribution and use in source and binary forms, with or without modification, are
6
+ # permitted provided that the following conditions are met:
7
+ #
8
+ # Redistributions of source code must retain the above copyright notice, this list of
9
+ # conditions and the following disclaimer.
10
+ # Redistributions in binary form must reproduce the above copyright notice, this list of
11
+ # conditions and the following disclaimer in the documentation and/or other materials
12
+ # provided with the distribution.
13
+ # Neither the name of the MasterCard International Incorporated nor the names of its
14
+ # contributors may be used to endorse or promote products derived from this software
15
+ # without specific prior written permission.
16
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
17
+ # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
19
+ # SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
21
+ # TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22
+ # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
23
+ # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24
+ # IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25
+ # SUCH DAMAGE.
26
+ #
27
+
28
+
29
+ require "mastercard/core/model"
30
+ require "mastercard/core/baseobject"
31
+
32
+ module MasterCard
33
+ module API
34
+ module Spendalerts
35
+ class Controlshistory < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ '811c9e6d-7d40-4c06-bac5-7e2b5a9b8d98' => OperationConfig.new("/issuer/v1/card/{uuid}/history/controls", "query", [], ["from","to","pageNumber","pageSize"]),
41
+
42
+ }
43
+
44
+ protected
45
+
46
+ def self.getOperationConfig(uuid)
47
+ if @__store.key?(uuid)
48
+ return @__store[uuid]
49
+ end
50
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
51
+ end
52
+
53
+ def self.getOperationMetadata()
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
+ end
56
+
57
+ public
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+ def self.query(criteria)
66
+ #
67
+ #Query objects of type Controlshistory by id and optional criteria
68
+ #@param [Dict] criteria
69
+ #@return [Controlshistory] object representing the response.
70
+ #@raise [APIException] an exception from the response status
71
+ #
72
+
73
+ return self.execute("811c9e6d-7d40-4c06-bac5-7e2b5a9b8d98",Controlshistory.new(criteria))
74
+ end
75
+
76
+
77
+ end
78
+ end
79
+ end
80
+ end
81
+
82
+
83
+
84
+
85
+
86
+
87
+
@@ -37,9 +37,9 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '9e08979e-b5fc-4b58-b58d-10c91fc9bda9' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/crossborder", "delete", [], []),
41
- '04e75575-b816-44bb-85bc-7824bb98da68' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/crossborder", "query", [], []),
42
- '23d527b5-2a09-441d-8ba4-4dfe7a36113c' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/crossborder", "create", [], []),
40
+ '6b54c0e2-ae99-4376-9115-ff7cb88f39d2' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/crossborder", "delete", [], []),
41
+ '3d2ce8fd-16e2-4528-a458-7eedd3db1e67' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/crossborder", "query", [], []),
42
+ 'e3c18a26-21fa-48f6-bc5e-7de988db3327' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/alerts/crossborder", "create", [], []),
43
43
 
44
44
  }
45
45
 
@@ -83,7 +83,7 @@ module MasterCard
83
83
  end
84
84
  end
85
85
 
86
- return self.execute("9e08979e-b5fc-4b58-b58d-10c91fc9bda9", mapObj)
86
+ return self.execute("6b54c0e2-ae99-4376-9115-ff7cb88f39d2", mapObj)
87
87
  end
88
88
 
89
89
 
@@ -96,7 +96,7 @@ module MasterCard
96
96
  #@raise [APIException] an exception from the response status
97
97
  #
98
98
 
99
- return self.class.execute("9e08979e-b5fc-4b58-b58d-10c91fc9bda9", self)
99
+ return self.class.execute("6b54c0e2-ae99-4376-9115-ff7cb88f39d2", self)
100
100
  end
101
101
 
102
102
 
@@ -115,7 +115,7 @@ module MasterCard
115
115
  #@raise [APIException] an exception from the response status
116
116
  #
117
117
 
118
- return self.execute("04e75575-b816-44bb-85bc-7824bb98da68",Crossborder.new(criteria))
118
+ return self.execute("3d2ce8fd-16e2-4528-a458-7eedd3db1e67",Crossborder.new(criteria))
119
119
  end
120
120
 
121
121
 
@@ -126,7 +126,7 @@ module MasterCard
126
126
  #@param Dict mapObj, containing the required parameters to create a new object
127
127
  #@return [Crossborder] of the response of created instance.
128
128
  #@raise [APIException] an exception from the response status
129
- return self.execute("23d527b5-2a09-441d-8ba4-4dfe7a36113c", Crossborder.new(mapObj))
129
+ return self.execute("e3c18a26-21fa-48f6-bc5e-7de988db3327", Crossborder.new(mapObj))
130
130
  end
131
131
 
132
132
 
@@ -32,14 +32,14 @@ require "mastercard/core/baseobject"
32
32
  module MasterCard
33
33
  module API
34
34
  module Spendalerts
35
- class Carddisable < MasterCard::Core::Model::BaseObject
35
+ class Declineall < MasterCard::Core::Model::BaseObject
36
36
  include MasterCard::Core::Model
37
37
  #
38
38
 
39
39
  @__store = {
40
- '11a0da60-2960-4955-bf17-535e42cdb621' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines/carddisable", "delete", [], []),
41
- '4bf11d4d-a2b4-4d26-90b7-e66a7390bd65' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines/carddisable", "query", [], []),
42
- '0f14f81d-bc29-40e5-9445-fb7d28c4d1de' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines/carddisable", "create", [], []),
40
+ '7e971e3f-286f-4f3f-8721-d16a2964865d' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines/all", "delete", [], []),
41
+ '78c3a057-3ffb-4b5f-9ca5-6907fd4f32e3' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines/all", "query", [], []),
42
+ 'f8433535-1b55-48de-89ca-6867056d2658' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines/all", "create", [], []),
43
43
 
44
44
  }
45
45
 
@@ -63,15 +63,15 @@ module MasterCard
63
63
 
64
64
 
65
65
  def self.deleteById(id, map = nil)
66
- #Delete object of type Carddisable by id
66
+ #Delete object of type Declineall by id
67
67
 
68
68
  #@param [String] id
69
69
  #@param [Dict] map, containing additional parameters
70
- #@return [Carddisable] of the response of the deleted instance.
70
+ #@return [Declineall] of the response of the deleted instance.
71
71
  #@raise [APIException] an exception from the response status
72
72
 
73
73
 
74
- mapObj = Carddisable.new
74
+ mapObj = Declineall.new
75
75
  if !(id.nil? || id.to_s.empty?)
76
76
  mapObj.set("id", id)
77
77
  end
@@ -83,20 +83,20 @@ module MasterCard
83
83
  end
84
84
  end
85
85
 
86
- return self.execute("11a0da60-2960-4955-bf17-535e42cdb621", mapObj)
86
+ return self.execute("7e971e3f-286f-4f3f-8721-d16a2964865d", mapObj)
87
87
  end
88
88
 
89
89
 
90
90
  def delete
91
91
  #
92
- #Delete object of type Carddisable
92
+ #Delete object of type Declineall
93
93
 
94
94
  #@param [String] id
95
- #@return [Carddisable] of the response of the deleted instance.
95
+ #@return [Declineall] of the response of the deleted instance.
96
96
  #@raise [APIException] an exception from the response status
97
97
  #
98
98
 
99
- return self.class.execute("11a0da60-2960-4955-bf17-535e42cdb621", self)
99
+ return self.class.execute("7e971e3f-286f-4f3f-8721-d16a2964865d", self)
100
100
  end
101
101
 
102
102
 
@@ -109,24 +109,24 @@ module MasterCard
109
109
 
110
110
  def self.query(criteria)
111
111
  #
112
- #Query objects of type Carddisable by id and optional criteria
112
+ #Query objects of type Declineall by id and optional criteria
113
113
  #@param [Dict] criteria
114
- #@return [Carddisable] object representing the response.
114
+ #@return [Declineall] object representing the response.
115
115
  #@raise [APIException] an exception from the response status
116
116
  #
117
117
 
118
- return self.execute("4bf11d4d-a2b4-4d26-90b7-e66a7390bd65",Carddisable.new(criteria))
118
+ return self.execute("78c3a057-3ffb-4b5f-9ca5-6907fd4f32e3",Declineall.new(criteria))
119
119
  end
120
120
 
121
121
 
122
122
  def self.create(mapObj)
123
123
  #
124
- #Creates object of type Carddisable
124
+ #Creates object of type Declineall
125
125
  #
126
126
  #@param Dict mapObj, containing the required parameters to create a new object
127
- #@return [Carddisable] of the response of created instance.
127
+ #@return [Declineall] of the response of created instance.
128
128
  #@raise [APIException] an exception from the response status
129
- return self.execute("0f14f81d-bc29-40e5-9445-fb7d28c4d1de", Carddisable.new(mapObj))
129
+ return self.execute("f8433535-1b55-48de-89ca-6867056d2658", Declineall.new(mapObj))
130
130
  end
131
131
 
132
132
 
@@ -37,9 +37,9 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '743a2509-54af-427b-85a4-9c3f4f122e3f' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines", "delete", [], []),
41
- '6b0d4472-7721-4dde-a835-a686b31a3388' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines", "query", [], []),
42
- 'a5833eeb-ddb0-43e4-9d2f-43625bfef654' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines", "create", [], []),
40
+ '75a57f0d-6cb9-4ca9-8d1e-4c28566d8a94' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines", "delete", [], []),
41
+ 'b55e8086-622f-45ef-b2aa-e83a4f029e5e' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines", "query", [], []),
42
+ 'a3c5557b-473d-41c4-bbff-ae6b2f60b4cf' => OperationConfig.new("/issuer/v1/card/{uuid}/controls/declines", "create", [], []),
43
43
 
44
44
  }
45
45
 
@@ -83,7 +83,7 @@ module MasterCard
83
83
  end
84
84
  end
85
85
 
86
- return self.execute("743a2509-54af-427b-85a4-9c3f4f122e3f", mapObj)
86
+ return self.execute("75a57f0d-6cb9-4ca9-8d1e-4c28566d8a94", mapObj)
87
87
  end
88
88
 
89
89
 
@@ -96,7 +96,7 @@ module MasterCard
96
96
  #@raise [APIException] an exception from the response status
97
97
  #
98
98
 
99
- return self.class.execute("743a2509-54af-427b-85a4-9c3f4f122e3f", self)
99
+ return self.class.execute("75a57f0d-6cb9-4ca9-8d1e-4c28566d8a94", self)
100
100
  end
101
101
 
102
102
 
@@ -115,7 +115,7 @@ module MasterCard
115
115
  #@raise [APIException] an exception from the response status
116
116
  #
117
117
 
118
- return self.execute("6b0d4472-7721-4dde-a835-a686b31a3388",Declines.new(criteria))
118
+ return self.execute("b55e8086-622f-45ef-b2aa-e83a4f029e5e",Declines.new(criteria))
119
119
  end
120
120
 
121
121
 
@@ -126,7 +126,7 @@ module MasterCard
126
126
  #@param Dict mapObj, containing the required parameters to create a new object
127
127
  #@return [Declines] of the response of created instance.
128
128
  #@raise [APIException] an exception from the response status
129
- return self.execute("a5833eeb-ddb0-43e4-9d2f-43625bfef654", Declines.new(mapObj))
129
+ return self.execute("a3c5557b-473d-41c4-bbff-ae6b2f60b4cf", Declines.new(mapObj))
130
130
  end
131
131
 
132
132
 
@@ -37,7 +37,7 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- '9b710b6c-f803-4c91-a626-5313d07eb0a6' => OperationConfig.new("/issuer/v1/test/notificationUrl", "create", ["x-request-endpoint-uri"], []),
40
+ 'd39b2405-e025-4815-912e-3be6c39f2d06' => OperationConfig.new("/issuer/v1/test/notificationUrl", "create", ["x-request-endpoint-uri"], []),
41
41
 
42
42
  }
43
43
 
@@ -64,7 +64,7 @@ module MasterCard
64
64
  #@param Dict mapObj, containing the required parameters to create a new object
65
65
  #@return [Notification] of the response of created instance.
66
66
  #@raise [APIException] an exception from the response status
67
- return self.execute("9b710b6c-f803-4c91-a626-5313d07eb0a6", Notification.new(mapObj))
67
+ return self.execute("d39b2405-e025-4815-912e-3be6c39f2d06", Notification.new(mapObj))
68
68
  end
69
69
 
70
70
 
@@ -41,7 +41,7 @@ module MasterCard
41
41
  @override = nil
42
42
  @host = nil
43
43
  @context = nil
44
- @version = "1.0.2"
44
+ @version = "1.0.3"
45
45
 
46
46
  Config.registerResourceConfig(self)
47
47
  currentEnvironment = Config.getEnvironment()
@@ -0,0 +1,87 @@
1
+ #
2
+ # Copyright (c) 2016 MasterCard International Incorporated
3
+ # All rights reserved.
4
+ #
5
+ # Redistribution and use in source and binary forms, with or without modification, are
6
+ # permitted provided that the following conditions are met:
7
+ #
8
+ # Redistributions of source code must retain the above copyright notice, this list of
9
+ # conditions and the following disclaimer.
10
+ # Redistributions in binary form must reproduce the above copyright notice, this list of
11
+ # conditions and the following disclaimer in the documentation and/or other materials
12
+ # provided with the distribution.
13
+ # Neither the name of the MasterCard International Incorporated nor the names of its
14
+ # contributors may be used to endorse or promote products derived from this software
15
+ # without specific prior written permission.
16
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
17
+ # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
19
+ # SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
21
+ # TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22
+ # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
23
+ # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24
+ # IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25
+ # SUCH DAMAGE.
26
+ #
27
+
28
+
29
+ require "mastercard/core/model"
30
+ require "mastercard/core/baseobject"
31
+
32
+ module MasterCard
33
+ module API
34
+ module Spendalerts
35
+ class Txnhistory < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ 'a8b6988c-98e8-49ed-b567-465b36df8177' => OperationConfig.new("/issuer/v1/card/{uuid}/transactions", "query", [], ["from","to","pageNumber","pageSize"]),
41
+
42
+ }
43
+
44
+ protected
45
+
46
+ def self.getOperationConfig(uuid)
47
+ if @__store.key?(uuid)
48
+ return @__store[uuid]
49
+ end
50
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
51
+ end
52
+
53
+ def self.getOperationMetadata()
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext())
55
+ end
56
+
57
+ public
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+ def self.query(criteria)
66
+ #
67
+ #Query objects of type Txnhistory by id and optional criteria
68
+ #@param [Dict] criteria
69
+ #@return [Txnhistory] object representing the response.
70
+ #@raise [APIException] an exception from the response status
71
+ #
72
+
73
+ return self.execute("a8b6988c-98e8-49ed-b567-465b36df8177",Txnhistory.new(criteria))
74
+ end
75
+
76
+
77
+ end
78
+ end
79
+ end
80
+ end
81
+
82
+
83
+
84
+
85
+
86
+
87
+
@@ -37,7 +37,7 @@ module MasterCard
37
37
  #
38
38
 
39
39
  @__store = {
40
- 'ba067d72-27fe-4850-a069-14016df4ef4a' => OperationConfig.new("/issuer/v1/card/verify/{uuid}", "create", [], []),
40
+ '40be4201-6504-44d0-9bf9-c64602232deb' => OperationConfig.new("/issuer/v1/card/verify/{uuid}", "create", [], []),
41
41
 
42
42
  }
43
43
 
@@ -64,7 +64,7 @@ module MasterCard
64
64
  #@param Dict mapObj, containing the required parameters to create a new object
65
65
  #@return [Verify] of the response of created instance.
66
66
  #@raise [APIException] an exception from the response status
67
- return self.execute("ba067d72-27fe-4850-a069-14016df4ef4a", Verify.new(mapObj))
67
+ return self.execute("40be4201-6504-44d0-9bf9-c64602232deb", Verify.new(mapObj))
68
68
  end
69
69
 
70
70
 
@@ -5,10 +5,12 @@ require 'mastercard/api/spendalerts/resourceconfig'
5
5
  require 'mastercard/api/spendalerts/alerts'
6
6
  require 'mastercard/api/spendalerts/amount'
7
7
  require 'mastercard/api/spendalerts/card'
8
- require 'mastercard/api/spendalerts/carddisable'
9
8
  require 'mastercard/api/spendalerts/channel'
10
9
  require 'mastercard/api/spendalerts/controls'
10
+ require 'mastercard/api/spendalerts/controlshistory'
11
11
  require 'mastercard/api/spendalerts/crossborder'
12
+ require 'mastercard/api/spendalerts/declineall'
12
13
  require 'mastercard/api/spendalerts/declines'
13
14
  require 'mastercard/api/spendalerts/notification'
15
+ require 'mastercard/api/spendalerts/txnhistory'
14
16
  require 'mastercard/api/spendalerts/verify'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastercard_spendalerts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - MasterCard Worldwide
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-27 00:00:00.000000000 Z
11
+ date: 2017-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mastercard_api_core
@@ -54,13 +54,15 @@ files:
54
54
  - lib/mastercard/api/spendalerts/alerts.rb
55
55
  - lib/mastercard/api/spendalerts/amount.rb
56
56
  - lib/mastercard/api/spendalerts/card.rb
57
- - lib/mastercard/api/spendalerts/carddisable.rb
58
57
  - lib/mastercard/api/spendalerts/channel.rb
59
58
  - lib/mastercard/api/spendalerts/controls.rb
59
+ - lib/mastercard/api/spendalerts/controlshistory.rb
60
60
  - lib/mastercard/api/spendalerts/crossborder.rb
61
+ - lib/mastercard/api/spendalerts/declineall.rb
61
62
  - lib/mastercard/api/spendalerts/declines.rb
62
63
  - lib/mastercard/api/spendalerts/notification.rb
63
64
  - lib/mastercard/api/spendalerts/resourceconfig.rb
65
+ - lib/mastercard/api/spendalerts/txnhistory.rb
64
66
  - lib/mastercard/api/spendalerts/verify.rb
65
67
  - lib/mastercard_spendalerts.rb
66
68
  homepage: https://developer.mastercard.com