Sha256: 680db778718325e290067f6ba7cdbd0e4b65edb333acfdedc6db98e38d765968

Contents?: true

Size: 354 Bytes

Versions: 10

Compression:

Stored size: 354 Bytes

Contents

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

    def cancel
      resp, api_key = self.request(:post, cancel_url)
      initialize_from(resp.data, api_key)
    end

    def cancel_url
      resource_url + '/cancel'
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
stripe-2.5.0 lib/stripe/transfer.rb
stripe-2.4.0 lib/stripe/transfer.rb
stripe-2.3.0 lib/stripe/transfer.rb
stripe-2.2.1 lib/stripe/transfer.rb
stripe-2.2.0 lib/stripe/transfer.rb
stripe-2.1.0 lib/stripe/transfer.rb
stripe-2.0.3 lib/stripe/transfer.rb
stripe-2.0.2 lib/stripe/transfer.rb
stripe-2.0.1 lib/stripe/transfer.rb
stripe-2.0.0 lib/stripe/transfer.rb