get_service_schemas() 공개 메소드

Requests the available services for this site from the Connect for WooCommerce Server
public get_service_schemas ( ) : array | WP_Error
리턴 array | WP_Error
 public function fetch_service_schemas_from_connect_server()
 {
     $response_body = $this->api_client->get_service_schemas();
     if (is_wp_error($response_body)) {
         $this->logger->log($response_body, __FUNCTION__);
         return;
     }
     $this->logger->log('Successfully loaded service schemas from server response.', __FUNCTION__);
     $this->update_last_fetch_timestamp();
     $this->maybe_update_heartbeat();
     // If we made it this far, it is safe to store the object
     $this->update_service_schemas($response_body);
 }