Sha256: ae11ea4f2a305ca0107eabdd11e9afc5cc1c07ece4d25cb30c31284adfb7536b

Contents?: true

Size: 808 Bytes

Versions: 8

Compression:

Stored size: 808 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)
      set_instance_variables_from_hash(attributes)
    end

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
braintree-4.23.0 lib/braintree/document_upload.rb
braintree-4.22.0 lib/braintree/document_upload.rb
braintree-4.21.0 lib/braintree/document_upload.rb
braintree-4.20.0 lib/braintree/document_upload.rb
braintree-4.19.0 lib/braintree/document_upload.rb
braintree-4.18.0 lib/braintree/document_upload.rb
braintree-4.17.0 lib/braintree/document_upload.rb
braintree-4.16.0 lib/braintree/document_upload.rb