mastercard_spendcontrols 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 Spendcontrols
35
+ class Txnhistory < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ '790e21ca-eabc-4c30-addd-8fc8670e6702' => OperationConfig.new("/issuer/spendcontrols/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("790e21ca-eabc-4c30-addd-8fc8670e6702",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
- '80983859-265c-4430-84fd-fb506d124f0d' => OperationConfig.new("/issuer/spendcontrols/v1/card/verify/{uuid}", "create", [], []),
40
+ '4a153ad8-9a84-46e7-9e0e-ca9c3fa7e358' => OperationConfig.new("/issuer/spendcontrols/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("80983859-265c-4430-84fd-fb506d124f0d", Verify.new(mapObj))
67
+ return self.execute("4a153ad8-9a84-46e7-9e0e-ca9c3fa7e358", Verify.new(mapObj))
68
68
  end
69
69
 
70
70
 
@@ -7,13 +7,18 @@ require 'mastercard/api/spendcontrols/alerts'
7
7
  require 'mastercard/api/spendcontrols/amount'
8
8
  require 'mastercard/api/spendcontrols/amountdecline'
9
9
  require 'mastercard/api/spendcontrols/card'
10
- require 'mastercard/api/spendcontrols/carddisable'
11
10
  require 'mastercard/api/spendcontrols/channel'
12
11
  require 'mastercard/api/spendcontrols/channeldecline'
13
12
  require 'mastercard/api/spendcontrols/controls'
13
+ require 'mastercard/api/spendcontrols/controlshistory'
14
14
  require 'mastercard/api/spendcontrols/crossborder'
15
15
  require 'mastercard/api/spendcontrols/crossborderdecline'
16
16
  require 'mastercard/api/spendcontrols/declineall'
17
17
  require 'mastercard/api/spendcontrols/declines'
18
+ require 'mastercard/api/spendcontrols/geolocationalert'
19
+ require 'mastercard/api/spendcontrols/geolocationdecline'
20
+ require 'mastercard/api/spendcontrols/merchantcategorycodealert'
21
+ require 'mastercard/api/spendcontrols/merchantcategorycodedecline'
18
22
  require 'mastercard/api/spendcontrols/notification'
23
+ require 'mastercard/api/spendcontrols/txnhistory'
19
24
  require 'mastercard/api/spendcontrols/verify'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastercard_spendcontrols
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
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-03-03 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
@@ -56,16 +56,21 @@ files:
56
56
  - lib/mastercard/api/spendcontrols/amount.rb
57
57
  - lib/mastercard/api/spendcontrols/amountdecline.rb
58
58
  - lib/mastercard/api/spendcontrols/card.rb
59
- - lib/mastercard/api/spendcontrols/carddisable.rb
60
59
  - lib/mastercard/api/spendcontrols/channel.rb
61
60
  - lib/mastercard/api/spendcontrols/channeldecline.rb
62
61
  - lib/mastercard/api/spendcontrols/controls.rb
62
+ - lib/mastercard/api/spendcontrols/controlshistory.rb
63
63
  - lib/mastercard/api/spendcontrols/crossborder.rb
64
64
  - lib/mastercard/api/spendcontrols/crossborderdecline.rb
65
65
  - lib/mastercard/api/spendcontrols/declineall.rb
66
66
  - lib/mastercard/api/spendcontrols/declines.rb
67
+ - lib/mastercard/api/spendcontrols/geolocationalert.rb
68
+ - lib/mastercard/api/spendcontrols/geolocationdecline.rb
69
+ - lib/mastercard/api/spendcontrols/merchantcategorycodealert.rb
70
+ - lib/mastercard/api/spendcontrols/merchantcategorycodedecline.rb
67
71
  - lib/mastercard/api/spendcontrols/notification.rb
68
72
  - lib/mastercard/api/spendcontrols/resourceconfig.rb
73
+ - lib/mastercard/api/spendcontrols/txnhistory.rb
69
74
  - lib/mastercard/api/spendcontrols/verify.rb
70
75
  - lib/mastercard_spendcontrols.rb
71
76
  homepage: https://developer.mastercard.com