Sha256: 3f4e82d2ddcf8669fa3da3ac34bee2d1d044c6082267fb2a778df063021f14a4

Contents?: true

Size: 644 Bytes

Versions: 29

Compression:

Stored size: 644 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

29 entries across 29 versions & 1 rubygems

Version Path
braintree-3.3.0 lib/braintree/settlement_batch_summary.rb
braintree-3.2.0 lib/braintree/settlement_batch_summary.rb
braintree-3.1.0 lib/braintree/settlement_batch_summary.rb
braintree-3.0.1 lib/braintree/settlement_batch_summary.rb
braintree-2.104.1 lib/braintree/settlement_batch_summary.rb
braintree-2.104.0 lib/braintree/settlement_batch_summary.rb
braintree-2.103.0 lib/braintree/settlement_batch_summary.rb
braintree-2.102.0 lib/braintree/settlement_batch_summary.rb
braintree-2.101.0 lib/braintree/settlement_batch_summary.rb
braintree-2.100.0 lib/braintree/settlement_batch_summary.rb
braintree-2.99.0 lib/braintree/settlement_batch_summary.rb
braintree-2.98.0 lib/braintree/settlement_batch_summary.rb
braintree-2.97.0 lib/braintree/settlement_batch_summary.rb
braintree-2.96.0 lib/braintree/settlement_batch_summary.rb
braintree-2.95.0 lib/braintree/settlement_batch_summary.rb
braintree-2.94.0 lib/braintree/settlement_batch_summary.rb
braintree-2.93.0 lib/braintree/settlement_batch_summary.rb
braintree-2.92.0 lib/braintree/settlement_batch_summary.rb
braintree-2.91.0 lib/braintree/settlement_batch_summary.rb
braintree-2.90.0 lib/braintree/settlement_batch_summary.rb