Sha256: bdc69a2033004be468689d43cd66f1dd6b526a4b25a5a47a5fe9bc92306ad331

Contents?: true

Size: 360 Bytes

Versions: 2

Compression:

Stored size: 360 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)
      refresh_from(response, api_key)
    end

    def cancel_url
      url + '/cancel'
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stripe-1.29.1 lib/stripe/transfer.rb
stripe-1.29.0 lib/stripe/transfer.rb