Sha256: 3da350b73a4b216b92a57b67e8ba443f8fee8c126a79ca52176d696edbfdae03

Contents?: true

Size: 1.23 KB

Versions: 8

Compression:

Stored size: 1.23 KB

Contents

require 'genesis_ruby/api/constants/transactions/parameters/threeds/version2/purchase/categories'

module GenesisRuby
  module Api
    module Mixins
      module Requests
        module Financial
          module Threeds
            module Version2
              # Mixin ThreedsV2 Purchase
              module Purchase

                attr_reader :threeds_v2_purchase_category

                # Identifies the type of transaction being authenticated
                def threeds_v2_purchase_category=(value)
                  allowed_indicators = GenesisRuby::Api::Constants::Transactions::Parameters::Threeds::Version2::
                      Purchase::Categories.all

                  allowed_options attribute:   __method__,
                                  allowed:     allowed_indicators,
                                  value:       value.to_s,
                                  allow_empty: true
                end

                protected

                # Request Purchase Attributes structure
                def purchase_attributes
                  {
                    category: threeds_v2_purchase_category
                  }
                end

              end
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
genesis_ruby-0.1.7 lib/genesis_ruby/api/mixins/requests/financial/threeds/version2/purchase.rb
genesis_ruby-0.1.6 lib/genesis_ruby/api/mixins/requests/financial/threeds/version2/purchase.rb
genesis_ruby-0.1.5 lib/genesis_ruby/api/mixins/requests/financial/threeds/version2/purchase.rb
genesis_ruby-0.1.4 lib/genesis_ruby/api/mixins/requests/financial/threeds/version2/purchase.rb
genesis_ruby-0.1.3 lib/genesis_ruby/api/mixins/requests/financial/threeds/version2/purchase.rb
genesis_ruby-0.1.2 lib/genesis_ruby/api/mixins/requests/financial/threeds/version2/purchase.rb
genesis_ruby-0.1.1 lib/genesis_ruby/api/mixins/requests/financial/threeds/version2/purchase.rb
genesis_ruby-0.1.0 lib/genesis_ruby/api/mixins/requests/financial/threeds/version2/purchase.rb