mastercard_mdescustomerservice 1.0.3 → 1.0.4
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 +5 -5
 - data/lib/mastercard/api/mdescustomerservice/resourceconfig.rb +56 -50
 - data/lib/mastercard/api/mdescustomerservice/search.rb +32 -32
 - data/lib/mastercard/api/mdescustomerservice/systemstatus.rb +32 -32
 - data/lib/mastercard/api/mdescustomerservice/tokenactivate.rb +32 -32
 - data/lib/mastercard/api/mdescustomerservice/tokenactivationmethods.rb +32 -32
 - data/lib/mastercard/api/mdescustomerservice/tokencomments.rb +32 -32
 - data/lib/mastercard/api/mdescustomerservice/tokendelete.rb +32 -32
 - data/lib/mastercard/api/mdescustomerservice/tokenresendactivationcode.rb +32 -32
 - data/lib/mastercard/api/mdescustomerservice/tokenresetmobilepin.rb +32 -32
 - data/lib/mastercard/api/mdescustomerservice/tokenstatushistory.rb +32 -32
 - data/lib/mastercard/api/mdescustomerservice/tokensuspend.rb +32 -32
 - data/lib/mastercard/api/mdescustomerservice/tokenunsuspend.rb +32 -32
 - data/lib/mastercard/api/mdescustomerservice/tokenupdate.rb +32 -32
 - data/lib/mastercard/api/mdescustomerservice/transactions.rb +32 -32
 - data/lib/mastercard/api/mdescustomerservice/updatetokenassurance.rb +86 -0
 - data/lib/mastercard_mdescustomerservice.rb +1 -0
 - metadata +6 -5
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 2 
     | 
    
         
            +
            SHA256:
         
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 7a690474a79e3820ca191253ad5c1d6f5c7ce56b4bdfdb42cb7b59bed8ae2448
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 8eaa02fb94ffc8821486a2f79d0585b617a5182650041c49ee0e9fcf6ec2c0df
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 9ad5d434dd8c1948bfb1c4bdb88082ae1f4baf2dbfef8ec28a0e67424379ed8e7882641c2c0ff442212b69ed724a2cb90d246d30223df3d744a3716e02b03393
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 1bb9f3b3139eb4ac6209b88236d9b79073ab1080ae667f2b812718782edc579624158937d58cfe945a31d4b2f0e4dc6df7f4490c05cb8969c006aaf9b8d438f4
         
     | 
| 
         @@ -29,70 +29,76 @@ require "mastercard/core/constants" 
     | 
|
| 
       29 
29 
     | 
    
         
             
            require "mastercard/core/config"
         
     | 
| 
       30 
30 
     | 
    
         | 
| 
       31 
31 
     | 
    
         
             
            module MasterCard
         
     | 
| 
       32 
     | 
    
         
            -
             
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
      
 32 
     | 
    
         
            +
                module API
         
     | 
| 
      
 33 
     | 
    
         
            +
                    module MdesCustomerService
         
     | 
| 
      
 34 
     | 
    
         
            +
                        class ResourceConfig
         
     | 
| 
      
 35 
     | 
    
         
            +
                            include MasterCard::Core
         
     | 
| 
       36 
36 
     | 
    
         | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
      
 37 
     | 
    
         
            +
                            @@instance = nil
         
     | 
| 
       38 
38 
     | 
    
         | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
            					@context = nil
         
     | 
| 
       44 
     | 
    
         
            -
            					@version = "1.0.3"
         
     | 
| 
      
 39 
     | 
    
         
            +
                            def initialize
         
     | 
| 
      
 40 
     | 
    
         
            +
                                @override = nil
         
     | 
| 
      
 41 
     | 
    
         
            +
                                @host = nil
         
     | 
| 
      
 42 
     | 
    
         
            +
                                @context = nil
         
     | 
| 
       45 
43 
     | 
    
         | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
      
 44 
     | 
    
         
            +
                                Config.registerResourceConfig(self)
         
     | 
