Sha256: 8c77aa93e8e90c446218b5f310521027bae2a7cbc9925a601151807241f7bcea

Contents?: true

Size: 413 Bytes

Versions: 39

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

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

    OBJECT_NAME = "payout".freeze

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

    def cancel_url
      resource_url + "/cancel"
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
stripe-4.11.0 lib/stripe/payout.rb
stripe-4.10.0 lib/stripe/payout.rb
stripe-4.9.1 lib/stripe/payout.rb
stripe-4.9.0 lib/stripe/payout.rb
stripe-4.8.1 lib/stripe/payout.rb
stripe-4.8.0 lib/stripe/payout.rb
stripe-4.7.1 lib/stripe/payout.rb
stripe-4.7.0 lib/stripe/payout.rb
stripe-4.6.0 lib/stripe/payout.rb
stripe-4.5.0 lib/stripe/payout.rb
stripe-4.4.1 lib/stripe/payout.rb
stripe-4.4.0 lib/stripe/payout.rb
stripe-4.3.0 lib/stripe/payout.rb
stripe-4.2.0 lib/stripe/payout.rb
stripe-4.1.0 lib/stripe/payout.rb
stripe-4.0.3 lib/stripe/payout.rb
stripe-4.0.2 lib/stripe/payout.rb
stripe-4.0.1 lib/stripe/payout.rb
stripe-4.0.0 lib/stripe/payout.rb
stripe-3.31.1 lib/stripe/payout.rb