class Billomat::Actions::Uncancel
This actions uncancels an canceld invoice.
@example
Billomat::Actions::Uncancel.new('1235')
Public Class Methods
new(invoice_id)
click to toggle source
@param [String] invoice_id The invoice ID
@return [Billomat::Actions::Uncancel]
# File lib/billomat/actions/uncancel.rb, line 14 def initialize(invoice_id) @invoice_id = invoice_id end
Public Instance Methods
call()
click to toggle source
Calls the gateway
@return [TrueClass]
# File lib/billomat/actions/uncancel.rb, line 22 def call Billomat::Gateway.new(:put, path).run true end
path()
click to toggle source
@return [String] The path for the uncancel action
# File lib/billomat/actions/uncancel.rb, line 29 def path "/invoices/#{@invoice_id}/uncancel" end