class MC2P::RefundCaptureVoidObjectItemMixin
Allows make refund, capture and void an object item
Public Instance Methods
capture(data = nil)
click to toggle source
Capture the object item Params:
data
-
data to send
Returns: response dictionary
# File lib/mixins.rb, line 109 def capture(data = nil) id_required_and_not_deleted @resource.capture( @json_dict[@id_property], data ) end
refund(data = nil)
click to toggle source
Refund the object item Params:
data
-
data to send
Returns: response dictionary
# File lib/mixins.rb, line 97 def refund(data = nil) id_required_and_not_deleted @resource.refund( @json_dict[@id_property], data ) end
void(data = nil)
click to toggle source
Void the object item Params:
data
-
data to send
Returns: response dictionary
# File lib/mixins.rb, line 121 def void(data = nil) id_required_and_not_deleted @resource.void( @json_dict[@id_property], data ) end