| 
      
 45 
     | 
    
         
            +
                                currentEnvironment = Config.getEnvironment()
         
     | 
| 
      
 46 
     | 
    
         
            +
                                self.setEnvironment(currentEnvironment)
         
     | 
| 
       49 
47 
     | 
    
         | 
| 
       50 
     | 
    
         
            -
             
     | 
| 
      
 48 
     | 
    
         
            +
                            end
         
     | 
| 
       51 
49 
     | 
    
         | 
| 
       52 
50 
     | 
    
         | 
| 
       53 
     | 
    
         
            -
             
     | 
| 
       54 
     | 
    
         
            -
             
     | 
| 
       55 
     | 
    
         
            -
             
     | 
| 
      
 51 
     | 
    
         
            +
                            def self.instance
         
     | 
| 
      
 52 
     | 
    
         
            +
                                return @@instance
         
     | 
| 
      
 53 
     | 
    
         
            +
                            end
         
     | 
| 
       56 
54 
     | 
    
         | 
| 
       57 
55 
     | 
    
         | 
| 
       58 
     | 
    
         
            -
             
     | 
| 
       59 
     | 
    
         
            -
             
     | 
| 
       60 
     | 
    
         
            -
             
     | 
| 
      
 56 
     | 
    
         
            +
                            def getName
         
     | 
| 
      
 57 
     | 
    
         
            +
                                return "mdes-customer-service"
         
     | 
| 
      
 58 
     | 
    
         
            +
                            end
         
     | 
| 
       61 
59 
     | 
    
         | 
| 
       62 
60 
     | 
    
         | 
| 
       63 
     | 
    
         
            -
             
     | 
| 
       64 
     | 
    
         
            -
             
     | 
| 
       65 
     | 
    
         
            -
             
     | 
| 
       66 
     | 
    
         
            -
             
     | 
| 
       67 
     | 
    
         
            -
             
     | 
| 
       68 
     | 
    
         
            -
             
     | 
| 
       69 
     | 
    
         
            -
             
     | 
| 
      
 61 
     | 
    
         
            +
                            def getHost
         
     | 
| 
      
 62 
     | 
    
         
            +
                                unless @override.nil? || @override == 0
         
     | 
| 
      
 63 
     | 
    
         
            +
                                    return @override
         
     | 
| 
      
 64 
     | 
    
         
            +
                                else
         
     | 
| 
      
 65 
     | 
    
         
            +
                                    return @host
         
     | 
| 
      
 66 
     | 
    
         
            +
                                end
         
     | 
| 
      
 67 
     | 
    
         
            +
                            end
         
     | 
| 
       70 
68 
     | 
    
         | 
| 
       71 
     | 
    
         
            -
             
     | 
| 
       72 
     | 
    
         
            -
             
     | 
| 
       73 
     | 
    
         
            -
             
     | 
| 
      
 69 
     | 
    
         
            +
                            def getContext
         
     | 
| 
      
 70 
     | 
    
         
            +
                                return @context
         
     | 
| 
      
 71 
     | 
    
         
            +
                            end
         
     | 
| 
       74 
72 
     | 
    
         | 
| 
       75 
     | 
    
         
            -
             
     | 
| 
       76 
     | 
    
         
            -
             
     | 
| 
       77 
     | 
    
         
            -
             
     | 
| 
      
 73 
     | 
    
         
            +
                            def getVersion
         
     | 
| 
      
 74 
     | 
    
         
            +
                                return "mdes-customer-service:1.0.4"
         
     | 
| 
      
 75 
     | 
    
         
            +
                            end
         
     | 
| 
       78 
76 
     | 
    
         | 
| 
       79 
     | 
    
         
            -
             
     | 
| 
       80 
     | 
    
         
            -
             
     | 
| 
       81 
     | 
    
         
            -
             
     | 
