Sha256: a40a11db668785ebaeae523119180eb867349c09baff366d6bb04c42972b12dd

Contents?: true

Size: 893 Bytes

Versions: 13

Compression:

Stored size: 893 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module EML
  module UK
    class Agreement < APIResource
      ENDPOINT_BASE = T.let("agreements", String)

      class << self
        extend T::Sig

        # Cardholder Agreement Lookup
        # Look up the cardholder agreement URL for a card that has not been
        # created
        #
        # @param payload [Hash] POST payload that conforms to
        #   EML::UK::Payload::Agreement::Show
        # @param params [Hash] URL query string parameters that conform to
        #   EML::UK::Parameters::Agreement::Show
        sig do
          params(
            payload: T::Hash[Symbol, T.untyped],
            params: T::Hash[Symbol, T.untyped]
          ).returns(EML::Response)
        end
        def show(payload: {}, params: {})
          new.request(:post, payload: payload, params: params)
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
eml-3.0.0 lib/eml/uk/resources/agreement.rb
eml-2.2.0 lib/eml/uk/resources/agreement.rb
eml-2.1.8 lib/eml/uk/resources/agreement.rb
eml-2.1.7 lib/eml/uk/resources/agreement.rb
eml-2.1.6 lib/eml/uk/resources/agreement.rb
eml-2.1.5 lib/eml/uk/resources/agreement.rb
eml-2.1.4 lib/eml/uk/resources/agreement.rb
eml-2.1.3 lib/eml/uk/resources/agreement.rb
eml-2.1.2 lib/eml/uk/resources/agreement.rb
eml-2.1.1 lib/eml/uk/resources/agreement.rb
eml-2.1.0 lib/eml/uk/resources/agreement.rb
eml-2.0.0 lib/eml/uk/resources/agreement.rb
eml-1.0.0 lib/eml/uk/resources/agreement.rb