mastercard_qkr 1.0.2 → 1.1.0
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 +4 -4
 - data/lib/mastercard/api/qkr/auth.rb +130 -0
 - data/lib/mastercard/api/qkr/beneficiary.rb +166 -0
 - data/lib/mastercard/api/qkr/{pospayment.rb → beneficiarycustomfield.rb} +33 -32
 - data/lib/mastercard/api/qkr/card.rb +102 -102
 - data/lib/mastercard/api/qkr/cart.rb +82 -82
 - data/lib/mastercard/api/qkr/cartitem.rb +71 -71
 - data/lib/mastercard/api/qkr/country.rb +53 -53
 - data/lib/mastercard/api/qkr/creditnote.rb +116 -0
 - data/lib/mastercard/api/qkr/externaltrans.rb +63 -63
 - data/lib/mastercard/api/qkr/forgottenpassword.rb +32 -32
 - data/lib/mastercard/api/qkr/form.rb +99 -0
 - data/lib/mastercard/api/qkr/formsubmission.rb +104 -0
 - data/lib/mastercard/api/qkr/lightbox.rb +53 -53
 - data/lib/mastercard/api/qkr/machine.rb +43 -43
 - data/lib/mastercard/api/qkr/menu.rb +32 -32
 - data/lib/mastercard/api/qkr/merchant.rb +53 -53
 - data/lib/mastercard/api/qkr/order.rb +92 -92
 - data/lib/mastercard/api/qkr/orderahead.rb +32 -32
 - data/lib/mastercard/api/qkr/orderaheadmenu.rb +32 -32
 - data/lib/mastercard/api/qkr/ordercalendar.rb +99 -0
 - data/lib/mastercard/api/qkr/orderslot.rb +32 -32
 - data/lib/mastercard/api/qkr/ordertotal.rb +32 -32
 - data/lib/mastercard/api/qkr/posorder.rb +42 -42
 - data/lib/mastercard/api/qkr/pospaymentnotification.rb +32 -32
 - data/lib/mastercard/api/qkr/prodgroup.rb +43 -43
 - data/lib/mastercard/api/qkr/refund.rb +32 -32
 - data/lib/mastercard/api/qkr/resendotp.rb +32 -32
 - data/lib/mastercard/api/qkr/resourceconfig.rb +54 -54
 - data/lib/mastercard/api/qkr/securityquestion.rb +32 -32
 - data/lib/mastercard/api/qkr/trans.rb +73 -73
 - data/lib/mastercard/api/qkr/updatepassword.rb +32 -32
 - data/lib/mastercard/api/qkr/user.rb +52 -52
 - data/lib/mastercard/api/qkr/{payment.rb → userimage.rb} +32 -32
 - data/lib/mastercard/api/qkr/usersession.rb +32 -32
 - data/lib/mastercard/api/qkr/vendingsession.rb +61 -61
 - data/lib/mastercard/api/qkr/verifyotp.rb +32 -32
 - data/lib/mastercard_qkr.rb +8 -2
 - metadata +12 -6
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 3b528260bf80e7ea9227e41326db8947fb7000d3
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 64150db7fd67d1a44e48f205c9b6e9a3fe40db0e
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 5828b3bec137b327f07b0097c1f6717655dd3061449ddf680ce5836284dbe0768105dbee5a2daae5acb8d6501611aa1c47b351b432dec55ca1c3e6606cd1d796
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 9d226f909da05c7151c9acdf431f2edff0a02cddf3068bbc05a853eac0adb753d49dc63e64d62d4e985d31dec02b2f6c0639e3e5b73a7049c8cd29fc59727640
         
     | 
| 
         @@ -0,0 +1,130 @@ 
     | 
|
| 
      
 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 Qkr
         
     | 
| 
      
 35 
     | 
    
         
            +
                        class Auth < MasterCard::Core::Model::BaseObject
         
     | 
| 
      
 36 
     | 
    
         
            +
                            include MasterCard::Core::Model
         
     | 
| 
      
 37 
     | 
    
         
            +
                            #
         
     | 
| 
      
 38 
     | 
    
         
            +
             
     | 
| 
      
 39 
     | 
    
         
            +
                            @__store = {
         
     | 
| 
      
 40 
     | 
    
         
            +
                                'f70ce1c9-835a-426a-99ec-59be4a16d8fc' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/auth/payment", "create", ["X-Auth-Token"], []),
         
     | 
| 
      
 41 
     | 
    
         
            +
                                'ad0c185b-ae9b-443c-b73d-57793fbda09d' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/auth/payment/{id}", "delete", ["X-Auth-Token"], []),
         
     | 
| 
      
 42 
     | 
    
         
            +
                                
         
     | 
| 
      
 43 
     | 
    
         
            +
                            }
         
     | 
| 
      
 44 
     | 
    
         
            +
             
     | 
| 
      
 45 
     | 
    
         
            +
                            protected
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
      
 47 
     | 
    
         
            +
                            def self.getOperationConfig(operationUUID)
         
     | 
| 
      
 48 
     | 
    
         
            +
                                if @__store.key?(operationUUID)
         
     | 
| 
      
 49 
     | 
    
         
            +
                                    return @__store[operationUUID]
         
     | 
| 
      
 50 
     | 
    
         
            +
                                end
         
     | 
| 
      
 51 
     | 
    
         
            +
                                raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
         
     | 
| 
      
 52 
     | 
    
         
            +
                            end
         
     | 
| 
      
 53 
     | 
    
         
            +
             
     | 
| 
      
 54 
     | 
    
         
            +
                            def self.getOperationMetadata()
         
     | 
| 
      
 55 
     | 
    
         
            +
                                return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
         
     | 
| 
      
 56 
     | 
    
         
            +
                            end
         
     | 
| 
      
 57 
     | 
    
         
            +
             
     | 