| 
       82 
     | 
    
         
            -
            						@host = tuple[0]
         
     | 
| 
       83 
     | 
    
         
            -
            						@context = tuple[1]
         
     | 
| 
       84 
     | 
    
         
            -
            					end
         
     | 
| 
       85 
     | 
    
         
            -
            				end
         
     | 
| 
      
 77 
     | 
    
         
            +
                            def getJsonNative
         
     | 
| 
      
 78 
     | 
    
         
            +
                                return false
         
     | 
| 
      
 79 
     | 
    
         
            +
                            end
         
     | 
| 
       86 
80 
     | 
    
         | 
| 
       87 
     | 
    
         
            -
             
     | 
| 
       88 
     | 
    
         
            -
             
     | 
| 
       89 
     | 
    
         
            -
             
     | 
| 
       90 
     | 
    
         
            -
            				end
         
     | 
| 
      
 81 
     | 
    
         
            +
                            def getContentTypeOverride
         
     | 
| 
      
 82 
     | 
    
         
            +
                                return nil
         
     | 
| 
      
 83 
     | 
    
         
            +
                            end
         
     | 
| 
       91 
84 
     | 
    
         | 
| 
       92 
     | 
    
         
            -
             
     | 
| 
      
 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
         
     | 
| 
       93 
92 
     | 
    
         | 
| 
       94 
     | 
    
         
            -
             
     | 
| 
       95 
     | 
    
         
            -
             
     | 
| 
       96 
     | 
    
         
            -
             
     | 
| 
       97 
     | 
    
         
            -
             
     | 
| 
      
 93 
     | 
    
         
            +
                            def setCustomEnvironment(host,context)
         
     | 
| 
      
 94 
     | 
    
         
            +
                                @host = host
         
     | 
| 
      
 95 
     | 
    
         
            +
                                @context = context
         
     | 
| 
      
 96 
     | 
    
         
            +
                            end
         
     | 
| 
      
 97 
     | 
    
         
            +
             
     | 
| 
      
 98 
     | 
    
         
            +
                            @@instance = ResourceConfig.new
         
     | 
| 
      
 99 
     | 
    
         
            +
             
     | 
| 
      
 100 
     | 
    
         
            +
                            private_class_method :new
         
     | 
| 
      
 101 
     | 
    
         
            +
                        end
         
     | 
| 
      
 102 
     | 
    
         
            +
                    end
         
     | 
| 
      
 103 
     | 
    
         
            +
                end
         
     | 
| 
       98 
104 
     | 
    
         
             
            end
         
     | 
| 
         @@ -30,42 +30,42 @@ require "mastercard/core/model" 
     | 
|
| 
       30 
30 
     | 
    
         
             
            require "mastercard/core/baseobject"
         
     | 
| 
       31 
31 
     | 
    
         | 
| 
       32 
32 
     | 
    
         
             
            module MasterCard
         
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
      
 33 
     | 
    
         
            +
                module API
         
     | 
| 
      
 34 
     | 
    
         
            +
                    module MdesCustomerService
         
     | 
| 
      
 35 
     | 
    
         
            +
                        class Search < MasterCard::Core::Model::BaseObject
         
     | 
| 
      
 36 
     | 
    
         
            +
                            include MasterCard::Core::Model
         
     | 
| 
      
 37 
     | 
    
         
            +
                            #
         
     | 
| 
       38 
38 
     | 
    
         | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
      
 39 
     | 
    
         
            +
                            @__store = {
         
     | 
| 
      
 40 
     | 
    
         
            +
                                '3835f8aa-b756-463d-aff4-9d8d6d6170ec' => OperationConfig.new("/mdes/csapi/v2/search", "create", [], []),
         
     | 
| 
      
 41 
     | 
    
         
            +
                                
         
     | 
| 
      
 42 
     | 
    
         
            +
                            }
         
     | 
| 
       43 
43 
     | 
    
         | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
      
 44 
     | 
    
         
            +
                            protected
         
     | 
