code: def replace_free_shipping_by_id(cls, free_shipping_id, free_shipping, **kwargs):
          
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async'):
              return cls._replace_free_shipping_by_id_with_http_info(free_shipping_id, free_shipping, **kwargs)
          else:
              (data) = cls._replace_free_shipping_by_id_with_http_info(free_shipping_id, free_shipping, **kwargs)
              return data
docs: Replace FreeShipping
  
          Replace all attributes of FreeShipping
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async=True
          >>> thread = api.replace_free_shipping_by_id(free_shipping_id, free_shipping, async=True)
          >>> result = thread.get()
  
          :param async bool
          :param str free_shipping_id: ID of freeShipping to replace (required)
          :param FreeShipping free_shipping: Attributes of freeShipping to replace (required)
          :return: FreeShipping
                   If the method is called asynchronously,
                   returns the request thread.