class_docstr: The PayPal Orders Table implementation
class_docstr_tok: ["The","PayPal","Orders","Table","implementation"]
code: def get_orders(self, id) -> List[Dict]:
      # we can use the paypalrestsdk api to get the order if they refactor their code
      connection = self.handler.connect()
      endpoint = f"v2/checkout/orders/{id}"
      order = connection.get(endpoint)
      if not order:
          raise ValueError("Could not get order, check order id")
      return order
  
imports: import paypalrestsdk
  import pandas
  from typing import Text, List, Dict
  from mindsdb_sql.parser import ast
  from mindsdb.integrations.libs.api_handler import APITable
  from mindsdb.integrations.handlers.utilities.query_utilities import SELECTQueryParser, SELECTQueryExecutor
label_desc: Use image node_id 3 for calling the OrdersTable obj's underlying member method code with example usage: obj.get_orders(id) and returns: order