| 
       45 
45 
     | 
    
         | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
             
     | 
| 
       50 
     | 
    
         
            -
             
     | 
| 
       51 
     | 
    
         
            -
             
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
       54 
     | 
    
         
            -
             
     | 
| 
       55 
     | 
    
         
            -
             
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
      
 57 
     | 
    
         
            +
                            public
         
     | 
| 
       58 
58 
     | 
    
         | 
| 
       59 
59 
     | 
    
         | 
| 
       60 
     | 
    
         
            -
             
     | 
| 
       61 
     | 
    
         
            -
             
     | 
| 
       62 
     | 
    
         
            -
             
     | 
| 
       63 
     | 
    
         
            -
             
     | 
| 
       64 
     | 
    
         
            -
             
     | 
| 
       65 
     | 
    
         
            -
             
     | 
| 
       66 
     | 
    
         
            -
             
     | 
| 
       67 
     | 
    
         
            -
             
     | 
| 
       68 
     | 
    
         
            -
             
     | 
| 
      
 60 
     | 
    
         
            +
                            def self.create(mapObj)
         
     | 
| 
      
 61 
     | 
    
         
            +
                                #
         
     | 
| 
      
 62 
     | 
    
         
            +
                                #Creates object of type Search
         
     | 
| 
      
 63 
     | 
    
         
            +
                                #
         
     | 
| 
      
 64 
     | 
    
         
            +
                                #@param Dict mapObj, containing the required parameters to create a new object
         
     | 
| 
      
 65 
     | 
    
         
            +
                                #@return [Search] of the response of created instance.
         
     | 
| 
      
 66 
     | 
    
         
            +
                                #@raise [APIException] an exception from the response status
         
     | 
| 
      
 67 
     | 
    
         
            +
                                return self.execute("3835f8aa-b756-463d-aff4-9d8d6d6170ec", Search.new(mapObj))
         
     | 
| 
      
 68 
     | 
    
         
            +
                            end
         
     | 
| 
       69 
69 
     | 
    
         | 
| 
       70 
70 
     | 
    
         | 
| 
       71 
71 
     | 
    
         | 
| 
         @@ -73,9 +73,9 @@ module MasterCard 
     | 
|
| 
       73 
73 
     | 
    
         | 
| 
       74 
74 
     | 
    
         | 
| 
       75 
75 
     | 
    
         | 
| 
       76 
     | 
    
         
            -
             
     | 
| 
       77 
     | 
    
         
            -
             
     | 
| 
       78 
     | 
    
         
            -
             
     | 
| 
      
 76 
     | 
    
         
            +
                        end
         
     | 
| 
      
 77 
     | 
    
         
            +
                    end
         
     | 
| 
      
 78 
     | 
    
         
            +
                end
         
     | 
| 
       79 
79 
     | 
    
         
             
            end
         
     | 
| 
       80 
80 
     | 
    
         | 
| 
       81 
81 
     | 
    
         | 
| 
         @@ -30,31 +30,31 @@ require "mastercard/core/model" 
     | 
|
| 
       30 
30 
     | 
    
         
             
            require "mastercard/core/baseobject"
         
     | 
| 
       31 
31 
     | 
    
         | 
| 
       32 
32 
     | 
    
         
             
            module MasterCard
         
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
      
 33 
     | 
    
         
            +
                module API
         
     | 
| 
      
 34 
     | 
    
         
            +
                    module MdesCustomerService
         
     | 
| 
      
 35 
     | 
    
         
            +
                        class SystemStatus < MasterCard::Core::Model::BaseObject
         
     | 
| 
      
 36 
     | 
    
         
            +
                            include MasterCard::Core::Model
         
     | 
| 
      
 37 
     | 
    
         
            +
                            #
         
     | 
| 
       38 