| 
      
 58 
     | 
    
         
            +
                            public
         
     | 
| 
      
 59 
     | 
    
         
            +
             
     | 
| 
      
 60 
     | 
    
         
            +
             
     | 
| 
      
 61 
     | 
    
         
            +
                            def self.create(mapObj)
         
     | 
| 
      
 62 
     | 
    
         
            +
                                #
         
     | 
| 
      
 63 
     | 
    
         
            +
                                #Creates object of type Auth
         
     | 
| 
      
 64 
     | 
    
         
            +
                                #
         
     | 
| 
      
 65 
     | 
    
         
            +
                                #@param Dict mapObj, containing the required parameters to create a new object
         
     | 
| 
      
 66 
     | 
    
         
            +
                                #@return [Auth] of the response of created instance.
         
     | 
| 
      
 67 
     | 
    
         
            +
                                #@raise [APIException] an exception from the response status
         
     | 
| 
      
 68 
     | 
    
         
            +
                                return self.execute("f70ce1c9-835a-426a-99ec-59be4a16d8fc", Auth.new(mapObj))
         
     | 
| 
      
 69 
     | 
    
         
            +
                            end
         
     | 
| 
      
 70 
     | 
    
         
            +
             
     | 
| 
      
 71 
     | 
    
         
            +
             
     | 
| 
      
 72 
     | 
    
         
            +
             
     | 
| 
      
 73 
     | 
    
         
            +
             
     | 
| 
      
 74 
     | 
    
         
            +
             
     | 
| 
      
 75 
     | 
    
         
            +
             
     | 
| 
      
 76 
     | 
    
         
            +
             
     | 
| 
      
 77 
     | 
    
         
            +
             
     | 
| 
      
 78 
     | 
    
         
            +
             
     | 
| 
      
 79 
     | 
    
         
            +
             
     | 
| 
      
 80 
     | 
    
         
            +
                            def self.deleteById(id, map = nil)
         
     | 
| 
      
 81 
     | 
    
         
            +
                                #Delete object of type Auth by id
         
     | 
| 
      
 82 
     | 
    
         
            +
             
     | 
| 
      
 83 
     | 
    
         
            +
                                #@param [String] id
         
     | 
| 
      
 84 
     | 
    
         
            +
                                #@param [Dict] map, containing additional parameters
         
     | 
| 
      
 85 
     | 
    
         
            +
                                #@return [Auth] of the response of the deleted instance.
         
     | 
| 
      
 86 
     | 
    
         
            +
                                #@raise [APIException] an exception from the response status
         
     | 
| 
      
 87 
     | 
    
         
            +
             
     | 
| 
      
 88 
     | 
    
         
            +
             
     | 
| 
      
 89 
     | 
    
         
            +
                                mapObj = Auth.new
         
     | 
| 
      
 90 
     | 
    
         
            +
                                if !(id.nil? || id.to_s.empty?)
         
     | 
| 
      
 91 
     | 
    
         
            +
                                  mapObj.set("id", id)
         
     | 
| 
      
 92 
     | 
    
         
            +
                                end
         
     | 
| 
      
 93 
     | 
    
         
            +
                                if !map.nil?
         
     | 
| 
      
 94 
     | 
    
         
            +
                                    if map.instance_of? RequestMap
         
     | 
| 
      
 95 
     | 
    
         
            +
                                      mapObj.setAll(map.getObject())
         
     | 
| 
      
 96 
     | 
    
         
            +
                                    else
         
     | 
| 
      
 97 
     | 
    
         
            +
                                      mapObj.setAll(map)
         
     | 
| 
      
 98 
     | 
    
         
            +
                                    end
         
     | 
| 
      
 99 
     | 
    
         
            +
                                end
         
     | 
| 
      
 100 
     | 
    
         
            +
             
     | 
| 
      
 101 
     | 
    
         
            +
                                return self.execute("ad0c185b-ae9b-443c-b73d-57793fbda09d", mapObj)
         
     | 
| 
      
 102 
     | 
    
         
            +
                            end
         
     | 
| 
      
 103 
     | 
    
         
            +
             
     | 
| 
      
 104 
     | 
    
         
            +
             
     | 
| 
      
 105 
     | 
    
         
            +
                            def delete
         
     | 
| 
      
 106 
     | 
    
         
            +
                                #
         
     | 
| 
      
 107 
     | 
    
         
            +
                                #Delete object of type Auth
         
     | 
| 
      
 108 
     | 
    
         
            +
             
     | 
| 
      
 109 
     | 
    
         
            +
                                #@param [String] id
         
     | 
| 
      
 110 
     | 
    
         
            +
                                #@return [Auth] of the response of the deleted instance.
         
     | 
| 
      
 111 
     | 
    
         
            +
                                #@raise [APIException] an exception from the response status
         
     | 
| 
      
 112 
     | 
    
         
            +
                                #
         
     | 
| 
      
 113 
     | 
    
         
            +
             
     | 
| 
      
 114 
     | 
    
         
            +
                                return self.class.execute("ad0c185b-ae9b-443c-b73d-57793fbda09d", self)
         
     | 
| 
      
 115 
     | 
    
         
            +
                            end
         
     | 
| 
      
 116 
     | 
    
         
            +
             
     | 
| 
      
 117 
     | 
    
         
            +
             
     | 
| 
      
 118 
     | 
    
         
            +
             
     | 
| 
      
 119 
     | 
    
         
            +
             
     | 
| 
      
 120 
     | 
    
         
            +
                        end
         
     | 
| 
      
 121 
     | 
    
         
            +
                    end
         
     | 
| 
      
 122 
     | 
    
         
            +
                end
         
     | 
| 
      
 123 
     | 
    
         
            +
            end
         
     | 
| 
      
 124 
     | 
    
         
            +
             
     | 
| 
      
 125 
     | 
    
         
            +
             
     | 
