Sha256: 1606bc8ee8bdd79770b1e119333b6f5fb3ce3e25db4200e2c9f330f0e370bb70

Contents?: true

Size: 372 Bytes

Versions: 5

Compression:

Stored size: 372 Bytes

Contents

module Stripe
  class Transfer < APIResource
    extend Stripe::APIOperations::List
    extend Stripe::APIOperations::Create
    include Stripe::APIOperations::Update

    def cancel
      response, api_key = Stripe.request(:post, cancel_url, @api_key)
      initialize_from(response, api_key)
    end

    def cancel_url
      resource_url + '/cancel'
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
stripe-1.40.0 lib/stripe/transfer.rb
stripe-1.39.0 lib/stripe/transfer.rb
stripe-1.38.0 lib/stripe/transfer.rb
stripe-1.37.0 lib/stripe/transfer.rb
stripe-1.36.2 lib/stripe/transfer.rb