Exemplo n.º 1
0
 def date_change_quote(self, resource_id, **kwargs):
     '''
     Returns a JSON structure containing the quote for changing the date of the specified conversion.
     '''
     return Conversion(
         self,
         **self.get('/v2/conversions/' + resource_id + '/date_change_quote',
                    kwargs))
Exemplo n.º 2
0
 def cancellation_quote(self, resource_id, **kwargs):
     '''
     Returns a JSON structure containing the quote for cancelling the specified conversion.
     '''
     return Conversion(
         self,
         **self.get(
             '/v2/conversions/' + resource_id + '/cancellation_quote',
             kwargs))
Exemplo n.º 3
0
 def find(self, **kwargs):
     '''
     Return an array containing json structures of details of the conversions matching the
     search criteria for the logged in user.
     '''
     response = self.get('/v2/conversions/find', query=kwargs)
     data = [
         Conversion(self, **fields) for fields in response['conversions']
     ]
     return PaginatedCollection(data, response['pagination'])
Exemplo n.º 4
0
 def create(self, **kwargs):
     '''Returns a json structure containing the details of the requested conversion.'''
     return Conversion(self, **self.post('/v2/conversions/create', kwargs))
Exemplo n.º 5
0
 def split_history(self, resource_id, **kwargs):
     '''Returns a json structure containing split results as parent, origin and child conversions.'''
     return Conversion(
         self,
         **self.get('/v2/conversions/' + resource_id + '/split_history',
                    kwargs))
Exemplo n.º 6
0
 def split(self, resource_id, **kwargs):
     '''Returns a json structure containing split results as parent and child conversions.'''
     return Conversion(
         self,
         **self.post('/v2/conversions/' + resource_id + '/split', kwargs))
Exemplo n.º 7
0
 def date_change(self, resource_id, **kwargs):
     '''Returns a json structure containing the details of the conversion date change rate.'''
     return Conversion(
         self,
         **self.post('/v2/conversions/' + resource_id + '/date_change',
                     kwargs))
Exemplo n.º 8
0
 def cancel(self, resource_id, **kwargs):
     '''Returns a json structure containing the details of the conversion cancellation.'''
     return Conversion(
         self,
         **self.post('/v2/conversions/' + resource_id + '/cancel', kwargs))
Exemplo n.º 9
0
 def retrieve(self, resource_id, **kwargs):
     '''Returns a json structure containing the details of the requested conversion.'''
     return Conversion(
         self, **self.get('/v2/conversions/' + resource_id, query=kwargs))