| 
      
 126 
     | 
    
         
            +
             
     | 
| 
      
 127 
     | 
    
         
            +
             
     | 
| 
      
 128 
     | 
    
         
            +
             
     | 
| 
      
 129 
     | 
    
         
            +
             
     | 
| 
      
 130 
     | 
    
         
            +
             
     | 
| 
         @@ -0,0 +1,166 @@ 
     | 
|
| 
      
 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 Qkr
         
     | 
| 
      
 35 
     | 
    
         
            +
                        class Beneficiary < MasterCard::Core::Model::BaseObject
         
     | 
| 
      
 36 
     | 
    
         
            +
                            include MasterCard::Core::Model
         
     | 
| 
      
 37 
     | 
    
         
            +
                            #
         
     | 
| 
      
 38 
     | 
    
         
            +
             
     | 
| 
      
 39 
     | 
    
         
            +
                            @__store = {
         
     | 
| 
      
 40 
     | 
    
         
            +
                                '9160dafb-93cb-4dce-bcfa-7066ecf3892e' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/beneficiary", "create", ["X-Auth-Token"], []),
         
     | 
| 
      
 41 
     | 
    
         
            +
                                'fbb21e7c-37b2-4836-b415-37392fa96ecf' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/beneficiary/{id}", "delete", ["X-Auth-Token"], []),
         
     | 
| 
      
 42 
     | 
    
         
            +
                                'f617e14a-f2b9-450c-9db0-8a84bfca013e' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/beneficiary", "query", ["X-Auth-Token"], ["merchantId"]),
         
     | 
| 
      
 43 
     | 
    
         
            +
                                '1f2d3f55-0e51-40aa-ba28-7ac112437f13' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/beneficiary/{id}", "update", ["X-Auth-Token"], []),
         
     | 
| 
      
 44 
     | 
    
         
            +
                                
         
     | 
| 
      
 45 
     | 
    
         
            +
                            }
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
      
 47 
     | 
    
         
            +
                            protected
         
     | 
| 
      
 48 
     | 
    
         
            +
             
     | 
| 
      
 49 
     | 
    
         
            +
                            def self.getOperationConfig(operationUUID)
         
     | 
| 
      
 50 
     | 
    
         
            +
                                if @__store.key?(operationUUID)
         
     | 
| 
      
 51 
     | 
    
         
            +
                                    return @__store[operationUUID]
         
     | 
| 
      
 52 
     | 
    
         
            +
                                end
         
     | 
| 
      
 53 
     | 
    
         
            +
                                raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
         
     | 
| 
      
 54 
     | 
    
         
            +
                            end
         
     | 
| 
      
 55 
     | 
    
         
            +
             
     | 
| 
      
 56 
     | 
    
         
            +
                            def self.getOperationMetadata()
         
     | 
| 
      
 57 
     | 
    
         
            +
                                return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
         
     | 
| 
      
 58 
     | 
    
         
            +
                            end
         
     | 
| 
      
 59 
     | 
    
         
            +
             
     | 
| 
      
 60 
     | 
    
         
            +
                            public
         
     | 
| 
      
 61 
     | 
    
         
            +
             
     | 
| 
      
 62 
     | 
    
         
            +
             
     | 
| 
      
 63 
     | 
    
         
            +
                            def self.create(mapObj)
         
     | 
| 
      
 64 
     | 
    
         
            +
                                #
         
     | 
| 
      
 65 
     | 
    
         
            +
                                #Creates object of type Beneficiary
         
     | 
| 
      
 66 
     | 
    
         
            +
                                #
         
     | 
| 
      
 67 
     | 
    
         
            +
                                #@param Dict mapObj, containing the required parameters to create a new object
         
     | 
| 
      
 68 
     | 
    
         
            +
                                #@return [Beneficiary] of the response of created instance.
         
     | 
| 
      
 69 
     | 
    
         
            +
                                #@raise [APIException] an exception from the response status
         
     | 
| 
      
 70 
     | 
    
         
            +
                                return self.execute("9160dafb-93cb-4dce-bcfa-7066ecf3892e", Beneficiary.new(mapObj))
         
     | 
| 
      
 71 
     | 
    
         
            +
                            end
         
     | 
| 
      
 72 
     | 
    
         
            +
             
     | 
| 
      
 73 
     | 
    
         
            +
             
     | 
| 
      
 74 
     | 
    
         
            +
             
     | 
| 
      
 75 
     | 
    
         
            +
             
     | 
| 
      
 76 
     | 
    
         
            +
             
     | 
| 
      
 77 
     | 
    
         
            +
             
     | 
| 
      
 78 
     | 
    
         
            +
             
     | 
| 
      
 79 
     | 
    
         
            +
             
     | 
| 
      
 80 
     | 
    
         
            +
             
     | 
| 
      
 81 
     | 
    
         
            +
             
     | 
| 
      
 82 
     | 
    
         
            +
                            def self.deleteById(id, map = nil)
         
     | 
| 
      
 83 
     | 
    
         
            +
                                #Delete object of type Beneficiary by id
         
     | 
| 
      
 84 
     | 
    
         
            +
             
     | 
| 
      
 85 
     | 
    
         
            +
                                #@param [String] id
         
     | 
| 
      
 86 
     | 
    
         
            +
                                #@param [Dict] map, containing additional parameters
         
     | 
| 
      
 87 
     | 
    
         
            +
                                #@return [Beneficiary] of the response of the deleted instance.
         
     | 
| 
      
 88 
     | 
    
         
            +
                                #@raise [APIException] an exception from the response status
         
     | 
| 
      
 89 
     | 
    
         
            +
             
     | 
| 
      
 90 
     | 
    
         
            +
             
     | 
| 
      
 91 
     | 
    
         
            +
                                mapObj = Beneficiary.new
         
     | 
