# Path: netvisor/requests/customer.py
# class CreateCustomerRequest(Request):
#     method = 'POST'
#     uri = 'Customer.nv'
#     response_cls = CreateCustomerResponse
#     schema_cls = CreateCustomerSchema
#     tag_name = 'customer'
# 
# class CustomerListRequest(Request):
#     method = 'GET'
#     uri = 'CustomerList.nv'
#     response_cls = CustomerListResponse
# 
# class GetCustomerRequest(Request):
#     method = 'GET'
#     uri = 'GetCustomer.nv'
#     response_cls = GetCustomerResponse
# 
# class UpdateCustomerRequest(Request):
#     method = 'POST'
#     uri = 'Customer.nv'
#     response_cls = UpdateCustomerResponse
#     schema_cls = CreateCustomerSchema
#     tag_name = 'customer'
# 
# Path: netvisor/services/base.py
# class Service(object):
#     def __init__(self, client):
#         self.client = client


from ..requests.customer import (
    CreateCustomerRequest,
    CustomerListRequest,
    GetCustomerRequest,
    UpdateCustomerRequest
)
from .base import Service
# -*- coding: utf-8 -*-
"""
    netvisor.services.customer
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    :copyright: (c) 2013-2016 by Fast Monkeys Oy.
    :license: MIT, see LICENSE for more details.
"""


class CustomerService(Service):
    def get(self, id):
        request = GetCustomerRequest(self.client, params={'id': id})
        return request.make_request()

    def list(self, query=None):
        request = CustomerListRequest(self.client, params={'Keyword': query})
        return request.make_request()

    def create(self, data):

# Path: netvisor/requests/customer.py
# class CreateCustomerRequest(Request):
#     method = 'POST'
#     uri = 'Customer.nv'
#     response_cls = CreateCustomerResponse
#     schema_cls = CreateCustomerSchema
#     tag_name = 'customer'
# 
# class CustomerListRequest(Request):
#     method = 'GET'
#     uri = 'CustomerList.nv'
#     response_cls = CustomerListResponse
# 
# class GetCustomerRequest(Request):
#     method = 'GET'
#     uri = 'GetCustomer.nv'
#     response_cls = GetCustomerResponse
# 
# class UpdateCustomerRequest(Request):
#     method = 'POST'
#     uri = 'Customer.nv'
#     response_cls = UpdateCustomerResponse
#     schema_cls = CreateCustomerSchema
#     tag_name = 'customer'
# 
# Path: netvisor/services/base.py
# class Service(object):
#     def __init__(self, client):
#         self.client = client


# Path: netvisor/services/customer.py
from ..requests.customer import (
    CreateCustomerRequest,
    CustomerListRequest,
    GetCustomerRequest,
    UpdateCustomerRequest
)
from .base import Service

# -*- coding: utf-8 -*-
"""
    netvisor.services.customer
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

    :copyright: (c) 2013-2016 by Fast Monkeys Oy.
    :license: MIT, see LICENSE for more details.
"""


class CustomerService(Service):
    def get(self, id):
        request = GetCustomerRequest(self.client, params={'id': id})
        return request.make_request()

    def list(self, query=None):
        request = CustomerListRequest(self.client, params={'Keyword': query})
        return request.make_request()

    def create(self, data):

        request = CreateCustomerRequest(