Sha256: 22b1e4cce4ad481f833e5f127c9affe84f6958bc0c5244fe97bf3c5fd64aa023

Contents?: true

Size: 897 Bytes

Versions: 4

Compression:

Stored size: 897 Bytes

Contents

module GenesisRuby
  module Api
    module Requests
      module Wpf
        # Reconcile can be used to retrieve data about a payment.
        # This can be useful if you want to retrieve information about a payment whose status is timeout,
        # which returned an error or has changed eg. has beed chargebacked.
        class Reconcile < Request

          attr_accessor :unique_id

          protected

          # Define WPF Reconcile request configuration
          def init_configuration
            init_xml_configuration
            @api_config.url = build_request_url subdomain: 'wpf', path: 'wpf/reconcile'
          end

          # WPF Reconcile request structure
          def populate_structure
            @tree_structure = {
              wpf_reconcile: {
                unique_id: unique_id
              }
            }
          end

        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
genesis_ruby-0.1.4 lib/genesis_ruby/api/requests/wpf/reconcile.rb
genesis_ruby-0.1.3 lib/genesis_ruby/api/requests/wpf/reconcile.rb
genesis_ruby-0.1.2 lib/genesis_ruby/api/requests/wpf/reconcile.rb
genesis_ruby-0.1.1 lib/genesis_ruby/api/requests/wpf/reconcile.rb