| 
      
 92 
     | 
    
         
            +
                                if !(id.nil? || id.to_s.empty?)
         
     | 
| 
      
 93 
     | 
    
         
            +
                                  mapObj.set("id", id)
         
     | 
| 
      
 94 
     | 
    
         
            +
                                end
         
     | 
| 
      
 95 
     | 
    
         
            +
                                if !map.nil?
         
     | 
| 
      
 96 
     | 
    
         
            +
                                    if map.instance_of? RequestMap
         
     | 
| 
      
 97 
     | 
    
         
            +
                                      mapObj.setAll(map.getObject())
         
     | 
| 
      
 98 
     | 
    
         
            +
                                    else
         
     | 
| 
      
 99 
     | 
    
         
            +
                                      mapObj.setAll(map)
         
     | 
| 
      
 100 
     | 
    
         
            +
                                    end
         
     | 
| 
      
 101 
     | 
    
         
            +
                                end
         
     | 
| 
      
 102 
     | 
    
         
            +
             
     | 
| 
      
 103 
     | 
    
         
            +
                                return self.execute("fbb21e7c-37b2-4836-b415-37392fa96ecf", mapObj)
         
     | 
| 
      
 104 
     | 
    
         
            +
                            end
         
     | 
| 
      
 105 
     | 
    
         
            +
             
     | 
| 
      
 106 
     | 
    
         
            +
             
     | 
| 
      
 107 
     | 
    
         
            +
                            def delete
         
     | 
| 
      
 108 
     | 
    
         
            +
                                #
         
     | 
| 
      
 109 
     | 
    
         
            +
                                #Delete object of type Beneficiary
         
     | 
| 
      
 110 
     | 
    
         
            +
             
     | 
| 
      
 111 
     | 
    
         
            +
                                #@param [String] id
         
     | 
| 
      
 112 
     | 
    
         
            +
                                #@return [Beneficiary] of the response of the deleted instance.
         
     | 
| 
      
 113 
     | 
    
         
            +
                                #@raise [APIException] an exception from the response status
         
     | 
| 
      
 114 
     | 
    
         
            +
                                #
         
     | 
| 
      
 115 
     | 
    
         
            +
             
     | 
| 
      
 116 
     | 
    
         
            +
                                return self.class.execute("fbb21e7c-37b2-4836-b415-37392fa96ecf", self)
         
     | 
| 
      
 117 
     | 
    
         
            +
                            end
         
     | 
| 
      
 118 
     | 
    
         
            +
             
     | 
| 
      
 119 
     | 
    
         
            +
             
     | 
| 
      
 120 
     | 
    
         
            +
             
     | 
| 
      
 121 
     | 
    
         
            +
             
     | 
| 
      
 122 
     | 
    
         
            +
             
     | 
| 
      
 123 
     | 
    
         
            +
             
     | 
| 
      
 124 
     | 
    
         
            +
             
     | 
| 
      
 125 
     | 
    
         
            +
             
     | 
| 
      
 126 
     | 
    
         
            +
             
     | 
| 
      
 127 
     | 
    
         
            +
                            def self.query(criteria)
         
     | 
| 
      
 128 
     | 
    
         
            +
                                #
         
     | 
| 
      
 129 
     | 
    
         
            +
                                #Query objects of type Beneficiary by id and optional criteria
         
     | 
| 
      
 130 
     | 
    
         
            +
                                #@param [Dict] criteria
         
     | 
| 
      
 131 
     | 
    
         
            +
                                #@return [Beneficiary] object representing the response.
         
     | 
| 
      
 132 
     | 
    
         
            +
                                #@raise [APIException] an exception from the response status
         
     | 
| 
      
 133 
     | 
    
         
            +
                                #
         
     | 
| 
      
 134 
     | 
    
         
            +
             
     | 
| 
      
 135 
     | 
    
         
            +
                                return self.execute("f617e14a-f2b9-450c-9db0-8a84bfca013e",Beneficiary.new(criteria))
         
     | 
| 
      
 136 
     | 
    
         
            +
                            end
         
     | 
| 
      
 137 
     | 
    
         
            +
             
     | 
| 
      
 138 
     | 
    
         
            +
             
     | 
| 
      
 139 
     | 
    
         
            +
             
     | 
| 
      
 140 
     | 
    
         
            +
                            def update
         
     | 
| 
      
 141 
     | 
    
         
            +
                                #
         
     | 
| 
      
 142 
     | 
    
         
            +
                                #Updates an object of type Beneficiary
         
     | 
| 
      
 143 
     | 
    
         
            +
                                #
         
     | 
| 
      
 144 
     | 
    
         
            +
                                #@return [Beneficiary] object representing the response.
         
     | 
| 
      
 145 
     | 
    
         
            +
                                #@raise [APIException] an exception from the response status
         
     | 
| 
      
 146 
     | 
    
         
            +
                                #
         
     | 
| 
      
 147 
     | 
    
         
            +
                                return self.class.execute("1f2d3f55-0e51-40aa-ba28-7ac112437f13",self)
         
     | 
| 
      
 148 
     | 
    
         
            +
                            end
         
     | 
| 
      
 149 
     | 
    
         
            +
             
     | 
| 
      
 150 
     | 
    
         
            +
             
     | 
| 
      
 151 
     | 
    
         
            +
             
     | 
| 
      
 152 
     | 
    
         
            +
             
     | 
| 
      
 153 
     | 
    
         
            +
             
     | 
| 
      
 154 
     | 
    
         
            +
             
     | 
| 
      
 155 
     | 
    
         
            +
             
     | 
| 
      
 156 
     | 
    
         
            +
                        end
         
     | 
| 
      
 157 
     | 
    
         
            +
                    end
         
     | 
| 
      
 158 
     | 
    
         
            +
                end
         
     | 
