lib/stripe/transfer.rb in stripe-3.5.3 vs lib/stripe/transfer.rb in stripe-3.6.0
- old
+ new
@@ -1,11 +1,14 @@
module Stripe
class Transfer < APIResource
extend Stripe::APIOperations::List
extend Stripe::APIOperations::Create
include Stripe::APIOperations::Save
+ extend Stripe::APIOperations::NestedResource
OBJECT_NAME = "transfer".freeze
+
+ nested_resource_class_methods :reversal, operations: %i[create retrieve update list]
def cancel
resp, api_key = request(:post, cancel_url)
initialize_from(resp.data, api_key)
end