38 
     | 
    
         | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
      
 39 
     | 
    
         
            +
                            @__store = {
         
     | 
| 
      
 40 
     | 
    
         
            +
                                'a473c603-5ba0-4855-9ce5-8387fc9bfa7f' => OperationConfig.new("/mdes/csapi/v2/systemstatus", "query", [], []),
         
     | 
| 
      
 41 
     | 
    
         
            +
                                
         
     | 
| 
      
 42 
     | 
    
         
            +
                            }
         
     | 
| 
       43 
43 
     | 
    
         | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
      
 44 
     | 
    
         
            +
                            protected
         
     | 
| 
       45 
45 
     | 
    
         | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
             
     | 
| 
       50 
     | 
    
         
            -
             
     | 
| 
       51 
     | 
    
         
            -
             
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
       54 
     | 
    
         
            -
             
     | 
| 
       55 
     | 
    
         
            -
             
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
      
 57 
     | 
    
         
            +
                            public
         
     | 
| 
       58 
58 
     | 
    
         | 
| 
       59 
59 
     | 
    
         | 
| 
       60 
60 
     | 
    
         | 
| 
         @@ -62,21 +62,21 @@ module MasterCard 
     | 
|
| 
       62 
62 
     | 
    
         | 
| 
       63 
63 
     | 
    
         | 
| 
       64 
64 
     | 
    
         | 
| 
       65 
     | 
    
         
            -
             
     | 
| 
       66 
     | 
    
         
            -
             
     | 
| 
       67 
     | 
    
         
            -
             
     | 
| 
       68 
     | 
    
         
            -
             
     | 
| 
       69 
     | 
    
         
            -
             
     | 
| 
       70 
     | 
    
         
            -
             
     | 
| 
       71 
     | 
    
         
            -
             
     | 
| 
      
 65 
     | 
    
         
            +
                            def self.query(criteria)
         
     | 
| 
      
 66 
     | 
    
         
            +
                                #
         
     | 
| 
      
 67 
     | 
    
         
            +
                                #Query objects of type SystemStatus by id and optional criteria
         
     | 
| 
      
 68 
     | 
    
         
            +
                                #@param [Dict] criteria
         
     | 
| 
      
 69 
     | 
    
         
            +
                                #@return [SystemStatus] object representing the response.
         
     | 
| 
      
 70 
     | 
    
         
            +
                                #@raise [APIException] an exception from the response status
         
     | 
| 
      
 71 
     | 
    
         
            +
                                #
         
     | 
| 
       72 
72 
     | 
    
         | 
| 
       73 
     | 
    
         
            -
             
     | 
| 
       74 
     | 
    
         
            -
             
     | 
| 
      
 73 
     | 
    
         
            +
                                return self.execute("a473c603-5ba0-4855-9ce5-8387fc9bfa7f",SystemStatus.new(criteria))
         
     | 
| 
      
 74 
     | 
    
         
            +
                            end
         
     | 
| 
       75 
75 
     | 
    
         | 
| 
       76 
76 
     | 
    
         | 
| 
       77 
     | 
    
         
            -
             
     | 
| 
       78 
     | 
    
         
            -
             
     | 
| 
       79 
     | 
    
         
            -
             
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
      
 33 
     | 
    
         
            +
                module API
         
     | 
| 
      
 34 
     | 
    
         
            +
                    module MdesCustomerService
         
     | 
| 
      
 35 
     | 
    
         
            +
                        class TokenActivate < MasterCard::Core::Model::BaseObject
         
     | 
| 
      
 36 
     | 
    
         
            +
                            include MasterCard::Core::Model
         
     | 
| 
      
 37 
     | 
    
         
            +
                            #
         
     | 
| 
       38 
38 
     | 
    
         | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
      
 39 
     | 
    
         
            +
                            @__store = {
         
     | 
| 
      
 40 
     | 
    
         
            +
                                '5e92507f-9bc6-4cc3-92f5-e3d82f5c1c67' => OperationConfig.new("/mdes/csapi/v2/token/activate", "create", [], []),
         
     | 
| 
      
 41 
     | 
    
         
            +
                                
         
     | 
| 
      
 42 
     | 
    
         
            +
                            }
         
     | 
