def increase_customer_balance(user_id, amount): path = "{0}/{1}/customer-account".format(resource_path, user_id) put(path=path, params_dict=dict(amount=amount))
def approve_user_withdrawal(user_id, withdrawal_id): path = "{0}/{1}/developer-account/withdraws/{2}".format(resource_path, user_id, withdrawal_id) return put(path=path)
def block_user(user_id): path = "{0}/{1}/blocked".format(resource_path, user_id) put(path=path)
def change_user_email(user_id, email): path = "{0}/{1}/email".format(resource_path, user_id) put(path=path, params_dict=dict(email=email))
def update_user(user_id, **kwargs): path = "{0}/{1}".format(resource_path, user_id) params = dict([(convert.to_camel_case(k), v) for k, v in kwargs.iteritems()]) put(path=path, params_dict=params)
def confirm_user(user_id): path = "{0}/{1}/confirmed".format(resource_path, user_id) put(path=path)
def regenerate_secret(app_id): path = "{0}/{1}/secret".format(resource_path, app_id) put(path=path)
def update_city(city_id, name=None, disabled=None): path = '{0}/{1}'.format(resource_path, city_id) params_dict = dict() if name: params_dict.update(name=name) if disabled is not None: params_dict.update(disabled=disabled) put(path=path, params_dict=params_dict)
def pause_order(order_id): path = "{0}/{1}/paused".format(resource_path, order_id) put(path=path)
def update_app(app_id, **kwargs): path = "{0}/{1}".format(resource_path, app_id) params = dict([(convert.to_camel_case(key), value) for key, value in kwargs.iteritems()]) put(path=path, params_dict=params)
def enable_order(order_id): path = "{0}/{1}/enabled".format(resource_path, order_id) put(path=path)
def update_order(order_id, **kwargs): path = '{0}/{1}'.format(resource_path, order_id) params = dict([(convert.to_camel_case(key), value) for key, value in kwargs.iteritems()]) put(path=path, params_dict=params)
def approve_action(action_id): path = "{0}/{1}".format(resource_path, action_id) put(path=path)
def enable_banner_size(size_id): path = "{0}/{1}".format(resource_path, size_id) put(path=path)
def update_settings(c_min=None, q=None, m=None): params = dict() dict_update_filled_params(params, cmin=c_min, m=m, q=q) return put(path=resource_path, params_dict=params)