mastercard_disbursements 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,61 +30,61 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module Disbursements
35
- class Disbursement < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module Disbursements
35
+ class Disbursement < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '2e679cff-6236-42c9-a090-94dcd4479110' => OperationConfig.new("/send/v1/partners/{partnerId}/disbursements/{disbursementId}", "read", [], []),
41
- '43553e24-cce8-419c-9989-68f6de68d7c8' => OperationConfig.new("/send/v1/partners/{partnerId}/disbursements", "query", [], ["ref"]),
42
- 'bbfba47c-9f46-48c7-874f-63957645e5bd' => OperationConfig.new("/send/v1/partners/{partnerId}/disbursements/payment", "create", [], []),
43
-
44
- }
39
+ @__store = {
40
+ 'e0ba7ea1-5f27-4cde-a781-1d1415a53f74' => OperationConfig.new("/send/v1/partners/{partnerId}/disbursements/{disbursementId}", "read", [], []),
41
+ '1aeb9753-65df-4081-95b2-e1d2829be7b2' => OperationConfig.new("/send/v1/partners/{partnerId}/disbursements", "query", [], ["ref"]),
42
+ '2f63c3d9-affc-4cd2-9352-7d220eb59669' => OperationConfig.new("/send/v1/partners/{partnerId}/disbursements/payment", "create", [], []),
43
+
44
+ }
45
45
 
46
- protected
46
+ protected
47
47
 
48
- def self.getOperationConfig(operationUUID)
49
- if @__store.key?(operationUUID)
50
- return @__store[operationUUID]
51
- end
52
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
53
- end
48
+ def self.getOperationConfig(operationUUID)
49
+ if @__store.key?(operationUUID)
50
+ return @__store[operationUUID]
51
+ end
52
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
53
+ end
54
54
 
55
- def self.getOperationMetadata()
56
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
57
- end
55
+ def self.getOperationMetadata()
56
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
57
+ end
58
58
 
59
- public
59
+ public
60
60
 
61
61
 
62
62
 
63
63
 
64
64
 
65
65
 
66
- def self.readByID(id, criteria = nil)
67
- #
68
- #Returns objects of type Disbursement by id and optional criteria
69
- #@param [String] id
70
- #@param [Dict] criteria
71
- #@return [Disbursement] object representing the response
72
- #@raise [APIException] an exception from the response status
66
+ def self.readByID(id, criteria = nil)
67
+ #
68
+ #Returns objects of type Disbursement by id and optional criteria
69
+ #@param [String] id
70
+ #@param [Dict] criteria
71
+ #@return [Disbursement] object representing the response
72
+ #@raise [APIException] an exception from the response status
73
73
 
74
- mapObj = Disbursement.new
75
- if !(id.nil? || id.to_s.empty?)
76
- mapObj.set("id", id)
77
- end
78
- if !criteria.nil?
79
- if criteria.instance_of? RequestMap
80
- mapObj.setAll(criteria.getObject())
81
- else
82
- mapObj.setAll(criteria)
83
- end
84
- end
74
+ mapObj = Disbursement.new
75
+ if !(id.nil? || id.to_s.empty?)
76
+ mapObj.set("id", id)
77
+ end
78
+ if !criteria.nil?
79
+ if criteria.instance_of? RequestMap
80
+ mapObj.setAll(criteria.getObject())
81
+ else
82
+ mapObj.setAll(criteria)
83
+ end
84
+ end
85
85
 
86
- return self.execute("2e679cff-6236-42c9-a090-94dcd4479110",Disbursement.new(mapObj))
87
- end
86
+ return self.execute("e0ba7ea1-5f27-4cde-a781-1d1415a53f74",Disbursement.new(mapObj))
87
+ end
88
88
 
89
89
 
90
90
 
@@ -93,27 +93,27 @@ module MasterCard
93
93
 
94
94
 
95
95
 
96
- def self.readByReference(criteria)
97
- #
98
- #Query objects of type Disbursement by id and optional criteria
99
- #@param [Dict] criteria
100
- #@return [Disbursement] object representing the response.
101
- #@raise [APIException] an exception from the response status
102
- #
96
+ def self.readByReference(criteria)
97
+ #
98
+ #Query objects of type Disbursement by id and optional criteria
99
+ #@param [Dict] criteria
100
+ #@return [Disbursement] object representing the response.
101
+ #@raise [APIException] an exception from the response status
102
+ #
103
103
 
104
- return self.execute("43553e24-cce8-419c-9989-68f6de68d7c8",Disbursement.new(criteria))
105
- end
104
+ return self.execute("1aeb9753-65df-4081-95b2-e1d2829be7b2",Disbursement.new(criteria))
105
+ end
106
106
 
107
107
 
