mastercard_p2m 1.0.0 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c3b7950a14ca3e8d14d6ba66c3393a48adfc441
4
- data.tar.gz: 2f8cd135de62790a86276c86a2b164e00a2327a8
3
+ metadata.gz: 2467281e68870bb88616ad6d89c4754e2e5e3877
4
+ data.tar.gz: 53b20759b6ae27edff39f56c9062acec61e42713
5
5
  SHA512:
6
- metadata.gz: f364e37ab7fced8b6788a378e1010001e81596688c70955b8896413c81b1ddec460e20f2516b5fe22e4a7b32f4c64591329b43905aae0734c748e4d03c042662
7
- data.tar.gz: 0715f855537212d45bbdaf4e4e9f8bcecf9db7db86e312f97a7b71852c37daba71d18b51e401bd74685898f0b01907b2a392550df4f5e79ec8c36b48096b1785
6
+ metadata.gz: 61426841fe426cc32c2ffb9887821126beb2af79c250c221bf94a392e3c82cbf0f0d88a4edcdc945a2bbc9c08e87afd0517e81f7dda396fc3d4129e1a48deac8
7
+ data.tar.gz: 822b3bb58025e0e4e51ec7ebbe15ad15d66c54639e062e2d8e7de79257f047649a7f3b7431b8e712f97f24d38ac8a48770bb2144db5c38e84e3327066a6d3207
@@ -32,13 +32,13 @@ require "mastercard/core/baseobject"
32
32
  module MasterCard
33
33
  module API
34
34
  module P2m
35
- class MerchantTransfer < MasterCard::Core::Model::BaseObject
35
+ class MerchantRetrieval < MasterCard::Core::Model::BaseObject
36
36
  include MasterCard::Core::Model
37
37
  #
38
38
 
39
39
  @__store = {
40
- '3e96fa85-fb5e-46da-b145-13364df01fb3' => OperationConfig.new("/send/v1/partners/{partnerId}/merchant/transfers/{transferId}", "read", [], []),
41
- '96f05a15-22f3-43d1-9bc3-b0f8768c94f0' => OperationConfig.new("/send/v1/partners/{partnerId}/merchant/transfers", "query", [], ["ref"]),
40
+ '4d0fda90-791e-43b3-8808-4644fc489f9b' => OperationConfig.new("/send/#env/v1/partners/{partnerId}/merchant/transfers/{transferId}", "read", [], []),
41
+ '2ba0ec7b-459f-4083-8dc1-69206b07de7c' => OperationConfig.new("/send/#env/v1/partners/{partnerId}/merchant/transfers", "query", [], ["ref"]),
42
42
 
43
43
  }
44
44
 
@@ -64,13 +64,13 @@ module MasterCard
64
64
 
65
65
  def self.readByID(id, criteria = nil)
66
66
  #
67
- #Returns objects of type MerchantTransfer by id and optional criteria
67
+ #Returns objects of type MerchantRetrieval by id and optional criteria
68
68
  #@param [String] id
69
69
  #@param [Dict] criteria
70
- #@return [MerchantTransfer] object representing the response
70
+ #@return [MerchantRetrieval] object representing the response
71
71
  #@raise [APIException] an exception from the response status
72
72
 
73
- mapObj = MerchantTransfer.new
73
+ mapObj = MerchantRetrieval.new
74
74
  if !(id.nil? || id.to_s.empty?)
75
75
  mapObj.set("id", id)
76
76
  end
@@ -82,7 +82,7 @@ module MasterCard
82
82
  end
83
83
  end
84
84
 
85
- return self.execute("3e96fa85-fb5e-46da-b145-13364df01fb3",MerchantTransfer.new(mapObj))
85
+ return self.execute("4d0fda90-791e-43b3-8808-4644fc489f9b",MerchantRetrieval.new(mapObj))
86
86
  end
87
87
 
88
88
 
@@ -94,13 +94,13 @@ module MasterCard
94
94
 
95
95
  def self.readByReference(criteria)
96
96
  #
97
- #Query objects of type MerchantTransfer by id and optional criteria
97
+ #Query objects of type MerchantRetrieval by id and optional criteria
98
98
  #@param [Dict] criteria
99
- #@return [MerchantTransfer] object representing the response.
99
+ #@return [MerchantRetrieval] object representing the response.
100
100
  #@raise [APIException] an exception from the response status
101
101
  #
102
102
 
103
- return self.execute("96f05a15-22f3-43d1-9bc3-b0f8768c94f0",MerchantTransfer.new(criteria))
103
+ return self.execute("2ba0ec7b-459f-4083-8dc1-69206b07de7c",MerchantRetrieval.new(criteria))
104
104
  end
