Class: Stripe::Transfer

Inherits:
APIResource show all
Includes:
APIOperations::Create, APIOperations::List, APIOperations::Update
Defined in:
lib/stripe/transfer.rb

Instance Attribute Summary

Attributes inherited from StripeObject

#api_key

Instance Method Summary collapse

Methods included from APIOperations::Update

#save, #serialize_metadata, #serialize_params

Methods included from APIOperations::Create

included

Methods included from APIOperations::List

included

Methods inherited from APIResource

class_name, #refresh, retrieve, url, #url

Methods inherited from StripeObject

#[], #[]=, #_dump, _load, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #respond_to?, #to_hash, #to_json, #to_s, #values

Constructor Details

This class inherits a constructor from Stripe::StripeObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject

Instance Method Details

#cancelObject



7
8
9
10
# File 'lib/stripe/transfer.rb', line 7

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

#cancel_urlObject



12
13
14
# File 'lib/stripe/transfer.rb', line 12

def cancel_url
  url + '/cancel'
end