eml 2.1.8 → 2.2.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/eml.gemspec +3 -3
 - data/lib/eml/error/rest/internal_server.rb +1 -1
 - data/lib/eml/error/tns.rb +1 -1
 - data/lib/eml/lib/basic_auth/generate.rb +1 -1
 - data/lib/eml/lib/basic_auth/verify.rb +1 -1
 - data/lib/eml/lib/constant_time_compare.rb +1 -1
 - data/lib/eml/parameters.rb +6 -3
 - data/lib/eml/payload.rb +1 -1
 - data/lib/eml/response.rb +1 -1
 - data/lib/eml/uk/models/tns/card.rb +1 -1
 - data/lib/eml/uk/models/transaction.rb +1 -1
 - data/lib/eml/uk/parameters/agreement/show.rb +3 -2
 - data/lib/eml/uk/parameters/card/activation.rb +4 -4
 - data/lib/eml/uk/parameters/card/lock.rb +4 -4
 - data/lib/eml/uk/parameters/card/register.rb +4 -4
 - data/lib/eml/uk/parameters/card/reload.rb +4 -4
 - data/lib/eml/uk/parameters/card/show.rb +16 -7
 - data/lib/eml/uk/parameters/card/transaction.rb +14 -7
 - data/lib/eml/uk/parameters/card/unload.rb +4 -4
 - data/lib/eml/uk/parameters/card/unlock.rb +4 -4
 - data/lib/eml/uk/parameters/card/void.rb +4 -4
 - data/lib/eml/uk/parameters.rb +3 -0
 - data/lib/eml/uk/payload/agreement/show.rb +19 -10
 - data/lib/eml/uk/payload/card/activation.rb +25 -14
 - data/lib/eml/uk/payload/card/lock.rb +14 -7
 - data/lib/eml/uk/payload/card/register.rb +22 -4
 - data/lib/eml/uk/payload/card/reload.rb +17 -8
 - data/lib/eml/uk/payload/card/show.rb +1 -1
 - data/lib/eml/uk/payload/card/transaction.rb +1 -1
 - data/lib/eml/uk/payload/card/unload.rb +17 -8
 - data/lib/eml/uk/payload/card/unlock.rb +5 -5
 - data/lib/eml/uk/payload/card/void.rb +5 -5
 - data/lib/eml/uk/payload/location.rb +6 -6
 - data/lib/eml/uk/response.rb +1 -1
 - data/lib/eml/uk/responses/agreement/show.rb +1 -1
 - data/lib/eml/uk/responses/card/reload.rb +1 -1
 - data/lib/eml/uk/responses/card/show.rb +1 -1
 - data/lib/eml/version.rb +1 -1
 - data/sorbet/rbi/gems/addressable.rbi +2 -2
 - data/sorbet/rbi/gems/byebug.rbi +1039 -0
 - data/sorbet/rbi/gems/coderay.rbi +91 -0
 - data/sorbet/rbi/gems/ffi-compiler.rbi +26 -0
 - data/sorbet/rbi/gems/ffi.rbi +559 -0
 - data/sorbet/rbi/gems/http-parser.rbi +120 -0
 - data/sorbet/rbi/gems/http.rbi +13 -7
 - data/sorbet/rbi/gems/method_source.rbi +63 -0
 - data/sorbet/rbi/gems/pry-byebug.rbi +149 -0
 - data/sorbet/rbi/gems/pry.rbi +1964 -0
 - data/sorbet/rbi/gems/public_suffix.rbi +1 -1
 - data/sorbet/rbi/gems/rake.rbi +645 -0
 - data/sorbet/rbi/gems/rspec-core.rbi +38 -1
 - data/sorbet/rbi/gems/rubocop.rbi +4 -0
 - data/sorbet/rbi/gems/simplecov-html.rbi +5 -1
 - data/sorbet/rbi/gems/simplecov.rbi +143 -17
 - data/sorbet/rbi/gems/webmock.rbi +0 -4
 - data/sorbet/rbi/hidden-definitions/errors.txt +7053 -166
 - data/sorbet/rbi/hidden-definitions/hidden.rbi +12951 -3455
 - data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +3 -1
 - data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +254 -0
 - data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +8 -8
 - data/sorbet/rbi/todo.rbi +18 -0
 - metadata +30 -15
 - data/sorbet/rbi/gems/http_parser.rb.rbi +0 -36
 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # typed:  
     | 