105
105
 
106
106
 
@@ -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
+ require "mastercard/core/baseobject"
31
+
32
+ module MasterCard
33
+ module API
34
+ module P2m
35
+ class MerchantTransferFundingAndPayment < MasterCard::Core::Model::BaseObject
36
+ include MasterCard::Core::Model
37
+ #
38
+
39
+ @__store = {
40
+ '1b75c4e6-e730-4d0d-bde8-ecc07f3df9a3' => OperationConfig.new("/send/#env/v1/partners/{partnerId}/merchant/transfer", "create", [], []),
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(), ResourceConfig.instance.getJsonNative())
55
+ end
56
+
57
+ public
58
+
59
+
60
+ def self.create(mapObj)
61
+ #
62
+ #Creates object of type MerchantTransferFundingAndPayment
63
+ #
64
+ #@param Dict mapObj, containing the required parameters to create a new object
65
+ #@return [MerchantTransferFundingAndPayment] of the response of created instance.
66
+ #@raise [APIException] an exception from the response status
67
+ return self.execute("1b75c4e6-e730-4d0d-bde8-ecc07f3df9a3", MerchantTransferFundingAndPayment.new(mapObj))
68
+ end
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+ end
77
+ end
78
+ end
79
+ end
80
+
81
+
82
+
83
+
84
+
85
+
86
+
@@ -32,12 +32,12 @@ require "mastercard/core/baseobject"
32
32
  module MasterCard
33
33
  module API
34
34
  module P2m
35
- class MerchantPaymentTransfer < MasterCard::Core::Model::BaseObject
35
+ class MerchantTransferPayment < MasterCard::Core::Model::BaseObject
36
36
  include MasterCard::Core::Model
37
37
  #
38
38
 
39
39
  @__store = {
40
- 'f6347707-2495-47ad-ac89-97c342dabd04' => OperationConfig.new("/send/v1/partners/{partnerId}/merchant/transfers/payment", "create", [], []),
40
+ 'b8076dab-3387-4248-9b75-f94afac020ce' => OperationConfig.new("/send/#env/v1/partners/{partnerId}/merchant/transfers/payment", "create", [], []),
41
41
 
42
42
  }
43
43
 
@@ -59,12 +59,12 @@ module MasterCard
59
59
 
60
60
  def self.create(mapObj)
61
61
  #
62
- #Creates object of type MerchantPaymentTransfer
62
+ #Creates object of type MerchantTransferPayment
63
63
  #
64
64
  #@param Dict mapObj, containing the required parameters to create a new object
65
- #@return [MerchantPaymentTransfer] of the response of created instance.
65
+ #@return [MerchantTransferPayment] of the response of created instance.
66
66
  #@raise [APIException] an exception from the response status
67
- return self.execute("f6347707-2495-47ad-ac89-97c342dabd04", MerchantPaymentTransfer.new(mapObj))
67
+ return self.execute("b8076dab-3387-4248-9b75-f94afac020ce", MerchantTransferPayment.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 = "p2m:1.0.0"
44
+ @version = "p2m:1.0.2"
45
45
  @jsonNative = true
46
46
 
47
47
  Config.registerResourceConfig(self)
@@ -2,5 +2,6 @@ require 'mastercard_api_core'
2
2
 
3
3
  require 'mastercard/api/p2m/resourceconfig'
4
4
 
5
- require 'mastercard/api/p2m/merchantpaymenttransfer'
6
- require 'mastercard/api/p2m/merchanttransfer'
5
+ require 'mastercard/api/p2m/merchantretrieval'
6
+ require 'mastercard/api/p2m/merchanttransferfundingandpayment'
7
+ require 'mastercard/api/p2m/merchanttransferpayment'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mastercard_p2m
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
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-08-16 00:00:00.000000000 Z
11
+ date: 2017-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mastercard_api_core
@@ -51,8 +51,9 @@ executables: []
51
51
  extensions: []
52
52
  extra_rdoc_files: []
53
53
  files:
54
- - lib/mastercard/api/p2m/merchantpaymenttransfer.rb
55
- - lib/mastercard/api/p2m/merchanttransfer.rb
54
+ - lib/mastercard/api/p2m/merchantretrieval.rb
55
+ - lib/mastercard/api/p2m/merchanttransferfundingandpayment.rb
56
+ - lib/mastercard/api/p2m/merchanttransferpayment.rb
56
57
  - lib/mastercard/api/p2m/resourceconfig.rb
57
58
  - lib/mastercard_p2m.rb
58
59
  homepage: https://developer.mastercard.com