module MangoPay::HTTPCalls::Create::ClassMethods

Public Instance Methods

create(params, id = nil, idempotency_key = nil) click to toggle source
# File lib/mangopay/http_calls.rb, line 6
def create(params, id = nil, idempotency_key = nil)
  # LEGACY SUPPORT FOR OLD SIGNATURE: def create(*id, params)
  if !params.is_a?(Hash) && id.is_a?(Hash)
    temp = params
    params = id
    id = temp
  end
  MangoPay.request(:post, url(id), params, {}, idempotency_key)
end