| 
      
 1 
     | 
    
         
            +
            # typed: strict
         
     | 
| 
       2 
2 
     | 
    
         
             
            # frozen_string_literal: true
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            module EML
         
     | 
| 
         @@ -6,30 +6,39 @@ module EML 
     | 
|
| 
       6 
6 
     | 
    
         
             
                class Payload
         
     | 
| 
       7 
7 
     | 
    
         
             
                  module Card
         
     | 
| 
       8 
8 
     | 
    
         
             
                    class Reload < ::EML::UK::Payload
         
     | 
| 
       9 
     | 
    
         
            -
                      REQUIRED_CONFIG = 
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
      
 9 
     | 
    
         
            +
                      REQUIRED_CONFIG =
         
     | 
| 
      
 10 
     | 
    
         
            +
                        T.let(%i[merchant_group].freeze, T::Array[Symbol])
         
     | 
| 
      
 11 
     | 
    
         
            +
                      REQUIRED_VALUES =
         
     | 
| 
      
 12 
     | 
    
         
            +
                        T.let(%i[amount location.country].freeze, T::Array[Symbol])
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
                      sig { params(payload: T::Hash[Symbol, T.untyped]).void }
         
     | 
| 
      
 15 
     | 
    
         
            +
                      def initialize(payload)
         
     | 
| 
      
 16 
     | 
    
         
            +
                        super
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
                        @location = T.let(nil, T.nilable(EML::UK::Payload::Location))
         
     | 
| 
      
 19 
     | 
    
         
            +
                      end
         
     | 
| 
       11 
20 
     | 
    
         | 
| 
       12 
21 
     | 
    
         
             
                      private
         
     | 
| 
       13 
22 
     | 
    
         | 