| 
       43 
43 
     | 
    
         | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
      
 44 
     | 
    
         
            +
                            protected
         
     | 
| 
       45 
45 
     | 
    
         | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
             
     | 
| 
       50 
     | 
    
         
            -
             
     | 
| 
       51 
     | 
    
         
            -
             
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
       54 
     | 
    
         
            -
             
     | 
| 
       55 
     | 
    
         
            -
             
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
      
 57 
     | 
    
         
            +
                            public
         
     | 
| 
       58 
58 
     | 
    
         | 
| 
       59 
59 
     | 
    
         | 
| 
       60 
     | 
    
         
            -
             
     | 
| 
       61 
     | 
    
         
            -
             
     | 
| 
       62 
     | 
    
         
            -
             
     | 
| 
       63 
     | 
    
         
            -
             
     | 
| 
       64 
     | 
    
         
            -
             
     | 
| 
       65 
     | 
    
         
            -
             
     | 
| 
       66 
     | 
    
         
            -
             
     | 
| 
       67 
     | 
    
         
            -
             
     | 
| 
       68 
     | 
    
         
            -
             
     | 
| 
      
 60 
     | 
    
         
            +
                            def self.create(mapObj)
         
     | 
| 
      
 61 
     | 
    
         
            +
                                #
         
     | 
| 
      
 62 
     | 
    
         
            +
                                #Creates object of type TokenActivate
         
     | 
| 
      
 63 
     | 
    
         
            +
                                #
         
     | 
| 
      
 64 
     | 
    
         
            +
                                #@param Dict mapObj, containing the required parameters to create a new object
         
     | 
| 
      
 65 
     | 
    
         
            +
                                #@return [TokenActivate] of the response of created instance.
         
     | 
| 
      
 66 
     | 
    
         
            +
                                #@raise [APIException] an exception from the response status
         
     | 
| 
      
 67 
     | 
    
         
            +
                                return self.execute("5e92507f-9bc6-4cc3-92f5-e3d82f5c1c67", TokenActivate.new(mapObj))
         
     | 
| 
      
 68 
     | 
    
         
            +
                            end
         
     | 
| 
       69 
69 
     | 
    
         | 
| 
       70 
70 
     | 
    
         | 
| 
       71 
71 
     | 
    
         | 
| 
         @@ -73,9 +73,9 @@ module MasterCard 
     | 
|
| 
       73 
73 
     | 
    
         | 
| 
       74 
74 
     | 
    
         | 
| 
       75 
75 
     | 
    
         | 
| 
       76 
     | 
    
         
            -
             
     | 
| 
       77 
     | 
    
         
            -
             
     | 
| 
       78 
     | 
    
         
            -
             
     | 
| 
      
 76 
     | 
    
         
            +
                        end
         
     | 
| 
      
 77 
     | 
    
         
            +
                    end
         
     | 
| 
      
 78 
     | 
    
         
            +
                end
         
     | 
| 
       79 
79 
     | 
    
         
             
            end
         
     | 
| 
       80 
80 
     | 
    
         | 
| 
       81 
81 
     | 
    
         | 
| 
         @@ -30,42 +30,42 @@ require "mastercard/core/model" 
     | 
|
| 
       30 
30 
     | 
    
         
             
            require "mastercard/core/baseobject"
         
     | 
| 
       31 
31 
     | 
    
         | 
| 
       32 
32 
     | 
    
         
             
            module MasterCard
         
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
             
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
             
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
      
 33 
     | 
    
         
            +
                module API
         
     | 
| 
      
 34 
     | 
    
         
            +
                    module MdesCustomerService
         
     | 
| 
      
 35 
     | 
    
         
            +
                        class TokenActivationMethods < MasterCard::Core::Model::BaseObject
         
     | 
