Sha256: 4056b2cb1b600ecc94d3fdfe0759f10e3f0eb46749015a3278c39a1fb865b365

Contents?: true

Size: 828 Bytes

Versions: 17

Compression:

Stored size: 828 Bytes

Contents

module Braintree
  class DocumentUpload
    include BaseModule
    include Braintree::Util::IdEquality

    module Kind
      IdentityDocument          = "identity_document"
      EvidenceDocument          = "evidence_document"
      PayoutInvoiceDocument     = "payout_invoice_document"
    end

    attr_reader :content_type
    attr_reader :id
    attr_reader :kind
    attr_reader :name
    attr_reader :size

    def self.create(*args)
      Configuration.gateway.document_upload.create(*args)
    end

    def self.create!(*args)
      Configuration.gateway.document_upload.create!(*args)
    end

    def initialize(attributes) # :nodoc:
      set_instance_variables_from_hash(attributes)
    end

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
braintree-4.15.0 lib/braintree/document_upload.rb
braintree-4.14.0 lib/braintree/document_upload.rb
braintree-4.13.0 lib/braintree/document_upload.rb
braintree-4.12.0 lib/braintree/document_upload.rb
braintree-4.11.0 lib/braintree/document_upload.rb
braintree-4.10.0 lib/braintree/document_upload.rb
braintree-4.9.0 lib/braintree/document_upload.rb
braintree-4.8.0 lib/braintree/document_upload.rb
braintree-4.7.0 lib/braintree/document_upload.rb
braintree-4.6.0 lib/braintree/document_upload.rb
braintree-4.5.0 lib/braintree/document_upload.rb
braintree-4.4.0 lib/braintree/document_upload.rb
braintree-4.3.0 lib/braintree/document_upload.rb
braintree-4.2.0 lib/braintree/document_upload.rb
braintree-4.1.0 lib/braintree/document_upload.rb
braintree-4.0.0 lib/braintree/document_upload.rb
braintree-3.4.0 lib/braintree/document_upload.rb