Sha256: d7cda2231618e37a13b22b96d5a2670351882dcd1cb459340d344d7845ed4391

Contents?: true

Size: 528 Bytes

Versions: 31

Compression:

Stored size: 528 Bytes

Contents

module Stripe
  class FileUpload < APIResource
    extend Stripe::APIOperations::Create
    extend Stripe::APIOperations::List

    def self.resource_url
      "/v1/files"
    end

    def self.request(method, url, params={}, opts={})
      opts = {
        :api_base => Stripe::uploads_base
      }.merge(Util.normalize_opts(opts))
      super
    end

    def self.create(params={}, opts={})
      opts = {
        :content_type => 'multipart/form-data',
      }.merge(Util.normalize_opts(opts))
      super
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
stripe-2.0.0 lib/stripe/file_upload.rb
stripe-1.58.0 lib/stripe/file_upload.rb
stripe-1.57.1 lib/stripe/file_upload.rb
stripe-1.57.0 lib/stripe/file_upload.rb
stripe-1.56.2 lib/stripe/file_upload.rb
stripe-1.56.1 lib/stripe/file_upload.rb
stripe-1.56.0 lib/stripe/file_upload.rb
stripe-1.55.1 lib/stripe/file_upload.rb
stripe-1.55.0 lib/stripe/file_upload.rb
stripe-1.54.0 lib/stripe/file_upload.rb
stripe-1.53.0 lib/stripe/file_upload.rb
stripe-1.52.0 lib/stripe/file_upload.rb
stripe-1.51.1 lib/stripe/file_upload.rb
stripe-1.51.0 lib/stripe/file_upload.rb
stripe-1.50.1 lib/stripe/file_upload.rb
stripe-1.50.0 lib/stripe/file_upload.rb
stripe-1.49.0 lib/stripe/file_upload.rb
stripe-1.48.0 lib/stripe/file_upload.rb
stripe-1.47.0 lib/stripe/file_upload.rb
stripe-1.46.0 lib/stripe/file_upload.rb