code: def create_refund(self, data=None, **params):
          
          if data is None:
              data = {'lines': []}
          refund = OrderRefunds(self.client).on(self).create(data, **params)
          return refund
docs: Create a refund for the order. When no data arg is given, a refund for all order lines is assumed.