| 
      
 36 
     | 
    
         
            +
                            include MasterCard::Core::Model
         
     | 
| 
      
 37 
     | 
    
         
            +
                            #
         
     | 
| 
       38 
38 
     | 
    
         | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
      
 39 
     | 
    
         
            +
                            @__store = {
         
     | 
| 
      
 40 
     | 
    
         
            +
                                '22111d7b-5ad6-47a0-bb54-7954052ae03b' => OperationConfig.new("/mdes/csapi/v2/token/activationmethods", "create", [], []),
         
     | 
| 
      
 41 
     | 
    
         
            +
                                
         
     | 
| 
      
 42 
     | 
    
         
            +
                            }
         
     | 
| 
       43 
43 
     | 
    
         | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
      
 44 
     | 
    
         
            +
                            protected
         
     | 
| 
       45 
45 
     | 
    
         | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
             
     | 
| 
       50 
     | 
    
         
            -
             
     | 
| 
       51 
     | 
    
         
            -
             
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
       54 
     | 
    
         
            -
             
     | 
| 
       55 
     | 
    
         
            -
             
     | 
| 
      
 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 
     | 
    
         
            -
             
     | 
| 
      
 57 
     | 
    
         
            +
                            public
         
     | 
| 
       58 
58 
     | 
    
         | 
| 
       59 
59 
     | 
    
         | 
| 
       60 
     | 
    
         
            -
             
     | 
| 
       61 
     | 
    
         
            -
             
     | 
| 
       62 
     | 
    
         
            -
             
     | 
| 
       63 
     | 
    
         
            -
             
     | 
| 
       64 
     | 
    
         
            -
             
     | 
| 
       65 
     | 
    
         
            -
             
     | 
| 
       66 
     | 
    
         
            -
             
     | 
| 
       67 
     | 
    
         
            -
             
     | 
| 
       68 
     | 
    
         
            -
             
     | 
| 
      
 60 
     | 
    
         
            +
                            def self.create(mapObj)
         
     | 
| 
      
 61 
     | 
    
         
            +
                                #
         
     | 
| 
      
 62 
     | 
    
         
            +
                                #Creates object of type TokenActivationMethods
         
     | 
| 
      
 63 
     | 
    
         
            +
                                #
         
     | 
| 
      
 64 
     | 
    
         
            +
                                #@param Dict mapObj, containing the required parameters to create a new object
         
     | 
| 
      
 65 
     | 
    
         
            +
                                #@return [TokenActivationMethods] of the response of created instance.
         
     | 
| 
      
 66 
     | 
    
         
            +
                                #@raise [APIException] an exception from the response status
         
     | 
| 
      
 67 
     | 
    
         
            +
                                return self.execute("22111d7b-5ad6-47a0-bb54-7954052ae03b", TokenActivationMethods.new(mapObj))
         
     | 
| 
      
 68 
     | 
    
         
            +
                            end
         
     | 
| 
       69 
69 
     | 
    
         | 
| 
       70 
70 
     | 
    
         | 
| 
       71 
71 
     | 
    
         | 
| 
         @@ -73,9 +73,9 @@ module MasterCard 
     | 
|
| 
       73 
73 
     | 
    
         | 
| 
       74 
74 
     | 
    
         | 
| 
       75 
75 
     | 
    
         | 
| 
       76 
     | 
    
         
            -
             
     | 
| 
       77 
     | 
    
         
            -
             
     | 
| 
       78 
     | 
    
         
            -
             
     | 
| 
      
 76 
     | 
    
         
            +
                        end
         
     | 
| 
      
 77 
     | 
    
         
            +
                    end
         
     | 
| 
      
 78 
     | 
    
         
            +
                end
         
     | 
| 
       79 
79 
     | 
    
         
             
            end
         
     | 
| 
       80 
80 
     | 
    
         | 
| 
       81 
81 
     | 
    
         |