Sha256: 12c78888f52d89dc22b472ef68d903b7905c0114a804cc4d6c47ed5809dea423

Contents?: true

Size: 638 Bytes

Versions: 25

Compression:

Stored size: 638 Bytes

Contents

module Braintree
  class SettlementBatchSummary
    include BaseModule

    attr_reader :records

    def self.generate(settlement_date, group_by_custom_field = nil)
      criteria = {:settlement_date => settlement_date}
      criteria.merge!({:group_by_custom_field => group_by_custom_field}) if group_by_custom_field
      Configuration.gateway.settlement_batch_summary.generate(criteria)
    end

    def initialize(gateway, attributes)
      @gateway = gateway
      set_instance_variables_from_hash(attributes)
    end

    class << self
      protected :new
      def _new(*args)
        self.new(*args)
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
braintree-4.23.0 lib/braintree/settlement_batch_summary.rb
braintree-4.22.0 lib/braintree/settlement_batch_summary.rb
braintree-4.21.0 lib/braintree/settlement_batch_summary.rb
braintree-4.20.0 lib/braintree/settlement_batch_summary.rb
braintree-4.19.0 lib/braintree/settlement_batch_summary.rb
braintree-4.18.0 lib/braintree/settlement_batch_summary.rb
braintree-4.17.0 lib/braintree/settlement_batch_summary.rb
braintree-4.16.0 lib/braintree/settlement_batch_summary.rb
braintree-4.15.0 lib/braintree/settlement_batch_summary.rb
braintree-4.14.0 lib/braintree/settlement_batch_summary.rb
braintree-4.13.0 lib/braintree/settlement_batch_summary.rb
braintree-4.12.0 lib/braintree/settlement_batch_summary.rb
braintree-4.11.0 lib/braintree/settlement_batch_summary.rb
braintree-4.10.0 lib/braintree/settlement_batch_summary.rb
braintree-4.9.0 lib/braintree/settlement_batch_summary.rb
braintree-4.8.0 lib/braintree/settlement_batch_summary.rb
braintree-4.7.0 lib/braintree/settlement_batch_summary.rb
braintree-4.6.0 lib/braintree/settlement_batch_summary.rb
braintree-4.5.0 lib/braintree/settlement_batch_summary.rb
braintree-4.4.0 lib/braintree/settlement_batch_summary.rb