Exemple #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))
Exemple #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))
Exemple #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'])
Exemple #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))
Exemple #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))
Exemple #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))
Exemple #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))
Exemple #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))
Exemple #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))