Example #1
0
    def delete(cls, id, merchid, acctid='', **params):  # noqa
        requestor = api_requestor.ApiRequestor()

        url = cls.instance_url(id)
        url = "%s/%s/%s" % (url, acctid, merchid)

        response = requestor.request('delete', url, params)
        return response
Example #2
0
    def get(cls, merchid, date, **params):  # noqa
        requestor = api_requestor.ApiRequestor()

        url = cls.class_url()
        url = "%s?merchid=%s&date=%s" % (url, merchid, date)

        response = requestor.request('get', url, params)
        return response
Example #3
0
 def delete(cls, id, **params):  # noqa
     requestor = api_requestor.ApiRequestor()
     url = cls.instance_url()
     response = requestor.request('delete', url, params)
     return response
Example #4
0
 def get(cls, id, **params):  # noqa
     requestor = api_requestor.ApiRequestor()
     url = cls.instance_url(id)
     response = requestor.request('get', url, params)
     return response
Example #5
0
 def update(cls, **params):  # noqa
     requestor = api_requestor.ApiRequestor()
     url = cls.class_url()
     response = requestor.request('put', url, params)
     return response