108
- def self.create(mapObj)
109
- #
110
- #Creates object of type Disbursement
111
- #
112
- #@param Dict mapObj, containing the required parameters to create a new object
113
- #@return [Disbursement] of the response of created instance.
114
- #@raise [APIException] an exception from the response status
115
- return self.execute("bbfba47c-9f46-48c7-874f-63957645e5bd", Disbursement.new(mapObj))
116
- end
108
+ def self.create(mapObj)
109
+ #
110
+ #Creates object of type Disbursement
111
+ #
112
+ #@param Dict mapObj, containing the required parameters to create a new object
113
+ #@return [Disbursement] of the response of created instance.
114
+ #@raise [APIException] an exception from the response status
115
+ return self.execute("2f63c3d9-affc-4cd2-9352-7d220eb59669", Disbursement.new(mapObj))
116
+ end
117
117
 
118
118
 
119
119
 
@@ -121,9 +121,9 @@ module MasterCard
121
121
 
122
122
 
123
123
 
124
- end
125
- end
126
- end
124
+ end
125
+ end
126
+ end
127
127
  end
128
128
 
129
129
 
@@ -29,76 +29,76 @@ require "mastercard/core/constants"
29
29
  require "mastercard/core/config"
30
30
 
31
31
  module MasterCard
32
- module API
33
- module Disbursements
34
- class ResourceConfig
35
- include MasterCard::Core
32
+ module API
33
+ module Disbursements
34
+ class ResourceConfig
35
+ include MasterCard::Core
36
36
 
37
- @@instance = nil
37
+ @@instance = nil
38
38
 
39
- def initialize
40
- @override = nil
41
- @host = nil
42
- @context = nil
39
+ def initialize
40
+ @override = nil
41
+ @host = nil
42
+ @context = nil
43
43
 
44
- Config.registerResourceConfig(self)
45
- currentEnvironment = Config.getEnvironment()
46
- self.setEnvironment(currentEnvironment)
44
+ Config.registerResourceConfig(self)
45
+ currentEnvironment = Config.getEnvironment()
46
+ self.setEnvironment(currentEnvironment)
47
47
 
48
- end
48
+ end
49
49
 
50
50
 
51
- def self.instance
52
- return @@instance
53
- end
51
+ def self.instance
52
+ return @@instance
53
+ end
54
54
 
55
55
 
56
- def getName
57
- return "disbursements"
58
- end
56
+ def getName
57
+ return "disbursements"
58
+ end
59
59
 
60
60
 
61
- def getHost
62
- unless @override.nil? || @override == 0
63
- return @override
64
- else
65
- return @host
66
- end
67
- end
61
+ def getHost
62
+ unless @override.nil? || @override == 0
63
+ return @override
64
+ else
65
+ return @host
66
+ end
67
+ end
68
68
 
69
- def getContext
70
- return @context
71
- end
69
+ def getContext
70
+ return @context
71
+ end
72
72
 
73
- def getVersion
74
- return "disbursements:1.0.3"
75
- end
73
+ def getVersion
74
+ return "disbursements:1.0.4"
75
+ end
76
76
 
77
- def getJsonNative
78
- return false
79
- end
77
+ def getJsonNative
78
+ return false
79
+ end
80
80
 
81
- def getContentTypeOverride
82
- return nil
83
- end
81
+ def getContentTypeOverride
82
+ return nil
83
+ end
84
84
 
85
- def setEnvironment(environmet)
86
- if Environment::MAPPING.key?(environmet)
87
- tuple = Environment::MAPPING[environmet]
88
- @host = tuple[0]
89
- @context = tuple[1]
90
- end
91
- end
85
+ def setEnvironment(environmet)
86
+ if Environment::MAPPING.key?(environmet)
87
+ tuple = Environment::MAPPING[environmet]
88
+ @host = tuple[0]
89
+ @context = tuple[1]
90
+ end
91
+ end
92
92
 
93
- def setCustomEnvironment(host,context)
94
- @host = host
95
- @context = context
96
- end
93
+ def setCustomEnvironment(host,context)
94
+ @host = host
95
+ @context = context
96
+ end
97
97
 
98
- @@instance = ResourceConfig.new
98
+ @@instance = ResourceConfig.new
99
99
 
100
- private_class_method :new
101
- end
102
- end
103
- end
100
+ private_class_method :new
101
+ end
102
+ end
103
+ end
104
104
  end
@@ -30,43 +30,43 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module Disbursements
35
- class SanctionScreening < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module Disbursements
35
+ class SanctionScreening < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- '27ae961e-35c9-4d70-a014-c97f0d1a6c84' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/sanction_screening", "update", [], []),
41
-
42
- }
39
+ @__store = {
40
+ '34a96852-b867-4786-880d-4d98acf218ef' => OperationConfig.new("/send/v1/partners/{partnerId}/consumers/sanction_screening", "update", [], []),
41
+
42
+ }
43
43
 
44
- protected
44
+ protected
45
45
 
46
- def self.getOperationConfig(operationUUID)
47
- if @__store.key?(operationUUID)
48
- return @__store[operationUUID]
49
- end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
51
- end
46
+ def self.getOperationConfig(operationUUID)
47
+ if @__store.key?(operationUUID)
48
+ return @__store[operationUUID]
49
+ end
50
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
51
+ end
52
52
 
