Sha256: 79dfc173d5eaddab14ba641395b4c71e2b627e3e5e6b4c72a7198bc447dcc916

Contents?: true

Size: 373 Bytes

Versions: 4

Compression:

Stored size: 373 Bytes

Contents

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

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

    def cancel_url
      url + '/cancel'
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stripe-1.16.0 lib/stripe/transfer.rb
stripe-1.15.0 lib/stripe/transfer.rb
stripe-1.14.0 lib/stripe/transfer.rb
stripe-1.13.0 lib/stripe/transfer.rb