mastercard_mcaidanalytics 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b113ffd090643263195ce9f8027328efa4433958
4
+ data.tar.gz: 6a564418f5b5fa08cfafce3473225ef6e916cf0e
5
+ SHA512:
6
+ metadata.gz: e67ccca3f48d9acbe986314bb400ab8f0fa8e2771609acf7747200ed615bcf69c7d84a3d6b3b38e8320b63010dffd46761a1e41bc4af97d98ec39e30a69e9132
7
+ data.tar.gz: 82142ae69a9f04b80b2271e272777352434045072d7e3ee2971e491958f4cb2d52036484abecea2d9f793cabc7d3ff8b76f3eb1283219af4976ba19e983c7661
@@ -0,0 +1,86 @@
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
+
31
+ module MasterCard
32
+ module API
33
+ module McaidAnalytics
34
+ class Cards < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
+ #
37
+
38
+ @__store = {
39
+ '7d23e5f1-f1fb-4803-85fa-7f2eb566b010' => OperationConfig.new("/labs/proxy/mcaid-api/internal/v1/cards", "list", [], ["programId","status"]),
40
+
41
+ }
42
+
43
+ protected
44
+
45
+ def self.getOperationConfig(uuid)
46
+ if @__store.key?(uuid)
47
+ return @__store[uuid]
48
+ end
49
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
+ end
51
+
52
+ def self.getOperationMetadata()
53
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
54
+ end
55
+
56
+ public
57
+
58
+
59
+
60
+ def self.listByCriteria(criteria = nil)
61
+ #
62
+ #List objects of type Cards
63
+ #
64
+ #@param Dict criteria
65
+ #@return Array of Cards object matching the criteria.
66
+
67
+ if criteria.nil?
68
+ return self.execute("7d23e5f1-f1fb-4803-85fa-7f2eb566b010",Cards.new)
69
+ else
70
+ return self.execute("7d23e5f1-f1fb-4803-85fa-7f2eb566b010",Cards.new(criteria))
71
+ end
72
+ end
73
+
74
+
75
+
76
+ end
77
+ end
78
+ end
79
+ end
80
+
81
+
82
+
83
+
84
+
85
+
86
+
@@ -0,0 +1,86 @@
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
+
31
+ module MasterCard
32
+ module API
33
+ module McaidAnalytics
34
+ class Devices < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
+ #
37
+
38
+ @__store = {
39
+ 'acc304a6-ca4e-44ba-a420-13b5033963e2' => OperationConfig.new("/labs/proxy/mcaid-api/internal/v1/devices", "list", [], ["type"]),
40
+
41
+ }
42
+
43
+ protected
44
+
45
+ def self.getOperationConfig(uuid)
46
+ if @__store.key?(uuid)
47
+ return @__store[uuid]
48
+ end
49
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
+ end
51
+
52
+ def self.getOperationMetadata()
53
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
54
+ end
55
+
56
+ public
57
+
58
+
59
+
60
+ def self.listByCriteria(criteria = nil)
61
+ #
62
+ #List objects of type Devices
63
+ #
64
+ #@param Dict criteria
65
+ #@return Array of Devices object matching the criteria.
66
+
67
+ if criteria.nil?
68
+ return self.execute("acc304a6-ca4e-44ba-a420-13b5033963e2",Devices.new)
69
+ else
70
+ return self.execute("acc304a6-ca4e-44ba-a420-13b5033963e2",Devices.new(criteria))
71
+ end
72
+ end
73
+
74
+
75
+
76
+ end
77
+ end
78
+ end
79
+ end
80
+
81
+
82
+
83
+
84
+
85
+
86
+
@@ -0,0 +1,86 @@
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
+
31
+ module MasterCard
32
+ module API
33
+ module McaidAnalytics
34
+ class Merchants < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
+ #
37
+
38
+ @__store = {
39
+ '3ddeb082-5b2c-4e3b-ad2a-3aedd1d13e33' => OperationConfig.new("/labs/proxy/mcaid-api/internal/v1/merchants", "list", [], ["name"]),
40
+
41
+ }
42
+
43
+ protected
44
+
45
+ def self.getOperationConfig(uuid)
46
+ if @__store.key?(uuid)
47
+ return @__store[uuid]
48
+ end
49
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
+ end
51
+
52
+ def self.getOperationMetadata()
53
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
54
+ end
55
+
56
+ public
57
+
58
+
59
+
60
+ def self.listByCriteria(criteria = nil)
61
+ #
62
+ #List objects of type Merchants
63
+ #
64
+ #@param Dict criteria
65
+ #@return Array of Merchants object matching the criteria.
66
+
67
+ if criteria.nil?
68
+ return self.execute("3ddeb082-5b2c-4e3b-ad2a-3aedd1d13e33",Merchants.new)
69
+ else
70
+ return self.execute("3ddeb082-5b2c-4e3b-ad2a-3aedd1d13e33",Merchants.new(criteria))
71
+ end
72
+ end
73
+
74
+
75
+
76
+ end
77
+ end
78
+ end
79
+ end
80
+
81
+
82
+
83
+
84
+
85
+
86
+
@@ -0,0 +1,86 @@
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
+
31
+ module MasterCard
32
+ module API
33
+ module McaidAnalytics
34
+ class Products < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
+ #
37
+
38
+ @__store = {
39
+ '95c7e8f2-12df-493f-8f3f-5c818b236bae' => OperationConfig.new("/labs/proxy/mcaid-api/internal/v1/products", "list", [], ["name"]),
40
+
41
+ }
42
+
43
+ protected
44
+
45
+ def self.getOperationConfig(uuid)
46
+ if @__store.key?(uuid)
47
+ return @__store[uuid]
48
+ end
49
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
+ end
51
+
52
+ def self.getOperationMetadata()
53
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
54
+ end
55
+
56
+ public
57
+
58
+
59
+
60
+ def self.listByCriteria(criteria = nil)
61
+ #
62
+ #List objects of type Products
63
+ #
64
+ #@param Dict criteria
65
+ #@return Array of Products object matching the criteria.
66
+
67
+ if criteria.nil?
68
+ return self.execute("95c7e8f2-12df-493f-8f3f-5c818b236bae",Products.new)
69
+ else
70
+ return self.execute("95c7e8f2-12df-493f-8f3f-5c818b236bae",Products.new(criteria))
71
+ end
72
+ end
73
+
74
+
75
+
76
+ end
77
+ end
78
+ end
79
+ end
80
+
81
+
82
+
83
+
84
+
85
+
86
+
@@ -0,0 +1,86 @@
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
+
31
+ module MasterCard
32
+ module API
33
+ module McaidAnalytics
34
+ class Programs < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
+ #
37
+
38
+ @__store = {
39
+ 'a6ff4825-08c8-48a9-9cb4-6d1f55fd29dc' => OperationConfig.new("/labs/proxy/mcaid-api/internal/v1/programs", "list", [], ["name"]),
40
+
41
+ }
42
+
43
+ protected
44
+
45
+ def self.getOperationConfig(uuid)
46
+ if @__store.key?(uuid)
47
+ return @__store[uuid]
48
+ end
49
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
+ end
51
+
52
+ def self.getOperationMetadata()
53
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
54
+ end
55
+
56
+ public
57
+
58
+
59
+
60
+ def self.listByCriteria(criteria = nil)
61
+ #
62
+ #List objects of type Programs
63
+ #
64
+ #@param Dict criteria
65
+ #@return Array of Programs object matching the criteria.
66
+
67
+ if criteria.nil?
68
+ return self.execute("a6ff4825-08c8-48a9-9cb4-6d1f55fd29dc",Programs.new)
69
+ else
70
+ return self.execute("a6ff4825-08c8-48a9-9cb4-6d1f55fd29dc",Programs.new(criteria))
71
+ end
72
+ end
73
+
74
+
75
+
76
+ end
77
+ end
78
+ end
79
+ end
80
+
81
+
82
+
83
+
84
+
85
+
86
+
@@ -0,0 +1,50 @@
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
+ module MasterCard
28
+ module API
29
+ module McaidAnalytics
30
+ class SDKConfig
31
+
32
+ private
33
+ @@host = nil
34
+
35
+ public
36
+ def self.setHost(host)
37
+ @@host = host
38
+ end
39
+
40
+ def self.getHost()
41
+ return @@host
42
+ end
43
+
44
+ def self.getVersion()
45
+ return "1.0.0"
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,83 @@
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
+
31
+ module MasterCard
32
+ module API
33
+ module McaidAnalytics
34
+ class Transactions < MasterCard::Core::Model::BaseObject
35
+ include MasterCard::Core::Model
36
+ #
37
+
38
+ @__store = {
39
+ '50e85606-db0d-4e21-91f5-bce9e34de3b8' => OperationConfig.new("/labs/proxy/mcaid-api/internal/v1/transactions", "query", [], ["pageOffset","pageLength","programId","startDate","endDate","type","status"]),
40
+
41
+ }
42
+
43
+ protected
44
+
45
+ def self.getOperationConfig(uuid)
46
+ if @__store.key?(uuid)
47
+ return @__store[uuid]
48
+ end
49
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ uuid)
50
+ end
51
+
52
+ def self.getOperationMetadata()
53
+ return OperationMetadata.new(SDKConfig.getVersion(), SDKConfig.getHost())
54
+ end
55
+
56
+ public
57
+
58
+
59
+
60
+
61
+
62
+
63
+ def self.query(criteria)
64
+ #
65
+ #Query objects of type Transactions by id and optional criteria
66
+ #@param type criteria
67
+ #@return Transactions object representing the response.
68
+ #
69
+
70
+ return self.execute("50e85606-db0d-4e21-91f5-bce9e34de3b8",Transactions.new(criteria))
71
+ end
72
+
73
+ end
74
+ end
75
+ end
76
+ end
77
+
78
+
79
+
80
+
81
+
82
+
83
+
@@ -0,0 +1,8 @@
1
+ require 'mastercard_api_core'
2
+ require 'mastercard/api/mcaidanalytics/skdconfig'
3
+ require 'mastercard/api/mcaidanalytics/merchants'
4
+ require 'mastercard/api/mcaidanalytics/transactions'
5
+ require 'mastercard/api/mcaidanalytics/programs'
6
+ require 'mastercard/api/mcaidanalytics/devices'
7
+ require 'mastercard/api/mcaidanalytics/cards'
8
+ require 'mastercard/api/mcaidanalytics/products'
metadata ADDED
@@ -0,0 +1,86 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mastercard_mcaidanalytics
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - MasterCard Worldwide
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-11-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: mastercard_api_core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.2.0
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.2.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 1.2.0
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.2.0
33
+ - !ruby/object:Gem::Dependency
34
+ name: ci_reporter_minitest
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ description: MasterCard McaidAnalytics Description
48
+ email:
49
+ - APISupport@mastercard.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - lib/mastercard/api/mcaidanalytics/cards.rb
55
+ - lib/mastercard/api/mcaidanalytics/devices.rb
56
+ - lib/mastercard/api/mcaidanalytics/merchants.rb
57
+ - lib/mastercard/api/mcaidanalytics/products.rb
58
+ - lib/mastercard/api/mcaidanalytics/programs.rb
59
+ - lib/mastercard/api/mcaidanalytics/skdconfig.rb
60
+ - lib/mastercard/api/mcaidanalytics/transactions.rb
61
+ - lib/mastercard_mcaidanalytics.rb
62
+ homepage: https://developer.mastercard.com
63
+ licenses:
64
+ - BSD-2-Clause
65
+ metadata: {}
66
+ post_install_message:
67
+ rdoc_options: []
68
+ require_paths:
69
+ - lib
70
+ required_ruby_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ required_rubygems_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ requirements: []
81
+ rubyforge_project:
82
+ rubygems_version: 2.5.1
83
+ signing_key:
84
+ specification_version: 4
85
+ summary: MasterCard McaidAnalytics SDK
86
+ test_files: []