53
- def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
55
- end
53
+ def self.getOperationMetadata()
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
55
+ end
56
56
 
57
- public
57
+ public
58
58
 
59
59
 
60
60
 
61
- def read
62
- #
63
- #Updates an object of type SanctionScreening
64
- #
65
- #@return [SanctionScreening] object representing the response.
66
- #@raise [APIException] an exception from the response status
67
- #
68
- return self.class.execute("27ae961e-35c9-4d70-a014-c97f0d1a6c84",self)
69
- end
61
+ def read
62
+ #
63
+ #Updates an object of type SanctionScreening
64
+ #
65
+ #@return [SanctionScreening] object representing the response.
66
+ #@raise [APIException] an exception from the response status
67
+ #
68
+ return self.class.execute("34a96852-b867-4786-880d-4d98acf218ef",self)
69
+ end
70
70
 
71
71
 
72
72
 
@@ -74,9 +74,9 @@ module MasterCard
74
74
 
75
75
 
76
76
 
77
- end
78
- end
79
- end
77
+ end
78
+ end
79
+ end
80
80
  end
81
81
 
82
82
 
@@ -30,42 +30,42 @@ require "mastercard/core/model"
30
30
  require "mastercard/core/baseobject"
31
31
 
32
32
  module MasterCard
33
- module API
34
- module Disbursements
35
- class TransferNotification < MasterCard::Core::Model::BaseObject
36
- include MasterCard::Core::Model
37
- #
33
+ module API
34
+ module Disbursements
35
+ class TransferNotification < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
38
 
39
- @__store = {
40
- 'c59e9936-fc42-4152-98c4-903c11e4f6b4' => OperationConfig.new("/inbound/notification/v1/", "create", [], []),
41
-
42
- }
39
+ @__store = {
40
+ '73b7f557-6486-45c5-9634-1893a1662486' => OperationConfig.new("/inbound/notification/v1/", "create", [], []),
41
+
42
+ }
43
43
 
44
- protected
44
+ protected
45
45
 
46
- def self.getOperationConfig(operationUUID)
47
- if @__store.key?(operationUUID)
48
- return @__store[operationUUID]
49
- end
50
- raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
51
- end
46
+ def self.getOperationConfig(operationUUID)
47
+ if @__store.key?(operationUUID)
48
+ return @__store[operationUUID]
49
+ end
50
+ raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
51
+ end
52
52
 
53
- def self.getOperationMetadata()
54
- return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
55
- end
53
+ def self.getOperationMetadata()
54
+ return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
55
+ end
56
56
 
57
- public
57
+ public
58
58
 
59
59
 
60
- def self.notification(mapObj)
61
- #
62
- #Creates object of type TransferNotification
63
- #
64
- #@param Dict mapObj, containing the required parameters to create a new object
65
- #@return [TransferNotification] of the response of created instance.
66
- #@raise [APIException] an exception from the response status
67
- return self.execute("c59e9936-fc42-4152-98c4-903c11e4f6b4", TransferNotification.new(mapObj))
68
- end
60
+ def self.notification(mapObj)
61
+ #
62
+ #Creates object of type TransferNotification
63
+ #
64
+ #@param Dict mapObj, containing the required parameters to create a new object
65
+ #@return [TransferNotification] of the response of created instance.
66
+ #@raise [APIException] an exception from the response status
67
+ return self.execute("73b7f557-6486-45c5-9634-1893a1662486", TransferNotification.new(mapObj))
68
+ end
69
69
 
70
70
 
71
71
 
@@ -73,9 +73,9 @@ module MasterCard
73
73
 
74
74
 
75
75
 
76
- end
77
- end
78
- end
76
+ end
77
+ end
78
+ end
79
79
  end
80
80
 
81
81
 
@@ -2,6 +2,7 @@ require 'mastercard_api_core'
2
2
 
3
3
  require 'mastercard/api/disbursements/resourceconfig'
4
4
 
5
+ require 'mastercard/api/disbursements/accountbalance'
5
6
  require 'mastercard/api/disbursements/accountinfo'
6
7
  require 'mastercard/api/disbursements/accountmapping'
7
8
  require 'mastercard/api/disbursements/accountverification'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastercard_disbursements
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
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-05-21 00:00:00.000000000 Z
11
+ date: 2018-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mastercard_api_core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 1.4.0
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.4.0
22
+ version: 1.4.8
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 1.4.0
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.4.0
32
+ version: 1.4.8
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: ci_reporter_minitest
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -51,6 +51,7 @@ executables: []
51
51
  extensions: []
52
52
  extra_rdoc_files: []
53
53
  files:
54
+ - lib/mastercard/api/disbursements/accountbalance.rb
54
55
  - lib/mastercard/api/disbursements/accountinfo.rb
55
56
  - lib/mastercard/api/disbursements/accountmapping.rb
56
57
  - lib/mastercard/api/disbursements/accountverification.rb