| 
      
 159 
     | 
    
         
            +
            end
         
     | 
| 
      
 160 
     | 
    
         
            +
             
     | 
| 
      
 161 
     | 
    
         
            +
             
     | 
| 
      
 162 
     | 
    
         
            +
             
     | 
| 
      
 163 
     | 
    
         
            +
             
     | 
| 
      
 164 
     | 
    
         
            +
             
     | 
| 
      
 165 
     | 
    
         
            +
             
     | 
| 
      
 166 
     | 
    
         
            +
             
     | 
| 
         @@ -30,52 +30,53 @@ 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 Qkr
         
     | 
| 
      
 35 
     | 
    
         
            +
                        class BeneficiaryCustomField < MasterCard::Core::Model::BaseObject
         
     | 
| 
      
 36 
     | 
    
         
            +
                            include MasterCard::Core::Model
         
     | 
| 
      
 37 
     | 
    
         
            +
                            #
         
     | 
| 
       38 
38 
     | 
    
         | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
      
 39 
     | 
    
         
            +
                            @__store = {
         
     | 
| 
      
 40 
     | 
    
         
            +
                                '81a61b76-cc64-43e6-b990-8dfe1d0ac75a' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/beneficiaryCustomField", "query", ["X-Auth-Token"], ["merchantId"]),
         
     | 
| 
      
 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 
     | 
    
         
            -
            				def self.create(mapObj)
         
     | 
| 
       61 
     | 
    
         
            -
            					#
         
     | 
| 
       62 
     | 
    
         
            -
            					#Creates object of type PosPayment
         
     | 
| 
       63 
     | 
    
         
            -
            					#
         
     | 
| 
       64 
     | 
    
         
            -
            					#@param Dict mapObj, containing the required parameters to create a new object
         
     | 
| 
       65 
     | 
    
         
            -
            					#@return [PosPayment] of the response of created instance.
         
     | 
| 
       66 
     | 
    
         
            -
            					#@raise [APIException] an exception from the response status
         
     | 
| 
       67 
     | 
    
         
            -
            					return self.execute("bc223b24-71f5-4856-9691-dbfc0683ea52", PosPayment.new(mapObj))
         
     | 
| 
       68 
     | 
    
         
            -
            				end
         
     | 
| 
       69 
60 
     | 
    
         | 
| 
       70 
61 
     | 
    
         | 
| 
       71 
62 
     | 
    
         | 
| 
       72 
63 
     | 
    
         | 
| 
       73 
64 
     | 
    
         | 
| 
      
 65 
     | 
    
         
            +
                            def self.query(criteria)
         
     | 
| 
      
 66 
     | 
    
         
            +
                                #
         
     | 
| 
      
 67 
     | 
    
         
            +
                                #Query objects of type BeneficiaryCustomField by id and optional criteria
         
     | 
| 
      
 68 
     | 
    
         
            +
                                #@param [Dict] criteria
         
     | 
| 
      
 69 
     | 
    
         
            +
                                #@return [BeneficiaryCustomField] object representing the response.
         
     | 
| 
      
 70 
     | 
    
         
            +
                                #@raise [APIException] an exception from the response status
         
     | 
| 
      
 71 
     | 
    
         
            +
                                #
         
     | 
| 
       74 
72 
     | 
    
         | 
| 
      
 73 
     | 
    
         
            +
                                return self.execute("81a61b76-cc64-43e6-b990-8dfe1d0ac75a",BeneficiaryCustomField.new(criteria))
         
     | 
| 
      
 74 
     | 
    
         
            +
                            end
         
     | 
| 
       75 
75 
     | 
    
         | 
| 
       76 
     | 
    
         
            -
             
     | 
| 
       77 
     | 
    
         
            -
             
     | 
| 
       78 
     | 
    
         
            -
             
     | 
| 
      
 76 
     | 
    
         
            +
             
     | 
| 
      
 77 
     | 
    
         
            +
                        end
         
     | 
| 
      
 78 
     | 
    
         
            +
                    end
         
     | 
| 
      
 79 
     | 
    
         
            +
                end
         
     | 
| 
       79 
80 
     | 
    
         
             
            end
         
     | 
| 
       80 
81 
     | 
    
         | 
| 
       81 
82 
     | 
    
         | 
| 
         @@ -30,46 +30,46 @@ 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 Qkr
         
     | 
| 
      
 35 
     | 
    
         
            +
                        class Card < MasterCard::Core::Model::BaseObject
         
     | 
| 
      
 36 
     | 
    
         
            +
                            include MasterCard::Core::Model
         
     | 
| 
      
 37 
     | 
    
         
            +
                            #
         
     | 
| 
       38 
38 
     | 
    
         | 
| 
       39 
     | 
    
         
            -
             
     | 
| 
       40 
     | 
    
         
            -
             
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
             
     | 
| 
       43 
     | 
    
         
            -
             
     | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
       45 
     | 
    
         
            -
             
     | 
| 
       46 
     | 
    
         
            -
             
     | 
| 
      
 39 
     | 
    
         
            +
                            @__store = {
         
     | 
| 
      
 40 
     | 
    
         
            +
                                '6685a579-5bd9-4ae1-a259-36cc814ef154' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card", "create", ["X-Auth-Token"], []),
         
     | 
| 
      
 41 
     | 
    
         
            +
                                '7dc1d320-fa8b-4425-afad-86e7559ec538' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card/{id}", "delete", ["X-Auth-Token"], []),
         
     | 
| 
      
 42 
     | 
    
         
            +
                                '460e4251-e676-4bac-9733-9e4e8d4aba3c' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card", "query", ["X-Auth-Token"], []),
         
     | 
| 
      
 43 
     | 
    
         
            +
                                '208d005b-b2ed-4458-a9f0-0d7d267d7517' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card/{id}", "read", ["X-Auth-Token"], []),
         
     | 
| 
      
 44 
     | 
    
         
            +
                                '33fb62f9-b31e-4a54-8f43-454c21a34a50' => OperationConfig.new("/labs/proxy/qkr2/internal/api2/card/{id}", "update", ["X-Auth-Token"], []),
         
     | 
| 
      
 45 
     | 
    
         
            +
                                
         
     | 
| 
      
 46 
     | 
    
         
            +
                            }
         
     | 
| 
       47 
47 
     | 
    
         | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
      
 48 
     | 
    
         
            +
                            protected
         
     | 
| 
       49 
49 
     | 
    
         | 
| 
       50 
     | 
    
         
            -
             
     | 
| 
       51 
     | 
    
         
            -
             
     | 
| 
       52 
     | 
    
         
            -
             
     | 
| 
       53 
     | 
    
         
            -
             
     | 
| 
       54 
     | 
    
         
            -
             
     | 
| 
       55 
     | 
    
         
            -
             
     | 
| 
      
 50 
     | 
    
         
            +
                            def self.getOperationConfig(operationUUID)
         
     | 
| 
      
 51 
     | 
    
         
            +
                                if @__store.key?(operationUUID)
         
     | 
| 
      
 52 
     | 
    
         
            +
                                    return @__store[operationUUID]
         
     | 
| 
      
 53 
     | 
    
         
            +
                                end
         
     | 
| 
      
 54 
     | 
    
         
            +
                                raise NotImplementedError.new("Invalid operationUUID supplied:"+ operationUUID)
         
     | 
| 
      
 55 
     | 
    
         
            +
                            end
         
     | 
| 
       56 
56 
     | 
    
         | 
| 
       57 
     | 
    
         
            -
             
     | 
| 
       58 
     | 
    
         
            -
             
     | 
| 
       59 
     | 
    
         
            -
             
     | 
| 
      
 57 
     | 
    
         
            +
                            def self.getOperationMetadata()
         
     | 
| 
      
 58 
     | 
    
         
            +
                                return OperationMetadata.new(ResourceConfig.instance.getVersion(), ResourceConfig.instance.getHost(), ResourceConfig.instance.getContext(), ResourceConfig.instance.getJsonNative(), ResourceConfig.instance.getContentTypeOverride())
         
     | 
| 
      
 59 
     | 
    
         
            +
                            end
         
     | 
| 
       60 
60 
     | 
    
         | 
| 
       61 
     | 
    
         
            -
             
     | 
| 
      
 61 
     | 
    
         
            +
                            public
         
     | 
| 
       62 
62 
     | 
    
         | 
| 
       63 
63 
     | 
    
         | 
| 
       64 
     | 
    
         
            -
             
     | 
| 
       65 
     | 
    
         
            -
             
     | 
| 
       66 
     | 
    
         
            -
             
     | 
| 
       67 
     | 
    
         
            -
             
     | 
| 
       68 
     | 
    
         
            -
             
     | 
| 
       69 
     | 
    
         
            -
             
     | 
| 
       70 
     | 
    
         
            -
             
     | 
| 
       71 
     | 
    
         
            -
             
     | 
| 
       72 
     | 
    
         
            -
             
     | 
| 
      
 64 
     | 
    
         
            +
                            def self.create(mapObj)
         
     | 
| 
      
 65 
     | 
    
         
            +
                                #
         
     | 
| 
      
 66 
     | 
    
         
            +
                                #Creates object of type Card
         
     | 
| 
      
 67 
     | 
    
         
            +
                                #
         
     | 
| 
      
 68 
     | 
    
         
            +
                                #@param Dict mapObj, containing the required parameters to create a new object
         
     | 
| 
      
 69 
     | 
    
         
            +
                                #@return [Card] of the response of created instance.
         
     | 
| 
      
 70 
     | 
    
         
            +
                                #@raise [APIException] an exception from the response status
         
     | 
| 
      
 71 
     | 
    
         
            +
                                return self.execute("6685a579-5bd9-4ae1-a259-36cc814ef154", Card.new(mapObj))
         
     | 
| 
      
 72 
     | 
    
         
            +
                            end
         
     | 
| 
       73 
73 
     | 
    
         | 
| 
       74 
74 
     | 
    
         | 
| 
       75 
75 
     | 
    
         | 
| 
         @@ -80,42 +80,42 @@ module MasterCard 
     | 
|
| 
       80 
80 
     | 
    
         | 
| 
       81 
81 
     | 
    
         | 
| 
       82 
82 
     | 
    
         | 
| 
       83 
     | 
    
         
            -
             
     | 
| 
       84 
     | 
    
         
            -
             
     | 
| 
      
 83 
     | 
    
         
            +
                            def self.deleteById(id, map = nil)
         
     | 
| 
      
 84 
     | 
    
         
            +
                                #Delete object of type Card by id
         
     | 
| 
       85 
85 
     | 
    
         | 
| 
       86 
     | 
    
         
            -
             
     | 
| 
       87 
     | 
    
         
            -
             
     | 
| 
       88 
     | 
    
         
            -
             
     | 
| 
       89 
     | 
    
         
            -
             
     | 
| 
      
 86 
     | 
    
         
            +
                                #@param [String] id
         
     | 
| 
      
 87 
     | 
    
         
            +
                                #@param [Dict] map, containing additional parameters
         
     | 
| 
      
 88 
     | 
    
         
            +
                                #@return [Card] of the response of the deleted instance.
         
     | 
| 
      
 89 
     | 
    
         
            +
                                #@raise [APIException] an exception from the response status
         
     | 
| 
       90 
90 
     | 
    
         | 
| 
       91 
91 
     | 
    
         | 
| 
       92 
     | 
    
         
            -
             
     | 
| 
       93 
     | 
    
         
            -
             
     | 
| 
       94 
     | 
    
         
            -
             
     | 
| 
       95 
     | 
    
         
            -
             
     | 
| 
       96 
     | 
    
         
            -
             
     | 
| 
       97 
     | 
    
         
            -
             
     | 
| 
       98 
     | 
    
         
            -
             
     | 
| 
       99 
     | 
    
         
            -
             
     | 
| 
       100 
     | 
    
         
            -
             
     | 
| 
       101 
     | 
    
         
            -
             
     | 
| 
       102 
     | 
    
         
            -
             
     | 
| 
      
 92 
     | 
    
         
            +
                                mapObj = Card.new
         
     | 
| 
      
 93 
     | 
    
         
            +
                                if !(id.nil? || id.to_s.empty?)
         
     | 
| 
      
 94 
     | 
    
         
            +
                                  mapObj.set("id", id)
         
     | 
| 
      
 95 
     | 
    
         
            +
                                end
         
     | 
| 
      
 96 
     | 
    
         
            +
                                if !map.nil?
         
     | 
| 
      
 97 
     | 
    
         
            +
                                    if map.instance_of? RequestMap
         
     | 
| 
      
 98 
     | 
    
         
            +
                                      mapObj.setAll(map.getObject())
         
     | 
| 
      
 99 
     | 
    
         
            +
                                    else
         
     | 
| 
      
 100 
     | 
    
         
            +
                                      mapObj.setAll(map)
         
     | 
| 
      
 101 
     | 
    
         
            +
                                    end
         
     | 
| 
      
 102 
     | 
    
         
            +
                                end
         
     | 
| 
       103 
103 
     | 
    
         | 
| 
       104 
     | 
    
         
            -
             
     | 
| 
       105 
     | 
    
         
            -
             
     | 
| 
      
 104 
     | 
    
         
            +
                                return self.execute("7dc1d320-fa8b-4425-afad-86e7559ec538", mapObj)
         
     | 
| 
      
 105 
     | 
    
         
            +
                            end
         
     | 
| 
       106 
106 
     | 
    
         | 
| 
       107 
107 
     | 
    
         | 
| 
       108 
     | 
    
         
            -
             
     | 
| 
       109 
     | 
    
         
            -
             
     | 
| 
       110 
     | 
    
         
            -
             
     | 
| 
      
 108 
     | 
    
         
            +
                            def delete
         
     | 
| 
      
 109 
     | 
    
         
            +
                                #
         
     | 
| 
      
 110 
     | 
    
         
            +
                                #Delete object of type Card
         
     | 
| 
       111 
111 
     | 
    
         | 
| 
       112 
     | 
    
         
            -
             
     | 
| 
       113 
     | 
    
         
            -
             
     | 
| 
       114 
     | 
    
         
            -
             
     | 
| 
       115 
     | 
    
         
            -
             
     | 
| 
      
 112 
     | 
    
         
            +
                                #@param [String] id
         
     | 
| 
      
 113 
     | 
    
         
            +
                                #@return [Card] of the response of the deleted instance.
         
     | 
| 
      
 114 
     | 
    
         
            +
                                #@raise [APIException] an exception from the response status
         
     | 
| 
      
 115 
     | 
    
         
            +
                                #
         
     | 
| 
       116 
116 
     | 
    
         | 
| 
       117 
     | 
    
         
            -
             
     | 
| 
       118 
     | 
    
         
            -
             
     | 
| 
      
 117 
     | 
    
         
            +
                                return self.class.execute("7dc1d320-fa8b-4425-afad-86e7559ec538", self)
         
     | 
| 
      
 118 
     | 
    
         
            +
                            end
         
     | 
| 
       119 
119 
     | 
    
         | 
| 
       120 
120 
     | 
    
         | 
| 
       121 
121 
     | 
    
         | 
| 
         @@ -125,57 +125,57 @@ module MasterCard 
     | 
|
| 
       125 
125 
     | 
    
         | 
| 
       126 
126 
     | 
    
         | 
| 
       127 
127 
     | 
    
         | 
| 
       128 
     | 
    
         
            -
             
     | 
| 
       129 
     | 
    
         
            -
             
     | 
| 
       130 
     | 
    
         
            -
             
     | 
| 
       131 
     | 
    
         
            -
             
     | 
| 
       132 
     | 
    
         
            -
             
     | 
| 
       133 
     | 
    
         
            -
             
     | 
| 
       134 
     | 
    
         
            -
             
     | 
| 
      
 128 
     | 
    
         
            +
                            def self.query(criteria)
         
     | 
| 
      
 129 
     | 
    
         
            +
                                #
         
     | 
| 
      
 130 
     | 
    
         
            +
                                #Query objects of type Card by id and optional criteria
         
     | 
| 
      
 131 
     | 
    
         
            +
                                #@param [Dict] criteria
         
     | 
| 
      
 132 
     | 
    
         
            +
                                #@return [Card] object representing the response.
         
     | 
| 
      
 133 
     | 
    
         
            +
                                #@raise [APIException] an exception from the response status
         
     | 
| 
      
 134 
     | 
    
         
            +
                                #
         
     | 
| 
       135 
135 
     | 
    
         | 
| 
       136 
     | 
    
         
            -
             
     | 
| 
       137 
     | 
    
         
            -
             
     | 
| 
      
 136 
     | 
    
         
            +
                                return self.execute("460e4251-e676-4bac-9733-9e4e8d4aba3c",Card.new(criteria))
         
     | 
| 
      
 137 
     | 
    
         
            +
                            end
         
     | 
| 
       138 
138 
     | 
    
         | 
| 
       139 
139 
     | 
    
         | 
| 
       140 
140 
     | 
    
         | 
| 
       141 
141 
     | 
    
         | 
| 
       142 
142 
     | 
    
         | 
| 
       143 
143 
     | 
    
         | 
| 
       144 
     | 
    
         
            -
             
     | 
| 
       145 
     | 
    
         
            -
             
     | 
| 
       146 
     | 
    
         
            -
             
     | 
| 
       147 
     | 
    
         
            -
             
     | 
| 
       148 
     | 
    
         
            -
             
     | 
| 
       149 
     | 
    
         
            -
             
     | 
| 
       150 
     | 
    
         
            -
             
     | 
| 
      
 144 
     | 
    
         
            +
                            def self.read(id, criteria = nil)
         
     | 
| 
      
 145 
     | 
    
         
            +
                                #
         
     | 
| 
      
 146 
     | 
    
         
            +
                                #Returns objects of type Card by id and optional criteria
         
     | 
| 
      
 147 
     | 
    
         
            +
                                #@param [String] id
         
     | 
| 
      
 148 
     | 
    
         
            +
                                #@param [Dict] criteria
         
     | 
| 
      
 149 
     | 
    
         
            +
                                #@return [Card] object representing the response
         
     | 
| 
      
 150 
     | 
    
         
            +
                                #@raise [APIException] an exception from the response status
         
     | 
| 
       151 
151 
     | 
    
         | 
| 
       152 
     | 
    
         
            -
             
     | 
| 
       153 
     | 
    
         
            -
             
     | 
| 
       154 
     | 
    
         
            -
             
     | 
| 
       155 
     | 
    
         
            -
             
     | 
| 
       156 
     | 
    
         
            -
             
     | 
| 
       157 
     | 
    
         
            -
             
     | 
| 
       158 
     | 
    
         
            -
             
     | 
| 
       159 
     | 
    
         
            -
             
     | 
| 
       160 
     | 
    
         
            -
             
     | 
| 
       161 
     | 
    
         
            -
             
     | 
| 
       162 
     | 
    
         
            -
             
     | 
| 
      
 152 
     | 
    
         
            +
                                mapObj = Card.new
         
     | 
| 
      
 153 
     | 
    
         
            +
                                if !(id.nil? || id.to_s.empty?)
         
     | 
| 
      
 154 
     | 
    
         
            +
                                  mapObj.set("id", id)
         
     | 
| 
      
 155 
     | 
    
         
            +
                                end
         
     | 
| 
      
 156 
     | 
    
         
            +
                                if !criteria.nil?
         
     | 
| 
      
 157 
     | 
    
         
            +
                                    if criteria.instance_of? RequestMap
         
     | 
| 
      
 158 
     | 
    
         
            +
                                      mapObj.setAll(criteria.getObject())
         
     | 
| 
      
 159 
     | 
    
         
            +
                                    else
         
     | 
| 
      
 160 
     | 
    
         
            +
                                      mapObj.setAll(criteria)
         
     | 
| 
      
 161 
     | 
    
         
            +
                                    end
         
     | 
| 
      
 162 
     | 
    
         
            +
                                end
         
     | 
| 
       163 
163 
     | 
    
         | 
| 
       164 
     | 
    
         
            -
             
     | 
| 
       165 
     | 
    
         
            -
             
     | 
| 
      
 164 
     | 
    
         
            +
                                return self.execute("208d005b-b2ed-4458-a9f0-0d7d267d7517",Card.new(mapObj))
         
     | 
| 
      
 165 
     | 
    
         
            +
                            end
         
     | 
| 
       166 
166 
     | 
    
         | 
| 
       167 
167 
     | 
    
         | 
| 
       168 
168 
     | 
    
         | 
| 
       169 
169 
     | 
    
         | 
| 
       170 
     | 
    
         
            -
             
     | 
| 
       171 
     | 
    
         
            -
             
     | 
| 
       172 
     | 
    
         
            -
             
     | 
| 
       173 
     | 
    
         
            -
             
     | 
| 
       174 
     | 
    
         
            -
             
     | 
| 
       175 
     | 
    
         
            -
             
     | 
| 
       176 
     | 
    
         
            -
             
     | 
| 
       177 
     | 
    
         
            -
             
     | 
| 
       178 
     | 
    
         
            -
             
     | 
| 
      
 170 
     | 
    
         
            +
                            def update
         
     | 
| 
      
 171 
     | 
    
         
            +
                                #
         
     | 
| 
      
 172 
     | 
    
         
            +
                                #Updates an object of type Card
         
     | 
| 
      
 173 
     | 
    
         
            +
                                #
         
     | 
| 
      
 174 
     | 
    
         
            +
                                #@return [Card] object representing the response.
         
     | 
| 
      
 175 
     | 
    
         
            +
                                #@raise [APIException] an exception from the response status
         
     | 
| 
      
 176 
     | 
    
         
            +
                                #
         
     | 
| 
      
 177 
     | 
    
         
            +
                                return self.class.execute("33fb62f9-b31e-4a54-8f43-454c21a34a50",self)
         
     | 
| 
      
 178 
     | 
    
         
            +
                            end
         
     | 
| 
       179 
179 
     | 
    
         | 
| 
       180 
180 
     | 
    
         | 
| 
       181 
181 
     | 
    
         | 
| 
         @@ -183,9 +183,9 @@ module MasterCard 
     | 
|
| 
       183 
183 
     | 
    
         | 
| 
       184 
184 
     | 
    
         | 
| 
       185 
185 
     | 
    
         | 
| 
       186 
     | 
    
         
            -
             
     | 
| 
       187 
     | 
    
         
            -
             
     | 
| 
       188 
     | 
    
         
            -
             
     | 
| 
      
 186 
     | 
    
         
            +
                        end
         
     | 
| 
      
 187 
     | 
    
         
            +
                    end
         
     | 
| 
      
 188 
     | 
    
         
            +
                end
         
     | 
| 
       189 
189 
     | 
    
         
             
            end
         
     | 
| 
       190 
190 
     | 
    
         | 
| 
       191 
191 
     | 
    
         |