module FidorApi::Client::DSL::StandingOrders

Public Instance Methods

confirm_standing_order(id, options = {}) click to toggle source
# File lib/fidor_api/client/dsl/standing_orders.rb, line 25
def confirm_standing_order(id, options = {})
  request(:put, "standing_orders/#{id}/confirm", {}, options[:headers])
end
create_standing_order(attributes = {}, options = {}) click to toggle source
# File lib/fidor_api/client/dsl/standing_orders.rb, line 17
def create_standing_order(attributes = {}, options = {})
  create(FidorApi::Model::StandingOrder, 'standing_orders', attributes, options)
end
delete_standing_order(id, options = {}) click to toggle source
# File lib/fidor_api/client/dsl/standing_orders.rb, line 29
def delete_standing_order(id, options = {})
  request(:delete, "standing_orders/#{id}", nil, options[:headers])
end
new_standing_order(attributes = {}) click to toggle source
# File lib/fidor_api/client/dsl/standing_orders.rb, line 13
def new_standing_order(attributes = {})
  FidorApi::Model::StandingOrder.new(attributes)
end
standing_order(id, options = {}) click to toggle source
# File lib/fidor_api/client/dsl/standing_orders.rb, line 5
def standing_order(id, options = {})
  fetch(:single, FidorApi::Model::StandingOrder, "standing_orders/#{id}", options)
end
standing_orders(options = {}) click to toggle source
# File lib/fidor_api/client/dsl/standing_orders.rb, line 9
def standing_orders(options = {})
  fetch(:collection, FidorApi::Model::StandingOrder, 'standing_orders', options)
end
update_standing_order(id, attributes = {}, options = {}) click to toggle source
# File lib/fidor_api/client/dsl/standing_orders.rb, line 21
def update_standing_order(id, attributes = {}, options = {})
  update(FidorApi::Model::StandingOrder, "standing_orders/#{id}", id, attributes, options)
end