| 
       14 
     | 
    
         
            -
                      sig {  
     | 
| 
      
 23 
     | 
    
         
            +
                      sig { returns(T.nilable(Numeric)) }
         
     | 
| 
       15 
24 
     | 
    
         
             
                      attr_accessor :amount
         
     | 
| 
       16 
25 
     | 
    
         | 
| 
       17 
26 
     | 
    
         
             
                      # While client_time is sent to EML as a JSON DateTime, there are many
         
     | 
| 
       18 
27 
     | 
    
         
             
                      # classes that could be used which causes a typing challenge. For
         
     | 
| 
       19 
28 
     | 
    
         
             
                      # example, if Rails is in use, we will probably receive a
         
     | 
| 
       20 
29 
     | 
    
         
             
                      # ActiveSupport::TimeWithZone
         
     | 
| 
       21 
     | 
    
         
            -
                      sig {  
     | 
| 
      
 30 
     | 
    
         
            +
                      sig { returns(T.nilable(T.untyped)) }
         
     | 
| 
       22 
31 
     | 
    
         
             
                      attr_accessor :client_time
         
     | 
| 
       23 
32 
     | 
    
         | 
| 
       24 
     | 
    
         
            -
                      sig { params(location: Hash).void }
         
     | 
| 
      
 33 
     | 
    
         
            +
                      sig { params(location: T::Hash[T.untyped, T.untyped]).void }
         
     | 
| 
       25 
34 
     | 
    
         
             
                      def location=(location)
         
     | 
| 
       26 
35 
     | 
    
         
             
                        @location = EML::UK::Payload::Location.new(location)
         
     | 
| 
       27 
36 
     | 
    
         
             
                      end
         
     | 
| 
       28 
37 
     | 
    
         | 
| 
       29 
     | 
    
         
            -
                      sig {  
     | 
| 
      
 38 
     | 
    
         
            +
                      sig { returns(T.nilable(String)) }
         
     | 
| 
       30 
39 
     | 
    
         
             
                      attr_accessor :merchant_group
         
     | 
| 
       31 
40 
     | 
    
         | 
| 
       32 
     | 
    
         
            -
                      sig {  
     | 
| 
      
 41 
     | 
    
         
            +
                      sig { returns(T.nilable(String)) }
         
     | 
| 
       33 
42 
     | 
    
         
             
                      attr_accessor :note
         
     | 
| 
       34 
43 
     | 
    
         
             
                    end
         
     | 
| 
       35 
44 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # typed:  
     | 
| 
      
 1 
     | 
    
         
            +
            # typed: strict
         
     | 
| 
       2 
2 
     | 
    
         
             
            # frozen_string_literal: true
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            module EML
         
     | 
| 
         @@ -6,30 +6,39 @@ module EML 
     | 
|
| 
       6 
6 
     | 
    
         
             
                class Payload
         
     | 
| 
       7 
7 
     | 
    
         
             
                  module Card
         
     | 
| 
       8 
8 
     | 
    
         
             
                    class Unload < ::EML::UK::Payload
         
     | 
| 
       9 
     | 
    
         
            -
                      REQUIRED_CONFIG = 
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
      
 9 
     | 
    
         
            +
                      REQUIRED_CONFIG =
         
     | 
| 
      
 10 
     | 
    
         
            +
                        T.let(%i[merchant_group].freeze, T::Array[Symbol])
         
     | 
| 
      
 11 
     | 
    
         
            +
                      REQUIRED_VALUES =
         
     | 
| 
      
 12 
     | 
    
         
            +
                        T.let(%i[amount location.country note].freeze, T::Array[Symbol])
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
                      sig { params(payload: T::Hash[Symbol, T.untyped]).void }
         
     | 
| 
      
 15 
     | 
    
         
            +
                      def initialize(payload)
         
     | 
| 
      
 16 
     | 
    
         
            +
                        super
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
                        @location = T.let(nil, T.nilable(EML::UK::Payload::Location))
         
     | 
| 
      
 19 
     | 
    
         
            +
                      end
         
     | 
| 
       11 
20 
     | 
    
         | 
| 
       12 
21 
     | 
    
         
             
                      private
         
     | 
| 
       13 
22 
     | 
    
         | 
| 
       14 
     | 
    
         
            -
                      sig {  
     | 
| 
      
 23 
     | 
    
         
            +
                      sig { returns(T.nilable(Numeric)) }
         
     | 
| 
       15 
24 
     | 
    
         
             
                      attr_accessor :amount
         
     | 
| 
       16 
25 
     | 
    
         | 
| 
       17 
26 
     | 
    
         
             
                      # While client_time is sent to EML as a JSON DateTime, there are many
         
     | 
| 
       18 
27 
     | 
    
         
             
                      # classes that could be used which causes a typing challenge. For
         
     | 
| 
       19 
28 
     | 
    
         
             
                      # example, if Rails is in use, we will probably receive a
         
     | 
| 
       20 
29 
     | 
    
         
             
                      # ActiveSupport::TimeWithZone
         
     | 
| 
       21 
     | 
    
         
            -
                      sig {  
     | 
| 
      
 30 
     | 
    
         
            +
                      sig { returns(T.nilable(T.untyped)) }
         
     | 
| 
       22 
31 
     | 
    
         
             
                      attr_accessor :client_time
         
     | 
| 
       23 
32 
     | 
    
         | 
| 
       24 
     | 
    
         
            -
                      sig { params(location: Hash).void }
         
     | 
| 
      
 33 
     | 
    
         
            +
                      sig { params(location: T::Hash[T.untyped, T.untyped]).void }
         
     | 
| 
       25 
34 
     | 
    
         
             
                      def location=(location)
         
     | 
| 
       26 
35 
     | 
    
         
             
                        @location = EML::UK::Payload::Location.new(location)
         
     | 
| 
       27 
36 
     | 
    
         
             
                      end
         
     | 
| 
       28 
37 
     | 
    
         | 
| 
       29 
     | 
    
         
            -
                      sig {  
     | 
| 
      
 38 
     | 
    
         
            +
                      sig { returns(T.nilable(String)) }
         
     | 
| 
       30 
39 
     | 
    
         
             
                      attr_accessor :merchant_group
         
     | 
| 
       31 
40 
     | 
    
         | 
| 
       32 
     | 
    
         
            -
                      sig {  
     | 
| 
      
 41 
     | 
    
         
            +
                      sig { returns(T.nilable(String)) }
         
     | 
| 
       33 
42 
     | 
    
         
             
                      attr_accessor :note
         
     | 
| 
       34 
43 
     | 
    
         
             
                    end
         
     | 
| 
       35 
44 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # typed:  
     | 
| 
      
 1 
     | 
    
         
            +
            # typed: strict
         
     | 
| 
       2 
2 
     | 
    
         
             
            # frozen_string_literal: true
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            module EML
         
     | 
| 
         @@ -6,15 +6,15 @@ module EML 
     | 
|
| 
       6 
6 
     | 
    
         
             
                class Payload
         
     | 
| 
       7 
7 
     | 
    
         
             
                  module Card
         
     | 
| 
       8 
8 
     | 
    
         
             
                    class Unlock < ::EML::UK::Payload
         
     | 
| 
       9 
     | 
    
         
            -
                      REQUIRED_CONFIG = %i[merchant_group].freeze
         
     | 
| 
       10 
     | 
    
         
            -
                      REQUIRED_VALUES = %i[note].freeze
         
     | 
| 
      
 9 
     | 
    
         
            +
                      REQUIRED_CONFIG = T.let(%i[merchant_group].freeze, T::Array[Symbol])
         
     | 
| 
      
 10 
     | 
    
         
            +
                      REQUIRED_VALUES = T.let(%i[note].freeze, T::Array[Symbol])
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
                      private
         
     | 
| 
       13 
13 
     | 
    
         | 
| 
       14 
     | 
    
         
            -
                      sig {  
     | 
| 
      
 14 
     | 
    
         
            +
                      sig { returns(T.nilable(String)) }
         
     | 
| 
       15 
15 
     | 
    
         
             
                      attr_accessor :merchant_group
         
     | 
| 
       16 
16 
     | 
    
         | 
| 
       17 
     | 
    
         
            -
                      sig {  
     | 
| 
      
 17 
     | 
    
         
            +
                      sig { returns(T.nilable(String)) }
         
     | 
| 
       18 
18 
     | 
    
         
             
                      attr_accessor :note
         
     | 
| 
       19 
19 
     | 
    
         
             
                    end
         
     | 
| 
       20 
20 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # typed:  
     | 
| 
      
 1 
     | 
    
         
            +
            # typed: strict
         
     | 
| 
       2 
2 
     | 
    
         
             
            # frozen_string_literal: true
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            module EML
         
     | 
| 
         @@ -6,15 +6,15 @@ module EML 
     | 
|
| 
       6 
6 
     | 
    
         
             
                class Payload
         
     | 
| 
       7 
7 
     | 
    
         
             
                  module Card
         
     | 
| 
       8 
8 
     | 
    
         
             
                    class Void < ::EML::UK::Payload
         
     | 
| 
       9 
     | 
    
         
            -
                      REQUIRED_CONFIG = %i[merchant_group].freeze
         
     | 
| 
       10 
     | 
    
         
            -
                      REQUIRED_VALUES = %i[note].freeze
         
     | 
| 
      
 9 
     | 
    
         
            +
                      REQUIRED_CONFIG = T.let(%i[merchant_group].freeze, T::Array[Symbol])
         
     | 
| 
      
 10 
     | 
    
         
            +
                      REQUIRED_VALUES = T.let(%i[note].freeze, T::Array[Symbol])
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
                      private
         
     | 
| 
       13 
13 
     | 
    
         | 
| 
       14 
     | 
    
         
            -
                      sig {  
     | 
| 
      
 14 
     | 
    
         
            +
                      sig { returns(T.nilable(String)) }
         
     | 
| 
       15 
15 
     | 
    
         
             
                      attr_accessor :merchant_group
         
     | 
| 
       16 
16 
     | 
    
         | 
| 
       17 
     | 
    
         
            -
                      sig {  
     | 
| 
      
 17 
     | 
    
         
            +
                      sig { returns(T.nilable(String)) }
         
     | 
| 
       18 
18 
     | 
    
         
             
                      attr_accessor :note
         
     | 
| 
       19 
19 
     | 
    
         
             
                    end
         
     | 
| 
       20 
20 
     | 
    
         
             
                  end
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # typed:  
     | 
| 
      
 1 
     | 
    
         
            +
            # typed: strict
         
     | 
| 
       2 
2 
     | 
    
         
             
            # frozen_string_literal: true
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            module EML
         
     | 
| 
         @@ -10,19 +10,19 @@ module EML 
     | 
|
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
                    private
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
       13 
     | 
    
         
            -
                    sig {  
     | 
| 
      
 13 
     | 
    
         
            +
                    sig { returns(T.nilable(String)) }
         
     | 
| 
       14 
14 
     | 
    
         
             
                    attr_accessor :name
         
     | 
| 
       15 
15 
     | 
    
         | 
| 
       16 
     | 
    
         
            -
                    sig {  
     | 
| 
      
 16 
     | 
    
         
            +
                    sig { returns(T.nilable(String)) }
         
     | 
| 
       17 
17 
     | 
    
         
             
                    attr_accessor :address1
         
     | 
| 
       18 
18 
     | 
    
         | 
| 
       19 
     | 
    
         
            -
                    sig {  
     | 
| 
      
 19 
     | 
    
         
            +
                    sig { returns(T.nilable(String)) }
         
     | 
| 
       20 
20 
     | 
    
         
             
                    attr_accessor :address2
         
     | 
| 
       21 
21 
     | 
    
         | 
| 
       22 
     | 
    
         
            -
                    sig {  
     | 
| 
      
 22 
     | 
    
         
            +
                    sig { returns(T.nilable(String)) }
         
     | 
| 
       23 
23 
     | 
    
         
             
                    attr_accessor :city
         
     | 
| 
       24 
24 
     | 
    
         | 
| 
       25 
     | 
    
         
            -
                    sig {  
     | 
| 
      
 25 
     | 
    
         
            +
                    sig { returns(T.nilable(String)) }
         
     | 
| 
       26 
26 
     | 
    
         
             
                    attr_accessor :postal_code
         
     | 
| 
       27 
27 
     | 
    
         
             
                  end
         
     | 
| 
       28 
28 
     | 
    
         
             
                end
         
     | 
    
        data/lib/eml/uk/response.rb
    CHANGED
    
    
    
        data/lib/eml/version.rb
    CHANGED
    
    
| 
         @@ -7,7 +7,7 @@ 
     | 
|
| 
       7 
7 
     | 
    
         
             
            #
         
     | 
| 
       8 
8 
     | 
    
         
             
            #   https://github.com/sorbet/sorbet-typed/new/master?filename=lib/addressable/all/addressable.rbi
         
     | 
| 
       9 
9 
     | 
    
         
             
            #
         
     | 
| 
       10 
     | 
    
         
            -
            # addressable-2. 
     | 
| 
      
 10 
     | 
    
         
            +
            # addressable-2.7.0
         
     | 
| 
       11 
11 
     | 
    
         
             
            module Addressable
         
     | 
| 
       12 
12 
     | 
    
         
             
            end
         
     | 
| 
       13 
13 
     | 
    
         
             
            module Addressable::VERSION
         
     | 
| 
         @@ -49,7 +49,7 @@ class Addressable::URI 
     | 
|
| 
       49 
49 
     | 
    
         
             
              def authority=(new_authority); end
         
     | 
| 
       50 
50 
     | 
    
         
             
              def basename; end
         
     | 
| 
       51 
51 
     | 
    
         
             
              def default_port; end
         
     | 
| 
       52 
     | 
    
         
            -
              def defer_validation 
     | 
| 
      
 52 
     | 
    
         
            +
              def defer_validation; end
         
     | 
| 
       53 
53 
     | 
    
         
             
              def display_uri; end
         
     | 
| 
       54 
54 
     | 
    
         
             
              def domain; end
         
     | 
| 
       55 
55 
     | 
    
         
             
              def dup; end
         
     |